/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   Renisky & Johana  —  Wedding 2026
   FRESH BUILD — light, floral, elegant
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* ── Variables ──────────────────────────── */
:root {
  --c:      #FFFAF5;      /* cream */
  --c2:     #FFF0E8;      /* blush cream */
  --wine:   #8C1A3A;
  --rose:   #C04E6E;
  --coral:  #D4785E;
  --peach:  #E8A88C;
  --ink:    #2A1810;
  --muted:  #8A6050;
  --border: rgba(180,100,80,.15);
  --fs: 'Great Vibes', cursive;
  --ff: 'Cormorant Garamond', serif;
  --fu: 'Jost', sans-serif;
}

/* ── Reset ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--c); color: var(--ink); font-family: var(--ff); font-size: 25px; overflow-x: hidden; }
img  { display: block; max-width: 100%; }
a    { text-decoration: none; }

/* ── Layout helpers ─────────────────────── */
.wrap    { max-width: 1080px; margin: 0 auto; padding: 0 28px; }
.wrap-sm { max-width:  720px; margin: 0 auto; padding: 0 28px; }
.text-c  { text-align: center; }

/* ── Section backgrounds ────────────────── */
.sec-cream { background: var(--c);  padding: 88px 0; }
.sec-blush { background: var(--c2); padding: 88px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ━━━━━━━━━━━━━━━━━━━━━━
   AUDIO PLAYER
   ━━━━━━━━━━━━━━━━━━━━━━ */
#player {
  position: fixed;
  top: 20px; right: 20px;
  z-index: 100;
}
#playBtn {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255,250,245,.9);
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(140,60,40,.14);
  transition: transform .2s, box-shadow .2s;
  color: var(--wine);
}
#playBtn:hover { transform: scale(1.08); box-shadow: 0 6px 24px rgba(140,60,40,.2); }
#playBtn svg   { width: 22px; height: 22px; fill: var(--wine); }

/* ━━━━━━━━━━━━━━━━━━━━━━
   HERO
   ━━━━━━━━━━━━━━━━━━━━━━ */
#hero {
  height: 100vh;
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* The actual photo — full width, 100vh tall */
.hero-img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  object-position: center 70%;
  display: block;
}

/* Degradado oscuro desde ARRIBA — oculta el edificio completamente */
.hero-fade-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 72%;
  background: linear-gradient(
    to bottom,
    rgba(10,3,2,.95) 0%,
    rgba(10,3,2,.82) 30%,
    rgba(10,3,2,.45) 62%,
    transparent 100%
  );
  pointer-events: none;
}

/* Degradado oscuro desde ABAJO — texto blanco legible */
.hero-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(
    to top,
    rgba(10,3,2,.85) 0%,
    rgba(10,3,2,.55) 40%,
    rgba(10,3,2,.10) 75%,
    transparent 100%
  );
  pointer-events: none;
}

/* Text sits at the very bottom strip */
.hero-text {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  text-align: center;
  padding: 0 24px 28px;
}

.ey {
  font-family: var(--fu);
  font-size: 1.09rem;
  letter-spacing: 7px;
  text-transform: uppercase;
  color: rgba(255,255,255,.80);
  margin-bottom: 16px;
}

.names {
  font-family: var(--ff);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(2.6rem, 5.5vw, 5rem);
  color: #fff;
  line-height: 1.1;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-shadow: 0 3px 32px rgba(0,0,0,.5);
}
.names .sc {
  font-family: var(--fs);
  font-style: normal;
  font-size: .85em;
  color: var(--peach);
  display: block;
  line-height: 1.15;
}

.fecha {
  font-family: var(--fu);
  font-size: 1.05rem;
  letter-spacing: 7px;
  text-transform: uppercase;
  color: rgba(255,255,255,.70);
  margin-bottom: 30px;
}

.btn-outline {
  display: inline-block;
  font-family: var(--fu);
  font-size: 0.91rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255,255,255,.6);
  padding: 14px 42px;
  transition: background .3s, color .3s;
  background: transparent;
}
.btn-outline:hover { background: #fff; color: var(--wine); }

/* Scroll-down chevron button */
.scroll-down {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.55);
  color: #fff;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(4px);
  transition: background .3s, transform .3s, border-color .3s;
  animation: bounce 2.4s ease-in-out infinite;
}
.scroll-down svg { width: 22px; height: 22px; stroke: #fff !important; }
.scroll-down:hover {
  background: rgba(255,255,255,.25);
  border-color: #fff;
  transform: translateY(4px);
  animation: none;
}
@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}

/* Petals */
.petals { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.p {
  position: absolute;
  top: -30px;
  border-radius: 60% 10% 60% 10%;
  opacity: 0;
  animation: fall linear infinite;
}
.p1  { left:5%;  width:14px; height:24px; background:var(--peach); animation-duration:11s; animation-delay:0s; }
.p2  { left:14%; width:11px; height:18px; background:var(--rose);  animation-duration:8s;  animation-delay:1.5s; }
.p3  { left:24%; width:17px; height:28px; background:var(--coral); animation-duration:13s; animation-delay:3s; }
.p4  { left:35%; width:12px; height:20px; background:#D6336C;      animation-duration:9s;  animation-delay:0.8s; }
.p5  { left:46%; width:15px; height:26px; background:var(--peach); animation-duration:12s; animation-delay:4.5s; }
.p6  { left:56%; width:10px; height:17px; background:var(--rose);  animation-duration:10s; animation-delay:2s; }
.p7  { left:66%; width:16px; height:27px; background:var(--coral); animation-duration:14s; animation-delay:1s; }
.p8  { left:75%; width:13px; height:22px; background:#B3003C;      animation-duration:9s;  animation-delay:3.5s; }
.p9  { left:84%; width:11px; height:19px; background:var(--peach); animation-duration:11s; animation-delay:5s; }
.p10 { left:93%; width:14px; height:23px; background:var(--rose);  animation-duration:8s;  animation-delay:2.5s; }

@keyframes fall {
  0%   { transform: translateY(0)     rotate(0deg)   translateX(0);   opacity: 0; }
  6%   { opacity: .85; }
  85%  { opacity: .55; }
  100% { transform: translateY(110vh) rotate(420deg) translateX(50px); opacity: 0; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━
   INVITE CARD
   ━━━━━━━━━━━━━━━━━━━━━━ */
#invite {
  position: relative;
}

.ornament {
  font-size: 1.19rem;
  letter-spacing: 10px;
  color: var(--peach);
  text-align: center;
  display: block;
  margin-bottom: 24px;
}
.ornament.bot { margin-bottom: 0; margin-top: 36px; }

.sub {
  font-family: var(--fu);
  font-size: 0.91rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-bottom: 20px;
}
.sub strong { color: var(--rose); }

.script-title {
  font-family: var(--ff);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  color: var(--wine);
  text-align: center;
  line-height: 1.2;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.script-title em {
  font-family: var(--fs);
  font-style: normal;
  font-size: 1.3em;
  color: var(--coral);
  line-height: 1.2;
}

.body-text {
  font-size: 1.54rem;
  color: var(--muted);
  text-align: center;
  line-height: 2;
  margin-bottom: 36px;
}

.rule {
  width: 48px; height: 1px;
  background: var(--peach);
  margin: 0 auto 36px;
}

.event-dl { display: flex; flex-direction: column; gap: 14px; text-align: center; }
.event-dl div { display: flex; justify-content: center; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.event-dl dt {
  font-family: var(--fu);
  font-size: 0.84rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--coral);
  white-space: nowrap;
}
.event-dl dd {
  font-family: var(--ff);
  font-style: italic;
  font-size: 1.61rem;
  color: var(--muted);
}

/* ━━━━━━━━━━━━━━━━━━━━━━
   COUNTDOWN
   ━━━━━━━━━━━━━━━━━━━━━━ */
.count-lbl {
  font-family: var(--fu);
  font-size: 0.91rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}
.count-lbl.top { margin-bottom: 28px; }
.count-lbl.bot { margin-top: 20px; }

.ticks { display: flex; align-items: center; justify-content: center; gap: 4px; flex-wrap: wrap; }
.tick { text-align: center; min-width: 80px; }
.tick span {
  display: block;
  font-family: var(--ff);
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 300;
  color: var(--wine);
  line-height: 1;
}
.tick label {
  display: block;
  font-family: var(--fu);
  font-size: 1.4rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}
.sep {
  font-family: var(--ff);
  font-size: 3.36rem;
  color: var(--peach);
  margin-top: -18px;
  opacity: .7;
}

/* ━━━━━━━━━━━━━━━━━━━━━━
   SECTION HEADING
   ━━━━━━━━━━━━━━━━━━━━━━ */
.sec-h {
  font-family: var(--ff);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--wine);
  text-align: center;
  margin-bottom: 48px;
  position: relative;
}
.sec-h::after {
  content: '';
  display: block;
  width: 44px; height: 1px;
  background: var(--peach);
  margin: 16px auto 0;
}

/* ━━━━━━━━━━━━━━━━━━━━━━
   GALLERY — grid uniforme
   ━━━━━━━━━━━━━━━━━━━━━━ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.gallery-grid > div {
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4 / 5;
  box-shadow: 0 4px 18px rgba(140,26,58,.08);
}
/* Última foto centrada (10ª) */
.gallery-grid > div:last-child:nth-child(3n+1) {
  grid-column: 2;
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  transition: transform .8s cubic-bezier(.25,.46,.45,.94);
}
.gallery-grid > div:hover img { transform: scale(1.06); }

@media(max-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .gallery-grid > div { aspect-ratio: 1 / 1; }
  .gallery-grid > div:last-child:nth-child(3n+1) { grid-column: auto; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━
   DRESS CODE
   ━━━━━━━━━━━━━━━━━━━━━━ */
.dress-tag {
  font-family: var(--fu);
  font-size: 0.91rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 40px;
}
.dress-row { display: flex; align-items: center; justify-content: center; margin-bottom: 32px; }
.dress-item { padding: 20px 48px; text-align: center; }
.dress-item span { font-size: 2.8rem; display: block; margin-bottom: 10px; }
.dress-item p    { font-family: var(--ff); font-style: italic; font-size: 1.82rem; color: var(--wine); margin-bottom: 4px; }
.dress-item small { font-family: var(--fu); font-size: 0.87rem; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); }
.vl { width: 1px; height: 70px; background: var(--border); }
.warn {
  font-family: var(--fu);
  font-size: 0.91rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--coral);
}

/* ━━━━━━━━━━━━━━━━━━━━━━
   GIFTS
   ━━━━━━━━━━━━━━━━━━━━━━ */
.gift-row { display: flex; align-items: center; justify-content: center; gap: 0; flex-wrap: wrap; }
.gift-card {
  flex: 1; min-width: 180px; max-width: 240px;
  padding: 36px 28px;
  background: #fff;
  border: 1px solid var(--border);
  text-align: center;
}
.g-bank  { font-family: var(--fu); font-size: 0.81rem; letter-spacing: 4px; text-transform: uppercase; color: var(--peach); margin-bottom: 12px; }
.g-name  { font-family: var(--ff); font-style: italic; font-size: 1.75rem; color: var(--wine); margin-bottom: 10px; }
.g-num   { font-family: var(--fu); font-size: 1.09rem; letter-spacing: 2px; color: var(--muted); }
.g-mono  { font-family: var(--fs); font-size: 3.92rem; color: var(--wine); opacity: .25; padding: 0 24px; flex-shrink: 0; }

/* ━━━━━━━━━━━━━━━━━━━━━━
   RSVP FORM
   ━━━━━━━━━━━━━━━━━━━━━━ */
#rsvp .sec-h { margin-bottom: 8px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
@media(max-width:560px) { .row2 { grid-template-columns: 1fr; } }

.fg { display: flex; flex-direction: column; margin-bottom: 18px; }
.row2 .fg { margin-bottom: 0; }

.fg label {
  font-family: var(--fu);
  font-size: 0.81rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}
.fg input, .fg select, .fg textarea {
  border: 1px solid var(--border);
  background: var(--c);
  color: var(--ink);
  font-family: var(--ff);
  font-size: 1.4rem;
  padding: 12px 15px;
  outline: none;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .2s;
}
.fg input:focus, .fg select:focus, .fg textarea:focus { border-color: var(--rose); background: #fff; }
.fg input::placeholder, .fg textarea::placeholder { color: var(--peach); opacity: .55; }
.fg select option { background: #fff; }

#rsvp button[type=submit] {
  margin-top: 10px;
  font-family: var(--fu);
  font-size: 0.91rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #fff;
  background: var(--wine);
  border: none;
  padding: 16px 56px;
  cursor: pointer;
  transition: background .25s, transform .2s;
}
#rsvp button[type=submit]:hover { background: var(--rose); transform: translateY(-2px); }

.form-msg { text-align: center; margin-top: 16px; font-style: italic; font-size: 1.4rem; min-height: 24px; }
.form-msg.ok  { color: var(--wine); }
.form-msg.err { color: var(--coral); }

/* ━━━━━━━━━━━━━━━━━━━━━━
   OUR STORY — rediseño
   ━━━━━━━━━━━━━━━━━━━━━━ */
#story {
  background: var(--c2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 100px 0 90px;
}
.story-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Header con líneas flanqueantes ── */
.st-header {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 72px;
}
.st-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--peach), transparent);
}
.st-title-block { text-align: center; flex-shrink: 0; }
.st-eyebrow {
  font-family: var(--fu);
  font-size: 0.81rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 8px;
}
.st-title {
  font-family: var(--ff);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(2rem, 3.8vw, 3rem);
  color: var(--wine);
  line-height: 1;
}

/* ── Foto + texto ── */
.st-split {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 72px;
  align-items: center;
  margin-bottom: 80px;
}
.st-photo-wrap { position: relative; }
.st-photo-frame {
  position: relative;
  overflow: hidden;
}
/* Marco doble con pseudo-elementos */
.st-photo-frame::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(212,120,94,.45);
  z-index: 1;
  pointer-events: none;
}
.st-photo-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 37% 30%;
  display: block;
}
.st-photo-caption {
  font-family: var(--fu);
  font-size: 1.4rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-top: 14px;
  opacity: .7;
}

/* ── Texto principal ── */
.st-body {
  font-family: var(--ff);
  font-style: italic;
  font-size: 1.61rem;
  color: var(--muted);
  line-height: 2;
  margin-bottom: 24px;
}
/* Drop cap en primer párrafo */
.st-dropcap::first-letter {
  font-family: var(--fs);
  font-size: 5.88rem;
  float: left;
  line-height: .78;
  margin-right: 8px;
  margin-top: 6px;
  color: var(--wine);
}
.st-ornament {
  font-size: 1.12rem;
  letter-spacing: 10px;
  color: var(--peach);
  margin-top: 32px;
}

/* ── Votos personales ── */
.st-vows {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: stretch;
}
.st-vow {
  padding: 48px 52px;
  position: relative;
}
.st-vow:first-child { text-align: right; }
.st-vow:last-child  { text-align: left; }

.st-ql {
  display: block;
  font-family: var(--fs);
  font-size: 7rem;
  color: var(--peach);
  line-height: .6;
  margin-bottom: 16px;
  opacity: .6;
}
.st-vow:first-child .st-ql { text-align: right; }

.st-vow p {
  font-family: var(--ff);
  font-style: italic;
  font-size: 1.47rem;
  color: var(--muted);
  line-height: 1.95;
  margin-bottom: 20px;
}
.st-vow cite {
  font-family: var(--fu);
  font-size: 0.81rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--rose);
  font-style: normal;
}
/* Separador vertical entre votos */
.st-vow-sep {
  width: 1px;
  background: var(--border);
  margin: 20px 0;
  align-self: stretch;
}

@media(max-width: 900px) {
  .st-split { grid-template-columns: 1fr; gap: 40px; }
  .st-photo-frame img { aspect-ratio: 4 / 3; object-position: center 25%; }
}
@media(max-width: 640px) {
  .st-vows { grid-template-columns: 1fr; }
  .st-vow-sep { width: 48px; height: 1px; margin: 0 auto; }
  .st-vow { padding: 36px 20px; text-align: center !important; }
  .st-vow .st-ql { text-align: center; }
  .st-header { gap: 16px; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━
   FOOTER
   ━━━━━━━━━━━━━━━━━━━━━━ */
footer {
  background: var(--c2);
  border-top: 1px solid var(--border);
  padding: 60px 0 48px;
  text-align: center;
}
.f-mono  { font-family: var(--fs); font-size: 5.04rem; color: var(--wine); opacity: .6; margin-bottom: 10px; }
.f-date  { font-family: var(--fu); font-size: 0.87rem; letter-spacing: 5px; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.f-place { font-family: var(--ff); font-style: italic; font-size: 1.4rem; color: var(--muted); }
.f-admin {
  display: inline-block;
  margin-top: 28px;
  font-family: var(--fu);
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  opacity: .4;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: opacity .3s;
}
.f-admin:hover { opacity: .8; }

/* animated line under section headings */
.sec-h::after { transition: width .6s ease; }

/* ━━━━━━━━━━━━━━━━━━━━━━
   SPLASH SCREEN
   ━━━━━━━━━━━━━━━━━━━━━━ */
#splash {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--c);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  transition: opacity .9s ease, visibility .9s ease;
}
#splash.hide { opacity: 0; visibility: hidden; }

.splash-mono {
  font-family: var(--fs);
  font-size: clamp(4.5rem, 12vw, 9rem);
  color: var(--wine);
  line-height: 1;
  margin-bottom: 6px;
  animation: srise 1.2s ease both;
}
.splash-names {
  font-family: var(--ff);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1rem, 2.5vw, 1.6rem);
  color: var(--muted);
  letter-spacing: 3px;
  margin-bottom: 10px;
  animation: srise 1.4s ease both;
}
.splash-date {
  font-family: var(--fu);
  font-size: 0.84rem;
  letter-spacing: 7px;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 52px;
  animation: srise 1.6s ease both;
}
.splash-rule {
  width: 50px; height: 1px;
  background: var(--peach);
  margin: 0 auto 52px;
  animation: srise 1.5s ease both;
}
.splash-btn {
  font-family: var(--fu);
  font-size: 0.87rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: #fff;
  background: var(--wine);
  border: none;
  padding: 18px 64px;
  cursor: pointer;
  animation: srise 1.8s ease both;
  transition: background .3s, transform .2s;
}
.splash-btn:hover { background: var(--rose); transform: translateY(-2px); }
.splash-note {
  font-family: var(--ff);
  font-style: italic;
  font-size: 1.19rem;
  color: var(--peach);
  margin-top: 18px;
  animation: srise 2s ease both;
}

@keyframes srise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

