/* ─── Variables de marca ─── */
:root {
  --navy-950: #0B1220;
  --navy-900: #0F172A;
  --navy-800: #132238;
  --navy-700: #1B263B;
  --steel-700: #3A3A3A;
  --steel-600: #4B5563;
  --steel-500: #5B6470;
  --steel-300: #9aa3af;
  --accent:    #F97316;
  --accent-600:#EA580C;
  --paper:     #F1F5F9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --white:     #ffffff;
  --line:      rgba(255,255,255,.10);
  --line-dark: rgba(15,23,42,.10);

  --container: 1200px;
  --radius:    12px;
  --shadow-card: 0 14px 44px -20px rgba(15,23,42,.28);
  --shadow-accent: 0 10px 30px -8px rgba(249,115,22,.55);
}

/* ─── Reset y base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--paper);
  background: var(--navy-900);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
svg { width: 1.05em; height: 1.05em; flex: 0 0 auto; vertical-align: -0.15em; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4, .h-display {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
}

/* ─── Layout ─── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .container { padding: 0 16px; } }

/* ─── Hero en móvil ─── */
@media (max-width: 768px) {
  .hero .slide:nth-child(1) { background-position: 80% center; }
  .hero .slide:nth-child(2) { background-position: 20% center; }
  .hero .slide:nth-child(3) { background-position: 80% center; }
}

/* ─── Utilidades ─── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Archivo', sans-serif;
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); }
.eyebrow.center { justify-content: center; }

.text-accent { color: var(--accent); }
.text-muted { color: var(--steel-300); }
.text-mutedl { color: var(--steel-500); }

/* ─── Botones ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 9px; padding: 14px 26px; border-radius: 9px;
  font-family: 'Archivo', sans-serif; font-weight: 600; font-size: .92rem;
  text-transform: uppercase; letter-spacing: .04em;
  cursor: pointer; transition: transform .25s, box-shadow .25s, background .25s, border-color .25s, color .25s;
  border: 1px solid transparent;
  text-align: center;
  white-space: nowrap;
}
.btn-accent  { background: var(--accent); color: #fff; box-shadow: var(--shadow-accent); }
.btn-accent:hover { background: var(--accent-600); transform: translateY(-2px); }
.btn-ghost   { background: transparent; color: #fff; border-color: rgba(255,255,255,.25); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn-outline { background: transparent; color: var(--navy-900); border-color: rgba(15,23,42,.20); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
/* Variante para fondos oscuros */
.btn-outline-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn-outline-light:hover { border-color: var(--accent); color: var(--accent); background: rgba(255,255,255,.04); }
.btn-full { width: 100%; }

/* ─── Top bar (sobre el nav) ─── */
.topbar {
  background: var(--navy-800);
  border-bottom: 1px solid var(--line);
  font-size: .82rem; color: var(--steel-300);
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 42px; gap: 18px; }
.topbar .grp { display: flex; gap: 22px; align-items: center; }
.topbar a:hover { color: #fff; }
@media (max-width: 760px) { .topbar .hide-m { display: none; } }

/* ─── Navegación ─── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15,23,42,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 32px; height: 74px; }
.logo { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 1.45rem; display: flex; align-items: center; gap: 10px; color: #fff; flex: 0 0 auto; white-space: nowrap; }
.logo-img { height: 46px; width: auto; display: block; }
.footer .logo-img { height: 54px; }
@media (max-width: 560px) { .logo-img { height: 40px; } }
.logo .mark { width: 34px; height: 34px; border-radius: 7px; background: linear-gradient(135deg, var(--accent), var(--accent-600)); display: grid; place-items: center; flex: 0 0 auto; }
.logo .mark span { width: 3px; height: 18px; background: #fff; border-radius: 2px; box-shadow: 6px 0 0 rgba(255,255,255,.55); }
.nav-links { display: flex; gap: 28px; font-size: .93rem; font-weight: 500; flex-wrap: nowrap; }
.nav-links a { color: var(--slate-300); transition: color .2s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-cta { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.nav-toggle { display: none; width: 40px; height: 40px; border-radius: 8px; place-items: center; }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle:hover { background: rgba(255,255,255,.06); }
@media (max-width: 1024px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0;
              flex-direction: column; gap: 0; background: var(--navy-900); border-bottom: 1px solid var(--line); padding: 8px 0; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 24px; border-bottom: 1px solid var(--line); white-space: nowrap; }
  .nav-toggle { display: grid; }
  .nav .container { gap: 16px; }
  .nav-cta { gap: 10px; }
  .nav-cta .btn { padding: 10px 16px; font-size: .82rem; white-space: nowrap; }
}
@media (max-width: 560px) { .nav-cta .btn { display: none; } }

/* ─── Banner promo opcional ─── */
.banner { background: var(--accent-600); color: #fff; text-align: center; font-size: .84rem; padding: 9px 16px; font-weight: 500; }

/* ─── Hero ─── */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; background: var(--navy-950); }
.hero .slides { position: absolute; inset: 0; }
.hero .slide { position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.4s ease, transform 7s ease; transform: scale(1.08); }
.hero .slide.on { opacity: 1; transform: scale(1); }
.hero .veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,23,42,.96) 0%, rgba(15,23,42,.85) 45%, rgba(15,23,42,.40) 100%); }
.hero .veil-top { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(11,18,32,.55) 100%); pointer-events: none; }
.hero .grid-bg { position: absolute; inset: 0;
  background-image: linear-gradient(rgba(91,100,112,.10) 1px, transparent 1px), linear-gradient(90deg, rgba(91,100,112,.10) 1px, transparent 1px);
  background-size: 48px 48px; opacity: .35; }
.hero .container { position: relative; z-index: 2; padding-top: 110px; padding-bottom: 90px; }
.hero .hero-titles {
  display: grid;
  margin-top: 18px;
}
.hero .ht {
  grid-area: 1 / 1;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 1.1;
  max-width: 22ch; color: #fff; margin: 0;
  opacity: 0; transition: opacity .8s ease;
  pointer-events: none;
}
.hero .ht.on { opacity: 1; }
.hero .hl { color: var(--accent); }
.hero .lead { margin-top: 22px; font-size: 1.18rem; color: var(--slate-300); max-width: 56ch; }
.hero .actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero .dots { margin-top: 50px; display: flex; gap: 9px; }
.hero .dots i { width: 30px; height: 4px; border-radius: 3px; background: rgba(255,255,255,.25); transition: background .3s, width .3s; }
.hero .dots i.on { background: var(--accent); width: 46px; }
@media (max-width: 760px) {
  .hero { min-height: 78vh; }
  .hero .container { padding-top: 60px; padding-bottom: 60px; }
}

/* ─── Cabecera de página interior ─── */
.page-hero { background: var(--navy-900); padding: 54px 0 50px; position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); max-width: 22ch; margin-top: 16px; }
.page-hero .lead { margin-top: 18px; color: var(--slate-300); max-width: 60ch; font-size: 1.05rem; }
.breadcrumbs { font-size: .85rem; color: var(--steel-300); }
.breadcrumbs a { color: var(--steel-300); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { margin: 0 8px; color: var(--steel-500); }

/* ─── Sección genérica ─── */
section.dark  { background: var(--navy-900); }
section.dark2 { background: var(--navy-950); }
section.light { background: #fff; color: var(--steel-600); }
section.light h2, section.light h3, section.light .h-display { color: var(--navy-900); }
section.light .text-mutedl { color: var(--steel-500); }
section.pad { padding: 80px 0; }
@media (max-width: 720px) { section.pad { padding: 56px 0; } }

.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 14px 0; }
.section-head p { color: var(--steel-300); font-size: 1.05rem; }
section.light .section-head p { color: var(--steel-500); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

.head-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }

/* ─── Trust bar ─── */
.trust { background: var(--navy-800); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust .container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-top: 34px; padding-bottom: 34px; }
.trust .it { display: flex; gap: 13px; align-items: center; }
.trust .ic { width: 42px; height: 42px; border-radius: 9px; background: rgba(249,115,22,.12); color: var(--accent); display: grid; place-items: center; flex: 0 0 auto; }
.trust .ic svg { width: 22px; height: 22px; }
.trust b { font-family: 'Archivo', sans-serif; font-size: 1.15rem; display: block; color: #fff; }
.trust small { color: var(--steel-300); font-size: .82rem; }
@media (max-width: 860px) { .trust .container { grid-template-columns: 1fr; } }

/* ─── Stats grid ─── */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat { background: var(--navy-800); border: 1px solid var(--line); border-radius: 14px; padding: 20px 16px; }
.stat .n { font-family: 'Archivo', sans-serif; font-size: 2.1rem; color: var(--accent); line-height: 1; }
.stat .l { color: var(--steel-300); margin-top: 8px; font-size: .82rem; }

/* ─── Tarjetas de servicio / blog ─── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--navy-800); border: 1px solid var(--line); border-radius: 15px;
  overflow: hidden; transition: transform .3s, border-color .3s, box-shadow .3s;
  display: flex; flex-direction: column; height: 100%;
  text-decoration: none; color: inherit;
}
.card:hover { transform: translateY(-6px); border-color: rgba(249,115,22,.5); }
.card .ph { height: 200px; background-size: cover; background-position: center; position: relative; flex: 0 0 auto; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(19,34,56,.85)); }
.card .ic { position: absolute; left: 16px; bottom: 16px; z-index: 2; width: 46px; height: 46px; border-radius: 10px; background: var(--accent); display: grid; place-items: center; color: #fff; }
.card .ic svg { width: 22px; height: 22px; }
.card .bd { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { font-size: 1.12rem; color: #fff; transition: color .25s;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.card:hover h3 { color: var(--accent); }
.card p { color: var(--steel-300); font-size: .92rem; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .more { color: var(--accent); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; display: inline-flex; gap: 7px; align-items: center; margin-top: auto; }

/* Variante para fondo claro */
section.light .card { background: #fff; border-color: var(--line-dark); box-shadow: var(--shadow-card); }
section.light .card h3 { color: var(--navy-900); }
section.light .card p { color: var(--steel-500); }
section.light .card:hover { box-shadow: 0 22px 60px -22px rgba(15,23,42,.32); }

/* Tarjeta blog con meta info */
.bcard .meta { display: flex; align-items: center; gap: 12px; font-size: .78rem; color: var(--steel-300); }
section.light .bcard .meta { color: var(--steel-500); }
.bcard .cat { position: absolute; left: 16px; top: 16px; z-index: 2; background: var(--accent); color: var(--navy-950); padding: 5px 10px; border-radius: 6px; font-family: 'Archivo', sans-serif; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* ─── Categorías de servicio (encabezado dentro de la sección) ─── */
.cat-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 28px; margin-top: 30px; }
.cat-head .catnum { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 1.5rem; color: #fff; background: var(--accent); width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center; flex: 0 0 auto; }
.cat-head h3 { font-size: 1.5rem; }
.cat-head p { margin-top: 4px; max-width: 60ch; }

/* ─── Intro de bloque con imagen al lado ─── */
.intro-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
@media (max-width: 900px) { .intro-grid { grid-template-columns: 1fr; gap: 40px; } }
.intro-img { aspect-ratio: 4/3; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); position: relative; }
.intro-img img { width: 100%; height: 100%; object-fit: cover; }
section.light .intro-img { border-color: var(--line-dark); box-shadow: var(--shadow-card); }
.intro-img-historia { aspect-ratio: 16/10; }

/* ─── Imagen dentro del contenido (servicios, proyectos) ─── */
.content-img { margin: 28px 0 8px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-dark); box-shadow: var(--shadow-card); }
.content-img img { width: 100%; height: auto; display: block; aspect-ratio: 16/9; object-fit: cover; }
.content-img figcaption { font-size: .82rem; color: var(--steel-500); padding: 10px 4px 0; text-align: center; }
/* Variante más cuadrada y estrecha, centrada */
.content-img.square { max-width: 460px; margin-left: auto; margin-right: auto; }
.content-img.square img { aspect-ratio: 4/3; }

/* ─── Lista de ventajas con tick ─── */
.benefits-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.benefits-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--steel-600); }
section.dark .benefits-list li, section.dark2 .benefits-list li { color: var(--slate-200); }
.benefits-list .tick { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; background: rgba(249,115,22,.15); color: var(--accent); display: grid; place-items: center; margin-top: 2px; }
.benefits-list .tick svg { width: 14px; height: 14px; }

/* ─── Bloque "Nuestro enfoque" ─── */
.approach { margin-top: 36px; padding: 20px 24px; border-left: 3px solid var(--accent); border-radius: 12px; background: rgba(249,115,22,.05); }
.approach h3 { font-size: 1.18rem; margin-bottom: 8px; }
section.light .approach { background: rgba(15,23,42,.04); }

/* ─── Sidebar de CTA en página de servicio ─── */
.service-grid { display: grid; gap: 40px; grid-template-columns: 1.5fr 1fr; }
@media (max-width: 920px) { .service-grid { grid-template-columns: 1fr; } }
.cta-side { position: sticky; top: 100px; padding: 28px; border-radius: 16px; background: var(--white); border: 1px solid var(--line-dark); box-shadow: var(--shadow-card); }
.cta-side h3 { font-size: 1.18rem; color: var(--navy-900); }
.cta-side p { margin-top: 8px; font-size: .9rem; color: var(--steel-500); }
.cta-side .actions { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }

/* ─── Beneficios (sección dark) ─── */
.blist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 860px) { .blist { grid-template-columns: 1fr; } }
.ben { display: flex; gap: 15px; padding: 24px; border: 1px solid var(--line); border-radius: 13px; background: var(--navy-700); align-items: flex-start; height: 100%; }
.ben .ic { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 9px; background: rgba(249,115,22,.12); color: var(--accent); display: grid; place-items: center; }
.ben .ic svg { width: 22px; height: 22px; }
.ben b { font-family: 'Archivo', sans-serif; display: block; margin-bottom: 5px; color: #fff; }
.ben small { color: var(--steel-300); }

/* ─── CTA banner ─── */
.ctaband { position: relative; border-radius: 20px; overflow: hidden; padding: 56px 48px;
  background: linear-gradient(120deg, var(--navy-700), var(--navy-800));
  border: 1px solid var(--line);
  display: flex; align-items: center; gap: 48px; flex-wrap: wrap;
}
.ctaband .cta-text { flex: 1 1 420px; min-width: 0; position: relative; z-index: 1; }
.ctaband h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); max-width: 22ch; color: #fff; }
.ctaband p { color: var(--steel-300); margin-top: 14px; max-width: 50ch; }
.ctaband .actions { margin-top: 0; display: flex; gap: 14px; flex-wrap: wrap; flex: 0 0 auto; position: relative; z-index: 1; }
.ctaband .accentbar { position: absolute; right: -60px; top: -60px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(249,115,22,.25), transparent 70%); z-index: 0; }
@media (max-width: 760px) {
  .ctaband { padding: 40px 28px; gap: 24px; }
  .ctaband .actions { width: 100%; }
  .ctaband .actions .btn { flex: 1 1 auto; }
}

/* ─── Testimonios ─── */
.tlist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
@media (max-width: 860px) { .tlist { grid-template-columns: 1fr; } }
.tcard { background: #fff; border: 1px solid var(--line-dark); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-card); height: 100%; }
.stars { color: var(--accent); letter-spacing: 3px; font-size: 1.1rem; }
.tcard p { color: var(--steel-700); font-size: .97rem; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.tcard .who { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.tcard .av { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--steel-500), var(--steel-700)); color: #fff; display: grid; place-items: center; font-family: 'Archivo', sans-serif; font-weight: 700; }
.tcard .who b { font-size: .95rem; color: var(--navy-900); }
.tcard .who small { color: var(--steel-500); display: block; }

/* ─── Galería de proyectos ─── */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 980px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .gallery { grid-template-columns: 1fr; } }
.gitem { aspect-ratio: 4/4; border-radius: 12px; overflow: hidden; position: relative; border: 1px solid var(--line); }
.gitem img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gitem img.lb { cursor: zoom-in; }

/* ─── Lightbox (ampliar imagen al hacer clic) ─── */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  background: rgba(11,18,32,.92); padding: 24px;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(92vw, 1100px);
  max-height: 90vh;
  width: auto; height: auto;
  border-radius: 10px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.7);
  cursor: default;
}
.lightbox .lb-close {
  position: absolute; top: 18px; right: 22px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: #fff;
  display: grid; place-items: center; cursor: pointer;
  transition: background .2s;
}
.lightbox .lb-close:hover { background: rgba(255,255,255,.22); }
.lightbox .lb-close svg { width: 22px; height: 22px; }
.gitem:hover img { transform: scale(1.05); }
.gitem .ov { position: absolute; inset: 0; padding: 16px; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(180deg, transparent 40%, rgba(11,18,32,.9)); color: #fff; }
.gitem .ov .cat { font-size: .7rem; color: var(--accent); font-family: 'Archivo', sans-serif; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.gitem .ov b { font-size: .92rem; margin-top: 4px; }

/* ─── Blog: buscador y filtros ─── */
.blog-tools { display: flex; flex-direction: column; gap: 16px; margin-bottom: 30px; }
@media (min-width: 640px) { .blog-tools { flex-direction: row; align-items: center; justify-content: space-between; } }
.search-wrap { position: relative; width: 100%; max-width: 360px; }
.search-wrap input { width: 100%; padding: 11px 12px 11px 38px; border-radius: 8px;
  border: 1px solid var(--line-dark); background: #fff; color: var(--navy-900); font-size: .92rem; }
.search-wrap input:focus { outline: none; border-color: var(--accent); }
.search-wrap svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--steel-500); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn { padding: 7px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600;
  background: #fff; border: 1px solid var(--line-dark); color: var(--steel-600); transition: all .2s; }
.filter-btn:hover { color: var(--navy-900); }
.filter-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ─── Artículo blog (detalle) ─── */
.article-hero { padding: 54px 0 30px; background: var(--navy-900); }
.article-hero .cat { display: inline-block; background: var(--accent); color: var(--navy-950); padding: 5px 12px; border-radius: 6px; font-family: 'Archivo', sans-serif; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.article-hero h1 { font-size: clamp(2rem, 5vw, 3rem); max-width: 22ch; margin: 16px 0; }
.article-hero .meta { color: var(--steel-300); font-size: .9rem; display: flex; gap: 14px; flex-wrap: wrap; }
.article-image { background: var(--navy-900); padding-bottom: 8px; }
.article-image .wrap { max-width: 900px; margin: 0 auto; padding: 0 24px; }
.article-image img { width: 100%; aspect-ratio: 16/8; object-fit: cover; border-radius: 16px; border: 1px solid var(--line); }
.article-body { background: #fff; padding: 56px 0; }
.article-body .container { max-width: 760px; }
.prose { color: var(--steel-600); font-size: 1.02rem; line-height: 1.75; }
.prose h2 { font-size: 1.7rem; margin: 36px 0 14px; color: var(--navy-900); }
.prose h3 { font-size: 1.3rem; margin: 28px 0 10px; color: var(--navy-900); }
.prose p { margin: 18px 0; }
.prose ul, .prose ol { margin: 18px 0; padding-left: 24px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--navy-900); font-weight: 700; }
.prose blockquote { margin: 24px 0; padding: 14px 20px; border-left: 3px solid var(--accent); background: rgba(15,23,42,.04); font-style: italic; color: var(--steel-700); }

.tags { margin-top: 36px; display: flex; gap: 8px; flex-wrap: wrap; }
.tag { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line-dark); font-size: .78rem; color: var(--steel-500); }

/* ─── Formularios ─── */
.form { display: flex; flex-direction: column; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 6px; color: var(--slate-200); }
section.light .form label { color: var(--navy-900); }
.form input, .form textarea, .form select {
  width: 100%; padding: 11px 14px; border-radius: 8px;
  background: var(--navy-800); border: 1px solid var(--line); color: #fff; font-size: .95rem;
}
section.light .form input, section.light .form textarea, section.light .form select {
  background: #fff; border-color: var(--line-dark); color: var(--navy-900);
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form textarea { min-height: 130px; resize: vertical; font-family: inherit; }
.form .file-zone {
  border: 1.5px dashed var(--line); border-radius: 10px; padding: 22px;
  text-align: center; cursor: pointer; transition: border-color .2s, background .2s;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--navy-800);
}
section.light .form .file-zone { background: #fff; border-color: rgba(15,23,42,.15); }
.form .file-zone:hover { border-color: var(--accent); }
.form .file-zone input[type=file] { display: none; }
.form .file-zone small { color: var(--steel-300); display: block; margin-top: 4px; }
section.light .form .file-zone small { color: var(--steel-500); }
.form .honeypot { position: absolute; left: -9999px; }
.form-status { padding: 12px 16px; border-radius: 8px; font-size: .9rem; }
.form-status.success { background: rgba(34,197,94,.12); color: #86efac; border: 1px solid rgba(34,197,94,.3); }
.form-status.error { background: rgba(239,68,68,.12); color: #fca5a5; border: 1px solid rgba(239,68,68,.3); }

/* ─── Cuadrícula de info de contacto ─── */
.contact-channels { display: grid; gap: 14px; margin-top: 24px; }
.channel { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 12px; background: var(--navy-800); border: 1px solid var(--line); }
.channel .ic { width: 44px; height: 44px; border-radius: 10px; background: rgba(249,115,22,.12); color: var(--accent); display: grid; place-items: center; flex: 0 0 auto; }
.channel .ic svg { width: 22px; height: 22px; }
.channel b { font-family: 'Archivo', sans-serif; display: block; color: #fff; font-size: 1rem; }
.channel small { color: var(--steel-300); font-size: .82rem; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ─── Legal pages ─── */
.legal { background: var(--navy-900); padding: 54px 0 80px; }
.legal .wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; color: var(--slate-200); line-height: 1.75; }
.legal h1 { font-size: 2.4rem; margin-bottom: 14px; color: #fff; }
.legal .updated { color: var(--steel-300); font-size: .88rem; margin-bottom: 30px; }
.legal h2 { font-size: 1.4rem; margin: 36px 0 12px; color: #fff; }
.legal h3 { font-size: 1.1rem; margin: 24px 0 8px; color: #fff; }
.legal p { margin: 14px 0; }
.legal ul { margin: 14px 0; padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal strong { color: #fff; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ─── Footer ─── */
.footer { background: var(--navy-800); border-top: 1px solid var(--line); padding: 60px 0 28px; color: var(--steel-300); font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { font-family: 'Archivo', sans-serif; color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer a:hover { color: #fff; }
.footer .socials { margin-top: 18px; display: flex; gap: 10px; }
.footer .socials a { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 8px; display: grid; place-items: center; color: var(--steel-300); transition: color .2s, border-color .2s, background .2s; }
.footer .socials a:hover { color: var(--accent); border-color: var(--accent); background: rgba(249,115,22,.06); }
.footer .socials svg { width: 16px; height: 16px; }
.fbot { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .82rem; color: var(--steel-500); }

/* ─── WhatsApp flotante ─── */
.wa-fab { position: fixed; right: 22px; bottom: 22px; z-index: 80; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.wa-fab a { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 12px 30px -6px rgba(0,0,0,.5); position: relative; color: #fff; }
.wa-fab .whats { background: #25D366; }
.wa-fab .call { background: var(--accent); }
.wa-fab .whats::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25D366; animation: ping 2s cubic-bezier(0,0,.2,1) infinite; z-index: -1; }
@keyframes ping { 75%, 100% { transform: scale(1.8); opacity: 0; } }
.wa-fab svg { width: 26px; height: 26px; }

/* ─── Mapa ─── */
.map { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); margin-top: 20px; }
.map iframe { display: block; width: 100%; height: 260px; filter: grayscale(.4); border: 0; }

/* ─── Animación fade-in en scroll ─── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.reveal.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ─── Popup de cookies (modal centrado) ─── */
.avx-veil {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(11, 18, 32, .72);
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
.avx-veil.show { display: flex; }
.avx-panel {
  width: 100%; max-width: 460px;
  background: var(--navy-900, #0F172A); color: #e2e8f0;
  border: 1px solid var(--line-dark, #293548); border-radius: 16px;
  padding: 28px 26px; box-shadow: 0 30px 70px -15px rgba(0,0,0,.7);
  text-align: center;
}
.avx-panel h3 { margin: 0 0 12px; font-size: 1.15rem; color: #fff; }
.avx-panel p { margin: 0 0 20px; font-size: .9rem; line-height: 1.6; color: #cbd5e1; }
.avx-panel a { color: var(--accent, #F97316); }
.avx-panel .avx-actions { display: flex; gap: 10px; }
.avx-panel button {
  flex: 1; padding: 12px 18px; border-radius: 8px;
  font-family: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; border: 0;
  transition: background .18s;
}
.avx-ok { background: var(--accent, #F97316); color: #fff; }
.avx-ok:hover { background: var(--accent-600, #ea580c); }
.avx-no { background: transparent; color: #e2e8f0; border: 1px solid var(--line-dark, #293548); }
.avx-no:hover { background: rgba(255,255,255,.08); }
@media (max-width: 420px) { .avx-panel .avx-actions { flex-direction: column; } }
