/* AFS Informática — hoja de estilos común (index + páginas de servicio) */
:root {
  --yellow: #ffcc00;
  --yellow-soft: #fff6cc;
  --yellow-ink: #766000;      /* amarillo legible sobre blanco (AA) */
  --ink: #242a56;
  --ink-2: #393a56;
  --ink-deep: #1b2045;
  --muted: #5d6276;
  --line: #e7e8ed;
  --paper: #ffffff;
  --surface: #f6f7f9;
  --surface-blue: #f0f2f8;
  --font: "Open Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
  --content: 1160px;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 30px;
  --shadow: 0 18px 48px rgba(36,42,86,.09);
  --shadow-soft: 0 8px 28px rgba(36,42,86,.06);
  --ease: 180ms ease;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; color: var(--ink-2); background: var(--paper); font: 400 16px/1.7 var(--font); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
p a, li a, dd a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.container { width: min(calc(100% - 48px), var(--content)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 1000; top: 8px; left: 8px; padding: 12px 16px; background: var(--yellow); color: var(--ink); border-radius: 8px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid #8b6c00; outline-offset: 4px; }
h1, h2, h3, p, ul, ol { margin-top: 0; }
h1, h2, h3 { color: var(--ink); line-height: 1.14; letter-spacing: -.035em; }
h1 { max-width: 820px; margin-bottom: 24px; font-size: clamp(2.4rem, 5vw, 4.3rem); font-weight: 750; }
h2 { margin-bottom: 18px; font-size: clamp(1.9rem, 3.3vw, 2.9rem); font-weight: 730; }
h3 { margin-bottom: 10px; font-size: 1.2rem; font-weight: 720; }
.mark { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: .14em; text-underline-offset: .14em; text-decoration-skip-ink: none; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px; color: var(--yellow-ink); font-size: .76rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--yellow); border-radius: 3px; }
.lead { max-width: 660px; color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.75; }
.section { padding: clamp(72px, 9vw, 110px) 0; }
.section.alt { background: var(--surface); }
.section-head { max-width: 740px; margin-bottom: 44px; }
.section-head p:last-child { margin-bottom: 0; color: var(--muted); }
.pending { padding: 0 .3em; border-radius: 4px; background: #fff0a8; color: #5a4a00 !important; font-weight: 700; }

/* Botones */
.btn { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 11px; padding: 13px 23px; border: 2px solid var(--yellow); border-radius: 999px; background: var(--yellow); color: #242424; font-size: .84rem; font-weight: 800; letter-spacing: .03em; text-decoration: none; transition: transform var(--ease), background var(--ease), box-shadow var(--ease), color var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 9px 22px rgba(36,42,86,.13); }
.btn-secondary { border-color: rgba(36,42,86,.22); background: transparent; color: var(--ink); }
.btn-secondary:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 13px; }

/* Cabecera */
.site-header { position: sticky; z-index: 50; top: 0; border-bottom: 1px solid rgba(36,42,86,.08); background: rgba(255,255,255,.94); backdrop-filter: blur(12px); }
.header-inner { position: relative; display: flex; min-height: 78px; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand img { width: 44px; height: 44px; image-rendering: pixelated; }
.brand-name { display: block; font-size: 1.13rem; font-weight: 850; letter-spacing: -.045em; line-height: 1.05; }
.brand-sub { display: block; margin-top: 4px; color: var(--muted); font-size: .6rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.nav a { color: #444960; font-size: .84rem; font-weight: 700; white-space: nowrap; transition: color var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: #8a6c00; }
.nav .nav-cta { padding: 10px 18px; border-radius: 999px; background: var(--ink); color: #fff; }
.nav .nav-cta:hover { background: #3d467f; color: #fff; }
.menu-toggle { display: none; width: 46px; height: 46px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); cursor: pointer; }
.menu-toggle span { display: block; width: 21px; height: 2px; margin: 5px auto; background: currentColor; }

/* Hero (home) */
.hero { position: relative; overflow: hidden; padding: clamp(64px, 8vw, 112px) 0 clamp(64px, 8vw, 96px); background: linear-gradient(115deg, #fff 0%, #fff 55%, #f4f5fa 100%); }
.hero::after { position: absolute; right: -140px; bottom: -260px; width: 560px; height: 560px; border: 1px solid rgba(36,42,86,.08); border-radius: 50%; content: ""; box-shadow: 0 0 0 42px rgba(36,42,86,.018), 0 0 0 84px rgba(36,42,86,.014); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(38px, 6vw, 80px); }
.hero-copy .lead { margin-bottom: 30px; }
.hero-note { display: flex; align-items: center; gap: 12px; margin-top: 32px; color: var(--muted); font-size: .84rem; }
.note-dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 5px var(--yellow-soft); }

/* Ilustración del hero (la de la versión anterior, conservada) */
.hero-art { position: relative; min-height: 390px; display: grid; place-items: center; }
.art-panel { position: relative; width: min(100%, 470px); aspect-ratio: 1.08; overflow: hidden; border: 1px solid rgba(36,42,86,.1); border-radius: 34px; background: linear-gradient(145deg, #f4f5f9, #fff 62%); box-shadow: var(--shadow); }
.art-panel::before { position: absolute; top: 13%; right: 11%; width: 190px; height: 190px; border: 1px solid rgba(36,42,86,.12); border-radius: 50%; content: ""; }
.art-panel::after { position: absolute; right: 20%; bottom: 15%; width: 150px; height: 150px; border: 1px dashed rgba(36,42,86,.18); border-radius: 50%; content: ""; }
.art-grid { position: absolute; inset: 0; opacity: .55; background-image: linear-gradient(rgba(36,42,86,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(36,42,86,.055) 1px, transparent 1px); background-size: 31px 31px; mask-image: linear-gradient(135deg, black, transparent 78%); }
.art-core { position: absolute; top: 50%; left: 50%; display: grid; width: 150px; height: 150px; place-items: center; border: 9px solid #fff; border-radius: 35px; background: var(--ink); color: var(--yellow); transform: translate(-50%,-50%) rotate(-8deg); box-shadow: 0 22px 45px rgba(36,42,86,.23); }
.art-core svg { width: 75px; height: 75px; }
.orbit { position: absolute; display: grid; width: 66px; height: 66px; place-items: center; border: 1px solid rgba(36,42,86,.12); border-radius: 20px; background: #fff; color: var(--ink); box-shadow: var(--shadow-soft); }
.orbit svg { width: 28px; height: 28px; }
.orbit.one { top: 17%; left: 17%; transform: rotate(-8deg); }
.orbit.two { top: 19%; right: 13%; background: var(--yellow); transform: rotate(8deg); }
.orbit.three { right: 13%; bottom: 17%; transform: rotate(-7deg); }
.orbit.four { bottom: 13%; left: 18%; transform: rotate(7deg); }
.art-label { position: absolute; right: 24px; bottom: 22px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.92); color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hero-new { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 6px 14px 6px 6px; border: 1px solid rgba(36,42,86,.12); border-radius: 999px; background: #fff; color: var(--ink); font-size: .8rem; font-weight: 700; box-shadow: var(--shadow-soft); transition: border-color var(--ease); }
.hero-new:hover { border-color: var(--yellow); }
.hero-new .badge-new { padding: 4px 10px; }

/* Franja de principios */
.approach { position: relative; z-index: 2; padding: 0 0 18px; background: #fff; }
.approach-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); box-shadow: var(--shadow-soft); }
.approach-item { display: flex; gap: 15px; padding: 25px 24px; background: #fff; }
.mini-icon { display: grid; width: 43px; height: 43px; flex: 0 0 auto; place-items: center; border-radius: 13px; background: var(--yellow-soft); color: var(--ink); }
.mini-icon svg { width: 22px; height: 22px; }
.approach-item strong { display: block; margin: 1px 0 4px; color: var(--ink); font-size: .94rem; }
.approach-item p { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.5; }

/* Novedades: las dos especialidades nuevas, destacadas sobre el resto */
.news { position: relative; overflow: hidden; background: var(--ink); color: #cfd3e4; }
.news::before { position: absolute; top: -180px; left: -140px; width: 460px; height: 460px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; content: ""; box-shadow: 0 0 0 44px rgba(255,255,255,.02), 0 0 0 88px rgba(255,255,255,.015); }
.news .section-head { position: relative; }
.news h2 { color: #fff; }
.news .eyebrow { color: var(--yellow); }
.news .section-head p:last-child { color: #cfd3e4; }
.news-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.featured { position: relative; display: flex; flex-direction: column; padding: clamp(26px, 3.5vw, 40px); border: 1px solid rgba(255,204,0,.45); border-radius: var(--radius-lg); background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.02)); transition: transform var(--ease), border-color var(--ease), background var(--ease); }
.featured:hover { transform: translateY(-4px); border-color: var(--yellow); background: linear-gradient(160deg, rgba(255,255,255,.13), rgba(255,255,255,.03)); }
.featured-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 26px; }
.featured-icon { display: grid; width: 64px; height: 64px; place-items: center; border-radius: 18px; background: var(--yellow); color: var(--ink); }
.featured-icon svg { width: 32px; height: 32px; }
.featured h3 { color: #fff; font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.featured > p { color: #cfd3e4; }
.featured ul { display: grid; gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; }
.featured li { display: flex; gap: 10px; color: #e3e6f1; font-size: .9rem; }
.featured li::before { flex: 0 0 auto; color: var(--yellow); content: "▸"; }
.featured .service-link { color: #fff; font-size: .86rem; }
.featured .service-link::after { color: var(--yellow); }
.featured:hover .service-link::after { transform: translateX(4px); }
.badge-new { padding: 4px 11px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-size: .66rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
/* Servicios */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service { position: relative; display: flex; flex-direction: column; padding: 28px; border: 1px solid #e9eaf0; border-radius: var(--radius); background: #fff; transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease); }
.service:hover { transform: translateY(-4px); border-color: rgba(255,204,0,.9); box-shadow: var(--shadow-soft); }
.service-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.service-icon { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 13px; background: var(--yellow-soft); color: var(--ink); }
.service-icon svg { width: 23px; height: 23px; }
.service-number { color: #9a8433; font-family: var(--mono); font-size: .72rem; font-weight: 700; }
.service p { margin: 0; color: var(--muted); font-size: .92rem; }
.service .chips { margin-top: 16px; }
.service-link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 20px; color: var(--ink); font-size: .8rem; font-weight: 800; }
.service-link::after { color: #8a6c00; content: "→"; transition: transform var(--ease); }
.service:hover .service-link::after { transform: translateX(4px); }
.service-link::before { position: absolute; inset: 0; content: ""; } /* toda la tarjeta clicable */
.service.dark { border-color: transparent; background: var(--ink); }
.service.dark h3, .service.dark .service-link { color: #fff; }
.service.dark p { color: #cfd3e4; }
.service.dark .service-icon { background: rgba(255,204,0,.14); color: var(--yellow); }
.service.dark .service-number, .service.dark .service-link::after { color: var(--yellow); }
.service.dark .chip { border-color: rgba(255,255,255,.18); color: #e3e6f1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chip { padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .72rem; font-weight: 700; }

/* Ciberseguridad gestionada */
.managed-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(42px, 7vw, 90px); }
.managed-visual { position: relative; min-height: 410px; overflow: hidden; border-radius: var(--radius-lg); background: var(--ink); }
.managed-visual::before, .managed-visual::after { position: absolute; left: 50%; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; content: ""; transform: translateX(-50%); }
.managed-visual::before { width: 390px; height: 390px; top: 10px; }
.managed-visual::after { width: 290px; height: 290px; top: 60px; }
.managed-visual svg { position: absolute; top: 50%; left: 50%; width: 170px; height: 170px; color: var(--yellow); transform: translate(-50%,-50%); }
.managed-tag { position: absolute; padding: 10px 14px; border: 1px solid rgba(255,255,255,.2); border-radius: 9px; background: rgba(255,255,255,.08); color: #fff; font-size: .72rem; font-weight: 700; }
.managed-tag.t1 { top: 19%; left: 8%; }
.managed-tag.t2 { top: 26%; right: 7%; }
.managed-tag.t3 { bottom: 20%; left: 10%; }
.managed-tag.t4 { right: 9%; bottom: 15%; }
.managed-copy .lead { margin-bottom: 25px; }

/* Gobierno y cumplimiento */
.compliance { position: relative; overflow: hidden; background: var(--surface-blue); }
.compliance::before { position: absolute; top: -140px; right: -100px; width: 360px; height: 360px; border: 1px solid rgba(36,42,86,.08); border-radius: 50%; content: ""; box-shadow: 0 0 0 38px rgba(36,42,86,.025), 0 0 0 76px rgba(36,42,86,.018); }
.compliance-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(40px, 6vw, 70px); }
.compliance-copy p { max-width: 570px; color: var(--muted); }
.standard-list { display: grid; gap: 12px; }
.standard { display: flex; align-items: center; gap: 17px; padding: 19px 21px; border: 1px solid rgba(36,42,86,.09); border-radius: 15px; background: rgba(255,255,255,.85); transition: border-color var(--ease), transform var(--ease); }
a.standard:hover { border-color: var(--yellow); transform: translateX(4px); }
.standard-mark { display: grid; width: 52px; height: 48px; flex: 0 0 auto; place-items: center; border-radius: 13px; background: var(--yellow); color: var(--ink); font-size: .72rem; font-weight: 900; }
.standard strong { display: block; color: var(--ink); font-size: .95rem; }
.standard small { display: block; color: var(--muted); font-size: .78rem; line-height: 1.45; }
/* Bloque oscuro de especialidades forenses */
.dark-band { position: relative; overflow: hidden; background: var(--ink); color: #d4d7e5; }
.dark-band::before { position: absolute; top: -160px; right: -120px; width: 420px; height: 420px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; content: ""; box-shadow: 0 0 0 40px rgba(255,255,255,.02), 0 0 0 80px rgba(255,255,255,.015); }
.dark-band h2, .dark-band h3 { color: #fff; }
.dark-band .eyebrow { color: var(--yellow); }
.dark-band .section-head p:last-child, .dark-band .lead { color: #cfd3e4; }
.split { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.feature-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.feature-list li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; color: var(--muted); font-size: .94rem; }
.feature-list strong { color: var(--ink); }
.dark-band .feature-list li { color: #cfd3e4; }
.dark-band .feature-list strong { color: #fff; }
.check { display: grid; width: 24px; height: 24px; margin-top: 2px; place-items: center; border-radius: 50%; background: var(--yellow-soft); color: var(--ink); font-size: .78rem; font-weight: 900; }
.dark-band .check { background: var(--yellow); }
.panel-dark { padding: 30px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); background: rgba(255,255,255,.05); }
.panel-dark + .panel-dark { margin-top: 18px; }
.panel-dark p { color: #cfd3e4; }
.panel-dark .service-link { padding-top: 6px; color: #fff; }

/* Docencia y sobre mí */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 7vw, 80px); align-items: start; }
.about-aside { position: sticky; top: 120px; }
.about-aside p { color: var(--muted); }
.stack { display: grid; gap: 22px; }
.stack-item { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.stack-item:last-child { padding-bottom: 0; border: 0; }
.stack-item p { margin: 0; color: var(--muted); }

/* Páginas de servicio */
.page-hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 90px) 0 clamp(48px, 6vw, 72px); border-bottom: 1px solid var(--line); background: linear-gradient(115deg, #fff 0%, #fff 55%, #f4f5fa 100%); }
.page-hero::after { position: absolute; top: -200px; right: -160px; width: 480px; height: 480px; border: 1px solid rgba(36,42,86,.07); border-radius: 50%; content: ""; box-shadow: 0 0 0 40px rgba(36,42,86,.016), 0 0 0 80px rgba(36,42,86,.012); pointer-events: none; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.page-hero .lead { margin-bottom: 28px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; color: var(--muted); font-size: .8rem; list-style: none; }
.crumbs li + li::before { margin-right: 8px; color: #b3b6c4; content: "/"; }
.crumbs a:hover { color: #8a6c00; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { padding: 26px; border: 1px solid #e9eaf0; border-radius: var(--radius); background: #fff; }
.card p, .card li { color: var(--muted); font-size: .92rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card ul { padding-left: 1.1em; }
.card li + li { margin-top: 4px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 26px 22px 22px; border-top: 3px solid var(--yellow); border-radius: 0 0 var(--radius-sm) var(--radius-sm); background: #fff; counter-increment: step; }
.steps li::before { display: block; margin-bottom: 10px; color: var(--yellow-ink); font-family: var(--mono); font-size: .76rem; font-weight: 700; content: "0" counter(step); }
.steps strong { display: block; margin-bottom: 6px; color: var(--ink); }
.steps p { margin: 0; color: var(--muted); font-size: .88rem; }
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.faq summary { position: relative; padding: 18px 52px 18px 22px; color: var(--ink); font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { position: absolute; top: 50%; right: 22px; color: #8a6c00; font-size: 1.3rem; line-height: 1; content: "+"; transform: translateY(-50%); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }
.related { display: flex; flex-wrap: wrap; gap: 10px; }
.related a { padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: .85rem; font-weight: 700; transition: border-color var(--ease); }
.related a:hover { border-color: var(--yellow); }

/* Contacto */
.contact { padding: 80px 0; background: var(--ink); color: #fff; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: start; gap: 40px; }
.contact-grid .contact-card { margin-top: 26px; }
.contact .eyebrow { color: var(--yellow); }
.contact h2 { max-width: 700px; margin-bottom: 13px; color: #fff; }
.contact p { max-width: 620px; margin: 0; color: #d4d7e5; }
.contact-card { display: grid; gap: 12px; padding: 26px; border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); background: rgba(255,255,255,.05); }
.contact-card a.line, .contact-card span.line { display: flex; align-items: center; gap: 12px; color: #fff; font-size: .95rem; font-weight: 700; }
.contact-card .line small { display: block; color: #aeb3cb; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.contact-card .ic { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 10px; background: rgba(255,204,0,.14); color: var(--yellow); }
.contact-card .ic svg { width: 19px; height: 19px; }
.contact-card .hint { color: #aeb3cb; font-size: .78rem; }

/* Pie */
.site-footer { padding: 55px 0 22px; background: var(--ink-deep); color: #d4d7e5; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .9fr .9fr .8fr; gap: 44px; padding-bottom: 42px; }
.footer-brand .brand { margin-bottom: 18px; color: #fff; }
.footer-brand .brand-sub { color: #b6bad0; }
.footer-brand p { max-width: 340px; color: #b6bad0; font-size: .87rem; }
.footer-title { margin: 0 0 16px; color: #fff; font-size: .83rem; font-weight: 800; letter-spacing: .04em; }
.footer-links { display: grid; gap: 9px; }
.footer-links a, .footer-links span { width: fit-content; color: #bfc3d6; font-size: .83rem; }
.footer-links a:hover { color: var(--yellow); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 15px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); color: #aeb3cb; font-size: .74rem; }

/* Responsive */
@media (max-width: 960px) {
  .services-grid, .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .approach-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 1020px) {
  .header-inner { min-height: 70px; }
  .menu-toggle { display: block; }
  .nav { position: absolute; top: 100%; right: -16px; left: -16px; display: none; align-items: stretch; gap: 0; padding: 10px 18px 18px; border-bottom: 1px solid var(--line); background: #fff; box-shadow: 0 18px 24px rgba(36,42,86,.08); }
  .nav.is-open { display: flex; flex-direction: column; }
  .nav a { padding: 13px 8px; border-bottom: 1px solid var(--line); font-size: .92rem; }
  .nav .nav-cta { margin-top: 12px; padding: 13px 17px; border: 0; text-align: center; }
}
@media (max-width: 820px) {
  .container { width: min(calc(100% - 32px), var(--content)); }
  .hero-grid, .split, .about-grid, .contact-grid, .cards-2, .news-grid, .managed-grid, .compliance-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 300px; }
  .managed-visual { min-height: 320px; }
  .about-aside { position: static; }
}
@media (max-width: 560px) {
  h1 { font-size: clamp(2.2rem, 10.5vw, 3rem); }
  h2 { font-size: clamp(1.8rem, 8.5vw, 2.3rem); }
  .btn-row { flex-direction: column; align-items: stretch; }
  .services-grid, .cards-3, .steps { grid-template-columns: 1fr; }
  .art-core { width: 118px; height: 118px; border-radius: 28px; }
  .art-core svg { width: 60px; height: 60px; }
  .orbit { width: 52px; height: 52px; border-radius: 15px; }
  .orbit svg { width: 23px; height: 23px; }
  .managed-visual::before { width: 300px; height: 300px; }
  .managed-visual::after { width: 220px; height: 220px; }
  .managed-tag { font-size: .62rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
.mt { margin-top: 28px; }
.note { display: flex; gap: 14px; margin-top: 22px; padding: 18px 20px; border-left: 4px solid var(--yellow); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--surface-blue); color: var(--ink-2); font-size: .92rem; }
.card h3 a { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ===== Toques de sector: ilustraciones, terminal forense, ticker y animaciones ===== */
.service-art { display: block; width: calc(100% + 56px); margin: -28px -28px 22px; aspect-ratio: 16 / 9; padding: 18px 24px; border-bottom: 1px solid #e9eaf0; border-radius: var(--radius) var(--radius) 0 0; background: var(--surface-blue) linear-gradient(rgba(36,42,86,.045) 1px, transparent 1px) 0 0 / 22px 22px, linear-gradient(90deg, rgba(36,42,86,.045) 1px, transparent 1px) 0 0 / 22px 22px; object-fit: contain; transition: transform 400ms ease; }
.service:hover .service-art { transform: scale(1.02); }
.featured-art { display: block; width: 100%; aspect-ratio: 16 / 9; margin-bottom: 26px; padding: 18px 24px; border-radius: 18px; background: #f4f5fa linear-gradient(rgba(36,42,86,.05) 1px, transparent 1px) 0 0 / 22px 22px; object-fit: contain; }

/* Hero de páginas de servicio con ilustración */
.page-hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: clamp(30px, 5vw, 60px); }
.page-hero-art { width: 100%; padding: 22px; border: 1px solid rgba(36,42,86,.1); border-radius: 28px; background: #fff linear-gradient(rgba(36,42,86,.045) 1px, transparent 1px) 0 0 / 24px 24px; box-shadow: var(--shadow); }

/* Terminal forense flotante en el hero */
.terminal { position: absolute; z-index: 2; bottom: 16px; left: 16px; width: min(280px, 66%); overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: #161a38; box-shadow: 0 24px 50px rgba(20,24,56,.35); font: 500 .7rem/1.6 var(--mono); color: #cfd3e4; transform: rotate(-2deg); }
.terminal-bar { display: flex; gap: 6px; padding: 9px 12px; background: rgba(255,255,255,.06); }
.terminal-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.22); }
.terminal-bar i:first-child { background: var(--yellow); }
.terminal-body { padding: 12px 14px 14px; white-space: nowrap; }
.terminal-body .p { color: var(--yellow); }
.terminal-body .ok { color: #7ee2a8; }
.terminal-body .h { color: #8f96bd; overflow: hidden; text-overflow: ellipsis; }
.cursor { display: inline-block; width: .55em; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--yellow); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Ticker de normas y hashes */
.ticker { overflow: hidden; border-block: 1px solid var(--line); background: var(--ink-deep); color: #aeb3cb; font: 600 .74rem/1 var(--mono); letter-spacing: .04em; }
.ticker-track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { display: inline-flex; align-items: center; gap: 14px; padding: 15px 0 15px 14px; white-space: nowrap; }
.ticker-track span::after { width: 6px; height: 6px; background: var(--yellow); content: ""; }
.ticker-track b { color: #fff; font-weight: 700; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Aparición suave al hacer scroll (solo si el JS lo activa) */
.reveal-hidden { opacity: 0; transform: translateY(18px); }
.reveal-in { transition: opacity 600ms ease, transform 600ms ease; }

@media (max-width: 820px) {
  .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero-art { max-width: 420px; }
  .terminal { left: 12px; bottom: 12px; font-size: .66rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track, .cursor { animation: none; }
}

/* ===== Forense de vehículos: cifras, mapa del coche, reconstrucción y CTA ===== */
.hero-visual { position: relative; }
.hero-visual .terminal { position: relative; bottom: auto; left: auto; width: min(310px, 88%); margin: -34px 0 0 -14px; }

.stats-band { padding: 34px 0; border-bottom: 1px solid var(--line); background: #fff; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.stat { padding-left: 18px; border-left: 3px solid var(--yellow); }
.stat p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.5; }
.stat .stat-num { margin-bottom: 6px; color: var(--ink); font: 750 clamp(1.7rem, 2.8vw, 2.3rem)/1 var(--font); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }

.explore { display: grid; grid-template-columns: 1.15fr .85fr; align-items: start; gap: clamp(28px, 4vw, 50px); }
.explore-figure { position: sticky; top: 110px; padding: 22px; border: 1px solid rgba(36,42,86,.1); border-radius: var(--radius-lg); background: var(--surface-blue) linear-gradient(rgba(36,42,86,.045) 1px, transparent 1px) 0 0 / 24px 24px; box-shadow: var(--shadow-soft); }
.explore-svg { display: block; width: 100%; height: auto; }
.explore-tag { fill: var(--muted); font: 700 11px var(--font); }
.pin { transform-box: fill-box; transform-origin: center; transition: transform var(--ease); }
.pin-ring { fill: rgba(255,204,0,.55); transform-box: fill-box; transform-origin: center; animation: pin-pulse 2.6s ease-out infinite; }
.pin-dot { fill: var(--ink); stroke: #fff; stroke-width: 3; transition: fill var(--ease); }
.pin text { fill: #fff; font: 800 13px var(--mono); text-anchor: middle; }
.pin.is-active { transform: scale(1.25); }
.pin.is-active .pin-dot { fill: var(--yellow); }
.pin.is-active text { fill: var(--ink); }
@keyframes pin-pulse { 0% { opacity: .9; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(2.1); } }
.explore-legend { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.explore-legend button { display: flex; width: 100%; gap: 14px; padding: 12px 14px; border: 1px solid transparent; border-radius: var(--radius-sm); background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color var(--ease), background var(--ease); }
.explore-legend button:hover, .explore-legend button.is-active { border-color: var(--yellow); background: #fff; box-shadow: var(--shadow-soft); }
.explore-n { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font: 800 .78rem var(--mono); }
.explore-legend .is-active .explore-n { background: var(--yellow); color: var(--ink); }
.explore-legend strong { display: block; color: var(--ink); font-size: .92rem; }
.explore-legend strong + span { display: block; color: var(--muted); font-size: .82rem; line-height: 1.5; }

.recon { position: relative; display: grid; grid-template-columns: .8fr 1.2fr; align-items: start; gap: clamp(28px, 5vw, 60px); }
.recon-map { position: sticky; top: 110px; padding: 18px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); background: #1b2045; }
.route-svg { display: block; width: 100%; height: auto; }
.route-line { stroke-dasharray: 1000; stroke-dashoffset: 0; transition: stroke-dashoffset 2.6s ease-in-out; }
.route-mid, .route-end { transition: opacity 400ms ease 1.4s; }
.route-end { transition-delay: 2.5s; }
.recon-caption { margin: 12px 0 0; color: #8f96bd; font: 600 .7rem var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.timeline { position: relative; display: grid; gap: 4px; margin: 0; padding: 0 0 0 26px; list-style: none; }
.timeline::before { position: absolute; top: 8px; bottom: 8px; left: 6px; width: 2px; background: rgba(255,255,255,.14); content: ""; }
.timeline li { position: relative; display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; gap: 4px 12px; padding: 12px 16px; border-radius: var(--radius-sm); transition: opacity 500ms ease, transform 500ms ease, background var(--ease); }
.timeline li:hover { background: rgba(255,255,255,.05); }
.timeline li::before { position: absolute; top: 19px; left: -25px; width: 12px; height: 12px; border: 2px solid var(--yellow); border-radius: 50%; background: var(--ink); content: ""; }
.timeline li:last-child::before { border-color: #ff6b5b; background: #ff6b5b; }
.timeline time { color: var(--yellow); font: 700 .8rem var(--mono); }
.timeline p { grid-column: 1 / -1; margin: 0; color: #e3e6f1; font-size: .92rem; }
.src { padding: 2px 8px; border-radius: 6px; background: rgba(255,255,255,.1); color: #fff; font: 700 .64rem var(--mono); letter-spacing: .08em; }
.src-edr { background: rgba(255,107,91,.22); }
.src-tcu { background: rgba(126,226,168,.18); }
.src-bcm { background: rgba(143,150,189,.25); }
.timeline li:nth-child(2) { transition-delay: 120ms; } .timeline li:nth-child(3) { transition-delay: 240ms; } .timeline li:nth-child(4) { transition-delay: 360ms; }
.timeline li:nth-child(5) { transition-delay: 480ms; } .timeline li:nth-child(6) { transition-delay: 600ms; } .timeline li:nth-child(7) { transition-delay: 720ms; }
/* Estado previo a la animación: solo lo aplica el JS a lo que aún no se ha visto */
.anim-wait .route-line { stroke-dashoffset: 1000; }
.anim-wait .route-mid, .anim-wait .route-end { opacity: 0; }
.anim-wait.timeline li { opacity: 0; transform: translateX(-12px); }

.dodont .card h3 { display: flex; align-items: center; gap: 10px; }
.dd-ic { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: var(--yellow-soft); color: var(--ink); font-size: .85rem; font-weight: 900; }
.dodont .dont .dd-ic { background: #ffe3df; color: #a3271a; }
.dodont .do { border-top: 3px solid var(--yellow); }
.dodont .dont { border-top: 3px solid #ff6b5b; }
.cta-band { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 28px; margin-top: 26px; padding: clamp(26px, 4vw, 40px); overflow: hidden; border-radius: var(--radius-lg); background: var(--ink); color: #cfd3e4; }
.cta-band::after { position: absolute; right: -80px; bottom: -120px; width: 300px; height: 300px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; content: ""; box-shadow: 0 0 0 36px rgba(255,255,255,.02); pointer-events: none; }
.cta-band h3 { color: #fff; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.cta-band p { max-width: 640px; }
.cta-band .chip { border-color: rgba(255,255,255,.18); color: #e3e6f1; }
.cta-band .btn { position: relative; z-index: 1; }
.cta-kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: var(--yellow); font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #ff6b5b; box-shadow: 0 0 0 0 rgba(255,107,91,.6); animation: live 1.8s ease-out infinite; }
@keyframes live { to { box-shadow: 0 0 0 10px rgba(255,107,91,0); } }

@media (max-width: 960px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .explore, .recon { grid-template-columns: 1fr; }
  .recon-map, .explore-figure { position: static; max-width: 460px; }
  .explore-figure { max-width: none; }
}
@media (max-width: 820px) {
  .cta-band { grid-template-columns: 1fr; }
  .hero-visual .terminal { margin-left: -4px; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .pin-ring, .live-dot { animation: none; }
}

/* ===== Forense de IA: capas de análisis, onda de audio y escala de conclusión ===== */
.terminal-body .warn { color: #ffb36b; }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.layer { opacity: 0; }
.layer.is-active { opacity: 1; transition: opacity 350ms ease; } /* la capa saliente desaparece al instante para que no se mezclen textos */
.layer text { fill: #fff; font: 700 12px var(--mono); }
.layer text.big { font-size: 18px; }
.layer .meta text { fill: #cfd3e4; font-size: 11px; font-weight: 600; }
.scanline { opacity: .8; animation: scan 4s ease-in-out infinite alternate; }
@keyframes scan { to { transform: translateY(297px); } }
.wave-svg { display: block; width: 100%; height: auto; }
.wave-svg .bars rect { fill: rgba(255,255,255,.35); }
.wave-svg .bars .seg { fill: #ff6b5b; }
.wave-svg text { fill: #8f96bd; font: 600 10px var(--mono); }
.wave-svg text.hl { fill: #ff8a7d; }
.playhead { animation: play 6s linear infinite; }
@keyframes play { to { transform: translateX(358px); } }
.panel-label { margin: 0 0 10px; color: #fff; font: 700 .72rem var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 0 0 12px; padding: 0; list-style: none; }
.scale li { padding: 8px 2px; border-radius: 6px; background: rgba(255,255,255,.07); color: #8f96bd; font-size: .64rem; font-weight: 700; line-height: 1.2; text-align: center; }
.scale li.is-on { background: var(--yellow); color: var(--ink); }
.scale-note { color: #e3e6f1; font-size: .86rem; }
.findings strong { color: #fff; font-size: .92rem; }
.findings li:last-child::before { border-color: var(--yellow); background: var(--ink); }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.18); }
.lvl-2 i:nth-child(-n+2), .lvl-3 i:nth-child(-n+3), .lvl-4 i:nth-child(-n+4), .lvl-5 i { background: var(--yellow); }
@media (max-width: 960px) { .cards-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards-4 { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .scanline, .playhead { animation: none; } }

/* ===== Informática forense: móvil con capas, mapa de disco y especialidades ===== */
.ph { fill: var(--ink); font: 600 9.5px var(--font); }
.ph.del { fill: #8f96bd; font-style: italic; }
.pht { fill: #8f96bd; font: 600 7.5px var(--mono); }
.layer .pt { fill: var(--yellow); font-size: 11.5px; }
.layer .pl { fill: #cfd3e4; font-size: 10.5px; font-weight: 600; white-space: pre; }
.layer .pl.bad { fill: #ff8a7d; }
.layer .pl.good { fill: #7ee2a8; }
.layer .tag { fill: var(--ink); font-size: 10px; }
.disk-svg { display: block; width: 100%; height: auto; }
.disk-svg .used { fill: #3d467f; }
.disk-svg .free { fill: rgba(255,255,255,.06); }
.disk-svg .rec { fill: var(--yellow); transition: fill 700ms ease 900ms; }
.disk-svg.anim-wait .rec { fill: #ff6b5b; }
.disk-legend text { fill: #8f96bd; font: 600 10px var(--mono); }
.spec-card { position: relative; display: flex; flex-direction: column; transition: transform var(--ease), border-color var(--ease); }
.spec-card:hover { transform: translateY(-4px); border-color: var(--yellow); }
.spec-card .featured-art { margin-bottom: 18px; }
.spec-card .badge-new { align-self: flex-start; margin-bottom: 12px; }

/* ===== Respuesta a incidentes: reloj de notificaciones y red atacada ===== */
.clock { padding: clamp(22px, 3vw, 34px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-soft); }
.clock-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.clock-head label { color: var(--ink); font-weight: 800; }
.clock-out { color: var(--ink); font: 800 clamp(1.6rem, 3vw, 2.2rem)/1 var(--mono); }
.clock input[type="range"] { width: 100%; height: 28px; margin: 0 0 22px; accent-color: var(--ink); cursor: pointer; }
.clock-items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.clock-item { display: flex; flex-direction: column; padding: 18px; border: 1px solid var(--line); border-top: 4px solid #cfd4e6; border-radius: var(--radius-sm); background: var(--surface); transition: border-color var(--ease), background var(--ease); }
.clock-item p { flex: 1; margin: 6px 0 14px; color: var(--muted); font-size: .84rem; line-height: 1.5; }
.clock-item strong { color: var(--ink); font-size: .95rem; line-height: 1.3; }
.clock-when { margin-bottom: 6px; color: var(--yellow-ink); font: 800 .78rem var(--mono); }
.clock-state { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: #e3e7f3; color: var(--ink); font-size: .74rem; font-weight: 800; }
.clock-item.is-now { border-top-color: var(--yellow); background: #fffbe6; }
.clock-item.is-now .clock-state { background: var(--yellow); }
.clock-item.is-due { border-top-color: #ff6b5b; background: #fff4f2; }
.clock-item.is-due .clock-state { background: #ff6b5b; color: #fff; }
.clock-note { margin: 16px 0 0; color: var(--muted); font-size: .8rem; }
.net-svg { display: block; width: 100%; height: auto; }
.net-l { fill: #8f96bd; font: 600 9px var(--mono); }
.net-l.hl { fill: var(--yellow); }
.net-l.ok { fill: #7ee2a8; }
.attack-l { fill: #ff8a7d; }
.net-svg .node { fill: #3d467f; transition: fill 500ms ease; }
.net-svg .node.inf { fill: #ff6b5b; }
.net-svg .d2 { transition-delay: 350ms; } .net-svg .d3 { transition-delay: 700ms; } .net-svg .d4 { transition-delay: 1050ms; }
.net-svg .contain { opacity: 1; transition: opacity 500ms ease 1.8s; }
.net-svg.anim-wait .node.inf { fill: #3d467f; }
.net-svg.anim-wait .contain { opacity: 0; }
.timeline.ok-end li:last-child::before { border-color: #7ee2a8; background: #7ee2a8; }
/* ===== Auditorías: informe de hallazgos filtrable ===== */
.report { padding: clamp(20px, 3vw, 30px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.sevbar { display: grid; grid-template-columns: 1fr 2fr 2fr 2fr; gap: 3px; height: 10px; margin-bottom: 18px; } /* proporciones del ejemplo: 1 crítica, 2 altas, 2 medias, 2 bajas */
.sevbar span { border-radius: 3px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.filters button { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: 700 .8rem var(--font); cursor: pointer; transition: background var(--ease), border-color var(--ease); }
.filters button b { color: var(--muted); font-family: var(--mono); }
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.filters button[aria-pressed="true"] b { color: var(--yellow); }
.findings-list { display: grid; gap: 8px; }
.finding { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.finding[hidden] { display: none; }
.finding summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 14px 44px 14px 16px; position: relative; color: var(--ink); cursor: pointer; list-style: none; }
.finding summary::-webkit-details-marker { display: none; }
.finding summary::after { position: absolute; top: 50%; right: 18px; color: #8a6c00; font-size: 1.2rem; content: "+"; transform: translateY(-50%); }
.finding[open] summary::after { content: "–"; }
.sev { min-width: 64px; padding: 3px 10px; border-radius: 6px; font-size: .7rem; font-weight: 850; letter-spacing: .04em; text-align: center; text-transform: uppercase; }
.sev-critica { background: #8f1d14; color: #fff; }
.sev-alta { background: #ff6b5b; color: #fff; }
.sev-media { background: var(--yellow); color: var(--ink); }
.sev-baja { background: #cfd4e6; color: var(--ink); }
.cvss, .f-id { color: var(--muted); font: 700 .74rem var(--mono); }
.f-t { flex: 1 1 260px; font-weight: 700; font-size: .92rem; }
.f-body { padding: 0 16px 14px; border-top: 1px dashed var(--line); }
.f-body p { margin: 12px 0 0; color: var(--muted); font-size: .88rem; }
.f-body strong { color: var(--ink); }
.f-meta { color: var(--yellow-ink) !important; font: 700 .74rem var(--mono) !important; }
.report .recon-caption { margin-top: 14px; }

/* ===== Normativas: selector de marcos y ciclo del sistema de gestión ===== */
.selector { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: clamp(20px, 3vw, 36px); padding: clamp(20px, 3vw, 34px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.sel-q { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
.sel-q legend { margin-bottom: 12px; color: var(--ink); font-weight: 800; }
.sel-q label { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink-2); font-size: .92rem; line-height: 1.5; cursor: pointer; transition: border-color var(--ease), box-shadow var(--ease); }
.sel-q label:hover { border-color: var(--ink); }
.sel-q label:has(input:checked) { border-color: var(--yellow); box-shadow: var(--shadow-soft); }
.sel-q input { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 1px; accent-color: var(--ink); }
.sel-sum { margin-bottom: 14px; color: var(--ink); font-weight: 800; }
.sel-fw { display: grid; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.sel-fw li { display: grid; gap: 2px; padding: 12px 16px; border: 1px solid var(--line); border-left: 4px solid #cfd4e6; border-radius: var(--radius-sm); background: #fff; transition: opacity var(--ease), border-color var(--ease); }
.sel-fw strong { color: var(--ink); font-size: .95rem; }
.sel-fw span { color: var(--muted); font-size: .84rem; line-height: 1.5; }
.sel-fw a { width: fit-content; margin-top: 4px; color: #8a6c00; font-size: .8rem; font-weight: 800; }
.selector.has-answers .sel-fw li { opacity: .38; }
.selector.has-answers .sel-fw li.is-on { border-left-color: var(--yellow); opacity: 1; }
.sel-note { margin: 12px 0 0; color: var(--muted); font-size: .78rem; }
.chips-lg .chip { padding: 8px 16px; font-size: .86rem; color: var(--ink); background: #fff; }
.cycle-svg { display: block; width: 100%; height: auto; }
.cyc-big { fill: var(--yellow); font: 800 26px var(--mono); }
.cyc-node rect { fill: #3d467f; }
.cyc-node text { fill: #fff; font: 700 12px var(--font); }
.cyc-node.cert rect { fill: none; stroke: #ff6b5b; stroke-width: 2; stroke-dasharray: 5 4; }
.orbit-dot { transform-origin: 180px 150px; animation: orbit 12s linear infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }
.dark-band .note { background: rgba(255,255,255,.06); color: #e3e6f1; }
@media (max-width: 960px) { .selector { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .orbit-dot { animation: none; } }

/* ===== Subpáginas de normas: diagramas atenuables y calculadora de categoría ENS ===== */
.dimmable [data-n] { opacity: .22; transition: opacity 250ms ease; }
.dimmable [data-n].is-active { opacity: 1; }
.dimmable .newdots:not(.is-active) { opacity: 0; }
.pyr-t { fill: var(--ink); stroke: none; font: 800 13px var(--font); }
.pyr-t.light { fill: #fff; }
.catcalc { display: grid; grid-template-columns: 1.35fr .65fr; align-items: start; gap: clamp(20px, 3vw, 36px); }
.cat-dims { display: grid; gap: 10px; }
.cat-dim { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.cat-dim p { flex: 1 1 240px; margin: 0; }
.cat-dim strong { display: block; color: var(--ink); }
.cat-dim p span { color: var(--muted); font-size: .84rem; line-height: 1.45; }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: block; padding: 6px 14px; border-radius: 999px; color: var(--muted); font-size: .8rem; font-weight: 800; cursor: pointer; transition: background var(--ease), color var(--ease); }
.seg input:focus-visible + span { outline: 3px solid #8b6c00; outline-offset: 2px; }
.seg input:checked + span { background: #3d467f; color: #fff; }
.seg input[value="2"]:checked + span { background: var(--yellow); color: var(--ink); }
.seg input[value="3"]:checked + span { background: #ff6b5b; color: #fff; }
.cat-result { position: sticky; top: 110px; padding: 28px; border-radius: var(--radius-lg); background: var(--ink); color: #cfd3e4; }
.cat-label { margin: 0 0 6px; color: #8f96bd; font: 700 .72rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.cat-value { margin: 0 0 12px; color: #7ee2a8; font: 800 clamp(2rem, 4vw, 2.8rem)/1 var(--font); letter-spacing: -.03em; transition: color var(--ease); }
.cat-result.cat-2 .cat-value { color: var(--yellow); }
.cat-result.cat-3 .cat-value { color: #ff8a7d; }
.cat-text { margin-bottom: 20px; font-size: .92rem; }
.cat-note { margin: 14px 0 0; color: #8f96bd; font-size: .74rem; }
@media (max-width: 960px) { .catcalc { grid-template-columns: 1fr; } .cat-result { position: static; } }

/* ===== Formación: correo de phishing interactivo y docencia ===== */
.quiz { display: grid; grid-template-columns: 1.1fr .9fr; align-items: start; gap: clamp(20px, 3vw, 36px); }
.mail { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.mail-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--surface-blue); }
.mail-bar i { width: 9px; height: 9px; border-radius: 50%; background: #cfd4e6; }
.mail-bar span { margin-left: 8px; color: var(--muted); font-size: .74rem; font-weight: 700; }
.mail-head { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.mail-head p { margin: 0 0 6px; font-size: .9rem; }
.mail-k { display: inline-block; width: 58px; color: var(--muted); font-weight: 700; }
.mail-body { padding: 20px; color: var(--ink-2); font-size: .94rem; }
.mail-sign { margin: 0; color: var(--muted); }
.flag { padding: 1px 3px; border: 0; border-radius: 4px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; text-decoration: underline dashed transparent; text-underline-offset: 3px; transition: background var(--ease), text-decoration-color var(--ease); }
.flag:hover { background: var(--yellow-soft); text-decoration-color: #8a6c00; }
.flag.is-found { background: #ffe3df; box-shadow: inset 0 0 0 2px #ff6b5b; }
.flag.is-found::after { display: inline-grid; width: 18px; height: 18px; margin-left: 6px; place-items: center; border-radius: 50%; background: #ff6b5b; color: #fff; font: 800 .66rem var(--mono); vertical-align: 2px; content: attr(data-flag); }
.mail-cta { padding: 10px 20px; border-radius: 8px; background: #2f6fde; color: #fff; font-weight: 700; }
.mail-cta:hover { background: #2559b3; color: #fff; }
.mail-cta.is-found { background: #2f6fde; color: #fff; box-shadow: 0 0 0 3px #ff6b5b; }
.quiz-score { margin-bottom: 14px; color: var(--ink); font-weight: 800; }
.quiz-score b { color: #c0392b; font-family: var(--mono); font-size: 1.2em; }
.quiz-list { display: grid; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.quiz-list li { display: flex; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; transition: border-color var(--ease); }
.quiz-list li > span:last-child strong { display: block; color: var(--ink); font-size: .9rem; }
.quiz-list li > span:last-child span { color: var(--muted); font-size: .82rem; line-height: 1.5; }
.quiz-n { display: grid; width: 26px; height: 26px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #e3e7f3; color: var(--ink); font: 800 .74rem var(--mono); }
.quiz-on .quiz-list li:not(.is-found) > span:last-child { filter: blur(5px); user-select: none; }
.quiz-list li.is-found { border-color: #ff6b5b; }
.quiz-list li.is-found .quiz-n { background: #ff6b5b; color: #fff; }
.uni-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.uni-list li { display: grid; grid-template-columns: auto 1fr; gap: 2px 16px; padding: 20px 22px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); background: rgba(255,255,255,.05); }
.uni-k { grid-row: span 2; color: var(--yellow); font: 800 1.4rem var(--mono); }
.uni-list strong { color: #fff; font-size: 1.1rem; }
.uni-list li > span:last-child { color: #aeb3cb; font-size: .86rem; }
.dark-band .chip { border-color: rgba(255,255,255,.18); color: #e3e6f1; }
@media (max-width: 960px) { .quiz { grid-template-columns: 1fr; } }

/* ===== Consultoría: matriz de riesgos y plan director ===== */
.rk-t { fill: #fff; font: 800 11px var(--mono); }
.ax-t, .mx-legend text { fill: var(--muted); font: 700 10px var(--mono); }
.gantt { position: relative; display: grid; gap: 8px; padding: clamp(18px, 3vw, 28px); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); background: #1b2045; }
.gantt-row { display: grid; grid-template-columns: 220px 1fr; align-items: center; gap: 16px; }
.g-label { color: #e3e6f1; font-size: .86rem; font-weight: 700; }
.g-track { display: grid; grid-template-columns: repeat(12, 1fr); height: 22px; border-radius: 6px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 calc(100% / 12 - 1px), rgba(255,255,255,.12) calc(100% / 12 - 1px) calc(100% / 12)); }
.gantt-head .g-track { height: auto; background: none; }
.gantt-head .g-track span { color: var(--yellow); font: 700 .72rem var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.y1 { grid-column: 1 / 5; } .y2 { grid-column: 5 / 9; } .y3 { grid-column: 9 / 13; }
.bar { height: 100%; border-radius: 6px; transform-origin: left; transition: transform 800ms ease; }
.b1 { grid-column: 1 / 3; } .b2 { grid-column: 1 / 3; transition-delay: 120ms; } .b3 { grid-column: 2 / 13; transition-delay: 240ms; }
.b4 { grid-column: 3 / 6; transition-delay: 360ms; } .b5 { grid-column: 4 / 8; transition-delay: 480ms; } .b6 { grid-column: 5 / 10; transition-delay: 600ms; } .b7 { grid-column: 7 / 11; transition-delay: 720ms; }
.bar.rapido, .gantt-legend .rapido::before { background: var(--yellow); }
.bar.tecnico, .gantt-legend .tecnico::before { background: #8f96bd; }
.bar.personas, .gantt-legend .personas::before { background: #ff8a7d; }
.bar.cumple, .gantt-legend .cumple::before { background: #7ee2a8; }
.gantt.anim-wait .bar { transform: scaleX(0); }
.gantt-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 10px 0 0; padding: 0; list-style: none; color: #cfd3e4; font-size: .78rem; }
.gantt-legend li { display: flex; align-items: center; gap: 8px; }
.gantt-legend li::before { width: 14px; height: 8px; border-radius: 3px; content: ""; }
@media (max-width: 820px) { .gantt-row { grid-template-columns: 1fr; gap: 4px; } .gantt-head .g-label { display: none; } }

/* ===== Páginas legales ===== */
.legal { display: grid; grid-template-columns: 220px 1fr; align-items: start; gap: clamp(28px, 5vw, 64px); }
.legal-toc { position: sticky; top: 110px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-size: .84rem; }
.legal-toc p { margin: 0 0 8px; color: var(--ink); font-weight: 800; }
.legal-toc ol { display: grid; gap: 6px; margin: 0; padding-left: 1.2em; color: var(--muted); }
.legal-toc a:hover { color: #8a6c00; }
.prose { max-width: 760px; }
.prose section { margin-bottom: 36px; scroll-margin-top: 100px; }
.prose h2 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.prose h3 { margin-top: 20px; font-size: 1.02rem; }
.prose p, .prose li { color: var(--muted); }
.legal-data, .legal-summary dl { display: grid; grid-template-columns: 170px 1fr; margin: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.legal-data dt, .legal-data dd, .legal-summary dt, .legal-summary dd { margin: 0; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: .9rem; }
.legal-data dt, .legal-summary dt { background: var(--surface); color: var(--ink); font-weight: 800; }
.legal-data dd, .legal-summary dd { color: var(--ink-2); }
.legal-data :nth-last-child(-n+2), .legal-summary dl :nth-last-child(-n+2) { border-bottom: 0; }
.legal-summary { margin-bottom: 40px; }
.legal-summary dl { border-color: rgba(255,204,0,.8); }
.legal-date { color: var(--muted); font-size: .84rem; font-style: italic; }
.footer-bottom a:hover { color: var(--yellow); }
@media (max-width: 820px) { .legal { grid-template-columns: 1fr; } .legal-toc { position: static; } }
@media (max-width: 560px) { .legal-data, .legal-summary dl { grid-template-columns: 1fr; } .legal-data dt, .legal-summary dt { border-bottom: 0; padding-bottom: 2px; } }

/* ===== Portada: herramientas interactivas y acceso a incidentes ===== */
.tools-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tool { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); background: rgba(255,255,255,.05); transition: transform var(--ease), border-color var(--ease), background var(--ease); }
.tool:hover { transform: translateY(-3px); border-color: var(--yellow); background: rgba(255,255,255,.09); }
.tool-tag { color: var(--yellow); font: 700 .7rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.tool strong { color: #fff; font-size: 1.05rem; line-height: 1.3; }
.tool strong::after { margin-left: 8px; color: var(--yellow); content: "→"; transition: margin var(--ease); }
.tool:hover strong::after { margin-left: 12px; }
.tool > span:last-child { color: #cfd3e4; font-size: .86rem; line-height: 1.5; }
a.hero-note { width: fit-content; color: var(--ink); font-weight: 700; transition: color var(--ease); }
a.hero-note:hover { color: #a3271a; }
.note-dot.urgent { background: #ff6b5b; box-shadow: 0 0 0 5px rgba(255,107,91,.18); animation: live 1.8s ease-out infinite; }
@media (max-width: 960px) { .tools-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tools-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .note-dot.urgent { animation: none; } }
.terminal.not-found { position: relative; bottom: auto; left: auto; width: 100%; transform: rotate(-2deg); }

@media (max-width: 960px) { .clock-items { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .clock-items { grid-template-columns: 1fr; } .clock-head { flex-direction: column; } }

/* NIS2: las diez medidas del artículo 21 */
.measures { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 18px; margin: 0 0 22px; padding: 0; list-style: none; counter-reset: m; }
.measures li { position: relative; padding: 16px 18px 16px 62px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--muted); font-size: .9rem; counter-increment: m; }
.measures li::before { content: counter(m, lower-alpha) ")"; position: absolute; left: 18px; top: 14px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--yellow); font: 800 .8rem var(--mono); }
.measures strong { color: var(--ink); }
@media (max-width: 760px) { .measures { grid-template-columns: 1fr; } }

/* Formulario de contacto (lo procesa worker/index.mjs) */
.contact-form { display: grid; gap: 14px; padding: 26px; border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); background: rgba(255,255,255,.05); }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label { display: grid; gap: 6px; color: #d4d7e5; font-size: .82rem; font-weight: 700; }
.contact-form label small { color: #aeb3cb; font-weight: 600; }
.contact-form input:not([type="checkbox"]), .contact-form select, .contact-form textarea { width: 100%; padding: 11px 13px; border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius-sm); background: #fff; color: var(--ink); font: inherit; font-size: .92rem; font-weight: 500; }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form :is(input, select, textarea):focus-visible { outline: 3px solid var(--yellow); outline-offset: 1px; }
.contact-form .cf-check { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; }
.cf-check a { color: #fff; text-decoration: underline; }
.cf-check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--yellow); }
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile:empty { display: none; }
.contact-form .btn { justify-self: start; }
.contact-form .btn:disabled { opacity: .6; cursor: wait; }
.contact .cf-status { min-height: 0; font-size: .88rem; font-weight: 700; }
.contact .cf-status:empty { display: none; }
.contact .cf-status.ok { color: #7ee2a8; }
.contact .cf-status.err { color: #ff8a7d; }
@media (max-width: 560px) { .cf-row { grid-template-columns: 1fr; } .contact-form { padding: 20px; } }
