:root{
  --gold:  #a57b00;
  --text:  #222;
  --bg:    #faf7f2;
  --paper: #f5efe6;
  --glass: rgba(255,255,255,.78);
}

/* ===== Reset mínimo / base ===== */
*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}
img{ max-width: 100%; display: block; }

.container{ max-width: 980px; margin: 0 auto; }

.title{
  font-family: "Playfair Display", serif;
  font-size: clamp(24px, 4.5vw, 36px);
  margin: 0 0 14px;
  text-align: center;
}
.subtitle{ font-family: "Playfair Display", serif; margin: 8px 0; }
.muted{ opacity: .8; }

/* ===== Botones / tarjetas ===== */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: 12px 20px; border-radius: 999px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; font-weight: 600;
}
.btn.gold    { background: var(--gold); color: #fff; }
.btn.light   { background: #fff; color: #333; border-color: #ddd; }
.btn.outline { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn:hover{ filter: brightness(.97); }

.card { border-radius: 18px; padding: 18px; }
.glass{
  background: var(--glass);
  backdrop-filter: blur(6px) saturate(120%);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

.site-footer{ text-align: center; padding: 30px 0 60px; color: #666; }

/* =========================================================================
   HERO (foto + medio óvalo SIEMPRE a pantalla completa)
   ========================================================================= */
.hero{
  position: relative;
  min-height: 100vh;                                   /* fullscreen */
  background: #111 url('img/headers/Imagen_001.webp') center/cover no-repeat;
  transition: background-image .8s ease;
}
@supports (height: 100svh){
  .hero{ min-height: 100svh; }                         /* móvil moderno */
}

/* Capa que ocupa todo el hero y pega el óvalo al fondo */
.hero-overlay{
  position: absolute; inset: 0;
  display: flex; justify-content: center; align-items: flex-end;
  padding-bottom: 0;                                   /* sin aire abajo */
}
/* Sombra sutil sobre la foto */
.glass-top{ background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.25)); }

/* “Medio óvalo” centrado y pegado al borde inferior */
.hero-inner{
  width: min(1100px, 92%);
  margin: 0;
  padding: 32px 20px 20px;                             /* respiro interno */
  text-align: center;
  background: var(--glass);
  backdrop-filter: blur(6px);
  border-radius: 1200px 1200px 0 0;                    /* medio óvalo */
  box-shadow: 0 10px 30px rgba(0,0,0,.10);
}

.brand{
  font-family: "Playfair Display", serif;
  font-size: clamp(34px, 6vw, 56px);
  margin: 0;
}
.brand span{ color: var(--gold); }
.hero-sub{ opacity: .9; margin: 6px 0 14px; }

/* ===== Contador ===== */
.countdown{
  display: grid; justify-content: center;
  grid-template-columns: repeat(4, minmax(84px, 112px));
  gap: 16px; margin: 10px 0 24px;
}
.countdown .box{
  background: var(--gold); color: #fff;
  border-radius: 14px; padding: 14px 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
}
.countdown .val{
  font-weight: 800; font-size: clamp(22px, 4vw, 34px); line-height: 1;
}
.countdown .lbl{
  text-transform: uppercase; letter-spacing: .6px; font-size: 12px;
  margin-top: 4px; opacity: .9;
}

/* =========================================================================
   SECCIONES
   ========================================================================= */
.section{ padding: 40px 0; }

/* ===== Invitados ===== */
#invitados .guest-name{
  font-family: "Playfair Display", serif;
  font-size: clamp(20px, 4vw, 28px);
  text-align: center; margin: 4px 0;
}
#invitados .guest-note{ text-align: center; margin: 0 0 10px; }
.pases{ display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 10px 0; }
.pases-num{ font-size: 34px; font-weight: 800; }
.restric{ text-align: center; margin: 6px 0 14px; }
.wallets, .actions-row{
  display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap;
}
.actions-row{ margin-top: 12px; }

/* ===== Padres / Padrinos ===== */
.two-col{
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 32px; justify-items: center; position: relative;
}
.two-col::after{
  content: ""; position: absolute; inset: 12px auto 12px 50%;
  width: 1px; background: rgba(0,0,0,.08); transform: translateX(-50%);
}
.two-col .col{ width: 100%; text-align: center; }

.two-col .col,
.padrinos-grid .padrino-group{
  background: #fff; border: 1px solid #eee;
  border-radius: 16px; padding: 16px 18px;
  box-shadow: 0 6px 16px rgba(0,0,0,.06);
}
.names{ list-style: none; padding: 0; margin: 10px 0 0; line-height: 1.7; text-align: center; }

/* Padrinos: 4 columnas en desktop, 2 en tablet, 1 en móvil */
.padrinos-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px; margin-top: 24px; justify-items: center; text-align: center;
}
.padrino-group{ width: 100%; }

/* ===== Timeline ===== */
.timeline{
  position: relative; margin: 10px auto; padding: 20px 0; max-width: 760px;
}
.timeline::before{
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0;
  width: 2px; background: #ddd; transform: translateX(-50%);
}
.t-item{
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  margin: 26px 0; opacity: 0; transform: translateY(20px);
  transition: all .6s ease;
}
.t-item.visible{ opacity: 1; transform: none; }
.t-item:nth-child(odd)  .t-content{ grid-column: 1/2; text-align: right;  padding-right: 22px; }
.t-item:nth-child(odd)  .t-dot    { grid-column: 2/3; }
.t-item:nth-child(even) .t-dot     { grid-column: 1/2; }
.t-item:nth-child(even) .t-content{ grid-column: 2/3; text-align: left;  padding-left: 22px; }
.t-dot{
  background: #fff; border: 2px solid var(--gold); color: #333;
  border-radius: 50%; width: 44px; height: 44px; display: flex;
  align-items: center; justify-content: center; margin: auto;
  box-shadow: 0 4px 10px rgba(0,0,0,.08);
}
.t-content h4{ margin: 0 0 6px; font-family: "Playfair Display", serif; }

/* ===== Ubicaciones ===== */
.bg-paper{ background: var(--paper); }
.places-2{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.oval{ position: relative; border-radius: 1200px 1200px 0 0; overflow: hidden; }
.oval img{ width: 100%; height: 260px; object-fit: cover; }
.oval figcaption{ position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; }
.place-meta{ text-align: center; margin-top: 12px; }
.place-meta .hour{ font-weight: 700; }
.place-meta .name{ font-family: "Playfair Display", serif; }

/* ===== Vestimenta / Regalos ===== */
.chips{
  list-style: none; padding: 0; margin: 10px 0;
  display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap;
}
.chips li{ padding: 8px 12px; border-radius: 999px; background: #fff; border: 1px solid #eee; }

/* ===== Galería ===== */
.gallery{
  position: relative; max-width: 620px; margin: 10px auto;
  border-radius: 16px; overflow: hidden; background: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.1);
}
.gallery img{ width: 100%; height: 520px; object-fit: cover; background: #eee; }
.gallery .nav{
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.5); color: #fff; border: none;
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
}
.gallery .prev{ left: 10px; } .gallery .next{ right: 10px; }
.gallery-pager{ text-align: center; margin-top: 8px; opacity: .8; }

/* ===== Reveal genérico ===== */
.reveal-up{ opacity: 0; transform: translateY(12px); transition: all .6s ease; }
.reveal-up.is-visible{ opacity: 1; transform: none; }

/* ===== Breakpoints ===== */
@media (max-width: 1200px){
  .padrinos-grid{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px){
  .padrinos-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px){
  .places-2{ grid-template-columns: 1fr; }
}
@media (max-width: 800px){
  .two-col{ grid-template-columns: 1fr; }
  .two-col::after{ display: none; }
}
@media (max-width: 560px){
  .hero{ min-height: 100svh; }
  .countdown{
    grid-template-columns: repeat(4, minmax(64px, 1fr));
    gap: 8px; margin: 8px 0 14px;
  }
  .countdown .box{ padding: 10px 8px; border-radius: 10px; }
  .countdown .val{ font-size: clamp(18px, 5.2vw, 22px); line-height: 1.05; }
  .countdown .lbl{ font-size: 11px; letter-spacing: .4px; margin-top: 2px; }
  #btn-gcal{ padding: 10px 14px; font-size: .95rem; }
}
@media (max-height: 680px){
  .hero-inner{ padding: 24px 16px 16px; }
  .brand{ font-size: clamp(28px, 5.2vw, 48px); }
  .hero-sub{ margin: 4px 0 10px; }
}
