/* =========================
   Wedding Home (responsive)
   ========================= */

:root{
  --card-bg: rgba(10, 12, 20, .58);
  --card-border: rgba(255,255,255,.16);
  --text: rgba(255,255,255,.94);
  --muted: rgba(255,255,255,.74);
  --accent: rgba(215, 178, 108, .95);
  --shadow: 0 22px 65px rgba(0,0,0,.55);
}

/* Base */
*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  color: var(--text);
  overflow-x: hidden;
  font-family: "Cinzel", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #070814;
}

/* Fondo como imagen centrada (cover) */
.bg{
  position: fixed;
  inset: 0;
  background-image: url("bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.02);
  filter: saturate(1.05) contrast(1.08);
  z-index: -3;
}
.bg::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(1200px 700px at 50% 35%, rgba(0,0,0,.15), rgba(0,0,0,.66)),
    linear-gradient(180deg, rgba(5,6,14,.25), rgba(0,0,0,.70));
  z-index: -2;
}

/* Contenedor */
.wrap{
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: clamp(18px, 5vw, 48px);
}

/* Tarjeta */
.card{
  position: relative;
  width: min(760px, 100%);
  padding: clamp(22px, 5vw, 44px);
  border-radius: 24px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  overflow: hidden;
}
.shine{
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(520px 260px at 30% 18%, rgba(255,255,255,.14), transparent 60%),
    radial-gradient(520px 260px at 78% 70%, rgba(215, 178, 108, .12), transparent 62%);
  pointer-events:none;
  opacity: .9;
}

/* Texto */
.subtitle{
  margin: 0 0 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
  font-size: clamp(12px, 1.6vw, 14px);
  color: var(--muted);
}

.names{
  margin: 0;
  line-height: 1.05;
  text-align: center;
  font-family: "Great Vibes", cursive;
  font-size: clamp(54px, 7.8vw, 86px);
  font-weight: 400;
  text-shadow: 0 12px 40px rgba(0,0,0,.35);
}
.amp{
  display:inline-block;
  margin: 0 .14em;
  color: var(--accent);
  transform: translateY(-.02em);
  text-shadow: 0 10px 26px rgba(215,178,108,.18);
}

.date{
  margin: 18px 0 14px;
  text-align: center;
  color: var(--muted);
  font-size: clamp(14px, 2.3vw, 16px);
}
.date .label{ opacity:.88; }
.date .value{ color: var(--text); opacity:.96; }

/* Zona horaria */
.tz{
  margin: 0 auto 8px;
  width: min(640px, 100%);
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: center;
  justify-items: center;
  text-align: center;
}
.tz__label{
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.tz__input{
  width: min(420px, 100%);
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: var(--text);
  outline: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
}
.tz__input:focus{
  box-shadow: 0 0 0 3px rgba(215,178,108,.18);
  border-color: rgba(215,178,108,.38);
}
.tz__btn{
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.10);
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
  letter-spacing: .04em;
}
.tz__btn:hover{ background: rgba(255,255,255,.14); }
.tz__btn:active{ transform: translateY(1px); }

.tz__hint{
  margin: 0 0 18px;
  text-align: center;
  color: rgba(255,255,255,.62);
  font-size: 12px;
}
.tz__hint code{
  background: rgba(255,255,255,.08);
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.10);
}

/* Contador */
.countdown{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  align-items: center;
  justify-items: center;
  margin: 0 auto;
  width: min(640px, 100%);
}
.unit{
  width: 100%;
  text-align: center;
  padding: 14px 12px;
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 18px 44px rgba(0,0,0,.18);
}
.num{
  font-variant-numeric: tabular-nums;
  font-size: clamp(28px, 5.6vw, 42px);
  font-weight: 600;
  letter-spacing: .02em;
}
.txt{
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Ornamentos */
.ornament{
  position: fixed;
  width: min(280px, 44vw);
  height: auto;
  opacity: .92;
  filter: drop-shadow(0 22px 52px rgba(0,0,0,.35));
  z-index: -1;
  pointer-events:none;
}
.ornament--tl{
  top: -28px;
  left: -28px;
  transform: rotate(-8deg);
}
.ornament--br{
  right: -28px;
  bottom: -28px;
  transform: rotate(172deg);
}

/* Animaciones de entrada */
@media (prefers-reduced-motion: reduce){
  .anim{ animation: none !important; }
  .ornament{ opacity: .75; }
}
.anim{
  opacity: 0;
  transform: translateY(10px);
  animation: enter .9s cubic-bezier(.2,.8,.2,1) forwards;
}
.anim--fade{ transform: translateY(0); animation-name: fade; }
.anim--rise{ animation-name: rise; }

.subtitle{ animation-delay: .10s; }
.names{ animation-delay: .18s; }
.date{ animation-delay: .30s; }
.tz{ animation-delay: .36s; }
.tz__hint{ animation-delay: .42s; }
.countdown{ animation-delay: .50s; }

.ornament{
  animation: floatIn 1.2s cubic-bezier(.2,.8,.2,1) both;
}
.ornament--tl{ animation-delay: .05s; }
.ornament--br{ animation-delay: .18s; }

@keyframes rise{
  from{ opacity:0; transform: translateY(14px); filter: blur(3px); }
  to{ opacity:1; transform: translateY(0); filter: blur(0); }
}
@keyframes fade{
  from{ opacity:0; transform: translateY(0); filter: blur(3px); }
  to{ opacity:1; transform: translateY(0); filter: blur(0); }
}
@keyframes floatIn{
  from{ opacity:0; transform: translateY(14px) scale(.98) rotate(var(--rot,0deg)); }
  to{ opacity:1; transform: translateY(0) scale(1) rotate(var(--rot,0deg)); }
}
@keyframes enter{
  from{ opacity:0; transform: translateY(12px); }
  to{ opacity:1; transform: translateY(0); }
}

/* Responsivo */
@media (max-width: 520px){
  .countdown{
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .card{ border-radius: 20px; }
}
