/* IODocs — sitio promocional
   Paleta: naranja/rojo de marca, azul de acento, gris grafito. Tema claro/oscuro por [data-theme] en <html>. */

:root {
  --bg: #FFFFFF; --bg2: #F4F5F7; --surface: #FFFFFF; --text: #1C1F24; --muted: #565D67; --line: #E2E5EA;
  --brand: #D9441F; --brand-soft: #FDEEE8; --btn-fg: #FFFFFF;
  --btn-grad: linear-gradient(135deg, #CF1F2E 0%, #E5702B 100%);
  --blue: #1D5FD1; --blue-soft: #E9F0FC; --gray: #2B3038;
  --ph1: #ECEEF1; --ph2: #E4E7EB; --ok: #1E7A4C; --ok-soft: #E5F4EC; --err: #B42318;
  --shadow: 0 18px 40px -18px rgba(28,31,36,.28);
  --bits: rgba(29,95,209,.09); --bits2: rgba(201,61,28,.10); --dot: rgba(28,31,36,.075);
  --display: 'Sora', system-ui, sans-serif; --body: 'DM Sans', system-ui, sans-serif; --mono: 'IBM Plex Mono', ui-monospace, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #111317; --bg2: #171A1F; --surface: #1D2128; --text: #EEF0F3; --muted: #A6ADB8; --line: #2D323A;
  --brand: #FF8A5C; --brand-soft: #33201A; --btn-fg: #1A0E08;
  --btn-grad: linear-gradient(135deg, #FF5B57 0%, #FFB45C 100%);
  --blue: #7AAAFF; --blue-soft: #18243A; --gray: #0B0D10;
  --ph1: #1F232A; --ph2: #23282F; --ok: #5BD08F; --ok-soft: #14291E; --err: #FF8A80;
  --shadow: 0 18px 40px -18px rgba(0,0,0,.7);
  --bits: rgba(122,170,255,.075); --bits2: rgba(255,138,92,.09); --dot: rgba(255,255,255,.05);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--display); margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

/* Logos según tema */
.logo-dark { display: none; }
[data-theme="dark"] .logo-dark { display: block; }
[data-theme="dark"] .logo-light { display: none; }

/* ===== Header ===== */
.header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.header__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 12px; padding-bottom: 12px; }
.header__logo img { height: 34px; width: auto; }
.nav { display: flex; gap: 24px; align-items: center; }
.nav a { color: var(--text); font-weight: 500; font-size: 15px; padding: 10px 4px; }
.nav a:hover { color: var(--brand); text-decoration: none; }
.header__tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.seg-group { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--bg2); border: 1px solid var(--line); }
.seg { border: 0; background: transparent; color: var(--muted); min-width: 40px; height: 36px; border-radius: 999px; cursor: pointer; font: 600 13px var(--body); display: flex; align-items: center; justify-content: center; padding: 0 10px; }
.seg:hover { color: var(--text); }
.seg[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.icon-btn.menu-btn { display: none; }

@media (max-width: 860px) {
  .nav { display: none; order: 10; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0; border-top: 1px solid var(--line); }
  .header.is-open .nav { display: flex; }
  .nav a { padding: 12px 4px; }
  .header__logo { order: 0; margin-right: auto; }
  .header__tools { display: contents; }
  .btn.header__cta { order: 1; }
  .icon-btn.menu-btn { display: flex; order: 2; }
  .header .seg-group { display: none; order: 11; }
  .header.is-open .seg-group { display: flex; margin-bottom: 8px; }
}

/* ===== Botones ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 12px; font: 700 15px var(--body); cursor: pointer; border: 0; background: var(--btn-grad); color: var(--btn-fg); text-shadow: 0 1px 1px rgba(0,0,0,.22); transition: filter .15s, transform .15s; }
[data-theme="dark"] .btn { text-shadow: none; }
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .65; cursor: wait; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn--ghost { background: transparent; color: var(--text); border: 1.5px solid var(--line); text-shadow: none; }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); filter: none; }
.icon-btn { width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.icon-btn:hover { border-color: var(--blue); color: var(--blue); }

/* ===== Fondo digital (binario y puntos) ===== */
.bits { position: absolute; inset: 0; pointer-events: none; overflow: hidden; font: 400 11px/22px var(--mono); letter-spacing: .2em; color: var(--bits); white-space: pre; user-select: none; }
.bits--r { -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 85%); mask-image: linear-gradient(90deg, transparent 30%, #000 85%); }
.bits--l { -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 50%); mask-image: linear-gradient(90deg, #000 0%, transparent 50%); }
.bits__in { animation: drift 120s linear infinite; }
.bits .hl { color: var(--bits2); }
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@media (prefers-reduced-motion: reduce) { .bits__in { animation: none; } html { scroll-behavior: auto; } }
.dots { background-image: radial-gradient(var(--dot) 1px, transparent 1.3px); background-size: 22px 22px; }

/* ===== Hero / carrusel ===== */
.hero { background: var(--bg2); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.hero__inner { position: relative; z-index: 1; padding-top: 56px; padding-bottom: 40px; }
.stack { display: grid; }
.slide { grid-area: 1 / 1; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; transition: opacity .45s ease, visibility .45s; }
.slide[aria-hidden="true"] { opacity: 0; visibility: hidden; pointer-events: none; }
.slide__text { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.slide__visual { flex: 1 1 420px; min-width: 0; position: relative; }
.kicker { font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.slide__eyebrow { display: flex; align-items: center; gap: 10px; }
.slide__num { font: 800 13px var(--display); color: var(--btn-fg); background: var(--btn-grad); width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.slide h1, .slide h2.slide__title { font-weight: 800; font-size: clamp(34px, 4.6vw, 56px); line-height: 1.08; letter-spacing: -0.02em; }
.slide__lead { font-size: 18px; color: var(--muted); max-width: 540px; }
.checks { display: flex; flex-direction: column; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.checks svg { color: var(--blue); flex-shrink: 0; margin-top: 2px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.carousel__controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.dots-nav { display: flex; gap: 8px; align-items: center; }
.dot { width: 12px; height: 12px; border-radius: 999px; border: 0; padding: 0; background: var(--line); cursor: pointer; transition: width .25s, background .25s; }
.dot[aria-selected="true"] { width: 32px; background: var(--brand); }
.arrows { display: flex; gap: 10px; }

/* Foto con marcador (si falta la imagen, se ve el marcador) */
.photo { position: relative; overflow: hidden; background: repeating-linear-gradient(135deg, var(--ph1) 0 14px, var(--ph2) 14px 28px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); text-align: center; padding: 16px; }
.photo__cap { font-size: 13px; font-weight: 600; max-width: 300px; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo--hero { border-radius: 20px; height: 440px; }

/* Tarjetas flotantes del carrusel */
.float-card { position: absolute; left: -12px; bottom: 0; width: 310px; max-width: 88%; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.float-card__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.float-card__title { font: 700 14px var(--display); display: flex; align-items: center; gap: 10px; }
.row { display: flex; justify-content: space-between; font-size: 14px; gap: 12px; }
.row--top { border-top: 1px solid var(--line); padding-top: 10px; }
.row--total { font: 700 16px var(--display); }
.muted { color: var(--muted); }
.pill-ok { font-size: 12px; font-weight: 700; color: var(--ok); background: var(--ok-soft); padding: 4px 10px; border-radius: 999px; }
.ok { color: var(--ok); font-weight: 600; }
.ico { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ico--blue { background: var(--blue-soft); color: var(--blue); }
.ico--ok { background: var(--ok-soft); color: var(--ok); }
.tpl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; font-size: 13px; }
.tpl-fixed { background: var(--bg2); border-radius: 8px; padding: 8px 10px; }
.tpl-var { border: 1.5px dashed var(--brand); border-radius: 8px; padding: 8px 10px; }
.tpl-var strong { color: var(--brand); }
.sched { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--blue); background: var(--blue-soft); padding: 8px 10px; border-radius: 8px; }

/* ===== Franja de comprobantes ===== */
.strip { background: var(--gray); color: #D5D9DF; }
.strip__row { padding-top: 22px; padding-bottom: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; justify-content: center; font-size: 14px; }
.strip__title { font: 700 14px var(--display); color: #FFB08F; }
.strip li { display: flex; align-items: center; gap: 8px; }
.strip li::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: #7AAAFF; }
.strip ul { display: contents; }

/* ===== Secciones ===== */
.section { padding-top: 96px; padding-bottom: 96px; }
.section--alt { background-color: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { max-width: 640px; margin-bottom: 48px; display: flex; flex-direction: column; gap: 12px; }
.section__head--center { text-align: center; margin-left: auto; margin-right: auto; }
.h2 { font-weight: 800; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; letter-spacing: -0.02em; }
.lead { color: var(--muted); font-size: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.step { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.step__n { font: 800 15px var(--display); color: var(--blue); background: var(--blue-soft); width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.step h3, .who-card h3 { font-size: 19px; font-weight: 700; }
.step p, .who-card p { color: var(--muted); }

.who-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 44px; }
.who-head .section__head { margin-bottom: 0; }
.limit { display: flex; align-items: center; gap: 12px; background: var(--brand-soft); border-radius: 14px; padding: 14px 18px; max-width: 360px; font-size: 14px; font-weight: 600; }
.limit strong { font: 800 30px var(--display); color: var(--brand); }
.who-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.who-card { overflow: hidden; display: flex; flex-direction: column; }
.who-card .photo { height: 190px; }
.who-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; }

/* ===== Precios ===== */
.plans { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; align-items: stretch; }
.plan { flex: 1 1 320px; max-width: 440px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 22px; padding: 34px; display: flex; flex-direction: column; gap: 18px; position: relative; }
.plan--featured { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.plan__badge { position: absolute; top: -15px; left: 34px; background: var(--btn-grad); color: var(--btn-fg); font-weight: 700; font-size: 13px; padding: 6px 14px; border-radius: 999px; }
.plan__name { font: 700 20px var(--display); }
.plan__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.plan__amount { font: 800 52px var(--display); letter-spacing: -0.03em; }
.plan__per { color: var(--muted); font-weight: 600; }
.plan__tax { color: var(--muted); font-size: 14px; }
.plan .checks { flex-grow: 1; gap: 10px; }
.plan .checks li { font-weight: 400; font-size: 15px; }
.plan--featured .checks svg { color: var(--brand); }
.referral { max-width: 904px; margin: 28px auto 0; display: flex; align-items: center; gap: 14px; background: var(--blue-soft); border-radius: 16px; padding: 18px 22px; font-size: 15px; }
.referral .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--surface); color: var(--blue); }

/* ===== Contacto ===== */
.contact { background: var(--bg2); border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.contact__inner { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.contact__info { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.contact__info .photo { border-radius: 18px; height: 240px; margin-top: 8px; }
.contact__box { flex: 1 1 440px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 32px; box-shadow: var(--shadow); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form__field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form__field--full { grid-column: 1 / -1; }
.form label { font-weight: 600; font-size: 14px; }
.field { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg); color: var(--text); font: 400 15px var(--body); }
.field:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.field[aria-invalid="true"] { border-color: var(--err); }
textarea.field { resize: vertical; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.form__note { font-size: 13px; color: var(--muted); }
.form__error { grid-column: 1 / -1; color: var(--err); font-weight: 600; font-size: 14px; min-height: 0; }
.form__error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.thanks { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 48px 8px; }
.thanks[hidden], .form[hidden] { display: none; }
.thanks__ico { width: 56px; height: 56px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); display: flex; align-items: center; justify-content: center; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } .contact__box { padding: 22px; } .plan { padding: 26px; } }

/* ===== Footer ===== */
.footer { background: var(--gray); color: #D5D9DF; }
.footer__top { padding-top: 48px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; }
.footer__brand { display: flex; flex-direction: column; gap: 14px; max-width: 380px; }
.footer__brand img { height: 32px; width: auto; align-self: flex-start; object-fit: contain; }
.footer__brand p, .footer__bottom { color: #AEB4BE; font-size: 15px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.footer nav a { color: #D5D9DF; }
.footer__key { padding-bottom: 14px; font: 400 11px var(--mono); letter-spacing: .24em; color: rgba(255,255,255,.13); white-space: nowrap; overflow: hidden; }
.footer__bottom { padding-top: 18px; padding-bottom: 28px; border-top: 1px solid #333943; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 14px; }
.footer__bottom strong { color: #FFB08F; }
