/* Variables */
:root {
    --olive: #4a5d4a;
    --olive-light: #6b7c6b;
    --olive-bg: #3d4f3d;
    --beige: #f5f0e8;
    --beige-dark: #e8e0d5;
    --cream: #faf8f5;
    --white: #fff;
    --text-dark: #2c3e2c;
    --text-muted: #5a6b5a;
    --gold: #c9a227;
    --font-script: 'Great Vibes', cursive;
    --font-sans: 'Source Sans 3', sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--text-dark);
    background: var(--beige);
    line-height: 1.6;
}

/* Con splash activo: no scroll, solo imagen/video a pantalla completa */
html.has-splash {
    overflow: hidden;
    height: 100%;
    position: fixed;
    width: 100%;
    overscroll-behavior: none;
}
body.has-splash {
    overflow: hidden;
    height: 100%;
    position: fixed;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: auto;
}

/* Splash: primera pantalla, ancho y alto de la ventana (fijo hasta que termina el flujo) */
body.has-splash .splash {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.splash {
    position: relative;
    width: 100vw;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    margin: 0;
    padding: 0;
    cursor: pointer;
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.splash__img {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: opacity 0.4s ease;
}

.splash__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    pointer-events: none;
}

.splash--playing .splash__img {
    opacity: 0;
    pointer-events: none;
}

.splash--playing .splash__video {
    opacity: 1;
    pointer-events: auto;
}

.splash--done {
    display: none !important;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1rem 4rem;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero__bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(45,60,45,.75) 0%, rgba(30,45,30,.85) 100%);
    z-index: 1;
}

.hero__tag,
.hero__names,
.hero__divider,
.hero__date,
.hero__cta {
    position: relative;
    z-index: 2;
}

.hero__tag {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: .9;
    margin-bottom: 0.5rem;
}

.hero__names {
    font-family: var(--font-script);
    font-size: clamp(3rem, 10vw, 5.5rem);
    font-weight: 400;
    line-height: 1.2;
    margin: 0;
}

.hero__amp {
    color: var(--gold);
    font-family: var(--font-sans);
    font-size: 0.5em;
    vertical-align: middle;
}

.hero__divider {
    width: 80px;
    height: 1px;
    background: rgba(255,255,255,.5);
    margin: 1rem auto;
    position: relative;
}

.hero__divider::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
}

.hero__date {
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    opacity: .95;
}

.hero__cta {
    margin-top: 3rem;
}

.hero__cta-link {
    display: inline-block;
    color: rgba(255,255,255,.9);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    margin-bottom: 1rem;
}

.hero__cta-link:hover {
    color: var(--white);
}

.hero__scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: rgba(255,255,255,.7);
    font-size: 0.7rem;
}

.hero__scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(6px); }
}

.audio-toggle {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--text-dark);
    border: none;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,.2);
}

.audio-toggle svg {
    width: 20px;
    height: 20px;
}

/* Section common */
.section {
    padding: 4rem 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.section--green {
    max-width: none;
    width: 100%;
    background: var(--olive-bg);
    color: var(--white);
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5c-2 4-6 8-10 10-4 2-8 0-10-4-2-4 0-8 4-10 4 2 0 6 4 8 8 2 4 0 8-4 10-2 4-6 6-10 4-4-2-6-6-4-10 2-4 6-4 10-2 4 4 6 8 4 10-4 2-8 0-10-4' fill='%234a5d4a' fill-opacity='0.08' fill-rule='evenodd'/%3E%3C/svg%3E");
}

/* Mismo ancho y centrado que "Dónde celebramos" (900px) */
.section--green__inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    text-align: center;
}

.section--green .section__title,
.section--green .section__subtitle {
    text-align: center;
}

.section--green .countdown {
    margin-left: auto;
    margin-right: auto;
}

.section--beige {
    background: var(--beige);
}

.section__title {
    font-family: var(--font-script);
    font-size: clamp(2.2rem, 5vw, 3rem);
    font-weight: 400;
    margin: 0 0 0.5rem;
    color: inherit;
}

.section--green .section__title {
    color: var(--white);
}

.section--beige .section__title {
    color: var(--text-dark);
}

.section__subtitle {
    font-size: 0.95rem;
    opacity: .9;
    margin: 0 0 2rem;
}

/* Countdown */
.countdown {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.countdown__item {
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    min-width: 100px;
    text-align: center;
}

.countdown__value {
    font-size: 2rem;
    font-weight: 600;
    display: block;
    line-height: 1.2;
}

.countdown__label {
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: .9;
}

/* Where We Celebrate */
.venue-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 24px rgba(0,0,0,.06);
    text-align: center;
}

.venue-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--beige-dark);
    color: var(--olive);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.venue-card__name {
    font-family: var(--font-script);
    font-size: 2rem;
    color: var(--text-dark);
    margin: 0 0 1rem;
}

.venue-card__times {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.venue-card__times span::before {
    content: '🕐 ';
}

.venue-card__address {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.venue-card__map {
    width: 100%;
    height: 280px;
    border: 0;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.venue-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: var(--white);
    color: var(--olive);
    border: 2px solid var(--olive);
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.venue-card__btn:hover {
    background: var(--olive);
    color: var(--white);
}

/* Transportation box */
.transport-box {
    background: var(--beige-dark);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin-bottom: 3rem;
}

.transport-box__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.transport-box__icon {
    font-size: 1.5rem;
}

.transport-box__title {
    font-family: var(--font-script);
    font-size: 1.6rem;
    color: var(--text-dark);
    margin: 0;
}

.transport-box__text {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Day Program timeline */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline__line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--olive-light);
    transform: translateX(-50%);
}

@media (max-width: 700px) {
    .timeline__line {
        left: 20px;
    }
}

.timeline__item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-left: 0;
}

@media (min-width: 701px) {
    .timeline__item {
        padding-left: 50%;
        padding-left: calc(50% + 1.5rem);
    }

    .timeline__item:nth-child(odd) {
        flex-direction: row-reverse;
        padding-left: 0;
        padding-right: calc(50% + 1.5rem);
    }

    .timeline__item:nth-child(odd) .timeline__content {
        text-align: right;
    }
}

.timeline__dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--olive);
    border: 3px solid var(--beige);
    flex-shrink: 0;
    z-index: 1;
}

@media (max-width: 700px) {
    .timeline__dot {
        left: 20px;
    }

    .timeline__item {
        padding-left: 50px;
    }

    .timeline__item:nth-child(odd) {
        flex-direction: row;
        padding-right: 0;
    }

    .timeline__item:nth-child(odd) .timeline__content {
        text-align: left;
    }
}

.timeline__time {
    flex-shrink: 0;
    font-weight: 600;
    color: var(--olive);
    font-size: 0.9rem;
    min-width: 60px;
}

.timeline__content {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

@media (min-width: 701px) {
    .timeline__item:nth-child(odd) .timeline__content {
        justify-content: flex-end;
    }

    .timeline__item:nth-child(odd) .timeline__content-text {
        text-align: right;
    }
}

.timeline__content-text {
    min-width: 0;
}

.timeline__event-title {
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 0.25rem;
}

.timeline__event-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.timeline__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--olive);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Dress code cards */
.dress-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.dress-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 16px rgba(0,0,0,.04);
}

.dress-card__icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.dress-card__title {
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 0.5rem;
}

.dress-card__desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.dress-note {
    text-align: center;
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* FAQ Accordion */
.faq-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.faq-item {
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 8px rgba(0,0,0,.04);
    overflow: hidden;
}

.faq-item__header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: none;
    border: none;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-dark);
    text-align: left;
    cursor: pointer;
}

.faq-item__icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.faq-item__chevron {
    margin-left: auto;
    transition: transform .25s;
}

.faq-item.is-open .faq-item__chevron {
    transform: rotate(180deg);
}

.faq-item__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}

.faq-item__content-inner {
    padding: 0 1.25rem 1rem;
    padding-left: calc(1rem + 1.25rem + 1.25em);
}

@media (max-width: 500px) {
    .faq-item__content-inner {
        padding-left: 1.25rem;
    }
}

.faq-item__content p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.info-block {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 1px 8px rgba(0,0,0,.04);
}

.info-block p {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.info-block p:last-child {
    margin-bottom: 0;
}

/* Gifts */
.gifts-box {
    background: var(--beige-dark);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}

.gifts-box__heart {
    margin: 0.5rem 0;
    font-size: 1.5rem;
    color: var(--olive);
}

.gifts-box__text {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.gifts-box__note {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Form RSVP */
.rsvp {
    background: var(--cream);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 24px rgba(0,0,0,.06);
}

.rsvp-form__group {
    margin-bottom: 1.25rem;
}

.rsvp-form__label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
}

.rsvp-form__input,
.rsvp-form__textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--beige-dark);
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 1rem;
    background: var(--beige);
    color: var(--text-dark);
}

.rsvp-form__textarea {
    min-height: 100px;
    resize: vertical;
}

.rsvp-form__input::placeholder,
.rsvp-form__textarea::placeholder {
    color: var(--text-muted);
    opacity: .8;
}

.rsvp-form__radio-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.rsvp-form__choice-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.rsvp-form__choice-btn {
    flex: 1;
    padding: 1rem 1.25rem;
    border: 2px solid var(--beige-dark);
    border-radius: 12px;
    background: var(--beige);
    color: var(--text-dark);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s;
    -webkit-tap-highlight-color: transparent;
}

.rsvp-form__choice-btn:hover {
    background: var(--beige-dark);
    border-color: var(--olive-light);
}

.rsvp-form__choice-btn.is-selected {
    background: var(--olive);
    border-color: var(--olive);
    color: var(--white);
}

.rsvp-form__choice-buttons--small .rsvp-form__choice-btn {
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
}

.rsvp-form__when-attending {
    transition: opacity .25s ease;
}

.rsvp-form__when-attending.is-hidden {
    display: none;
}

.rsvp-form__allergies-fields {
    margin-top: 1rem;
    transition: opacity .25s ease;
}

.rsvp-form__allergies-fields.is-hidden {
    display: none;
}

.rsvp-form__radios {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rsvp-form__radio-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rsvp-form__checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.5rem;
}

.rsvp-form__checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rsvp-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    background: var(--olive);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background .2s, transform .05s;
}

.rsvp-form__submit:hover {
    background: var(--olive-light);
}

.rsvp-form__submit:active {
    transform: scale(0.98);
}

.form-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

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

#confirm {
    scroll-margin-top: 2rem;
}

/* Footer */
.site-footer {
    background: #1e3329;
    border-top: 4px solid var(--beige);
    padding: 3rem 1.5rem 2rem;
    text-align: center;
    color: var(--white);
}

.site-footer__heart {
    display: flex;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.site-footer__heart svg {
    width: 36px;
    height: 36px;
    color: var(--white);
    stroke: currentColor;
}

.site-footer__names {
    font-family: var(--font-script);
    font-size: clamp(2.2rem, 6vw, 3.2rem);
    font-weight: 400;
    margin: 0 0 0.25rem;
    color: var(--white);
}

.site-footer__date {
    font-size: 0.95rem;
    margin: 0 0 2.5rem;
    opacity: 0.95;
}

.site-footer__credit {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
}

.site-footer__link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
}

.site-footer__link:hover {
    color: var(--white);
}
