/**
 * SECCIÓN LANDING PAGE PÚBLICA
 * Estilos para el Hero, visualizador de frases motivacionales vigentes,
 * botones flotantes de WhatsApp y el formulario de login integrado.
 */

.landing-header {
    height: 80px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
}

.landing-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.landing-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    position: relative;
    padding: 0.25rem 0;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.landing-hero {
    padding: 6rem 0 4rem;
    text-align: center;
    background: radial-gradient(circle at 80% 20%, var(--primary-light) 0%, transparent 50%),
                radial-gradient(circle at 10% 80%, var(--accent-light) 0%, transparent 50%);
    position: relative;
    overflow: hidden;
}

.landing-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    max-width: 800px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, #1e3a8a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.landing-hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* Post-its Motivacionales Programados */
.quotes-section {
    padding: 4rem 0;
}

.quotes-section h2 {
    text-align: center;
    font-size: 2.25rem;
    margin-bottom: 3rem;
}

.quotes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.post-it {
    background: var(--tertiary-fixed);
    color: var(--on-tertiary-container);
    padding: 3rem 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.post-it:nth-child(even) {
    background: rgba(253, 164, 175, 0.3); /* bg-soft-coral/30 */
    color: var(--on-tertiary-container);
}

.post-it:nth-child(3n) {
    background: var(--primary-light);
    color: var(--primary);
}

.post-it:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.post-it-text {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    font-style: italic;
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 75px;
    height: 75px;
    background-color: #25D366 !important;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 99;
    color: white;
    transition: transform var(--transition-normal), background-color var(--transition-normal), box-shadow var(--transition-normal);
    animation: pulse-green 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20ba5a !important;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
}

.whatsapp-svg {
    width: 40px;
    height: 40px;
    fill: white;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Tarjetas de Acceso al Portal */
.hero-badge {
    display: inline-block;
    background-color: var(--primary-light);
    color: var(--primary);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.portal-access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 3.5rem auto 1.5rem;
    padding: 0 1rem;
}

.access-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    text-align: left;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.access-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
}

.access-card.client-card::before {
    background: linear-gradient(90deg, var(--primary), var(--success));
}

.access-card.admin-card::before {
    background: linear-gradient(90deg, #3b82f6, #6366f1);
}

.access-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.access-card.client-card:hover {
    border-color: rgba(16, 185, 129, 0.4);
}

.access-card.admin-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
}

.access-icon {
    font-size: 2.25rem;
    margin-bottom: 1.25rem;
    display: inline-block;
}

.access-card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.access-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.75rem;
    text-align: left;
}

/* Clases de Utilidad para Responsivo */
.no-mobile {
    display: flex !important;
}

.only-mobile {
    display: none !important;
}

/* Responsive para Landing */
@media (max-width: 768px) {
    .landing-hero {
        padding: 4rem 0 3rem;
    }
    .landing-hero h1 {
        font-size: 2.5rem;
    }
    .landing-hero h2 {
        font-size: 1.2rem;
    }
    .portal-access-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-top: 2rem;
    }
    .access-card {
        padding: 1.75rem 1.5rem;
    }
    .no-mobile {
        display: none !important;
    }
    .only-mobile {
        display: block !important;
    }
    .whatsapp-float {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 62px;
        height: 62px;
    }
    .whatsapp-float .whatsapp-svg {
        width: 34px;
        height: 34px;
    }
}

/* --- SECCIÓN CIENTÍFICA --- */
.scientific-section {
    padding: 5rem 1.5rem;
    background-color: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.scientific-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.title-glow-animation {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, var(--primary) 0%, hsl(var(--primary-h), var(--primary-s), 35%) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleShift 6s ease-in-out infinite alternate;
}

@keyframes titleShift {
    0% {
        filter: drop-shadow(0 2px 4px rgba(var(--primary-h), var(--primary-s), var(--primary-l), 0.1));
    }
    100% {
        filter: drop-shadow(0 4px 12px rgba(var(--primary-h), var(--primary-s), var(--primary-l), 0.25));
    }
}

.scientific-lead {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.scientific-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3.5rem;
    align-items: center;
    margin-bottom: 6rem;
}

.scientific-grid.reverse {
    grid-template-columns: 1fr 1.2fr;
}

.scientific-grid:last-child {
    margin-bottom: 0;
}

.scientific-card {
    background-color: var(--bg-light);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.scientific-badge {
    display: inline-block;
    background-color: var(--primary-light);
    color: var(--primary);
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(var(--primary-h), var(--primary-s), var(--primary-l), 0.15);
}

.scientific-badge.sports-badge {
    background-color: var(--accent-light);
    color: var(--accent);
    border-color: rgba(var(--accent-h), var(--accent-s), var(--accent-l), 0.15);
}

.scientific-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
}

.scientific-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.scientific-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.scientific-list li {
    position: relative;
    padding-left: 1.75rem;
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.5;
}

.scientific-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
}

.scientific-visual {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Gráficos Interactivos */
.interactive-chart-box {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    box-shadow: var(--shadow-md);
}

.chart-toggles {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
}

.chart-toggles::-webkit-scrollbar {
    display: none;
}

.chart-btn {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background-color: var(--bg-light);
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.chart-btn:hover {
    background-color: var(--border-color);
    color: var(--text-primary);
}

.chart-btn.active {
    background-color: var(--primary);
    color: white !important;
    border-color: var(--primary);
}

.chart-display {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.chart-bar-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chart-bar-label {
    width: 70px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-align: right;
}

.chart-bar-wrapper {
    flex: 1;
    height: 28px;
    background-color: var(--bg-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.chart-bar {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 0.75rem;
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--radius-sm);
}

.female-bar {
    background: linear-gradient(90deg, var(--secondary) 0%, hsl(var(--secondary-h), var(--secondary-s), 58%) 100%);
    box-shadow: 0 2px 8px rgba(var(--secondary-h), var(--secondary-s), var(--secondary-l), 0.25);
}

.male-bar {
    background-color: var(--text-muted);
    opacity: 0.75;
}

.chart-bar-value {
    width: 90px;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-primary);
}

.chart-caption {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
    border-top: 1px dashed var(--border-color);
    padding-top: 0.75rem;
}

/* Envoltura de Imagen */
.scientific-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    height: 350px;
}

.scientific-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform var(--transition-slow);
}

.scientific-image-wrapper:hover img {
    transform: scale(1.04);
}

.image-label {
    position: absolute;
    bottom: 1.25rem;
    left: 1.25rem;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    color: var(--primary);
    padding: 0.35rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

/* Animaciones del título */
.scientific-section h2.title-glow-animation {
    transition: transform var(--transition-fast);
}

.scientific-section:hover h2.title-glow-animation {
    transform: translateY(-2px);
}

/* Responsivo para la Sección Científica */
@media (max-width: 768px) {
    .scientific-section {
        padding: 4rem 1rem;
        margin-top: 2rem;
        margin-bottom: 2rem;
    }
    
    .scientific-grid, .scientific-grid.reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 4rem;
    }
    
    .scientific-card {
        padding: 1.5rem;
    }
    
    .chart-bar-label {
        width: 60px;
    }
    
    .chart-bar-value {
        width: 75px;
        font-size: 0.8rem;
    }
    
    .scientific-image-wrapper {
        height: 180px;
        order: -1; /* Muestra la imagen arriba del gráfico en móviles */
    }
}

/* --- ESTILOS DE DASHBOARD GRÁFICO INTERACTIVO (LANDING DE CLASE MUNDIAL) --- */
.chart-dashboard-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 1.25rem;
}

.chart-circular-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-inset);
    transition: transform var(--transition-fast);
}

.chart-circular-wrapper:hover {
    transform: scale(1.03);
}

.circular-chart {
    display: block;
    width: 110px;
    height: 110px;
    max-width: 100%;
}

.circle-bg {
    fill: none;
    stroke: var(--bg-surface);
    stroke-width: 3.2;
}

.circle {
    fill: none;
    stroke-width: 3.2;
    stroke-linecap: round;
    transition: stroke-dasharray 0.8s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.5s ease;
    stroke: var(--secondary);
}

.circle.sports-circle {
    stroke: var(--secondary);
}

.percentage {
    fill: var(--primary);
    font-family: var(--font-heading);
    font-size: 0.55rem;
    font-weight: 800;
    text-anchor: middle;
}

.circle-caption {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    text-align: center;
    white-space: nowrap;
}

/* Contenedor de Landing Page Ancho de Clase Mundial (80% con margen) */
.container-landing {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 1200px) {
    .container-landing {
        width: 80%;
        padding: 0 2rem;
    }
}

/* Efectos de Movimiento de Blobs Interactivos (Cuerpo HTML) */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 1;
    pointer-events: none;
    transition: transform 0.6s cubic-bezier(0.1, 0.8, 0.3, 1); /* Suavizado interactivo */
}

.blob-1 {
    width: 450px;
    height: 450px;
    top: -120px;
    left: -100px;
    background: radial-gradient(circle, rgba(var(--primary-h), var(--primary-s), var(--primary-l), 0.12) 0%, transparent 75%);
    animation: floatBlob1 20s infinite alternate ease-in-out;
}

.blob-2 {
    width: 450px;
    height: 450px;
    bottom: -150px;
    right: -100px;
    background: radial-gradient(circle, rgba(var(--accent-h), var(--accent-s), var(--accent-l), 0.09) 0%, transparent 75%);
    animation: floatBlob2 20s infinite alternate ease-in-out;
}

@keyframes floatBlob1 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, 30px) scale(1.1); }
    100% { transform: translate(-20px, -40px) scale(0.95); }
}

@keyframes floatBlob2 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 50px) scale(1.15); }
    100% { transform: translate(40px, -30px) scale(0.9); }
}

/* --- BOTÓN CTA HERO MASSIVE Y GLOWING --- */
.btn-hero-cta {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    padding: 1.1rem 3.5rem;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--accent) 0%, #d95e0c 100%);
    color: white !important;
    box-shadow: 0 8px 30px rgba(239, 133, 57, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: cta-pulse 2s infinite;
}

.btn-hero-cta:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 12px 35px rgba(239, 133, 57, 0.55);
}

.btn-hero-cta:active {
    transform: scale(0.97);
}

@keyframes cta-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 133, 57, 0.5);
    }
    70% {
        box-shadow: 0 0 0 18px rgba(239, 133, 57, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 133, 57, 0);
    }
}

/* --- REVELADO EN SCROLL CON ALTA PERFORMANCE (GPU HABILITADA) --- */
.reveal-element {
    opacity: 0;
    transform: translateY(35px) scale(0.99);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.reveal-element.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* --- SOMBRA GLOW PARA GRÁFICOS SVG --- */
.circular-chart {
    filter: drop-shadow(0 4px 10px rgba(var(--primary-h), var(--primary-s), var(--primary-l), 0.15));
    transition: filter var(--transition-normal);
}

.circular-chart:hover {
    filter: drop-shadow(0 6px 14px rgba(var(--primary-h), var(--primary-s), var(--primary-l), 0.28));
}

/* Efecto de Movimiento Gradiente Infinito para el Encabezado Hero */
.landing-hero h1 {
    background: linear-gradient(270deg, var(--primary), var(--secondary), var(--accent), var(--primary));
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 8s ease infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@media (max-width: 600px) {
    .chart-dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .circular-chart {
        width: 90px;
        height: 90px;
    }
}

/* --- COMUNIDAD CTA PREMIUM --- */
.btn-community {
    background: linear-gradient(135deg, var(--secondary) 0%, hsl(var(--secondary-h), var(--secondary-s), 65%) 100%);
    color: white !important;
    font-weight: 700;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 15px rgba(var(--secondary-h), var(--secondary-s), var(--secondary-l), 0.25);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-community:hover {
    background: linear-gradient(135deg, var(--primary) 0%, hsl(var(--primary-h), var(--primary-s), 25%) 100%);
    box-shadow: 0 6px 20px rgba(var(--primary-h), var(--primary-s), var(--primary-l), 0.3);
    transform: translateY(-2px) scale(1.03);
}

/* --- SECCIÓN DEMO INTERACTIVA DE RECETAS --- */
.recipe-demo-section {
    padding: 5rem 1.5rem;
    background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-light) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    margin-top: 4rem;
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.recipe-demo-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--secondary-h), var(--secondary-s), var(--secondary-l), 0.05) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.demo-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3.5rem;
    position: relative;
    z-index: 2;
}

.demo-header h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
}

.demo-header p {
    font-size: 1.15rem;
    color: var(--text-secondary);
}

.demo-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
    align-items: stretch;
    position: relative;
    z-index: 2;
}

.demo-recipe-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.demo-recipe-card:hover {
    transform: translateY(-3px);
}

.demo-recipe-image-wrapper {
    margin: -2.5rem -2.5rem 1.5rem -2.5rem;
    height: 300px;
    overflow: hidden;
    border-top-left-radius: calc(var(--radius-lg) - 1px);
    border-top-right-radius: calc(var(--radius-lg) - 1px);
}

.demo-recipe-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s ease;
}

.demo-recipe-card:hover .demo-recipe-image-wrapper img {
    transform: scale(1.05);
}

.demo-recipe-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.demo-recipe-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.portion-control-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.portion-label {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.portion-control {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.portion-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background-color: var(--bg-surface);
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    user-select: none;
}

.portion-btn:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.portion-btn:active {
    transform: scale(0.9);
}

.portion-value {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
    min-width: 100px;
    text-align: center;
}

.demo-ingredients-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 0.5rem;
}

.demo-ingredients-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.demo-ingredient-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}

.ingredient-qty {
    font-weight: 800;
    color: var(--accent);
    transition: all 0.3s ease;
}

.demo-stats-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.demo-stats-header {
    text-align: center;
    margin-bottom: 2rem;
}

.demo-calories-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.25rem;
    text-shadow: 0 4px 10px rgba(var(--primary-h), var(--primary-s), var(--primary-l), 0.15);
}

.demo-calories-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.demo-macros-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.macro-bar-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.macro-bar-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 700;
}

.macro-bar-label {
    color: var(--text-primary);
}

.macro-bar-qty {
    color: var(--text-secondary);
}

.macro-bar-wrapper {
    height: 12px;
    background-color: var(--bg-light);
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.macro-bar {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.macro-bar.carb-bar { background: linear-gradient(90deg, var(--cognitive-blue) 0%, #60a5fa 100%); }
.macro-bar.prot-bar { background: linear-gradient(90deg, var(--primary-container) 0%, #34d399 100%); }
.macro-bar.fat-bar { background: linear-gradient(90deg, var(--accent) 0%, #f08d77 100%); }

/* --- SECCIÓN MITOS Y VERDADES 3D FLIPPING --- */
.myths-section {
    padding: 5rem 1.5rem;
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.myths-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4.5rem;
}

.myths-header h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
}

.myths-header p {
    font-size: 1.15rem;
    color: var(--text-secondary);
}

.myths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.myth-card {
    perspective: 1000px;
    cursor: pointer;
    height: 280px;
}

.myth-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.myth-card:hover .myth-card-inner, .myth-card.flipped .myth-card-inner {
    transform: rotateY(180deg);
}

.myth-card-front, .myth-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.myth-card-front {
    background-color: var(--bg-surface);
    color: var(--text-primary);
}

.myth-card:hover .myth-card-front {
    border-color: var(--secondary);
    box-shadow: var(--shadow-lg);
}

.myth-card-back {
    color: white;
    transform: rotateY(180deg);
    border: none;
    border-radius: var(--radius-lg);
}

.myths-grid .myth-card:nth-child(1) .myth-card-back {
    background-color: var(--primary-container);
    color: var(--on-primary-container);
}

.myths-grid .myth-card:nth-child(2) .myth-card-back {
    background-color: var(--secondary-container);
    color: white;
}

.myths-grid .myth-card:nth-child(3) .myth-card-back {
    background-color: var(--accent);
    color: white;
}

.myth-image-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 280px;
    position: relative;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.myth-image-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.myth-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s ease;
}

.myth-image-card:hover img {
    transform: scale(1.04);
}

.myth-badge {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
}

.myth-card-front .myth-badge {
    background-color: var(--danger-light);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.15);
}

.myth-card-back .myth-badge {
    background-color: var(--success-light);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.myth-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.5;
}

.myth-desc {
    font-size: 0.92rem;
    line-height: 1.6;
}

/* --- RESPONSIVIDAD GENERAL ADICIONAL --- */
@media (max-width: 900px) {
    .demo-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .recipe-demo-section, .myths-section {
        padding: 3rem 1.25rem;
        margin-top: 2rem;
        margin-bottom: 2rem;
    }
    
    .demo-recipe-card, .demo-stats-card {
        padding: 1.75rem 1.5rem;
    }
    
    .myth-card {
        height: 260px;
    }
}

/* Breakpoint especial para la cabecera (evita solapamiento en tablets/laptops chicas) */
@media (max-width: 1150px) {
    .landing-nav {
        display: none !important;
    }
    .landing-header .no-mobile {
        display: none !important;
    }
    .landing-header .only-mobile {
        display: inline-flex !important;
    }
}

/* --- HERO SECTION 2-COLUMN GRID & GLASS CARDS --- */
.hero-grid-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3.5rem;
    align-items: center;
    text-align: left;
}

.hero-text-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.hero-image-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: visible; /* Habilita que las tarjetas glass sobresalgan ligeramente */
    width: 100%;
    max-width: 420px;
    height: 480px;
    box-shadow: var(--shadow-xl);
}

.hero-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.glass-stat-card {
    position: absolute;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-lg);
    z-index: 10;
    transition: transform var(--transition-normal);
    white-space: nowrap;
}

.glass-stat-card:hover {
    transform: translateY(-3px);
}

.stat-icon {
    font-size: 1.5rem;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--primary);
    line-height: 1.2;
}

.stat-lbl {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.card-top-right {
    top: 4rem;
    right: -5.5rem;
}

.card-bottom-left {
    bottom: 4rem;
    left: -5.5rem;
}

@media (max-width: 900px) {
    .hero-grid-layout {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-text-content {
        align-items: center;
        text-align: center;
    }
    
    .hero-image-content {
        display: none !important;
    }
}

/* --- FOOTER DE LA PÁGINA PÚBLICA --- */
.landing-footer {
    background-color: #061f17 !important; /* Fondo verde oscuro premium */
    border-top: 1px solid #103d2e;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    color: #b2d2c4 !important; /* Color secundario de alto contraste */
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-logo {
    text-decoration: none;
    font-size: 1.5rem !important;
    font-weight: 800;
    color: #ffffff !important;
}

.footer-logo .accent-text {
    color: #34d399 !important; /* Verde menta claro */
    font-weight: 800;
}

.footer-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #c2dad0 !important;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.social-icon {
    color: #b2d2c4 !important;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.social-icon:hover {
    color: #34d399 !important;
    transform: translateY(-2px);
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff !important;
}

.footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-list li {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #d1e5dd !important;
}

.footer-links-list li strong {
    color: #ffffff !important;
}

.footer-contact-link {
    color: #34d399 !important; /* Verde menta claro para links */
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.footer-contact-link:hover {
    color: #6ee7b7 !important;
    transform: translateX(3px);
}

.footer-bottom {
    border-top: 1px solid #103d2e;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.88rem;
    color: #8fae9f !important;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .landing-footer {
        padding: 3rem 1.25rem 2rem;
    }
}

/* -----------------------------------------------------------------
   NUEVOS COMPONENTES: MOMENTOS, CALCULADORAS, CAROUSEL, FAQ Y PWA
   ----------------------------------------------------------------- */

/* Comunidad Activa Stats Grid */
.stats-grid {
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal);
}
.stats-grid:hover {
    transform: translateY(-2px);
}
.counter-number {
    transition: all 0.5s ease;
}

/* Moment Tabs & Content Cards */
.moments-tabs-container {
    margin-top: 2rem;
}
.moment-tab-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 700 !important;
}
.moment-tab-btn.active {
    background-color: var(--primary) !important;
    color: white !important;
    border-color: var(--primary) !important;
    box-shadow: var(--shadow-md);
}
.moment-card-grid {
    align-items: center;
}
.moment-card-visual {
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: transform 0.5s ease;
}
.moment-content-card:hover .moment-card-visual {
    transform: scale(1.02);
}

/* Leads Deficit & Hormonal Thermometer Forms */
.leads-layout-grid {
    margin-top: 3rem;
}
.leads-card-form {
    box-shadow: var(--shadow-md);
    transition: box-shadow 0.3s ease;
}
.leads-card-form:hover {
    box-shadow: var(--shadow-lg);
}

/* Test Hormonal Question buttons styles */
.hormonal-question .btn {
    flex: 1;
    justify-content: center;
    font-weight: 700;
}

/* Stories Carousel */
.stories-carousel-container {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
}
.carousel-dot {
    transition: all 0.3s ease;
}
.carousel-dot.active {
    width: 24px !important;
    border-radius: var(--radius-full) !important;
}

/* FAQ Accordion */
.faq-accordion-container {
    margin-top: 2rem;
}
.faq-item {
    transition: box-shadow 0.3s ease;
}
.faq-item:hover {
    box-shadow: var(--shadow-sm);
}
.faq-header-btn:hover {
    color: var(--primary) !important;
}

/* PWA App install banner */
.pwa-install-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 550px;
    background: linear-gradient(135deg, #061f17 0%, #0b3c2c 100%);
    border: 1px solid #10b981;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    z-index: 1000;
    flex-wrap: wrap;
}

.pwa-banner-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pwa-icon {
    font-size: 2rem;
}

@media (max-width: 768px) {
    .moment-card-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    .moment-card-visual {
        min-height: 180px !important;
    }
    .pwa-install-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .pwa-banner-content {
        flex-direction: column;
        gap: 0.5rem;
    }
    .pwa-install-banner .flex {
        justify-content: center;
    }
}



