/* ============================================================
   1. PALETA DE COLORES
   Cambia estos valores para actualizar el look global.
   ============================================================ */
   :root {
    --ivory: #F8F5EF;
    --warm-white: #FCFAF6;
    --beige: #E8DED0;
    --wine: #7A5C47; /* Nogal principal */
    --deep-wine: #4E382A; /* Nogal profundo */
    --taupe: #A69A8D;
    --ink: #292624;
    --line: rgba(85, 35, 43, 0.18);
    --shadow: 0 18px 60px rgba(41, 38, 36, 0.08);
  
    /* ==========================================================
       2. TIPOGRAFÍA
       Puedes sustituir Georgia por otra serif más adelante.
       ========================================================== */
    --font-display: 'DM Serif Display', serif;/*Georgia, "Times New Roman", serif*/
    --font-body: 'Inter', sans-serif /*Arial, Helvetica, sans-serif*/;
  
    --desktop-left: 42%;
    --radius: 22px;
  }
  
  /* ============================================================
     3. BASE
     ============================================================ */
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0;
    background: var(--ivory);
    color: var(--ink);
    font-family: var(--font-body);
    line-height: 1.6;
  }
  body.entry-open { overflow: hidden; }
  img { width: 100%; display: block; }
  a { color: inherit; }
  h1, h2, h3, p { margin-top: 0; }
  h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 400;
  }
  h2 {
    font-size: clamp(2rem, 3vw, 4rem);
    line-height: 1.08;
  }
  .sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
  }
  .eyebrow {
    color: var(--wine);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .18em;
    font-weight: 700;
  }
  .text-link {
    display: inline-flex;
    margin-top: 1.25rem;
    color: var(--wine);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: .15rem;
  }
  .primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: .85rem 1.2rem;
    border: 0;
    border-radius: 999px;
    background: var(--wine);
    color: white;
    text-decoration: none;
    font: inherit;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
  }
  .primary-button:hover { transform: translateY(-2px); background: var(--deep-wine); }
  .primary-button.compact { min-height: 40px; font-size: .78rem; }
  
  /* ============================================================
     4. ENTRADA PERSONALIZADA
     ============================================================ */
  .entry-screen {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
      radial-gradient(circle at 20% 20%, rgba(232, 222, 208, .65), transparent 35%),
      radial-gradient(circle at 80% 80%, rgba(122, 41, 53, .08), transparent 30%),
      var(--ivory);
    transition: opacity .6s ease, visibility .6s ease;
  }
  .entry-screen.is-hidden { opacity: 0; visibility: hidden; }
  .entry-card {
    width: min(620px, 100%);
    text-align: center;
    padding: clamp(28px, 5vw, 60px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(252, 250, 246, .88);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
  }
  .entry-names {
    color: var(--deep-wine);
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: .5rem;
  }
  .entry-date { letter-spacing: .08em; }
  .ornament {
    color: var(--wine);
    font-family: var(--font-display);
    font-size: 3rem;
    margin: .5rem 0 1rem;
  }
  .guest-box {
    padding: 1.5rem;
    margin: 1.25rem 0;
    border-block: 1px solid var(--line);
  }
  .guest-label, .guest-seats { display: block; color: #665f5a; }
  .guest-name {
    display: block;
    margin: .35rem 0;
    color: var(--wine);
    font-family: var(--font-display);
    font-size: 1.65rem;
  }
  
  /* ============================================================
     5. MENÚ + MÚSICA
     ============================================================ */
  .menu-toggle,
  .music-button {
    position: fixed;
    z-index: 80;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: rgba(248, 245, 239, .9);
    color: var(--deep-wine);
    box-shadow: 0 8px 24px rgba(41, 38, 36, .08);
    cursor: pointer;
  }
  .menu-toggle {
    top: 18px;
    left: 18px;
    display: grid;
    place-content: center;
    gap: 4px;
  }
  .menu-toggle span:not(.sr-only) { width: 18px; height: 1px; background: currentColor; display: block; }
  .music-button { top: 18px; right: 18px; font-size: 1.2rem; }
  .music-button.is-playing { background: var(--wine); color: white; }
  
  .site-menu {
    position: fixed;
    z-index: 75;
    top: 72px;
    left: 18px;
    width: min(260px, calc(100vw - 36px));
    display: grid;
    gap: .35rem;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(252, 250, 246, .96);
    box-shadow: var(--shadow);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: .25s ease;
  }
  .site-menu.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .site-menu a {
    padding: .55rem .65rem;
    border-radius: 10px;
    text-decoration: none;
  }
  .site-menu a:hover { background: var(--beige); }
  
  /* ============================================================
     6. NUESTRA HISTORIA
     ============================================================ */
  .full-section {
    min-height: 100svh;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: clamp(30px, 7vw, 100px);
    padding: clamp(80px, 10vw, 150px);
  }
  .story-copy { max-width: 650px; }
  .story-copy p:not(.eyebrow) { max-width: 58ch; font-size: 1.05rem; }
  .story-art {
    min-height: 520px;
    position: relative;
    display: grid;
    place-items: center;
  }
  .arch {
    width: min(330px, 70%);
    aspect-ratio: .72;
    border: 1px solid var(--wine);
    border-bottom: 0;
    border-radius: 180px 180px 0 0;
    opacity: .45;
  }
  .arch.tall { width: 54%; }
  .botanical {
    position: absolute;
    color: var(--wine);
    font-family: var(--font-display);
    font-size: 8rem;
    opacity: .4;
    transform: rotate(-20deg);
  }
  .botanical.large { font-size: 10rem; }
  
  /* ============================================================
     7. LAYOUT DESKTOP — A/B/C/D FIJO + E SCROLL
     ============================================================ */
  .invitation-shell {
    height: 100svh;
    display: grid;
    grid-template-columns: var(--desktop-left) 1fr;
    overflow: hidden;
    background: var(--warm-white);
  }
  .fixed-panel {
    height: 100svh;
    display: grid;
    grid-template-rows: minmax(0, 62%) auto;
    border-right: 1px solid var(--line);
    background: var(--warm-white);
  }
  .couple-photo-wrap {
    min-height: 0;
    overflow: hidden;
  }
  .couple-photo-wrap img {
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  .fixed-copy {
    display: grid;
    gap: 14px;
    align-content: center;
    padding: clamp(20px, 4vw, 44px);
    text-align: center;
  }
  .small-script {
    margin-bottom: .15rem;
    font-family: var(--font-display);
    font-style: italic;
  }
  .couple-names {
    margin-bottom: 1rem;
    color: var(--deep-wine);
    font-size: clamp(2.2rem, 4vw, 4.5rem);
  }
  .section-c p { margin-bottom: .15rem; }
  .countdown {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
  }
  .countdown div { display: grid; gap: 2px; }
  .countdown strong { font-family: var(--font-display); font-size: clamp(1.75rem, 3vw, 3rem); font-weight: 400; }
  .countdown span { color: var(--taupe); text-transform: uppercase; letter-spacing: .12em; font-size: .68rem; }
  
  .scroll-panel {
    height: 100svh;
    overflow-y: auto;
    scroll-snap-type: y proximity;
  }
  .content-section {
    position: relative;
    min-height: 100svh;
    display: grid;
    align-items: center;
    padding: clamp(70px, 8vw, 120px);
    border-bottom: 1px solid var(--line);
    scroll-snap-align: start;
  }
  .section-inner { width: min(900px, 100%); margin-inline: auto; }
  .section-number {
    position: absolute;
    top: 28px;
    left: 28px;
    display: grid;
    place-items: center;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--wine);
    color: white;
    font-size: .75rem;
    font-weight: 700;
  }
  
  /* ============================================================
     8. E1 — BIENVENIDA
     ============================================================ */
  .section-e1 { background: var(--ivory); }
  .welcome-layout {
    display: grid;
    grid-template-columns: 1fr .9fr;
    gap: clamp(30px, 6vw, 80px);
    align-items: center;
  }
  .line-art-card {
    min-height: 420px;
    position: relative;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 50% 50%, rgba(232,222,208,.65), transparent 55%);
  }
  
  /* ============================================================
     9. E2 — ITINERARIO
     ============================================================ */
  .section-e2 { background: var(--warm-white); }
  .venue-card {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
  }
  .venue-card h2 { font-size: clamp(1.8rem, 3vw, 3rem); margin-bottom: .3rem; }
  .timeline {
    position: relative;
    margin-top: 34px;
  }
  .timeline::before {
    content: "";
    position: absolute;
    top: 40px; bottom: 40px; left: 50%;
    width: 1px;
    background: var(--line);
  }
  .timeline-item {
    min-height: 150px;
    display: grid;
    grid-template-columns: 1fr 100px 1fr;
    align-items: center;
    gap: 22px;
  }
  .timeline-item:nth-child(even) .timeline-copy { order: 3; text-align: left; }
  .timeline-item:nth-child(even) .timeline-art { order: 1; }
  .timeline-item:nth-child(even) .timeline-dot { order: 2; }
  .timeline-copy { text-align: right; }
  .timeline-time { color: var(--wine); font-weight: 700; letter-spacing: .08em; }
  .timeline-label { font-family: var(--font-display); font-size: 1.45rem; }
  .timeline-art img { height: 95px; object-fit: contain; }
  .timeline-dot {
    width: 12px; height: 12px;
    margin: auto;
    border-radius: 50%;
    background: var(--wine);
    box-shadow: 0 0 0 7px var(--warm-white), 0 0 0 8px var(--line);
  }
  
  
  /* ============================================================
     10. E3 — DRESS CODE
     ============================================================ */
  .section-e3 { background: var(--beige); }
  .dress-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 20px;
    margin-top: 28px;
  }
  .dress-grid figure { margin: 0; }
  .dress-grid img {
    aspect-ratio: 4/5;
    object-fit: contain;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 18px;
  }
  .dress-grid figcaption {
    margin-top: 8px;
    text-align: center;
    color: var(--taupe);
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .12em;
  }
  
  .forbidden-colors { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
  .forbidden-title { margin-bottom: .25rem; font-family: var(--font-display); font-size: 1.35rem; }
  .forbidden-copy { margin-bottom: 16px; color: #6f675f; }
  .color-swatches { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
  .color-swatch { text-align: center; }
  .color-swatch-chip { aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(41,38,36,.14); box-shadow: inset 0 0 0 4px rgba(255,255,255,.35); }
  .color-swatch-name { display:block; margin-top:8px; font-size:.78rem; color:#6f675f; }
  
  /* ============================================================
     11. E4 — REGALOS
     ============================================================ */
  .section-e4 { background: var(--ivory); }
  .bank-details {
    margin-top: 28px;
    border-top: 1px solid var(--line);
  }
  .bank-details div {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 20px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
  }
  .bank-details dt { color: var(--taupe); }
  .bank-details dd { margin: 0; }
  
  /* ============================================================
     12. E5 — VIAJE
     ============================================================ */
  .section-e5 {
    background:
      linear-gradient(rgba(41,38,36,.35), rgba(41,38,36,.45)),
      radial-gradient(circle at 30% 40%, #D8C7B5, #8A7C68);
    color: white;
  }
  .section-e5 .eyebrow { color: #F8EDEA; }
  .travel-card { max-width: 700px; margin: auto; }

  /* ============================================================
   VUELOS
   Aerolínea | Días | Sitio web
   ============================================================ */

.flight-table {
  width: 100%;
  margin-top: 28px;

  border-top: 1px solid var(--line);
}

.flight-table-header,
.flight-row {
  display: grid;

  grid-template-columns:
    minmax(120px, 1fr)
    minmax(180px, 1.5fr)
    minmax(100px, 0.7fr);

  gap: 20px;

  align-items: center;

  padding: 18px 0;

  border-bottom: 1px solid var(--line);
}


/* Encabezados */

.flight-table-header {
  padding-top: 12px;
  padding-bottom: 12px;

  color: var(--taupe);

  font-size: 0.72rem;
  font-weight: 700;

  letter-spacing: 0.12em;
  text-transform: uppercase;
}


/* Nombre de aerolínea */

.flight-airline {
  font-family: var(--font-display);

  font-size: 1.15rem;

  color: var(--ink);
}


/* Días */

.flight-days {
  font-size: 0.88rem;
  line-height: 1.5;

  color: var(--taupe);
}


/* Link */

.flight-link {
  justify-self: start;

  color: var(--wine);

  font-size: 0.82rem;
  font-weight: 700;

  text-decoration: none;

  border-bottom: 1px solid currentColor;

  padding-bottom: 2px;
}

.flight-link:hover {
  opacity: 0.65;
}


/* ============================================================
   VUELOS — MOBILE
   ============================================================ */

@media (max-width: 820px) {

  /* Ocultamos encabezados */
  .flight-table-header {
    display: none;
  }

  .flight-row {
    display: block;

    padding: 22px 0;
  }

  .flight-airline,
  .flight-days,
  .flight-link {
    display: block;
  }

  .flight-airline {
    margin-bottom: 6px;

    font-size: 1.25rem;
  }

  .flight-days {
    margin-bottom: 12px;

    font-size: 0.85rem;
  }

  .flight-link {
    width: fit-content;
  }

}
  
  /* ============================================================
     13. E6 — HOSPEDAJE
     ============================================================ */
  .section-e6 { background: var(--warm-white); }
  .hotel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 20px;
    margin-top: 28px;
  }
  .hotel-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--ivory);
  }
  .hotel-card img { aspect-ratio: 4/3; object-fit: cover; }
  .hotel-card-body { padding: 18px; }
  .hotel-card h3 { font-size: 1.45rem; margin-bottom: .5rem; }
  .hotel-code { color: var(--wine); font-weight: 700; }

  /* ============================================================
   E6 — INSTRUCCIONES DE HOSPEDAJE
   ============================================================ */

.hotel-instructions {
  max-width: 600px;
  margin: 0 auto 32px;
  text-align: center;
}

.hotel-instructions p {
  margin: 0;

  font-size: 0.88rem;
  line-height: 1.7;

  color: var(--taupe);
}
  
  /* ============================================================
     14. RSVP
     ============================================================ */
  .rsvp-section { background: var(--deep-wine); color: white; }
  .rsvp-section .eyebrow { color: #E9C8CD; }
  .rsvp-personal {
    display: grid;
    gap: 3px;
    margin: 28px 0;
    padding: 20px 0;
    border-block: 1px solid rgba(255,255,255,.18);
  }
  .rsvp-personal strong { font-family: var(--font-display); font-size: 1.55rem; }
  .whatsapp { background: var(--ivory); color: var(--deep-wine); }
  
  /* ============================================================
     15. ANIMACIONES SUAVES
     ============================================================ */
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .8s ease, transform .8s ease;
  }
  .reveal.is-visible { opacity: 1; transform: translateY(0); }
  
  /* ============================================================
     16. MOBILE
     Todo se convierte en una sola columna vertical.
     Timeline: imagen izquierda + punto/línea + texto derecha.
     ============================================================ */
  @media (max-width: 820px) {
  
    body {
      background: var(--warm-white);
    }
  
    /* ----------------------------------------------------------
       NUESTRA HISTORIA
       ---------------------------------------------------------- */
    .full-section {
      min-height: auto;
      grid-template-columns: 1fr;
      padding: 100px 24px 70px;
    }
  
    .story-art {
      min-height: 300px;
    }
  
    /* ----------------------------------------------------------
       A / B / C / D
       ---------------------------------------------------------- */
    .invitation-shell {
      height: auto;
      display: block;
      overflow: visible;
    }
  
    .fixed-panel {
      height: auto;
      display: block;
      border-right: 0;
    }
  
    .couple-photo-wrap {
      height: 72svh;
    }
  
    .fixed-copy {
      padding: 34px 24px 50px;
    }
  
    /* ----------------------------------------------------------
       E1 - E6
       ---------------------------------------------------------- */
    .scroll-panel {
      height: auto;
      overflow: visible;
      scroll-snap-type: none;
    }
  
    .content-section {
      min-height: auto;
      padding: 88px 24px 72px;
    }
  
    .section-number {
      top: 24px;
      left: 24px;
    }
  
    .welcome-layout {
      grid-template-columns: 1fr;
    }
  
    .line-art-card {
      min-height: 300px;
    }
  
    .venue-card {
      align-items: flex-start;
      flex-direction: column;
    }
  
    /* ==========================================================
       E2 — TIMELINE MOBILE
       Imagen izquierda + punto/línea + texto derecha
       ========================================================== */
  
    .timeline {
      position: relative;
      margin-top: 34px;
  
      /* Edita estas dos variables para mover la composición */
      --timeline-image-width: 120px;
      --timeline-dot-width: 34px;
    }
  
    /* Línea vertical */
    .timeline::before {
      content: "";
      position: absolute;
  
      /*
        La línea queda exactamente al centro
        de la columna donde vive el punto.
      */
      left: calc(
        var(--timeline-image-width)
        + (var(--timeline-dot-width) / 2)
      );
  
      top: 25px;
      bottom: 25px;
  
      width: 1px;
  
      background: var(--line);
  
      transform: translateX(-50%);
    }
  
    /* Cada evento */
    .timeline-item,
    .timeline-item:nth-child(even) {
      position: relative;
  
      display: grid;
  
      grid-template-columns:
        var(--timeline-image-width)
        var(--timeline-dot-width)
        minmax(0, 1fr);
  
      grid-template-rows: auto;
  
      align-items: center;
  
      gap: 0;
  
      min-height: 135px;
  
      padding: 8px 0;
    }
  
    /* ----------------------------------------------------------
       IMAGEN
       ---------------------------------------------------------- */
  
    .timeline-item .timeline-art,
    .timeline-item:nth-child(even) .timeline-art {
      order: unset;
  
      grid-column: 1;
      grid-row: 1;
  
      display: flex;
  
      align-items: center;
      justify-content: center;
  
      width: var(--timeline-image-width);
  
      padding-right: 12px;
    }
  
    /*
      Tamaño de los SVG / imágenes del timeline en móvil.
      Cambia 72px si quieres hacerlos más grandes o pequeños.
    */
    .timeline-art img {
      width: 60px;
      height: 60px;
  
      object-fit: contain;
    }
  
    /* ----------------------------------------------------------
       PUNTO CENTRAL
       ---------------------------------------------------------- */
  
    .timeline-item .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
      order: unset;
  
      grid-column: 2;
      grid-row: 1;
  
      width: 12px;
      height: 12px;
  
      margin: auto;
  
      border-radius: 50%;
  
      background: var(--wine);
  
      box-shadow:
        0 0 0 7px var(--warm-white),
        0 0 0 8px var(--line);
  
      position: relative;
      z-index: 2;
    }
  
    /* ----------------------------------------------------------
       TEXTO
       ---------------------------------------------------------- */
  
    .timeline-item .timeline-copy,
    .timeline-item:nth-child(even) .timeline-copy {
      order: unset;
  
      grid-column: 3;
      grid-row: 1;
  
      min-width: 0;
  
      padding-left: 14px;
  
      text-align: left;
    }
  
    .timeline-time {
      margin-bottom: 4px;
  
      color: var(--wine);
  
      font-size: 0.85rem;
      font-weight: 700;
  
      letter-spacing: 0.08em;
    }
  
    .timeline-label {
      font-family: var(--font-display);
  
      font-size: 1.35rem;
      line-height: 1.15;
    }
  
    /* ----------------------------------------------------------
       E3 — DRESS CODE / COLORES RESERVADOS
       ---------------------------------------------------------- */
  
    .dress-grid,
    .hotel-grid {
      grid-template-columns: 1fr;
    }
  
    .color-swatches {
      grid-template-columns: repeat(4, 1fr);
      gap: 10px;
    }
  
    /* ----------------------------------------------------------
       E4 — REGALOS
       ---------------------------------------------------------- */
  
    .bank-details div {
      grid-template-columns: 90px 1fr;
    }
  }
  
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  }