/* Outfit servida desde la propia web (licencia OFL): sin conexión a Google Fonts */
@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; }
/* Shania IA · hoja común · móvil primero · modo oscuro por defecto y claro según el sistema */
:root {
  --fondo: #05080F;
  --fondo-2: #0B1220;
  --tarjeta: #0F1828;
  --borde: #1E2A3D;
  --texto: #E8EEF7;
  --texto-2: #A9B6C9;
  --cian: #22D3EE;
  --azul: #2F6BFF;
  --violeta: #8B5CF6;
  --ambar: #FFB547;
  --degradado: linear-gradient(90deg, var(--cian), var(--azul));
  --degradado-ia: linear-gradient(90deg, var(--violeta), var(--azul));
  --radio: 14px;
  --ancho: 68rem;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --fondo: #F6F8FC;
    --fondo-2: #EEF2F9;
    --tarjeta: #FFFFFF;
    --borde: #D5DDEA;
    --texto: #0B1220;
    --texto-2: #46546B;
    --cian: #0B7489;
    --azul: #2456D6;
    --violeta: #6D3FE0;
    --ambar: #B86E00;
    color-scheme: light;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: Outfit, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--cian); text-underline-offset: 3px; }
a:hover { color: var(--texto); }
:focus-visible { outline: 3px solid var(--ambar); outline-offset: 3px; border-radius: 4px; }
.saltar { position: absolute; left: -999px; top: 0; background: var(--tarjeta); padding: .5rem 1rem; z-index: 10; }
.saltar:focus { left: 1rem; }
.contenedor { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 1rem; }

/* Barra común de las tres webs */
.familia { background: var(--fondo-2); border-bottom: 1px solid var(--borde); font-size: .875rem; }
.familia ul { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 0; padding: .5rem 0; }
.familia a { color: var(--texto-2); text-decoration: none; }
.familia a[aria-current="true"] { color: var(--texto); font-weight: 600; }

.cabecera { border-bottom: 1px solid var(--borde); }
.cabecera .contenedor { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding-top: .75rem; padding-bottom: .75rem; }
.marca { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; }
.marca img { display: block; }
.menu ul { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin: 0; padding: 0; }
.menu a { color: var(--texto); text-decoration: none; padding: .5rem 0; display: inline-block; min-height: 44px; line-height: 28px; }
.menu a[aria-current="page"] { color: var(--violeta); font-weight: 600; }

main { display: block; }
.portada { padding: 3rem 0 2rem; }
.etiqueta { display: inline-block; font-size: .8125rem; letter-spacing: .04em; text-transform: uppercase; color: var(--violeta); font-weight: 600; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .75rem; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 4vw, 2.125rem); margin-top: 2.5rem; }
h3 { font-size: 1.25rem; }
.degradado { background: var(--degradado-ia); -webkit-background-clip: text; background-clip: text; color: transparent; }
.entradilla { font-size: 1.1875rem; color: var(--texto-2); max-width: 44rem; }
.botones { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.boton { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.25rem; border-radius: 999px; font-weight: 600; text-decoration: none; }
/* Degradado más oscuro que el de los titulares: texto blanco con contraste ≥ 4,5:1 en todo el botón */
.boton-primario { background: linear-gradient(90deg, #7C3AED, #2456D6); color: #fff; }
.boton-primario:hover { color: #fff; filter: brightness(1.08); }
.boton-secundario { border: 1px solid var(--borde); color: var(--texto); }

.rejilla { display: grid; gap: 1rem; grid-template-columns: 1fr; margin: 1.5rem 0; padding: 0; list-style: none; }
@media (min-width: 40rem) { .rejilla { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .rejilla-3 { grid-template-columns: repeat(3, 1fr); } }
.tarjeta { background: var(--tarjeta); border: 1px solid var(--borde); border-radius: var(--radio); padding: 1.25rem; }
.tarjeta h3 { margin-bottom: .5rem; }
.tarjeta p { margin: 0; color: var(--texto-2); }
.cifra { font-size: 2rem; font-weight: 600; }
.pasos { counter-reset: paso; list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 1rem; }
.pasos li { counter-increment: paso; background: var(--tarjeta); border: 1px solid var(--borde); border-radius: var(--radio); padding: 1.25rem 1.25rem 1.25rem 4rem; position: relative; }
.pasos li::before { content: counter(paso, decimal-leading-zero); position: absolute; left: 1.25rem; top: 1.2rem; font-weight: 600; color: var(--violeta); }
.aviso { border-left: 4px solid var(--ambar); background: var(--tarjeta); padding: 1rem 1.25rem; border-radius: 0 var(--radio) var(--radio) 0; }
.tabla-envoltorio { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 34rem; }
th, td { text-align: left; padding: .75rem; border-bottom: 1px solid var(--borde); vertical-align: top; }
th { color: var(--texto-2); font-weight: 600; }

details { background: var(--tarjeta); border: 1px solid var(--borde); border-radius: var(--radio); padding: 0 1.25rem; margin: .75rem 0; }
summary { cursor: pointer; font-weight: 600; padding: 1rem 0; min-height: 44px; }
details p { margin-top: 0; color: var(--texto-2); }

.pie { margin-top: 4rem; border-top: 1px solid var(--borde); background: var(--fondo-2); font-size: .9375rem; color: var(--texto-2); }
.pie .contenedor { padding-top: 2rem; padding-bottom: 2rem; display: grid; gap: 1.5rem; }
@media (min-width: 48rem) { .pie .contenedor { grid-template-columns: 2fr 1fr 1fr; } }
.pie h2 { font-size: 1rem; margin: 0 0 .5rem; color: var(--texto); }
.pie ul { list-style: none; margin: 0; padding: 0; }
.pie li { margin: .35rem 0; }
.pie a { color: var(--texto-2); }
.pie a:hover { color: var(--texto); }
.pie .marcas { font-size: .8125rem; margin-top: .75rem; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Resaltado del texto al llegar desde Google (#:~:text=): cian de marca al 22 %, en lugar del violeta de Chrome */
::target-text{background:color-mix(in srgb,var(--cian) 22%,transparent);color:inherit}
