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

/* =========================
   VARIABLES
========================= */
:root {
    --koe-green: hsl(164, 90%, 47%);
    --koe-green-glow: hsl(164, 90%, 55%);
    --koe-dark: hsl(160, 20%, 4%);
    --koe-card: hsl(160, 10%, 8%);
    --koe-text-hero: hsl(0, 0%, 100%);
    --koe-text-body: hsl(0, 0%, 94%);
    --koe-text-muted: hsl(0, 0%, 84%);
    --koe-destructive: hsl(0, 72%, 55%);
    --koe-radius: 1rem;

    --koe-surface: rgba(255, 255, 255, 0.04);
    --koe-border: rgba(255, 255, 255, 0.08);
    --koe-text: #ffffff;
    --koe-text-soft: rgba(255, 255, 255, 0.78);
    --koe-text-fine: rgba(255, 255, 255, 0.58);
    --koe-accent: #19e6c3;
    --koe-max: 860px;
    --koe-radius-lg: 22px;
}

/* =========================
   BASE
========================= */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--koe-dark);
    color: var(--koe-text-body);
    overflow-x: hidden;
    position: relative;
}

/* =========================
   BACKGROUND LANDING
========================= */
.koe-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image: url('../images/bg-bienestar.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.koe-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.68);
}

/* =========================
   LAYOUT
========================= */
.koe-section {
    position: relative;
    z-index: 2;
    padding: 80px 24px;
}

.koe-hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding-top: 48px;
    padding-bottom: 48px;
}

.koe-section--accent {
    padding: 100px 24px;
    text-align: center;
}

.koe-wrapper {
    width: 100%;
    max-width: 740px;
}

.koe-wrapper--center {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

/* =========================
   TYPOGRAPHY
========================= */
.koe-label {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.koe-brand {
    color: #9FBF9F;
    font-weight: 600;
}

.koe-heading {
    font-size: 52px;
    line-height: 1.06;
    font-weight: 300;
    letter-spacing: -0.3px;
    color: var(--koe-text-hero);
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.28);
    margin-bottom: 20px;
}

.koe-section-title {
    font-size: 28px;
    line-height: 1.15;
    font-weight: 300;
    color: var(--koe-text-hero);
    margin-bottom: 16px;
    text-wrap: balance;
}

.koe-section-title--large {
    font-size: 36px;
    font-weight: 700;
    color: var(--koe-green);
}

.koe-body {
    font-size: 20px;
    line-height: 1.55;
    color: var(--koe-text-body);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 16px;
}

.koe-subtitle {
    font-size: 24px;
    line-height: 1.35;
    font-weight: 600;
    color: var(--koe-text-hero);
    margin-bottom: 18px;
}

.koe-fine {
    font-size: 14px;
    line-height: 1.5;
    color: var(--koe-text-muted);
    margin-top: 16px;
}

.koe-micro {
    font-size: 14px;
    color: var(--koe-text-muted);
    margin-top: 16px;
}

.koe-disclaimer {
    font-size: 11px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.35);
    max-width: 600px;
    margin-top: 48px;
}

/* =========================
   LISTS
========================= */
.koe-list {
    list-style: none;
    padding: 0;
    max-width: 600px;
}

.koe-list li {
    font-size: 18px;
    line-height: 1.55;
    color: var(--koe-text-body);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.koe-list li::before {
    content: "–";
    color: var(--koe-green);
    font-weight: 700;
    margin-right: 12px;
}

.koe-list--check li::before {
    content: "✓";
}

/* =========================
   FORM
========================= */
.koe-form-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 700px;
    margin-top: 24px;
}

.koe-form-field {
    flex: 1;
    min-width: 0;
}

.koe-input {
    width: 100%;
    height: 64px;
    background: white;
    color: var(--koe-dark);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: var(--koe-radius);
    padding: 0 22px;
    font-size: 16px;
    font-family: 'Open Sans', sans-serif;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.koe-input::placeholder {
    color: rgba(0, 0, 0, 0.42);
}

.koe-input:focus {
    border-color: var(--koe-green);
    box-shadow: 0 0 0 3px rgba(15, 224, 186, 0.18);
}

.koe-input.error {
    border-color: var(--koe-destructive);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.14);
}

.koe-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 64px;
    background: var(--koe-green);
    color: var(--koe-dark);
    font-weight: 800;
    border: 0;
    border-radius: var(--koe-radius);
    padding: 14px 22px;
    cursor: pointer;
    font-size: 18px;
    font-family: 'Open Sans', sans-serif;
    white-space: nowrap;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s, background 0.2s;
    text-decoration: none !important;
}

.koe-cta:hover {
    background: var(--koe-green-glow);
    transform: translateY(-1px);
}

.koe-cta:active {
    transform: translateY(0);
}

.koe-cta-secondary {
    display: inline-block;
    margin-top: 16px;
    padding: 11px 20px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none;
    color: #0f2a1f;
    background-color: #cfe3d6;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.25s ease;
}

.koe-cta-secondary:hover {
    background-color: #b9d6c6;
    transform: translateY(-1px);
}

/* =========================
   PRIVACY CHECKBOX
========================= */
.koe-privacy {
    font-size: 13px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 14px;
    max-width: 660px;
}

.koe-privacy-label {
    display: inline-flex;
    gap: 10px;
    align-items: flex-start;
    cursor: pointer;
}

.koe-privacy input[type="checkbox"] {
    margin-top: 2px;
    accent-color: var(--koe-green);
    cursor: pointer;
}

.koe-privacy a {
    text-decoration: underline;
    color: var(--koe-green);
    transition: opacity 0.2s;
}

.koe-privacy a:hover {
    opacity: 0.8;
}

/* =========================
   ERROR
========================= */
.koe-error {
    font-size: 13px;
    color: var(--koe-destructive);
    min-height: 18px;
    margin-top: 4px;
}

/* =========================
   NAV HAMBURGER
========================= */
.koe-nav-trigger {
    position: fixed;
    top: 32px;
    right: 32px;
    z-index: 50;
    width: 36px;
    height: 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
}

.koe-nav-trigger span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--koe-text-hero);
    border-radius: 2px;
    transition: all 0.3s;
}

.koe-nav-trigger:hover span {
    background: var(--koe-green);
}

/* =========================
   MODAL
========================= */
.koe-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

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

.koe-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s;
}

.koe-modal-panel {
    position: relative;
    width: 100%;
    max-width: 720px;
    border-radius: 24px;
    background: var(--koe-card);
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    overflow-y: auto;
    max-height: 90vh;
    max-height: 90dvh;
    animation: scaleIn 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    text-align: center;
}

.koe-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: color 0.2s;
    padding: 0;
}

.koe-modal-close:hover {
    color: var(--koe-text-hero);
}

.koe-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--koe-text-hero);
    margin-bottom: 16px;
    text-align: center;
}

.koe-modal-title:not(:first-child) {
    margin-top: 32px;
}

.koe-modal-text {
    color: var(--koe-text-body);
    line-height: 1.7;
    margin: 0 auto 32px auto;
    max-width: 520px;
    text-align: center;
}

.koe-contact-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.koe-contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    min-width: 140px;
}

.koe-contact-icon {
    color: var(--koe-green);
}

.koe-contact-item p,
.koe-contact-link {
    color: var(--koe-text-body);
    font-size: 14px;
    margin: 0;
    text-align: center;
}

.koe-contact-link {
    color: var(--koe-green);
    text-decoration: none;
}

.koe-contact-link:hover {
    text-decoration: underline;
}

/* =========================
   ANIMATIONS
========================= */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.animate-fade-up {
    opacity: 0;
    animation: fadeUp 0.7s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

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

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* =========================
   PRIVACY PAGE
========================= */
.privacy-body {
    margin: 0;
    color: var(--koe-text);
    background:
        linear-gradient(rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.88)),
        url("../images/bg-bienestar.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center 20%;
    min-height: 100vh;
    min-height: 100dvh;
}

.privacy-page {
    padding: 48px 20px 80px;
    position: relative;
    z-index: 2;
}

.privacy-wrapper {
    width: 100%;
    max-width: var(--koe-max);
    margin: 0 auto;
}

.privacy-topbar {
    margin-bottom: 28px;
}

.privacy-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--koe-text-soft);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.privacy-back:hover {
    opacity: 0.85;
}

.privacy-card {
    background: var(--koe-surface);
    border: 1px solid var(--koe-border);
    border-radius: var(--koe-radius-lg);
    padding: 32px 24px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.privacy-label {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--koe-accent);
}

.privacy-title {
    margin: 0;
    font-size: clamp(30px, 5vw, 56px);
    line-height: 1.04;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.privacy-intro {
    margin: 18px 0 0;
    font-size: 18px;
    line-height: 1.65;
    color: var(--koe-text-soft);
    max-width: 760px;
}

.privacy-updated {
    margin: 18px 0 0;
    font-size: 14px;
    color: var(--koe-text-fine);
}

.privacy-divider {
    height: 1px;
    background: var(--koe-border);
    margin: 28px 0;
}

.privacy-section + .privacy-section {
    margin-top: 28px;
}

.privacy-section h2 {
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.privacy-section p,
.privacy-section li {
    font-size: 16px;
    line-height: 1.8;
    color: var(--koe-text-soft);
}

.privacy-section p {
    margin: 0 0 14px;
}

.privacy-section ul {
    margin: 0 0 14px 0;
    padding-left: 20px;
}

.privacy-section li + li {
    margin-top: 8px;
}

.privacy-strong {
    color: var(--koe-text);
    font-weight: 700;
}

.privacy-page a {
    color: var(--koe-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.privacy-footer {
    margin-top: 32px;
    font-size: 14px;
    color: var(--koe-text-fine);
}

/* =========================
   RESPONSIVE
========================= */
@media (min-width: 640px) {
    .koe-form-row {
        flex-direction: row;
        gap: 16px;
    }

    .koe-section {
        padding-left: 100px;
        padding-right: 100px;
    }
}

@media (max-width: 991px) {
    .koe-heading {
        font-size: 42px;
    }

    .koe-section-title {
        font-size: 24px;
    }

    .koe-section-title--large {
        font-size: 30px;
    }

    .koe-body {
        font-size: 18px;
    }

    .koe-list li {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .koe-section {
        padding: 56px 16px;
    }

    .koe-hero {
        padding-top: 30px;
        padding-bottom: 30px;
        align-items: flex-start;
    }

    .koe-heading {
        font-size: 34px;
        line-height: 1.1;
    }

    .koe-subtitle {
        font-size: 20px;
    }

    .koe-section-title {
        font-size: 22px;
    }

    .koe-section-title--large {
        font-size: 26px;
    }

    .koe-body {
        font-size: 17px;
    }

    .koe-list li {
        font-size: 15px;
    }

    .koe-input {
        height: 58px;
        font-size: 19px;
        padding: 0 18px;
    }

    .koe-cta {
        height: 58px;
        font-size: 17px;
        padding: 12px 18px;
    }

    .koe-nav-trigger {
        top: 20px;
        right: 20px;
    }

    .koe-modal-panel {
        padding: 32px 24px;
    }

    .koe-section--accent {
        padding: 64px 16px;
    }

    .koe-contact-grid {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 24px;
        text-align: center;
    }

    .koe-contact-item {
        min-width: 0;
        width: 100%;
        align-items: center;
        text-align: center;
    }

    .koe-contact-item p,
    .koe-contact-link {
        text-align: center;
    }

    .koe-bg {
        background-position: center top;
    }

    .privacy-body {
        background-position: center 0%;
    }

    .privacy-page {
        padding: 28px 16px 56px;
    }

    .privacy-card {
        padding: 24px 18px;
        border-radius: 18px;
    }

    .privacy-intro {
        font-size: 16px;
    }

    .privacy-section h2 {
        font-size: 20px;
    }

    .privacy-section p,
    .privacy-section li {
        font-size: 15px;
        line-height: 1.75;
    }
}