/**
 * Tema BEACH — invitación de boda en playa con paleta crema + peach + verde-mint suave.
 * Tipografía Cormorant Garamond (serif) + Pinyon Script (script) + Inter (sans).
 * Override de los componentes existentes para encajar con la maqueta de Ana & Marcos.
 */

.theme-beach {
    --beach-cream: #f5efe6;
    --beach-cream-light: #faf6ee;
    --beach-cream-warm: #efe5d6;
    --beach-peach: #e8a987;
    --beach-peach-soft: #f0c0a3;
    --beach-mint: #d4e2dc;
    --beach-mint-soft: #e3edea;
    --beach-text: #2c2c2c;
    --beach-text-soft: #6b6b6b;
    --beach-gold: #c2a07a;
    --beach-line: #e8ddd0;

    --beach-font-serif: 'Cormorant Garamond', Georgia, serif;
    --beach-font-script: 'Pinyon Script', 'Cormorant Garamond', cursive;
    --beach-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --hero-text: var(--beach-text);
    --hero-text-muted: var(--beach-text-soft);

    background: var(--beach-cream);
    color: var(--beach-text);
    font-family: var(--beach-font-sans);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: clip;
}

.theme-beach .beach-app {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    background: var(--beach-cream);
    min-height: 100vh;
    overflow-x: clip;
}

/* Cualquier media (img, svg, video) dentro del tema no debe desbordar su contenedor. */
.theme-beach img,
.theme-beach svg,
.theme-beach video {
    max-width: 100%;
}

/* Cada sección y el wrapper del componente no pueden generar scroll horizontal. */
.theme-beach > div,
.theme-beach .cmp-scope,
.theme-beach > div > section,
.theme-beach .beach-app > section,
.theme-beach .countdown-section,
.theme-beach .program-section,
.theme-beach .dress-section,
.theme-beach .faq-section,
.theme-beach .gallery-section,
.theme-beach .venue-section,
.theme-beach .rsvp-section,
.theme-beach .site-footer {
    max-width: 100%;
    overflow-x: clip;
}

@media (min-width: 960px) {
    .theme-beach .beach-app {
        max-width: 100%;
    }
}

.theme-beach h1,
.theme-beach h2,
.theme-beach h3,
.theme-beach h4 {
    font-family: var(--beach-font-serif);
    font-weight: 400;
    color: var(--beach-text);
    letter-spacing: 0.02em;
}

/* ─── HERO ──────────────────────────────────────────────────── */
.theme-beach .beach-hero {
    background: var(--beach-cream);
    position: relative;
    overflow: hidden;
}

.beach-hero__topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: transparent;
}

.beach-hero__monogram {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--beach-font-serif);
    font-size: 1.6rem;
    color: var(--beach-text);
    letter-spacing: 0.04em;
    line-height: 1;
}

.beach-hero__monogram-letter {
    font-weight: 500;
}

.beach-hero__monogram-amp {
    font-family: var(--beach-font-script);
    color: var(--beach-gold);
    font-size: 1.7rem;
    line-height: 1;
    transform: translateY(-0.04em);
}

.beach-hero__date {
    font-family: var(--beach-font-sans);
    font-size: 0.72rem;
    letter-spacing: 4px;
    color: var(--beach-text);
    font-weight: 500;
    text-transform: uppercase;
}

.beach-hero__body {
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 0;
}

.beach-hero__content {
    text-align: center;
    padding: 26px 24px 36px;
}

.beach-hero__eyebrow {
    font-size: 0.7rem;
    letter-spacing: 5px;
    color: var(--beach-text);
    font-weight: 500;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.beach-hero__names {
    font-family: var(--beach-font-serif);
    font-size: clamp(2.2rem, 9vw, 3.6rem);
    line-height: 1.05;
    color: var(--beach-text);
    font-weight: 400;
    letter-spacing: 0.04em;
    margin: 6px 0 14px;
    text-transform: uppercase;
}

.beach-hero__amp {
    font-style: italic;
    font-weight: 400;
    color: var(--beach-text);
    font-family: var(--beach-font-serif);
    text-transform: none;
    margin: 0 0.05em;
}

.beach-hero__tagline {
    font-family: var(--beach-font-script);
    font-size: 1.6rem;
    color: var(--beach-text-soft);
    line-height: 1.3;
    margin: 0 auto 24px;
    max-width: 480px;
}

.beach-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--beach-peach);
    color: var(--beach-text);
    text-decoration: none;
    padding: 13px 28px;
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
    font-family: var(--beach-font-sans);
    border-radius: 2px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.beach-hero__cta:hover {
    background: var(--beach-peach-soft);
    transform: translateY(-1px);
}

.beach-hero__cta-arrow {
    font-size: 1rem;
    line-height: 1;
}

.beach-hero__image {
    width: 100%;
    height: 320px;
    background-size: cover;
    background-position: center;
    background-color: var(--beach-cream-warm);
}

@media (min-width: 760px) {
    .beach-hero__topbar {
        padding: 24px 48px;
    }
    .beach-hero__body {
        flex-direction: row;
        align-items: stretch;
        min-height: 540px;
    }
    .beach-hero__content {
        flex: 0 0 42%;
        text-align: left;
        padding: 80px 56px;
        align-self: center;
    }
    .beach-hero__names {
        text-align: left;
    }
    .beach-hero__tagline {
        margin-left: 0;
        margin-right: auto;
    }
    .beach-hero__image {
        flex: 1 1 58%;
        height: auto;
        min-height: 540px;
    }
}

/* ─── COUNTDOWN ─── */
.theme-beach .countdown-section {
    background-color: var(--beach-cream-light);
    padding: 50px 24px;
    color: var(--beach-text);
    text-align: center;
}

@media (min-width: 760px) {
    .theme-beach .countdown-section {
        padding: 110px 24px;
        min-height: 420px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

.theme-beach .countdown-section__title {
    font-family: var(--beach-font-serif);
    font-size: 0.85rem;
    letter-spacing: 8px;
    color: var(--beach-text);
    text-transform: uppercase;
    margin: 0 0 28px;
    font-weight: 500;
}

.theme-beach .countdown-section__subtitle {
    display: none;
}

.theme-beach .countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    max-width: 600px;
    margin: 0 auto;
    gap: 0;
    border-radius: 0;
}

.theme-beach .countdown__item {
    flex: none;
    border: none;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
    padding: 0 4px;
    color: var(--beach-text);
    text-align: center;
    min-width: 0;
}

.theme-beach .countdown__item + .countdown__item::before {
    display: none;
}

.theme-beach .countdown__value {
    font-family: var(--beach-font-serif);
    font-size: clamp(2rem, 8vw, 3rem);
    color: var(--beach-text);
    font-weight: 400;
    line-height: 1;
}

.theme-beach .countdown__label {
    font-size: 0.6rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--beach-text-soft);
    margin-top: 10px;
    font-family: var(--beach-font-sans);
    font-weight: 500;
    opacity: 1;
}

/* ─── PROGRAMA ─── */
.theme-beach .program-section {
    background-color: var(--beach-mint-soft);
    padding: 60px 24px 70px;
    text-align: center;
    color: var(--beach-text);
    position: relative;
}

.theme-beach .program-section__subtitle {
    font-family: var(--beach-font-script);
    font-size: 1.4rem;
    color: var(--beach-text-soft);
    margin: 0 0 6px;
    line-height: 1.2;
    text-transform: none;
    letter-spacing: 0;
}

.theme-beach .program-section__title {
    font-family: var(--beach-font-serif);
    font-size: 1.4rem;
    letter-spacing: 8px;
    color: var(--beach-text);
    text-transform: uppercase;
    margin: 0 0 36px;
    font-weight: 500;
}

/* Timeline mobile: vertical con línea + puntos en dorado/peach. */
.theme-beach .timeline {
    --timeline-line: var(--beach-gold);
    --timeline-dot: var(--beach-peach);
    --timeline-icon: var(--beach-gold);
    --timeline-subtext: var(--beach-text-soft);
    max-width: 580px;
    margin: 0 auto;
    padding: 1rem 0 0;
}

.theme-beach .timeline__line {
    background: color-mix(in srgb, var(--beach-gold) 60%, transparent);
    width: 1px;
}

.theme-beach .timeline__dot {
    background: var(--beach-peach);
    border-color: var(--beach-mint-soft);
    width: 10px;
    height: 10px;
    border-width: 2px;
}

.theme-beach .timeline__time {
    font-family: var(--beach-font-serif);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--beach-text);
    letter-spacing: 0;
}

/* Icono sin marco circular: solo el SVG en dorado, más grande y libre. */
.theme-beach .timeline__icon {
    background: transparent;
    border: none;
    color: var(--beach-gold);
    width: 48px;
    height: 48px;
}

.theme-beach .timeline__icon svg {
    width: 36px;
    height: 36px;
}

.theme-beach .timeline__event-title {
    font-family: var(--beach-font-sans);
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--beach-text-soft);
    font-weight: 500;
    margin: 0;
}

.theme-beach .timeline__event-desc {
    display: none;
}


/* ─── DRESS CODE ─── */
.theme-beach .dress-section {
    background-color: var(--beach-cream);
    padding: 80px 24px;
    color: var(--beach-text);
    min-height: 520px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    /* En móvil: ancho completo, altura proporcional (puede recortar arriba/abajo si la imagen es más alta que la sección). */
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-position: center;
}

.theme-beach .dress-section__inner {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
}

@media (min-width: 760px) {
    .theme-beach .dress-section {
        min-height: 640px;
        padding: 120px 48px;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }
    .theme-beach .dress-section__inner {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto;
        gap: 8px 60px;
        text-align: left;
        max-width: 980px;
        align-items: center;
    }
    .theme-beach .dress-image {
        grid-column: 1;
        grid-row: 1 / span 3;
        max-width: 420px;
        justify-self: end;
        align-self: center;
    }
    .theme-beach .dress-section__title {
        grid-column: 2;
        grid-row: 1;
        align-self: end;
        margin-bottom: 0;
    }
    .theme-beach .dress-description {
        grid-column: 2;
        grid-row: 2;
        margin: 8px 0;
    }
    .theme-beach .dress-note {
        grid-column: 2;
        grid-row: 3;
        align-self: start;
    }
}

.theme-beach .dress-image {
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

.theme-beach .dress-image__img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

.theme-beach .dress-section__title {
    font-family: var(--beach-font-serif);
    font-size: 0.95rem;
    letter-spacing: 6px;
    color: var(--beach-text);
    text-transform: uppercase;
    margin: 0 0 8px;
    font-weight: 500;
}

.theme-beach .dress-description {
    font-family: var(--beach-font-script);
    font-size: 2.6rem;
    color: var(--beach-text);
    margin: 0 0 18px;
    line-height: 1;
    font-weight: 400;
}

.theme-beach .dress-note {
    font-family: var(--beach-font-sans);
    font-size: 0.95rem;
    color: var(--beach-text-soft);
    margin: 0;
    line-height: 1.6;
    max-width: 380px;
}

/* ─── FAQ ─── */
.theme-beach .faq-section {
    background-color: var(--beach-cream-light);
    padding: 60px 24px;
    text-align: center;
    color: var(--beach-text);
}

.theme-beach .faq-section__title {
    font-family: var(--beach-font-serif);
    font-size: 1.05rem;
    letter-spacing: 6px;
    color: var(--beach-text);
    text-transform: uppercase;
    margin: 0 0 28px;
    font-weight: 500;
}

.theme-beach .faq-section__subtitle {
    display: none;
}

.theme-beach .faq-list {
    text-align: left;
    max-width: 580px;
    margin: 0 auto;
}

.theme-beach .faq-item {
    background: var(--beach-cream-warm);
    border: none;
    margin-bottom: 8px;
    border-radius: 4px;
    box-shadow: none;
    overflow: hidden;
}

.theme-beach .faq-item__header {
    width: 100%;
    background: transparent;
    border: none;
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-family: var(--beach-font-sans);
    font-size: 0.85rem;
    color: var(--beach-text);
    text-align: left;
    font-weight: 500;
}

.theme-beach .faq-item__content {
    color: var(--beach-text-soft);
}

.theme-beach .faq-item__content-inner {
    padding: 0 20px 16px;
    font-size: 0.85rem;
    color: var(--beach-text-soft);
    line-height: 1.6;
    font-family: var(--beach-font-sans);
}

/* ─── GALERÍA ─── */
.theme-beach .gallery-section {
    background-color: var(--beach-cream);
    padding: 60px 0 30px;
    color: var(--beach-text);
}

.theme-beach .gallery-section__inner {
    text-align: center;
    padding: 0;
}

.theme-beach .gallery-section__title {
    font-family: var(--beach-font-serif);
    font-size: 1.05rem;
    letter-spacing: 6px;
    color: var(--beach-text);
    text-transform: uppercase;
    margin: 0 24px 28px;
    font-weight: 500;
}

.theme-beach .gallery-section__subtitle {
    display: none;
}

/* El wrap original es flex con flechas; las ocultamos y dejamos solo la rejilla. */
.theme-beach .gallery-strip-wrap {
    display: block;
}

.theme-beach .gallery-strip__nav {
    display: none;
}

.theme-beach .gallery-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 24px;
    overflow: visible;
    scroll-snap-type: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (min-width: 760px) {
    .theme-beach .gallery-strip {
        grid-template-columns: repeat(5, 1fr);
        gap: 14px;
        padding: 0 48px;
    }
}

.theme-beach .gallery-strip__item {
    flex: none;
    width: 100%;
    min-width: 0;
    aspect-ratio: 1 / 1;
    border-radius: 6px;
    overflow: hidden;
    scroll-snap-align: none;
}

.theme-beach .gallery-strip__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

/* ─── VENUE ─── */
.theme-beach .venue-section {
    background-color: var(--beach-cream-light);
    padding: 60px 24px;
    color: var(--beach-text);
}

/*
 * Beach venue: la sección entera se renderiza como una sola tarjeta unificada
 * (imagen arriba + "LUGAR DEL EVENTO" + Playa Paraíso + dirección + botón).
 * La card hace display:contents para que sus hijos pasen a ser hijos directos
 * de section__inner y compartan la misma caja con sombra y bordes redondeados.
 */
.theme-beach .venue-section__inner {
    max-width: 360px;
    margin: 0 auto;
    background: var(--beach-cream-light);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    text-align: center;
}

@media (min-width: 760px) {
    .theme-beach .venue-section__inner {
        max-width: 420px;
    }
}

.theme-beach .venue-card {
    display: contents;
}

/* Imagen superior de la card unificada. */
.theme-beach .venue-section__image {
    width: 100%;
    height: 240px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.theme-beach .venue-section__title {
    font-family: var(--beach-font-serif);
    font-size: 0.9rem;
    letter-spacing: 6px;
    color: var(--beach-text-soft);
    text-transform: uppercase;
    margin: 0;
    padding: 28px 24px 4px;
    font-weight: 500;
}

.theme-beach .venue-section__subtitle {
    margin: 0;
    padding: 0 24px 8px;
    font-family: var(--beach-font-sans);
    font-size: 0.85rem;
    color: var(--beach-text-soft);
}

/* Elementos decorativos del componente que no se usan en beach. */
.theme-beach .venue-card__icon,
.theme-beach .venue-card__times,
.theme-beach .venue-card__map {
    display: none;
}

.theme-beach .venue-card__name {
    font-family: var(--beach-font-script);
    font-size: 2.2rem;
    letter-spacing: 0;
    color: var(--beach-text);
    text-transform: none;
    font-weight: 400;
    margin: 0 0 14px;
    padding: 4px 24px 0;
    text-align: center;
    line-height: 1;
}

.theme-beach .venue-card__address {
    font-family: var(--beach-font-sans);
    font-size: 0.9rem;
    color: var(--beach-text-soft);
    line-height: 1.6;
    margin: 0 0 24px;
    padding: 0 24px;
    text-align: center;
}

.theme-beach .venue-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto 32px;
    padding: 12px 32px;
    background: var(--beach-peach);
    color: var(--beach-text);
    text-decoration: none;
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--beach-font-sans);
    border-radius: 2px;
    transition: background 0.3s ease;
}

.theme-beach .venue-card__btn:hover {
    background: var(--beach-peach-soft);
    color: var(--beach-text);
}

/* ─── RSVP ─── */
.theme-beach .rsvp-section {
    background-color: var(--beach-cream);
    color: var(--beach-text);
    padding: 70px 24px;
    text-align: center;
}

.theme-beach .rsvp-section__title {
    color: var(--beach-text);
    font-size: 1.4rem;
    line-height: 1.3;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin: 0 0 12px;
    font-weight: 500;
    font-family: var(--beach-font-serif);
}

.theme-beach .rsvp-section__subtitle {
    font-family: var(--beach-font-sans);
    color: var(--beach-text-soft);
    font-size: 0.9rem;
    margin: 0 auto 36px;
    line-height: 1.5;
    max-width: 460px;
}

.theme-beach .rsvp-form {
    text-align: left;
    max-width: 560px;
    margin: 0 auto;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.theme-beach .rsvp-form__group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.theme-beach .rsvp-form__label {
    color: var(--beach-text);
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: var(--beach-font-sans);
    font-weight: 600;
    margin-bottom: 0;
}

.theme-beach .rsvp-form__input,
.theme-beach .rsvp-form__textarea,
.theme-beach .rsvp-form__group select {
    width: 100%;
    background: var(--beach-cream-light);
    border: 1px solid var(--beach-line);
    color: var(--beach-text);
    padding: 13px 16px;
    font-family: var(--beach-font-sans);
    font-size: 0.9rem;
    outline: none;
    border-radius: 4px;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.theme-beach .rsvp-form__input::placeholder,
.theme-beach .rsvp-form__textarea::placeholder {
    color: var(--beach-text-soft);
}

.theme-beach .rsvp-form__input:focus,
.theme-beach .rsvp-form__textarea:focus,
.theme-beach .rsvp-form__group select:focus {
    border-color: var(--beach-peach);
    background: var(--beach-cream-light);
}

.theme-beach .rsvp-form__submit,
.theme-beach .rsvp-form button[type="submit"] {
    width: auto;
    margin-top: 8px;
    padding: 14px 32px;
    background: var(--beach-peach);
    color: var(--beach-text);
    border: none;
    font-family: var(--beach-font-sans);
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
    border-radius: 2px;
    transition: background 0.3s ease;
    align-self: end;
}

.theme-beach .rsvp-form__submit:hover,
.theme-beach .rsvp-form button[type="submit"]:hover {
    background: var(--beach-peach-soft);
    color: var(--beach-text);
}

/* ─── FOOTER ─── */
.theme-beach .site-footer {
    /* Sobrescribe los tokens del componente base para que el SVG del corazón y
       el enlace de crédito (que usan currentColor / --footer-text vía color-mix)
       hereden los colores del tema en lugar del blanco por defecto. */
    --footer-bg: var(--beach-cream);
    --footer-text: var(--beach-text);

    background-color: var(--beach-cream);
    color: var(--beach-text);
    padding: 50px 24px 36px;
    text-align: center;
    border-top: 1px solid var(--beach-line);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

@media (min-width: 760px) {
    .theme-beach .site-footer {
        padding: 60px 48px 40px;
    }
}

.theme-beach .site-footer__heart svg {
    color: var(--beach-gold);
}

.theme-beach .site-footer__names {
    font-family: var(--beach-font-serif);
    font-size: 1.6rem;
    color: var(--beach-text);
    letter-spacing: 0.04em;
    margin: 0;
    text-transform: uppercase;
    font-weight: 500;
}

.theme-beach .site-footer__names .amp,
.theme-beach .site-footer__amp {
    font-style: italic;
    font-family: var(--beach-font-script);
    color: var(--beach-gold);
    font-weight: 400;
    text-transform: none;
    margin: 0 0.05em;
}

.theme-beach .site-footer__date {
    font-size: 0.72rem;
    letter-spacing: 4px;
    color: var(--beach-text-soft);
    margin: 0;
    text-transform: uppercase;
}

.theme-beach .site-footer__credit {
    font-family: var(--beach-font-sans);
    font-style: normal;
    color: var(--beach-text-soft);
    margin: 8px 0 0;
    font-size: 0.85rem;
    line-height: 1.5;
    max-width: 520px;
}

.theme-beach .site-footer__link,
.theme-beach .site-footer__credit-link {
    color: var(--beach-peach);
    text-decoration: none;
}

.theme-beach .site-footer__link:hover,
.theme-beach .site-footer__credit-link:hover {
    color: var(--beach-text);
}
