/* =====================================================
   CelebraTodo — evento.css
   Página pública del evento. Carga después de tokens.css
   ===================================================== */

/* ── HERO ── */
.ev-hero {
  position: relative;
  min-height: 400px;
  background: var(--navy);
  overflow: hidden;
}
.ev-hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  transition: transform 8s ease;
}
.ev-hero:hover .ev-hero-bg { transform: scale(1.06); }
.ev-hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(16,22,36,.18) 0%, rgba(16,22,36,.36) 26%, rgba(16,22,36,.62) 74%, rgba(16,22,36,.78) 100%);
}
.ev-hero-content {
  position: relative; z-index: 2;
  color: #fff;
  min-height: 320px;
  width: 100%;
  padding: 28px 0 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  text-align: left;
}
.ev-type {
  display: inline-block;
  font-size: 9px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  padding: 4px 12px; border-radius: var(--r-full);
  background: rgba(176,141,60,.20); border: 1px solid rgba(255,255,255,.18);
  color: #f6ddb0; margin-bottom: 10px;
}
.ev-hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.8vw, 60px);
  font-weight: 300; line-height: .98;
  margin-bottom: 8px;
  max-width: 680px;
  text-shadow: 0 8px 22px rgba(0,0,0,.22);
}
.ev-welcome {
  font-size: 14px; color: rgba(255,255,255,.78);
  max-width: 560px; line-height: 1.55; margin-bottom: 10px;
  text-shadow: 0 6px 18px rgba(0,0,0,.2);
}
.ev-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  padding-top: 10px;
  position: relative;
}
.ev-meta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: min(100%, 320px);
  height: 1px;
  transform: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
}
.ev-meta-item {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; color: rgba(255,255,255,.88);
  text-shadow: 0 4px 14px rgba(0,0,0,.2);
}
.ev-meta-item svg { width: 14px; height: 14px; opacity: .7; }
.ev-countdown{
  display:grid;
  gap:8px;
  width:min(100%, 320px);
  margin-top:22px;
  padding:18px 20px;
  border-radius:24px;
  background:linear-gradient(180deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,.08) 100%);
  border:1px solid rgba(255,255,255,.24);
  box-shadow:0 18px 40px rgba(12,23,43,.22);
  backdrop-filter:blur(10px);
}
.ev-countdown__eyebrow{
  display:inline-flex;
  width:max-content;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.16);
  color:#f6ddb0;
  font-size:11px;
  font-weight:700;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.ev-countdown__value{
  color:#fff;
  font-family:var(--font-display);
  font-size:56px;
  font-weight:300;
  line-height:.92;
  text-shadow:0 8px 22px rgba(0,0,0,.22);
}
.ev-countdown__label{
  color:rgba(255,255,255,.9);
  font-size:14px;
  letter-spacing:.08em;
  text-transform:uppercase;
}

/* ── BODY ── */
.ev-body {
  background:
    linear-gradient(180deg, rgba(250,247,242,0) 0, rgba(250,247,242,.72) 80px, var(--cream) 160px),
    var(--cream);
  margin-top: -74px;
  padding: 0 0 80px;
  position: relative;
  z-index: 3;
}
.ev-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .95fr);
  gap: 18px;
  align-items: start;
}

/* ── PANEL ── */
.ev-panel {
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(26,42,66,.12);
  backdrop-filter: blur(8px);
  margin-bottom: 22px;
}
.ev-panel:last-child { margin-bottom: 0; }
.ev-panel-head {
  display: flex; align-items: center; gap: 11px;
  padding: 20px 24px; border-bottom: 1px solid var(--border-light);
}
.ev-panel-head h2 { font-family: var(--font-display); font-size: 21px; font-weight: 400; color: var(--navy); }
.ev-panel-ico {
  width: 34px; height: 34px; border-radius: var(--r-sm);
  background: var(--gold-pale); display: flex; align-items: center; justify-content: center;
  color: var(--gold); flex-shrink: 0;
}
.ev-panel-ico svg { width: 16px; height: 16px; }
.ev-panel-body { padding: 24px; }

.ev-detail-card{
  padding:18px;
  border:1px solid rgba(217,198,160,.42);
  border-radius:20px;
  background:linear-gradient(180deg, rgba(255,250,243,.96) 0%, rgba(255,255,255,.98) 100%);
  margin-bottom:16px;
}
.ev-detail-card:last-child{margin-bottom:0}
.ev-detail-card--soft{
  background:linear-gradient(180deg, rgba(248,245,255,.96) 0%, rgba(255,255,255,.98) 100%);
}
.ev-detail-card h3{
  margin:0 0 10px;
  font-size:18px;
  font-weight:500;
  color:var(--navy);
  font-family:var(--font-display);
}
.ev-detail-card p{
  margin:0 0 10px;
  color:var(--text-mid);
  line-height:1.7;
}
.ev-detail-badge{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:0 14px;
  border-radius:999px;
  background:var(--gold-pale);
  color:var(--gold);
  font-size:12px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.ev-signature-card{
  display:flex;
  align-items:center;
  gap:18px;
}
.ev-signature-card strong{
  display:block;
  font-size:22px;
  color:var(--navy);
  font-family:var(--font-display);
  font-weight:500;
}
.ev-signature-card p{
  margin:8px 0 0;
  color:var(--text-mid);
}
.ev-signature-photo{
  width:96px;
  height:96px;
  object-fit:cover;
  border-radius:50%;
  border:4px solid rgba(255,255,255,.9);
  box-shadow:0 14px 26px rgba(26,42,66,.14);
}

/* Historia */
.story-text {
  font-family: var(--font-display);
  font-size: 17px; line-height: 1.85;
  color: var(--text-mid); font-style: italic;
}

/* Galeria */
.ev-gallery-panel{
  display:flex;
  flex-direction:column;
  gap:20px;
}
.ev-gallery-panel--compact{
  gap:18px;
}
.ev-gallery-copy{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
}
.ev-gallery-copy p{
  margin:0;
  max-width:620px;
  color:var(--text-mid);
  line-height:1.7;
}
.ev-gallery-copy span{
  flex-shrink:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:0 14px;
  border-radius:999px;
  background:var(--gold-ultra);
  color:var(--gold);
  font-size:12px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.ev-gallery-teaser{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:18px;
  border-radius:22px;
  background:linear-gradient(135deg, rgba(248,241,228,.85) 0%, rgba(255,255,255,.95) 100%);
  border:1px solid rgba(217,198,160,.45);
}
.ev-gallery-teaser__stack{
  position:relative;
  min-height:96px;
  width:220px;
}
.ev-gallery-teaser__thumb{
  position:absolute;
  width:96px;
  height:96px;
  overflow:hidden;
  border-radius:22px;
  border:3px solid rgba(255,255,255,.88);
  box-shadow:0 16px 30px rgba(26,42,66,.12);
  background:#fff;
}
.ev-gallery-teaser__thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.ev-gallery-teaser__thumb--1{left:0;top:0;transform:rotate(-6deg)}
.ev-gallery-teaser__thumb--2{left:58px;top:0;z-index:2}
.ev-gallery-teaser__thumb--3{left:118px;top:0;transform:rotate(6deg)}
.ev-gallery-open-btn{
  flex-shrink:0;
}
.ev-gallery-collage{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  grid-auto-rows:118px;
  grid-auto-flow:dense;
  gap:14px;
}
.ev-gallery-item{
  position:relative;
  display:block;
  overflow:hidden;
  border-radius:22px;
  background:linear-gradient(180deg,#f8f1e4 0%,#f3ead8 100%);
  box-shadow:0 18px 36px rgba(26,42,66,.10);
}
.ev-gallery-item img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .45s ease, filter .45s ease;
}
.ev-gallery-item:hover img{
  transform:scale(1.05);
  filter:saturate(1.06);
}
.ev-gallery-item__shade{
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(16,22,36,0) 40%, rgba(16,22,36,.16) 100%);
  pointer-events:none;
}
.ev-gallery-item__tag{
  position:absolute;
  left:14px;
  bottom:14px;
  z-index:2;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:32px;
  padding:0 12px;
  border-radius:999px;
  background:rgba(255,255,255,.92);
  color:var(--navy);
  font-size:11px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  box-shadow:0 12px 24px rgba(16,22,36,.14);
}
.ev-gallery-item--hero{
  grid-column:span 2;
  grid-row:span 2;
}
.ev-gallery-item--wide{
  grid-column:span 2;
}
.ev-gallery-item--tall{
  grid-row:span 2;
}
.ev-gallery-modal{
  position:fixed;
  inset:0;
  z-index:80;
}
.ev-gallery-modal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(10,18,32,.72);
  backdrop-filter:blur(10px);
}
.ev-gallery-modal__dialog{
  position:relative;
  z-index:1;
  width:min(100% - 32px, 1120px);
  max-height:calc(100vh - 40px);
  margin:20px auto;
  border-radius:28px;
  overflow:hidden;
  background:linear-gradient(180deg, rgba(255,255,255,.97) 0%, rgba(251,247,239,.98) 100%);
  box-shadow:0 32px 80px rgba(8,16,28,.28);
  display:flex;
  flex-direction:column;
}
.ev-gallery-modal__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:22px 24px;
  border-bottom:1px solid rgba(222,213,198,.8);
}
.ev-gallery-modal__eyebrow{
  font-size:11px;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--gold);
  margin-bottom:6px;
}
.ev-gallery-modal__head h3{
  margin:0;
  font-family:var(--font-display);
  font-size:34px;
  color:var(--navy);
}
.ev-gallery-modal__close{
  width:42px;
  height:42px;
  border:none;
  border-radius:999px;
  background:var(--navy);
  color:#fff;
  font-size:24px;
  line-height:1;
  cursor:pointer;
}
.ev-gallery-modal__body{
  padding:24px;
  overflow:auto;
}
.ev-gallery-modal__grid{
  column-count:3;
  column-gap:16px;
}
.ev-gallery-modal__tile{
  position:relative;
  display:block;
  margin:0 0 16px;
  break-inside:avoid;
  overflow:hidden;
  border-radius:22px;
  background:linear-gradient(180deg,#fbf7ef 0%,#f3ead8 100%);
  box-shadow:0 18px 36px rgba(26,42,66,.10);
}
.ev-gallery-modal__tile img{
  display:block;
  width:100%;
  height:auto;
}
.ev-gallery-modal__tag{
  position:absolute;
  left:14px;
  bottom:14px;
  z-index:2;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:32px;
  padding:0 12px;
  border-radius:999px;
  background:rgba(255,255,255,.92);
  color:var(--navy);
  font-size:11px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  box-shadow:0 12px 24px rgba(16,22,36,.14);
}
body.ev-gallery-modal-open{
  overflow:hidden;
}

/* Regalos */
.gift-list { display: flex; flex-direction: column; gap: 10px; }
.gift-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--border-light);
  border-radius: var(--r-md); background: var(--cream);
  transition: border-color var(--dur), box-shadow var(--dur);
}
.gift-item:hover { border-color: var(--gold); box-shadow: var(--shadow-xs); }
.gift-ico {
  width: 34px; height: 34px; border-radius: var(--r-sm);
  background: var(--gold-pale); display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 15px; flex-shrink: 0;
}
.gift-title { flex: 1; font-size: 14px; font-weight: 500; color: var(--navy); }
.gift-link {
  font-size: 11px; font-weight: 600; color: var(--gold);
  padding: 4px 11px; border: 1px solid var(--border);
  border-radius: var(--r-full);
  transition: all var(--dur); flex-shrink: 0;
  text-decoration: none;
}
.gift-link:hover { background: var(--gold-pale); border-color: var(--gold); }

/* RSVP */
.rsvp-form { display: flex; flex-direction: column; gap: 14px; }
.rsvp-form fieldset {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  border: 0;
  min-inline-size: 0;
}
.rsvp-form fieldset[disabled] {
  opacity: .72;
}
.rsvp-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rsvp-status { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.rsvp-opt { position: relative; }
.rsvp-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.rsvp-opt label {
  display: block; text-align: center; padding: 9px 6px;
  border: 1.5px solid var(--border); border-radius: var(--r-md);
  font-size: 12px; font-weight: 600; letter-spacing: .03em;
  cursor: pointer; color: var(--text-muted);
  transition: all var(--dur);
}
.rsvp-form fieldset[disabled] .rsvp-opt label {
  cursor: not-allowed;
}
.rsvp-opt label:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-ultra); }
.rsvp-form fieldset[disabled] .rsvp-opt label:hover {
  border-color: var(--border);
  color: var(--text-muted);
  background: transparent;
}
.rsvp-opt input:checked + label { border-color: var(--gold); background: var(--gold-pale); color: var(--gold); }
.rsvp-yes  input:checked + label { border-color: var(--sage); background: var(--sage-pale); color: var(--sage); }
.rsvp-no   input:checked + label { border-color: var(--rose); background: var(--rose-pale); color: var(--rose); }
.rsvp-submit { width: 100%; justify-content: center; border-radius: var(--r-md) !important; }

/* ── RESPONSIVE ── */
@media (max-width:900px) {
  .ev-hero {
    min-height: 260px;
  }
  .ev-hero-content {
    min-height: 260px;
    padding: 20px 0 20px;
  }
  .ev-hero-content h1 {
    font-size: clamp(28px, 9vw, 42px);
  }
  .ev-countdown{
    width:100%;
    max-width:340px;
  }
  .ev-countdown__value{
    font-size:44px;
  }
  .ev-welcome {
    font-size: 13px;
  }
  .ev-body {
    margin-top: -48px;
  }
  .ev-gallery-copy{
    flex-direction:column;
    align-items:flex-start;
  }
  .ev-gallery-teaser{
    flex-direction:column;
    align-items:flex-start;
  }
  .ev-gallery-teaser__stack{
    width:100%;
    max-width:220px;
  }
  .ev-gallery-collage{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    grid-auto-rows:110px;
  }
  .ev-gallery-modal__dialog{
    width:min(100% - 20px, 1120px);
    margin:10px auto;
    max-height:calc(100vh - 20px);
  }
  .ev-gallery-modal__head{
    padding:18px;
  }
  .ev-gallery-modal__head h3{
    font-size:28px;
  }
  .ev-gallery-modal__body{
    padding:18px;
  }
  .ev-gallery-modal__grid{
    column-count:2;
  }
  .ev-gallery-item--hero,
  .ev-gallery-item--wide{
    grid-column:span 2;
  }
  .ev-grid { grid-template-columns: 1fr; }
  .rsvp-2col { grid-template-columns: 1fr; }
  .ev-signature-card{
    align-items:flex-start;
  }
}

@media (max-width:640px) {
  .ev-hero-content{
    min-height:230px;
    padding:18px 0;
  }

  .ev-meta{
    flex-direction:column;
    align-items:flex-start;
  }
  .ev-countdown{
    padding:16px 18px;
    border-radius:20px;
  }
  .ev-countdown__value{
    font-size:38px;
  }
  .ev-countdown__label{
    font-size:12px;
  }

  .ev-panel-head,
  .ev-panel-body{
    padding:16px;
  }

  .story-text{
    font-size:16px;
    line-height:1.75;
  }

  .ev-gallery-teaser{
    padding:14px;
  }

  .ev-gallery-teaser__stack{
    max-width:168px;
    min-height:78px;
  }

  .ev-gallery-teaser__thumb{
    width:78px;
    height:78px;
    border-radius:18px;
  }

  .ev-gallery-teaser__thumb--2{left:42px}
  .ev-gallery-teaser__thumb--3{left:84px}

  .ev-gallery-collage{
    grid-template-columns:1fr;
    grid-auto-rows:180px;
  }

  .ev-gallery-item--hero,
  .ev-gallery-item--wide,
  .ev-gallery-item--tall{
    grid-column:auto;
    grid-row:auto;
  }

  .ev-gallery-modal__head{
    flex-direction:column;
    align-items:flex-start;
  }

  .ev-gallery-modal__close{
    align-self:flex-end;
  }

  .ev-gallery-modal__grid{
    column-count:1;
  }

  .gift-item{
    flex-wrap:wrap;
    align-items:flex-start;
  }

  .gift-link{
    width:100%;
    justify-content:center;
  }

  .rsvp-status{
    grid-template-columns:1fr;
  }

  .ev-signature-card{
    flex-direction:column;
  }
}
