/* =====================================================================
   ANSA SEGURIDAD PRIVADA — style.css
   Sistema de diseño unificado v3 (optimizado, sin duplicados)
   =====================================================================

   ROLES DE COLOR (regla fija — azul rey domina sobre negro):
   - AZUL REY (--c-royal / --c-royal-deep): color PRINCIPAL del sitio.
                            --c-royal-deep sustituye al negro/navy en
                            TODOS los fondos grandes de sección oscura
                            (hero, footer, top-bar, clientes, paneles).
                            --c-royal (más claro) es el de botones/CTAs.
   - ROJO SELLO (--c-seal): acento de atención puntual — permisos,
                            badges activos, hovers de tarjetas. Su uso
                            es deliberadamente MENOR que el azul.
   - NEGRO (--c-carbon):    casi sin uso ya; queda solo como variable
                            de respaldo, no como color protagonista.
   - LATÓN (--c-brass):     detalle decorativo puntual (sellos). Úsalo
                            con moderación.

   Paleta resultante visible: blanco, azul rey, negro (mínimo), rojo
   (mínimo) — en ese orden de peso visual.

   ÍNDICE DE SECCIONES:
   1. Variables y reset global
   2. Tipografía y labels compartidos
   3. Navbar y dropdown
   4. Hero
   5. Botones globales
   6. Nosotros (mv-cards, certs, mini-stats)
   7. Sistemas integrales (grid de sectores en index)
   8. Clientes
   9. Permisos (sellos)
   10. Servicios — grid 2×5 + panel sticky (+ compatibilidad versiones previas)
   11. Consultoría
   12. División Electrónica
   13. Nuestro Personal (uniformes, categoría, responsabilidades)
   14. Lightbox universal
   15. Empleo (bolsa de trabajo)
   16. Contacto (mapa, FAQ, WhatsApp banner)
   17. WhatsApp flotante + recordatorio
   18. Toast de confirmación
   19. Footer
   20. Utilidades (back to top, service cards)
   ===================================================================== */
/* =====================================================================
   1. VARIABLES Y RESET GLOBAL
   ===================================================================== */
:root {
  /* Acción / marca - Azul Eléctrico como color principal */
  --c-royal:        #172BDE;
  --c-royal-dark:   #1120a3; /* Tono ligeramente más oscuro para contrastes/hover */
  --c-royal-deep:   #09115c; /* Azul muy oscuro para reemplazar fondos casi-negros */
  --c-royal-soft:   rgba(23, 43, 222, 0.15); /* Transparencia basada en el azul eléctrico */

  /* Atención institucional */
  --c-seal:         #9c1c2e;
  --c-seal-bright:  #b91c2e;
  --c-seal-soft:    rgba(220, 53, 69, .15);

  /* Fondo / contexto oscuro */
  --c-navy:         #08314e;
  --c-navy-soft:    #1a1a2e;
  --c-carbon:       #1a1a1a;

  /* Fondo claro */
  --c-bone:         #f7f5f0;
  --c-bone-deep:    #efebe2;
  --c-light:        #f8f9fa;

  /* Detalle decorativo */
  --c-brass:        #c9a86a;

  /* Texto / neutros */
  --c-stone:        #6b7280;
  --c-stone-light:  #9a9aaa;
  --c-border:       #e9ecef;

  /* WhatsApp (color de marca fijo) */
  --c-whatsapp:     #25d366;

  /* Tipografía */
  --tracking-label: .12em;
  --tracking-tight: -.01em;

  /* Layout */
  --navbar-offset:  96px;
}

html { scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; }
footer { background-color: var(--c-royal-deep); }

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 10000;
  transform: translateY(-150%);
  background: #fff;
  color: var(--c-royal-deep);
  border: 2px solid var(--c-royal-deep);
  border-radius: .5rem;
  padding: .65rem 1rem;
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid #f4c542;
  outline-offset: 3px;
}

html:not(.aos-ready) [data-aos] {
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}


/* =====================================================================
   2. TIPOGRAFÍA Y LABELS COMPARTIDOS
   ===================================================================== */

.label-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  color: var(--c-stone);
}
.label-eyebrow::before {
  content: '';
  width: 18px;
  height: 1.5px;
  background: var(--c-royal);
  display: inline-block;
}
.label-eyebrow.on-dark { color: var(--c-stone-light); }
.label-eyebrow.on-dark::before { background: var(--c-brass); }

.h-display {
  font-weight: 800;
  letter-spacing: var(--tracking-tight);
  line-height: 1.08;
}

.title-line {
  width: 46px;
  height: 3px;
  background: var(--c-royal);
  border-radius: 2px;
}
.title-line.on-dark { background: var(--c-brass); }

.shadow-text { text-shadow: 2px 2px 5px rgba(0, 0, 0, .8); }

.section-tight { padding-top: 3.25rem; padding-bottom: 3.25rem; }
@media (max-width: 767px) {
  .section-tight { padding-top: 2.5rem; padding-bottom: 2.5rem; }
}

[data-aos] { transition-duration: 650ms !important; }


/* =====================================================================
   3. NAVBAR Y DROPDOWN
   ===================================================================== */

.top-bar { background-color: var(--c-royal-deep); }

.ansa-logo { height: 65px; width: auto; transition: height .3s ease; }
@media (max-width: 1500px) { .ansa-logo { height: 70px; } }
@media (max-width: 700px) {
  .ansa-logo { height: 70px; }
  .ansa-brand-text { font-size: 2.5rem; }
}

/* Letras del logo en blanco para que resalten en el fondo azul */
.ansa-brand-text { color: #ffffff !important; }

#main-navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background-color: var(--c-royal);
  transition: background-color .3s ease, box-shadow .3s ease, padding .25s ease;
}
#main-navbar.navbar-scrolled {
  background-color: var(--c-royal) !important;
  box-shadow: 0 2px 20px rgba(0,0,0,.30);
  padding-top: .4rem !important;
  padding-bottom: .4rem !important;
}

/* Enlaces principales en blanco */
.navbar-nav .nav-link { 
  color: #ffffff !important; 
  transition: color .25s ease; 
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { 
  color: rgba(255, 255, 255, 0.75) !important; 
}
.navbar-nav .nav-link.active { font-weight: 600; }

/* Ajuste del botón en el navbar para que contraste bien */
.navbar .btn-primary { 
  background-color: #ffffff;
  color: var(--c-royal);
  border: none;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25); 
}
.navbar .btn-primary:hover {
  background-color: var(--c-light);
  color: var(--c-royal-dark);
}

.dropdown-menu-servicios {
  min-width: 280px;
  padding: .5rem;
  max-height: 420px;
  overflow-y: auto;
}
.dropdown-menu-servicios .dropdown-item,
.dropdown-item {
  border-radius: .5rem;
  font-size: .9rem;
  transition: background .15s ease, padding-left .15s ease, color .15s ease;
}
.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-menu-servicios .dropdown-item:hover,
.dropdown-menu-servicios .dropdown-item:focus {
  background: var(--c-light);
  color: var(--c-royal);
  padding-left: 1.5rem;
}
.dropdown-menu-servicios .dropdown-item.ps-4:hover { padding-left: 1.6rem !important; }
.dropdown-header { color: #adb5bd; padding-left: .75rem; }

@keyframes dropdown-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dropdown-toggle-submenu::after { display: none; }

@media (min-width: 992px) {
  .navbar .dropdown:hover > .dropdown-menu {
    display: block !important;
    margin-top: 0;
    animation: dropdown-fade-in .3s ease;
  }
  .dropdown-submenu { position: relative; }
  .dropdown-submenu > .submenu,
  .dropdown-submenu > .dropdown-menu.submenu {
    display: none !important;
    position: absolute;
    top: 0;
    left: 100%;
    margin-top: -5px;
    min-width: 250px;
  }
  .dropdown-submenu:hover > .submenu,
  .dropdown-submenu:hover > .dropdown-menu.submenu { display: block !important; }
}

@media (max-width: 991px) {
  /* Al cambiar a móvil, el menú desplegable hereda fondo azul, así que ponemos las letras blancas */
  #main-navbar .navbar-collapse {
    background-color: var(--c-royal);
    padding: 1rem;
    border-radius: 0.5rem;
  }
  .dropdown-submenu > .submenu,
  .dropdown-menu.submenu {
    display: none;
    position: static !important;
    left: 0;
    padding-left: 1rem;
    margin-top: 0;
    border: none !important;
    box-shadow: none !important;
    background: var(--c-light);
    border-radius: .6rem;
  }
  .dropdown-submenu:hover > .submenu { display: block; }
  /* Hamburguesa de color blanco */
  .navbar-toggler {
    border-color: rgba(255,255,255,0.5);
  }
  .navbar-toggler-icon {
    filter: invert(1); /* Pinta el ícono hamburguesa de blanco */
  }
}

[data-sector-link][aria-expanded="true"] { color: var(--c-royal) !important; }
/* =====================================================================
   4. HERO
   ===================================================================== */

.hero-section {
  background: linear-gradient(rgba(10, 61, 98, .3), rgba(10, 61, 98, .3)),
              url('../img/hero-corporativo.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 80vh;
  min-height: 500px;
}

.hero-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse-dot 1.4s ease-in-out infinite;
  vertical-align: middle;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(1.4); }
}

.hero-tw-wrap {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.hero-tw-pill {
  display: inline-block;
  background: #fff;
  color: var(--c-royal-deep);
  font-size: clamp(1.05rem, 2.8vw, 1.6rem);
  font-weight: 700;
  padding: .35rem 1.4rem;
  border-radius: .6rem;
  letter-spacing: -.01em;
  min-width: 4px;
  max-width: min(92vw, 760px);
  text-align: center;
  overflow-wrap: anywhere;
  transition: min-width .1s;
}
.hero-cursor {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 300;
  animation: blink .75s step-end infinite;
  line-height: 1;
}
@keyframes blink { 50% { opacity: 0; } }

.cursor {
  display: inline-block;
  width: 3px;
  background-color: #fff;
  margin-left: 2px;
  animation: blink .7s infinite;
}

.hero-stat { text-align: center; }
.hero-stat-num { display: block; font-size: 2rem; font-weight: 800; color: #fff; line-height: 1; }
.hero-stat-label {
  font-size: .75rem;
  color: rgba(255,255,255,.65);
  margin: .3rem 0 0;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hero-stat-divider { border-left: 1px solid rgba(255,255,255,.2); padding-left: 2.5rem; }

.hero-scroll-arrow {
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.6);
  font-size: 1.3rem;
  text-decoration: none;
  animation: bounce-arrow 2s ease-in-out infinite;
}
@keyframes bounce-arrow {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

.hero-job-banner { display: flex; justify-content: center; margin-top: 1.5rem; }
.hero-job-banner-link {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(6px);
  border-radius: 50px;
  padding: .6rem 1.4rem .6rem .6rem;
  text-decoration: none;
  transition: background .25s ease, transform .2s ease, border-color .25s ease;
}
.hero-job-banner-link:hover {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.4);
  transform: translateY(-2px);
}
.hero-job-banner-icon {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--c-seal-bright);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
}
.hero-job-banner-text { color: #fff; font-size: .85rem; font-weight: 500; }
.hero-job-banner-text strong { font-weight: 700; }
.hero-job-banner-arrow { color: #fff; font-size: .8rem; opacity: .8; transition: transform .2s ease; }
.hero-job-banner-link:hover .hero-job-banner-arrow { transform: translateX(3px); }

@media (max-width: 480px) {
  .hero-job-banner-link { padding: .55rem 1.1rem .55rem .55rem; }
  .hero-job-banner-text { font-size: .78rem; }
}


/* =====================================================================
   5. BOTONES GLOBALES — azul rey como acento de acción
   ===================================================================== */

.btn-primary {
  background-color: var(--c-royal);
  border-color: var(--c-royal);
  transition: all .3s ease;
}
.btn-primary:hover {
  background-color: var(--c-royal-dark);
  border-color: var(--c-royal-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(10, 61, 98, .3);
}
.btn-primary:active { transform: translateY(0); }

.form-control:focus,
.form-select:focus {
  border-color: var(--c-royal);
  box-shadow: 0 0 0 .2rem var(--c-royal-soft);
}

textarea.form-control { resize: vertical; min-height: 110px; }

.privacy-check {
  padding: 1rem 1rem 1rem 2.65rem;
  background: #f8f9fc;
  border: 1px solid var(--c-border);
  border-radius: .8rem;
  line-height: 1.5;
}
.privacy-check .form-check-input { margin-top: .3rem; }
.privacy-check a { color: var(--c-royal); font-weight: 700; }
.external-form-notice { background: #f8f9fc; line-height: 1.55; }

.local-proof {
  position: relative;
  z-index: 3;
  background: #fff;
  border-bottom: 1px solid var(--c-border);
  box-shadow: 0 10px 30px rgba(9, 17, 92, .07);
}
.local-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.local-proof-item {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1.25rem 1.5rem;
  border-right: 1px solid var(--c-border);
}
.local-proof-item:last-child { border-right: 0; }
.local-proof-item > i {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--c-royal-soft);
  color: var(--c-royal);
}
.local-proof-item strong,
.local-proof-item span { display: block; }
.local-proof-item strong { color: var(--c-royal-deep); font-size: .9rem; }
.local-proof-item span { margin-top: .15rem; color: var(--c-stone); font-size: .75rem; }
@media (max-width: 767px) {
  .local-proof-grid { grid-template-columns: 1fr; }
  .local-proof-item { border-right: 0; border-bottom: 1px solid var(--c-border); padding: 1rem .5rem; }
  .local-proof-item:last-child { border-bottom: 0; }
}

.legal-hero {
  background:
    linear-gradient(120deg, rgba(9,17,92,.96), rgba(23,43,222,.88)),
    url('../img/hero-corporativo.jpg') center 42% / cover;
}
.legal-content { background: var(--c-bone); }
.legal-content article {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 1.25rem;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  box-shadow: 0 16px 45px rgba(9,17,92,.08);
}
.legal-content h2 {
  margin-top: 2.25rem;
  color: var(--c-royal-deep);
  font-size: 1.15rem;
  font-weight: 800;
}
.legal-content p,
.legal-content li { color: #4b5563; line-height: 1.75; }
.legal-content a { color: var(--c-royal); font-weight: 650; }
.legal-summary,
.legal-contact {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 1rem;
  background: rgba(23,43,222,.06);
  border: 1px solid rgba(23,43,222,.12);
}
.legal-summary i { color: var(--c-royal); font-size: 1.35rem; margin-top: .15rem; }
.legal-contact { display: block; }

.error-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 15%, rgba(23,43,222,.35), transparent 32%),
    linear-gradient(145deg, var(--c-royal-deep), #030627);
}
.error-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}
.error-card {
  width: min(720px, 100%);
  background: #fff;
  border-radius: 1.5rem;
  padding: clamp(2rem, 6vw, 4.5rem);
  box-shadow: 0 30px 80px rgba(0,0,0,.3);
}
.error-logo { width: 100px; height: auto; }
.error-code {
  margin: 1rem 0 -.5rem;
  color: var(--c-royal);
  font-size: clamp(4rem, 14vw, 8rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.08em;
}
.error-card > p:not(.error-code) { max-width: 560px; line-height: 1.7; }

.card,
.custom-card {
  transition: transform .35s cubic-bezier(.4,0,.2,1),
              box-shadow .35s cubic-bezier(.4,0,.2,1);
}
.custom-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,.1) !important;
}


/* =====================================================================
   6. NOSOTROS (mv-cards, certs, mini-stats)
   ===================================================================== */

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 50px;
  padding: .3rem .9rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--c-navy-soft);
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.cert-badge:hover { background: var(--c-royal); border-color: var(--c-royal); color: #fff; }
.cert-badge i { color: #198754; }
.cert-badge:hover i { color: #4ade80; }

.mv-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  transition: transform .25s ease, box-shadow .25s ease;
}
.mv-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,0,0,.09); }
.mv-icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: .6rem;
  background: var(--c-royal);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
}

.mini-stat { background: var(--c-royal-deep); color: #fff; transition: transform .2s ease; }
.mini-stat:hover { transform: translateY(-3px); }
.mini-stat-num { font-size: 1.75rem; font-weight: 800; line-height: 1; color: #fff; }
.mini-stat-label {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(255,255,255,.55);
  margin-top: .25rem;
}


/* =====================================================================
   7. SISTEMAS INTEGRALES (grid de sectores en index)
   ===================================================================== */

.sistemas-track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
@media (max-width: 991px) {
  .sistemas-track {
    grid-auto-flow: column;
    grid-auto-columns: 70%;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: .5rem;
    margin: 0 -1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    scrollbar-width: none;
  }
  .sistemas-track::-webkit-scrollbar { display: none; }
  .sistemas-card { scroll-snap-align: start; }
}
@media (max-width: 575px) { .sistemas-track { grid-auto-columns: 78%; } }

.sistemas-card {
  position: relative;
  display: block;
  height: 220px;
  border-radius: 1rem;
  overflow: hidden;
  text-decoration: none;
  isolation: isolate;
}
.sistemas-card img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease, filter .4s ease;
  filter: saturate(.85) brightness(.85);
}
.sistemas-card:hover img { transform: scale(1.1); filter: saturate(1) brightness(.7); }
.sistemas-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,31,51,.92) 0%, rgba(5,31,51,.25) 55%, transparent 100%);
  transition: background .35s ease;
}
.sistemas-card:hover .sistemas-card-overlay {
  background: linear-gradient(to top, rgba(185,28,46,.82) 0%, rgba(5,31,51,.3) 60%, transparent 100%);
}
.sistemas-card-body { position: absolute; bottom: 0; left: 0; width: 100%; padding: 1.1rem; color: #fff; }
.sistemas-card-body i {
  font-size: 1.1rem;
  opacity: .85;
  margin-bottom: .5rem;
  display: block;
  transition: transform .3s ease;
}
.sistemas-card:hover .sistemas-card-body i { transform: translateY(-3px); }
.sistemas-card-body h6 { font-weight: 700; font-size: .92rem; margin: 0; letter-spacing: -.01em; }


/* =====================================================================
   8. CLIENTES
   ===================================================================== */

.clientes-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 130px; gap: 1rem; }
.cliente-tile-lg { grid-column: span 2; }
@media (max-width: 767px) {
  .clientes-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 110px; }
}

.cliente-tile {
  background: var(--c-royal-deep);
  border-radius: .9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: .6rem;
  padding: 1rem;
  transition: transform .25s ease, background .25s ease;
  position: relative;
  overflow: hidden;
}
.cliente-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,168,106,.08), transparent 60%);
  opacity: 0;
  transition: opacity .25s ease;
}
.cliente-tile:hover { transform: translateY(-4px); background: var(--c-royal); }
.cliente-tile:hover::before { opacity: 1; }
.cliente-tile i { font-size: 1.4rem; color: var(--c-brass); transition: color .25s ease; }
.cliente-tile:hover i { color: #fff; }
.cliente-tile span { font-size: .82rem; font-weight: 700; color: #fff; line-height: 1.3; }
.cliente-tile-lg span { font-size: 1rem; }
.cliente-tile-lg i { font-size: 1.8rem; }

.clientes-marquee-wrap {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.clientes-marquee-track { display: flex; gap: .75rem; width: max-content; animation: clientes-scroll 32s linear infinite; }
.clientes-marquee-wrap:hover .clientes-marquee-track { animation-play-state: paused; }
@keyframes clientes-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.cliente-chip {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  white-space: nowrap;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50px;
  padding: .65rem 1.4rem;
  font-size: .92rem;
  font-weight: 600;
  color: #fff;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.cliente-chip:hover { background: var(--c-royal-soft); border-color: rgba(10,61,98,.4); transform: translateY(-2px); }
.cliente-chip i { color: var(--c-royal); font-size: .85rem; }

@media (prefers-reduced-motion: reduce) {
  .clientes-marquee-track { animation: none; }
  .clientes-marquee-wrap { overflow-x: auto; }
}

.logo-slider { width: 100%; overflow: hidden; position: relative; padding: 20px 0; background: var(--c-light); border-radius: 12px; }
.logo-slide-track { display: flex; width: max-content; animation: scrollLogos 28s linear infinite; gap: 2rem; align-items: center; }
.logo-slide-track:hover { animation-play-state: paused; }
.slide {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 160px;
  height: 80px;
  padding: 8px 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: transform .3s ease, box-shadow .3s ease;
}
.slide:hover { transform: scale(1.03); box-shadow: 0 6px 16px rgba(0,0,0,.1); }
.slide img,
.client-logo { filter: grayscale(100%); opacity: .75; transition: all .35s ease; }
.slide:hover img,
.client-logo:hover { filter: grayscale(0%); opacity: 1; }
.client-logo:hover { transform: scale(1.05); }
@keyframes scrollLogos { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }


/* =====================================================================
   9. PERMISOS (sellos institucionales) — el rojo vive aquí
   ===================================================================== */

.seal-card {
  background: #fff;
  border: 1px solid rgba(13,14,26,.08);
  border-radius: 1.1rem;
  padding: 2.25rem 1.25rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}
.seal-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(13,14,26,.10); border-color: transparent; }
.seal-ring {
  width: 84px; height: 84px;
  border-radius: 50%;
  border: 2px solid var(--c-brass);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  position: relative;
  transition: border-color .25s ease;
}
.seal-ring::before { content: ''; position: absolute; inset: 6px; border-radius: 50%; border: 1px dashed rgba(201,168,106,.5); }
.seal-card:hover .seal-ring { border-color: var(--c-seal-bright); }
.seal-card:hover .seal-ring::before { border-color: rgba(185,28,46,.35); }
.seal-ring-inner {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--c-royal-deep);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: background .25s ease;
}
.seal-card:hover .seal-ring-inner { background: var(--c-seal-bright); }
.seal-card h6 { font-weight: 700; font-size: .95rem; color: var(--c-royal-deep); margin-bottom: .3rem; }
.seal-authority {
  display: inline-block;
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--c-seal-bright);
  margin-bottom: .5rem;
}
.seal-number {
  display: block;
  font-size: .76rem;
  color: var(--c-stone);
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  margin-bottom: 1.1rem;
  word-break: break-word;
}
.seal-cta {
  margin-top: auto;
  font-size: .76rem;
  font-weight: 700;
  color: var(--c-royal-deep);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding-top: .6rem;
  border-top: 1px solid rgba(13,14,26,.08);
  width: 100%;
  justify-content: center;
}
.seal-card:hover .seal-cta { color: var(--c-seal-bright); }


/* =====================================================================
   10. SERVICIOS — grid 2×5 + panel sticky (+ compatibilidad versiones previas)
   ===================================================================== */

.sector-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.sector-btn {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: var(--c-light);
  border: 1px solid #eef0f2;
  border-radius: .85rem;
  padding: .85rem .9rem;
  text-align: left;
  font-size: .85rem;
  font-weight: 600;
  color: #495057;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .15s ease;
}
.sector-btn i { width: 20px; text-align: center; font-size: .95rem; color: var(--c-stone); flex-shrink: 0; transition: color .18s ease; }
.sector-btn span { line-height: 1.25; }
.sector-btn:hover { background: #eef0f2; transform: translateX(2px); }
.sector-btn.active { background: var(--c-royal); border-color: var(--c-royal); color: #fff; }
.sector-btn.active i { color: #fff; }

.sector-panel { background: var(--c-light); border-radius: 1.25rem; overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,.05); }
.sector-panel-img { position: relative; height: 240px; overflow: hidden; }
.sector-panel-img img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s ease; }
.sector-panel-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55) 0%, transparent 55%);
}
.sector-panel-badge {
  position: absolute;
  bottom: .9rem; left: 1.1rem;
  background: rgba(185,28,46,.92);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .35rem .8rem;
  border-radius: 50px;
  z-index: 2;
}
.sector-panel-body { padding: 1.6rem 1.75rem 1.85rem; transition: opacity .18s ease; }
.sector-panel-icon {
  width: 48px; height: 48px;
  border-radius: .75rem;
  background: var(--c-royal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: .9rem;
}
.sector-panel-body h4 { font-weight: 800; font-size: 1.2rem; color: #1a1a1a; margin-bottom: .65rem; }
.sector-panel-body p { font-size: .87rem; color: var(--c-stone); line-height: 1.6; margin-bottom: .5rem; }
.sector-panel-body ul { margin: .4rem 0 0; padding-left: 1.1rem; font-size: .85rem; color: var(--c-stone); line-height: 1.55; }
.sector-panel-body li { margin-bottom: .35rem; }
.sector-panel-body li:last-child { margin-bottom: 0; }

@media (min-width: 992px) { .sector-panel-sticky-wrap { position: sticky; top: var(--navbar-offset); } }
@media (max-width: 991px) {
  .sector-panel-img { height: 190px; }
  .sector-panel-body { padding: 1.35rem 1.5rem 1.6rem; }
}

#subservices-menu .list-group-item-action,
#subservices-menu .list-group-item {
  background: var(--c-light);
  color: #495057;
  transition: background .2s ease, color .2s ease, transform .15s ease;
}
#subservices-menu .list-group-item-action:hover,
#subservices-menu .list-group-item:hover:not(.active) { background: #e9ecef; padding-left: 1.25rem; }
#subservices-menu .list-group-item-action.active,
#subservices-menu .list-group-item.active {
  background: var(--c-royal) !important;
  color: #fff !important;
  font-weight: 600;
  transform: translateX(2px);
}
#subservices-menu::-webkit-scrollbar { display: none; }

.details-fading { opacity: 0; }

#sectores-grid { align-items: start; }
.sector-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 1.1rem;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow .25s ease, border-color .25s ease, transform .2s ease;
  height: 100%;
}
.sector-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0,0,0,.10); border-color: #dee2e6; }
.sector-card-img { position: relative; height: 170px; overflow: hidden; }
.sector-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.sector-card:hover .sector-card-img img { transform: scale(1.08); }
.sector-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.45) 0%, transparent 55%);
}
.sector-card-icon {
  position: absolute;
  bottom: -18px; left: 18px;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--c-royal-deep);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
  z-index: 2;
  transition: background .25s ease;
}
.sector-card.active .sector-card-icon { background: var(--c-seal-bright); }
.sector-card-body { padding: 1.75rem 1.25rem 1.1rem; }
.sector-card-body h5 { font-weight: 700; font-size: 1.05rem; margin-bottom: .4rem; color: #1a1a1a; }
.sector-card-body p { font-size: .85rem; color: var(--c-stone); margin-bottom: .85rem; line-height: 1.45; }
.sector-card-cta {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--c-royal-deep);
}
.sector-card-cta i { transition: transform .25s ease; }
.sector-card.active .sector-card-cta { color: var(--c-seal-bright); }
.sector-card.active .sector-card-cta i { transform: rotate(180deg); }
.sector-card-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
  background: var(--c-light);
  border-top: 1px solid transparent;
}
.sector-card.active .sector-card-detail { max-height: 420px; border-top-color: var(--c-border); }
.sector-card-detail > p,
.sector-card-detail > ul { padding-left: 1.25rem; padding-right: 1.25rem; }
.sector-card-detail > p { padding-top: 1.1rem; font-size: .87rem; color: #495057; margin-bottom: .6rem; }
.sector-card-detail ul { margin: 0; padding-bottom: 1.25rem; font-size: .84rem; color: #495057; line-height: 1.55; }
.sector-card-detail li { margin-bottom: .35rem; }
.sector-card-detail li:last-child { margin-bottom: 0; }

@keyframes sector-highlight-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(185,28,46,.45); }
  70%  { box-shadow: 0 0 0 14px rgba(185,28,46,0); }
  100% { box-shadow: 0 0 0 0 rgba(185,28,46,0); }
}
.sector-card.highlight-pulse { animation: sector-highlight-pulse 1.1s ease-out; }

#sector-popover {
  position: absolute;
  display: none;
  width: 300px;
  max-width: calc(100vw - 24px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0,0,0,.18);
  padding: 1.25rem 1.25rem 1.1rem;
  z-index: 2000;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease;
}
#sector-popover.open { opacity: 1; transform: translateY(0); }
#sector-popover .sp-arrow {
  position: absolute;
  top: -7px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 14px; height: 14px;
  background: #fff;
  box-shadow: -2px -2px 6px rgba(0,0,0,.04);
}
#sector-popover .sp-close {
  position: absolute;
  top: .5rem; right: .6rem;
  background: none;
  border: none;
  font-size: 1.3rem;
  line-height: 1;
  color: #adb5bd;
  cursor: pointer;
  padding: .15rem .4rem;
  border-radius: 6px;
  transition: background .15s ease, color .15s ease;
}
#sector-popover .sp-close:hover { background: #f1f3f5; color: #495057; }
#sector-popover .sp-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--c-royal-deep);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-bottom: .75rem;
}
#sector-popover .sp-title { font-weight: 700; font-size: .95rem; margin-bottom: .4rem; color: #1a1a1a; padding-right: 1.2rem; }
#sector-popover .sp-text { font-size: .82rem; color: var(--c-stone); line-height: 1.5; margin-bottom: .9rem; }
#sector-popover .sp-cta { display: inline-flex; align-items: center; font-size: .82rem; font-weight: 600; color: var(--c-seal-bright); text-decoration: none; }
#sector-popover .sp-cta:hover { text-decoration: underline; }


/* =====================================================================
   11. CONSULTORÍA
   ===================================================================== */

.consult-card {
  background: var(--c-light);
  border: 1px solid var(--c-border);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.consult-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(0,0,0,.08); border-color: #dee2e6; }
.consult-icon {
  width: 58px; height: 58px;
  border-radius: 1rem;
  background: var(--c-royal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.consult-list li { display: flex; align-items: flex-start; gap: .6rem; margin-bottom: .55rem; font-size: .9rem; color: #495057; }
.consult-list li:last-child { margin-bottom: 0; }
.consult-list i { color: #198754; margin-top: .2rem; font-size: .8rem; }


/* =====================================================================
   12. DIVISIÓN ELECTRÓNICA
   ===================================================================== */

.elec-img-wrap { background: var(--c-royal-deep); cursor: default; }
.elec-main-img { height: 100%; min-height: 380px; }

.elec-thumb {
  width: 44px; height: 44px;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: .85rem;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
  backdrop-filter: blur(4px);
}
.elec-thumb:hover,
.elec-thumb.active { border-color: var(--c-seal-bright); background: rgba(185,28,46,.25); transform: scale(1.08); }

.elec-service-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease, transform .2s ease;
}
.elec-service-card:hover,
.elec-service-card.active-card { background: rgba(255,255,255,.09); border-color: rgba(185,28,46,.45); transform: translateX(4px); }
.elec-service-card.active-card .elec-svc-icon { background: rgba(185,28,46,.18) !important; border-color: rgba(185,28,46,.4) !important; }
.elec-service-card.active-card .elec-svc-icon i { color: var(--c-seal-bright) !important; }


/* =====================================================================
   13. NUESTRO PERSONAL (uniformes, categoría, responsabilidades)
   ===================================================================== */

.uniform-img-wrap { overflow: hidden; }
.uniform-img-wrap:hover .uniform-photo { transform: scale(1.04); }

.resp-card-hover { transition: transform .25s ease, box-shadow .25s ease; cursor: default; }
.resp-card-hover:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0,0,0,.18) !important; }

.categoria-item { transition: background .2s ease; }
.categoria-item:hover { background-color: #f0f4ff !important; }

/* Capacitación ANSA: visor deslizable con imágenes independientes */
.ansa-training {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.35fr);
  gap: clamp(2rem, 4vw, 4.25rem);
  align-items: center;
  margin: .5rem 0 4.75rem;
  padding: clamp(2rem, 4vw, 4rem);
  overflow: hidden;
  border-radius: 1.75rem;
  background: var(--c-royal-deep);
  box-shadow: 0 24px 60px rgba(9, 17, 92, .18);
  color: #fff;
  isolation: isolate;
}
.ansa-training::before {
  content: '';
  position: absolute;
  width: 430px;
  height: 430px;
  left: -190px;
  bottom: -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,.22), rgba(212,175,55,0) 68%);
  pointer-events: none;
  z-index: -1;
}
.ansa-training-copy h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.85rem, 3vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -.035em;
}
.ansa-training-line {
  width: 64px;
  height: 3px;
  margin: 1rem 0 1.4rem;
  border-radius: 999px;
  background: var(--c-brass);
}
.ansa-training-copy > p:not(.ansa-training-help) {
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: .96rem;
  line-height: 1.75;
}
.ansa-training-steps {
  display: grid;
  gap: 0;
  margin: 1.65rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255,255,255,.14);
}
.ansa-training-steps li {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .72rem 0;
  border-bottom: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.92);
  font-size: .84rem;
}
.ansa-training-steps span {
  color: var(--c-brass);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
}
.ansa-training-steps strong { font-weight: 700; }
.ansa-training-help {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 1.15rem 0 0;
  color: rgba(255,255,255,.58);
  font-size: .72rem;
}
.ansa-training-help i { color: var(--c-brass); }

.ansa-training-slider {
  min-width: 0;
  outline: none;
}
.ansa-training-viewport {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 1.2rem;
  background: #050a23;
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
  touch-action: pan-y;
  user-select: none;
}
.ansa-training-track {
  display: flex;
  transform: translate3d(0,0,0);
  transition: transform .55s cubic-bezier(.22,.8,.22,1);
  will-change: transform;
}
.ansa-training-slide {
  position: relative;
  flex: 0 0 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  background: #050a23;
}
.ansa-training-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.ansa-training-slide::after {
  content: '';
  position: absolute;
  inset: 58% 0 0;
  background: linear-gradient(to top, rgba(5,10,35,.82), transparent);
  pointer-events: none;
}
.ansa-training-slide figcaption {
  position: absolute;
  right: 1.25rem;
  bottom: 1.1rem;
  left: 1.25rem;
  z-index: 2;
  color: #fff;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .01em;
  text-shadow: 0 2px 12px rgba(0,0,0,.8);
}
.ansa-training-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 50%;
  background: rgba(5,10,35,.65);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.ansa-training-arrow--prev { left: 1rem; }
.ansa-training-arrow--next { right: 1rem; }
.ansa-training-arrow:hover {
  border-color: var(--c-brass);
  background: rgba(9,17,92,.9);
  transform: translateY(-50%) scale(1.06);
}
.ansa-training-arrow:focus-visible,
.ansa-training-slider:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
.ansa-training-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
}
.ansa-training-dots {
  display: flex;
  align-items: center;
  gap: .52rem;
}
.ansa-training-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.34);
  cursor: pointer;
  transition: width .25s ease, background-color .25s ease;
}
.ansa-training-dots button.is-active {
  width: 28px;
  background: var(--c-brass);
}
.ansa-training-dots button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.ansa-training-counter {
  color: rgba(255,255,255,.65);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
}

@media (max-width: 991.98px) {
  .ansa-training { grid-template-columns: 1fr; }
}

@media (max-width: 575.98px) {
  .ansa-training {
    margin-right: -.25rem;
    margin-left: -.25rem;
    padding: 1.75rem 1.25rem;
    border-radius: 1.35rem;
  }
  .ansa-training-copy > p:not(.ansa-training-help) { font-size: .9rem; line-height: 1.65; }
  .ansa-training-help { margin-bottom: .1rem; }
  .ansa-training-viewport { border-radius: .95rem; }
  .ansa-training-arrow { width: 40px; height: 40px; }
  .ansa-training-arrow--prev { left: .65rem; }
  .ansa-training-arrow--next { right: .65rem; }
  .ansa-training-slide figcaption { right: 1rem; bottom: .85rem; left: 1rem; font-size: .72rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ansa-training-track,
  .ansa-training-arrow,
  .ansa-training-dots button { transition: none; }
}


/* =====================================================================
   14. LIGHTBOX UNIVERSAL
   ===================================================================== */

#ansa-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.92);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: lb-fade-in .2s ease;
}
#ansa-lightbox.open { display: flex; }
@keyframes lb-fade-in { from { opacity: 0; } to { opacity: 1; } }
#lb-inner { position: relative; max-width: 580px; width: 100%; text-align: center; animation: lb-zoom-in .25s ease; }
@keyframes lb-zoom-in { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
#lb-img { max-width: 100%; max-height: 80vh; border-radius: 12px; box-shadow: 0 24px 80px rgba(0,0,0,.6); object-fit: contain; }
#lb-caption { color: rgba(255,255,255,.7); font-size: .85rem; margin-top: .75rem; margin-bottom: 0; }
#lb-close {
  position: fixed;
  top: 1.25rem; right: 1.5rem;
  font-size: 2rem;
  line-height: 1;
  color: #fff;
  background: rgba(255,255,255,.12);
  border: none;
  border-radius: 50%;
  width: 44px; height: 44px;
  cursor: pointer;
  transition: background .2s ease;
  z-index: 10000;
}
#lb-close:hover { background: rgba(185,28,46,.7); }
[data-lightbox] { cursor: zoom-in; }


/* =====================================================================
   15. EMPLEO (bolsa de trabajo)
   ===================================================================== */

@media (min-width: 992px) {
  .empleo-sticky-wrap {
    position: sticky;
    top: var(--navbar-offset);
    max-height: calc(100vh - 116px);
    overflow-y: auto;
    padding-right: .25rem;
  }
  .empleo-sticky-wrap::-webkit-scrollbar { width: 5px; }
  .empleo-sticky-wrap::-webkit-scrollbar-thumb { background: #dee2e6; border-radius: 10px; }
  .empleo-sticky-wrap::-webkit-scrollbar-track { background: transparent; }
}

.empleo-benefits { display: flex; flex-direction: column; gap: .6rem; }
.empleo-benefit-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: var(--c-light);
  border-radius: .7rem;
  padding: .75rem 1rem;
  font-size: .87rem;
  color: #495057;
}
.empleo-benefit-item i { color: #198754; font-size: 1rem; flex-shrink: 0; }

.empleo-process { background: #fff; border: 1px solid #eef0f2; border-radius: 1rem; padding: 1.5rem 1.5rem 1.25rem; }
.empleo-process-title {
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #adb5bd;
  margin-bottom: 1.1rem;
}
.empleo-step { display: flex; gap: .9rem; position: relative; padding-bottom: 1.1rem; }
.empleo-step::before { content: ''; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: #eef0f2; }
.empleo-step-last::before { display: none; }
.empleo-step-last { padding-bottom: 0; }
.empleo-step-num {
  flex-shrink: 0;
  width: 27px; height: 27px;
  border-radius: 50%;
  background: var(--c-royal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  z-index: 1;
}
.empleo-step-body h6 { font-size: .87rem; font-weight: 700; color: #1a1a1a; margin-bottom: .15rem; }
.empleo-step-body p { font-size: .8rem; color: var(--c-stone); margin: 0; line-height: 1.45; }

.empleo-accordion-item { box-shadow: 0 2px 10px rgba(0,0,0,.04); }

.empleo-notice {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  background: var(--c-light);
  border-left: 3px solid var(--c-royal);
  border-radius: .6rem;
  padding: .9rem 1.1rem;
  font-size: .82rem;
  color: var(--c-stone);
  line-height: 1.5;
}
.empleo-notice i { color: var(--c-royal); margin-top: .15rem; flex-shrink: 0; }

.empleo-form-card { background: var(--c-light); }
.empleo-form-card iframe,
.ansa-gform { display: block; }
.ansa-gform { width: 100% !important; max-width: 100%; border: none; }
@media (max-width: 420px) {
  .empleo-form-card { padding: 0 !important; margin-left: -.25rem; margin-right: -.25rem; width: calc(100% + .5rem); }
}


/* =====================================================================
   16. CONTACTO (mapa, FAQ, WhatsApp banner)
   ===================================================================== */

.wa-banner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: #fff;
  border: 1px solid rgba(37,211,102,.25);
  border-radius: 1.1rem;
  padding: 1.1rem 1.5rem;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.wa-banner:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(37,211,102,.18); }
.wa-banner-icon {
  flex-shrink: 0;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--c-whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}
.wa-banner-text { flex-grow: 1; }
.wa-banner-text h6 { font-weight: 700; font-size: .98rem; color: #1a1a1a; margin-bottom: .15rem; }
.wa-banner-text p { font-size: .84rem; color: var(--c-stone); margin: 0; }
.wa-banner-cta { flex-shrink: 0; font-size: .85rem; font-weight: 700; color: var(--c-whatsapp); display: flex; align-items: center; gap: .4rem; white-space: nowrap; }
@media (max-width: 575px) {
  .wa-banner { flex-wrap: wrap; }
  .wa-banner-cta { width: 100%; justify-content: flex-start; padding-left: 4.25rem; margin-top: -.5rem; }
}

.contact-card-list { background: var(--c-light); border-radius: 1.25rem; padding: 1.75rem; display: flex; flex-direction: column; gap: 1.25rem; height: 100%; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--c-border); }
.contact-item-last { border-bottom: none; padding-bottom: 0; }
.contact-item-icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: .65rem;
  background: var(--c-royal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.contact-item h6 { font-weight: 700; font-size: .88rem; color: #1a1a1a; margin-bottom: .15rem; }
.contact-item p { font-size: .82rem; color: var(--c-stone); margin: 0; line-height: 1.45; }

.contact-action-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem;
}
.contact-action-link {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  min-height: 32px;
  padding: .3rem .58rem;
  border: 1px solid rgba(31, 91, 175, .2);
  border-radius: .55rem;
  background: rgba(31, 91, 175, .06);
  color: var(--c-royal-deep);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.contact-action-link i { color: var(--c-royal); font-size: .75rem; }
.contact-action-link:hover,
.contact-action-link:focus-visible {
  color: var(--c-royal-deep);
  background: rgba(31, 91, 175, .12);
  border-color: rgba(31, 91, 175, .42);
  transform: translateY(-1px);
}
.contact-action-hint {
  display: none;
  align-items: center;
  gap: .35rem;
  margin-top: .42rem;
  color: #60718a;
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .01em;
}
.contact-action-hint i { color: var(--c-royal); }

.facebook-link-compact {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  width: fit-content;
  padding: .45rem .8rem .45rem .45rem;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.82);
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.facebook-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1877f2;
  color: #fff;
  box-shadow: 0 4px 12px rgba(24,119,242,.3);
}
.facebook-link-arrow { font-size: .68rem; opacity: .65; }
.facebook-link-compact:hover,
.facebook-link-compact:focus-visible {
  background: rgba(24,119,242,.18);
  border-color: rgba(87,153,238,.65);
  color: #fff;
  transform: translateY(-2px);
}

.contact-item-icon-facebook {
  background: rgba(24,119,242,.12);
  color: #1877f2;
}
.facebook-contact-link {
  color: #155ec3;
  font-weight: 700;
  text-decoration: none;
  text-underline-offset: 3px;
}
.facebook-contact-link:hover,
.facebook-contact-link:focus-visible {
  color: #0e4d9f;
  text-decoration: underline;
}

.map-frame { border-radius: 1.25rem; overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,.06); height: 100%; display: flex; flex-direction: column; }
.map-frame-header { background: var(--c-royal-deep); color: #fff; padding: 1rem 1.4rem; display: flex; align-items: center; gap: 1rem; }
.map-pin-icon {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--c-seal-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
}
.map-frame-header h6 { font-weight: 700; font-size: .9rem; margin: 0; }
.map-frame-header span { font-size: .76rem; opacity: .65; }
.map-frame-header > div:nth-child(2) { flex-grow: 1; }
.map-directions-btn {
  flex-shrink: 0;
  background: rgba(255,255,255,.12);
  color: #fff;
  border-radius: 50px;
  padding: .5rem 1rem;
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: .4rem;
  transition: background .2s ease;
}
.map-directions-btn:hover { background: rgba(255,255,255,.22); color: #fff; }
@media (max-width: 767px) {
  .map-frame-header { flex-wrap: wrap; }
  .map-directions-btn { width: 100%; justify-content: center; margin-top: .25rem; }
}
.map-frame-embed { flex-grow: 1; min-height: 360px; }
.map-frame-embed iframe { display: block; }

.faq-item { background: #fff; border-radius: .9rem; margin-bottom: .65rem; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.1rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-size: .92rem;
  font-weight: 700;
  color: #1a1a1a;
  cursor: pointer;
}
.faq-question i { flex-shrink: 0; font-size: .8rem; color: #adb5bd; transition: transform .25s ease; margin-left: 1rem; }
.faq-question:not(.collapsed) i { transform: rotate(180deg); color: var(--c-seal-bright); }
.faq-answer { padding: 0 1.4rem 1.25rem; font-size: .87rem; color: var(--c-stone); line-height: 1.6; }


/* =====================================================================
   17. WHATSAPP FLOTANTE + RECORDATORIO
   ===================================================================== */

.wa-float-wrap { position: fixed; bottom: 0; right: 0; z-index: 999; pointer-events: none; }
.wa-float-wrap .whatsapp-btn,
.wa-float-wrap .wa-bubble { pointer-events: auto; }

.whatsapp-btn {
  position: fixed;
  width: 60px; height: 60px;
  bottom: 30px; right: 30px;
  background-color: var(--c-whatsapp);
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 35px;
  box-shadow: 0 10px 25px rgba(37,211,102,.4);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  transition: transform .2s ease;
  animation: whatsappPulse 2s infinite;
}
.whatsapp-btn:hover { color: #fff; transform: scale(1.1); }
@keyframes whatsappPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }

.wa-pulse-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--c-whatsapp); opacity: 0; pointer-events: none; }
.wa-pulse-ring.pulsing { animation: wa-ring-expand 1.1s ease-out; }
@keyframes wa-ring-expand { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.9); opacity: 0; } }

.wa-bubble {
  position: fixed;
  bottom: 92px; right: 24px;
  max-width: 230px;
  background: #fff;
  border-radius: .9rem;
  padding: .85rem 1.6rem .85rem 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  opacity: 0;
  transform: translateY(8px) scale(.95);
  transition: opacity .25s ease, transform .25s ease;
  z-index: 998;
}
.wa-bubble.visible { opacity: 1; transform: translateY(0) scale(1); }
.wa-bubble::after {
  content: '';
  position: absolute;
  bottom: -7px; right: 28px;
  width: 14px; height: 14px;
  background: #fff;
  transform: rotate(45deg);
  box-shadow: 3px 3px 6px rgba(0,0,0,.04);
}
.wa-bubble p { margin: 0; font-size: .8rem; color: #1a1a1a; line-height: 1.4; }
.wa-bubble-close {
  position: absolute;
  top: .3rem; right: .45rem;
  background: none;
  border: none;
  font-size: 1rem;
  color: #adb5bd;
  cursor: pointer;
  line-height: 1;
  padding: .2rem;
}
.wa-bubble-close:hover { color: #495057; }

@media (max-width: 480px) { .wa-bubble { right: 16px; bottom: 86px; max-width: 200px; } }


/* =====================================================================
   18. TOAST DE CONFIRMACIÓN
   ===================================================================== */

#ansa-toast {
  position: fixed;
  bottom: 1.75rem; right: 1.75rem;
  max-width: 360px;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 20px 50px rgba(13,14,26,.22);
  padding: 1.1rem 1.1rem 1.1rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  z-index: 4000;
  transform: translateY(20px) scale(.96);
  opacity: 0;
  pointer-events: none;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), opacity .3s ease;
  border-left: 4px solid #1a8a4a;
}
#ansa-toast.open { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
#ansa-toast.toast-error { border-left-color: var(--c-seal-bright); }
.ansa-toast-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #e7f6ec;
  color: #1a8a4a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
}
#ansa-toast.toast-error .ansa-toast-icon { background: #fbe9eb; color: var(--c-seal-bright); }
.ansa-toast-text { flex-grow: 1; display: flex; flex-direction: column; gap: .15rem; }
.ansa-toast-text strong { font-size: .9rem; color: #1a1a1a; }
.ansa-toast-text span { font-size: .82rem; color: var(--c-stone); line-height: 1.4; }
.ansa-toast-close { background: none; border: none; color: #adb5bd; font-size: 1.2rem; line-height: 1; cursor: pointer; padding: 0; flex-shrink: 0; }
.ansa-toast-close:hover { color: #495057; }

@media (max-width: 480px) { #ansa-toast { left: 1rem; right: 1rem; bottom: 1rem; max-width: none; } }
@media (prefers-reduced-motion: reduce) { #ansa-toast { transition: opacity .2s ease; transform: none; } }


/* =====================================================================
   19. FOOTER
   ===================================================================== */

.footer-link { transition: color .3s ease, padding-left .3s ease; }
.footer-link:hover { color: #ffffff !important; padding-left: 6px; }
.footer-icon { transition: color .3s ease, transform .3s ease; }
.footer-icon:hover { color: #ffffff !important; transform: scale(1.2); display: inline-block; }

/* =====================================================================
   CONSENTIMIENTO DE COOKIES, ANALÍTICA Y PUBLICIDAD
   ===================================================================== */

.cookie-consent[hidden],
.cookie-settings-button[hidden],
.cookie-consent-preferences[hidden],
.cookie-btn[hidden],
[data-cookie-frame][hidden],
[data-cookie-placeholder][hidden] { display: none !important; }

.cookie-consent {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 10020;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 1.5rem;
  align-items: center;
  max-width: 1180px;
  max-height: calc(100vh - 2rem);
  margin: 0 auto;
  padding: 1.25rem;
  overflow-y: auto;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 1.25rem;
  background: rgba(9,17,92,.98);
  box-shadow: 0 24px 70px rgba(0,0,0,.35);
  color: #fff;
  backdrop-filter: blur(14px);
}
.cookie-consent-main {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  min-width: 0;
}
.cookie-consent-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: .75rem;
  background: rgba(212,175,55,.16);
  color: var(--c-brass);
}
.cookie-consent-copy h2 {
  margin: 0 0 .3rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
}
.cookie-consent-copy p {
  max-width: 760px;
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: .78rem;
  line-height: 1.55;
}
.cookie-consent-copy a { color: #fff; text-underline-offset: 3px; }
.cookie-consent-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: .55rem;
}
.cookie-btn {
  min-height: 40px;
  padding: .58rem .9rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: .74rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}
.cookie-btn:hover { transform: translateY(-1px); }
.cookie-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.cookie-btn-primary,
.cookie-btn-save { background: #fff; color: var(--c-royal-deep); }
.cookie-btn-muted {
  border-color: rgba(255,255,255,.24);
  background: rgba(255,255,255,.07);
  color: #fff;
}
.cookie-btn-muted:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.13); }
.cookie-consent-preferences {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .65rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.13);
}
.cookie-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-width: 0;
  margin: 0;
  padding: .8rem;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: .85rem;
  background: rgba(255,255,255,.05);
  cursor: pointer;
}
.cookie-choice-required { cursor: default; }
.cookie-choice span { min-width: 0; }
.cookie-choice strong,
.cookie-choice small { display: block; }
.cookie-choice strong { color: #fff; font-size: .76rem; }
.cookie-choice small { margin-top: .16rem; color: rgba(255,255,255,.55); font-size: .65rem; line-height: 1.35; }
.cookie-choice input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  accent-color: var(--c-brass);
}
.cookie-required-label {
  color: var(--c-brass);
  font-size: .62rem;
  font-weight: 800;
  white-space: nowrap;
}
.cookie-settings-button {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 998;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 38px;
  padding: .45rem .72rem;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: var(--c-royal-deep);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  font-size: .7rem;
  font-weight: 800;
  cursor: pointer;
}
.cookie-settings-button:hover { background: var(--c-royal); }
.cookie-settings-button:focus-visible { outline: 3px solid var(--c-brass); outline-offset: 2px; }

.external-cookie-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: 2rem;
  background: #f5f7fb;
  text-align: center;
}
.external-cookie-placeholder-inner { max-width: 460px; }
.external-cookie-placeholder i { color: var(--c-royal); font-size: 1.6rem; }
.external-cookie-placeholder h3 { margin: .9rem 0 .45rem; color: var(--c-royal-deep); font-size: 1rem; font-weight: 800; }
.external-cookie-placeholder p { margin: 0 0 1rem; color: var(--c-stone); font-size: .78rem; line-height: 1.55; }
.external-cookie-placeholder .btn { font-size: .76rem; font-weight: 700; }

@media (max-width: 991.98px) {
  .cookie-consent { grid-template-columns: 1fr; }
  .cookie-consent-actions { justify-content: flex-start; }
  .cookie-consent-preferences { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575.98px) {
  .cookie-consent {
    right: 0;
    bottom: 0;
    left: 0;
    max-height: 88vh;
    padding: 1rem;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 1.1rem 1.1rem 0 0;
  }
  .cookie-consent-icon { display: none; }
  .cookie-consent-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .cookie-btn { width: 100%; }
  .cookie-consent-preferences { grid-template-columns: 1fr; }
  .cookie-settings-button span { display: none; }
  .cookie-settings-button { width: 40px; padding: 0; justify-content: center; }
  .external-cookie-placeholder { min-height: 280px; padding: 1.5rem; }
}

footer a[href^="tel:"],
footer a[href^="mailto:"] {
  text-decoration: underline !important;
  text-decoration-color: rgba(255,255,255,.36) !important;
  text-underline-offset: 3px;
  transition: color .2s ease, text-decoration-color .2s ease;
}
footer a[href^="tel:"]:hover,
footer a[href^="mailto:"]:hover,
footer a[href^="tel:"]:focus-visible,
footer a[href^="mailto:"]:focus-visible {
  color: #fff !important;
  text-decoration-color: #fff !important;
}

@media (max-width: 767.98px) {
  .contact-action-hint { display: inline-flex; }

  .contact-action-link {
    min-height: 42px;
    padding: .48rem .7rem;
  }

  footer a[href^="tel:"],
  footer a[href^="mailto:"] {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    column-gap: .42rem;
    min-height: 36px;
  }

  footer a[href^="tel:"]::after,
  footer a[href^="mailto:"]::after {
    display: inline-flex;
    align-items: center;
    padding: .13rem .42rem;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px;
    background: rgba(255,255,255,.09);
    color: rgba(255,255,255,.78);
    font-size: .61rem;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
  }

  footer a[href^="tel:"]::after { content: "Toca para llamar"; }
  footer a[href^="mailto:"]::after { content: "Toca para escribir"; }
}


/* =====================================================================
   20. UTILIDADES (back to top, service cards genéricas)
   ===================================================================== */
/*
.back-to-top,
.back-to-top-btn {
  position: fixed;
  bottom: 100px !important;
  right: 30px;
  z-index: 9999;
  width: 55px; height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(0,0,0,.2);
}
*/
.service-card { background-color: var(--c-light); border-radius: 12px; transition: all .3s ease; cursor: pointer; }
.icon-service { color: var(--c-carbon); transition: transform .3s ease, color .3s ease; }
.service-card:hover { background-color: #ffffff; transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,.15) !important; }
.service-card:hover .icon-service { transform: scale(1.2); color: var(--c-royal); }


/* ── Tipografía Bebas Neue en el navbar ────────────────────── */
.ansa-brand-text {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;           /* Bebas Neue solo tiene un weight */
  font-size: 1.5rem;          /* un poco más grande que fs-4 porque Bebas es condensada */
  letter-spacing: .04em;
  color: #1a1a1a;             /* heredará del navbar; en fondo blanco queda oscuro */
  line-height: 1;
}
 
/* En móvil, ya ajustamos el logo con .ansa-logo — el texto
   también se reduce un pelo para no chocar con el hamburguer */
@media (max-width: 575px) {
  .ansa-brand-text { font-size: 1.25rem; }
}
 
 

/* Importamos Cinzel como respaldo en la primera línea del CSS */

/* Estilo general para alinear bien el texto con tu logo de Bootstrap */
.ansa-brand-text {
  display: inline-block;
  vertical-align: middle;
}



.ansa-seguridad {
  font-family: "Copperplate", "Copperplate Gothic Light", "Cinzel", serif;
  
  /* clamp(Tamaño Mínimo en móvil, Tamaño Dinámico, Tamaño Máximo en PC) */
  font-size: clamp(0.7rem, 2.5vw, 1.3rem); 
  
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #fff;
}

.ansa-seguridad-n {
  font-family: "Copperplate", "Copperplate Gothic Light", "Cinzel", serif;
  font-size: 1.5rem; /* Más pequeño para que el navbar no se rompa en móviles */
  font-weight: 1200;
  text-transform: uppercase;
  letter-spacing: 0.15em; /* Reduje un poco el espaciado para que se adapte mejor al navbar */
  color: #000000;
}

/* ── BADGE 20 AÑOS ───────────────────────────────────────────────── */

.premium-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin: 1rem auto 2rem;
  position: relative;
  isolation: isolate;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease;
}

.premium-badge::before {
  content: '';
  position: absolute;
  inset: -24px -42px -8px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 224, 112, .42) 0%, rgba(212, 175, 55, .16) 38%, transparent 72%);
  filter: blur(10px);
  opacity: .6;
  animation: badgeHaloPulse 3.6s ease-in-out infinite;
  pointer-events: none;
}

.premium-badge.pop-in {
  animation: badgeEntrance 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes badgeEntrance {
  0%   { transform: scale(0.7) translateY(12px); opacity: 0; }
  60%  { transform: scale(1.05) translateY(-3px); opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

@keyframes badgeHaloPulse {
  0%, 100% { opacity: .38; transform: scale(.92); }
  50% { opacity: .82; transform: scale(1.08); }
}

.premium-badge.scrolled {
  transform: scale(0.65) translateY(-28px);
  opacity: 0.7;
}

/* Círculo principal */
.badge-emblem {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #1c1a14 0%, #0d0c09 100%);
  box-shadow:
    0 0 0 1.5px rgba(212, 175, 55, 0.15),
    0 0 0 3px rgba(0, 0, 0, 0.6),
    0 8px 32px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(252, 246, 186, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5);
  animation: badgeGoldFloat 4.8s ease-in-out infinite, badgeGoldPulse 3.8s ease-in-out infinite;
}

@keyframes badgeGoldFloat {
  0%, 100% { transform: translateY(0) rotate(-.4deg); }
  50% { transform: translateY(-6px) rotate(.4deg); }
}

@keyframes badgeGoldPulse {
  0%, 100% {
    box-shadow: 0 0 0 1.5px rgba(212,175,55,.2), 0 0 0 3px rgba(0,0,0,.65), 0 8px 32px rgba(0,0,0,.7), 0 0 18px rgba(212,175,55,.12), inset 0 1px 0 rgba(252,246,186,.08), inset 0 -1px 0 rgba(0,0,0,.5);
  }
  50% {
    box-shadow: 0 0 0 1.5px rgba(252,246,186,.5), 0 0 0 3px rgba(0,0,0,.65), 0 12px 38px rgba(0,0,0,.72), 0 0 34px rgba(245,208,96,.42), inset 0 1px 0 rgba(252,246,186,.18), inset 0 -1px 0 rgba(0,0,0,.5);
  }
}

/* Anillo dorado con rotación suave */
.badge-emblem::before {
  content: '';
  position: absolute;
  inset: -3.5px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #000000 0%,
    #171717 15%,
    #fcf6ba 30%,
    #1b1a1a 45%,
    #fff2a8 55%,
    #232322 65%,
    #fcf6ba 78%,
    #1b1a1a 90%,
    #000000 100%
  );
  animation: ringRotate 8s linear infinite;
  z-index: -1;
}

@keyframes ringRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Máscara interior para aislar el anillo */
.badge-emblem::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 3.5px #0d0c09;
  z-index: 0;
  pointer-events: none;
}

/* Número 20 */
.hero-años-num.gold-text {
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -3px;
  margin: 0;
  font-family: 'Georgia', 'Times New Roman', serif;
  background: linear-gradient(
    110deg,
    #fff8d6 0%,
    #ffffff 22%,
    #c8960c 44%,
    #fff8d6 52%,
    #c8960c 60%,
    #f5d060 78%,
    #fff8d6 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
  position: relative;
  z-index: 1;
  animation: goldTextSweep 3.4s ease-in-out infinite;
}

@keyframes goldTextSweep {
  0%, 20% { background-position: 100% 50%; }
  70%, 100% { background-position: 0% 50%; }
}

/* Estrellas */
.hero-años-stars {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #d4af37;
  font-size: 0.7rem;
  margin-top: 6px;
  position: relative;
  z-index: 1;
  opacity: 0.9;
}

.hero-años-stars i { animation: anniversaryStar 2.4s ease-in-out infinite; }
.hero-años-stars i:nth-child(2) { animation-delay: .35s; }
.hero-años-stars i:nth-child(3) { animation-delay: .7s; }

@keyframes anniversaryStar {
  0%, 100% { opacity: .55; transform: scale(.85) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.18) rotate(8deg); filter: drop-shadow(0 0 6px rgba(255,232,137,.8)); }
}

/* Listón */
.hero-años-sub.gold-ribbon {
  position: relative;
  z-index: 2;
  margin-top: -12px;
  padding: 7px 28px;
  background: linear-gradient(
    to right,
    #7a4d10 0%,
    #bf953f 20%,
    #f5e97a 45%,
    #fcf6ba 50%,
    #f5e97a 55%,
    #bf953f 80%,
    #7a4d10 100%
  );
  background-size: 220% 100%;
  color: #2a1a00;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 2px;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  animation: ribbonGoldSweep 5.5s linear infinite;
}

@keyframes ribbonGoldSweep {
  from { background-position: 110% 50%; }
  to { background-position: -110% 50%; }
}

@media (hover: hover) {
  .premium-badge:hover { transform: scale(1.035); }
  .premium-badge:hover::before { opacity: .95; }
}

.hero-años-sub.gold-ribbon::before,
.hero-años-sub.gold-ribbon::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 16px solid transparent;
  z-index: -1;
}

.hero-años-sub.gold-ribbon::before {
  left: -18px;
  border-right-color: #7a4d10;
}

.hero-años-sub.gold-ribbon::after {
  right: -18px;
  border-left-color: #7a4d10;
}
