/* ==========================================================================
   Gedesprin — hoja de estilos
   Estructura basada en el rediseño "Carum UK — Home v2"; identidad propia
   a partir del logo Gedesprin (azul marino, plata y azul, motivo isométrico).
   Accesibilidad objetivo: WCAG 2.2 AA. Sin recursos de terceros.
   ========================================================================== */

@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-var.woff2") format("woff2-variations"),
       url("/assets/fonts/montserrat-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Marca (del logo) */
  --navy: #0c1a2e;
  --navy-2: #12243f;
  --navy-deep: #08121f;
  --blue: #1565c0;          /* azul del logo */
  --blue-text: #0b5cad;     /* azul para texto sobre blanco (6,6:1) */
  --blue-dark: #084684;
  --blue-bright: #1f6fd1;   /* botón principal (4,9:1 con texto blanco) */
  --blue-light: #8cc0ff;    /* acentos sobre azul marino */
  --blue-soft: #e8f0fa;
  --silver: #d6dde7;        /* plata del logo, sobre azul marino */
  --silver-soft: #eef1f5;
  --steel: #3b4a5e;         /* plata oscurecida, para texto (9:1) */

  /* Neutros */
  --ink: #0f1b2d;
  --text: #334155;
  --muted: #566176;
  --on-navy: #e6ecf4;
  --on-navy-muted: #b9c5d6;
  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --border: #e2e7ee;
  --focus: #0f1b2d;         /* foco sobre fondos claros (17:1 sobre blanco) */
  --focus-on-dark: #f2b632; /* foco sobre azul marino (9:1) */

  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Montserrat", var(--font-body);
  --container: 1200px;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgba(12, 26, 46, .06), 0 12px 32px rgba(12, 26, 46, .07);
  --shadow-hero: 0 30px 60px rgba(0, 0, 0, .35);
  --section-y: clamp(4.5rem, 3rem + 4vw, 6.5rem);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65; color: var(--text); background: var(--bg); }
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2.375rem, 1.5rem + 3.4vw, 3.75rem); line-height: 1.06; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.875rem, 1.3rem + 2.2vw, 2.875rem); }
h3 { font-size: 1.375rem; }
p { margin: 0 0 1em; }
a { color: var(--blue-text); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: #fff; color: var(--ink); padding: .75rem 1.25rem; border-radius: var(--radius); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 1rem; }
/* Anillo de foco con contraste ≥ 3:1 en cada fondo (WCAG 1.4.11 / 2.4.7): amarillo sobre azul marino, oscuro sobre blanco */
.skip-link, .site-header, .site-footer, .on-navy { --focus: var(--focus-on-dark); }
.on-navy .form { --focus: #0f1b2d; }

.eyebrow { display: inline-block; font-family: var(--font-head); font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-text); margin-bottom: .9rem; }
.lead { font-size: 1.1875rem; color: var(--muted); }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 52px; padding: .85rem 1.6rem; font: inherit; font-family: var(--font-head); font-weight: 700; font-size: 1rem; line-height: 1.2; border-radius: var(--radius); border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--blue-bright); color: #fff; }
.btn-primary:hover { background: #185fb8; color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.06); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 80px; gap: 1rem; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 50px; width: auto; }
@media (max-width: 480px) { .logo img { height: 42px; } }
.nav-toggle { display: none; min-height: 44px; min-width: 44px; padding: .5rem .75rem; background: none; border: 1px solid rgba(255,255,255,.35); border-radius: var(--radius); font: inherit; font-weight: 600; color: #fff; cursor: pointer; align-items: center; gap: .5rem; }
.nav-toggle svg { width: 22px; height: 22px; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.primary-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem .85rem; color: var(--on-navy); text-decoration: none; font-weight: 500; border-radius: var(--radius); }
.primary-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.primary-nav .btn { margin-left: .5rem; color: #fff; min-height: 44px; padding: .55rem 1.2rem; background: var(--blue-bright); font-size: .9375rem; }
.primary-nav .btn:hover { background: #185fb8; } /* 6,3:1 con texto blanco */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.1); box-shadow: var(--shadow); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; padding: .75rem 1.25rem 1.25rem; gap: 0; }
  .primary-nav a { display: flex; padding: .85rem .5rem; border-bottom: 1px solid rgba(255,255,255,.1); border-radius: 0; }
  .primary-nav .btn { margin: 1rem 0 0; border-bottom: 0; border-radius: var(--radius); justify-content: center; }
}
.no-js .nav-toggle { display: none; }
.no-js .primary-nav { display: block; position: static; box-shadow: none; border: 0; }

/* ---------- Fondo isométrico (motivo del logo) ---------- */
.iso-bg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.on-navy { position: relative; background: var(--navy); color: var(--on-navy); overflow: hidden; }
.on-navy > .container { position: relative; }
.on-navy h1, .on-navy h2 { color: #fff; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(4rem, 3rem + 4vw, 7rem); background: radial-gradient(1200px 600px at 85% 40%, #173764 0%, var(--navy) 60%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.6rem; }
.chip { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); padding: .4rem .85rem; font-size: .875rem; font-weight: 600; color: var(--on-navy); }
.chip i { width: 9px; height: 9px; transform: rotate(45deg); background: var(--blue-light); }
.chip i.silver { background: var(--silver); }
.hero h1 { margin-bottom: 1.5rem; max-width: 15ch; }
.hl-blue { color: var(--blue-light); }
.hl-silver { color: var(--silver); background: linear-gradient(180deg, #ffffff 0%, #b8c3d1 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero .lead { color: var(--on-navy-muted); font-size: 1.25rem; max-width: 34em; margin-bottom: 2rem; }
.hero-note { margin: 1.25rem 0 0; font-size: .9375rem; color: var(--on-navy-muted); }

/* Ilustración del hero */
.hero-art { position: relative; height: 470px; max-width: 580px; width: 100%; justify-self: center; }
@media (max-width: 560px) { .hero-art { height: 520px; } }
.mock { position: absolute; background: #fff; color: var(--ink); border-radius: var(--radius-lg); box-shadow: var(--shadow-hero); overflow: hidden; font-size: .8125rem; }
.mock-browser { left: 0; top: 0; width: 86%; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; background: var(--silver-soft); }
.mock-bar b { width: 10px; height: 10px; border-radius: 50%; background: #c3ccd8; }
.mock-url { margin-left: 8px; flex: 1; height: 20px; border-radius: 5px; background: #fff; color: var(--muted); display: flex; align-items: center; padding: 0 8px; font-size: .6875rem; }
.mock-body { padding: 18px; display: flex; gap: 16px; }
.mock-lines { flex: 1; display: flex; flex-direction: column; gap: 9px; }
.mock-lines span { height: 9px; border-radius: 3px; background: #d9e0e9; }
.mock-lines span:first-child { height: 14px; width: 78%; background: var(--navy); }
.mock-lines .img { height: 76px; background: linear-gradient(135deg, var(--blue-soft), #dbe7f6); border-radius: 8px; margin-top: 6px; }
.widget { width: 156px; border: 1px solid var(--border); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 10px; font-weight: 600; }
.widget-title { display: flex; align-items: center; gap: 6px; color: var(--blue-text); }
.widget-title svg { width: 15px; height: 15px; }
.toggle-row { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.toggle { width: 28px; height: 16px; border-radius: 999px; background: var(--blue); position: relative; flex: none; }
.toggle::after { content: ""; position: absolute; right: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.toggle.off { background: #c6ceda; }
.toggle.off::after { right: auto; left: 2px; }
.mock-auto { right: 0; bottom: 0; width: 68%; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.auto-head { display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: .8125rem; }
.auto-head span { display: flex; align-items: center; gap: 7px; }
.auto-head svg { width: 16px; height: 16px; color: var(--steel); }
.live { font-size: .6875rem; font-weight: 700; color: var(--blue-dark); background: var(--blue-soft); padding: 3px 8px; border-radius: 999px; }
.auto-row { display: flex; align-items: center; gap: 11px; }
.auto-row .ico { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; background: var(--silver-soft); color: var(--steel); flex: none; }
.auto-row .ico.b { background: var(--blue-soft); color: var(--blue-text); }
.auto-row .ico svg { width: 15px; height: 15px; }
.auto-row .txt { flex: 1; }
.auto-row .ok { width: 16px; height: 16px; color: var(--blue); }
.auto-row .time { font-size: .6875rem; color: var(--muted); }

/* ---------- Cifras ---------- */
.facts { border-bottom: 1px solid var(--border); }
.facts ul { list-style: none; margin: 0; padding: 2.5rem 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.75rem; }
@media (max-width: 900px) { .facts ul { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .facts ul { grid-template-columns: 1fr; } }
.facts li { display: flex; flex-direction: column; gap: .2rem; border-left: 4px solid var(--blue); padding-left: 1rem; }
.facts li:nth-child(even) { border-left-color: #9aa8bb; }
.facts strong { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; }
.facts span { font-size: .9375rem; color: var(--muted); }

/* ---------- Secciones ---------- */
.section { padding-block: var(--section-y); }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 740px; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; text-align: center; }

/* ---------- Servicios ---------- */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
@media (max-width: 900px) { .services { grid-template-columns: 1fr; } }
.service { background: #fff; border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.service-art { height: 230px; display: flex; align-items: center; justify-content: center; gap: 22px; position: relative; overflow: hidden; }
.service-art.blue { background: linear-gradient(135deg, #1565c0 0%, #0d4a94 100%); }
.service-art.silver { background: linear-gradient(135deg, #e9edf2 0%, #c4cdd8 100%); }
.service-art .iso-bg { opacity: .18; }
.art-tile { position: relative; width: 150px; height: 150px; border-radius: 14px; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 10px 24px rgba(0,0,0,.15); }
.art-tile strong { font-family: var(--font-head); font-size: 3.75rem; color: var(--navy); line-height: 1; }
.art-tile span { font-size: .75rem; font-weight: 700; color: var(--blue-text); }
.art-stack { position: relative; display: flex; flex-direction: column; gap: 12px; }
.art-pill { width: 128px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: .8125rem; font-weight: 700; background: #fff; color: var(--navy); }
.art-pill.dark { background: var(--navy); color: #fff; }
.art-pill.glass { background: rgba(255,255,255,.18); color: #fff; }
.art-pill svg { width: 16px; height: 16px; }
.service-art svg.flow { position: relative; width: 380px; max-width: 90%; height: auto; }
.service-body { padding: 2.25rem 2.25rem 2rem; display: flex; flex-direction: column; gap: 1.1rem; flex: 1; }
.service-brand { font-family: var(--font-head); font-size: .9375rem; font-weight: 700; color: var(--blue-text); }
.service-brand.steel { color: var(--steel); }
.service h3 { font-size: 1.875rem; margin: 0; }
.service p { margin: 0; color: var(--muted); font-size: 1.0625rem; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tags li { background: var(--blue-soft); color: var(--blue-dark); font-size: .875rem; font-weight: 600; padding: .4rem .75rem; border-radius: 6px; }
.tags.steel li { background: var(--silver-soft); color: var(--steel); }
.service-link { margin-top: auto; display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; text-decoration: none; padding: .75rem 0 0; color: var(--blue-dark); }
.service-link.steel { color: var(--steel); }
.service-link:hover { text-decoration: underline; }

/* ---------- Proceso ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.steps li { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; display: flex; flex-direction: column; gap: .9rem; }
.step-num { width: 58px; height: 58px; display: grid; place-items: center; font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; color: #fff; background: var(--blue); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.steps li:nth-child(2) .step-num { background: var(--steel); }
.steps li:nth-child(3) .step-num { background: var(--navy); }
.steps h3 { margin: 0; font-size: 1.375rem; }
.steps p { margin: 0; color: var(--muted); }

/* ---------- Sobre nosotros ---------- */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } .about-art { max-width: 280px; } }
.about-art { justify-self: center; width: 100%; max-width: 340px; }
.about p { font-size: 1.125rem; color: var(--muted); }
.about-brands { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.about-brands a { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .5rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; font-weight: 700; color: var(--ink); text-decoration: none; }
.about-brands a:hover { border-color: var(--blue); color: var(--blue-text); }
.about-brands i { width: 9px; height: 9px; transform: rotate(45deg); background: var(--blue); }
.about-brands i.silver { background: #9aa8bb; }

/* ---------- Contacto ---------- */
.contact { padding-block: var(--section-y); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact h2 { font-size: clamp(2.125rem, 1.4rem + 2.8vw, 3.25rem); line-height: 1.06; }
.contact .lead { color: var(--on-navy-muted); }
.contact-direct { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .9rem; }
.contact-direct a, .contact-direct span.item { display: inline-flex; align-items: center; gap: .9rem; color: #fff; text-decoration: none; font-size: 1.0625rem; font-weight: 500; min-height: 48px; }
.contact-direct a:hover { text-decoration: underline; color: #fff; }
.contact-direct .ico { width: 48px; height: 48px; border-radius: 10px; background: rgba(255,255,255,.1); display: grid; place-items: center; flex: none; }
.contact-direct svg { width: 22px; height: 22px; }

.form { background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: var(--shadow-hero); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 1.15rem; }
.field > label, .fieldset legend { display: block; font-weight: 600; color: var(--ink); margin-bottom: .45rem; font-size: .9375rem; padding: 0; }
.req { color: #b42318; }
.field input, .field textarea { width: 100%; min-height: 50px; padding: .75rem .9rem; font: inherit; font-size: 1rem; color: var(--ink); background: #f8fafc; border: 1px solid #8a94a6; border-radius: var(--radius); }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--ink); background: #fff; }
[aria-invalid="true"] { border-color: #b42318 !important; border-width: 2px !important; }
.field-error { display: block; color: #b42318; font-size: .875rem; margin-top: .35rem; }
.field-error:empty { display: none; }
.fieldset { border: 0; margin: 0 0 1.15rem; padding: 0; }
.options { display: flex; flex-wrap: wrap; gap: .6rem; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.option label { display: inline-flex; align-items: center; gap: .55rem; min-height: 46px; padding: .55rem 1rem; border: 1px solid #8a94a6; border-radius: var(--radius); font-weight: 600; font-size: .9375rem; cursor: pointer; background: #fff; }
.option label::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #8a94a6; flex: none; }
.option input:checked + label { border: 2px solid var(--blue); background: var(--blue-soft); padding: calc(.55rem - 1px) calc(1rem - 1px); }
.option input:checked + label::before { border-color: var(--blue); background: radial-gradient(circle, var(--blue) 0 4px, #fff 5px); }
.option input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.consent { display: grid; grid-template-columns: 26px 1fr; gap: .75rem; align-items: start; font-size: .9375rem; color: var(--text); margin-bottom: 1.5rem; }
.consent input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--blue); }
.form .btn { width: 100%; }
.form-note { font-size: .8125rem; color: var(--muted); margin: 1.1rem 0 0; }
.form-status { margin-top: 1rem; padding: .9rem 1rem; border-radius: var(--radius); font-weight: 600; }
.form-status:empty { display: none; }
.form-status.ok { background: var(--blue-soft); color: var(--blue-dark); }
.form-status.err { background: #fdecea; color: #8a1c12; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Páginas legales ---------- */
.page-hero { padding-block: clamp(3rem, 2rem + 3vw, 4.5rem); }
.page-hero h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); margin-bottom: .4rem; }
.page-hero p { color: var(--on-navy-muted); margin: 0; }
.prose { max-width: 780px; }
.prose h2 { font-size: 1.5rem; margin-top: 2.5rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .9375rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: .75rem; border: 1px solid var(--border); }
.prose th { background: var(--bg-alt); color: var(--ink); width: 32%; }
.todo { background: #fff4d6; color: #6b4a00; padding: 0 .3em; border-radius: 4px; font-weight: 600; }

/* ---------- Pie ---------- */
.site-footer { background: var(--navy-deep); color: var(--on-navy-muted); font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; padding-block: 3.5rem 2.5rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 48px; width: auto; margin-bottom: 1.25rem; }
.footer-brand p { margin: 0; line-height: 1.7; }
.site-footer h2 { color: #fff; font-family: var(--font-head); font-size: .875rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer a { color: var(--on-navy); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 1.25rem 2rem; font-size: .875rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-bottom p { margin: 0; }
.option input[aria-invalid="true"] + label { border: 2px solid #b42318; }

/* ==========================================================================
   Componentes de las páginas interiores (estructura de carum-uk.com)
   ========================================================================== */

/* Navegación: página actual */
.primary-nav a[aria-current="page"]:not(.btn) { color: #fff; box-shadow: inset 0 -3px 0 var(--blue-light); border-radius: 0; }
.primary-nav .btn[aria-current="page"] { box-shadow: 0 0 0 2px #fff; }
@media (max-width: 900px) { .primary-nav a[aria-current="page"]:not(.btn) { box-shadow: inset 3px 0 0 var(--blue-light); padding-left: .9rem; } }

/* Hero de páginas interiores */
.inner-hero { padding-block: clamp(3.5rem, 2.5rem + 3.5vw, 5.5rem); background: radial-gradient(1000px 500px at 85% 30%, #173764 0%, var(--navy) 60%); }
.inner-hero .eyebrow, .on-navy .eyebrow { color: var(--blue-light); }
.inner-hero h1 { max-width: 20ch; }
.inner-hero .lead { color: var(--on-navy-muted); max-width: 40em; }
.anchor-links { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.anchor-links a { display: inline-flex; flex-direction: column; min-height: 44px; padding: .7rem 1.1rem; border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius); color: #fff; text-decoration: none; font-weight: 700; line-height: 1.3; }
.anchor-links a span { font-weight: 400; font-size: .875rem; color: var(--on-navy-muted); }
.anchor-links a:hover { border-color: #fff; background: rgba(255,255,255,.06); color: #fff; }

/* Ventana de código + confirmación (visual del hero) */
.code-art { position: relative; max-width: 560px; width: 100%; justify-self: center; padding-bottom: 70px; }
.code-win { background: #0a1424; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-lg); box-shadow: var(--shadow-hero); overflow: hidden; }
.code-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.code-bar b { width: 10px; height: 10px; border-radius: 50%; background: #3a4b63; }
.code-bar span { margin-left: 10px; font-size: .8125rem; color: var(--on-navy-muted); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.code-win pre { margin: 0; padding: 1.25rem 1.4rem 1.5rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .875rem; line-height: 1.75; color: #dbe3ee; overflow-x: auto; }
.code-win .k { color: #8cc0ff; } .code-win .f { color: #ffffff; font-weight: 600; } .code-win .s { color: #b9c5d6; } .code-win .c { color: #7d8ba0; }
.confirm { position: absolute; right: -8px; bottom: 0; background: #fff; color: var(--ink); border-radius: var(--radius-lg); box-shadow: var(--shadow-hero); padding: 1rem 1.15rem; display: flex; align-items: center; gap: .9rem; min-width: 260px; }
.confirm .tick { width: 40px; height: 40px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; flex: none; }
.confirm .tick svg { width: 22px; height: 22px; }
.confirm strong { display: block; font-size: .9375rem; }
.confirm span.sub { font-size: .8125rem; color: var(--muted); }
.confirm .mini-btn { margin-left: auto; font-size: .8125rem; font-weight: 700; color: #fff; background: var(--blue-bright); padding: .45rem .75rem; border-radius: 6px; white-space: nowrap; }
.code-tag { position: absolute; left: 0; bottom: 18px; display: inline-flex; align-items: center; gap: .45rem; font-size: .8125rem; font-weight: 700; color: var(--on-navy); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); padding: .4rem .75rem; }
.code-tag svg { width: 16px; height: 16px; color: var(--blue-light); }
@media (max-width: 560px) { .confirm { position: relative; right: 0; margin-top: -30px; margin-left: 12px; min-width: 0; } .code-art { padding-bottom: 0; } .code-tag { position: static; margin-top: 1rem; } }

/* Franja de confianza */
.trust { border-bottom: 1px solid var(--border); }
.trust ul { list-style: none; margin: 0; padding: 2.25rem 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.75rem; }
@media (max-width: 900px) { .trust ul { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .trust ul { grid-template-columns: 1fr; } }
.trust li { display: flex; gap: .85rem; align-items: flex-start; }
.trust .ico { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue-text); flex: none; }
.trust li:nth-child(even) .ico { background: var(--silver-soft); color: var(--steel); }
.trust .ico svg { width: 22px; height: 22px; }
.trust strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: 1rem; line-height: 1.3; }
.trust span.txt { font-size: .9375rem; color: var(--muted); line-height: 1.45; }

/* Rejillas y tarjetas */
.grid { display: grid; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1040px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; height: 100%; box-shadow: 0 1px 2px rgba(12,26,46,.04); }
.section-alt .card { border-color: transparent; box-shadow: var(--shadow); }
.card h3 { font-size: 1.1875rem; margin-bottom: .5rem; }
.card p { color: var(--muted); margin: 0; font-size: 1rem; }
.card .ico { width: 50px; height: 50px; display: grid; place-items: center; margin-bottom: 1.25rem; color: #fff; background: var(--blue); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.card:nth-child(even) .ico { background: var(--steel); }
.card .ico svg { width: 22px; height: 22px; }
.section-foot { margin-top: 2.25rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; text-decoration: none; color: var(--blue-text); }
.link-arrow:hover { text-decoration: underline; }
.link-arrow svg { width: 18px; height: 18px; }

/* Bloque dividido + lista con check */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.check-list li { display: grid; grid-template-columns: 30px 1fr; gap: .9rem; align-items: start; }
.check-list .ck { width: 30px; height: 30px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; }
.check-list .ck svg { width: 18px; height: 18px; }
.check-list strong { display: block; color: var(--ink); }
.check-list span.txt { color: var(--muted); }

/* Tarjetas de proyecto */
.project { display: flex; flex-direction: column; gap: .9rem; padding: 0; overflow: hidden; }
.project-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.75rem; color: #fff; }
.project-top { background: #fff; color: var(--ink); border-bottom: 1px solid var(--border); }
.project-top.blue { box-shadow: inset 0 4px 0 var(--blue); }
.project-top.silver { box-shadow: inset 0 4px 0 #9aa8bb; }
.project-top .brand-logo { height: 36px; width: auto; }
.project-top strong { font-family: var(--font-head); font-size: 1.375rem; }
.project-badges { display: flex; gap: .4rem; flex-wrap: wrap; }
.project-badges span { font-size: .75rem; font-weight: 700; padding: .25rem .55rem; border-radius: 5px; background: var(--blue-soft); color: var(--blue-dark); }
.project-top.silver .project-badges span { background: var(--silver-soft); color: var(--steel); }
.project-body { padding: 0 1.75rem 1.75rem; display: flex; flex-direction: column; gap: .9rem; flex: 1; }
.project-body .link-arrow { margin-top: auto; }

/* Productos (página Proyectos) */
.product { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; padding-block: 3.5rem; border-top: 1px solid var(--border); }
.product:first-child { border-top: 0; padding-top: 0; }
.product:last-child { padding-bottom: 0; }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; } }
.product h2 { margin-bottom: 1rem; }
.product h3 { font-size: 1.125rem; margin: 1.5rem 0 .4rem; }
.product-box { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; }
.product-box .check-list { gap: .9rem; }
.product-logo { margin: 0 0 1rem; }
.product-logo .brand-logo { height: 48px; width: auto; }

/* Pasos (4 columnas) */
.steps.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1040px) { .steps.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps.four { grid-template-columns: 1fr; } }
.steps.four li:nth-child(4) .step-num { background: #6c7c92; }
.section-alt .steps li { background: #fff; }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:first-child { border-top: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; padding: 1.3rem 2.5rem 1.3rem 0; position: relative; font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 1.0625rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: .5rem; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--muted); padding-bottom: 1.3rem; margin: 0; max-width: 70ch; }

/* Datos destacados (Sobre nosotros) */
.key-details { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 560px) { .key-details { grid-template-columns: 1fr; } }
.key-details li { border-left: 4px solid var(--blue); padding-left: .9rem; }
.key-details li:nth-child(2) { border-left-color: #9aa8bb; }
.key-details strong { display: block; font-family: var(--font-head); font-size: 1.25rem; color: var(--ink); }
.key-details span { color: var(--muted); font-size: .9375rem; }

/* Tabla de datos de empresa */
.data-table { width: 100%; max-width: 760px; border-collapse: collapse; font-size: 1rem; background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.data-table th, .data-table td { text-align: left; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.data-table tr:last-child th, .data-table tr:last-child td { border-bottom: 0; }
.data-table th { width: 36%; color: var(--ink); font-weight: 600; }

/* Banda de llamada a la acción */
.cta-band { padding-block: clamp(3.5rem, 2.5rem + 3vw, 5rem); }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { margin-bottom: .35rem; }
.cta-band p { color: var(--on-navy-muted); margin: 0; }

/* Enlaces a proyectos en contacto */
.project-links { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .6rem; }
.project-links a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 56px; padding: .75rem 1rem; border: 2px solid transparent; border-radius: var(--radius); background: #fff; color: var(--ink); text-decoration: none; }
.project-links .brand-logo { height: 28px; width: auto; }
.project-links a:hover { border-color: var(--blue-light); color: var(--ink); }
.project-links a span { color: var(--muted); font-size: .875rem; }
.contact h2.subhead { color: #fff; font-size: 1.125rem; line-height: 1.3; letter-spacing: 0; margin: 2.25rem 0 0; }

/* Modo de alto contraste (Windows): el texto con degradado recortado quedaría invisible */
@media (forced-colors: active) {
  .hl-silver { background: none; -webkit-text-fill-color: currentColor; }
}

/* El logo de Altira es más compacto: un poco más alto para que pese visualmente lo mismo que el de accedeMe */
.project-top .brand-altira { height: 42px; }
.product-logo .brand-altira { height: 58px; }
.project-links .brand-altira { height: 34px; }
