/* =========================================================
   Afiancol — Hoja de estilos global
   Snippet WordPress: enqueue como stylesheet del tema o
   inyectar inline en <head>.
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }
*:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #1f2230;
  line-height: 1.6;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4, h5, h6 { font-family: 'Heebo', sans-serif; margin: 0 0 .5em; line-height: 1.2; color: #0d1326; }
p { margin: 0 0 1em; }
ul { padding: 0; margin: 0; list-style: none; }

:root {
  --brand: #1724ba;
  --brand-dark: #0f1a8a;
  --brand-light: #eef0ff;
  --muted: #6b7081;
  --bg-soft: #f6f7fb;
  --bg-dark: #0d1326;
  --border: #e6e8f0;
  --radius: 8px;
  --radius-btn: 6px;
  --shadow-sm: 0 4px 14px rgba(23, 36, 186, .06);
  --shadow-md: 0 10px 30px rgba(23, 36, 186, .10);
  --header-h: 115px;
  --shadow-lg: 0 20px 50px rgba(23, 36, 186, .15);
  --container: 1200px;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-btn);
  font-weight: 600; font-size: 14px;
  transition: transform .2s, box-shadow .2s, background .2s;
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-2px); background: var(--brand-dark); box-shadow: var(--shadow-md); }
.btn-light { background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); }
.btn-light:hover { transform: translateY(-2px); }
.btn svg { width: 16px; height: 16px; }
.btn i { display: inline-flex; }
.btn i svg { width: 16px; height: 16px; }

/* Lucide icons — defaults & contextual sizes
   Standard "feature" icons (pillars, solutions, sectors): 40px / stroke 1.4
   Standard "inline" icons (lists, social, buttons, stars): 16-20px / stroke 1.6-2 */
[data-lucide], i svg { width: 1em; height: 1em; vertical-align: -0.125em; stroke-width: 1.5; }

/* Feature icons */
.pillar svg,
.solution-icon svg,
.sector-card svg {
  width: 40px;
  height: 40px;
  stroke-width: 1.4;
  color: var(--brand);
  flex-shrink: 0;
}

/* Inline icons */
.topbar .location svg { width: 14px; height: 14px; stroke-width: 1.8; }
.mission-list svg { width: 20px; height: 20px; stroke-width: 1.6; flex-shrink: 0; margin-top: 2px; color: var(--brand); }
.stars svg { width: 18px; height: 18px; fill: currentColor; stroke: currentColor; stroke-width: 1.5; }
.social-link svg { width: 16px; height: 16px; stroke-width: 1.8; }

.topbar { background: transparent; color: #1f2230; font-size: 13px; padding: 10px 0; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.topbar .location { display: flex; align-items: center; gap: 8px; }
.topbar .location svg { width: 14px; height: 14px; flex-shrink: 0; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: transparent;
}
.site-header .container {
  display: flex; align-items: center;
  padding-top: 14px; padding-bottom: 14px; gap: 24px;
}
.logo { margin-right: auto; }
.logo img { height: 50px; width: auto; content: url('https://afiancol.com/wp-content/uploads/2026/05/Mesa-de-trabajo-2@2x.png'); }
.page-home .topbar { color: rgba(255, 255, 255, .7); }

.main-nav {
  display: flex; align-items: center; gap: 4px;
  background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 999px;
  padding: 6px 8px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .5) inset,
    0 4px 24px rgba(11, 19, 55, .14);
}
.header-cta { flex-shrink: 0; }
.nav-list { display: flex; gap: 2px; align-items: center; }
.nav-list a {
  font-weight: 600; color: #2a2f45; transition: color .2s, background .18s;
  padding: 7px 14px; border-radius: 999px;
}
.nav-list a:hover { color: var(--brand); background: rgba(23, 36, 186, .07); }
.has-submenu { position: relative; }
.submenu-toggle { display: flex; align-items: center; gap: 6px; font: inherit; color: inherit; font-weight: 600; padding: 7px 14px; border-radius: 999px; transition: background .18s; }
.submenu-toggle:hover { background: rgba(23, 36, 186, .07); }
.submenu-toggle::after {
  content: ""; width: 8px; height: 8px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .2s;
}
.has-submenu.open .submenu-toggle::after { transform: rotate(-135deg); }
.submenu {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 220px; background: #fff;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 10px; opacity: 0; visibility: hidden;
  transform: translateY(-6px); transition: all .2s;
}
.has-submenu:hover .submenu, .has-submenu.open .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { display: block; padding: 10px 14px; border-radius: var(--radius-btn); font-weight: 500; }
.submenu a:hover { background: var(--brand-light); color: var(--brand); }

.nav-close { display: none; }

/* Bottom nav tipo app — estilo liquid glass (sólo mobile) */
.bottom-nav-bar { display: none; }
.bottom-nav { display: flex; }

@media (max-width: 768px) {
  /* Barra exterior fija con fondo oscuro + blur */
  .bottom-nav-bar {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 95;
    justify-content: center;
    align-items: center;
    padding: 8px 14px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    background: rgba(11, 19, 55, .22);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-top: 1px solid rgba(255, 255, 255, .1);
  }

  /* Píldora interior */
  .bottom-nav {
    width: 100%;
    max-width: 460px;
    align-items: stretch;
    padding: 5px 6px;
    gap: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .55);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, .72);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, .5) inset,
      0 4px 24px rgba(11, 19, 55, .14);
  }

  .bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 8px;
    height: 42px;
    color: #1f2230;
    font-size: .72rem;
    font-weight: 600;
    border-radius: 999px;
    transition: color .2s, background .2s, transform .15s;
    white-space: nowrap;
    line-height: 1;
  }
  .bottom-nav-item svg {
    width: 17px; height: 17px; stroke-width: 2;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(13, 19, 38, .12));
  }
  .bottom-nav-item:active {
    background: rgba(23, 36, 186, .08);
    transform: scale(.96);
  }
  .bottom-nav-item.active { color: var(--brand); }
  .bottom-nav-cta {
    background: linear-gradient(135deg, #2c3bd8 0%, var(--brand) 100%);
    color: #fff;
    box-shadow:
      0 1px 0 rgba(255, 255, 255, .35) inset,
      0 4px 14px rgba(23, 36, 186, .45);
  }
  .bottom-nav-cta:active {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    transform: scale(.96);
  }
  .bottom-nav-cta svg { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .25)); }
  .bottom-nav-whatsapp {
    background: #25d366;
    color: #fff;
    box-shadow: 0 2px 10px rgba(37, 211, 102, .4);
  }
  .bottom-nav-whatsapp svg { width: 17px; height: 17px; fill: #fff; stroke: none; }
  .bottom-nav-whatsapp:active { background: #1ebe5a; transform: scale(.96); }

  /* Espacio para que el contenido no quede tapado */
  body { padding-bottom: 100px; }
  body.no-scroll { padding-bottom: 0; }
}

.scroll-top {
  display: none;
  position: fixed;
  bottom: calc(96px + env(safe-area-inset-bottom, 0px)); right: 18px;
  z-index: 96;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: #fff;
  color: var(--brand);
  border: 1px solid var(--border);
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(13, 19, 38, .18);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { transform: translateY(-2px); }
.scroll-top svg { width: 20px; height: 20px; stroke-width: 2; }

.scroll-progress {
  display: none;
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand) 0%, #4d5ee8 100%);
  z-index: 200;
  width: 0;
  transition: width .1s linear;
  box-shadow: 0 1px 8px rgba(23, 36, 186, .35);
}

.menu-toggle {
  display: none; width: 44px; height: 44px;
  border-radius: var(--radius-btn); background: var(--brand); color: #fff;
  align-items: center; justify-content: center;
  padding: 0;
}
.menu-toggle svg { width: 22px; height: 22px; stroke-width: 2; }

.hero {
  position: relative;
  min-height: 80vh;
  padding: 80px 0 80px;
  background-image:
    linear-gradient(90deg, rgba(23, 36, 186, .85) 0%, rgba(23, 36, 186, .55) 55%, rgba(23, 36, 186, .25) 100%),
    url('https://afiancol.com/wp-content/uploads/2025/08/Afiancol-Entrada.jpeg');
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero .container { position: relative; z-index: 1; width: 100%; }
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  max-width: 820px;
  letter-spacing: -.02em;
  color: #fff;
}
.hero .divider { width: 80px; height: 4px; background: #fff; border-radius: 2px; margin: 24px 0; }
.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  color: rgba(255, 255, 255, .92);
  margin-bottom: 32px;
}
.hero .btn-primary { background: #fff; color: var(--brand); }
.hero .btn-primary:hover { background: var(--brand); color: #fff; }

/* Hero compacto para páginas internas (servicios) */
.hero.hero-page {
  min-height: 44vh;
  padding: 60px 0 80px;
  align-items: end;
}
.hero.hero-page h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  max-width: 100%;
}
.hero.hero-page p { margin-bottom: 0; }

/* Video de fondo en hero — sustituye background-image */
.hero.hero-video-bg { background-image: none; background-color: var(--bg-dark); }
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
.hero-video-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(23, 36, 186, .85) 0%, rgba(23, 36, 186, .55) 55%, rgba(23, 36, 186, .25) 100%);
  z-index: 0;
}
.hero.hero-video-bg .container { z-index: 1; }

/* ── Hero sube detrás del header para que el glass sea visible ── */
.hero {
  margin-top: calc(-1 * var(--header-h));
  padding-top: calc(80px + var(--header-h));
}
.hero.hero-page {
  padding-top: calc(48px + var(--header-h));
}
@media (max-width: 768px) {
  .hero { padding-top: calc(56px + var(--header-h)); }
  .hero.hero-page { padding-top: calc(40px + var(--header-h)); }
}

.breadcrumb {
  display: inline-flex; flex-wrap: wrap;
  gap: 8px; align-items: center;
  font-size: .92rem; color: rgba(255,255,255,.85);
  margin-bottom: 16px;
}
.breadcrumb a { transition: color .2s; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb .sep { opacity: .55; }
.breadcrumb .current { color: #fff; font-weight: 600; }

/* Tarjeta unificada de detalle de solución (3 bloques + CTA) */
.solution-detail {
  max-width: 440px;
  margin: 0 auto;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
}
.solution-block { padding: 24px 0; text-align: center; }
.solution-block:first-child { padding-top: 8px; }
.solution-block .eyebrow {
  display: block;
  color: #0d1326;
  font-size: 1rem; font-weight: 700;
  margin-bottom: 6px;
  font-family: 'Heebo', sans-serif;
}
.solution-block h3 {
  color: var(--brand);
  font-size: 1.3rem; font-weight: 700;
  margin-bottom: 22px;
  line-height: 1.3;
}
.solution-block .check-list {
  display: grid; gap: 12px;
  text-align: left;
  max-width: 460px; margin: 0 auto;
}
.solution-block .check-list li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: .95rem; color: #2a2f45;
}
.solution-block .check-list svg {
  width: 20px; height: 20px;
  color: #fff; background: var(--brand);
  border-radius: 50%; padding: 3px;
  flex-shrink: 0; margin-top: 1px;
  stroke-width: 2.4;
}
.solution-detail hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 0;
}
.solution-detail .card-cta {
  text-align: center;
  padding-top: 28px;
}

/* Sección Vigilancia y Cumplimiento (4 cards 2x2 + contenido + respaldo) */
.compliance-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.compliance-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.compliance-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  transition: transform .25s, box-shadow .25s;
}
.compliance-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.compliance-card svg {
  width: 38px; height: 38px;
  color: var(--brand);
  stroke-width: 1.4;
}
.compliance-card h4 {
  font-size: 1.05rem;
  margin: 0;
  line-height: 1.3;
  color: #0d1326;
}
.compliance-card.is-primary {
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 14px 30px rgba(23, 36, 186, .25);
}
.compliance-card.is-primary svg { color: #fff; }
.compliance-card.is-primary h4 { color: #fff; }

.compliance-content > p { color: var(--muted); margin-bottom: 0; }
.compliance-content hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 28px 0;
}
.compliance-content h5 {
  color: #0d1326;
  font-size: 1rem; font-weight: 700;
  margin-bottom: 8px;
}
.compliance-content h5.eyebrow-blue {
  color: var(--brand);
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.compliance-respaldo {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}
.compliance-respaldo h4 { font-size: 1.1rem; margin-bottom: 6px; }
.compliance-respaldo p { color: var(--muted); font-size: .92rem; margin: 0; }
.compliance-respaldo img { max-width: 140px; height: auto; }

/* Variante full-width de compliance-cards (4 columnas en lugar de 2x2) */
.compliance-cards.compliance-cards-row { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) {
  .compliance-cards.compliance-cards-row { grid-template-columns: repeat(2, 1fr); }
}

/* Variante de 3 columnas para case-cards */
.case-cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 768px) {
  .case-cards.cols-3 { grid-template-columns: 1fr; }
}

/* Sub-etiqueta de canon dentro de plan-card */
.plan-canon {
  display: inline-block;
  margin-top: 4px;
  font-size: .9rem; font-weight: 600;
  color: var(--brand);
}
.plan-card.is-primary .plan-canon {
  color: rgba(255, 255, 255, .9);
}

/* Variante "stat" de plan-card: número grande centrado */
.plan-card .plan-stat { text-align: center; margin-bottom: 8px; }
.plan-card .plan-stat-eyebrow {
  display: block;
  color: var(--brand);
  font-size: .82rem; letter-spacing: .12em;
  text-transform: uppercase; font-weight: 600;
  margin-bottom: 12px;
}
.plan-card .plan-stat-number {
  display: block;
  font-size: 2.6rem; font-weight: 800;
  color: #0d1326;
  font-family: 'Heebo', sans-serif;
  line-height: 1;
}
.plan-card .plan-stat-label {
  display: block;
  color: var(--muted);
  font-size: .9rem;
  margin-top: 6px;
}
.plan-card.is-primary .plan-stat-eyebrow { color: rgba(255,255,255,.85); }
.plan-card.is-primary .plan-stat-number { color: #fff; }
.plan-card.is-primary .plan-stat-label { color: rgba(255,255,255,.85); }

/* Badge institucional (Vigilados por SuperSociedades) */
.vigilado-badge {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.vigilado-badge .vigilado-eyebrow {
  display: block;
  color: var(--brand);
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
}
.vigilado-badge h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: #0d1326;
}
.vigilado-badge p {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.55;
  margin: 0 auto 22px;
  max-width: 340px;
}
.vigilado-badge img { max-width: 140px; margin: 0 auto; }

/* Lista de documentación centrada (check-list ancho completo) */
.docs-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 32px;
  max-width: 760px;
  margin: 0 auto 32px;
}
.docs-list li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: .95rem; color: #2a2f45;
}
.docs-list svg {
  width: 20px; height: 20px;
  color: #fff; background: var(--brand);
  border-radius: 50%; padding: 3px;
  flex-shrink: 0; margin-top: 1px;
  stroke-width: 2.4;
}
@media (max-width: 768px) {
  .docs-list { grid-template-columns: 1fr; gap: 10px; }
}

/* Plans grid (planes de fianza) */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.plan-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
}
.plan-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.plan-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 22px;
  line-height: 1.3;
}
.plan-card hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 0 0 22px;
}
.plan-card .check-list {
  display: grid; gap: 10px;
  flex: 1;
  margin-bottom: 24px;
}
.plan-card .check-list li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: .92rem; color: #2a2f45;
}
.plan-card .check-list svg {
  width: 18px; height: 18px;
  color: #fff; background: var(--brand);
  border-radius: 50%; padding: 3px;
  flex-shrink: 0; margin-top: 1px;
  stroke-width: 2.4;
}
.plan-card.is-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 14px 30px rgba(23, 36, 186, .25);
}
.plan-card.is-primary h3 { color: #fff; }
.plan-card.is-primary hr { border-color: rgba(255,255,255,.2); }
.plan-card.is-primary .check-list li { color: rgba(255,255,255,.95); }
.plan-card.is-primary .check-list svg { background: #fff; color: var(--brand); }
.plan-card .btn { width: 100%; justify-content: center; }
@media (max-width: 1024px) {
  .plans-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}
@media (max-width: 480px) {
  .plan-card { padding: 26px 22px; }
  .plan-card h3 { font-size: 1.05rem; }
}

@media (max-width: 1024px) {
  .compliance-section { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  .hero.hero-page { padding: 48px 0 56px; min-height: 36vh; }
  .solution-detail { padding: 32px 24px; }
  .solution-block h3 { font-size: 1.15rem; }
  .breadcrumb { font-size: .82rem; }
  .compliance-cards { gap: 10px; }
  .compliance-card { min-height: 150px; padding: 20px 16px; gap: 16px; }
  .compliance-card svg { width: 32px; height: 32px; }
  .compliance-card h4 { font-size: .92rem; }
  .compliance-respaldo { grid-template-columns: 1fr; gap: 16px; text-align: center; }
  .compliance-respaldo img { margin: 0 auto; }
}

section { padding: 80px 0; }
.section-eyebrow { display: inline-block; color: var(--brand); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; margin-bottom: 12px; }
.section-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 16px; }
.section-title em { font-style: normal; color: var(--brand); }
.section-intro { max-width: 720px; color: var(--muted); font-size: 1.05rem; }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head .section-intro { margin: 0 auto; }

.pillars {
  padding: 0 0 80px;
  background: transparent;
  position: relative;
  z-index: 5;
  margin-top: -120px;
}
/* Variante para páginas internas (sin overlap con el hero) */
.pillars.pillars-page {
  margin-top: 0;
  padding: 80px 0;
}
.pillars-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pillar {
  background: #fff;
  border: 1px solid #e9ebf1;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(13, 19, 38, .06);
  padding: 28px 24px;
  transition: transform .25s, box-shadow .25s;
}
.pillar:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(13, 19, 38, .10); }
.pillar-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.pillar h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}
.pillar hr {
  border: 0;
  border-top: 1px solid #e9ebf1;
  margin: 0 0 14px;
}
.pillar p { font-size: .92rem; color: var(--muted); margin: 0; line-height: 1.55; }

.mission { background: var(--bg-soft); }
.mission-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; align-items: center; }
.mission-media { position: relative; }
.mission-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.mission-badge {
  position: absolute; bottom: -30px; left: -30px;
  background: var(--brand); color: #fff;
  padding: 22px 30px; border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.mission-badge .label { display: block; font-size: 13px; opacity: .8; }
.mission-badge .value { font-size: 2.4rem; font-weight: 800; font-family: 'Heebo', sans-serif; line-height: 1; }
.mission-content h5 { color: var(--brand); font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }
.mission-quote { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); font-weight: 600; color: #2a2f45; }
.mission-list { display: grid; gap: 10px; margin: 24px 0 32px; }
.mission-list li { display: flex; gap: 10px; align-items: flex-start; color: #2a2f45; }
.mission-list svg { width: 20px; height: 20px; color: var(--brand); flex-shrink: 0; margin-top: 2px; }
.leader { display: flex; align-items: center; gap: 16px; padding-top: 16px; }
.leader img { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; }
.leader strong { display: block; font-size: 1.05rem; }
.leader span { color: var(--muted); font-size: .9rem; }

.fianza-def {
  position: relative;
  background-image:
    linear-gradient(90deg, rgba(13, 19, 38, .85) 0%, rgba(23, 36, 186, .55) 100%),
    url('https://afiancol.com/wp-content/uploads/2025/08/DSC_0168-scaled.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
  text-align: center;
}
.fianza-def h2 { color: #fff; }
.fianza-def p { font-size: 1.15rem; max-width: 800px; margin: 0 auto; opacity: .95; }

.solutions-head {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: end;
  margin-bottom: 24px; padding-bottom: 32px; border-bottom: 1px solid var(--border);
}
.solutions-head .section-intro { margin: 0; }
.solutions-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.solution-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 26px;
  transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column; min-height: 280px;
}
.solution-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.solution-card.is-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.solution-card.is-primary:hover { box-shadow: 0 20px 40px rgba(23, 36, 186, .35); }
.solution-icon { margin-bottom: 24px; }
.solution-card.is-primary .solution-icon svg { color: #fff; }
.solution-card h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 12px; line-height: 1.35; }
.solution-card.is-primary h4 { color: #fff; }
.solution-card p { color: var(--muted); font-size: .92rem; flex: 1; margin: 0; }
.solution-card.is-primary p { color: rgba(255, 255, 255, .92); }

.team { background: var(--bg-soft); }
.team .slider { padding-bottom: 8px; }
.team .slider-track { gap: 24px; }
.team-card-wrap { flex: 0 0 calc((100% - 72px) / 4); min-width: 0; }
.team-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.team-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.team-photo { aspect-ratio: 13/15; overflow: hidden; }
.team-photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(100%);
  transition: transform .4s ease, filter .4s ease;
}
.team-card:hover .team-photo img {
  transform: scale(1.05);
  filter: grayscale(0);
}
.team-info {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.team-name { flex: 1; min-width: 0; }
.team-name .first-names,
.team-name .last-names {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  color: #0d1326;
  font-family: 'Heebo', sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.team-name .last-names { font-weight: 600; margin-bottom: 6px; }
.role-wrap {
  overflow: hidden;
  position: relative;
  font-size: .82rem;
  color: var(--muted);
  height: 1.4em;
}
.role-track {
  display: inline-flex;
  gap: 36px;
  white-space: nowrap;
  will-change: transform;
}
.role-wrap.marquee .role-track {
  animation: marquee 16s linear infinite;
}
.role-wrap.marquee:hover .role-track {
  animation-play-state: paused;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 18px)); }
}
.social-link {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--brand-light); color: var(--brand);
  transition: background .2s, color .2s; flex-shrink: 0;
}
.social-link:hover { background: var(--brand); color: #fff; }
.social-link svg { width: 16px; height: 16px; }

.cta-banner {
  position: relative;
  background-image:
    linear-gradient(90deg, rgba(13, 19, 38, .85) 0%, rgba(23, 36, 186, .55) 100%),
    url('https://afiancol.com/wp-content/uploads/2025/08/DSC_0094-scaled.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
  overflow: hidden;
}
.cta-banner { padding-bottom: 0; }
.cta-banner.cta-banner-text-only { padding-bottom: 80px; }
.cta-banner h2 { color: #fff; }
.cta-split-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: center;
}
.cta-split-grid .section-title { margin-bottom: 16px; }
.cta-split-action { display: flex; justify-content: flex-end; }
@media (max-width: 1024px) {
  .cta-split-grid { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .cta-split-action { justify-content: center; }
}
.cta-banner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; }
.cta-banner-grid > div:first-child { padding-bottom: 60px; align-self: center; }
.cta-banner p { color: rgba(255,255,255,.9); font-size: 1.1rem; }
.cta-banner-img { max-height: 520px; margin: 0 auto; display: block; }

.sectors-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.sectors-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sector-card {
  background: #fff;
  border: 1px solid #e9ebf1;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(13, 19, 38, .06);
  padding: 36px 24px;
  text-align: center;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  text-decoration: none;
  color: inherit;
}
.sector-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(13, 19, 38, .12);
  border-color: var(--brand);
}
.sector-card svg { margin: 0 auto 14px; }
.sector-card h4 { font-size: .98rem; margin: 0; line-height: 1.3; }
.progress-list { display: grid; gap: 22px; margin-top: 28px; }
.progress-item .label { display: flex; justify-content: space-between; margin-bottom: 8px; font-weight: 600; }
.progress-bar { height: 8px; background: var(--border); border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--brand), #2c3bd8); width: 0; transition: width 1.6s cubic-bezier(.4, 0, .2, 1); border-radius: 99px; }

.cases { background: var(--bg-soft); }
.cases-top {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 56px;
}
.cases-head .section-intro { margin: 0; }
.counters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.counter {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.counter:last-child { border-bottom: 0; }
.counter .num {
  font-family: 'Heebo', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
  flex-shrink: 0;
  min-width: 130px;
}
.counter .label { font-size: .92rem; color: var(--muted); margin: 0; }
.case-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.case-card {
  position: relative;
  color: #fff;
  padding: 28px;
  border-radius: var(--radius);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
  transition: transform .3s, box-shadow .3s;
  box-shadow: 0 10px 30px rgba(13, 19, 38, .12);
}
.case-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--case-bg);
  background-size: cover;
  background-position: center;
  filter: grayscale(100%);
  transition: filter .4s ease, transform .6s ease;
  z-index: -2;
}
.case-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 36, 186, .55) 0%, rgba(23, 36, 186, .92) 100%);
  transition: opacity .3s ease;
  z-index: -1;
}
.case-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(13, 19, 38, .25);
}
.case-card:hover::before { filter: grayscale(0); transform: scale(1.05); }
.case-card:hover::after { opacity: .85; }
.case-card h3 { color: #fff; font-size: 1.1rem; margin-bottom: 10px; line-height: 1.3; }
.case-card p { color: rgba(255, 255, 255, .92); font-size: .92rem; margin: 0; }
.case-link {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #fff;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  transition: transform .25s, background .25s;
}
.case-link:hover { transform: scale(1.1) rotate(45deg); }
.case-link svg { width: 16px; height: 16px; stroke-width: 2; }

.process {
  position: relative;
  background-image:
    linear-gradient(135deg, rgba(23, 36, 186, .85) 0%, rgba(13, 19, 38, .55) 100%),
    url('https://afiancol.com/wp-content/uploads/2025/08/DSC_0149-scaled.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
}
.process .section-title { color: #fff; }
.process .section-intro { color: rgba(255, 255, 255, .9); }
.process-grid { display: grid; grid-template-columns: 2.4fr 1fr; gap: 60px; align-items: center; }
.process-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.process-step {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(13, 19, 38, .15);
  padding: 0;
  overflow: hidden;
  transition: transform .25s;
  display: flex;
  flex-direction: column;
}
.process-step:hover { transform: translateY(-4px); }
.process-step h4 {
  color: #0d1326;
  font-size: 1rem;
  margin: 0;
  padding: 16px 20px 14px;
  border-bottom: 2px solid var(--brand);
}
.process-step-body { padding: 18px 20px 22px; }
.process-step p { color: var(--muted); margin-bottom: 14px; font-size: .92rem; }
.process-step ul { display: grid; gap: 8px; }
.process-step li { display: flex; gap: 8px; font-size: .88rem; color: #2a2f45; }
.process-step li::before { content: ""; width: 6px; height: 6px; background: var(--brand); border-radius: 50%; flex-shrink: 0; margin-top: 8px; }

.testimonials { background: var(--bg-soft); }
.slider { position: relative; overflow: hidden; }
.slider-track { display: flex; align-items: stretch; transition: transform .6s cubic-bezier(.4, 0, .2, 1); gap: 24px; }
.testimonial {
  background: #fff; border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow-sm);
  flex: 0 0 calc((100% - 48px) / 3);
  display: flex; flex-direction: column;
}
.stars { display: flex; gap: 4px; margin-bottom: 16px; color: #f5b301; }
.stars svg { width: 18px; height: 18px; fill: currentColor; }
.testimonial blockquote { flex: 1; margin: 0 0 24px; font-size: 1rem; color: #2a2f45; line-height: 1.6; }
.testimonial-author { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.testimonial-author img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.testimonial-author strong { display: block; font-weight: 700; }
.testimonial-author span { font-size: .85rem; color: var(--muted); }
.slider-dots { display: flex; justify-content: center; gap: 4px; margin-top: 24px; }
.slider-dots button {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border-radius: 50%;
  transition: background .2s;
}
.slider-dots button::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: var(--border);
  transition: background .2s, transform .2s;
}
.slider-dots button.active::before { background: var(--brand); transform: scale(1.3); }

.site-footer { background: var(--bg-dark); color: #cfd2e2; padding: 60px 0 30px; text-align: center; }
.site-footer img { max-width: 360px; margin: 0 auto 24px; filter: brightness(0) invert(1); }
.site-footer .copy { font-size: .85rem; opacity: .6; margin-top: 24px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============= RESPONSIVE ============= */

/* Tablet (≤1024px) */
@media (max-width: 1024px) {
  .pillars-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .pillars { margin-top: -80px; }
  .pillars.pillars-page { margin-top: 0; padding: 56px 0; }
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .solutions-head { grid-template-columns: 1fr; gap: 16px; align-items: start; }
  .team-card-wrap { flex: 0 0 calc((100% - 48px) / 3); }
  .testimonial { flex: 0 0 calc((100% - 24px) / 2); }
  .mission-grid, .cta-banner-grid, .sectors-grid, .cases-top, .process-grid { grid-template-columns: 1fr; gap: 40px; }
  .case-cards { grid-template-columns: repeat(2, 1fr); }
  .mission-badge { left: 0; bottom: -22px; }
  .cta-banner { padding-bottom: 0; }
  .cta-banner-grid > div:first-child { padding-bottom: 40px; }
  .cta-banner-img { max-height: 380px; }
}

/* Mobile (≤768px) */
@media (max-width: 768px) {
  .topbar .location { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .scroll-top { display: inline-flex; }
  .scroll-progress { display: block; }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    width: min(340px, 88vw);
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 0;
    box-shadow: -10px 0 40px rgba(0, 0, 0, .12);
    display: block;
    padding: 76px 0 32px;
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 99;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .main-nav.open { transform: translateX(0); }

  .nav-backdrop {
    position: fixed; inset: 0;
    background: rgba(13, 19, 38, .5);
    opacity: 0; visibility: hidden;
    transition: opacity .3s ease;
    z-index: 98;
  }
  .nav-backdrop.open { opacity: 1; visibility: visible; }

  .nav-close {
    display: inline-flex;
    position: absolute;
    top: 18px; right: 18px;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--bg-soft);
    color: var(--brand);
    align-items: center;
    justify-content: center;
    z-index: 1;
  }
  .nav-close svg { width: 18px; height: 18px; }

  .nav-list {
    display: block;
    flex-direction: unset;
    gap: 0;
    align-items: stretch;
  }
  .nav-list li {
    display: block;
    border-bottom: 1px solid var(--border);
    margin: 0;
  }
  .nav-list li:last-child { border-bottom: 0; }
  .nav-list a {
    display: block;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: #1f2230;
    text-align: left;
  }
  .nav-list a:hover { background: var(--bg-soft); color: var(--brand); }

  .submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: #1f2230;
    background: transparent;
    text-align: left;
  }
  .submenu-toggle::after { margin-left: auto; }

  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    background: var(--bg-soft);
    border-radius: 0;
  }
  .has-submenu.open .submenu { max-height: 300px; }
  .submenu a {
    display: block;
    padding: 12px 24px 12px 40px;
    font-size: .94rem;
    color: var(--muted);
    font-weight: 500;
    border-radius: 0;
  }
  .submenu a:hover { background: #fff; color: var(--brand); }
  /* Layouts: keep 2 columns where possible to reduce vertical scroll */
  .pillars-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .sectors-cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .case-cards { grid-template-columns: 1fr 1fr; gap: 12px; }

  /* Testimonials: scroll-snap nativo (consistente con equipo) */
  .testimonials .slider { overflow: visible; }
  .testimonials .slider-track {
    transform: none !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 24px;
    gap: 14px;
    padding: 6px 24px 16px 24px;
    margin: 0 -24px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .testimonials .slider-track::-webkit-scrollbar { display: none; }
  .testimonial {
    flex: 0 0 86%;
    max-width: 380px;
    scroll-snap-align: start;
  }

  /* Team carousel: scroll-snap (consistent with solutions/process) */
  .team .slider-track {
    transform: none !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 28px;
    gap: 14px;
    padding: 6px 24px 16px 28px;
    margin: 0 -24px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .team .slider-track::-webkit-scrollbar { display: none; }
  .team-card-wrap {
    flex: 0 0 68%;
    min-width: 200px;
    max-width: 240px;
    scroll-snap-align: start;
  }
  .team .slider-dots { display: none; }
  .team-photo { aspect-ratio: 4/5; }
  .team-info { padding: 14px 16px; }
  .team-name .first-names,
  .team-name .last-names { font-size: .9rem; line-height: 1.2; }
  .team-name .last-names { margin-bottom: 4px; }
  .role-wrap { font-size: .76rem; height: 1.35em; }
  .social-link { width: 30px; height: 30px; }
  .social-link svg { width: 14px; height: 14px; }

  /* Horizontal scroll carousel for Solutions (8 items) */
  .solutions-grid {
    display: flex;
    grid-template-columns: unset;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 28px;
    gap: 14px;
    padding: 6px 24px 16px 28px;
    margin: 0 -24px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .solutions-grid::-webkit-scrollbar { display: none; }
  .solution-card {
    flex: 0 0 78%;
    min-width: 240px;
    max-width: 280px;
    scroll-snap-align: start;
  }

  /* Horizontal scroll carousel for Process steps (3 items) */
  .process-steps {
    display: flex;
    grid-template-columns: unset;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 28px;
    gap: 14px;
    padding: 6px 24px 16px 28px;
    margin: 0 -24px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .process-steps::-webkit-scrollbar { display: none; }
  .process-step {
    flex: 0 0 82%;
    min-width: 260px;
    max-width: 320px;
    scroll-snap-align: start;
  }

  /* Swipe hint with animated arrow */
  .swipe-hint {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: .82rem;
    font-weight: 500;
    color: var(--brand);
  }
  .swipe-hint svg {
    width: 16px; height: 16px; stroke-width: 2;
    animation: swipe-bounce 1.4s ease-in-out infinite;
  }
  /* Sobre fondos oscuros */
  .process .swipe-hint,
  .cta-banner .swipe-hint,
  .fianza-def .swipe-hint { color: rgba(255, 255, 255, .92); }
  @keyframes swipe-bounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(8px); }
  }

  /* Tighter vertical rhythm */
  section { padding: 48px 0; }
  .section-head { margin-bottom: 28px; }
  .section-title { font-size: 1.7rem; }
  .section-intro { font-size: .95rem; }

  /* Hero shorter */
  .hero { padding: 56px 0; min-height: 60vh; }
  .hero h1 { font-size: clamp(1.7rem, 7vw, 2.2rem); }
  .hero p { font-size: .95rem; margin-bottom: 24px; }
  .hero .divider { margin: 18px 0; }

  /* Cards compactos */
  .pillar { padding: 20px 16px; }
  .pillar svg { width: 32px; height: 32px; }
  .pillar h4 { font-size: .92rem; }
  .pillar p { font-size: .82rem; line-height: 1.45; }
  .pillar-head { gap: 10px; margin-bottom: 10px; }
  .pillar hr { margin-bottom: 10px; }

  .solution-card { padding: 20px 16px; min-height: auto; }
  .solution-card h4 { font-size: .92rem; }
  .solution-card p { font-size: .82rem; line-height: 1.45; }
  .solution-icon { margin-bottom: 14px; }
  .solution-icon svg, .pillar svg, .sector-card svg { width: 32px; height: 32px; }

  .sector-card { padding: 24px 14px; min-height: 140px; }
  .sector-card h4 { font-size: .9rem; }

  .case-card { min-height: 220px; padding: 18px; }
  .case-card h3 { font-size: .98rem; }
  .case-card p { font-size: .82rem; }
  .case-link { width: 30px; height: 30px; margin-top: 12px; }
  .case-link svg { width: 14px; height: 14px; }

  .testimonial { padding: 22px; }
  .testimonial blockquote { font-size: .92rem; margin-bottom: 18px; }
  .testimonials .stars { margin-bottom: 12px; }
  .testimonials .stars svg { width: 16px; height: 16px; }
  .testimonial-author img { width: 42px; height: 42px; }

  .process-step h4 { font-size: .94rem; padding: 14px 18px 12px; }
  .process-step-body { padding: 14px 18px 18px; }
  .process-step p { font-size: .88rem; }

  .leader { gap: 12px; }
  .mission-badge { padding: 16px 22px; }
  .mission-badge .value { font-size: 1.9rem; }
  .pillars { margin-top: -50px; padding-bottom: 48px; }
  .pillars.pillars-page { margin-top: 0; padding: 48px 0; }
}

/* Small mobile (≤480px) */
@media (max-width: 480px) {
  .container { padding: 0 16px; }

  /* Keep 2 cols for short-text cards */
  .pillars-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .sectors-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .case-cards { grid-template-columns: 1fr 1fr; gap: 10px; }

  /* 1 col for content-heavy solutions cards */
  .solutions-grid { grid-template-columns: 1fr; gap: 10px; }
  .solution-card { padding: 22px 18px; }
  .solution-card h4 { font-size: 1rem; }
  .solution-card p { font-size: .9rem; }

  .pillar { padding: 16px 12px; }
  .pillar svg, .sector-card svg { width: 28px; height: 28px; }
  .pillar h4 { font-size: .88rem; }
  .pillar p { font-size: .78rem; }
  .pillar hr { display: none; }

  .sector-card { padding: 20px 10px; min-height: 120px; }
  .sector-card h4 { font-size: .85rem; }

  .case-card { min-height: 200px; padding: 16px; }
  .case-card h3 { font-size: .9rem; margin-bottom: 6px; }
  .case-card p { font-size: .78rem; }

  .counter { flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 0; }
  .counter .num { font-size: 1.6rem; min-width: auto; }
  .counter .label { font-size: .85rem; }

  .topbar { display: none; }
  :root { --header-h: 82px; }
  .site-header .container { padding-top: 20px; padding-bottom: 20px; }
  .logo img { height: 42px; }
  .menu-toggle { width: 44px; height: 44px; }
  .menu-toggle svg { width: 22px; height: 22px; }
  .btn { padding: 10px 18px; font-size: 13px; }

  .testimonial { padding: 18px; }
  .testimonial blockquote { font-size: .9rem; }
  .team-photo { aspect-ratio: 1/1; }
  .site-footer img { max-width: 280px; }

  /* Componentes de páginas internas (servicios) */
  .hero.hero-page { padding: 40px 0 48px; min-height: 32vh; }
  .breadcrumb { gap: 6px; margin-bottom: 12px; }
  .compliance-cards { gap: 8px; }
  .compliance-card { min-height: 130px; padding: 16px 14px; gap: 14px; }
  .compliance-card svg { width: 28px; height: 28px; }
  .compliance-card h4 { font-size: .85rem; }
  .compliance-content hr { margin: 22px 0; }
  .solution-detail { padding: 28px 20px; }
  .solution-block { padding: 18px 0; }
  .solution-block h3 { font-size: 1.05rem; margin-bottom: 16px; }
  .solution-block .check-list li { font-size: .88rem; }

  section[id], [id].pillars, [id].mission, [id].cases, [id].sectors, [id].equipo, [id].contacto {
    scroll-margin-top: calc(var(--header-h) + 12px);
  }
}

/* =========================================================
   Presentaciones Oficiales
   ========================================================= */

.pres-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pres-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}
.pres-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.pres-card--soon { opacity: .8; pointer-events: none; }
.pres-card--soon:hover { transform: none; box-shadow: var(--shadow-sm); }

.pres-thumb {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.pres-thumb--corp     { background: linear-gradient(135deg, #1724ba 0%, #0d1326 100%); }
.pres-thumb--activa   { background: linear-gradient(135deg, #1463f3 0%, #1724ba 100%); }
.pres-thumb--arriendos{ background: linear-gradient(135deg, #0ea5e9 0%, #1463f3 100%); }
.pres-thumb--contratos{ background: linear-gradient(135deg, #3730a3 0%, #1724ba 100%); }
.pres-thumb--legales  { background: linear-gradient(135deg, #64748b 0%, #374151 100%); }

.pres-thumb-deco {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255,255,255,.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.06) 0%, transparent 40%);
  pointer-events: none;
}

.pres-thumb-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
  padding: 0 24px;
  text-align: center;
}
.pres-thumb-inner svg {
  width: 38px;
  height: 38px;
  color: rgba(255,255,255,.75);
  stroke-width: 1.5;
}
.pres-thumb-brand {
  font-family: 'Heebo', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff;
  letter-spacing: -.01em;
  line-height: 1;
}
.pres-thumb-sub {
  font-size: .78rem;
  font-weight: 500;
  color: rgba(255,255,255,.7);
  letter-spacing: .03em;
  text-transform: uppercase;
}

.pres-body {
  padding: 24px 24px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pres-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-light);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
  width: fit-content;
}
.pres-tag--soon {
  color: #64748b;
  background: #f1f5f9;
}

.pres-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .35em;
  color: #0d1326;
}
.pres-card p {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.58;
  margin-bottom: 20px;
  flex: 1;
}

.pres-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
}
.btn-sm {
  padding: 9px 16px;
  font-size: 13px;
}
.pres-btn-disabled {
  opacity: .5;
  cursor: default;
}
.pres-slides {
  font-size: .78rem;
  color: var(--muted);
  font-style: italic;
}

@media (max-width: 992px) {
  .pres-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
}
@media (max-width: 600px) {
  .pres-grid { grid-template-columns: 1fr; gap: 16px; }
  .pres-thumb { height: 160px; }
  .pres-body { padding: 18px 18px 16px; }
}

/* ========================================================= */

body.no-scroll { overflow: hidden; }

.mobile-only { display: none; }
@media (max-width: 768px) {
  .mobile-only { display: flex; }

  /* Mission section on mobile — more breathing room, smaller image, prominent badge */
  .mission-grid { gap: 56px; }
  .mission-media {
    max-width: 320px;
    margin: 0 auto;
    width: 100%;
  }
  .mission-media img { max-height: 260px; width: 100%; object-fit: cover; border-radius: var(--radius); }
  .mission-content { padding: 0 4px; }
  .mission-content h5 { font-size: .82rem; margin-bottom: 8px; }
  .mission-content p { font-size: .95rem; line-height: 1.6; margin-bottom: 14px; }
  .mission-quote { margin-top: 22px; padding-top: 22px; font-size: 1rem; }
  .mission-list { margin: 22px 0 30px; gap: 12px; }
  .mission-list li { font-size: .92rem; line-height: 1.5; }
  .leader { padding-top: 8px; gap: 14px; }
  .leader img { width: 56px; height: 56px; }
  .leader strong { font-size: 1rem; }
  .leader span { font-size: .88rem; }
  .mission-badge {
    padding: 18px 26px;
    left: -10px;
    bottom: -28px;
    border-radius: var(--radius);
    box-shadow: 0 14px 32px rgba(23, 36, 186, .35);
  }
  .mission-badge .value {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
    display: block;
  }
  .mission-badge .label {
    font-size: .82rem;
    font-weight: 500;
    opacity: .85;
    margin-top: 4px;
    display: block;
  }
}
