/* --- ESTILOS GENERALES Y PORTADA --- */
body {
    font-family: 'Georgia', 'Times New Roman', serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #FDFACE 0%, #FF6B35 20%, #FDFACE 100%);
    color: #8B1A1A;
    min-height: 100vh;
}

header {
    background: linear-gradient(135deg, #8B1A1A 0%, #D22B2B 100%);
    color: #FDFACE;
    text-align: center;
    box-shadow: 0 6px 25px rgba(139, 26, 26, 0.4);
    position: relative;
    overflow: hidden;
    padding-bottom: 15px;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><radialGradient id="g"><stop offset="20%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="50%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><rect width="100" height="20" fill="url(%23g)"/></svg>') repeat-x;
    opacity: 0.3;
}

header h1 {
    margin: 0 0 10px 0;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5em;
    color: #FDFACE;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.6);
    padding: 20px 0;
}

/* --- NAV MEJORADO --- */
nav {
    text-align: center;
    margin: 20px 0 0 0;
    padding: 0 0 20px 0;
}
nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    padding: 12px 24px;
    border-radius: 25px;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-size: 1.1em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    display: inline-block;
    position: relative;
    overflow: hidden;
}

nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: #AED15F;
    transition: left 0.3s ease;
}

nav a:hover::before {
    left: 0;
}

nav a:hover,
nav a.active {
    background: rgba(253, 250, 206, 0.95);
    color: #8B1A1A;
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Elimina estilos antiguos de nav ul y li */
nav ul, nav ul li, nav ul li a {
    all: unset;
}

/* Estilos para las nuevas secciones de contenido */
.hero-section {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.95);
    margin: 20px auto;
    max-width: 1200px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(139, 26, 26, 0.1);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.feature {
    background: rgba(253, 250, 206, 0.8);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid rgba(139, 26, 26, 0.1);
}

.feature h3 {
    color: #8B1A1A;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.content-section {
    background: rgba(255, 255, 255, 0.95);
    margin: 20px auto;
    max-width: 1200px;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(139, 26, 26, 0.1);
}

.content-section h2 {
    color: #8B1A1A;
    text-align: center;
    margin-bottom: 25px;
}

.content-section h3 {
    color: #D22B2B;
    margin-top: 25px;
    margin-bottom: 15px;
}

.recipes-section {
    background: rgba(255, 255, 255, 0.95);
    margin: 20px auto;
    max-width: 1200px;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(139, 26, 26, 0.1);
}

.tips-section {
    background: rgba(253, 250, 206, 0.9);
    margin: 20px auto;
    max-width: 1200px;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(139, 26, 26, 0.1);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.tip {
    background: rgba(255, 255, 255, 0.9);
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #8B1A1A;
}

.tip h4 {
    color: #8B1A1A;
    margin-bottom: 15px;
}

/* Nuevas secciones de contenido */
.kitchen-tools-section {
    background: rgba(255, 255, 255, 0.95);
    margin: 20px auto;
    max-width: 1200px;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(139, 26, 26, 0.1);
}

.kitchen-tools-section h2 {
    color: #8B1A1A;
    text-align: center;
    margin-bottom: 25px;
    font-size: 2.2em;
}

.tools-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.tool-category {
    background: rgba(253, 250, 206, 0.6);
    padding: 30px;
    border-radius: 12px;
    border-left: 5px solid #8B1A1A;
}

.tool-category h3 {
    color: #D22B2B;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.tools-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.tools-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(139, 26, 26, 0.1);
    color: #555;
}

.tools-list li:last-child {
    border-bottom: none;
}

.tools-list strong {
    color: #8B1A1A;
    font-weight: 600;
}

.blog-preview {
    background: linear-gradient(135deg, #AED15F 0%, #8FBC8F 100%);
    padding: 35px;
    border-radius: 15px;
    margin-top: 40px;
    text-align: center;
}

.blog-preview h3 {
    color: #8B1A1A;
    margin-bottom: 20px;
    font-size: 1.6em;
}

.blog-preview p {
    color: #8B1A1A;
    font-size: 1.1em;
    margin-bottom: 25px;
}

.coming-soon-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.feature-preview {
    background: rgba(255, 255, 255, 0.9);
    padding: 25px;
    border-radius: 10px;
    text-align: left;
}

.feature-preview h4 {
    color: #8B1A1A;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.feature-preview p {
    color: #555;
    margin: 0;
    font-size: 1em;
}

.nutrition-section {
    background: rgba(253, 250, 206, 0.8);
    margin: 20px auto;
    max-width: 1200px;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(139, 26, 26, 0.1);
}

.nutrition-section h2 {
    color: #8B1A1A;
    text-align: center;
    margin-bottom: 25px;
    font-size: 2em;
}

.nutrition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.nutrition-topic {
    background: rgba(255, 255, 255, 0.9);
    padding: 25px;
    border-radius: 12px;
    border-top: 4px solid #D22B2B;
}

.nutrition-topic h4 {
    color: #8B1A1A;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.nutrition-topic p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .features-grid, .tips-grid, .tools-categories, .coming-soon-features, .nutrition-grid {
        grid-template-columns: 1fr;
    }
    
    .content-section, .recipes-section, .tips-section, .kitchen-tools-section, .nutrition-section {
        margin: 20px 10px;
        padding: 25px;
    }
    
    .tool-category {
        padding: 20px;
    }
    
    .blog-preview {
        padding: 25px;
    }
}

/* --- MAIN Y SECCIONES --- */
main {
    max-width: 1100px;
    margin: 36px auto 0 auto;
    padding: 20px 18px 40px 18px;
}

main section {
    margin-bottom: 36px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 36px;
    box-shadow: 0 4px 16px rgba(139, 26, 26, 0.08);
    backdrop-filter: blur(10px);
}

/* Estilos específicos para páginas de autenticación */
body.auth-page main {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
}

body.auth-page main section {
    background: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

/* Sobrescribir cualquier estilo heredado para los containers de auth */
body.auth-page .login-container,
body.auth-page .register-container {
    background: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    padding: 40px 20px !important;
    margin: 0 !important;
    max-width: none !important;
}

h1, h2 {
    color: #D22B2B;
}

footer {
    text-align: center;
    padding: 18px 0 10px 0;
    background: linear-gradient(135deg, #8B1A1A 0%, #D22B2B 100%);
    color: #FDFACE;
    position: relative;
    bottom: 0;
    width: 100%;
    font-size: 1em;
    margin-top: 40px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 -2px 12px rgba(139, 26, 26, 0.15);
}

/* --- BOTÓN VER MÁS RECETAS --- */
.ver-mas-container {
    display: flex;
    justify-content: center;
    margin: 32px 0 0 0;
}

.ver-mas-btn {
    background: linear-gradient(135deg, #FF6B35 0%, #F67E7D 100%);
    color: #fff;
    font-size: 1.1em;
    padding: 12px 32px;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.20);
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.ver-mas-btn:hover {
    background: linear-gradient(135deg, #F67E7D 0%, #FF6B35 100%);
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.35);
    transform: translateY(-2px);
}

/* --- LOGIN MODERNO Y CENTRADO --- */
.login-container {
    min-height: calc(100vh - 200px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 40px 20px !important;
    background: none !important;
    margin: 0 !important;
    max-width: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

.login-card {
    background: white !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 60px rgba(139, 26, 26, 0.15) !important;
    width: 100% !important;
    max-width: 450px !important;
    overflow: hidden !important;
    position: relative !important;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, #8B1A1A 0%, #D22B2B 50%, #AED15F 100%);
}

.login-header {
    text-align: center;
    padding: 40px 40px 30px 40px;
    background: linear-gradient(135deg, rgba(253, 250, 206, 0.1) 0%, rgba(174, 209, 95, 0.05) 100%);
}

.login-icon {
    background: linear-gradient(135deg, rgba(139, 26, 26, 0.1) 0%, rgba(210, 43, 43, 0.1) 100%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    border: 3px solid rgba(139, 26, 26, 0.1);
}

.login-header h2 {
    color: #8B1A1A;
    margin: 0 0 10px 0;
    font-size: 1.8em;
    font-weight: 600;
}

.login-header p {
    color: #666;
    margin: 0;
    font-size: 1em;
    line-height: 1.5;
}

.modern-login-form {
    padding: 0 40px 20px 40px;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 0.95em;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    z-index: 2;
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    padding: 15px 15px 15px 50px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1em;
    background: #f8f9fa;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.input-wrapper input:focus {
    border-color: #8B1A1A;
    background: white;
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 26, 26, 0.1);
    transform: translateY(-1px);
}

.input-wrapper input::placeholder {
    color: #adb5bd;
}

.password-toggle {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.password-toggle:hover {
    background: rgba(139, 26, 26, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9em;
    color: #666;
}

.checkbox-container input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-container input:checked + .checkmark {
    background: #8B1A1A;
    border-color: #8B1A1A;
}

.checkbox-container input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 2px;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.forgot-password {
    color: #8B1A1A;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #D22B2B;
    text-decoration: underline;
}

.modern-login-btn {
    width: 100%;
    background: linear-gradient(135deg, #8B1A1A 0%, #D22B2B 100%);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(139, 26, 26, 0.3);
}

.modern-login-btn:hover {
    background: linear-gradient(135deg, #D22B2B 0%, #8B1A1A 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 26, 26, 0.4);
}

.modern-login-btn:active {
    transform: translateY(0);
}

.divider {
    text-align: center;
    margin: 25px 40px;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e1e5e9;
}

.divider span {
    background: white;
    padding: 0 20px;
    color: #666;
    font-size: 0.9em;
    position: relative;
    z-index: 1;
}

.social-login {
    padding: 0 40px 25px 40px;
}

.google-login-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    background: white;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.google-login-btn:hover {
    border-color: #8B1A1A;
    box-shadow: 0 4px 15px rgba(139, 26, 26, 0.1);
    transform: translateY(-1px);
}

.google-icon {
    width: 20px;
    height: 20px;
}

.signup-link {
    text-align: center;
    padding: 20px 40px 40px 40px;
    background: #f8f9fa;
    border-top: 1px solid #e1e5e9;
}

.signup-link p {
    margin: 0;
    color: #666;
    font-size: 0.95em;
}

.signup-link a {
    color: #8B1A1A;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.signup-link a:hover {
    color: #D22B2B;
    text-decoration: underline;
}

/* Animaciones de entrada */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsivo para el login moderno */
@media (max-width: 768px) {
    .login-container {
        padding: 20px 15px;
        min-height: calc(100vh - 160px);
    }
    
    .login-card {
        max-width: 100%;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(139, 26, 26, 0.1);
    }
    
    .login-header {
        padding: 30px 25px 20px 25px;
    }
    
    .login-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 15px;
    }
    
    .login-header h2 {
        font-size: 1.6em;
    }
    
    .modern-login-form {
        padding: 0 25px 15px 25px;
    }
    
    .input-wrapper input {
        padding: 14px 14px 14px 45px;
        font-size: 16px; /* Evita zoom en iOS */
    }
    
    .modern-login-btn {
        padding: 15px 20px;
        font-size: 1em;
    }
    
    .divider {
        margin: 20px 25px;
    }
    
    .social-login {
        padding: 0 25px 20px 25px;
    }
    
    .signup-link {
        padding: 20px 25px 30px 25px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 15px 10px;
    }
    
    .login-header {
        padding: 25px 20px 15px 20px;
    }
    
    .login-icon {
        width: 60px;
        height: 60px;
    }
    
    .login-header h2 {
        font-size: 1.5em;
    }
    
    .modern-login-form {
        padding: 0 20px 10px 20px;
    }
    
    .social-login {
        padding: 0 20px 15px 20px;
    }
    
    .signup-link {
        padding: 15px 20px 25px 20px;
    }
}

/* --- REGISTRO MODERNO Y CENTRADO --- */
.register-container {
    min-height: calc(100vh - 200px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 40px 20px !important;
    background: none !important;
    margin: 0 !important;
    max-width: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

.register-card {
    background: white !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 60px rgba(139, 26, 26, 0.15) !important;
    width: 100% !important;
    max-width: 500px !important;
    overflow: hidden !important;
    position: relative !important;
}

.register-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, #8B1A1A 0%, #D22B2B 50%, #AED15F 100%);
}

.register-header {
    text-align: center;
    padding: 40px 40px 30px 40px;
    background: linear-gradient(135deg, rgba(253, 250, 206, 0.1) 0%, rgba(174, 209, 95, 0.05) 100%);
}

.register-icon {
    background: linear-gradient(135deg, rgba(139, 26, 26, 0.1) 0%, rgba(210, 43, 43, 0.1) 100%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    border: 3px solid rgba(139, 26, 26, 0.1);
}

.register-header h2 {
    color: #8B1A1A;
    margin: 0 0 10px 0;
    font-size: 1.8em;
    font-weight: 600;
}

.register-header p {
    color: #666;
    margin: 0;
    font-size: 1em;
    line-height: 1.5;
}

.modern-register-form {
    padding: 0 40px 20px 40px;
}

.modern-register-btn {
    width: 100%;
    background: linear-gradient(135deg, #8B1A1A 0%, #D22B2B 100%);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(139, 26, 26, 0.3);
}

.modern-register-btn:hover {
    background: linear-gradient(135deg, #D22B2B 0%, #8B1A1A 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 26, 26, 0.4);
}

.modern-register-btn:active {
    transform: translateY(0);
}

.google-register-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    background: white;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.google-register-btn:hover {
    border-color: #8B1A1A;
    box-shadow: 0 4px 15px rgba(139, 26, 26, 0.1);
    transform: translateY(-1px);
}

.login-link {
    text-align: center;
    padding: 20px 40px 40px 40px;
    background: #f8f9fa;
    border-top: 1px solid #e1e5e9;
}

.login-link p {
    margin: 0;
    color: #666;
    font-size: 0.95em;
}

.login-link a {
    color: #8B1A1A;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.login-link a:hover {
    color: #D22B2B;
    text-decoration: underline;
}

.terms-link {
    color: #8B1A1A !important;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s ease;
}

.terms-link:hover {
    color: #D22B2B !important;
}

/* Responsivo para el registro moderno */
@media (max-width: 768px) {
    .register-container {
        padding: 20px 15px;
        min-height: calc(100vh - 160px);
    }
    
    .register-card {
        max-width: 100%;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(139, 26, 26, 0.1);
    }
    
    .register-header {
        padding: 30px 25px 20px 25px;
    }
    
    .register-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 15px;
    }
    
    .register-header h2 {
        font-size: 1.6em;
    }
    
    .modern-register-form {
        padding: 0 25px 15px 25px;
    }
    
    .modern-register-btn {
        padding: 15px 20px;
        font-size: 1em;
    }
    
    .login-link {
        padding: 20px 25px 30px 25px;
    }
}

@media (max-width: 480px) {
    .register-container {
        padding: 15px 10px;
    }
    
    .register-header {
        padding: 25px 20px 15px 20px;
    }
    
    .register-icon {
        width: 60px;
        height: 60px;
    }
    
    .register-header h2 {
        font-size: 1.5em;
    }
    
    .modern-register-form {
        padding: 0 20px 10px 20px;
    }
    
    .login-link {
        padding: 15px 20px 25px 20px;
    }
}

/* Alertas para formularios */
.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.95em;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-error {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #d32f2f;
}

.alert-success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #388e3c;
}

.alert svg {
    flex-shrink: 0;
}

/* --- CUENTA DE USUARIO MODERNA --- */
.account-section {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(139, 26, 26, 0.13);
    max-width: 320px;
    margin: 48px auto 0 auto;
    padding: 24px 20px 20px 20px;
    text-align: center;
    animation: fadeIn 0.7s;
}

.account-section h2 {
    color: #D22B2B;
    margin-bottom: 15px;
    font-size: 1.2em;
    font-weight: 700;
}

.account-info p {
    font-size: 1em;
    margin: 8px 0;
    color: #444;
}

.account-actions {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.btn {
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    font-size: 0.9em;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    font-weight: 500;
}

.btn.logout {
    background: #4CAF50;
    color: #fff;
}

.btn.logout:hover {
    background: #388e3c;
}

.btn.delete {
    background: #f44336;
    color: #fff;
}

.btn.delete:hover {
    background: #b71c1c;
}

.alumno-code-section {
    margin-top: 15px;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 12px 15px 10px 15px;
    box-shadow: 0 1px 4px rgba(139, 26, 26, 0.06);
}

.alumno-code-section h3 {
    color: #D22B2B;
    font-size: 1em;
    margin-bottom: 8px;
    font-weight: 600;
}

#alumnoCodeInput {
    padding: 6px 8px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-size: 0.9em;
    margin-bottom: 6px;
    width: 65%;
    max-width: 180px;
}

#activateAlumnoBtn {
    margin-left: 6px;
    background: linear-gradient(135deg, #AED15F 0%, #8FBC8F 100%);
    color: #8B1A1A;
    border: none;
    border-radius: 5px;
    padding: 6px 12px;
    font-size: 0.9em;
    cursor: pointer;
    transition: background 0.2s;
    font-weight: 500;
}

#activateAlumnoBtn:hover {
    background: linear-gradient(135deg, #8FBC8F 0%, #AED15F 100%);
}

#alumnoCodeMsg {
    margin-top: 8px;
    font-size: 0.85em;
}

/* --- NO TOCADO: RECETAS Y CATÁLOGO --- */
.recipe-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

#searchInput {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #bbb;
    width: 220px;
    font-size: 1em;
}

#difficultyFilter {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #bbb;
    font-size: 1em;
}

.recipe-catalog {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.recipe-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 18px 14px 16px 14px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.recipe-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(174, 209, 95, 0.2), transparent);
    transition: left 0.5s;
}

.recipe-card:hover::before {
    left: 100%;
}

.recipe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px rgba(139, 26, 26, 0.15);
}

.recipe-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 7px;
    margin-bottom: 12px;
}

.recipe-card h3 {
    margin: 10px 0 6px 0;
    color: #D22B2B;
    font-size: 1.15em;
}

.difficulty {
    font-weight: bold;
    color: #FF6B35;
}

.premium-badge,
.free-badge {
    display: block;
    width: fit-content;
    margin: 0 auto 10px auto;
    background: #f44336;
    color: #fff;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 0.9em;
    margin-top: 6px;
}

.free-badge {
    background: #AED15F;
    color: #8B1A1A;
}

.btn.ver-btn {
    margin-top: 10px;
    background: linear-gradient(135deg, #AED15F 0%, #8FBC8F 100%);
    color: #8B1A1A;
    font-size: 1em;
    padding: 8px 16px;
}

.btn.ver-btn:hover {
    background: linear-gradient(135deg, #8FBC8F 0%, #AED15F 100%);
}

.img-container {
    position: relative;
    width: 100%;
    height: 140px;
    margin-bottom: 12px;
}
.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 7px;
}
.lock-icon {
    width: 22px;
    height: 22px;
    filter: drop-shadow(0 2px 8px #222);
}
.lock-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    cursor: pointer;
    transition: background 0.2s;
    overflow: hidden;
}
.lock-overlay:hover {
    background: rgba(0,0,0,0.65);
}
.featured-catalog {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

/* --- ESTILOS ADICIONALES PARA MEJORAR EL DISEÑO --- */

/* Mejoras en el header para hacerlo más atractivo */

/* Efecto de ondas en el fondo */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M985.66,92.83C906.67,72,823.78,31,743.84,14.19c-82.26-17.34-168.06-16.33-250.45.39-57.84,11.73-114,31.07-172,41.86A600.21,600.21,0,0,1,0,27.35V120H1200V95.8C1132.19,118.92,1055.71,111.31,985.66,92.83Z" fill="%23FDFACE" fill-opacity="0.1"/></svg>') repeat-x;
    z-index: -1;
    opacity: 0.7;
}

/* Animaciones suaves para los botones */
.btn, .ver-mas-btn, .login-btn {
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:active, .ver-mas-btn:active, .login-btn:active {
    transform: scale(0.98);
}

/* Mejoras en los formularios */
.login-form input, #alumnoCodeInput, #searchInput, #difficultyFilter {
    transition: all 0.3s ease;
    border: 1.5px solid #e0e0e0;
}

.login-form input:focus, #alumnoCodeInput:focus, #searchInput:focus, #difficultyFilter:focus {
    border-color: #AED15F;
    box-shadow: 0 0 0 3px rgba(174, 209, 95, 0.1);
    transform: translateY(-1px);
}

/* Efectos en el badge premium */
.premium-badge {
    background: linear-gradient(135deg, #D22B2B 0%, #8B1A1A 100%);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(210, 43, 43, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(210, 43, 43, 0); }
    100% { box-shadow: 0 0 0 0 rgba(210, 43, 43, 0); }
}

/* --- ESTILOS PARA PÁGINA PREMIUM --- */

/* Sección Premium Activa */
.premium-active {
    text-align: center;
    padding: 40px 30px;
}

.premium-benefits {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
    text-align: left;
}

.premium-benefits h3 {
    color: #D22B2B;
    margin-bottom: 20px;
    text-align: center;
}

.premium-benefits ul {
    list-style: none;
    padding: 0;
}

.premium-benefits li {
    padding: 8px 0;
    font-size: 1.1em;
    color: #555;
}

.premium-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268 0%, #6c757d 100%);
    transform: translateY(-2px);
}

/* Planes de Suscripción */
.premium-plans h2 {
    text-align: center;
    margin-bottom: 20px;
}

.premium-plans p {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 40px;
    color: #666;
}

.plans-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.plan-card {
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(139, 26, 26, 0.1);
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(139, 26, 26, 0.15);
}

.plan-popular {
    border-color: #AED15F;
    transform: scale(1.05);
}

.plan-popular:hover {
    transform: scale(1.05) translateY(-8px);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #AED15F 0%, #8FBC8F 100%);
    color: #8B1A1A;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9em;
    box-shadow: 0 4px 12px rgba(174, 209, 95, 0.3);
}

.plan-card h3 {
    color: #D22B2B;
    font-size: 1.5em;
    margin-bottom: 20px;
}

.price {
    margin: 20px 0;
}

.price .amount {
    font-size: 3em;
    font-weight: 700;
    color: #8B1A1A;
}

.price .period {
    font-size: 1.1em;
    color: #666;
}

.savings {
    background: linear-gradient(135deg, #FF6B35 0%, #F67E7D 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
}

.features {
    text-align: left;
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.features p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.premium-btn {
    background: linear-gradient(135deg, #D22B2B 0%, #8B1A1A 100%);
    color: white;
    padding: 14px 30px;
    border-radius: 8px;
    border: none;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 20px;
}

.premium-btn:hover {
    background: linear-gradient(135deg, #8B1A1A 0%, #D22B2B 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 26, 26, 0.3);
}

/* Información Premium para no logueados */
.premium-info {
    text-align: center;
    padding: 40px 30px;
}

.premium-preview {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
    text-align: left;
}

.premium-preview h3 {
    color: #D22B2B;
    text-align: center;
    margin-bottom: 25px;
}

.premium-preview ul {
    list-style: none;
    padding: 0;
}

.premium-preview li {
    padding: 10px 0;
    font-size: 1.1em;
    color: #555;
}

.login-required {
    background: linear-gradient(135deg, #FDFACE 0%, #FF6B35 20%, #FDFACE 100%);
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
}

.login-required h3 {
    color: #8B1A1A;
    margin-bottom: 15px;
}

.login-required p {
    color: #8B1A1A;
    margin-bottom: 25px;
}

.auth-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Sección FAQ */
.faq-section {
    margin-top: 60px;
    padding: 40px 30px;
    background: #f8f9fa;
    border-radius: 12px;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #D22B2B;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-item h4 {
    color: #8B1A1A;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.faq-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Modal de PayPal */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    background: linear-gradient(135deg, #D22B2B 0%, #8B1A1A 100%);
    color: white;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: white;
}

.close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: white;
    transition: color 0.3s;
}

.close:hover {
    color: #FDFACE;
}

.modal-body {
    padding: 30px;
}

/* --- ESTILOS PARA ANUNCIOS EN RECETAS --- */
.recipe-ad-container {
    grid-column: 1 / -1; /* Ocupa todo el ancho del grid */
    margin: 30px 0;
    display: flex;
    justify-content: center;
}

.recipe-ad-container .ad-container {
    max-width: 600px;
    width: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(253, 172, 206, 0.05) 100%);
    border: 2px dashed rgba(255, 107, 53, 0.2);
}

.recipe-ad-container .ad-label {
    background: linear-gradient(135deg, #FF6B35 0%, #F67E7D 100%);
    color: white;
}

/* Mejorar grid de recetas para acomodar anuncios */
.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Animación sutil para anuncios */
.ad-container {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilo especial para anuncios en sidebar (recipe-detail) */
.sidebar-ad {
    position: sticky;
    top: 20px;
    margin: 20px 0;
}

.sidebar-ad .ad-container {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 15px rgba(139, 26, 26, 0.1);
}

/* Mejorar experiencia para usuarios premium */
.premium-no-ads {
    text-align: center;
    padding: 20px;
    margin: 20px 0;
}

.premium-badge {
    animation: premium-pulse 2s ease-in-out infinite;
}

@keyframes premium-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(174, 209, 95, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 25px rgba(174, 209, 95, 0.4);
    }
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }
    
    nav {
        padding: 0 10px 20px 10px;
    }
    
    nav a {
        margin: 5px;
        padding: 10px 16px;
        font-size: 0.95em;
        display: inline-block;
    }
    
    main {
        padding: 15px 12px 30px 12px;
    }
    
    .recipe-catalog {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .login-section, .account-section {
        margin: 24px 15px 0 15px;
        max-width: none;
    }
    
    .plans-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .plan-popular {
        transform: none;
    }
    
    .plan-popular:hover {
        transform: translateY(-8px);
    }
    
    .premium-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .auth-buttons {
        flex-direction: column;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .recipe-grid {
        grid-template-columns: 1fr;
        padding: 15px;
    }
    
    .recipe-ad-container {
        margin: 20px 0;
    }
}