/* Shania Webstudio · hoja de estilo única
   Móvil primero. Oscuro por defecto (azul noche) y claro si el sistema lo pide.
   Cian → azul para la marca; violeta solo para lo de IA; ámbar, muy poco. */

/* Outfit servida desde la propia web (SIL OFL 1.1, ver /fonts/OFL.txt): sin llamadas a Google Fonts. Variable, pesos 300-600. */
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 300 600; font-display: swap; src: url(/fonts/outfit-normal-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 300 600; font-display: swap; src: url(/fonts/outfit-normal-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Respaldo con las medidas de Outfit (CLS): mientras llega la fuente, Arial ajustada ocupa lo mismo
   y el texto no salta al cambiar. Medido en Chrome: Outfit 400 = 98 % del ancho de Arial; 600 = 94 % de Arial Bold;
   ascendente 1,00 y descendente 0,26 em. */
@font-face { font-family: 'Outfit Fallback'; font-weight: 100 500; src: local('Arial'), local('ArialMT'), local('Arimo'), local('Liberation Sans'), local('Roboto'); size-adjust: 98%; ascent-override: 102%; descent-override: 26.5%; line-gap-override: 0%; }
@font-face { font-family: 'Outfit Fallback'; font-weight: 600 900; src: local('Arial Bold'), local('Arial-BoldMT'), local('Arimo Bold'), local('Liberation Sans Bold'), local('Roboto Bold'); size-adjust: 94%; ascent-override: 106%; descent-override: 27.5%; line-gap-override: 0%; }

:root {
  --bg: #05080F;
  --bg-2: #0A1020;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-solid: #0C1426;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --ink: #EAF0FA;
  --muted: #A3B0C6;
  --faint: #6F7D96;
  --cyan: #22D3EE;
  --blue: #2F6BFF;
  --violet: #8B5CF6;
  --amber: #FFB547;
  --accent: #22D3EE;
  --grad: linear-gradient(90deg, #22D3EE, #2F6BFF);
  --grad-ia: linear-gradient(90deg, #8B5CF6, #2F6BFF);
  --radius: 18px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  color-scheme: dark light;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #F6F8FC;
    --bg-2: #EDF2FA;
    --panel: #FFFFFF;
    --panel-solid: #FFFFFF;
    --line: rgba(10, 20, 40, 0.10);
    --line-strong: rgba(10, 20, 40, 0.20);
    --ink: #0B1324;
    --muted: #46536B;
    --faint: #5E6A82;
    --accent: #0B7489;
    /* Contraste en claro: el violeta y el ámbar del oscuro no llegan sobre blanco
       (#8B5CF6 4,23:1 y #FFB547 1,76:1). «.chispa» lleva texto («Prueba:»), así que
       el ámbar se oscurece hasta 5,4:1 en vez de quedarse de adorno. */
    --violet: #6D3FE0;
    --amber: #9A5B00;
    --shadow: 0 8px 30px rgba(10, 20, 40, 0.08);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Outfit", "Outfit Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 300;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 7vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 4.5vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.salto { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--bg); padding: .6em 1em; z-index: 100; }
.salto:focus { left: 16px; top: 16px; }

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

/* ---------- Barra de la familia Shania ---------- */
.familia { border-bottom: 1px solid var(--line); font-size: .78rem; color: var(--faint); }
.familia .contenedor { display: flex; gap: .4em; flex-wrap: wrap; justify-content: center; padding-top: .45em; padding-bottom: .45em; }
.familia a { color: var(--muted); text-decoration: none; }
.familia a:hover { color: var(--ink); }
.familia a[aria-current] { color: var(--ink); font-weight: 500; }

/* ---------- Cabecera ---------- */
.cabecera { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.cabecera .contenedor { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo svg { height: 30px; width: auto; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; padding: .5em .8em; border: 1px solid var(--line-strong); border-radius: 10px; font-size: .9rem; color: var(--ink); }
.menu summary::-webkit-details-marker { display: none; }
.menu ul { list-style: none; margin: 0; padding: .5em; position: absolute; right: 0; top: calc(100% + 8px); background: var(--panel-solid); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); min-width: 230px; }
.menu li a { display: block; padding: .6em .8em; color: var(--ink); text-decoration: none; border-radius: 8px; }
.menu li a:hover, .menu li a[aria-current] { background: var(--panel); color: var(--accent); }
@media (min-width: 960px) {
  .menu summary { display: none; }
  .menu ul { position: static; display: flex !important; gap: 2px; background: none; border: 0; box-shadow: none; padding: 0; min-width: 0; }
  .menu li a { padding: .45em .7em; font-size: .95rem; color: var(--muted); }
  .menu li a.boton-menu { background: var(--grad); color: #05080F; font-weight: 600; margin-left: 6px; }
}
@media (max-width: 959px) { .menu:not([open]) ul { display: none; } }

/* ---------- Migas ---------- */
.migas { font-size: .82rem; color: var(--faint); padding-top: 1.4em; }
.migas ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4em; margin: 0; padding: 0; }
.migas li + li::before { content: "/"; margin-right: .4em; color: var(--line-strong); }
.migas a { color: var(--muted); text-decoration: none; }

/* ---------- Bloques ---------- */
main { display: block; }
.seccion { padding: 56px 0; }
.seccion + .seccion { border-top: 1px solid var(--line); }
@media (min-width: 720px) { .seccion { padding: 80px 0; } }
.hero { padding: 48px 0 56px; position: relative; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 80% 0%, rgba(47,107,255,.22), transparent 70%), radial-gradient(50% 50% at 0% 30%, rgba(34,211,238,.14), transparent 70%); pointer-events: none; z-index: -1; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 46em; }
.eyebrow { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); font-weight: 500; margin-bottom: .9em; }
.eyebrow.ia { color: var(--violet); }
.degradado { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.degradado-ia { background: var(--grad-ia); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 48em; }
.nota { font-size: .85rem; color: var(--faint); }
.texto { max-width: 46em; }
.texto ul, .texto ol { padding-left: 1.2em; }
.texto li { margin-bottom: .4em; }

.rejilla { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .rejilla.dos, .rejilla.tres, .rejilla.cuatro { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .rejilla.tres { grid-template-columns: repeat(3, 1fr); } .rejilla.cuatro { grid-template-columns: repeat(4, 1fr); } }

.tarjeta { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.tarjeta h3 { margin-bottom: .4em; }
.tarjeta p:last-child { margin-bottom: 0; }
.tarjeta ul { padding-left: 1.1em; margin: .6em 0 0; color: var(--muted); font-size: .95rem; }
.tarjeta .etiqueta { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); margin-bottom: .6em; display: block; }
.tarjeta.ia { border-color: rgba(139, 92, 246, .45); background: linear-gradient(160deg, rgba(139,92,246,.12), transparent 60%), var(--panel); }
.tarjeta.crm { border-color: rgba(34, 211, 238, .4); background: linear-gradient(160deg, rgba(34,211,238,.10), transparent 60%), var(--panel); }
.tarjeta.destacada { border-color: var(--cyan); }

.cifra { font-size: 2.2rem; font-weight: 600; line-height: 1; margin-bottom: .3em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cifra-texto { font-size: .95rem; }
.cifra-nota { font-size: .8rem; color: var(--faint); }

.boton { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .85em 1.4em; border-radius: 12px; font-weight: 600; text-decoration: none; font-size: 1rem; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.boton.principal { background: var(--grad); color: #05080F; }
.boton.secundario { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.boton.ia { background: var(--grad-ia); color: #fff; }
.boton:hover { filter: brightness(1.08); }
.botones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }

.chispa { color: var(--amber); }

figure { margin: 0; }
figure.captura { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
figure.captura figcaption { font-size: .82rem; color: var(--faint); padding: .7em 1em; border-top: 1px solid var(--line); }

table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: .7em .6em; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 500; color: var(--faint); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.tabla-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); }
.tabla-scroll table { min-width: 640px; }
td.num { text-align: right; font-variant-numeric: tabular-nums; color: var(--accent); white-space: nowrap; }

.pasos { counter-reset: paso; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.pasos li { counter-increment: paso; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px 16px 60px; position: relative; }
.pasos li::before { content: counter(paso, decimal-leading-zero); position: absolute; left: 18px; top: 15px; font-weight: 600; color: var(--accent); }

details.pregunta { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); margin-bottom: 10px; }
details.pregunta summary { cursor: pointer; padding: 16px 18px; font-weight: 500; list-style: none; }
details.pregunta summary::-webkit-details-marker { display: none; }
details.pregunta summary::after { content: "+"; float: right; color: var(--accent); font-weight: 600; }
details.pregunta[open] summary::after { content: "–"; }
details.pregunta > div { padding: 0 18px 16px; color: var(--muted); }

/* Barras (gráficos del artículo, sin imágenes) */
.barras { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; align-items: end; height: 200px; margin: 1em 0 .4em; }
.barra { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; font-size: .8rem; }
.barra span.valor { font-weight: 600; margin-bottom: 4px; }
.barra span.relleno { width: 100%; border-radius: 8px 8px 0 0; background: var(--grad); }
.barra.parcial span.relleno { opacity: .5; }
.barra.ia span.relleno { background: var(--grad-ia); }
.barra span.mes { margin-top: 6px; color: var(--faint); }
.horiz { display: grid; gap: 10px; margin: 1em 0; }
.horiz div { display: grid; grid-template-columns: 9em 1fr 3em; gap: 10px; align-items: center; font-size: .9rem; }
.horiz i { display: block; height: 14px; border-radius: 7px; background: var(--line-strong); }
.horiz .destacado i { background: var(--grad); }
.horiz b { text-align: right; }

/* Formulario */
form.formulario { display: grid; gap: 16px; }
form.formulario label { display: grid; gap: 6px; font-size: .9rem; color: var(--muted); font-weight: 400; }
form.formulario input, form.formulario select, form.formulario textarea { font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: 10px; padding: .75em .9em; width: 100%; }
form.formulario textarea { resize: vertical; min-height: 120px; }
form.formulario .casilla { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; }
form.formulario .casilla input { width: auto; margin-top: .3em; accent-color: #22D3EE; }
.trampa { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.aviso-form { border-radius: 12px; padding: 14px 16px; border: 1px solid var(--line-strong); background: var(--panel); }
.aviso-form.error { border-color: var(--amber); }

/* Pie */
.pie { border-top: 1px solid var(--line); padding: 48px 0 32px; margin-top: 40px; font-size: .92rem; color: var(--muted); }
.pie .columnas { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .pie .columnas { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.pie h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); font-weight: 500; margin-bottom: .8em; }
.pie ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35em; }
.pie a { color: var(--muted); text-decoration: none; }
.pie a:hover { color: var(--ink); text-decoration: underline; }
.pie .final { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--faint); display: flex; flex-wrap: wrap; gap: .4em 1.2em; justify-content: space-between; }

.solo-lectores { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Resaltado de los enlaces de Google a un párrafo (#:~:text=): con el cian de la marca, no el violeta de Chrome */
::target-text{background:rgba(34,211,238,.22);color:inherit}
