/* FARO — landing. Identidad de la app: negro profundo, dorado, Manrope
   para interfaz y Cormorant Garamond para las historias. */

:root {
  --bg: #050505;
  --bg-soft: #0b0a08;
  --gold: #b9995e;
  --gold-lum: #d9ba76;
  --white: #f2ede4;
  --white-80: rgba(242, 237, 228, .8);
  --white-60: rgba(242, 237, 228, .6);
  --white-40: rgba(242, 237, 228, .4);
  --white-25: rgba(242, 237, 228, .25);
  --hairline: rgba(242, 237, 228, .12);
  --sans: "Manrope", system-ui, sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
  /* clip corta cualquier desborde lateral sin crear un contenedor de
     scroll: en móvil, overflow-x hidden solo en body no impide el
     paneo horizontal. hidden queda como respaldo antiguo. */
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

/* ---------------- Marca ---------------- */

.wordmark {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 12px;
  padding-left: 12px; /* compensa el tracking del último carácter */
  color: var(--white);
}

.wordmark.small { font-size: 15px; letter-spacing: 9px; }

/* «by FabioIC» dentro del wordmark del footer: tracking normal para
   que no herede los 9px de la marca. */
.wordmark .by {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  padding-left: 0;
  color: var(--white-40);
}

.wordmark .by a {
  color: var(--gold-lum);
  text-decoration: none;
}

.wordmark .by a:hover { text-decoration: underline; }

.home-link { text-decoration: none; }

.top {
  display: flex;
  justify-content: center;
  padding: 34px 20px 0;
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 24px 96px;
}

.halo {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  /* Nunca más ancho que la pantalla: en móvil sus 900px empujaban
     el ancho de la página. */
  width: min(900px, 100vw);
  height: 620px;
  background: radial-gradient(ellipse at center 40%,
      rgba(217, 186, 118, .10), transparent 62%);
  pointer-events: none;
}

.lighthouse {
  width: 168px;
  height: auto;
  margin-bottom: 40px;
  overflow: visible;
}

/* Icono de marca (asset real de la app, sin fondo): respira igual que
   respiraba la lámpara del SVG, con un halo dorado suave. */
.lighthouse-img {
  width: min(340px, 78vw);
  height: auto;
  margin-bottom: 36px;
  filter: drop-shadow(0 0 26px rgba(217, 186, 118, .28));
  animation: img-breathe 4.5s ease-in-out infinite;
}

@keyframes img-breathe {
  0%, 100% { opacity: .88; }
  50%      { opacity: 1; }
}

.tower   { fill: #14120e; stroke: rgba(217, 186, 118, .35); stroke-width: 1; }
.gallery, .base { fill: #191610; stroke: rgba(217, 186, 118, .3); stroke-width: 1; }
.lantern { fill: #1c1810; stroke: var(--gold); stroke-width: 1.2; }
.roof    { fill: #191610; stroke: rgba(217, 186, 118, .45); stroke-width: 1; }
.stripe  { fill: rgba(217, 186, 118, .10); }
.window  { fill: rgba(217, 186, 118, .55); }

.lamp {
  fill: var(--gold-lum);
  filter: drop-shadow(0 0 10px rgba(217, 186, 118, .9));
  animation: lamp-pulse 4.5s ease-in-out infinite;
}

.beam {
  fill: rgba(217, 186, 118, .13);
  animation: beam-breathe 4.5s ease-in-out infinite;
  transform-origin: 100px 54px;
}

.beam-right { animation-delay: -2.25s; }

@keyframes lamp-pulse {
  0%, 100% { opacity: .75; }
  50%      { opacity: 1; }
}

@keyframes beam-breathe {
  0%, 100% { opacity: .45; }
  50%      { opacity: 1; }
}

/* UNA sola línea siempre: el cuerpo se calcula exacto para el ancho
   disponible (la frase mide ~29em con su tracking), así jamás
   desborda por estrecho que sea el móvil. */
.tagline {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(8px, calc((100vw - 48px) / 29), 30px);
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--white);
  white-space: nowrap;
}

.tagline .gold { color: var(--gold-lum); }

/* Dos líneas exactas: la frase larga en una, «Al amanecer...» en la
   siguiente. Nada de saltos a mitad de frase: el cuerpo escala. */
.hero-sub {
  margin-top: 28px;
  color: var(--white-60);
  /* La frase larga mide ~59em: mismo cálculo exacto-al-ancho para
     mantenerla en UNA línea sin desbordar. En un móvil de 360px eso
     son ~5.5px de cuerpo. */
  font-size: clamp(5px, calc((100vw - 48px) / 62), 16px);
  white-space: nowrap;
}

.hero-sub span { display: block; }

/* Estado del faro / cuenta atrás */

.status {
  margin-top: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.status-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .32em;
  color: var(--white-40);
}

.status-count {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 44px;
  letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
  color: var(--gold-lum);
}

.status-count.lit {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: .22em;
}

.stores {
  margin-top: 56px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.store-badge {
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 12px 22px;
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--white-60);
}

/* ---------------- Secciones ---------------- */

.section {
  max-width: 880px;
  margin: 0 auto;
  padding: 88px 24px;
  border-top: 1px solid var(--hairline);
}

.section-title {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .34em;
  color: var(--gold);
  margin-bottom: 56px;
}

/* Pasos */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
}

.step-hour {
  display: block;
  font-weight: 300;
  font-size: 30px;
  letter-spacing: .1em;
  color: var(--gold-lum);
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}

.step h3 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--white-80);
}

.step p { font-size: 14.5px; color: var(--white-60); }

/* No es una red social */

.nots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.not {
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 26px 26px 22px;
  background: var(--bg-soft);
}

.not span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-lum);
  margin-bottom: 8px;
}

.not p { font-size: 14px; color: var(--white-60); }

/* Carrusel de historias */

.carousel {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.car-window {
  overflow: hidden;
  flex: 1;
  /* El JS fija la altura a la de la tarjeta visible: sin esto la
     ventana mediría siempre lo que la historia más alta de las diez
     y las cortas quedarían flotando entre dos vacíos. */
  transition: height .45s cubic-bezier(.33, 0, .2, 1);
}

.car-track {
  display: flex;
  /* Arriba, no estiradas: cada tarjeta abraza su texto y la ventana
     (con altura ajustada por JS) recorta el sobrante inferior. */
  align-items: flex-start;
  transition: transform .55s cubic-bezier(.33, 0, .2, 1);
}

/* Dos tarjetas por página en escritorio: cada tarjeta más su margen
   ocupa exactamente el 50% de la ventana, así el desplazamiento del
   carrusel (en % del track) cae siempre en el borde de una página. */
.car-track .story-card {
  flex: 0 0 calc(50% - 18px);
  min-width: calc(50% - 18px);
  margin: 0 9px;
}

.car-arrow {
  background: none;
  border: none;
  color: var(--gold-lum);
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1;
  cursor: pointer;
  padding: 0 6px;
  opacity: .65;
  transition: opacity .2s;
  align-self: center;
}

.car-arrow:hover { opacity: 1; }

.car-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 26px;
}

.car-dots button {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  background: var(--white-25);
  transition: background .25s, transform .25s;
}

.car-dots button.on {
  background: var(--gold-lum);
  transform: scale(1.3);
}

.story-card {
  border: 1px solid rgba(217, 186, 118, .28);
  border-radius: 10px;
  padding: 38px 36px 32px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(217, 186, 118, .07), transparent 65%),
    var(--bg-soft);
  text-align: center;
}

.story-card blockquote {
  font-family: var(--serif);
  font-weight: 500;
  /* Con dos tarjetas a la vista el cuerpo baja un punto; en móvil
     (una tarjeta) el media query lo devuelve a su tamaño. */
  font-size: clamp(19px, 2.3vw, 24px);
  line-height: 1.55;
  color: var(--white);
}

.story-card figcaption {
  margin-top: 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .22em;
  color: var(--gold-lum);
}

.story-card figcaption span {
  display: block;
  margin-top: 6px;
  font-weight: 400;
  letter-spacing: .08em;
  color: var(--white-40);
}

.story-note {
  text-align: center;
  margin-top: 20px;
  font-size: 12.5px;
  color: var(--white-25);
  font-style: italic;
}

/* Cierre */

.closing { text-align: center; }

.closing-line {
  font-family: var(--serif);
  font-size: clamp(26px, 4.4vw, 38px);
  line-height: 1.5;
  color: var(--white);
}

.closing-sub {
  margin-top: 18px;
  font-size: 15px;
  letter-spacing: .06em;
  color: var(--gold-lum);
}

.ig {
  display: inline-block;
  margin-top: 44px;
  padding: 13px 30px;
  border: 1px solid rgba(217, 186, 118, .5);
  border-radius: 6px;
  color: var(--gold-lum);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: background .25s, color .25s;
}

.ig:hover { background: rgba(217, 186, 118, .12); }

/* ---------------- Footer ---------------- */

.foot {
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 56px 24px 64px;
  text-align: center;
}

.foot nav {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  justify-content: center;
}

.foot a {
  color: var(--white-60);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: .04em;
}

.foot a:hover { color: var(--gold-lum); }

/* ---------------- Páginas legales ---------------- */

.legal {
  max-width: 680px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}

.legal h1 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.legal-date {
  font-size: 12.5px;
  color: var(--white-40);
  margin-bottom: 44px;
}

.legal h2 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--white-80);
  margin: 36px 0 10px;
}

.legal p {
  font-size: 14.5px;
  color: var(--white-60);
}

.legal a { color: var(--gold-lum); text-decoration: none; }

.legal a:hover { text-decoration: underline; }

.copy { font-size: 11.5px; color: var(--white-25); letter-spacing: .06em; }

/* ---------------- Responsive ---------------- */

@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .nots  { grid-template-columns: 1fr; }
  .section { padding: 64px 22px; }
  .story-card { padding: 40px 26px 34px; }
  .status-count { font-size: 36px; }

  /* En móvil vuelve a verse una sola tarjeta por página. */
  .car-track .story-card {
    flex-basis: calc(100% - 12px);
    min-width: calc(100% - 12px);
    margin: 0 6px;
  }
  .story-card blockquote { font-size: clamp(20px, 5.6vw, 26px); }
}

@media (prefers-reduced-motion: reduce) {
  .lamp, .beam, .lighthouse-img { animation: none; }
}
