/* ===========================================================
   ESTILOS — index.html
   =========================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --fg: #fff;
  --accent: #d8c3a5;
  --dark: #1a1715;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', sans-serif;
  color: var(--fg);
  overflow-x: hidden;
  background: var(--dark);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,.55));
  z-index: 1;
}
.hero > * { position: relative; z-index: 2; }

.frase {
  text-transform: uppercase; letter-spacing: .5em;
  font-size: .8rem; font-weight: 300;
  margin-bottom: 1.5rem; opacity: .9;
}
.nombres {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(3rem, 12vw, 7rem);
  line-height: 1; margin-bottom: 1rem;
}
.fecha-texto {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  letter-spacing: .3em; font-weight: 300;
  margin-bottom: 2.5rem;
}
.btn {
  display: inline-block;
  border: 1px solid var(--accent);
  color: var(--fg); text-decoration: none;
  padding: .9rem 2.4rem;
  text-transform: uppercase; letter-spacing: .25em;
  font-size: .75rem; font-weight: 400;
  transition: all .35s ease;
  background: rgba(216,195,165,.08); cursor: pointer;
}
.btn:hover { background: var(--accent); color: #2a2a2a; }
.btn-solid { background: var(--accent); color: #2a2a2a; }
.btn-solid:hover { background: #c9b08c; }

/* swap de botón al llegar a 0 */
#heroCta { transition: opacity .5s ease; }

.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%); z-index: 2; font-size: 1.5rem;
  animation: bob 2s infinite; opacity: .8;
}
@keyframes bob { 0%,100%{transform:translate(-50%,0)} 50%{transform:translate(-50%,10px)} }

/* ---------- COUNTDOWN ---------- */
.countdown-section {
  color: #f3ede4; padding: 6rem 2rem; text-align: center;
  transition: opacity .6s ease;
}
.countdown-section.hide { opacity: 0; }
.countdown-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 400; margin-bottom: 3rem;
}
.clock {
  display: flex; justify-content: center;
  gap: clamp(1rem, 5vw, 3.5rem); flex-wrap: wrap;
}
.unit { min-width: 70px; }
.unit .num {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 9vw, 4.5rem);
  font-weight: 500; line-height: 1; color: var(--accent);
}
.unit .lbl {
  text-transform: uppercase; letter-spacing: .25em;
  font-size: .65rem; margin-top: .8rem; opacity: .7;
}

/* ---------- FOOTER (tu marca) ---------- */
.brand-footer {
  border-top: 1px solid rgba(216,195,165,.2);
  padding: 5rem 2rem; text-align: center; color: #f3ede4;
}
.brand-cta {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  margin-bottom: .6rem;
}
.brand-sub {
  font-weight: 300; font-size: .95rem; opacity: .75;
  margin-bottom: 2.2rem;
}
.brand-links {
  display: flex; gap: 1rem; justify-content: center;
  flex-wrap: wrap; margin-bottom: 3rem;
}
.brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem; letter-spacing: .15em;
  text-decoration: none; color: var(--fg);
  display: inline-block; margin-bottom: .4rem;
  transition: color .3s;
}
.brand-name:hover { color: var(--accent); }
.brand-tag {
  text-transform: uppercase; letter-spacing: .3em;
  font-size: .65rem; opacity: .6;
}
.copy { margin-top: 2.5rem; font-size: .65rem; opacity: .4; letter-spacing: .1em; }

/* ---------- DEMO BAR (sacar al pasar a producción) ---------- */
.demo-bar {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 99;
  background: rgba(20,20,20,.9); color: #d8c3a5;
  border: 1px solid #d8c3a5; padding: .6rem 1rem;
  font-size: .7rem; letter-spacing: .1em; cursor: pointer;
  border-radius: 4px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  /* background-attachment: fixed rompe en iOS → scroll en mobile */
  .hero { background-attachment: scroll; padding: 1.5rem; }
  .countdown-section { padding: 4rem 1.5rem; }
  .brand-footer { padding: 3.5rem 1.5rem; }
  .frase { letter-spacing: .35em; font-size: .7rem; }
  .clock { gap: .5rem 1.2rem; }
  .unit { min-width: 60px; }
  .brand-links { flex-direction: column; align-items: center; }
  .brand-links .btn { width: 100%; max-width: 300px; }
  .demo-bar { font-size: .6rem; padding: .5rem .8rem; bottom: 1rem; right: 1rem; }
}

@media (max-width: 380px) {
  .unit { min-width: 42%; margin-bottom: .5rem; }
  .btn { padding: .8rem 1.4rem; letter-spacing: .15em; }
  .fecha-texto { letter-spacing: .2em; }
}

/* Pantallas anchas: que no se estire de más */
@media (min-width: 1600px) {
  .nombres { font-size: 7.5rem; }
}
