*{margin:0;padding:0;box-sizing:border-box}
:root{
  --blush:#fdf6f0;
  --blush-mid:#f8ede4;
  --blush-dark:#f0ddd0;
  --rose:#c4788a;
  --rose-light:#d89aaa;
  --rose-pale:#edd8e0;
  --mauve:#8a6878;
  --lavender:#b0a0b8;
  --green:#7a9060;
  --ink:#2a1e24;
  --ink2:#4a3840;
  --muted:#8a7880;
  --border:rgba(196,120,138,0.22);
}
html{scroll-behavior:smooth}
body{
  background:#e0d4d8;
  min-height:100vh;
  display:flex;
  justify-content:center;
  padding:32px 0;
  font-family:'Cormorant Garamond',serif;
}

/* ═══ CARD ═══ */
.wrap{
  width:100%;
  max-width:430px;
  background:var(--blush);
  position:relative;
  overflow:hidden;
  box-shadow:0 24px 80px rgba(0,0,0,0.12),0 4px 20px rgba(0,0,0,0.07);
}

/* Textura grano muy sutil */
.wrap::before{
  content:'';
  position:absolute;
  inset:0;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.58 0 0 0 0 0.42 0 0 0 0 0.45 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size:200px 200px;
  pointer-events:none;
  z-index:4;
  mix-blend-mode:multiply;
}
.content{position:relative;z-index:2;}

/* ═══ HERO ═══ */
.hero{
  padding:56px 36px 36px;
  text-align:center;
  position:relative;
  background:var(--blush);
}
.hero-arch{
  display:block;
  width:200px;
  margin:0 auto 20px;
  opacity:0.90;
}
.hero-eyebrow{
  font-family:'Cormorant Garamond',serif;
  font-style:italic;
  font-size:13px;
  letter-spacing:2px;
  color:var(--rose);
  margin-bottom:18px;
  display:block;
}
.name-line{
  font-family:'Cormorant Garamond',serif;
  font-size:58px;
  font-weight:400;
  line-height:1.05;
  color:var(--ink);
  display:block;
  overflow:hidden;
  white-space:nowrap;
}
.name-amp{
  font-family:'Cormorant Garamond',serif;
  font-size:20px;
  font-style:italic;
  color:var(--rose);
  display:block;
  margin:8px 0;
  opacity:0;
}
.hero-date{
  font-family:'Cormorant Garamond',serif;
  font-size:14px;
  font-style:italic;
  color:var(--muted);
  margin-top:18px;
  opacity:0;
  letter-spacing:1.5px;
}
.hero-divider{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  margin:24px auto 0;
  opacity:0.45;
}
.hero-divider::before,.hero-divider::after{
  content:'';
  display:block;
  width:36px;
  height:1px;
  background:var(--rose-light);
}
.hero-divider-dot{
  width:4px;
  height:4px;
  border-radius:50%;
  background:var(--rose);
}

@keyframes reveal{from{width:0}to{width:100%}}
@keyframes fadein{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.name1{animation:reveal 1s steps(24,end) 0.3s forwards;width:0;}
.name-amp{animation:fadein 0.6s ease 1.4s forwards;}
.name2{animation:reveal 1s steps(24,end) 2s forwards;width:0;}
.hero-date{animation:fadein 0.6s ease 3.2s forwards;}

/* ═══ SECTIONS ═══ */
.section{
  padding:44px 40px;
  position:relative;
  border-top:1px solid rgba(196,120,138,0.10);
}
.section--center{text-align:center;}
.section--warm{background:var(--blush-mid);}

.section-eyebrow{
  font-family:'Cormorant Garamond',serif;
  font-style:italic;
  font-size:13px;
  letter-spacing:1.5px;
  color:var(--rose);
  display:block;
  margin-bottom:10px;
}
.section-title{
  font-family:'Cormorant Garamond',serif;
  font-size:38px;
  font-weight:400;
  color:var(--ink);
  display:block;
  margin-bottom:16px;
  line-height:1.15;
}
.section-title--sm{font-size:30px;}
.body-text{
  font-family:'Cormorant Garamond',serif;
  font-style:italic;
  font-size:16px;
  line-height:1.9;
  color:var(--ink2);
}
.detail-text{
  font-family:'Cormorant Garamond',serif;
  font-style:italic;
  font-size:17px;
  color:var(--ink2);
  line-height:1.8;
}

/* ═══ THIN DIVIDER ═══ */
.thin-divider{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin:20px auto;
  opacity:0.40;
}
.thin-divider::before,.thin-divider::after{
  content:'';
  display:block;
  width:30px;
  height:1px;
  background:var(--rose-light);
}
.thin-divider-icon{
  font-size:10px;
  color:var(--rose);
}

/* ═══ VENUE ═══ */
.venue-name{
  font-family:'Cormorant Garamond',serif;
  font-size:24px;
  font-weight:400;
  color:var(--ink);
  display:block;
  letter-spacing:0.5px;
}
.venue-location{
  font-family:'Cormorant Garamond',serif;
  font-style:italic;
  font-size:15px;
  color:var(--muted);
  display:block;
  margin-top:4px;
}

/* ═══ PILL BUTTON ═══ */
.pill-btn{
  display:inline-block;
  margin-top:18px;
  padding:10px 28px;
  border:1px solid var(--border);
  border-radius:30px;
  background:transparent;
  font-family:'Cormorant Garamond',serif;
  font-style:italic;
  font-size:15px;
  color:var(--mauve);
  cursor:pointer;
  text-decoration:none;
  transition:background 0.2s, border-color 0.2s;
}
.pill-btn:hover{background:rgba(196,120,138,0.10);border-color:var(--rose);}

/* ═══ PROGRAMA ═══ */
.programa-list{list-style:none;margin-top:8px;}
.programa-item{
  display:flex;
  align-items:center;
  gap:16px;
  padding:13px 0;
  border-bottom:1px solid rgba(196,120,138,0.08);
}
.programa-item:last-child{border-bottom:none;}
.prog-hora{
  font-family:'Cormorant Garamond',serif;
  font-style:italic;
  font-size:14px;
  color:var(--muted);
  min-width:52px;
  flex-shrink:0;
}
.prog-dot{
  width:5px;
  height:5px;
  border-radius:50%;
  background:var(--rose-light);
  flex-shrink:0;
}
.prog-evento{
  font-family:'Cormorant Garamond',serif;
  font-size:17px;
  color:var(--ink2);
}

/* ═══ COUNTDOWN ═══ */
.cd-box{
  display:inline-flex;
  align-items:stretch;
  margin-top:16px;
  border:1px solid var(--border);
  border-radius:14px;
  overflow:hidden;
  background:var(--blush-mid);
}
.cd-unit{
  text-align:center;
  padding:14px 16px 10px;
  min-width:60px;
  border-right:1px solid var(--border);
}
.cd-unit:last-child{border-right:none;}
.cd-num{
  display:block;
  font-family:'Cormorant Garamond',serif;
  font-size:36px;
  font-weight:400;
  color:var(--ink);
  line-height:1;
  font-variant-numeric:tabular-nums;
}
.cd-unit.secs-unit .cd-num{color:var(--rose);}
.cd-lbl{
  display:block;
  font-family:'Cormorant Garamond',serif;
  font-style:italic;
  font-size:10px;
  color:var(--muted);
  margin-top:5px;
}

/* ═══ IBAN ═══ */
.iban-box{
  font-family:'Cormorant Garamond',serif;
  font-size:14px;
  letter-spacing:1.5px;
  color:var(--ink2);
  margin-top:14px;
  padding:10px 20px;
  border:1px solid var(--border);
  border-radius:10px;
  display:inline-block;
  background:var(--blush-mid);
}

/* ═══ IMÁGENES ═══ */
.obsequios-img{
  width:100%;
  max-width:260px;
  display:block;
  margin:0 auto 20px;
  -webkit-mask-image:linear-gradient(to bottom, transparent 0%, black 10%, black 85%, transparent 100%), linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-composite:destination-in;
  mask-image:linear-gradient(to bottom, transparent 0%, black 10%, black 85%, transparent 100%), linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-composite:intersect;
}
.end-castle-img{
  width:100%;
  height:auto;
  display:block;
  margin:0 auto;
  max-height:400px;
  object-fit:cover;
  mix-blend-mode:multiply;
  -webkit-mask-image:linear-gradient(to bottom, transparent 0%, black 28%, black 96%, transparent 100%), linear-gradient(to right, transparent 0%, black 14%, black 86%, transparent 100%);
  -webkit-mask-composite:destination-in;
  mask-image:linear-gradient(to bottom, transparent 0%, black 28%, black 96%, transparent 100%), linear-gradient(to right, transparent 0%, black 14%, black 86%, transparent 100%);
  mask-composite:intersect;
}

/* ═══ FOOTER ═══ */
.castle-footer{
  padding:32px 40px 0;
  text-align:center;
}
.footer-names{
  font-family:'Cormorant Garamond',serif;
  font-size:30px;
  font-weight:400;
  color:var(--ink2);
  margin-bottom:8px;
  display:block;
}
.footer-date{
  font-family:'Cormorant Garamond',serif;
  font-style:italic;
  font-size:14px;
  color:var(--muted);
  display:block;
  margin-bottom:24px;
  letter-spacing:1px;
}

/* ═══ REVEAL SCROLL ═══ */
.reveal{opacity:0;transform:translateY(18px);transition:opacity 0.7s ease,transform 0.7s ease;}
.reveal.visible{opacity:1;transform:none;}

@media(max-width:430px){
  .wrap{max-width:100%;}
  .name-line{font-size:48px;}
}
a[x-apple-data-detectors]{
  color:inherit!important;
  text-decoration:none!important;
  pointer-events:none;
}
