/* Variables de Diseño Globales */
:root {
    --bg-color: #F8F6F1;
    --primary-color: #1A4D2E;
    --accent-color: #4CAF7D;
    --text-primary: #1A1A1A;
    --text-secondary: #6B7280;
    --white: #FFFFFF;

    --font-headline: 'Satoshi', sans-serif;
    --font-body: 'DM Sans', sans-serif;
}

/* Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Jerarquía Tipográfica */
h1,
h2,
h3,
h4,
h5,
h6,
.logo-text {
    font-family: var(--font-headline);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* HEADER / NAVEGACIÓN */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    z-index: 100;
    display: flex;
    align-items: center;
    background-color: transparent;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease, border-bottom 0.3s ease;
}

header.scrolled {
    background-color: rgba(248, 246, 241, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(26, 77, 46, 0.05);
}

.header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.01em;
}

.cta-header {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cta-header:hover {
    background-color: var(--accent-color);
}

/* SECCIÓN HERO */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 0 80px 0;
    /* Padding extra para mobile */
    overflow: hidden;
    /* Evitar scroll horizontal si el mockup sale del borde */
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.hero-text-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    z-index: 2;
}

.app-store-badge-text {
    border: 1px solid rgba(26, 77, 46, 0.25);
    background-color: transparent;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    border-radius: 50px;
    padding: 8px 18px;
    margin-bottom: 24px;
    display: inline-flex;
    align-items: center;
}

.hero-title {
    font-size: clamp(34px, 7vw, 38px);
    font-weight: 900;
    /* Black/Extra Bold */
    color: var(--primary-color);
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(17px, 2vw + 10px, 20px);
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 32px;
    line-height: 1.5;
}

/* Formulario */
.hero-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 520px;
}

.hero-form input[type="email"] {
    width: 100%;
    background-color: var(--white);
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    padding: 16px 18px;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-primary);
    transition: all 0.3s ease;
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.hero-form input[type="email"]::placeholder {
    color: #9CA3AF;
}

.hero-form input[type="email"]:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(76, 175, 125, 0.12);
}

.hero-form button[type="submit"] {
    width: 100%;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    /* Semibold */
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(26, 77, 46, 0.2);
}

.hero-form button[type="submit"]:hover {
    background-color: var(--accent-color);
    box-shadow: 0 6px 20px rgba(26, 77, 46, 0.3);
}

.hero-reinforcement {
    font-size: 14px;
    color: #9CA3AF;
    margin-top: 12px;
}

/* Mockup iPhone */
.hero-image-column {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 50px;
    z-index: 1;
}

.hero-mockup {
    width: 100%;
    max-width: 320px;
    height: auto;
    filter: drop-shadow(0 30px 80px rgba(0, 0, 0, 0.15)) drop-shadow(0 10px 30px rgba(0, 0, 0, 0.08));
    opacity: 0;
    /* Empieza oculto para la animación */
    animation: fadeInMockupMobile 1s ease-out 0.3s forwards;
}

/* SECCIÓN PROBLEMA */
.problem-section {
    background-color: var(--white);
    padding: 80px 0;
}

.problem-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 60px;
}

.problem-title {
    font-size: clamp(28px, 5vw + 10px, 46px);
    font-weight: 700;
    color: var(--primary-color);
    max-width: 700px;
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.problem-subtitle {
    font-size: clamp(16px, 2vw + 10px, 20px);
    font-weight: 400;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.5;
}

.problem-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.problem-card {
    background-color: var(--white);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 16px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.card-icon {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-title {
    font-family: var(--font-body);
    font-size: clamp(20px, 2vw + 10px, 22px);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.3;
}

.card-description {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Base Intersection Observer Scroll Animates */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1.is-visible {
    transition-delay: 0s;
}

.delay-2.is-visible {
    transition-delay: 0.1s;
}

.delay-3.is-visible {
    transition-delay: 0.2s;
}

.delay-4.is-visible {
    transition-delay: 0.3s;
}

/* SECCIÓN ANTI-SCORE */
.anti-score-section {
    background-color: var(--bg-color);
    padding: 80px 0;
    overflow: hidden;
}

.anti-score-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 60px;
}

.anti-score-title {
    font-size: clamp(28px, 5vw + 10px, 48px);
    font-weight: 700;
    color: var(--primary-color);
    max-width: 750px;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.anti-score-subtitle {
    font-size: clamp(16px, 2vw + 10px, 20px);
    font-weight: 400;
    color: var(--text-secondary);
    max-width: 650px;
    line-height: 1.5;
}

.anti-score-cards-wrapper {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.anti-score-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
}

.anti-score-card {
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    position: relative;
    overflow: hidden;
    /* Fija cualquier sangrado de background sobre el border-top */
}

.card-keto {
    border: none !important;
    border-top: 4px solid #4CAF7D !important;
    overflow: hidden;
}

.card-sii {
    border: none !important;
    border-top: 4px solid #E55050 !important;
    overflow: hidden;
}

.badge-profile {
    border-radius: 50px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
    display: inline-block;
}

/* Badge VERDE para perfiles con veredicto positivo */
.badge-positive {
    background-color: #EBF5F0 !important;
    color: #2D8A56 !important;
    border: 1px solid #C3E2D1 !important;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 50px;
    display: inline-block;
}

/* Badge ROJO para perfiles con veredicto negativo */
.badge-negative {
    background-color: #FDF0F0 !important;
    color: #D14343 !important;
    border: 1px solid #F0C9C9 !important;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 50px;
    display: inline-block;
}

.product-name {
    font-family: var(--font-body);
    font-size: clamp(20px, 2vw + 10px, 22px);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.3;
}

.verdict {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.verdict svg {
    flex-shrink: 0;
}

.verdict span {
    font-size: 18px;
    font-weight: 600;
}

.keto-verdict {
    color: var(--accent-color);
}

.sii-verdict {
    color: #E55050;
}

.verdict-explanation {
    font-size: clamp(15px, 2vw, 16px);
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Animations Anti-Score */
.scroll-animate-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.7s ease-out 0.2s, transform 0.7s ease-out 0.2s;
}

.scroll-animate-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.7s ease-out 0.2s, transform 0.7s ease-out 0.2s;
}

.scroll-animate-left.is-visible,
.scroll-animate-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* SECCIÓN SOLUCIÓN */
.solution-section {
    background-color: var(--white);
    padding: 80px 0;
    overflow: hidden;
}

.solution-content {
    max-width: 1100px;
    margin: 0 auto;
}

.solution-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 64px;
}

.solution-label {
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--accent-color);
    margin-bottom: 16px;
}

.solution-title {
    font-size: clamp(28px, 5vw + 10px, 48px);
    font-weight: 700;
    color: var(--primary-color);
    max-width: 700px;
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.solution-subtitle {
    font-size: clamp(16px, 2vw + 10px, 20px);
    font-weight: 400;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.5;
}

.solution-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.solution-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 16px;
}

.block-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background-color: rgba(76, 175, 125, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.block-title {
    font-family: var(--font-body);
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.3;
}

.block-description {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* SECCIÓN SOCIAL PROOF */
.social-proof-section {
    background-color: var(--bg-color);
    padding: 72px 0;
}

.social-proof-mascot {
    height: 64px;
    width: auto;
    object-fit: contain;
    margin-bottom: 20px;
}

.social-proof-content {
    max-width: 800px;
    margin: 0 auto;
}

.social-proof-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.count-up-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(52px, 8vw + 10px, 80px);
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
}

.social-proof-text {
    font-size: clamp(18px, 3vw + 10px, 26px);
    font-weight: 500;
    color: var(--text-primary);
    margin-top: 8px;
}

.social-proof-divider {
    width: 60px;
    height: 2px;
    background-color: var(--accent-color);
    margin: 32px auto 0;
}

.social-proof-quote {
    font-family: var(--font-body);
    font-size: clamp(16px, 2vw + 10px, 20px);
    font-weight: 400;
    font-style: italic;
    color: var(--text-secondary);
    max-width: 550px;
    margin-top: 32px;
    line-height: 1.5;
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.trust-badge {
    background-color: var(--white);
    border: 1px solid #E5E7EB;
    border-radius: 50px;
    padding: 10px 20px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: #4B5563;
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-icon {
    font-size: 16px;
}

/* SECCIÓN CTA FINAL */
.cta-final-section {
    background-color: var(--primary-color);
    padding: 80px 0;
    scroll-margin-top: 80px;
}

.cta-final-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-final-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cta-mascot {
    height: 56px;
    width: auto;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.15));
}

.cta-final-title {
    font-size: clamp(28px, 5vw + 10px, 48px);
    font-weight: 700;
    color: var(--white);
    max-width: 600px;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.cta-final-subtitle {
    font-size: clamp(16px, 2vw + 10px, 20px);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    max-width: 520px;
    /* Margin top as requested 20px is achieved combining margin-bottom from title */
    line-height: 1.5;
}

.cta-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 480px;
    margin-top: 40px;
}

.cta-form input[type="email"] {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 16px 18px;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--white);
    transition: all 0.3s ease;
    outline: none;
}

.cta-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.cta-form input[type="email"]:focus {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(76, 175, 125, 0.2);
}

.cta-form button[type="submit"] {
    width: 100%;
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(76, 175, 125, 0.3);
}

.cta-form button[type="submit"]:hover {
    background-color: #5BC48A;
    box-shadow: 0 4px 20px rgba(76, 175, 125, 0.5);
}

.cta-reinforcement {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 16px;
}

/* FOOTER */
.main-footer {
    background-color: #142E1F;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-row-1 {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.footer-logo {
    font-size: 20px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-headline);
}

.footer-dot-separator {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.3);
    margin: 0 20px;
}

.social-icon-link {
    text-decoration: none !important;
    color: inherit !important;
    display: flex;
    align-items: center;
}

.tiktok-icon {
    margin-left: 16px;
}

.social-icon-img {
    height: 22px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.social-icon-link:hover .social-icon-img {
    opacity: 1;
}

.footer-row-2 {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
}

.legal-separator {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.3);
}

.main-footer a {
    color: rgba(255, 255, 255, 0.3) !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.main-footer a:visited {
    color: rgba(255, 255, 255, 0.3) !important;
}

.main-footer a:hover {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* ANIMACIONES GLOBALES EXTRAS */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.mascot-float {
    animation: float 3s ease-in-out infinite;
}

/* ANIMACIONES COMPONENTES */
.animate-item {
    opacity: 0;
}

.item-1 {
    animation: fadeInUpItem 0.7s ease-out 0s forwards;
}

.item-2 {
    animation: fadeInUpItem 0.7s ease-out 0.1s forwards;
}

.item-3 {
    animation: fadeInUpItem 0.7s ease-out 0.2s forwards;
}

.item-4 {
    animation: fadeInUpItem 0.7s ease-out 0.3s forwards;
}

.item-5 {
    animation: fadeInUpItem 0.7s ease-out 0.4s forwards;
}

@keyframes fadeInUpItem {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInMockupMobile {
    0% {
        opacity: 0;
        transform: translateY(40px) rotate(6deg);
    }

    100% {
        opacity: 1;
        transform: translateY(0) rotate(3deg);
    }
}


/* MEDIA QUERIES (Desktop) */
@media (min-width: 768px) {
    header {
        height: 70px;
    }

    .logo-img {
        height: 38px;
    }

    .logo-text {
        font-size: 26px;
    }

    .cta-header {
        padding: 12px 28px;
        font-size: 15px;
    }

    .container {
        padding: 0 60px;
    }

    .hero-section {
        padding: 100px 0;
        /* Min 90-100vh se mantiene con flex */
    }

    .hero-content {
        flex-direction: row;
        text-align: left;
        align-items: center;
    }

    .hero-text-column {
        width: 55%;
        align-items: flex-start;
        padding-right: 40px;
    }

    .app-store-badge-text {
        margin-bottom: 24px;
    }

    .hero-title {
        font-size: clamp(42px, 5vw + 10px, 58px);
        line-height: 1.1;
        margin-bottom: 20px;
    }

    .hero-subtitle {
        margin-bottom: 32px;
    }

    .hero-form {
        flex-direction: row;
        gap: 12px;
    }

    .hero-form input[type="email"] {
        flex: 1;
    }

    .hero-form button[type="submit"] {
        flex-shrink: 0;
        width: auto;
    }

    /* Mockup right column */
    .hero-image-column {
        width: 45%;
        margin-top: 0;
        justify-content: flex-end;
    }

    .hero-mockup {
        max-width: none;
        height: min(50vw, 550px);
        min-height: 480px;
        object-fit: contain;
        animation: fadeInMockupDesktop 1s ease-out 0.3s forwards;
    }

    /* Elementos Sección Problema en Desktop */
    .problem-section {
        padding: 120px 0;
    }

    .problem-cards-grid {
        flex-direction: row;
        align-items: stretch;
    }

    .problem-card {
        flex: 1;
    }

    /* Elementos Sección Anti-Score en Desktop */
    .anti-score-section {
        padding: 120px 0;
    }

    .anti-score-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .anti-score-card {
        flex: auto;
        /* Se elimina el flex: 1 usando grid pero se deja consistencia */
        padding: 36px;
    }

    /* Elementos Sección Solución en Desktop */
    .solution-section {
        padding: 120px 0;
    }

    .solution-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 48px;
    }

    /* Elementos Sección Social Proof en Desktop */
    .social-proof-section {
        padding: 100px 0;
    }

    .social-proof-mascot {
        height: 72px;
    }

    /* Elementos Sección CTA Final en Desktop */
    .cta-final-section {
        padding: 120px 0;
    }

    .cta-mascot {
        height: 64px;
    }

    .cta-form {
        flex-direction: row;
        gap: 12px;
    }

    .cta-form input[type="email"] {
        flex: 1;
    }

    .cta-form button[type="submit"] {
        flex-shrink: 0;
        width: auto;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 80px;
    }

    .hero-text-column {
        width: 60%;
        padding-right: 60px;
    }

    .hero-image-column {
        width: 40%;
    }
}

@keyframes fadeInMockupDesktop {
    0% {
        opacity: 0;
        transform: translateX(30px) translateY(40px) rotate(6deg);
    }

    100% {
        opacity: 1;
        /* Slight rotation and translation to let it offset towards right edge */
        transform: translateX(30px) translateY(0) rotate(3deg);
    }
}

/* ============================================
   MODALES LEGALES
   ============================================ */

.legal-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.legal-modal.active {
    display: flex;
}

.legal-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.legal-modal-content {
    position: relative;
    background: #FFFFFF;
    border-radius: 16px;
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 48px;
    z-index: 1;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.legal-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #6B7280;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    transition: color 0.3s;
}

.legal-modal-close:hover {
    color: #1A1A1A;
}

.legal-modal-body h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1A4D2E;
    margin-bottom: 24px;
}

.legal-modal-body h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1A1A1A;
    margin-top: 28px;
    margin-bottom: 12px;
}

.legal-modal-body p {
    font-size: 15px;
    line-height: 1.7;
    color: #4B5563;
    margin-bottom: 12px;
}

.legal-modal-body ul {
    padding-left: 20px;
    margin-bottom: 12px;
}

.legal-modal-body li {
    font-size: 15px;
    line-height: 1.7;
    color: #4B5563;
    margin-bottom: 6px;
}

.legal-modal-body a {
    color: #4CAF7D;
    text-decoration: none;
}

.legal-modal-body a:hover {
    text-decoration: underline;
}

.legal-modal-body .legal-update {
    font-size: 13px;
    color: #9CA3AF;
    font-style: italic;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .legal-modal-content {
        padding: 32px 24px;
        max-height: 85vh;
        width: 95%;
        border-radius: 12px;
    }

    .legal-modal-body h2 {
        font-size: 24px;
    }
}

/* ============================================
   BANNER DE COOKIES
   ============================================ */

#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #1A4D2E;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 12px 12px 0 0;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s ease-out;
}

#cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-banner-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

.cookie-banner-link {
    color: #4CAF7D !important;
    text-decoration: none !important;
}

.cookie-banner-link:hover {
    text-decoration: underline !important;
}

.cookie-banner-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn-accept {
    background: #4CAF7D;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap;
}

.cookie-btn-accept:hover {
    background: #5BC48A;
}

.cookie-btn-reject {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.cookie-btn-reject:hover {
    border-color: rgba(255, 255, 255, 0.6);
    color: #FFFFFF;
}

@media (max-width: 768px) {
    .cookie-banner-inner {
        flex-direction: column;
        text-align: center;
        padding: 20px 24px;
        gap: 16px;
    }

    .cookie-banner-buttons {
        width: 100%;
        justify-content: center;
    }
}