/* ============================================
   35 ANIVERSARIO - IGNACIO Y ANA
   Modern editorial anniversary design
   ============================================ */

:root {
    --bg-main: #F7F4F0;
    --bg-alt: #EFEBE5;
    --bg-rosa: #FDF0F3;
    --bg-dark: #3D3530;
    --bg-dark-soft: #4E443E;
    --text-primary: #3D3530;
    --text-body: #5C4F45;
    --text-light: #8A7B6B;
    --text-on-dark: #F0EBE5;
    --text-on-dark-soft: rgba(240, 235, 229, 0.6);
    --accent: #D4447A;
    --accent-soft: #E8799E;
    --accent-muted: #C4667E;
    --arena: #C4B5A3;
    --arena-light: #E8DDD0;
    --white: #ffffff;
    --font-display: 'Fraunces', serif;
    --font-heading: 'Fraunces', serif;
    --font-nav: 'DM Sans', sans-serif;
    --font-body: 'Lora', serif;
    --font-ui: 'DM Sans', sans-serif;
    --font-script: 'Great Vibes', cursive;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    font-family: var(--font-body);
    font-size: 1.1rem;
    background-color: var(--bg-main);
    color: var(--text-body);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ========= SECTION BACKGROUNDS ========= */
.section-rosa {
    background-color: var(--bg-rosa);
}

/* ========= FADE IN ========= */
.fade-in {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========= CONTENT ANIMATIONS ========= */
.anim-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.anim-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.5s ease-out, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.visible .anim-up,
.visible .anim-scale {
    opacity: 1;
    transform: translateY(0) scale(1);
}

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

/* ========= CORAL DECORATIONS ========= */
/* Base — all corals are absolutely positioned PNGs */
.coral {
    position: absolute;
    pointer-events: none;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.07;
    z-index: 0;
}

/* Make sure sections with corals are relative + clip */
.hero, .section-mensaje, .section-countdown,
.section-lugar, .section-reglamento,
.section-info, .section-cta {
    position: relative;
    overflow: hidden;
}

/* --- Image sources --- */
.c-linea { background-image: url('img/corales/coral-linea.png'); }
.c-rosa  { background-image: url('img/corales/coral-rosa.png'); }
.c-azul  { background-image: url('img/corales/coral-azul.png'); }

/* --- Sizes --- */
.c-sm { width: 150px; height: 150px; }
.c-md { width: 250px; height: 250px; }
.c-lg { width: 380px; height: 380px; }

/* --- Positions (each with unique rotation for organic feel) --- */
.c-top-left     { top: -30px;  left: -25px;  transform: rotate(-12deg); }
.c-top-right    { top: -25px;  right: -20px; transform: rotate(15deg) scaleX(-1); }
.c-bottom-left  { bottom: -35px; left: -20px; transform: rotate(8deg) scaleX(-1); }
.c-bottom-right { bottom: -30px; right: -25px; transform: rotate(-18deg); }
.c-mid-left     { top: 40%;    left: -30px;  transform: translateY(-50%) rotate(22deg); }
.c-mid-right    { top: 35%;    right: -25px; transform: translateY(-50%) rotate(-10deg) scaleX(-1); }

/* --- Dark section variant (white corals) --- */
.c-light {
    filter: brightness(0) invert(1);
    opacity: 0.04;
}

/* --- Per-section opacity --- */
.section-mensaje .coral  { opacity: 0.16; }
.section-countdown .coral { opacity: 0.16; }
.section-lugar .coral    { opacity: 0.16; }
.section-reglamento .coral { opacity: 0.16; }
.section-info .coral     { opacity: 0.16; }
.hero .coral             { opacity: 0.16; }
.section-cta .coral      { opacity: 0.16; }

/* ========= NAVBAR ========= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 40px;
    background: transparent;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(61, 53, 48, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    padding: 12px 40px;
}

.nav-brand {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    color: var(--text-on-dark);
    letter-spacing: 2px;
    font-weight: 500;
    text-transform: uppercase;
}

.nav-links {
    display: none;
    gap: 32px;
    white-space: nowrap;
}

.nav-links a {
    font-family: var(--font-ui);
    font-size: 0.78rem;
    color: var(--text-on-dark-soft);
    text-decoration: none;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    transition: color 0.3s;
    font-weight: 400;
}

.nav-links a:hover {
    color: var(--accent-soft);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text-on-dark);
    transition: all 0.3s;
}

.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(5px, -5px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(61, 53, 48, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    padding: 80px 0 30px;
    gap: 5px;
    z-index: 98;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    min-height: 100vh;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.mobile-menu a {
    font-family: var(--font-ui);
    font-size: 0.9rem;
    color: var(--text-on-dark-soft);
    text-decoration: none;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 14px 20px;
    transition: color 0.3s;
}

.mobile-menu a:hover {
    color: var(--accent-soft);
}

/* ========= HERO (DARK) ========= */
.hero {
    background: var(--bg-dark);
    padding: 130px 20px 80px;
    display: flex;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-bg-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: clamp(15rem, 40vw, 28rem);
    font-weight: 900;
    color: rgba(255, 255, 255, 0.13);
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.hero-content {
    max-width: 600px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    font-family: var(--font-ui);
    font-size: 0.78rem;
    color: var(--accent-soft);
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-weight: 400;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    color: var(--text-on-dark);
    margin-bottom: 8px;
    line-height: 1.1;
    font-weight: 300;
}

.hero-title strong {
    font-weight: 800;
    display: block;
    font-size: 4.2rem;
}

.hero-names {
    font-family: var(--font-script);
    font-size: 3.4rem;
    color: var(--accent-soft);
    margin: 15px 0 25px;
    line-height: 1.2;
}

.hero-description {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: var(--text-on-dark-soft);
    line-height: 1.8;
    margin-bottom: 30px;
    font-weight: 400;
    font-style: italic;
}

.hero-date {
    font-family: var(--font-ui);
    font-size: 0.82rem;
    color: var(--arena);
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 500;
    padding-top: 25px;
    border-top: 1px solid rgba(196, 181, 163, 0.2);
    display: inline-block;
}

/* ========= THIN LINE DECORATOR ========= */
.line-accent {
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--arena));
    margin: 0 auto 25px;
    border-radius: 1px;
}

/* ========= SECTION TITLES ========= */
.section-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: 1px;
    font-weight: 600;
}

.section-title-dark {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: 1px;
    font-weight: 600;
}

.section-text {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: var(--text-body);
    text-align: center;
    line-height: 1.8;
    max-width: 480px;
    margin: 0 auto 30px;
    font-weight: 400;
    font-style: italic;
}

/* ========= INVITATION MESSAGE SECTION ========= */
.section-mensaje {
    padding: 70px 20px;
    text-align: center;
}

/* ========= COUNTDOWN ========= */
.section-countdown {
    padding: 50px 20px 60px;
    text-align: center;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-number {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--arena);
    background: var(--white);
    transition: border-color 0.3s;
}

.countdown-item:hover .countdown-number {
    border-color: var(--accent-soft);
}

.countdown-label {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    color: var(--text-light);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-top: 10px;
    font-weight: 500;
}

/* ========= LUGAR SECTION ========= */
.section-lugar {
    padding: 0;
}

.lugar-bg {
    background: var(--bg-alt);
    padding: 70px 20px;
}

.lugar-intro {
    font-family: var(--font-body);
    font-size: 1.15rem;
    color: var(--text-body);
    text-align: center;
    max-width: 480px;
    margin: 0 auto 40px;
    font-weight: 400;
    font-style: italic;
    line-height: 1.7;
}

.lugares-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    max-width: 900px;
    margin: 0 auto;
}

.lugar-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border-top: 3px solid var(--accent);
    display: flex;
    flex-direction: column;
}

.lugar-card:nth-child(2) {
    border-top-color: var(--arena);
}

.lugar-card .map-frame {
    padding: 12px 12px 0;
}

.lugar-card .map-frame iframe {
    border-radius: 8px;
}

.lugar-card .venue-info {
    padding: 18px 20px;
    text-align: left;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.lugar-card .venue-info .btn-map {
    margin-top: auto;
}

.venue-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.venue-step {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--white);
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lugar-card:nth-child(2) .venue-step {
    background: var(--arena);
}

.venue-badge {
    font-family: var(--font-ui);
    font-size: 0.72rem;
    color: var(--text-primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    line-height: 1.3;
}

.venue-badge .venue-time {
    display: block;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--accent);
    font-weight: 700;
    margin-top: 1px;
}

.lugar-card:nth-child(2) .venue-badge .venue-time {
    color: var(--text-body);
}

.venue-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 6px;
    font-weight: 600;
}

.venue-address {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-body);
    margin-bottom: 15px;
    font-weight: 400;
    line-height: 1.5;
}

.btn-map {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 0.78rem;
    color: var(--accent);
    background: transparent;
    padding: 9px 22px;
    border-radius: 6px;
    text-decoration: none;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.3s;
    font-weight: 500;
    border: 1.5px solid var(--accent);
}

.btn-map:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 68, 122, 0.2);
}

/* ========= ALBERCA SECTION ========= */
.section-reglamento {
    padding: 70px 20px;
    text-align: center;
}

.reglamento-intro {
    font-family: var(--font-body);
    font-size: 1.15rem;
    color: var(--text-body);
    text-align: center;
    max-width: 520px;
    margin: 0 auto 35px;
    font-weight: 400;
    font-style: italic;
    line-height: 1.7;
}

.alberca-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
    align-items: start;
}

/* --- Texto (izquierda) --- */
.alberca-texto {
    text-align: left;
}

.alberca-subtitle {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    color: var(--text-primary);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

.alberca-subtitle + .alberca-subtitle,
.servicios-list + .alberca-subtitle {
    margin-top: 28px;
}

.servicios-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.servicios-list li {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-body);
    line-height: 1.6;
    padding-left: 16px;
    position: relative;
}

.servicios-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.servicios-list li strong {
    color: var(--text-primary);
}

.reglas-list {
    list-style: none;
    padding: 0;
}

.reglas-list li {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-body);
    padding: 7px 0;
    padding-left: 16px;
    position: relative;
    line-height: 1.5;
    border-bottom: 1px solid rgba(196, 181, 163, 0.1);
}

.reglas-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 13px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--arena);
}

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

/* --- Imagen (derecha) --- */
.alberca-imagen {
    cursor: pointer;
    transition: transform 0.3s;
    border-radius: 12px;
    overflow: hidden;
    position: sticky;
    top: 90px;
}

.alberca-imagen:hover {
    transform: translateY(-3px);
}

.alberca-imagen img {
    width: 100%;
    display: block;
    border-radius: 12px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.reglamento-hint {
    font-family: var(--font-ui);
    font-size: 0.68rem;
    color: var(--text-light);
    margin-top: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-align: center;
}

/* ========= IMAGE MODAL ========= */
.img-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.img-modal.active {
    opacity: 1;
    pointer-events: all;
}

.img-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(8px);
}

.img-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 1;
}

.img-modal-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 10px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    display: block;
}

.img-modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: background 0.3s;
}

.img-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ========= DIVIDER ========= */
.divider {
    display: flex;
    justify-content: center;
    padding: 25px;
}

/* ========= INFO SECTION ========= */
.section-info {
    padding: 50px 20px 60px;
    text-align: center;
}

.info-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 500px;
    margin: 30px auto 0;
}

.info-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 200px;
    gap: 8px;
    padding: 25px 20px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(196, 181, 163, 0.15);
    flex: 1;
    min-width: 180px;
}

.info-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
}

.info-title {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: var(--text-primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

.info-text {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.5;
    font-weight: 400;
    font-style: italic;
}

/* ========= CTA SECTION (DARK) ========= */
.section-cta {
    padding: 80px 20px;
    text-align: center;
    background: var(--bg-dark);
}

.section-cta .section-title {
    color: var(--text-on-dark);
}

.section-cta .section-text {
    color: var(--text-on-dark-soft);
}

.section-cta .line-accent {
    background: linear-gradient(90deg, var(--accent-soft), var(--arena));
}

.cta-deadline {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: var(--text-on-dark-soft);
    margin-bottom: 30px;
    letter-spacing: 2px;
    font-weight: 400;
}

.btn-confirm {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    color: var(--bg-dark);
    background: var(--text-on-dark);
    padding: 15px 45px;
    border-radius: 50px;
    text-decoration: none;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    transition: all 0.3s;
    font-weight: 600;
}

.btn-confirm:hover {
    background: var(--accent-soft);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(232, 121, 158, 0.3);
}

/* ========= FOOTER ========= */
.footer {
    padding: 40px 20px;
    text-align: center;
    background: var(--bg-dark);
    border-top: 1px solid rgba(196, 181, 163, 0.1);
}

.footer-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--arena);
    margin-bottom: 8px;
    letter-spacing: 2px;
    font-weight: 300;
}

.footer-subtitle {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    color: rgba(196, 181, 163, 0.35);
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 400;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 850px) {

    /* Corals on mobile: keep 1 per section, sized well */
    .coral.c-lg { width: 280px; height: 280px; }
    .coral.c-md { width: 200px; height: 200px; }
    .coral.c-sm { display: none; }

    /* Hero corals smaller to not fight the 35 */
    .hero .coral.c-lg { width: 180px; height: 180px; }
    .hero .coral.c-md { width: 130px; height: 130px; }

    .nav-toggle {
        display: flex;
    }

    .mobile-menu {
        display: flex;
    }

    .navbar {
        padding: 14px 20px;
    }

    .navbar.scrolled {
        padding: 10px 20px;
    }

    .hero {
        padding: 100px 20px 60px;
    }

    .hero-title {
        font-size: 2.6rem;
    }

    .hero-title strong {
        font-size: 3.2rem;
    }

    .hero-names {
        font-size: 2.8rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .hero-description br {
        display: none;
    }

    .section-title,
    .section-title-dark {
        font-size: 1.5rem;
    }

    .section-text {
        font-size: 1.1rem;
    }

    .section-text br {
        display: none;
    }

    .countdown-number {
        font-size: 1.8rem;
        width: 65px;
        height: 65px;
    }

    .countdown {
        gap: 12px;
    }

    .info-grid {
        gap: 15px;
    }

    .info-card {
        min-width: 140px;
    }

    .lugares-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .alberca-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
}

@media (max-width: 420px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-title strong {
        font-size: 2.6rem;
    }

    .hero-names {
        font-size: 2.3rem;
    }

    .countdown-number {
        font-size: 1.5rem;
        width: 58px;
        height: 58px;
    }

    .info-grid {
        flex-direction: column;
        align-items: center;
    }

    .info-card {
        max-width: 280px;
    }
}
