/* ShieldGuard AI · Páginas interiores (sobre nosotros, contacto y legales), con el mismo estilo que la portada. */
@font-face { font-family: "Libre Franklin"; font-weight: 400 700; font-display: swap; src: url(fonts/libre-franklin.woff2) format("woff2"); }

:root {
  --navy: #0a1258;
  --text: #2e3554;
  --muted: #5a6080;
  --line: #e2e5ee;
  --pale: #f5f6fa;
  --violet: #5b35d5;
  --small: 0.875rem;
  --lateral: max(clamp(20px, 4.4vw, 64px), calc((100vw - 1320px) / 2));
  --seccion: clamp(32px, 3.2vw, 48px);
  --radio: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--text); font: 400 1.0625rem/1.6 "Libre Franklin", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, dl, dd, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
h1, h2, h3, h4, dt { color: var(--navy); }
h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; max-width: 24em; }
h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2.125rem); font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; }
h3, h4, dt { font-size: 1.125rem; font-weight: 600; line-height: 1.3; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
svg { display: block; width: 22px; height: 22px; flex: none; }

/* Lo que no se usa en este estilo */
.preloader, .progress, .hero-bg, .chapter { display: none !important; }

.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: var(--lateral); top: 8px; z-index: 60; background: var(--navy); color: #fff; padding: 10px 16px; }
.container { padding: 0 var(--lateral); }
.link, main p a, main li a, main td a, main dd a { color: var(--navy); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.link:hover, main p a:hover { color: var(--violet); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: #fff; color: var(--navy); font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.3; padding: 13px 22px; border: 1px solid #b9bed2; border-radius: var(--radio); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--pale); border-color: var(--navy); }
.btn--primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn--primary:hover { background: #060c40; border-color: #060c40; }
.btn--violet { background: #fff; border-color: #fff; color: var(--navy); }
.btn--violet:hover { background: #e7e9f4; border-color: #e7e9f4; }
.btn--ghost-dark { background: transparent; border-color: #8a90b8; color: #fff; }
.btn--ghost-dark:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.btn--sm { padding: 9px 16px; font-size: 0.9375rem; }
.btn__icon { display: inline-flex; }
.btn__icon svg { width: 18px; height: 18px; }

/* Cabecera */
.header { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; gap: 28px; padding-top: 12px; padding-bottom: 12px; }
.header__logo { margin-right: auto; }
.header__logo img { height: 40px; width: auto; }
.nav { display: flex; gap: 26px; }
.nav a { color: var(--navy); text-decoration: none; font-size: 0.9375rem; font-weight: 500; }
.nav a:hover { color: var(--violet); }
.header__actions { display: flex; align-items: center; gap: 12px; }
.burger { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; }
.mobile-menu { display: none; }
.mobile-menu.is-open { display: flex; flex-direction: column; gap: 10px; position: fixed; inset: 65px 0 0; z-index: 39; background: #fff; padding: 16px var(--lateral); overflow: auto; }
.mobile-menu nav a { display: block; color: var(--navy); font-size: 1.125rem; font-weight: 500; padding: 12px 0; text-decoration: none; border-bottom: 1px solid var(--line); }

/* Entrada de página */
.page-hero { background: var(--pale); border-bottom: 1px solid var(--line); padding: var(--seccion) 0; }
.page-hero p { margin-top: 14px; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); line-height: 1.55; max-width: 46em; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; font-size: var(--small); color: var(--muted); }
.breadcrumb a { color: var(--navy); }

/* Bloques */
main > section:not(.page-hero) { padding: var(--seccion) 0 !important; }
main > section:not(.page-hero) + section { border-top: 1px solid var(--line); }
.bg-paper-2 { background: var(--pale); }
.thesis, .trust { display: grid; grid-template-columns: 5fr 7fr; gap: 28px 48px; align-items: start; }
.thesis__statement { font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; color: var(--navy); }
.principles { display: flex; flex-direction: column; gap: 20px; }
.principles h3 + p, .trust__list h3 + p { margin-top: 4px; }
.trust p { margin-top: 12px; }
.trust .btn { margin-top: 20px; }
.trust__list { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 40px; }
.trust__list li { display: flex; gap: 12px; align-items: flex-start; }
.trust__list li > svg { color: var(--navy); margin-top: 2px; }
.trust__list p { margin-top: 4px; }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radio); overflow: hidden; }
.contact-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; background: #fff; padding: 24px; }
.contact-card h2 { font-size: 1.25rem; }
.contact-card p { flex: 1; }
.tile__icon { color: var(--navy); }

/* Llamada final */
.cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 40px; background: var(--navy); color: #d6daf0; border-radius: var(--radio); padding: clamp(24px, 3vw, 40px); }
.cta h2 { color: #fff; }
.cta p { margin-top: 8px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Textos legales */
.legal__texto { max-width: 46rem; }
.legal__texto h2 { font-size: 1.375rem; letter-spacing: -0.01em; margin: 32px 0 10px; }
.legal__texto h2:first-child { margin-top: 0; }
.legal__texto h3 { margin: 20px 0 6px; }
.legal__texto p { margin-bottom: 12px; }
.legal__texto ul, .legal__texto ol { margin: 0 0 14px; padding-left: 22px; }
.legal__texto ul { list-style: disc; }
.legal__texto ol { list-style: decimal; }
.legal__texto li { margin-bottom: 6px; }
.legal__datos { display: grid; grid-template-columns: minmax(130px, auto) 1fr; gap: 6px 20px; margin-bottom: 18px; }
.legal__datos dt { font-size: 1rem; }
.legal__tabla { overflow-x: auto; margin-bottom: 16px; }
table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
th { text-align: left; font-weight: 600; color: var(--navy); padding: 10px 14px 10px 0; }
td { padding: 10px 14px 10px 0; border-top: 1px solid var(--line); vertical-align: top; }
.legal__fecha { margin-top: 28px; color: var(--muted); font-size: var(--small); }

/* Pie */
.footer { border-top: 1px solid var(--line); padding: 40px 0 24px; font-size: var(--small); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px 40px; }
.footer__brand img { height: 44px; width: auto; }
.footer__brand p { margin-top: 12px; max-width: 30em; color: var(--muted); }
.footer h4 { font-size: var(--small); margin-bottom: 8px; }
.footer li { padding: 3px 0; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.footer button:hover { text-decoration: underline; }
.socials { display: flex; gap: 14px; margin-top: 14px; color: var(--navy); }
.socials svg { width: 20px; height: 20px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 22px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* WhatsApp y cookies */
.whatsapp { position: fixed; right: 20px; bottom: 20px; z-index: 30; display: flex; background: #fff; color: var(--navy); padding: 10px; border: 1px solid #b9bed2; border-radius: var(--radio); }
.whatsapp:hover { background: var(--pale); }
.consent { position: fixed; left: 20px; bottom: 20px; z-index: 50; max-width: 420px; background: #fff; border: 1px solid #b9bed2; border-radius: var(--radio); padding: 20px; display: none; }
.consent.is-on { display: block; }
.consent h2 { font-size: 1.125rem; }
.consent p { margin: 6px 0 14px; font-size: var(--small); line-height: 1.5; }
.consent a { text-decoration: underline; }
.consent__actions { display: flex; gap: 8px; }

/* Aparición discreta al bajar */
.js .reveal { opacity: 0; transform: translateY(10px); transition: opacity .45s ease-out, transform .45s ease-out; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal { --d: 0ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1100px) {
  .nav, .header__actions .btn--outline { display: none; }
  .burger { display: block; }
  .thesis, .trust { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .header__logo img { height: 32px; }
  .header__inner { gap: 10px; }
  .trust__list, .contact-grid { grid-template-columns: 1fr; }
  .legal__datos { grid-template-columns: 1fr; gap: 2px; }
  .legal__datos dd { margin-bottom: 10px; }
  .whatsapp { right: 12px; bottom: 12px; }
  .consent { left: 8px; right: 8px; bottom: 8px; max-width: none; }
}
