/* ===== VARIABLES ===== */
:root {
    --color-primary: #0a3d62;
    --color-primary-dark: #06283d;
    --color-accent: #c9a14a;
    --color-accent-dark: #a78434;
    --color-accent-light: #e0bc6c;
    --color-secondary: #1e5f8b;
    --color-bg: #ffffff;
    --color-bg-alt: #f9f7f3;
    --color-bg-dark: #0a3d62;
    --color-text: #2c3e50;
    --color-text-light: #6c7a89;
    --color-white: #ffffff;
    --color-border: rgba(10, 61, 98, 0.1);

    --shadow-sm: 0 2px 8px rgba(10, 61, 98, 0.08);
    --shadow-md: 0 8px 24px rgba(10, 61, 98, 0.12);
    --shadow-lg: 0 20px 50px rgba(10, 61, 98, 0.2);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container: 1200px;
}

/* ===== RESET ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 100px 0; }
.section__header { text-align: center; margin-bottom: 60px; }
.section__header--light { color: var(--color-white); }
.section__pretitle {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.section__title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 16px;
    line-height: 1.2;
}
.section__header--light .section__title { color: var(--color-white); }
.section__title em { color: var(--color-accent); font-style: italic; }
.section__subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    max-width: 700px;
    margin: 0 auto;
}
.section__header--light .section__subtitle { color: rgba(255, 255, 255, 0.9); }

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}
.btn--primary {
    background: var(--color-accent);
    color: var(--color-primary-dark);
    box-shadow: var(--shadow-md);
}
.btn--primary:hover {
    background: var(--color-accent-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.btn--ghost {
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}
.btn--ghost:hover { background: var(--color-white); color: var(--color-primary); }
.btn--full { width: 100%; }

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}
.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 10px 0;
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}
.nav__logo { display: flex; align-items: center; gap: 12px; z-index: 1001; }
.nav__logo-img { height: 40px; width: auto; }
.nav__logo-img--light { display: block; }
.nav__logo-img--dark { display: none; }
.header.scrolled .nav__logo-img--light { display: none; }
.header.scrolled .nav__logo-img--dark { display: block; }
.nav__logo-text { display: flex; flex-direction: column; }
.nav__logo-name {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-white);
    line-height: 1.1;
}
.header.scrolled .nav__logo-name { color: var(--color-primary); }
.nav__menu { display: flex; gap: 22px; align-items: center; }
.nav__link {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--color-white);
    transition: var(--transition);
    padding: 8px 0;
    white-space: nowrap;
    letter-spacing: 0.01em;
}
.header.scrolled .nav__link { color: var(--color-text); }
.nav__link:hover { color: var(--color-accent); }
.nav__link--cta {
    background: var(--color-accent);
    color: var(--color-primary-dark);
    padding: 10px 18px;
    border-radius: 50px;
    white-space: nowrap;
}
.nav__link--cta:hover { background: var(--color-accent-light); color: var(--color-primary-dark); }

/* ===== Language switcher (ES / EN) ===== */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background 0.3s ease, border-color 0.3s ease;
    margin-left: 18px;
    flex-shrink: 0;
}
.header.scrolled .lang-switch {
    border-color: rgba(10, 61, 98, 0.25);
    background: rgba(10, 61, 98, 0.05);
}
.lang-switch__btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--color-white);
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
    line-height: 1;
}
.header.scrolled .lang-switch__btn { color: var(--color-text); }
.lang-switch__btn:hover {
    color: var(--color-accent);
}
.lang-switch__btn.is-active {
    background: var(--color-accent);
    color: var(--color-primary-dark);
}
.lang-switch__btn.is-active:hover { color: var(--color-primary-dark); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 1001; margin-left: 12px; flex-shrink: 0; }
.nav__toggle span {
    width: 25px; height: 2px;
    background: var(--color-white);
    transition: var(--transition);
}
.header.scrolled .nav__toggle span { background: var(--color-primary); }
.nav__toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }

@media (max-width: 1100px) {
    .nav__menu {
        position: fixed; top: 0; right: -100%;
        width: 80%; max-width: 360px; height: 100vh;
        background: var(--color-primary-dark);
        flex-direction: column; justify-content: center;
        gap: 22px; padding: 40px;
        transition: right 0.4s ease;
    }
    .nav__menu.active { right: 0; }
    .nav__menu .nav__link { color: var(--color-white); font-size: 1.05rem; white-space: normal; }
    .nav__toggle { display: flex; }
    .lang-switch { margin-left: 0; margin-right: 12px; }
    .nav__logo-name { display: none; }
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    background:
        linear-gradient(105deg, rgba(6, 40, 61, 0.78) 0%, rgba(6, 40, 61, 0.55) 45%, rgba(6, 40, 61, 0.15) 100%),
        url('assets/images/hero-chimo-21.jpg?v=29') center center / cover no-repeat;
    position: relative;
    display: flex; align-items: center; justify-content: flex-start;
    text-align: left; color: var(--color-white);
    overflow: hidden;
}
.hero__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(105deg, rgba(6, 40, 61, 0.35) 0%, rgba(6, 40, 61, 0.10) 60%, transparent 100%);
}
.hero__content { position: relative; z-index: 1; padding: 120px 24px 60px; max-width: 720px; margin-left: max(16px, calc((100vw - var(--container)) / 2 + 16px)); margin-right: auto; text-align: left; }
.hero__badge {
    display: inline-block;
    background: rgba(201, 161, 74, 0.2);
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    padding: 6px 16px; border-radius: 50px;
    font-size: 0.85rem; font-weight: 500;
    margin-bottom: 20px;
}
.hero__title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700; line-height: 1.1;
    margin-bottom: 20px;
    text-align: left;
}
.hero__title-line { display: block; text-align: left; }
.hero__title-accent { color: var(--color-accent); font-style: italic; }
.hero__slogan {
    font-size: 1.15rem; color: rgba(255, 255, 255, 0.95);
    max-width: 600px; margin: 0 0 32px;
    text-align: left;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}
.hero__cta {
    display: flex; gap: 16px; justify-content: flex-start; flex-wrap: wrap;
    margin-bottom: 60px;
}
.hero__countdown {
    display: flex; gap: 20px; justify-content: flex-start; flex-wrap: wrap;
}
.countdown__item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 16px 24px; min-width: 90px;
}
.countdown__number {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.5rem; font-weight: 700;
    color: var(--color-accent); line-height: 1;
}
.countdown__label {
    display: block;
    font-size: 0.8rem; text-transform: uppercase;
    letter-spacing: 1px; color: rgba(255, 255, 255, 0.8);
    margin-top: 4px;
}
.hero__scroll {
    position: absolute; bottom: 30px; left: 50%;
    transform: translateX(-50%);
    width: 30px; height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    display: flex; justify-content: center; padding-top: 8px;
    z-index: 2;
}
.hero__scroll span {
    width: 4px; height: 8px;
    background: var(--color-white); border-radius: 2px;
    animation: scroll-bounce 2s infinite;
}
@keyframes scroll-bounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(12px); opacity: 0.3; }
}

/* ===== ABOUT ===== */
.about { background: var(--color-bg); }
.about__grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}
.about__card {
    background: var(--color-white);
    padding: 32px 24px; border-radius: var(--radius-md);
    text-align: center; box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--color-border);
}
.about__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.about__icon { font-size: 3rem; margin-bottom: 16px; }
.about__card h3 {
    font-family: var(--font-serif);
    font-size: 1.35rem; color: var(--color-primary);
    margin-bottom: 12px;
}
.about__card p { color: var(--color-text-light); font-size: 0.95rem; }

/* ===== BENEFITS ===== */
.benefits {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
}
.benefits__grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.benefit {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 32px 24px; border-radius: var(--radius-md);
    transition: var(--transition);
}
.benefit:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-4px); }
.benefit__number {
    font-family: var(--font-serif);
    font-size: 2rem; color: var(--color-accent);
    font-weight: 700; margin-bottom: 12px;
}
.benefit h3 { font-size: 1.2rem; margin-bottom: 8px; color: var(--color-white); }
.benefit p { color: rgba(255, 255, 255, 0.8); font-size: 0.95rem; }

/* ===== GALLERY & VIDEO LOOP ===== */
.gallery { background: var(--color-bg-alt); }
.gallery__grid { max-width: 1100px; margin: 0 auto; }

.gallery__video {
    display: flex !important;
    flex-direction: column !important;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--color-primary-dark);
}
.gallery__video-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    flex-shrink: 0;
    width: 100%;
}
.gallery__video-el {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #000;
}
.gallery__video-caption {
    position: static !important;
    display: block !important;
    width: 100%;
    padding: 24px 32px 28px;
    background: var(--color-white);
    color: var(--color-primary);
    text-align: center;
    margin: 0;
}
.gallery__video-caption h4 {
    font-family: var(--font-serif);
    font-size: clamp(1.15rem, 2.2vw, 1.6rem);
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--color-primary);
}
.gallery__video-caption p {
    font-size: 0.92rem;
    color: var(--color-text-light);
    max-width: 620px;
    margin: 0 auto;
}

/* Botón flotante para activar/desactivar el sound del video */
.gallery__sound {
    position: absolute;
    top: 16px; right: 16px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px 10px 12px;
    border-radius: 999px;
    background: rgba(6, 40, 61, 0.75);
    color: var(--color-white);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer;
    transition: background .2s ease, transform .2s ease, opacity .2s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.gallery__sound:hover { background: rgba(6, 40, 61, 0.92); transform: translateY(-1px); }
.gallery__sound:active { transform: translateY(0); }
.gallery__sound-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: none;
}
.gallery__sound[aria-pressed="false"] .gallery__sound-icon--off { display: block; }
.gallery__sound[aria-pressed="true"]  .gallery__sound-icon--on  { display: block; }
.gallery__sound[aria-pressed="true"]  {
    background: var(--color-accent);
    color: var(--color-primary-dark);
    border-color: var(--color-accent);
}
.gallery__sound-label { font-size: 0.85rem; }
@media (max-width: 560px) {
    .gallery__sound {
        top: auto;
        bottom: 16px;
        right: 16px;
        padding: 8px 12px;
        font-size: 0.78rem;
    }
    .gallery__sound-label { display: none; }
}

/* ===== MEMBERSHIP ===== */
.membership { background: var(--color-white); }
.membership__wrapper {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 60px; align-items: center;
}
@media (max-width: 900px) { .membership__wrapper { grid-template-columns: 1fr; } }
.membership__info p { margin-bottom: 20px; color: var(--color-text-light); }
.membership__list { margin-top: 20px; }
.membership__list li { padding: 10px 0; color: var(--color-text); font-size: 1rem; }

.membership__form {
    background: var(--color-bg-alt);
    padding: 40px; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.membership__form h3 {
    font-family: var(--font-serif);
    font-size: 1.75rem; color: var(--color-primary);
    margin-bottom: 8px;
}
.membership__form-sub { color: var(--color-text-light); margin-bottom: 24px; font-size: 0.95rem; }

.form__group { margin-bottom: 18px; }
.form__group label {
    display: block; font-size: 0.9rem; font-weight: 500;
    margin-bottom: 6px; color: var(--color-text);
}
.form__group input, .form__group select {
    width: 100%; padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: inherit; font-size: 0.95rem;
    background: var(--color-white);
    transition: var(--transition);
}
.form__group input:focus, .form__group select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(201, 161, 74, 0.1);
}
.form__group--check { display: flex; align-items: flex-start; gap: 10px; }
.form__group--check input { width: auto; margin-top: 4px; }
.form__group--check label { font-size: 0.85rem; font-weight: 400; color: var(--color-text-light); margin: 0; }

.form__message {
    margin-top: 16px; padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem; text-align: center;
    display: none;
}
.form__message.error { background: #fee; color: #c33; display: block; }
.form__message.success { background: #efe; color: #2a7; display: block; }

/* ===== CONTACT ===== */
.contact { background: var(--color-bg-alt); }
.contact__grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}
.contact__card {
    background: var(--color-white);
    padding: 32px 24px; border-radius: var(--radius-md);
    text-align: center; box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--color-border);
}
.contact__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.contact__icon { font-size: 2.5rem; margin-bottom: 12px; }
.contact__card h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem; color: var(--color-primary);
    margin-bottom: 8px;
}
.contact__card p { color: var(--color-text-light); margin-bottom: 12px; }
.contact__link {
    color: var(--color-accent);
    font-weight: 600; font-size: 0.9rem;
    transition: var(--transition);
}
.contact__link:hover { color: var(--color-accent-dark); }

/* ===== FOOTER ===== */
.footer {
    background: var(--color-primary-dark);
    color: var(--color-white);
    padding: 60px 0 30px;
}
.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 40px; margin-bottom: 40px;
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer__grid { grid-template-columns: 1fr; } }

.footer__col h4 {
    font-family: var(--font-serif);
    font-size: 1.1rem; margin-bottom: 16px;
    color: var(--color-accent);
}
.footer__col ul li { margin-bottom: 8px; }
.footer__col a { color: rgba(255, 255, 255, 0.8); font-size: 0.9rem; transition: var(--transition); }
.footer__col a:hover { color: var(--color-accent); }
.footer__logo { display: inline-block; margin-bottom: 16px; }
.footer__logo-img { height: 50px; width: auto; }
.footer__col--brand p { color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; margin-bottom: 20px; }
.footer__social { display: flex; gap: 12px; }
.footer__social a {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.footer__social a:hover { background: var(--color-accent); color: var(--color-primary-dark); }
.footer__social svg { width: 18px; height: 18px; }
.footer__link-soon { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.badge-soon {
    background: rgba(201, 161, 74, 0.2);
    color: var(--color-accent);
    padding: 2px 8px; border-radius: 50px;
    font-size: 0.7rem; font-weight: 600;
}
.footer__newsletter { display: flex; gap: 8px; margin-top: 12px; }
.footer__newsletter input {
    flex: 1; padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-white);
    border-radius: var(--radius-sm);
    font-family: inherit; font-size: 0.9rem;
}
.footer__newsletter input::placeholder { color: rgba(255, 255, 255, 0.5); }
.footer__newsletter input:focus { outline: none; border-color: var(--color-accent); }
.footer__newsletter button {
    width: 40px; height: 40px;
    background: var(--color-accent);
    color: var(--color-primary-dark);
    border-radius: var(--radius-sm);
    font-size: 1.2rem; font-weight: 700;
    transition: var(--transition);
}
.footer__newsletter button:hover { background: var(--color-accent-light); }
.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px; text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}
.footer__bottom p { margin-bottom: 4px; }
.footer__bottom a { color: var(--color-accent); }

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed; bottom: 24px; right: 24px;
    width: 56px; height: 56px;
    background: #25D366; color: var(--color-white);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
    animation: pulse 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); background: #1ebd5a; }
.whatsapp-float svg { width: 30px; height: 30px; }
@keyframes pulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.7), 0 0 0 10px rgba(37, 211, 102, 0.1); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
    .section { padding: 60px 0; }
    .hero__content {
        padding: 100px 20px 40px;
        margin-left: 0;
        margin-right: 0;
        text-align: center;
    }
    .hero__title, .hero__title-line { text-align: center; }
    .hero__slogan { text-align: center; margin: 0 auto 32px; }
    .hero__cta { justify-content: center; }
    .hero__countdown { justify-content: center; }
    .gallery__video-caption { padding: 20px 20px 22px; }
    .gallery__video-caption p { font-size: 0.88rem; }
    .membership__form { padding: 28px 20px; }
}
