/* Centrifix App · sitio oficial. Sin dependencias externas. */
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --navy: #0A2252;
  --navy-2: #12306e;
  --navy-3: #061638;
  --orange: #FB6118;
  --orange-2: #e2520d;
  --ink: #14213d;
  --muted: #55607a;
  --line: #e3e7ef;
  --bg: #ffffff;
  --bg-soft: #f4f6fb;
  --bg-warm: #fff4ee;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(10, 34, 82, .10);
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--navy-2); }
a:hover { color: var(--orange-2); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.4em; border-radius: 999px; font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s, color .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-2); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn svg { width: 1.2em; height: 1.2em; }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(8px);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--orange-2); }
.nav .btn { color: #fff; padding: .6em 1.2em; font-size: .95rem; }
.menu { display: none; position: relative; }
.menu summary {
  list-style: none; cursor: pointer; width: 44px; height: 44px; border-radius: 10px;
  display: grid; place-items: center; border: 1px solid var(--line);
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 22px; height: 22px; }
.menu-panel {
  position: absolute; right: 0; top: 54px; width: min(280px, calc(100vw - 32px)); background: #fff;
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 10px; display: grid;
}
.menu-panel a { padding: 12px 14px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 500; }
.menu-panel a:hover { background: var(--bg-soft); }
.menu-panel .btn { margin-top: 6px; color: #fff; }
@media (max-width: 900px) {
  .nav { display: none; }
  .menu { display: block; }
}

/* ---------- Héroe ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 420px at 85% 10%, rgba(251,97,24,.28), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(40,90,190,.45), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-3) 100%);
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero .lead { font-size: 1.15rem; color: #d7def0; max-width: 34em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600;
  padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.1); color: #ffd9c6; margin-bottom: 18px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 18px; font-size: .9rem; color: #b8c3de; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; font-size: .9rem; color: #c9d2e8; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 18px; height: 18px; color: var(--orange); }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 64px; }
}

/* Teléfono de muestra (hecho con HTML, sin capturas) */
.phone {
  justify-self: center; width: min(320px, 100%); aspect-ratio: 9 / 18.5; background: #0b1020;
  border-radius: 42px; padding: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.45), inset 0 0 0 2px #2a3352;
  position: relative;
}
.screen { width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: var(--bg-soft); color: var(--ink); display: flex; flex-direction: column; }
.screen-top { background: var(--navy); color: #fff; padding: 22px 18px 16px; }
.screen-top small { color: #b8c3de; display: block; font-size: .72rem; }
.screen-top strong { font-size: 1.05rem; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.kpi { background: rgba(255,255,255,.1); border-radius: 12px; padding: 8px 10px; }
.kpi b { display: block; font-size: 1rem; }
.kpi span { font-size: .68rem; color: #c9d2e8; }
.screen-body { padding: 12px; display: grid; gap: 10px; font-size: .78rem; }
.map {
  height: 150px; border-radius: 14px; background: #e7edf7; position: relative; overflow: hidden;
  border: 1px solid var(--line);
}
.map svg { width: 100%; height: 100%; }
.card-mini { background: #fff; border-radius: 12px; padding: 10px 12px; box-shadow: 0 2px 8px rgba(10,34,82,.06); }
.card-mini .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.card-mini b { color: var(--navy); }
.pill { font-size: .66rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--bg-warm); color: var(--orange-2); white-space: nowrap; }
.pill.ok { background: #e6f6ee; color: #18794e; }
.pill.blue { background: #e8eefc; color: var(--navy-2); }
.card-mini .sub { color: var(--muted); font-size: .7rem; }

/* ---------- Franja de oficios ---------- */
.trades { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.trades .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; padding-top: 22px; padding-bottom: 22px; }
.trades p { margin: 0 12px 0 0; font-weight: 600; color: var(--muted); font-size: .9rem; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .88rem; color: var(--navy); }

/* ---------- Secciones ---------- */
section { scroll-margin-top: 80px; }
.section { padding: 88px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.kicker { display: inline-block; color: var(--orange-2); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
@media (max-width: 700px) { .section { padding: 64px 0; } }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  transition: box-shadow .2s, transform .2s;
}
.feature:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature p { color: var(--muted); margin: 0; font-size: .96rem; }
.icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px;
  background: var(--bg-warm); color: var(--orange-2);
}
.icon.blue { background: #e8eefc; color: var(--navy-2); }
.icon svg { width: 24px; height: 24px; }
.feature ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: .92rem; color: var(--ink); }
.feature li { padding-left: 22px; position: relative; }
.feature li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 3px; background: var(--orange); opacity: .85; }

/* Bloques destacados (alternados) */
.spot { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.spot + .spot { margin-top: 96px; }
.spot.flip .spot-media { order: -1; }
.spot p { color: var(--muted); font-size: 1.05rem; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--orange); margin-top: 2px; }
.spot-media {
  background: linear-gradient(150deg, #eef2fa, #fff4ee); border-radius: 26px; padding: 28px; border: 1px solid var(--line);
}
@media (max-width: 900px) {
  .spot { grid-template-columns: 1fr; gap: 28px; }
  .spot.flip .spot-media { order: 0; }
  .spot + .spot { margin-top: 64px; }
}

/* Tarjeta de OT de muestra */
.ot { background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 20px; display: grid; gap: 14px; font-size: .92rem; }
.ot-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ot-head b { color: var(--navy); font-size: 1.05rem; }
.ot table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.ot td { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.ot td:last-child { text-align: right; font-weight: 600; }
.ot .total td { border-bottom: 0; font-size: 1rem; color: var(--navy); font-weight: 700; }
.sign { border: 1px dashed #c3cbe0; border-radius: 12px; padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sign svg { width: 130px; height: 42px; color: var(--navy); }
.sign small { color: var(--muted); }

.route-card { background: #fff; border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.route-card .map { height: 230px; border: 0; border-radius: 0; }
.route-list { padding: 14px 18px; display: grid; gap: 10px; font-size: .9rem; }
.route-list .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.route-list .who { display: flex; align-items: center; gap: 10px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 600; font-size: .8rem; background: var(--navy-2); }
.avatar.o { background: var(--orange); }

/* ---------- Para quién ---------- */
.audience { border-radius: 24px; padding: 34px; color: #fff; background: linear-gradient(160deg, var(--navy), var(--navy-2)); position: relative; overflow: hidden; }
.audience.warm { background: linear-gradient(160deg, #ff7a3d, var(--orange-2)); }
.audience h3 { color: #fff; font-size: 1.4rem; }
.audience p { color: rgba(255,255,255,.85); }
.audience ul { margin: 16px 0 0; padding-left: 1.1em; display: grid; gap: 6px; }
.audience .icon { background: rgba(255,255,255,.15); color: #fff; }

/* ---------- Pasos ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding: 26px 26px 26px 26px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step); display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 12px; background: var(--navy); color: #fff; font-weight: 700; margin-bottom: 14px;
}
.step p { color: var(--muted); margin: 0; }

/* ---------- Planes ---------- */
.plans { align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 30px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--orange); box-shadow: var(--shadow); position: relative; }
.plan .badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--orange); color: #fff; font-size: .78rem; font-weight: 700; padding: 4px 14px; border-radius: 999px; white-space: nowrap; }
.plan .for { color: var(--muted); font-size: .95rem; min-height: 3em; }
.price { font-size: 1.6rem; font-weight: 700; color: var(--navy); margin: 8px 0 2px; }
.price-note { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; font-size: .93rem; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 3px; color: #18794e; }
.plan li.no { color: #9aa3b8; }
.plan li.no svg { color: #c1c7d6; }
.plan .btn { width: 100%; }
.plans-foot { text-align: center; color: var(--muted); font-size: .92rem; margin-top: 28px; }

/* ---------- Preguntas ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 30px 18px 0; font-weight: 600; color: var(--navy); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--orange); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 6px; }

/* ---------- Contacto / CTA ---------- */
.cta-band { background: linear-gradient(140deg, var(--navy), var(--navy-3)); color: #fff; border-radius: 28px; padding: 56px 40px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; align-items: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c9d2e8; }
.contact-list { display: grid; gap: 12px; }
.contact-item { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 14px 16px; color: #fff; text-decoration: none; }
.contact-item:hover { background: rgba(255,255,255,.12); color: #fff; }
.contact-item svg { width: 22px; height: 22px; color: var(--orange); flex: 0 0 22px; }
.contact-item small { display: block; color: #b8c3de; font-size: .8rem; }
.contact-item span { word-break: break-word; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; padding: 40px 24px; } }

.store-badge {
  display: inline-flex; align-items: center; gap: 12px; background: #000; color: #fff; text-decoration: none;
  border-radius: 12px; padding: 9px 18px 9px 14px; border: 1px solid rgba(255,255,255,.25);
}
.store-badge:hover { color: #fff; background: #111; }
.store-badge svg { width: 26px; height: 26px; }
.store-badge small { display: block; font-size: .66rem; letter-spacing: .04em; text-transform: uppercase; color: #ccc; line-height: 1.1; }
.store-badge b { font-size: 1.12rem; font-weight: 600; line-height: 1.15; }

/* ---------- Pie ---------- */
.site-footer { background: var(--navy-3); color: #b8c3de; padding: 56px 0 28px; font-size: .92rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.site-footer h4 { color: #fff; margin: 0 0 12px; font-size: .95rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #b8c3de; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.foot-brand { display: inline-block; background: #fff; border-radius: 12px; padding: 8px 12px; margin-bottom: 14px; }
.foot-brand img { height: 28px; width: auto; }
.legal-line { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .85rem; }
@media (max-width: 800px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* ---------- Páginas legales ---------- */
.doc-hero { background: linear-gradient(160deg, var(--navy), var(--navy-3)); color: #fff; padding: 56px 0 44px; }
.doc-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.doc-hero p { color: #c9d2e8; margin: 0; }
.doc { display: grid; grid-template-columns: 240px 1fr; gap: 48px; padding-top: 48px; padding-bottom: 80px; }
.toc { position: sticky; top: 92px; align-self: start; font-size: .9rem; }
.toc b { display: block; color: var(--navy); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--orange-2); }
.prose { max-width: 760px; min-width: 0; }
.prose h2 { font-size: 1.45rem; margin-top: 2.2em; padding-top: .2em; scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.4em; font-size: .93rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--bg-soft); color: var(--navy); }
.note { background: var(--bg-warm); border-left: 4px solid var(--orange); border-radius: 10px; padding: 14px 18px; margin: 1.2em 0; }
.note.blue { background: #eef2fa; border-left-color: var(--navy-2); }
.steps-list { counter-reset: s; list-style: none; padding: 0 !important; }
.steps-list li { counter-increment: s; position: relative; padding-left: 46px; margin-bottom: 14px; }
.steps-list li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 9px; background: var(--navy); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .9rem; }
@media (max-width: 900px) {
  .doc { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; background: var(--bg-soft); border-radius: 14px; padding: 16px 18px; }
}

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 20px; }
.notfound p { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .feature { transition: none; }
}
.steps { margin-top: 48px; }
.prose code { background: var(--bg-soft); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
