/* ==========================================================================
   Sistema de diseño compartido — temporit.es / timelapse.gal
   Estilo editorial: fondo crema, tipografía grande, bloques oscuros tipo HUD.
   El acento cambia por marca con <body data-brand="...">.
   ========================================================================== */

:root {
  --bg: #f2eee6;
  --bg-soft: #e9e4d9;
  --ink: #111111;
  --ink-2: #4a4740;
  --ink-3: #8a857a;
  --line: rgba(17, 17, 17, 0.12);
  --dark: #0c0d0f;
  --dark-2: #16181c;
  --dark-line: rgba(255, 255, 255, 0.1);
  --white: #ffffff;
  --live: #ff3b30;
  --ok: #22c55e;

  --accent: #ff5a1f;
  --accent-ink: #ffffff;
  --accent-soft: rgba(255, 90, 31, 0.12);

  --radius: 22px;
  --radius-sm: 12px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1440px;

  --f-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body[data-brand="timelapse"] {
  --accent: #0a5cff;
  --accent-soft: rgba(10, 92, 255, 0.1);
  --accent-hero: #7cb2ff;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 11vw, 160px) 0; }
.section--tight { padding: clamp(56px, 7vw, 96px) 0; }

/* ---------- Tipografía ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.95;
  margin: 0;
}
.h-xl { font-size: clamp(44px, 7.6vw, 124px); }
.h-lg { font-size: clamp(38px, 5.6vw, 88px); }
.h-md { font-size: clamp(30px, 3.6vw, 56px); line-height: 1; }
.h-sm { font-size: clamp(22px, 2vw, 30px); line-height: 1.1; letter-spacing: -0.02em; }
.muted { color: var(--ink-3); }
.lead { font-size: clamp(17px, 1.35vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 58ch; }
.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.num { font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); }
.ghost { color: rgba(17, 17, 17, 0.18); }
.accent { color: var(--accent); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px; border: 0;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--line { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Cabecera ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 16px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  color: var(--white);
  transition: background .4s var(--ease), color .4s var(--ease), padding .4s var(--ease);
}
.header.is-solid {
  background: rgba(242, 238, 230, 0.86);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  color: var(--ink);
  padding-top: 10px; padding-bottom: 10px;
  box-shadow: 0 1px 0 var(--line);
}
.brand { font-family: var(--f-display); font-weight: 800; font-size: 20px; letter-spacing: -0.03em; display: inline-flex; align-items: baseline; gap: 2px; }
.brand b { color: var(--accent); }
.brand small { font-family: var(--f-mono); font-weight: 500; font-size: 10px; letter-spacing: .06em; opacity: .7; margin-left: 8px; text-transform: uppercase; }
.nav { display: flex; gap: 28px; font-size: 14px; font-weight: 500; }
.nav a { opacity: .85; transition: opacity .2s; }
.nav a:hover { opacity: 1; }
.header-cta { display: flex; align-items: center; gap: 10px; }
.header .btn { height: 42px; padding: 0 18px; font-size: 14px; }
.pill-live {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600; box-shadow: inset 0 0 0 1px currentColor; opacity: .9;
}
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(255,59,48,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,59,48,.55); } 70% { box-shadow: 0 0 0 10px rgba(255,59,48,0); } 100% { box-shadow: 0 0 0 0 rgba(255,59,48,0); } }
.menu-btn { display: none; background: none; border: 0; color: inherit; width: 42px; height: 42px; border-radius: 50%; box-shadow: inset 0 0 0 1px currentColor; }
.menu-btn span { display: block; width: 16px; height: 1.5px; background: currentColor; margin: 4px auto; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 60; background: var(--dark); color: var(--white);
  padding: 20px var(--gutter) 32px; display: flex; flex-direction: column;
  transform: translateY(-100%); transition: transform .6s var(--ease);
}
.mobile-menu.is-open { transform: none; }
.mobile-menu .top { display: flex; justify-content: space-between; align-items: center; }
.mobile-menu nav { margin-top: 48px; display: flex; flex-direction: column; }
.mobile-menu nav a { font-family: var(--f-display); font-weight: 700; font-size: clamp(36px, 10vw, 64px); letter-spacing: -0.03em; padding: 6px 0; border-bottom: 1px solid var(--dark-line); display: flex; gap: 16px; align-items: baseline; }
.mobile-menu nav a .num { color: rgba(255,255,255,.4); }
.mobile-menu .bottom { margin-top: auto; display: grid; gap: 10px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; color: var(--white); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; background: var(--dark); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: heroZoom 18s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.2) 55%, rgba(0,0,0,0) 80%), linear-gradient(180deg, rgba(0,0,0,.4) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,.15) 55%, rgba(0,0,0,.8) 100%); }
.hero-inner { position: relative; z-index: 2; padding-bottom: 28px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 999px;
  background: rgba(255,255,255,.12); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 13px; font-weight: 500; border: 1px solid rgba(255,255,255,.18);
}
.hero h1 { max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--accent-hero, var(--accent)); }
.hero-sub { margin: 24px 0 32px; font-size: clamp(17px, 1.4vw, 21px); max-width: 54ch; color: rgba(255,255,255,.86); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-bar {
  position: relative; z-index: 2; margin-top: clamp(40px, 7vh, 80px);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
  color: rgba(255,255,255,.7); border-top: 1px solid rgba(255,255,255,.2); padding-top: 16px; padding-bottom: 20px;
}
.hero-bar > :last-child { text-align: right; }
.scroll-hint { display: inline-flex; align-items: center; gap: 10px; }
.scroll-hint i { width: 1px; height: 22px; background: rgba(255,255,255,.5); position: relative; overflow: hidden; }
.scroll-hint i::after { content: ""; position: absolute; left: 0; top: -100%; width: 1px; height: 100%; background: #fff; animation: drip 1.8s infinite; }
@keyframes drip { to { top: 100%; } }

/* ---------- Logos ---------- */
.logos { padding: 44px 0; border-bottom: 1px solid var(--line); }
.logos-row { display: flex; align-items: center; gap: clamp(28px, 5vw, 72px); flex-wrap: wrap; justify-content: space-between; }
.logos-row .eyebrow { flex: 0 0 auto; }
.logo-word { font-family: var(--f-display); font-weight: 700; font-size: clamp(16px, 1.6vw, 22px); letter-spacing: -0.02em; color: var(--ink-3); transition: color .3s; }
.logo-word:hover { color: var(--ink); }

/* ---------- Intro / statement ---------- */
.statement { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.statement p.display { font-size: clamp(28px, 3.4vw, 52px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: clamp(56px, 7vw, 96px); }
.stat { background: var(--bg); padding: 28px 24px 28px 0; }
.stat + .stat { padding-left: 24px; }
.stat strong { display: block; font-family: var(--f-display); font-weight: 700; font-size: clamp(40px, 5vw, 76px); letter-spacing: -0.04em; line-height: 1; }
.stat span { display: block; margin-top: 10px; color: var(--ink-2); font-size: 14px; }

/* ---------- Encabezado de sección ---------- */
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: clamp(36px, 5vw, 64px); flex-wrap: wrap; }
.sec-head .lead { margin: 0; }

/* ---------- Servicios (tarjetas con foto numeradas) ---------- */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 2.4vw, 32px); }
.svc { display: flex; flex-direction: column; gap: 18px; }
.svc-media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; background: var(--bg-soft); }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.svc:hover .svc-media img { transform: scale(1.05); }
.svc-tag { position: absolute; left: 16px; top: 16px; }
.svc-body { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: start; }
.svc-body h3 { display: flex; align-items: baseline; gap: 12px; margin: 0; }
.svc-body p { grid-column: 1; margin: 0; color: var(--ink-2); max-width: 50ch; }
.svc-go { grid-row: 1 / span 2; grid-column: 2; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background .3s, color .3s, transform .4s var(--ease); }
.svc:hover .svc-go { background: var(--accent); color: var(--accent-ink); border-color: transparent; transform: rotate(-45deg); }

/* ---------- Bloque oscuro / Sistema 24/7 ---------- */
.dark { background: var(--dark); color: var(--white); border-radius: calc(var(--radius) + 8px); margin: 0 clamp(8px, 1.2vw, 16px); }
.dark .muted, .dark .lead { color: rgba(255,255,255,.62); }
.dark .eyebrow { color: rgba(255,255,255,.55); }
.dark .ghost { color: rgba(255,255,255,.22); }
.sys-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(24px, 3vw, 48px); align-items: stretch; }

.cam {
  position: relative; border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 16 / 10;
  border: 1px solid var(--dark-line); box-shadow: 0 40px 80px -30px rgba(0,0,0,.6);
}
.cam img { width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: opacity .5s; }
.cam-hud { position: absolute; inset: 0; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; font-family: var(--f-mono); font-size: 11px; letter-spacing: .05em; pointer-events: none; }
.cam-hud .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.hud-tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 6px; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #fff; }
.hud-tag.rec { background: var(--live); }
.cam-corners::before, .cam-corners::after { content: ""; position: absolute; width: 22px; height: 22px; border: 1.5px solid rgba(255,255,255,.75); }
.cam-corners::before { left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; width: 30px; height: 30px; border-width: 1px; }
.cam-tabs { display: flex; gap: 6px; margin-top: 14px; }
.cam-tab { flex: 1; height: 40px; border-radius: 10px; border: 1px solid var(--dark-line); background: var(--dark-2); color: rgba(255,255,255,.6); font-family: var(--f-mono); font-size: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: all .25s; }
.cam-tab[aria-selected="true"] { background: var(--white); color: var(--ink); }
.cam-tab .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }

.feat-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--dark-line); }
.feat { padding: 22px 0; border-bottom: 1px solid var(--dark-line); display: grid; grid-template-columns: 36px 1fr; gap: 14px; }
.feat .num { color: var(--accent); padding-top: 3px; }
.feat h4 { margin: 0 0 4px; font-family: var(--f-display); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.feat p { margin: 0; color: rgba(255,255,255,.62); font-size: 15px; }

.telemetry { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.tele { border: 1px solid var(--dark-line); border-radius: 12px; padding: 12px 14px; background: var(--dark-2); }
.tele small { display: block; font-family: var(--f-mono); font-size: 10px; letter-spacing: .06em; color: rgba(255,255,255,.45); text-transform: uppercase; }
.tele b { display: block; font-family: var(--f-mono); font-size: 15px; margin-top: 4px; font-weight: 600; }
.tele b.ok { color: var(--ok); }

/* ---------- Antes / Después ---------- */
.ba { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 8.5; user-select: none; touch-action: pan-y; background: #222; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: #fff; transform: translateX(-1px); }
.ba-handle button { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 50%; background: #fff; color: var(--ink); border: 0; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.3); cursor: ew-resize; font-family: var(--f-mono); font-size: 14px; }
.ba-label { position: absolute; top: 16px; z-index: 2; }
.ba-label.l { left: 16px; } .ba-label.r { right: 16px; }
.ba input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }

/* ---------- Precios ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan {
  position: relative; border-radius: var(--radius); background: var(--white); padding: 30px;
  display: flex; flex-direction: column; gap: 18px; border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.plan:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.25); }
.plan--hot { background: var(--dark); color: var(--white); border-color: transparent; }
.plan--hot .muted, .plan--hot li { color: rgba(255,255,255,.72); }
.plan-flag { position: absolute; top: 20px; right: 20px; font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; background: var(--accent); color: var(--accent-ink); padding: 5px 10px; border-radius: 999px; }
.plan h3 { margin: 0; font-family: var(--f-display); font-size: 26px; letter-spacing: -0.02em; font-weight: 700; }
.plan .for { margin: 6px 0 0; font-size: 14px; }
.price { display: flex; align-items: baseline; gap: 8px; }
.price strong { font-family: var(--f-display); font-size: 56px; letter-spacing: -0.04em; line-height: 1; font-weight: 700; }
.price span { font-size: 14px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; color: var(--ink-2); }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; }
.plan li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.plan .btn { margin-top: auto; width: 100%; }

.offer {
  margin-top: 16px; border-radius: var(--radius); padding: clamp(28px, 4vw, 48px);
  background: var(--accent); color: var(--accent-ink);
  display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 28px; align-items: center;
}
.offer .eyebrow { color: rgba(255,255,255,.85); }
.offer .eyebrow::before { background: #fff; }
.offer p { margin: 0; opacity: .9; }
.offer .big { font-family: var(--f-display); font-weight: 700; font-size: clamp(48px, 6vw, 88px); letter-spacing: -0.045em; line-height: .9; }

.public-row {
  margin-top: 16px; border-radius: var(--radius); border: 1px solid var(--line); padding: 26px 30px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}

/* ---------- Casos ---------- */
.cases { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.case { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 320px; color: var(--white); display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; isolation: isolate; }
.case:first-child { grid-row: span 2; min-height: 560px; }
.case img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease); }
.case::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.8)); }
.case:hover img { transform: scale(1.05); }
.case h3 { margin: 10px 0 6px; font-family: var(--f-display); font-size: clamp(24px, 2.4vw, 36px); letter-spacing: -0.025em; line-height: 1.05; font-weight: 700; }
.case p { margin: 0; color: rgba(255,255,255,.78); font-size: 15px; max-width: 46ch; }
.case .meta { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Pasos ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.step { border-top: 2px solid var(--ink); padding-top: 20px; }
.step .num { color: var(--accent); }
.step h4 { margin: 10px 0 6px; font-family: var(--f-display); font-size: 22px; letter-spacing: -0.02em; font-weight: 600; }
.step p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ---------- Lead magnet ---------- */
.magnet { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); }
.magnet-body { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; gap: 20px; justify-content: center; }
.magnet-media { position: relative; min-height: 320px; }
.magnet-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.check-list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--ink-2); }
.check-list li::before { content: "→"; color: var(--accent); font-weight: 700; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 96px); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 24px 0; font-family: var(--f-display); font-size: clamp(18px, 1.6vw, 22px); font-weight: 600; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-mono); font-weight: 400; font-size: 22px; transition: transform .3s var(--ease); flex: 0 0 auto; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 24px; color: var(--ink-2); max-width: 64ch; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact-direct { display: grid; gap: 12px; margin-top: 32px; }
.direct { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--dark-line); font-family: var(--f-display); font-size: clamp(20px, 2vw, 28px); font-weight: 600; letter-spacing: -0.02em; transition: color .25s; }
.direct:hover { color: var(--accent); }
.direct small { font-family: var(--f-mono); font-size: 11px; color: rgba(255,255,255,.5); letter-spacing: .06em; text-transform: uppercase; font-weight: 400; }
.form { background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .full { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.field input, .field select, .field textarea {
  width: 100%; background: rgba(255,255,255,.04); border: 1px solid var(--dark-line); border-radius: 12px;
  color: var(--white); padding: 14px 14px; font: inherit; font-size: 15px; transition: border-color .2s, background .2s;
}
.field select option { color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); background: rgba(255,255,255,.07); outline: none; }
.field textarea { min-height: 110px; resize: vertical; }
.form .legal { font-size: 12px; color: rgba(255,255,255,.45); margin: 0; }
.form .btn { width: 100%; height: 56px; }
.form-status { margin: 0; padding: 12px 14px; border-radius: 12px; font-size: 14px; }
.form-status.ok { background: rgba(34,197,94,.14); color: #86efac; }
.form-status.err { background: rgba(255,59,48,.14); color: #fca5a5; }
.hp { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.footer { padding: clamp(64px, 8vw, 120px) 0 120px; }
.footer-big { font-family: var(--f-display); font-weight: 800; letter-spacing: -0.06em; font-size: clamp(64px, 17vw, 280px); line-height: .8; margin: 0 0 48px; color: var(--ink); }
.footer-big b { color: var(--accent); }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; border-top: 1px solid var(--line); padding-top: 32px; font-size: 14px; color: var(--ink-2); }
.footer-cols h5 { margin: 0 0 12px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.footer-cols a { display: block; padding: 3px 0; }
.footer-cols a:hover { color: var(--accent); }

/* ---------- Índice flotante + WhatsApp ---------- */
.dock {
  position: fixed; left: 50%; bottom: 18px; z-index: 40; transform: translate(-50%, 140%);
  display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 999px;
  background: rgba(17,17,17,.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  color: #fff; font-size: 13px; box-shadow: 0 20px 40px -10px rgba(0,0,0,.4);
  transition: transform .6s var(--ease);
}
.dock.is-visible { transform: translate(-50%, 0); }
.dock-label { padding: 0 12px 0 14px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; display: flex; gap: 8px; align-items: center; min-width: 170px; }
.dock-label .num { color: var(--accent); }
.dock .btn { height: 38px; padding: 0 16px; font-size: 13px; }
.wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 41; width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -8px rgba(0,0,0,.35);
  transition: transform .3s var(--ease);
}
.wa:hover { transform: scale(1.08); }

/* ---------- Animaciones de entrada ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav, .header-cta .pill-live { display: none; }
  .menu-btn { display: block; }
  .statement, .sys-grid, .faq-grid, .contact, .magnet { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 560px; }
  .offer { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .header .btn--accent { display: none; }
  .services { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat, .stat + .stat { padding: 22px 16px 22px 0; }
  .stat:nth-child(even) { padding-left: 16px; }
  .cases { grid-template-columns: 1fr; }
  .case:first-child { grid-row: auto; min-height: 420px; }
  .steps { grid-template-columns: 1fr; }
  .telemetry { grid-template-columns: 1fr 1fr; }
  .form { grid-template-columns: 1fr; }
  .hero-bar { grid-template-columns: 1fr 1fr; }
  .hero-bar > :nth-child(2) { display: none; }
  .ba { aspect-ratio: 4 / 3.4; }
  .dock-label { min-width: 0; }
  .dock-label .txt { display: none; }
  .wa { bottom: 84px; }
  .logos-row { justify-content: flex-start; gap: 18px 28px; }
  .logos-row .eyebrow { width: 100%; }
}

/* ---------- Simulador de cobertura (timelapse.gal) ---------- */
.fov { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.fov-tabs { display: grid; gap: 10px; }
.fov-tab {
  text-align: left; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px;
  display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; color: var(--ink); transition: all .3s var(--ease);
}
.fov-tab strong { font-family: var(--f-display); font-size: 20px; letter-spacing: -0.02em; }
.fov-tab span { grid-column: 1; color: var(--ink-2); font-size: 14px; }
.fov-tab em { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-style: normal; font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); }
.fov-tab[aria-selected="true"] { background: var(--ink); color: var(--white); border-color: transparent; }
.fov-tab[aria-selected="true"] span, .fov-tab[aria-selected="true"] em { color: rgba(255,255,255,.65); }
.fov-stage { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: #000; }
.fov-stage img { width: 100%; height: 100%; object-fit: cover; }
.fov-frame {
  position: absolute; border: 2px solid #fff; border-radius: 10px; box-shadow: 0 0 0 9999px rgba(8, 10, 14, .62);
  transition: all .8s var(--ease); left: 24%; top: 14%; width: 52%; height: 72%;
}
.fov-frame span { position: absolute; left: 10px; top: 10px; }
#fov[data-active="180"] .fov-frame { left: 2%; top: 6%; width: 96%; height: 88%; }
#fov[data-active="6k"] .fov-frame { left: 38%; top: 30%; width: 30%; height: 40%; }
.fov-label { display: none; }
#fov[data-active="4k"] .fov-label[data-for="4k"], #fov[data-active="180"] .fov-label[data-for="180"], #fov[data-active="6k"] .fov-label[data-for="6k"] { display: inline-flex; }

/* ---------- Incluido de serie ---------- */
.included { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.inc { background: var(--bg); padding: 28px 24px; display: flex; flex-direction: column; gap: 10px; min-height: 210px; }
.inc .num { color: var(--accent); }
.inc h4 { margin: 0; font-family: var(--f-display); font-size: 20px; letter-spacing: -0.02em; font-weight: 600; line-height: 1.15; }
.inc p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.inc--accent { background: var(--accent); color: #fff; }
.inc--accent p, .inc--accent .num { color: rgba(255,255,255,.85); }

/* ---------- Garantía ---------- */
.guarantee { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(20px, 4vw, 56px); align-items: center; padding: clamp(28px, 4vw, 56px); }
.seal { width: 120px; height: 120px; border-radius: 50%; border: 1px dashed rgba(255,255,255,.4); display: grid; place-items: center; text-align: center; font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.4; }
.seal b { display: block; font-family: var(--f-display); font-size: 34px; letter-spacing: -0.03em; color: var(--accent); }

/* ---------- Calculadora ---------- */
.calc { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
.calc-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); display: grid; gap: 24px; }
.calc-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.calc-types label { position: relative; border: 1px solid var(--line); border-radius: 14px; padding: 16px; cursor: pointer; display: grid; gap: 4px; transition: all .25s; }
.calc-types input { position: absolute; opacity: 0; pointer-events: none; }
.calc-types label strong { font-family: var(--f-display); font-size: 18px; letter-spacing: -0.02em; }
.calc-types label span { font-size: 13px; color: var(--ink-3); }
.calc-types label:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
.calc-types label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.calc-range { display: grid; gap: 12px; }
.calc-range .row { display: flex; justify-content: space-between; align-items: baseline; }
.calc-range output { font-family: var(--f-display); font-size: 28px; font-weight: 700; letter-spacing: -0.03em; }
input[type="range"].slider { width: 100%; accent-color: var(--accent); height: 28px; }
.calc-result { background: var(--dark); color: #fff; border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; gap: 18px; }
.calc-result .eyebrow { color: rgba(255,255,255,.55); }
.calc-result .fee { font-family: var(--f-display); font-weight: 700; font-size: clamp(64px, 7vw, 104px); letter-spacing: -0.05em; line-height: .9; }
.calc-result .fee small { font-size: 18px; letter-spacing: 0; color: rgba(255,255,255,.6); font-weight: 500; }
.calc-lines { display: grid; gap: 0; border-top: 1px solid var(--dark-line); }
.calc-lines div { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--dark-line); font-size: 15px; color: rgba(255,255,255,.7); }
.calc-lines b { color: #fff; font-family: var(--f-mono); font-weight: 500; }
.calc-result .btn { margin-top: auto; width: 100%; }

/* ---------- Complementos ---------- */
.addons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.addon { border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; }
.addon img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.addon div { padding: 22px; }
.addon h4 { margin: 0 0 6px; font-family: var(--f-display); font-size: 20px; letter-spacing: -0.02em; font-weight: 600; }
.addon p { margin: 0; color: var(--ink-2); font-size: 15px; }

@media (max-width: 1080px) {
  .fov, .calc { grid-template-columns: 1fr; }
  .included { grid-template-columns: repeat(2, 1fr); }
  .addons { grid-template-columns: 1fr; max-width: 560px; }
  .guarantee { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .included { grid-template-columns: 1fr; }
  .inc { min-height: 0; }
  .calc-types { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Páginas interiores
   ========================================================================== */
.page-inner .header { color: var(--ink); }
.page-hero { padding: clamp(130px, 16vw, 200px) 0 clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.page-hero .lead { margin-top: 24px; }
.crumbs { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 24px; display: flex; gap: 10px; }
.crumbs a:hover { color: var(--accent); }

/* Ficha de caso */
.case-detail { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: start; padding: clamp(56px, 7vw, 96px) 0; border-bottom: 1px solid var(--line); }
.case-detail:nth-of-type(even) .cd-media { order: 2; }
.cd-media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.cd-media img { width: 100%; height: 100%; object-fit: cover; }
.cd-media .chip { position: absolute; left: 16px; top: 16px; color: #fff; }
.cd-body h2 { margin: 14px 0 16px; }
.cd-body > p { color: var(--ink-2); margin: 0 0 28px; }
.cd-rows { border-top: 1px solid var(--line); }
.cd-row { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cd-row .num { padding-top: 3px; }
.cd-row h4 { margin: 0 0 4px; font-family: var(--f-display); font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.cd-row p { margin: 0; color: var(--ink-2); font-size: 15px; }
.cd-body .btn { margin-top: 28px; }

/* Banda de llamada a la acción */
.cta-band { padding: clamp(48px, 6vw, 88px) clamp(24px, 5vw, 72px); display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: end; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Tabla comparativa */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.cmp { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 15px; }
.cmp th, .cmp td { text-align: left; padding: 18px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp thead th { font-family: var(--f-display); font-size: 20px; letter-spacing: -0.02em; font-weight: 700; background: var(--bg-soft); }
.cmp thead th small { display: block; font-family: var(--f-mono); font-size: 11px; font-weight: 400; color: var(--ink-3); letter-spacing: .04em; margin-top: 4px; }
.cmp tbody th { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; width: 200px; }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp td strong { font-family: var(--f-display); font-size: 22px; letter-spacing: -0.02em; }
.cmp .hot { background: var(--accent-soft); }

/* Entregables / tarjetas simples */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.card .num { color: var(--accent); }
.card h3 { margin: 0; font-family: var(--f-display); font-size: 22px; letter-spacing: -0.02em; font-weight: 600; }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* FAQ por grupos */
.faq-group + .faq-group { margin-top: clamp(48px, 6vw, 80px); }
.faq-group > .eyebrow { margin-bottom: 8px; }

/* Texto legal */
.prose { max-width: 72ch; padding: clamp(48px, 6vw, 80px) 0; color: var(--ink-2); }
.prose h2 { font-family: var(--f-display); font-size: 26px; letter-spacing: -0.02em; color: var(--ink); margin: 40px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose a { color: var(--accent); text-decoration: underline; }

@media (max-width: 1080px) {
  .case-detail, .cta-band { grid-template-columns: 1fr; }
  .case-detail:nth-of-type(even) .cd-media { order: 0; }
  .cards-3 { grid-template-columns: 1fr; max-width: 560px; }
}
@media (max-width: 720px) {
  .cd-row { grid-template-columns: 1fr; gap: 4px; }
}

/* ==========================================================================
   Bitácora (blog)
   ========================================================================== */
.hud-corners { position: absolute; inset: 14px; pointer-events: none; }
.hud-corners::before, .hud-corners::after, .hud-corners i::before, .hud-corners i::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-color: rgba(255,255,255,.85); border-style: solid; border-width: 0;
}
.hud-corners::before { left: 0; top: 0; border-left-width: 1.5px; border-top-width: 1.5px; }
.hud-corners::after { right: 0; top: 0; border-right-width: 1.5px; border-top-width: 1.5px; }
.hud-corners i::before { left: 0; bottom: 0; border-left-width: 1.5px; border-bottom-width: 1.5px; }
.hud-corners i::after { right: 0; bottom: 0; border-right-width: 1.5px; border-bottom-width: 1.5px; }

/* Línea de tiempo arrastrable */
.scrub { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(20px, 3vw, 40px); align-items: stretch; }
.scrub-monitor { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 16 / 9; color: #fff; display: block; }
.scrub-monitor img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .25s; }
.scrub-monitor::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.78)); pointer-events: none; }
.scrub-monitor .cam-hud { z-index: 2; }
.scrub-monitor .scrub-title { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 54px; font-family: var(--f-display); font-weight: 700; font-size: clamp(20px, 2vw, 28px); letter-spacing: -0.02em; line-height: 1.1; }
.scrub-panel { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: clamp(20px, 2.4vw, 32px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.scrub-panel p { margin: 0; color: var(--ink-2); }
.scrub-track { position: relative; height: 72px; margin-top: 18px; }
.scrub-ticks { position: absolute; inset: 22px 0; background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 8px); border-radius: 6px; }
.scrub-dot { position: absolute; top: 50%; width: 10px; height: 28px; margin-left: -5px; transform: translateY(-50%); border-radius: 4px; background: var(--ink); transition: background .2s, height .2s; pointer-events: none; }
.scrub-dot.is-on { background: var(--accent); height: 44px; }
.scrub-track input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.scrub-head { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--accent); pointer-events: none; transform: translateX(-1px); }
.scrub-head::before { content: attr(data-label); position: absolute; top: -24px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em; background: var(--accent); color: #fff; padding: 3px 8px; border-radius: 6px; }
.scrub-legend { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }

/* Destacado */
.featured { position: relative; display: grid; grid-template-columns: 1.5fr 1fr; border-radius: var(--radius); overflow: hidden; background: var(--dark); color: #fff; min-height: 520px; }
.featured-media { position: relative; overflow: hidden; }
.featured-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.featured:hover .featured-media img { transform: scale(1.04); }
.featured-body { padding: clamp(24px, 3.4vw, 48px); display: flex; flex-direction: column; gap: 18px; justify-content: flex-end; }
.featured-body h2 { margin: 0; }
.featured-body p { margin: 0; color: rgba(255,255,255,.7); }
.featured .frame-meta { color: rgba(255,255,255,.55); }

/* Filtros */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter { height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 14px; font-weight: 500; transition: all .25s; }
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter .count { font-family: var(--f-mono); font-size: 11px; opacity: .6; margin-left: 6px; }

/* Tarjetas fotograma */
.frames { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.frame-card { display: flex; flex-direction: column; gap: 14px; transition: opacity .35s var(--ease); }
.frame-card[hidden] { display: none; }
.frame-card.is-dim { opacity: .35; }
.frame-card.is-focus .frame-media { box-shadow: 0 0 0 3px var(--accent); }
.frame-media { position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: var(--dark); transition: box-shadow .3s; }
.frame-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.frame-card:hover .frame-media img { transform: scale(1.05); }
.frame-media .cam-hud { font-size: 10px; padding: 12px; }
.frame-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.frame-meta .fmt { color: var(--accent); }
.frame-card h3 { margin: 0; font-family: var(--f-display); font-size: 22px; letter-spacing: -0.02em; line-height: 1.15; font-weight: 600; }
.frame-card p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* Suscripción */
.subscribe { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; padding: clamp(28px, 4vw, 56px); }
.subscribe form { display: flex; gap: 8px; flex-wrap: wrap; }
.subscribe input[type="email"] { flex: 1 1 220px; height: 52px; border-radius: 999px; border: 1px solid var(--dark-line); background: rgba(255,255,255,.06); color: #fff; padding: 0 20px; font: inherit; }
.subscribe input[type="email"]:focus { outline: none; border-color: var(--accent); }
.subscribe .form-status { flex-basis: 100%; }

/* Artículo */
.read-bar { position: fixed; left: 0; right: 0; top: 0; z-index: 55; height: 3px; pointer-events: none; }
.read-bar i { display: block; height: 100%; width: 0; background: var(--accent); }
.post-hero { padding-top: 92px; }
.post-cover { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 21 / 9; background: #000; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-title { padding: clamp(32px, 4vw, 56px) 0 clamp(20px, 2.4vw, 32px); max-width: 22ch; }
.post-lead { font-size: clamp(19px, 1.6vw, 24px); line-height: 1.45; color: var(--ink-2); max-width: 60ch; margin: 0; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 6vw, 96px); padding: clamp(40px, 5vw, 72px) 0; align-items: start; border-top: 1px solid var(--line); margin-top: clamp(32px, 4vw, 56px); }
.post-body { font-size: 18px; line-height: 1.7; color: #2a2824; max-width: 70ch; }
.post-body > :first-child { margin-top: 0; }
.post-body h2 { font-family: var(--f-display); font-size: clamp(28px, 2.6vw, 38px); letter-spacing: -0.025em; line-height: 1.1; color: var(--ink); margin: 56px 0 16px; }
.post-body h3 { font-family: var(--f-display); font-size: 23px; letter-spacing: -0.02em; color: var(--ink); margin: 36px 0 10px; }
.post-body p { margin: 0 0 20px; }
.post-body ul, .post-body ol { margin: 0 0 24px; padding-left: 0; list-style: none; counter-reset: li; display: grid; gap: 14px; }
.post-body li { position: relative; padding-left: 40px; }
.post-body ul li::before { content: "→"; position: absolute; left: 6px; color: var(--accent); font-weight: 700; }
.post-body ol li { counter-increment: li; }
.post-body ol li::before { content: counter(li, decimal-leading-zero); position: absolute; left: 0; top: 3px; font-family: var(--f-mono); font-size: 13px; color: var(--accent); }
.post-body strong { color: var(--ink); }
.post-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.post-body blockquote { margin: 48px 0; padding: 0; border: 0; font-family: var(--f-display); font-weight: 600; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.15; letter-spacing: -0.025em; color: var(--ink); }
.post-body blockquote::before { content: "\201C"; display: block; font-size: 1.8em; line-height: .6; color: var(--accent); }
.post-body blockquote p { margin: 0; }
.post-body figure { margin: 40px 0; }
.post-body figure img { border-radius: var(--radius); width: 100%; }
.post-body figcaption { font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); margin-top: 10px; letter-spacing: .03em; }
.post-body .ba { margin: 40px 0; }
.dato { margin: 40px 0; display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; padding: 28px; border-radius: var(--radius); background: var(--dark); color: #fff; }
.dato strong { font-family: var(--f-display); font-size: clamp(48px, 5vw, 72px); letter-spacing: -0.04em; line-height: .9; color: var(--accent); }
.dato span { color: rgba(255,255,255,.75); font-size: 17px; line-height: 1.4; }

.ficha { position: sticky; top: 100px; display: grid; gap: 16px; }
.ficha-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); padding: 22px; }
.ficha-card h4 { margin: 0 0 12px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.ficha-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.ficha-row:first-of-type { border-top: 0; }
.ficha-row span:first-child { color: var(--ink-3); }
.ficha-row span:last-child { text-align: right; font-weight: 500; }
.share { display: flex; gap: 8px; flex-wrap: wrap; }
.share a, .share button { height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; color: var(--ink); }
.share a:hover, .share button:hover { border-color: var(--ink); }
.post-cta { background: var(--accent); color: #fff; border-color: transparent; }
.post-cta h4 { color: rgba(255,255,255,.8); }
.post-cta p { margin: 0 0 16px; font-family: var(--f-display); font-size: 21px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.post-cta .btn { width: 100%; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; padding: 5px 10px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-2); }

/* ==========================================================================
   Showreel y muro de reels (portada temporit)
   ========================================================================== */
.reel-hero { position: relative; display: block; width: 100%; border: 0; padding: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 21 / 9; background: #000; color: #fff; cursor: pointer; text-align: left; }
.reel-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: transform 1.2s var(--ease), opacity .4s; }
.reel-hero:hover img { transform: scale(1.03); opacity: .6; }
.reel-hero .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 104px; height: 104px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; font-size: 26px; transition: transform .4s var(--ease); }
.reel-hero:hover .play { transform: translate(-50%, -50%) scale(1.08); }
.reel-hero .reel-cap { position: absolute; left: 24px; bottom: 22px; right: 24px; display: flex; justify-content: space-between; gap: 16px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.reels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 16px; }
.reel { position: relative; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: #000; color: #fff; border: 0; padding: 0; cursor: pointer; text-align: left; }
.reel img, .reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,0) 30%, rgba(0,0,0,0) 55%, rgba(0,0,0,.8)); pointer-events: none; }
.reel-top, .reel-bottom { position: absolute; left: 14px; right: 14px; z-index: 2; }
.reel-top { top: 14px; display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 10px; letter-spacing: .06em; }
.reel-bottom { bottom: 16px; }
.reel-bottom strong { display: block; font-family: var(--f-display); font-size: 18px; letter-spacing: -0.015em; line-height: 1.15; }
.reel-bottom span { font-size: 13px; color: rgba(255,255,255,.75); }
.reel-pts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(28px, 4vw, 48px); }
.video-modal { border: 0; padding: 0; background: transparent; max-width: min(1200px, 94vw); width: 100%; }
.video-modal::backdrop { background: rgba(0,0,0,.85); backdrop-filter: blur(6px); }
.video-modal video { width: 100%; border-radius: var(--radius); background: #000; display: block; }
.video-modal .vm-close { position: absolute; right: 8px; top: -48px; height: 40px; padding: 0 16px; border-radius: 999px; border: 0; background: #fff; color: var(--ink); font-weight: 600; }
.video-modal .vm-msg { color: #fff; text-align: center; padding: 60px 20px; font-family: var(--f-display); font-size: 24px; }

@media (max-width: 1080px) {
  .scrub, .featured, .subscribe { grid-template-columns: 1fr; }
  .featured-media { min-height: 300px; }
  .frames { grid-template-columns: repeat(2, 1fr); }
  .post-layout { grid-template-columns: 1fr; }
  .ficha { position: static; }
  .reels { grid-template-columns: repeat(2, 1fr); }
  .reel-pts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .frames { grid-template-columns: 1fr; }
  .post-cover, .reel-hero { aspect-ratio: 4 / 3; }
  .dato { grid-template-columns: 1fr; }
  .post-body { font-size: 17px; }
  .reel-pts { grid-template-columns: 1fr; }
  .reels { grid-template-columns: repeat(4, 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .reel { scroll-snap-align: start; }
  .reel-hero .play { width: 72px; height: 72px; }
}


/* ==========================================================================
   NUEVA ARQUITECTURA AEC 2026 — 5 PRODUCTOS ESTRELLA, PERFILES Y SPATIAL OS
   ========================================================================== */
.aec-products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 2.4vw, 32px);
}
.aec-card {
  position: relative;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.aec-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 64px -28px rgba(0, 0, 0, .22);
  border-color: rgba(17, 17, 17, .28);
}
.aec-card--wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background: var(--dark);
  color: var(--white);
  border-color: transparent;
}
.aec-card--wide .muted,
.aec-card--wide .aec-desc {
  color: rgba(255, 255, 255, .74);
}
.aec-media {
  position: relative;
  aspect-ratio: 16 / 9.5;
  overflow: hidden;
  background: var(--dark);
}
.aec-card--wide .aec-media {
  aspect-ratio: auto;
  min-height: 360px;
}
.aec-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.aec-card:hover .aec-media img {
  transform: scale(1.05);
}
.aec-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,.65) 100%);
  pointer-events: none;
}
.aec-badges {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.aec-code {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(12, 13, 15, .82);
  color: #fff;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.18);
}
.aec-code b {
  color: var(--accent);
}
.aec-price-pill {
  font-family: var(--f-mono);
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}
.aec-body {
  padding: clamp(22px, 2.6vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.aec-kicker {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.aec-body h3 {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(24px, 2.2vw, 32px);
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.aec-desc {
  margin: 0;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.55;
}
.aec-meta-box {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  font-size: 13.5px;
}
.aec-card--wide .aec-meta-box {
  border-top-color: var(--dark-line);
}
.aec-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}
.aec-meta-row span:first-child {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink-3);
}
.aec-card--wide .aec-meta-row span:first-child {
  color: rgba(255,255,255,.5);
}
.aec-meta-row strong {
  font-weight: 600;
  text-align: right;
}
.aec-actions {
  padding-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.aec-actions .btn {
  height: 44px;
  padding: 0 20px;
  font-size: 14px;
}

/* Matriz por Perfil del Comité AEC (Arquitectura, Constructora, Ingeniería) */
.profiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.profile-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 2.8vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.profile-card--dark {
  background: var(--dark);
  color: var(--white);
  border-color: transparent;
}
.profile-card--dark p,
.profile-card--dark li {
  color: rgba(255,255,255,.74);
}
.profile-role {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.profile-card h3 {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(22px, 2vw, 28px);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.profile-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.profile-card li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
}
.profile-card li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 1080px) {
  .aec-products,
  .aec-card--wide,
  .profiles-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Hilo Conductor y Enganche Narrativo (Realidad de Obra + Cinta de 5 Fases)
   ========================================================================== */
.pain-grid {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: clamp(18px, 2.4vw, 28px);
  margin-top: clamp(32px, 4vw, 48px);
}
.pain-col {
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 40px);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.pain-col--win {
  background: var(--dark);
  color: var(--white);
  border-color: rgba(255, 77, 28, .4);
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .35);
}
.pain-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(17, 17, 17, .07);
  color: var(--ink-2);
  font-weight: 600;
}
.pain-col--win .pain-tag {
  background: rgba(255, 77, 28, .18);
  color: #ff8664;
  border: 1px solid rgba(255, 77, 28, .35);
}
.pain-col h3 {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(22px, 2.1vw, 30px);
  letter-spacing: -0.025em;
  line-height: 1.08;
}
.pain-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.pain-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
}
.pain-col--win .pain-list li {
  color: rgba(255, 255, 255, .82);
}
.pain-list li i {
  font-style: normal;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 13px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  margin-top: 2px;
}
.pain-col:not(.pain-col--win) .pain-list li i {
  background: rgba(17, 17, 17, .08);
  color: var(--ink-3);
}
.pain-col--win .pain-list li i {
  background: var(--accent);
  color: #fff;
}

/* Cinta cronológica de las 5 fases de una obra */
.phase-ribbon {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: clamp(28px, 3.5vw, 44px);
}
.phase-step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color .25s, transform .25s;
}
.phase-step:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.phase-step small {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.phase-step strong {
  font-family: var(--f-display);
  font-size: 16px;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.phase-step span {
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.35;
}

@media (max-width: 1080px) {
  .pain-grid {
    grid-template-columns: 1fr;
  }
  .phase-ribbon {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .phase-ribbon {
    grid-template-columns: 1fr;
  }
}

