/* PartSerial — hoja de estilos principal */
:root {
  --ink: #0e1a2b;
  --ink-2: #33415a;
  --muted: #5d6b82;
  --line: #dfe4ec;
  --bg: #ffffff;
  --bg-soft: #f4f6f9;
  --navy: #0b1626;
  --navy-2: #13233a;
  --accent: #ff6a13;
  --accent-dark: #e05200;
  --ok: #1f9d63;
  --radius: 10px;
  --max: 1160px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent-dark); }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 28px; } }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 22, 38, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; }
.logo:hover { color: #fff; }
.logo b { color: var(--accent); font-weight: 700; }
.logo svg { width: 32px; height: 32px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: #c9d3e3; text-decoration: none; font-size: .95rem; padding: 8px 12px; border-radius: 6px; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.06); }
.nav .btn { margin-left: 8px; color: #fff; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.nav-toggle svg { width: 28px; height: 28px; }
@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); padding: 8px 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; font-size: 1rem; }
  .nav .btn { margin: 10px 0 0; text-align: center; }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 14px 22px; border-radius: 8px; border: 2px solid var(--accent);
  cursor: pointer; transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-sm { padding: 10px 16px; font-size: .92rem; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(255,106,19,.16), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff; padding: 72px 0 84px; position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 40px 40px; pointer-events: none;
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
@media (max-width: 920px) { .hero .container { grid-template-columns: 1fr; } .hero-art { max-width: 420px; } }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: 1.18rem; color: #c9d3e3; max-width: 38em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 32px; }
.hero-ticks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; color: #dbe3ef; font-size: .97rem; }
@media (max-width: 520px) { .hero-ticks { grid-template-columns: 1fr; } }
.hero-ticks li { display: flex; gap: 10px; align-items: flex-start; }
.hero-ticks li::before { content: ""; flex: 0 0 18px; height: 18px; margin-top: 4px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat; }

/* Cabecera de páginas internas */
.page-hero { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 56px 0 60px; }
.page-hero h1 { color: #fff; max-width: 22em; }
.page-hero .lead { color: #c9d3e3; font-size: 1.15rem; max-width: 42em; }
.breadcrumbs { font-size: .85rem; color: #8fa0bb; margin-bottom: 18px; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; }
.breadcrumbs a { color: #c9d3e3; text-decoration: none; }
.breadcrumbs a:hover { color: #fff; }

/* ---------- Secciones ---------- */
section { padding: 84px 0; }
@media (max-width: 720px) { section { padding: 60px 0; } }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--navy); color: #dbe3ef; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section-dark .section-head p { color: #a9b6ca; }

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

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.card:hover { border-color: #c4ccd8; box-shadow: 0 10px 30px rgba(14,26,43,.07); }
.card p { color: var(--ink-2); margin: 0; font-size: .98rem; }
.card .icon {
  width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,106,19,.1); color: var(--accent-dark); margin-bottom: 16px;
}
.card .icon svg { width: 24px; height: 24px; }
a.card { text-decoration: none; color: inherit; display: block; }
a.card:hover { transform: translateY(-2px); }
.card .more { display: inline-block; margin-top: 14px; font-weight: 600; color: var(--accent-dark); font-size: .95rem; }
.section-dark .card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.section-dark .card p { color: #b6c2d4; }
.section-dark .card h3 { color: #fff; }

/* Tabla comparativa */
.compare { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); font-size: .98rem; }
.compare th, .compare td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--ink); color: #fff; font-family: var(--font-head); font-weight: 600; }
.compare thead th.hl { background: var(--accent); }
.compare td.hl { background: rgba(255,106,19,.06); font-weight: 600; }
.compare tbody th { font-weight: 600; color: var(--ink); width: 30%; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.note { font-size: .85rem; color: var(--muted); margin-top: 12px; }

/* Proceso */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; position: relative; padding: 24px 20px; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.steps li::before {
  content: counter(step, decimal-leading-zero); display: block;
  font-family: var(--font-head); font-weight: 700; font-size: 1.8rem; color: var(--accent); margin-bottom: 8px;
}
.steps h3 { font-size: 1.05rem; margin-bottom: 6px; }
.steps p { font-size: .93rem; color: #a9b6ca; margin: 0; }

/* Materiales */
.mat { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; }
.mat h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.mat h3 small { font-family: var(--font); font-size: .78rem; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.mat p { font-size: .95rem; color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tags li { font-size: .78rem; padding: 4px 10px; border-radius: 99px; background: var(--bg-soft); color: var(--ink-2); border: 1px solid var(--line); }

/* Texto largo (landings SEO) */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
.prose h3 { margin-top: 1.4em; }
.prose ul li { margin-bottom: .4em; }
.layout-aside { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
@media (max-width: 980px) { .layout-aside { grid-template-columns: 1fr; } }
.aside-box { position: sticky; top: 92px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.aside-box h3 { font-size: 1.15rem; }
.aside-box p { font-size: .95rem; color: var(--ink-2); }
.aside-box .btn { width: 100%; }
.aside-links { list-style: none; padding: 0; margin: 20px 0 0; border-top: 1px solid var(--line); padding-top: 16px; font-size: .95rem; }
.aside-links li { margin-bottom: 8px; }

.callout { border-left: 4px solid var(--accent); background: rgba(255,106,19,.06); padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5em 0; }
.callout p:last-child { margin: 0; }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
  font-family: var(--font-head); font-weight: 600; font-size: 1.1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 1.6rem; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 20px; color: var(--ink-2); }

/* CTA final */
.cta-band { background: linear-gradient(120deg, var(--accent) 0%, #ff8a3d 100%); color: #fff; padding: 64px 0; }
.cta-band .container { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { margin: 0; font-size: 1.1rem; color: #fff3ea; }
.cta-band .btn { background: var(--navy); border-color: var(--navy); }
.cta-band .btn:hover { background: #000; border-color: #000; }

/* Formulario */
.quote { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
@media (max-width: 920px) { .quote { grid-template-columns: 1fr; } }
.quote-info ul { list-style: none; padding: 0; }
.quote-info li { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); display: flex; gap: 12px; }
.quote-info li strong { color: #fff; }
.form { background: #fff; color: var(--ink); border-radius: 14px; padding: 32px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
@media (max-width: 520px) { .form { padding: 22px; } }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field label .req { color: var(--accent-dark); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,106,19,.15); }
.form .hint { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--ink-2); margin: 6px 0 20px; }
.check input { margin-top: 4px; width: 18px; height: 18px; flex: 0 0 18px; accent-color: var(--accent); }
.form .btn { width: 100%; padding: 16px; font-size: 1.05rem; }
.form-status { margin-top: 14px; font-size: .95rem; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: #c0392b; }
.hp { position: absolute !important; left: -9999px !important; }

/* Pie */
.site-footer { background: #070f1b; color: #8fa0bb; padding: 60px 0 28px; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #b6c2d4; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; }

/* Utilidades */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 2rem; }
.lead-dark { color: var(--muted); font-size: 1.1rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 920px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.checklist { list-style: none; padding: 0; }
.checklist li { padding-left: 30px; position: relative; margin-bottom: 12px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat; }
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 820px) { .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.stat strong { display: block; font-family: var(--font-head); font-size: 2rem; color: var(--ink); line-height: 1.1; }
.stat span { font-size: .92rem; color: var(--muted); }
.legal h2 { font-size: 1.4rem; margin-top: 1.8em; }
.placeholder { background: #fff3cd; padding: 0 4px; border-radius: 3px; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
