/* Hutor Seguridad — estilos */
@font-face {
  font-family: 'Figtree';
  src: url('/assets/fonts/figtree.woff2') format('woff2');
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('/assets/fonts/schibsted-grotesk.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --ink: #12161C;
  --ink-2: #1C222A;
  --ink-line: #2C333C;
  --ground: #F5F4F0;
  --surface: #FFFFFF;
  --line: #E2E0DA;
  --line-strong: #CFCCC4;
  --text-2: #3D434C;
  --muted: #545B66;
  --muted-dark: #B4BAC3;
  --accent: #FF6A13;
  --accent-text: #C2410C;
  --accent-soft: #FFF1E6;
  --accent-soft-text: #7A3A0C;
  --accent-on-dark: #FF8A47;
  --ok: #1F9D55;
  --error: #B42318;
  --display: 'Schibsted Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body: 'Figtree', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--ground);
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

.wrap { max-width: 1200px; margin: 0 auto; }
.section { padding: 80px 20px; }
.section-tight { padding: 0 20px 80px; }
.h2 { font-weight: 800; font-size: clamp(28px, 3.4vw, 40px); }
.lead { color: var(--text-2); font-size: 18px; }
.stack { display: flex; flex-direction: column; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }

/* Segmento hogar/negocio y promoción: mostrar/ocultar */
html[data-seg="hogar"] .solo-negocio,
html[data-seg="negocio"] .solo-hogar { display: none !important; }
html.promo-off .solo-promo { display: none !important; }
html:not(.promo-off) .solo-sin-promo { display: none !important; }

/* Barra de promoción */
.promobar { background: var(--ink); color: var(--ground); padding: 10px 20px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 14px; font-size: 14px; text-align: center; }
.promobar a { color: #FFB685; font-weight: 600; }
.pill { background: var(--accent); color: var(--ink); font-weight: 700; padding: 2px 10px; border-radius: 999px; font-size: 12px; letter-spacing: 0.04em; }

/* Cabecera */
.header { background: var(--surface); border-bottom: 1px solid var(--line); padding: 14px 20px; position: sticky; top: 0; z-index: 20; }
.header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 40px; height: 40px; border-radius: 10px; background: var(--ink); display: flex; align-items: center; justify-content: center; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 18px; }
.brand-sub { font-size: 12px; color: var(--muted); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; font-weight: 600; font-size: 15px; }
.nav a { text-decoration: none; padding: 10px 0; }
.nav a[aria-current="page"] { color: var(--accent-text); }
@media (max-width: 720px) {
  .header { position: static; }
  .nav { order: 3; width: 100%; gap: 4px 18px; }
  .header .btn { padding: 10px 16px; }
}
@media (max-width: 480px) {
  .brand-sub { display: none; }
  .brand-name { font-size: 16px; }
  .brand-mark { width: 36px; height: 36px; }
  .header .btn { font-size: 14px; padding: 8px 12px; min-height: 44px; }
}

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: inherit; font-weight: 700; text-decoration: none; border: 0; border-radius: 12px; min-height: 48px; padding: 12px 22px; cursor: pointer; }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: #F25E08; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #262C35; }
.btn-lg { font-size: 17px; min-height: 54px; padding: 16px 26px; }
.btn[disabled] { opacity: 0.7; cursor: progress; }

/* Hero */
.hero { padding: 56px 20px 72px; }
.hero.dark { background: var(--ink); color: var(--ground); }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; padding-top: 12px; }
.badge { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.eyebrow { font-size: 14px; font-weight: 700; color: var(--accent-text); text-transform: uppercase; letter-spacing: 0.08em; }
.dark .eyebrow { color: var(--accent-on-dark); }
.h1 { font-weight: 800; font-size: clamp(36px, 5.4vw, 66px); line-height: 1.03; letter-spacing: -0.025em; }
.hero-sub { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); max-width: 560px; }
.dark .hero-sub { color: var(--muted-dark); }
.pricebox { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 24px; align-self: flex-start; }
.dark .pricebox { background: var(--ink-2); border-color: var(--ink-2); }
.pricebox-label { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.dark .pricebox-label, .dark .pricebox-note { color: var(--muted-dark); }
.price { font-family: var(--display); font-weight: 800; font-size: 48px; line-height: 1; }
.price small { font-size: 20px; font-weight: 600; }
.pricebox-note { font-size: 13px; color: var(--muted); max-width: 280px; }
.checks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 600; font-size: 15px; }
.checks li { display: flex; align-items: center; gap: 8px; }
/* Móvil y tablet: el formulario va primero, la oferta debajo */
@media (max-width: 987px) {
  .hero { padding-top: 24px; }
  .hero .wrap { flex-direction: column; align-items: stretch; gap: 36px; }
  .hero .form { order: -1; max-width: 560px; width: 100%; margin: 0 auto; }
  .hero-copy { flex-basis: auto; padding-top: 0; }
}
.gift { display: flex; align-items: center; gap: 12px; background: var(--accent); color: var(--ink); border-radius: 14px; padding: 14px 18px; font-weight: 700; font-size: 17px; align-self: flex-start; }

/* Formulario */
.form { flex: 1 1 380px; min-width: 0; max-width: 460px; background: var(--surface); color: var(--ink); border-radius: 20px; padding: 28px; box-shadow: 0 1px 2px rgba(18,22,28,0.06), 0 12px 40px rgba(18,22,28,0.10); display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 480px) { .form { padding: 22px 18px; } }
.form-title { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; }
.form-sub { font-size: 14px; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field input, .field select { font: inherit; font-weight: 400; font-size: 16px; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: 10px; min-height: 48px; background: var(--surface); color: var(--ink); width: 100%; }
.field input:focus, .field select:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(255,106,19,0.35); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: 13px; font-weight: 600; min-height: 0; }
.field-error:empty { display: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-2); font-weight: 400; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }
.check a { color: var(--ink); font-weight: 600; }
.seg { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.seg legend { font-size: 14px; font-weight: 600; padding: 0; margin-bottom: 8px; }
.seg-toggle { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; background: var(--ground); padding: 4px; border-radius: 12px; }
.seg-toggle.on-ground { background: #E8E6E0; }
.seg-btn { font: inherit; font-weight: 600; font-size: 15px; border: 0; border-radius: 9px; min-height: 44px; cursor: pointer; background: transparent; color: var(--text-2); }
.seg-btn[aria-pressed="true"] { background: var(--ink); color: #fff; font-weight: 700; }
.form-legal { font-size: 12px; color: var(--muted); }
.form-alert { border-radius: 10px; padding: 12px 14px; font-size: 14px; font-weight: 600; background: #FDECEA; color: var(--error); }
.form-alert:empty { display: none; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* Tarjetas */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.card-link { text-decoration: none; color: var(--ink); padding: 28px 28px 30px; display: flex; flex-direction: column; gap: 10px; transition: border-color .15s, transform .15s; }
.card-link:hover { border-color: var(--ink); transform: translateY(-2px); }
.card-title { font-family: var(--display); font-weight: 800; font-size: 26px; }
.card-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent-text); margin-top: 6px; }
.mini { padding: 22px; display: flex; flex-direction: column; gap: 8px; border-radius: 18px; }
.mini-title { font-family: var(--display); font-weight: 700; font-size: 21px; }
.mini p { color: var(--text-2); font-size: 15px; }

/* Beneficios (oscuro) */
.dark-band { background: var(--ink); color: var(--ground); }
.dark-band .lead { color: var(--muted-dark); }
.benefit { background: var(--ink-2); border-radius: 16px; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.benefit-title { font-family: var(--display); font-weight: 700; font-size: 20px; }
.benefit p { color: var(--muted-dark); font-size: 15px; }

/* Paquetes */
.packs-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.packs-head .seg-toggle { min-width: 260px; }
.pack { border-radius: 20px; padding: 30px; display: flex; flex-direction: column; gap: 20px; }
.pack-light { background: var(--surface); border: 1px solid var(--line); }
.on-white .pack-light { background: var(--ground); }
.pack-dark { background: var(--ink); color: var(--ground); border: 1px solid var(--ink); }
.pack-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pack-name { font-family: var(--display); font-weight: 800; font-size: 26px; white-space: nowrap; }
.pack-tag { background: var(--accent); color: var(--ink); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pack-price { font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1; }
.pack-price small { font-size: 18px; font-weight: 600; }
.pack-meta { font-size: 14px; color: var(--muted); }
.pack-dark .pack-meta { color: var(--muted-dark); }
.pack-gift { display: flex; align-items: center; gap: 10px; background: var(--accent-soft); color: var(--accent-soft-text); border-radius: 12px; padding: 12px 14px; font-weight: 700; font-size: 15px; }
.pack-dark .pack-gift { background: var(--accent); color: var(--ink); }
.pack-list { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 9px; font-size: 15px; }
.pack-dark .pack-list { border-color: var(--ink-line); }
.pack-list li { display: flex; gap: 10px; align-items: flex-start; }
.pack-list li svg { flex: none; margin-top: 3px; }
.pack-list .extra { color: var(--accent-on-dark); font-weight: 700; }
.pack .btn { margin-top: auto; }
.fineprint { font-size: 13px; color: var(--muted); max-width: 900px; }
.simple { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; border: 1px solid var(--line); border-radius: 16px; padding: 20px 24px; }

/* Pasos */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 28px; }
.step { display: flex; flex-direction: column; gap: 10px; }
.step-num { font-family: var(--display); font-weight: 800; font-size: 20px; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.step-title { font-weight: 700; font-size: 19px; }
.step p { color: var(--text-2); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; gap: 36px; }
.step-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.step-card .n { font-family: var(--display); font-weight: 800; color: var(--accent-text); }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; }
.faq summary { font-weight: 700; font-size: 17px; cursor: pointer; list-style-position: outside; }
.faq details p { margin-top: 12px; color: var(--text-2); }

/* CTA final */
.cta { background: var(--accent); border-radius: 28px; padding: clamp(32px, 5vw, 64px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta h2 { font-weight: 800; font-size: clamp(30px, 3.8vw, 46px); line-height: 1.05; color: var(--ink); max-width: 620px; }
.cta p { font-size: 18px; color: var(--ink); margin-top: 10px; }

/* Pie */
.footer { background: var(--ink); color: var(--muted-dark); padding: 48px 20px; font-size: 14px; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer-brand { font-family: var(--display); font-weight: 800; font-size: 18px; color: var(--ground); }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: flex-start; }
.footer nav a { color: var(--ground); }

/* Páginas de texto (legales, gracias) */
.doc { max-width: 780px; margin: 0 auto; padding: 56px 20px 80px; }
.doc h1 { font-size: clamp(32px, 4vw, 44px); font-weight: 800; margin-bottom: 8px; }
.doc h2 { font-size: 22px; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--text-2); margin: 0 0 12px; }
.doc ul { padding-left: 20px; }
.doc .updated { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.thanks { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.thanks-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--ink); display: flex; align-items: center; justify-content: center; }
