/* Tamy — landing. Paleta y tipografía documentadas en docs/MARCA.md */
:root {
  --night: #07080a;
  --room: #111014;
  --line: #26242b;
  --paper: #f2efea;
  --muted: #9a98a0;
  --lime: #e1ff62;
  --lime-ink: #12160a;
  --moss: #9fc45a;
  --blush: #f2a39a;
  --lamp: #ffb45e;
  --display: 'Bricolage Grotesque', 'Geist', system-ui, sans-serif;
  --text: 'Geist', system-ui, -apple-system, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
  --wrap: 1120px;
  --pad: clamp(20px, 5vw, 56px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--night); color: var(--paper);
  font: 400 1.0625rem/1.6 var(--text); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.02em; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

/* ---- botones ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px;
  padding: 0 28px; border-radius: 999px; background: var(--lime); color: var(--lime-ink);
  font: 600 1rem/1 var(--text); text-decoration: none; border: 2px solid var(--lime);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px -6px rgba(225, 255, 98, .55); }
.btn--ghost { background: transparent; color: var(--paper); border-color: #3a3841; }
.btn--ghost:hover { border-color: var(--paper); box-shadow: none; }
.btn--small { min-height: 42px; padding: 0 20px; font-size: .9375rem; }
.btn--big { min-height: 62px; padding: 0 40px; font-size: 1.125rem; }

/* ---- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 28px;
  padding: 12px var(--pad); background: rgba(7, 8, 10, .82); backdrop-filter: blur(14px);
  border-bottom: 1px solid #16151a;
}
.nav__logo { display: block; line-height: 0; margin-right: auto; }
.nav__logo img { width: 156px; height: auto; }
.nav__links { display: flex; gap: 26px; }
.nav__links a { text-decoration: none; color: var(--muted); font-size: .9375rem; transition: color .15s; }
.nav__links a:hover { color: var(--paper); }

/* ---- hero ---- */
.hero {
  max-width: var(--wrap); margin: 0 auto; padding: clamp(40px, 8vw, 96px) var(--pad) clamp(48px, 8vw, 88px);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 72px); align-items: center; overflow-x: clip;
}
.hero h1 { font-size: clamp(2.6rem, 6.2vw, 4.9rem); line-height: .98; font-weight: 800; letter-spacing: -0.035em; text-wrap: balance; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: #c9c6cc; max-width: 34em; margin: 26px 0 32px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.promises { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 28px 0 0; color: var(--muted); font-size: .9375rem; }
.promises li { display: flex; align-items: center; gap: 8px; }
.promises li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
.now { margin: 26px 0 0; font: 500 .8125rem/1.5 var(--mono); color: var(--lamp); min-height: 1.5em; }
.hero__stage { position: relative; display: grid; place-items: center; }
.glow {
  position: absolute; inset: 4% -10% 0; background:
    radial-gradient(closest-side, rgba(255, 180, 94, .30), transparent 72%),
    radial-gradient(closest-side at 60% 70%, rgba(159, 196, 90, .18), transparent 70%);
  filter: blur(8px);
}
.phone {
  position: relative; margin: 0; border-radius: 40px; padding: 9px; background: #1a191e;
  box-shadow: 0 0 0 1.5px #34323a, 0 40px 80px -30px #000, 0 0 0 7px #0d0c10;
}
.phone img { border-radius: 32px; width: 100%; height: auto; background: #000; }
.phone--hero { width: min(330px, 78vw); transform: rotate(2.5deg); }

/* ---- estructura: fila de puntos (eco del título LED) ---- */
.dots {
  height: 14px; margin: 0 auto; max-width: var(--wrap);
  background: radial-gradient(circle, #3a3841 3px, transparent 3.5px) 0 50% / 22px 14px repeat-x;
  opacity: .8; mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}

/* ---- secciones ---- */
.section { max-width: var(--wrap); margin: 0 auto; padding: clamp(64px, 10vw, 120px) var(--pad) 0; }
.section__head { max-width: 40rem; margin-bottom: clamp(32px, 5vw, 56px); }
.section h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.04; font-weight: 800; text-wrap: balance; }
.section__head p { color: #c0bdc4; margin: 18px 0 0; max-width: 36em; }
.aside { max-width: 38em; color: var(--muted); margin: 36px 0 0; }
.aside strong { color: var(--paper); font-weight: 600; }

/* ---- diario ---- */
.log { max-width: 640px; background: var(--room); border: 1px solid var(--line); border-radius: 24px; padding: 8px 28px 12px; }
.log__tag { font: 500 .8125rem/1 var(--mono); color: var(--muted); padding: 20px 0 14px; margin: 0; border-bottom: 1px dashed var(--line); }
.log__row { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid #1c1b21; }
.log__row:last-child { border-bottom: 0; }
.log time { font: 500 .9375rem/1.6 var(--mono); color: var(--lime); }
.log__row--night span { color: #aab3d8; }
.log__row--night time { color: #aab3d8; }

/* diario en escritorio: línea del día */
@media (min-width: 921px) {
  .log { max-width: none; display: grid; grid-template-columns: repeat(5, 1fr); background: none; border: 0; border-radius: 0; padding: 0; }
  .log__tag { grid-column: 1 / -1; padding: 0 0 36px; border: 0; }
  .log__row { display: block; position: relative; padding: 34px 28px 0 0; border: 0; border-top: 2px dashed #34323a; }
  .log__row::before { content: ""; position: absolute; top: -9px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 6px var(--night), 0 0 18px rgba(225,255,98,.5); }
  .log__row--night::before { background: #aab3d8; box-shadow: 0 0 0 6px var(--night), 0 0 18px rgba(170,179,216,.5); }
  .log time { display: block; font-size: 1.7rem; margin-bottom: 10px; }
  .log__row span { color: #d7d4da; }
}

/* ---- casa ---- */
.rooms { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2.4vw, 32px); align-items: start; }
.room { margin: 0; }
.room:nth-child(even) { margin-top: 56px; }
.room .phone { border-radius: 28px; padding: 6px; box-shadow: 0 0 0 1px #34323a, 0 30px 60px -28px #000; }
.room .phone img { border-radius: 22px; }
.room figcaption { margin-top: 18px; color: var(--muted); font-size: .9375rem; line-height: 1.5; }
.room figcaption strong { display: block; color: var(--paper); font: 700 1.2rem/1.2 var(--display); margin-bottom: 4px; }

/* ---- evolución ---- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; border-top: 1px solid var(--line); }
.facts div { padding: 28px 24px 8px 0; }
.facts div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts dt { font: 800 clamp(2.6rem, 6vw, 4.4rem)/1 var(--display); color: var(--moss); letter-spacing: -0.04em; }
.facts dd { margin: 10px 0 0; color: #c0bdc4; font-size: .9375rem; max-width: 12em; }

/* ---- familias ---- */
.trust__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.trust__list li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 56px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.trust__list h3 { font-size: 1.4rem; line-height: 1.2; font-weight: 700; }
.trust__list p { margin: 0; color: #c0bdc4; max-width: 34em; }

/* ---- pasos (es una secuencia real: numerada) ---- */
.steps__list { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.steps__list li { counter-increment: s; border-top: 2px solid var(--lime); padding-top: 20px; }
.steps__list li::before { content: counter(s); display: block; font: 800 2.6rem/1 var(--display); color: var(--lime); margin-bottom: 14px; }
.steps__list h3 { font-size: 1.25rem; line-height: 1.2; margin-bottom: 10px; }
.steps__list p { margin: 0 0 10px; color: #c0bdc4; font-size: 1rem; }
.how { background: var(--room); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px 4px; margin: 0 0 12px; }
.how p { font-size: .9375rem; color: var(--paper); }
.how em { font-style: normal; color: var(--lime); }
.tip { font-size: .875rem !important; color: var(--muted) !important; }

/* ---- precio ---- */
.price__box {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center;
  background: radial-gradient(120% 140% at 0% 0%, rgba(255, 180, 94, .16), transparent 55%), var(--room);
  border: 1px solid var(--line); border-radius: 36px; padding: clamp(28px, 5vw, 64px);
}
.price__num { font: 500 1.25rem/1 var(--text); color: #c0bdc4; margin: 22px 0 28px; }
.price__num span { font: 800 clamp(3.6rem, 9vw, 6.2rem)/1 var(--display); color: var(--paper); letter-spacing: -0.04em; margin-right: 6px; }
.price__small { color: var(--muted); font-size: .9375rem; margin: 14px 0 0; }
.price__inc { list-style: none; margin: 0; padding: 0; }
.price__inc li { position: relative; padding: 14px 0 14px 34px; border-bottom: 1px solid #222027; color: #d7d4da; }
.price__inc li:last-child { border-bottom: 0; }
.price__inc li::before { content: ""; position: absolute; left: 4px; top: 20px; width: 14px; height: 8px; border-left: 3px solid var(--lime); border-bottom: 3px solid var(--lime); transform: rotate(-45deg); }

/* ---- faq ---- */
.faq__list { max-width: 760px; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font: 700 1.15rem/1.3 var(--display); position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 50%; translate: 0 -50%; font: 400 1.8rem/1 var(--text); color: var(--lime); transition: rotate .2s; }
details[open] summary::after { rotate: 45deg; }
details p { margin: 0 0 24px; color: #c0bdc4; max-width: 38em; }

/* ---- pie ---- */
.foot { max-width: var(--wrap); margin: clamp(72px, 10vw, 130px) auto 0; padding: 36px var(--pad) 56px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--muted); font-size: .9375rem; }
.foot p { margin: 0; }

/* ---- una sola entrada orquestada: el cuarto se enciende ---- */
@media (prefers-reduced-motion: no-preference) {
  .phone--hero { animation: wake 1.1s cubic-bezier(.2, .7, .2, 1) both; }
  .glow { animation: lamp 1.6s ease-out .2s both; }
  @keyframes wake { from { opacity: 0; transform: translateY(24px) rotate(5deg); } to { opacity: 1; transform: rotate(2.5deg); } }
  @keyframes lamp { from { opacity: 0; } to { opacity: 1; } }
}

/* ---- responsive ---- */
@media (max-width: 920px) {
  .nav__links { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero__stage { margin-top: 12px; }
  .phone--hero { width: min(250px, 66vw); }
  .rooms { grid-template-columns: repeat(2, 1fr); }
  .room:nth-child(even) { margin-top: 36px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 24px; }
  .trust__list li { grid-template-columns: 1fr; gap: 10px; }
  .steps__list { grid-template-columns: repeat(2, 1fr); }
  .price__box { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nav__logo img { width: 108px; }
  .steps__list { grid-template-columns: 1fr; }
  .hero__cta .btn { width: 100%; }
  .log { padding: 4px 18px 8px; }
  .log__row { grid-template-columns: 52px 1fr; }
  .foot { flex-direction: column; align-items: flex-start; }
}
