/* ============================================================
   CYD — Sistema de diseño compartido
   Light-first · derivado del logo (azul/cian/verde sobre claro)
   Fonts: Barlow Condensed (display) · Barlow (cuerpo)
============================================================ */
:root {
  --bg: #EEF2F7;
  --surface: #FFFFFF;
  --bg-3: #E4EAF2;
  --navy: #0E2741;
  --navy-2: #143150;
  --ink: #0F1E33;
  --ink-2: #54647C;
  --ink-3: #8492a6;
  --blue: #1565C0;
  --blue-bright: #2479e0;
  --blue-deep: #0E4A94;
  --cyan: #00BCD4;
  --cyan-ink: #0792a6;
  --green: #2E8B57;
  --line: rgba(15,30,51,0.12);
  --line-2: rgba(15,30,51,0.07);
  --line-d: rgba(255,255,255,0.14);
  --shadow: 0 22px 48px -28px rgba(21,101,192,0.45);
  --shadow-card: 0 18px 44px -28px rgba(15,30,51,0.42);
  --shadow-nav: 0 8px 30px -20px rgba(15,30,51,0.5);
  --maxw: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Barlow', system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--cyan); color: var(--navy); }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; }
/* Imagen de contenido: rellena su contenedor (reemplaza al antiguo <image-slot>). */
.cyd-img { display: block; width: 100%; height: 100%; object-fit: cover; background: rgba(0, 0, 0, 0.05); }

.display { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: 0.01em; line-height: 0.94; }
.eyebrow {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.3em; font-size: 0.82rem; color: var(--cyan-ink);
  display: inline-flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--cyan); }
.eyebrow.on-dark { color: var(--cyan); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }
section { position: relative; }

/* ---------- Buttons ---------- */
.btn {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; font-size: 1rem; padding: 15px 30px;
  display: inline-flex; align-items: center; gap: 12px; border: 1.5px solid transparent;
  cursor: pointer; transition: all 0.25s var(--ease); background: none; color: var(--ink);
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--blue-bright); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan-ink); }
.btn-ghost.on-dark { color: #fff; border-color: var(--line-d); }
.btn-ghost.on-dark:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-light { background: #fff; color: var(--blue); box-shadow: var(--shadow); }
.btn-light:hover { background: var(--bg); transform: translateY(-2px); }
.btn svg { width: 17px; height: 17px; }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Speed lines (motivo del logo) ---------- */
.speedlines { position: absolute; pointer-events: none; display: flex; flex-direction: column; gap: 9px; }
.speedlines span { height: 4px; display: block; transform: skewX(-32deg); }
.speedlines span:nth-child(1) { width: 86px; background: var(--green); }
.speedlines span:nth-child(2) { width: 120px; background: var(--cyan); }
.speedlines span:nth-child(3) { width: 64px; background: var(--blue); }

/* ---------- Logo ---------- */
.logo { display: flex; align-items: center; gap: 13px; }
.logo .ticks { display: flex; flex-direction: column; gap: 3px; }
.logo .ticks span { height: 2.5px; display: block; transform: skewX(-32deg); }
.logo .ticks span:nth-child(1) { width: 12px; background: var(--green); }
.logo .ticks span:nth-child(2) { width: 20px; background: var(--cyan); }
.logo .ticks span:nth-child(3) { width: 9px;  background: var(--blue); }
.logo .word { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 1.85rem; letter-spacing: 0.04em; line-height: 1; color: var(--ink); }
.logo .tag { font-size: 0.58rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; margin-top: 3px; }
.logo-stack { display: flex; flex-direction: column; }
.logo.on-dark .word { color: #fff; }
.logo.on-dark .tag { color: rgba(255,255,255,0.6); }

/* ---------- Navbar ---------- */
header { position: fixed; top: 0; left: 0; right: 0; z-index: 200; border-bottom: 1px solid transparent; transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease); }
header::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--green) 0 33%, var(--cyan) 33% 66%, var(--blue) 66% 100%); z-index: 1; }
header.scrolled, header.solid { background: rgba(255,255,255,0.94); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-nav); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links > a, .nav-item > a {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.14em; font-size: 0.95rem; color: var(--ink-2);
  position: relative; padding: 6px 0; transition: color 0.2s var(--ease);
  display: inline-flex; align-items: center; gap: 7px;
}
.nav-links > a::after, .nav-item > a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--cyan); transition: width 0.25s var(--ease); }
.nav-links > a:hover, .nav-item > a:hover { color: var(--ink); }
.nav-links > a:hover::after, .nav-item > a:hover::after { width: 100%; }
.nav-links > a.active, .nav-item.active > a { color: var(--ink); }
.nav-links > a.active::after, .nav-item.active > a::after { width: 100%; }
.nav-item > a .chev { width: 13px; height: 13px; transition: transform 0.25s var(--ease); }
.nav-cta { display: flex; align-items: center; gap: 22px; }
.nav-cta .btn { padding: 12px 24px; font-size: 0.92rem; white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 5px 0; transition: 0.25s; }

/* ---------- Mega-menú ---------- */
.nav-item { position: static; align-self: stretch; display: flex; align-items: center; }
.mega {
  position: absolute; top: 84px; left: 50%; transform: translateX(-50%) translateY(10px);
  width: min(860px, calc(100vw - 48px));
  background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 70px -32px rgba(15,30,51,0.55);
  display: grid; grid-template-columns: 340px 1fr; opacity: 0; visibility: hidden;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease); z-index: 210;
}
.nav-item:hover .mega, .mega:hover, .nav-item.open .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-item:hover > a .chev { transform: rotate(180deg); }
.mega-cats { background: var(--bg); border-right: 1px solid var(--line); padding: 14px; }
.mega-cat {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px; cursor: pointer; text-decoration: none;
  border: 1px solid transparent; transition: background 0.18s var(--ease), border-color 0.18s var(--ease); position: relative;
}
.mega-cat .cn { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 0.92rem; color: var(--blue); letter-spacing: 0.06em; min-width: 22px; }
.mega-cat .ct { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; font-size: 1.02rem; color: var(--ink); line-height: 1.05; flex: 1; }
.mega-cat .ca { width: 16px; height: 16px; color: var(--ink-3); transition: transform 0.18s var(--ease); }
.mega-cat:hover, .mega-cat.active { background: #fff; border-color: var(--line); }
.mega-cat.active { box-shadow: inset 3px 0 0 var(--cyan); }
.mega-cat.active .ca { transform: translateX(3px); color: var(--blue); }
.mega-panel { padding: 30px 34px; display: none; }
.mega-panel.active { display: block; animation: megaFade 0.25s var(--ease); }
@keyframes megaFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.mega-panel h4 { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.78rem; color: var(--ink-3); margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.mega-panel a { display: flex; align-items: center; gap: 12px; padding: 11px 0; color: var(--ink); font-size: 1.05rem; transition: color 0.18s var(--ease), padding 0.18s var(--ease); }
.mega-panel a::before { content: ""; width: 0; height: 1.5px; background: var(--cyan); transition: width 0.2s var(--ease); }
.mega-panel a:hover { color: var(--blue); padding-left: 4px; }
.mega-panel a:hover::before { width: 16px; }

/* ---------- Mobile menu ---------- */
.mobile-menu { position: fixed; inset: 84px 0 0 0; background: #fff; z-index: 190; transform: translateX(100%); transition: transform 0.35s var(--ease); padding: 26px 24px 40px; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.mobile-menu.open { transform: translateX(0); }
/* Ítems de primer nivel (Inicio, Nosotros, Contacto) y cabecera de acordeón */
.mobile-menu > .mm-link, .mm-acc-head { display: flex; align-items: center; justify-content: space-between; width: 100%; font-family: 'Barlow Condensed', sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-size: 1.3rem; padding: 17px 0; border-bottom: 1px solid var(--line); color: var(--ink); background: none; border-left: 0; border-right: 0; border-top: 0; cursor: pointer; }
.mobile-menu > .mm-link.active, .mm-acc-head.active { color: var(--blue); }
.mm-acc-head .chev { width: 18px; height: 18px; color: var(--ink-3); transition: transform 0.3s var(--ease); }
.mm-acc.open .mm-acc-head { color: var(--blue); }
.mm-acc.open .mm-acc-head .chev { transform: rotate(180deg); color: var(--blue); }
/* Cuerpo colapsable del acordeón */
.mm-acc-body { max-height: 0; overflow: hidden; transition: max-height 0.32s var(--ease); }
.mm-all { display: block; padding: 14px 0 8px; color: var(--blue); font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.95rem; }
.mm-cat-head { display: block; padding: 12px 0 6px; color: var(--blue); font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 1rem; }
.mm-svc { display: block; padding: 10px 0 10px 16px; color: var(--ink-2); font-size: 1.05rem; }
.mm-svc:active { color: var(--blue); }
.mm-acc-body > .mm-cat-head + .mm-svc { border-top: 0; }
.mobile-menu .btn { display: flex; width: 100%; justify-content: center; margin-top: 26px; border: 0; padding: 17px 24px; }
.mobile-menu .btn-primary { background: var(--blue); color: #fff; }
/* Contacto rápido dentro del menú */
.mm-contact { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.mm-contact .btn-wa { justify-content: center; padding: 15px; }
.mm-call { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1.5px solid var(--line-d); padding: 14px; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 1rem; color: var(--ink); }
.mm-call svg { width: 18px; height: 18px; color: var(--blue); }
.mm-call:active { border-color: var(--blue); color: var(--blue); }
/* Ocultar WhatsApp flotante mientras el menú móvil está abierto */
body.menu-open #wa-float { opacity: 0; visibility: hidden; pointer-events: none; }

/* Hamburguesa → X */
.nav-toggle span { transition: transform 0.28s var(--ease), opacity 0.2s var(--ease); transform-origin: center; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Page hero (interior) ---------- */
.page-hero { padding: 150px 0 70px; background: var(--navy); color: #fff; position: relative; overflow: hidden; border-bottom: 4px solid var(--blue); }
.page-hero .hero-grid { position: absolute; inset: 0; z-index: 1;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 64px 64px; -webkit-mask-image: radial-gradient(120% 100% at 80% 0%, #000, transparent 70%); mask-image: radial-gradient(120% 100% at 80% 0%, #000, transparent 70%); }
.page-hero .speedlines { top: 50%; right: 5%; transform: translateY(-50%) scale(2.2); transform-origin: right; opacity: 0.85; }
.page-hero .inner { position: relative; z-index: 2; max-width: 820px; }
.page-hero .crumbs { font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.82rem; color: rgba(255,255,255,0.55); margin-bottom: 20px; display: flex; gap: 10px; align-items: center; }
.page-hero .crumbs a:hover { color: var(--cyan); }
.page-hero .crumbs .sep { color: var(--cyan); }
.page-hero h1 { font-size: clamp(2.8rem, 6vw, 5rem); color: #fff; }
.page-hero h1 .accent { color: var(--cyan); }
.page-hero .lead { color: rgba(255,255,255,0.7); font-size: 1.2rem; max-width: 620px; margin-top: 22px; }

/* ---------- Section scaffold ---------- */
.section-pad { padding: 110px 0; }
.section-head { max-width: 720px; margin-bottom: 60px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .underline { margin-left: auto; margin-right: auto; }
.section-head h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); margin-top: 20px; }
.section-head .underline { width: 56px; height: 3px; background: var(--cyan); margin-top: 22px; }
.section-head p { color: var(--ink-2); margin-top: 22px; font-size: 1.1rem; max-width: 600px; }
.section-head.center p { margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */
footer { position: relative; background: var(--navy); color: #fff; padding: 0 0 36px; }
/* Acento de marca (motivo speedlines: verde · cian · azul) */
.footer-accent { display: flex; height: 4px; }
.footer-accent span:nth-child(1) { flex: 2; background: var(--green); }
.footer-accent span:nth-child(2) { flex: 3; background: var(--cyan); }
.footer-accent span:nth-child(3) { flex: 5; background: var(--blue); }
.footer-top { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.25fr; gap: 44px; padding: 70px 0 48px; border-bottom: 1px solid var(--line-d); }
.footer-logo { display: inline-block; }
.footer-logo img { width: 210px; height: auto; display: block; }
.footer-lema { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; text-transform: uppercase; font-size: 1.18rem; line-height: 1.25; max-width: 340px; margin-top: 20px; color: #fff; }
.footer-lema .q { color: var(--cyan); }
.footer-wa { margin-top: 26px; }
.footer-col h5 { font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.82rem; color: rgba(255,255,255,0.5); margin-bottom: 18px; }
.footer-col a, .footer-col p { color: rgba(255,255,255,0.72); font-size: 1rem; display: block; margin-bottom: 11px; transition: color 0.2s var(--ease); }
.footer-col > a { width: fit-content; position: relative; }
.footer-col > a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px; background: var(--cyan); transition: width 0.25s var(--ease); }
.footer-col > a:hover { color: var(--cyan); }
.footer-col > a:hover::after { width: 100%; }
/* Disponibilidad 24/7 (badge en vivo) */
.footer-status { display: inline-flex; align-items: center; gap: 9px; font-family: 'Barlow Condensed', sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.82rem; color: rgba(255,255,255,0.8); margin-bottom: 20px; }
.footer-status .dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--green); animation: footPulse 2.4s ease-out infinite; }
@keyframes footPulse { 0% { box-shadow: 0 0 0 0 rgba(46,139,87,0.55); } 70% { box-shadow: 0 0 0 8px rgba(46,139,87,0); } 100% { box-shadow: 0 0 0 0 rgba(46,139,87,0); } }
/* Teléfonos con icono */
.footer-phones { display: flex; flex-direction: column; gap: 2px; }
.footer-phones a { display: inline-flex; align-items: center; gap: 11px; width: fit-content; margin: 0; color: rgba(255,255,255,0.85); font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 1.18rem; letter-spacing: 0.02em; padding: 6px 0; transition: color 0.2s var(--ease), gap 0.2s var(--ease); }
.footer-phones a svg { width: 15px; height: 15px; flex: none; color: var(--cyan); transition: color 0.2s var(--ease); }
.footer-phones a:hover { color: #fff; gap: 14px; }
.footer-phones a:hover svg { color: var(--green); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 28px; color: rgba(255,255,255,0.5); font-size: 0.9rem; }
@media (prefers-reduced-motion: reduce) { .footer-status .dot { animation: none; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ============================================================
   COMPONENTES DE CONTENIDO
============================================================ */

/* ---------- Home hero (split) ---------- */
.home-hero { padding: 132px 0 90px; position: relative; overflow: hidden; }
.home-hero .hero-grid { position: absolute; inset: 0; z-index: 0;
  background-image: linear-gradient(rgba(15,30,51,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(15,30,51,0.05) 1px, transparent 1px);
  background-size: 64px 64px; -webkit-mask-image: radial-gradient(110% 80% at 20% 10%, #000, transparent 70%); mask-image: radial-gradient(110% 80% at 20% 10%, #000, transparent 70%); }
.home-hero .grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; position: relative; z-index: 2; }
.home-hero h1 { font-size: clamp(3rem, 6.5vw, 5.8rem); margin: 24px 0 0; }
.home-hero h1 .accent { color: var(--blue); }
.home-hero .sub { color: var(--ink-2); font-size: clamp(1.05rem, 1.5vw, 1.3rem); max-width: 560px; margin: 26px 0 0; }
.home-hero .actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 38px; }
.home-hero .contacts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 50px; padding-top: 28px; border-top: 1px solid var(--line); }
.home-hero .contacts .lab { font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.78rem; color: var(--ink-2); display: flex; align-items: center; gap: 10px; }
.home-hero .contacts .lab .dot { width: 8px; height: 8px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 3px rgba(46,139,87,0.2); }
.home-hero .contacts .nums { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.home-hero .contacts .nums a { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.25rem; letter-spacing: 0.03em; transition: color 0.2s var(--ease); }
.home-hero .contacts .nums a:hover { color: var(--blue); }

/* media frame (foto real) */
.media-frame { position: relative; }
.media-frame .speedlines { top: -22px; left: -22px; z-index: 3; transform: scale(1.2); }
.media-frame .corner { position: absolute; right: -14px; bottom: -14px; width: 96px; height: 96px; border-right: 4px solid var(--cyan); border-bottom: 4px solid var(--cyan); z-index: 3; pointer-events: none; }
.media-frame .cyd-img { box-shadow: var(--shadow-card); }
.media-tag { position: absolute; left: 20px; bottom: 20px; z-index: 4; background: rgba(14,39,65,0.86); backdrop-filter: blur(6px); color: #fff; font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.82rem; padding: 9px 16px; display: flex; align-items: center; gap: 10px; }
.media-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }

/* ---------- Category cards (overview) ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.cat-card { background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); position: relative; overflow: hidden; }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.cat-card .ph { position: relative; overflow: hidden; }
.cat-card .ph .cyd-img { height: 220px; }
.cat-card .ph .num { position: absolute; top: 16px; left: 16px; z-index: 4; font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 1.05rem; letter-spacing: 0.1em; color: #fff; background: var(--blue); padding: 6px 13px; }
.cat-card .body { padding: 30px 28px 32px; display: flex; flex-direction: column; flex: 1; }
.cat-card h3 { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase; font-size: 1.55rem; line-height: 1.05; }
.cat-card .ul { width: 40px; height: 3px; background: var(--cyan); margin: 14px 0 16px; }
.cat-card p { color: var(--ink-2); font-size: 1rem; flex: 1; }
.cat-card .svc { margin-top: 18px; display: flex; flex-direction: column; gap: 2px; }
.cat-card .svc span { font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.92rem; color: var(--ink); padding: 7px 0; border-top: 1px solid var(--line-2); display: flex; align-items: center; gap: 9px; }
.cat-card .svc span::before { content: ""; width: 6px; height: 6px; background: var(--cyan); flex: none; }
.cat-card .more { margin-top: 22px; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.95rem; color: var(--blue); display: inline-flex; align-items: center; gap: 9px; transition: gap 0.25s var(--ease); }
.cat-card:hover .more { gap: 15px; }
.cat-card .more svg { width: 15px; height: 15px; }

/* ---------- Service detail blocks (servicios.html) ---------- */
.cat-section { padding: 96px 0; border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.cat-section:nth-of-type(even) { background: var(--surface); }
.cat-section .head { display: flex; align-items: flex-end; gap: 24px; margin-bottom: 50px; flex-wrap: wrap; }
.cat-section .head .bignum { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: clamp(3.5rem, 7vw, 6rem); line-height: 0.8; color: var(--bg-3); -webkit-text-stroke: 0; }
.cat-section .head .htext h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.cat-section .head .htext .eyebrow { margin-bottom: 12px; }
.cat-section .head .htext .ul { width: 50px; height: 3px; background: var(--cyan); margin-top: 16px; }
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.svc-grid.cols-1 { grid-template-columns: 1fr; }
.svc-item { display: grid; grid-template-columns: 300px 1fr; background: var(--bg); border: 1px solid var(--line); overflow: hidden; transition: box-shadow 0.3s var(--ease); scroll-margin-top: 110px; }
.cat-section:nth-of-type(even) .svc-item { background: var(--surface); }
.svc-item:hover { box-shadow: var(--shadow-card); }
.svc-item .ph .cyd-img { min-height: 220px; }
.svc-item .body { padding: 30px 30px 34px; display: flex; flex-direction: column; }
.svc-item .ic { width: 44px; height: 44px; color: var(--blue); margin-bottom: 18px; }
.svc-item h3 { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase; font-size: 1.5rem; line-height: 1.05; margin-bottom: 12px; }
.svc-item p { color: var(--ink-2); font-size: 1.02rem; }
.svc-item .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.svc-item .tags span { font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.8rem; color: var(--cyan-ink); border: 1px solid var(--line); padding: 5px 11px; }

/* ---------- Stats / diferenciadores (banda navy) ---------- */
.band-navy { background: var(--navy); color: #fff; border-top: 4px solid var(--blue); position: relative; isolation: isolate; overflow: hidden; }
.band-navy::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: var(--band-img); background-size: cover; background-position: center; opacity: 0.16; }
.band-navy::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(115deg, var(--navy) 0%, rgba(14,39,65,0.7) 46%, rgba(14,39,65,0.92) 100%); }
.band-navy .section-head h2 { color: #fff; }
.dif-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.dif { padding: 30px 28px 30px 0; border-right: 1px solid var(--line-d); margin-right: 28px; }
.dif:last-child { border-right: 0; margin-right: 0; }
.dif .num { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 4.2rem; line-height: 1; color: var(--cyan); letter-spacing: -0.02em; }
.dif .num small { font-size: 1.5rem; color: #fff; vertical-align: super; font-weight: 700; }
.dif h3 { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase; font-size: 1.28rem; margin: 20px 0 10px; color: #fff; }
.dif p { color: rgba(255,255,255,0.66); font-size: 0.97rem; }

/* ---------- Misión / Visión / Valores ---------- */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.mv-block { margin-bottom: 40px; }
.mv-block:last-child { margin-bottom: 0; }
.mv-block .tag { font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.85rem; color: var(--cyan-ink); display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.mv-block .tag .n { color: rgba(15,30,51,0.3); }
.mv-block h3 { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase; font-size: 1.8rem; margin-bottom: 10px; }
.mv-block p { color: var(--ink-2); font-size: 1.05rem; }
.valores .vh { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: 1.5rem; margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.valor { padding: 15px 0 15px 22px; border-left: 3px solid var(--cyan); margin-bottom: 16px; transition: padding-left 0.25s var(--ease); }
.valor:hover { padding-left: 30px; }
.valor h4 { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; font-size: 1.15rem; margin-bottom: 3px; }
.valor p { color: var(--ink-2); font-size: 0.95rem; }

/* ---------- Contacto: números ---------- */
.band-blue { background: var(--blue); color: #fff; overflow: hidden; position: relative; isolation: isolate; }
.band-blue::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: var(--band-img); background-size: cover; background-position: center; opacity: 0.14; }
.band-blue::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(115deg, var(--blue-deep) 0%, rgba(21,101,192,0.78) 48%, rgba(14,74,148,0.92) 100%); }
.band-blue .speedlines { top: 50px; right: 4%; transform: scale(2.1); transform-origin: right; opacity: 0.85; }
.band-blue .speedlines span:nth-child(1) { background: var(--green); }
.band-blue .speedlines span:nth-child(2) { background: var(--cyan); }
.band-blue .speedlines span:nth-child(3) { background: #fff; }
.band-blue .eyebrow { color: #fff; }
.band-blue .eyebrow::before { background: var(--cyan); }
.band-blue h2 { color: #fff; }
.badge-247 { display: inline-flex; align-items: center; gap: 12px; border: 1.5px solid var(--line-d); padding: 10px 20px; font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.95rem; color: #fff; }
.badge-247 .dot { width: 9px; height: 9px; background: var(--cyan); border-radius: 50%; animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(0,188,212,0.6); } 50% { box-shadow: 0 0 0 8px rgba(0,188,212,0); } }
.num-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; background: var(--line-d); border: 1px solid var(--line-d); }
.num-card { background: var(--blue); padding: 30px 28px; transition: background 0.3s var(--ease); display: flex; flex-direction: column; gap: 22px; }
.num-card:hover { background: var(--blue-deep); }
.num-card .adv-id { display: flex; align-items: center; gap: 16px; }
.num-card .adv-av { flex: none; width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; color: #fff; }
.num-card .adv-av svg { width: 26px; height: 26px; }
.num-card .lbl { font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.74rem; color: rgba(255,255,255,0.7); display: block; margin-bottom: 4px; }
.num-card .adv-num { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: clamp(1.5rem, 2.4vw, 1.9rem); letter-spacing: 0.02em; color: #fff; transition: color 0.2s var(--ease); }
.num-card .adv-num:hover { color: var(--cyan); }
.num-card .adv-actions { display: flex; gap: 10px; }
.adv-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 14px; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.9rem; transition: background 0.2s var(--ease), color 0.2s var(--ease); }
.adv-btn svg { width: 17px; height: 17px; }
.adv-btn.call { border: 1.5px solid rgba(255,255,255,0.5); color: #fff; }
.adv-btn.call:hover { background: #fff; color: var(--blue); }
.adv-btn.wa { background: #25D366; color: #fff; }
.adv-btn.wa:hover { background: #1eb858; }
.num-note { margin-top: 22px; color: rgba(255,255,255,0.8); font-size: 1rem; display: flex; align-items: center; gap: 10px; }
.num-note svg { width: 18px; height: 18px; color: var(--cyan); flex: none; }

/* Botón WhatsApp reutilizable (hero) */
.btn-wa { display: inline-flex; align-items: center; gap: 10px; background: #25D366; color: #fff; padding: 13px 24px; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 1rem; box-shadow: 0 10px 24px -10px rgba(37,211,102,0.8); transition: background 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.btn-wa:hover { background: #1eb858; transform: translateY(-1px); box-shadow: 0 14px 28px -10px rgba(37,211,102,0.9); }
.btn-wa svg { width: 20px; height: 20px; }
.home-hero .hero-c-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.home-hero .hero-call { display: inline-flex; align-items: center; gap: 8px; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.25rem; color: var(--ink); transition: color 0.2s var(--ease); }
.home-hero .hero-call svg { width: 18px; height: 18px; color: var(--blue); }
.home-hero .hero-call:hover { color: var(--blue); }
.home-hero .hero-nums { display: flex; flex-wrap: wrap; gap: 9px 10px; }
.home-hero .hero-nums a { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); padding: 9px 15px; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.1rem; letter-spacing: 0.02em; color: var(--ink); transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease); }
.home-hero .hero-nums a svg { width: 15px; height: 15px; color: var(--blue); }
.home-hero .hero-nums a:hover { border-color: var(--blue); color: var(--blue); background: rgba(16,67,128,0.05); }

/* ---------- CTA band (claro) ---------- */
.cta-split { display: grid; grid-template-columns: 1.2fr auto; gap: 40px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--blue); padding: 50px 48px; }
.cta-split h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.cta-split p { color: var(--ink-2); margin-top: 12px; font-size: 1.08rem; max-width: 520px; }
.cta-split .actions { display: flex; flex-direction: column; gap: 12px; }

/* ---------- CTA band (foto + KPIs) ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); color: #fff; padding: 96px 0; border-top: 4px solid var(--blue); }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: var(--band-img); background-size: cover; background-position: center; opacity: 0.2; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, var(--navy) 0%, rgba(14,39,65,0.72) 52%, rgba(14,39,65,0.9) 100%); }
.cta-band-inner { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 56px; align-items: center; }
.cta-band-copy h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); margin-top: 14px; color: #fff; }
.cta-band-copy p { color: rgba(255,255,255,0.74); font-size: 1.12rem; margin-top: 18px; max-width: 520px; }
.cta-band-copy .actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.cta-band-aside { display: flex; flex-direction: column; gap: 14px; border-left: 1px solid var(--line-d); padding-left: 40px; }
.cta-band-aside .kpi { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-d); }
.cta-band-aside .kpi:last-child { border-bottom: 0; }
.cta-band-aside .kpi .k { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--cyan); min-width: 90px; }
.cta-band-aside .kpi .v { font-size: 1rem; color: rgba(255,255,255,0.78); }

/* ---------- Forms ---------- */
.form-card { background: var(--surface); border: 1px solid var(--line); padding: 44px 44px 48px; box-shadow: var(--shadow-card); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.82rem; color: var(--ink-2); font-weight: 600; }
.field label .req { color: var(--blue); }
.field input, .field select, .field textarea {
  font-family: 'Barlow', sans-serif; font-size: 1rem; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line); padding: 13px 15px; transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; }
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.92rem; color: var(--ink-3); margin-top: 6px; }
.form-success { display: none; background: rgba(46,139,87,0.1); border: 1px solid var(--green); color: #1c6b3f; padding: 16px 18px; font-weight: 500; margin-bottom: 22px; }
.form-success.show { display: block; }

/* ---------- Contact info side ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.info-list { display: flex; flex-direction: column; gap: 4px; }
.info-item { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.info-item:last-child { border-bottom: 0; }
.info-item .ic { width: 44px; height: 44px; flex: none; border: 1.5px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--blue); }
.info-item .ic svg { width: 20px; height: 20px; }
.info-item .it h4 { font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: 0.08em; font-size: 1.05rem; margin-bottom: 4px; }
.info-item .it p, .info-item .it a { color: var(--ink-2); font-size: 1.02rem; display: block; }
.info-item .it a:hover { color: var(--blue); }

/* ============================================================
   RESPONSIVE  (de mayor a menor — el menor sobreescribe)
============================================================ */

/* Tablet ───────────────────────────────────────────── */
@media (max-width: 980px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .home-hero .grid { grid-template-columns: 1fr; gap: 40px; }
  .home-hero .media-frame { order: -1; }
  .home-hero h1 { margin-top: 18px; }
  .cat-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .dif-grid { grid-template-columns: repeat(2, 1fr); gap: 34px 0; }
  .dif:nth-child(2) { border-right: 0; margin-right: 0; }
  .mv-grid { grid-template-columns: 1fr; gap: 48px; }
  .svc-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .cta-band { padding: 76px 0; }
  .cta-band-inner { grid-template-columns: 1fr; gap: 36px; }
  .cta-band-aside { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-d); padding-top: 12px; }
  .cta-band-aside .kpi .k { font-size: 2.2rem; min-width: 76px; }
}

/* Navegación móvil ──────────────────────────────────── */
@media (max-width: 860px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: block; }
}

/* Móvil grande ──────────────────────────────────────── */
@media (max-width: 760px) {
  .container { padding: 0 22px; }
  .section-pad { padding: 78px 0; }
  .page-hero { padding: 124px 0 52px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 30px 28px; }
  .home-hero { padding: 116px 0 64px; }
  .home-hero #home-hero { height: 340px !important; }
  .svc-item { grid-template-columns: 1fr; }
  .svc-item .ph .cyd-img { height: 210px; min-height: 0; }
  .num-grid { grid-template-columns: 1fr; }
  .dif-grid { grid-template-columns: 1fr; }
  .dif { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--line-d); padding: 24px 0; }
  .dif:last-child { border-bottom: 0; }
  .form-row { grid-template-columns: 1fr; gap: 18px; }
  .cta-split { grid-template-columns: 1fr; padding: 36px 26px; }
  .cat-section { padding: 72px 0; }
  .cat-section .head { gap: 16px; margin-bottom: 36px; }
  .cat-section .head .bignum { display: none; }
  .form-card { padding: 30px 22px 34px; }
  /* índice de categorías (servicios.html) → apilado */
  #cat-index { grid-template-columns: 1fr !important; }
  #cat-index > a { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  #cat-index > a:last-child { border-bottom: 0; }
}

/* Móvil pequeño ──────────────────────────────────────── */
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .nav { height: 72px; }
  header.scrolled, header.solid { } 
  .mobile-menu, .mega { top: 72px; }
  .mobile-menu { inset: 72px 0 0 0; }
  .logo .word { font-size: 1.6rem; }
  .section-pad { padding: 64px 0; }
  .section-head { margin-bottom: 40px; }
  .home-hero { padding: 104px 0 54px; }
  .home-hero #home-hero { height: 280px !important; }
  .home-hero .contacts { gap: 12px 20px; margin-top: 38px; }
  .page-hero { padding: 104px 0 44px; border-bottom-width: 3px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .btn { padding: 13px 22px; font-size: 0.95rem; }
  .cta-band { padding: 60px 0; }
  .cta-band-aside .kpi .k { font-size: 2rem; min-width: 68px; }
  .num-card { padding: 30px 24px; }
  .badge-247 { font-size: 0.85rem; padding: 9px 16px; }
  .media-frame .corner { display: none; }
  .media-frame .speedlines { transform: scale(0.9); }
  .info-item { gap: 14px; }
  /* tipografía: evita títulos que desborden en pantallas muy angostas */
  .display { overflow-wrap: anywhere; }
}

/* Pantallas muy angostas (≤360) ──────────────────────── */
@media (max-width: 360px) {
  .home-hero .contacts .nums a, .hero-contacts .nums a { font-size: 1.12rem; }
  .cta-band-aside .kpi { flex-direction: column; gap: 4px; }
  .cta-band-aside .kpi .k { min-width: 0; }
}

/* Botón flotante de WhatsApp ──────────────────────────── */
#wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 300;
  width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #25D366; color: #fff;
  box-shadow: 0 12px 28px -8px rgba(37,211,102,0.7), 0 4px 10px rgba(0,0,0,0.18);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  animation: waPulse 2.6s ease-out infinite;
}
#wa-float svg { width: 34px; height: 34px; }
#wa-float:hover { transform: scale(1.08); box-shadow: 0 16px 34px -8px rgba(37,211,102,0.85), 0 6px 14px rgba(0,0,0,0.22); }
@keyframes waPulse {
  0% { box-shadow: 0 12px 28px -8px rgba(37,211,102,0.7), 0 0 0 0 rgba(37,211,102,0.5); }
  70% { box-shadow: 0 12px 28px -8px rgba(37,211,102,0.7), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 12px 28px -8px rgba(37,211,102,0.7), 0 0 0 0 rgba(37,211,102,0); }
}
@media (max-width: 480px) {
  #wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  #wa-float svg { width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) { #wa-float { animation: none; } }