@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');
@import url('https://cdn.jsdelivr.net/npm/aos@2.3.4/dist/aos.css');

/* ============================================================
   1. VARIABLES GLOBALES
   ============================================================ */
:root {
  /* Paleta de colores */
  --color1: #FFFFFF;
  --color2: #F0F2F5;
  --color3: #00162B;
  --color4: #0dc50d;
  --color5: #fe0000;
  --color6: #1c73d1;
  --color7: #f99303;

  /* Alturas y ritmo */
  --header-h: 60px;
  --espacio-seccion: 64px;
  --espacio-seccion-sm: 48px;
  --espacio-seccion-xs: 40px;

  /* Easing premium */
  --easing-suave: cubic-bezier(0.22, 1, 0.36, 1);

  /* Transiciones */
  --transicion: color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --transicion-larga: color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                      background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                      border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                      box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                      transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   2. ESTILOS BASE
   ============================================================ */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  background-color: var(--color2);
  color: var(--color3);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.01em;
}

a {
  text-decoration: none;
  color: var(--color6);
}

a:not([class*="btn-"]):hover {
  color: #0740a3;
}

address {
  font-style: normal;
}

/* ============================================================
   3. UTILIDADES
   ============================================================ */
.text-blanco {
  color: var(--color1);
  font-weight: 700;
}

.text-verde {
  color: var(--color4);
  font-weight: 700;
}

.antetitulo {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color1);
  margin-bottom: 8px;
  display: inline-block;
}

.antetitulo--oscuro {
  color: var(--color6);
}

.antetitulo--verde {
  color: var(--color4);
}

.antetitulo--acento {
  color: var(--color7);
}

.antetitulo--bloque {
  display: inline-block;
  color: var(--color6);
  background: color-mix(in srgb, var(--color6) 10%, transparent 90%);
  padding: 4px 12px;
  border-radius: 20px;
}

.titulo-seccion {
  font-size: 25.6px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 8px;
  color: var(--color3);
}

.titulo-seccion--claro {
  color: var(--color1);
}

/* Foco visible consistente (accesibilidad) */
.foco-visible:focus-visible {
  outline: 2px solid var(--color4);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ============================================================
   4. SISTEMA DE BOTONES
   ============================================================ */

/* Botón primario */
.btn-primario {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 12px 28px;
  cursor: pointer;
  transition: var(--transicion);
  border: 1px solid transparent;
  white-space: nowrap;
  line-height: 1;
  background: var(--color6);
  color: var(--color1);
  border-radius: 10px;
}

.btn-primario:hover {
  background: #0740a3;
  color: var(--color2);
  box-shadow: 0 4px 15px rgba(40, 68, 115, 0.4);
  transform: translateY(-1px);
}

.btn-primario:active {
  box-shadow: 0 2px 8px rgba(40, 68, 115, 0.4);
  transform: translateY(0);
}

/* Botón secundario */
.btn-secundario {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 12px 28px;
  cursor: pointer;
  transition: var(--transicion);
  white-space: nowrap;
  line-height: 1;
  border-radius: 10px;
  background: transparent;
  color: var(--color4);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-secundario:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--color4);
  color: var(--color1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

.btn-secundario:active {
  transform: translateY(0);
}

/* Botón header */
.btn-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: var(--transicion);
  white-space: nowrap;
  line-height: 1;
  padding: 8px 20px;
  border-radius: 10px;
  background: transparent;
  color: var(--color2);
  border: 1px solid var(--color2);
}

.btn-header:hover {
  background: var(--color2);
  color: var(--color3);
  border-color: var(--color4);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color4) 25%, transparent 75%);
  transform: translateY(-1px);
}

.btn-header:active {
  transform: translateY(0);
}

/* Botón enlace */
.btn-enlace {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--color6);
  cursor: pointer;
  transition: var(--transicion);
  white-space: nowrap;
  line-height: 1;
}

.btn-enlace i {
  color: var(--color4);
}

.btn-enlace:hover {
  color: #0740a3;
}

/* Easing premium en hovers de botones y cards */
.btn-primario:hover,
.btn-secundario:hover,
.solucion-card:hover {
  transition-timing-function: var(--easing-suave);
}

/* Media queries de botones */
@media screen and (max-width: 767.98px) {
  .btn-primario {
    width: 100%;
    padding: 14px 32px;
  }
}

@media screen and (max-width: 480px) {
  .btn-primario {
    padding: 10px 24px;
    font-size: 15px;
  }
}

/* ============================================================
   5. HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--color3) 90%, transparent 10%) 0%,
    color-mix(in srgb, var(--color3) 70%, transparent 30%) 50%,
    color-mix(in srgb, var(--color3) 20%, transparent 80%) 100%
  );
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.header--scrolled {
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--color3) 98%, transparent 2%) 0%,
    color-mix(in srgb, var(--color3) 85%, transparent 15%) 50%,
    color-mix(in srgb, var(--color3) 40%, transparent 60%) 100%
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.contenedor-header {
  height: var(--header-h);
  align-items: center;
  padding-left: 10px;
  padding-right: 10px;
  margin-left: 0;
  margin-right: 0;
}

#menu nav ul {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}

#menu nav li a:not(.btn-header) {
  padding: 5px 13px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color2);
  transition: color 0.25s ease;
  border-radius: 6px;
  border-bottom: 1px solid transparent;
}

#menu nav li a:not(.btn-header):hover {
  border-bottom: 1px solid var(--color4);
  color: var(--color1);
}

#ico_menu {
  font-size: 30px;
  display: none;
}

/* ============================================================
   6. TOASTS / ALERTAS PERSONALIZADAS
   ============================================================ */
.toast-container-custom {
  position: fixed;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1080;
  width: 100%;
  max-width: 380px;
  padding: 0 16px;
  pointer-events: none;
}

.toast-personalizado {
  --toast-acento: var(--color1);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--color4);
  border: 1px solid color-mix(in srgb, var(--color5) 15%, transparent 85%);
  border-left: 10px solid var(--toast-acento);
  border-radius: 10px;
  box-shadow: 0 15px 35px rgba(19, 31, 51, 0.18);
  padding: 14px 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-16px);
  transition: var(--transicion-larga);
  pointer-events: none;
  color: var(--color1);
}

.toast-personalizado.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.toast-personalizado.toast-exito {
  --toast-acento: var(--color4);
}
.toast-personalizado.toast-error {
  --toast-acento: var(--color5);
}
.toast-personalizado.toast-info {
  --toast-acento: var(--color6);
}

.toast-icono {
  font-size: 20.8px;
  margin-top: 2px;
}

.toast-contenido {
  flex: 1;
}

.toast-titulo {
  font-size: 15px;
  font-weight: 700;
  color: var(--color1);
  letter-spacing: -0.01em;
}

.toast-mensaje {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.4;
}

.toast-cerrar {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  line-height: 1;
  padding: 2px;
  cursor: pointer;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.toast-cerrar:hover {
  color: var(--color1);
}

@media screen and (max-width: 480px) {
  .toast-container-custom {
    max-width: calc(100% - 24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .toast-personalizado {
    transition: opacity 0.2s ease;
    transform: none;
  }
}

/* ============================================================
   7. ANIMACIONES DE DESPLAZAMIENTO (AOS)
   ============================================================ */
/* AOS gestiona las animaciones de entrada al desplazarse por la página. */
/* ============================================================
   8. MENÚ MÓVIL
   ============================================================ */
#mainContent {
  transition: filter 0.3s ease;
}

#menuOverlay {
  display: none;
}

@media screen and (max-width: 991.98px) {
  #ico_menu {
    display: block;
    color: var(--color1);
  }

  #menu {
    display: none;
  }

  body.menu-abierto {
    overflow: hidden;
  }

  body.menu-abierto #menu {
    display: block;
    position: fixed;
    top: var(--header-h);
    left: 0;
    width: 100%;
    background: var(--color4);
    border-bottom: 1px solid color-mix(in srgb, var(--color5) 15%, transparent 85%);
    box-shadow: 0 12px 30px rgba(19, 31, 51, 0.15);
    z-index: 100;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    animation: menuDesplegar 0.3s ease forwards;
  }

  body.menu-abierto #menu nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0;
  }

  body.menu-abierto #menu nav li {
    width: 100%;
    border-bottom: 1px solid color-mix(in srgb, var(--color5) 15%, transparent 85%);
  }

  body.menu-abierto #menu nav li:last-child {
    border-bottom: none;
  }

  body.menu-abierto #menu nav li a:not(.btn-header) {
    padding: 16px 24px;
    width: 100%;
    border-bottom: none;
  }

  body.menu-abierto #menu nav li a:not(.btn-header):hover {
    background: color-mix(in srgb, var(--color4) 97%, var(--color1) 3%);
  }

  body.menu-abierto #menu .btn-header {
    display: block;
    width: calc(100% - 48px);
    margin: 12px 24px;
    text-align: center;
  }

  body.menu-abierto #menuOverlay {
    display: block;
    position: fixed;
    top: var(--header-h);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-h));
    background: rgba(19, 31, 51, 0.35);
    z-index: 99;
    cursor: pointer;
  }

  body.menu-abierto #mainContent {
    filter: blur(6px);
    pointer-events: none;
    user-select: none;
  }
}

@keyframes menuDesplegar {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   9. ACCESIBILIDAD
   ============================================================ */
html:not(.aos-habilitado) [data-aos] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ============================================================
   10. HERO PRINCIPAL
   ============================================================ */
/* Estructura y fondo del hero */
.seccion-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100svh;
  min-height: 640px;
  padding-top: var(--header-h);
  overflow: hidden;
  isolation: isolate;
  background-color: var(--color3);
}
.hero-slider {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.hero-slider__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s var(--easing-suave);
  will-change: opacity;
}
.hero-slider__slide.is-active {
  opacity: 1;
}
.hero-slider__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    color-mix(in srgb, var(--color3) 92%, transparent 8%) 0%,
    color-mix(in srgb, var(--color3) 78%, transparent 22%) 50%,
    color-mix(in srgb, var(--color3) 55%, transparent 45%) 100%);
}
.hero-contenedor, .hero-servicios-bar {
  position: relative;
  z-index: 1;
}
.hero-contenedor {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  width: 100%;
  max-width: 1460px;
  padding-top: clamp(32px, 5vh, 64px);
  padding-bottom: clamp(32px, 5vh, 64px);
}
.hero-contenedor > .row {
  width: 100%;
}
/* Texto y botones del hero */
.hero-copy {
  max-width: 860px;
  margin-left: 0;
}
.seccion-hero .antetitulo {
  font-size: 15px;
}
.hero-titulo {
  max-width: 860px;
  color: var(--color7);
  font-size: 72px;
  line-height: 1.04;
  letter-spacing: -.045em;
  text-wrap: balance;
  animation: heroEntrada .8s var(--easing-suave) both;
}
.hero-titulo-acento {
  color: var(--color1);
  font-weight: 700;
}
.hero-descripcion {
  max-width: 540px;
  color: rgba(255,255,255,.9);
  font-size: 17px;
  line-height: 1.75;
  animation: heroEntrada .8s var(--easing-suave) .15s both;
}
.hero-botones {
  animation: heroEntrada .8s var(--easing-suave) .3s both;
}
@keyframes heroEntrada {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Barra inferior de servicios destacados */
.hero-servicios-bar {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 16px 0;
}
.servicio-bar-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255,255,255,.85);
  font-size: 15px;
  line-height: 1.4;
  font-weight: 500;
  border-right: 1px solid rgba(255,255,255,.08);
}
.servicio-bar-item:last-child {
  border-right: none;
}
.servicio-bar-icon {
  flex-shrink: 0;
  color: var(--color7);
  font-size: 25px;
}
@media (min-width: 992px) {
  .servicio-bar-item {
    justify-content: flex-start;
  }
}
@media screen and (max-width: 991.98px) {
  .seccion-hero {
    height: 100svh;
    min-height: 640px;
  }
  .hero-contenedor {
    padding-top: 48px;
    padding-bottom: 48px;
  }
  .hero-titulo {
    font-size: 56px;
  }
}
@media screen and (max-width: 767.98px) {
  .seccion-hero {
    height: auto;
    min-height: 100svh;
  }
  .hero-slider__slide {
    background-position: 58% center;
  }
  .hero-contenedor {
    padding-top: 80px;
    padding-bottom: 48px;
    text-align: center;
  }
  .hero-titulo {
    font-size: 48px;
  }
  .hero-descripcion {
    margin-left: auto;
    margin-right: auto;
    font-size: 15px;
  }
  .hero-botones {
    justify-content: center;
  }
  .servicio-bar-item {
    justify-content: center;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding-bottom: 10px;
  }
}
@media screen and (max-width: 480px) {
  .hero-contenedor {
    padding-top: 72px;
    padding-bottom: 40px;
  }
  .hero-titulo {
    font-size: 38px;
  }
  .seccion-hero .btn-primario, .seccion-hero .btn-secundario {
    padding: 13px 20px;
    font-size: 15px;
  }
  .servicio-bar-item {
    font-size: 15px;
  }
  .servicio-bar-icon {
    font-size: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slider__slide {
    transition: none;
  }
  .hero-titulo, .hero-descripcion, .hero-botones {
    animation: none;
  }
}
/* ============================================================
   11. SECCIÓN NOSOTROS
   ============================================================ */
.seccion-nosotros {
  background-color: var(--color1);
  padding-top: var(--espacio-seccion);
  padding-bottom: var(--espacio-seccion);
}

/* Introducción, pilares e imagen central */
.seccion-nosotros > .container {
  width: 100%;
  max-width: 1320px;
}
.nosotros-intro {
  max-width: 760px;
  margin: 0 auto 20px;
  text-align: center;
}
.nosotros-titulo-acento {
  color: var(--color6);
}
.nosotros-intro .titulo-seccion {
  font-size: 45px;
  line-height: 1.1;
}
.nosotros-intro-texto {
  max-width: 720px;
  margin-right: auto;
  margin-left: auto;
  color: color-mix(in srgb, var(--color3) 70%, var(--color1) 30%);
  font-size: 18px;
  line-height: 1.75;
}
.nosotros-composicion {
  max-width: 1260px;
  margin: 0 auto;
}
.nosotros-pilar {
  display: flex;
  min-height: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 24px;
  text-align: center;
}
.nosotros-pilar-icono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--color6) 11%, var(--color1) 89%);
  color: var(--color6);
  font-size: 20px;
}
.nosotros-pilar-titulo {
  margin-bottom: 9.6px;
  color: var(--color3);
  font-size: 30px;
  font-weight: 700;
}
.nosotros-pilar-texto {
  max-width: 350px;
  margin: 0 auto;
  color: color-mix(in srgb, var(--color3) 70%, var(--color1) 30%);
  font-size: 18px;
  line-height: 1.8;
}
.nosotros-imagen {
  position: relative;
  z-index: 0;
  height: clamp(300px, 28vw, 380px);
  padding: 8px;
  border-radius: 24px;
  background: var(--color1);
}
.nosotros-imagen img {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
  box-shadow: 0 18px 42px rgba(0,22,43,.16);
  object-fit: cover;
}
@media screen and (max-width: 767.98px) {
  .seccion-nosotros {
    padding-top: var(--espacio-seccion-sm);
    padding-bottom: var(--espacio-seccion-sm);
  }
  .nosotros-intro {
    margin-bottom: 32px;
  }
  .nosotros-imagen {
    width: min(100%, 420px);
    height: 260px;
    margin: 0 auto 12px;
  }
  .nosotros-pilar {
    min-height: 0;
    padding: 16px 8px;
  }
}
@media screen and (max-width: 480px) {
  .nosotros-imagen {
    height: 220px;
  }
}
/* ============================================================
   12. SECCIÓN VALORES
   ============================================================ */
.seccion-valores {
  background-image: linear-gradient(rgba(19, 31, 51, 0.95), rgba(40, 68, 115, 0.72)),
    url('/img/background2.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-top: var(--espacio-seccion);
  padding-bottom: var(--espacio-seccion);
  color: var(--color1);
}
/* Título y texto introductorio */
.valores-acento {
  color: var(--color6);
}
.valores-texto {
  max-width: 490px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 15px;
  line-height: 1.8;
}
/* Cuadrícula de valores */
.valores-lista {
  align-items: stretch;
}
/* Tarjetas, iconos y estados interactivos */
.valores-tarjeta {
  position: relative;
  display: flex;
  height: 100%;
  min-height: 205px;
  flex-direction: column;
  justify-content: center;
  padding: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .06));
  box-shadow: 0 12px 30px rgba(0, 10, 24, .16);
  backdrop-filter: blur(6px);
  transition: transform .3s ease, border-color .3s ease, background .3s ease, box-shadow .3s ease;
}
.valores-tarjeta::before {
  position: absolute;
  top: 0;
  left: 26px;
  width: 44px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--color4);
  content: '';
}
.valores-icono {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--color4) 38%, transparent);
  border-radius: 13px;
  background: color-mix(in srgb, var(--color4) 14%, transparent);
  color: var(--color4);
  font-size: 21px;
}
.valores-tarjeta:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--color4) 68%, white 32%);
  background: linear-gradient(145deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .08));
  box-shadow: 0 18px 38px rgba(0, 10, 24, .24);
}
.valores-tarjeta:hover .valores-icono {
  border-color: var(--color4);
  background: color-mix(in srgb, var(--color4) 24%, transparent);
  color: var(--color4);
}
.valores-tarjeta h3 {
  margin-bottom: 9px;
  color: var(--color1);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}
.valores-tarjeta p {
  max-width: 290px;
  color: rgba(255, 255, 255, .82);
  font-size: 15px;
  line-height: 1.65;
}
@media screen and (max-width: 767.98px) {
  .seccion-valores {
    padding-top: var(--espacio-seccion-sm);
    padding-bottom: var(--espacio-seccion-sm);
  }
  .valores-texto {
    max-width: none;
  }
}
@media screen and (max-width: 575.98px) {
  .valores-tarjeta {
    min-height: 0;
    padding: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .valores-tarjeta {
    transition: none;
  }
}
/* ============================================================
   13. SECCIÓN SOLUCIONES
   ============================================================ */
.seccion-soluciones {
  background-color: var(--color1);
  padding-top: var(--espacio-seccion);
  padding-bottom: var(--espacio-seccion);
}

.soluciones-carrusel {
  position: relative;
}
.soluciones-lista {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 8px 1.6px 16px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  cursor: grab;
}
.soluciones-lista::-webkit-scrollbar {
  display: none;
}
.soluciones-lista:focus-visible {
  outline: 2px solid var(--color6);
  outline-offset: 4px;
}
.soluciones-lista.arrastrando {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
  user-select: none;
}
.soluciones-elemento {
  display: flex;
  flex: 0 0 250px;
  min-width: 0;
  scroll-snap-align: start;
}
.soluciones-elemento .solucion-card {
  width: 100%;
}
.soluciones-controles {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}
.soluciones-control {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--color6) 35%, transparent 65%);
  border-radius: 50%;
  background: var(--color1);
  color: var(--color6);
  font-size: 17.6px;
  cursor: pointer;
  transition: var(--transicion);
}
.soluciones-control:hover:not(:disabled) {
  border-color: var(--color6);
  background: var(--color6);
  color: var(--color1);
  transform: translateY(-2px);
}
.soluciones-control:disabled {
  cursor: default;
  opacity: .4;
}
.soluciones-control:focus-visible {
  outline: 2px solid var(--color4);
  outline-offset: 3px;
}
@media screen and (max-width: 575.98px) {
  .soluciones-elemento {
    flex-basis: min(250px, calc(100vw - 48px));
  }
}
@media (prefers-reduced-motion: reduce) {
  .soluciones-lista {
    scroll-behavior: auto;
  }
}
.solucion-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 22, 43, 0.06);
  transition: var(--transicion-larga);
}

.solucion-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 22, 43, 0.12);
}

.solucion-card-imagen {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
}

.solucion-card-imagen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 22, 43, 0.35) 100%);
  opacity: 0;
  transition: opacity 0.35s var(--easing-suave);
}

.solucion-card:hover .solucion-card-imagen::after {
  opacity: 1;
}

.solucion-card-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--transicion-larga);
}

.solucion-card:hover .solucion-card-imagen img {
  transform: scale(1.06);
}

.solucion-card-contenido {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
}

.solucion-card-titulo {
  font-size: 15px;
  font-weight: 700;
  color: var(--color3);
  margin-bottom: 8px;
  line-height: 1.3;
}

.solucion-card-texto {
  font-size: 15px;
  color: color-mix(in srgb, var(--color3) 65%, var(--color1) 35%);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 12px;
}

.solucion-card-contenido .btn-enlace {
  align-self: flex-start;
}

@media screen and (max-width: 767.98px) {
  .seccion-soluciones {
    padding-top: var(--espacio-seccion-sm);
    padding-bottom: var(--espacio-seccion-sm);
  }

  .solucion-card-imagen {
    height: 140px;
  }
}

@media screen and (max-width: 480px) {
  .solucion-card-titulo {
    font-size: 15px;
  }

  .solucion-card-texto {
    font-size: 15px;
  }
}

/* ============================================================
   14. SECCIÓN CLIENTES (CARRUSEL INFINITO)
   ============================================================ */
.seccion-clientes {
  background-image: linear-gradient(rgba(19, 31, 51, 0.95), rgba(40, 68, 115, 0.72)),
    url('/img/background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-top: var(--espacio-seccion);
  padding-bottom: var(--espacio-seccion);
  color: var(--color1);
}

.clientes-texto {
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  max-width: 480px;
}

.carrusel-clientes {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.carrusel-clientes-track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  animation: desplazarClientes 28s linear infinite;
}

.carrusel-clientes:hover .carrusel-clientes-track {
  animation-play-state: paused;
}

.carrusel-clientes-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carrusel-clientes-item img {
  width: 130px;
  height: 130px;
  object-fit: contain;
  padding: 9px;
  background: var(--color1);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  opacity: 0.85;
  transition: var(--transicion);
}

.carrusel-clientes-item img:hover {
  opacity: 1;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

@keyframes desplazarClientes {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media screen and (max-width: 991.98px) {
  .seccion-clientes {
    padding-bottom: var(--espacio-seccion-sm);
  }
}

@media screen and (max-width: 767.98px) {
  .seccion-clientes {
    padding-top: var(--espacio-seccion-sm);
    text-align: center;
  }

  .clientes-texto {
    margin-left: auto;
    margin-right: auto;
  }

  .carrusel-clientes-item img {
    width: 90px;
    height: 90px;
    padding: 16px;
  }
}

@media screen and (max-width: 480px) {
  .carrusel-clientes-item img {
    width: 80px;
    height: 80px;
    padding: 14px;
  }
}



/* Indicadores de clientes */
.clientes-estadisticas {
  margin-top: 48px;
}
.cliente-stat {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8.8px;
  height: 100%;
  padding: 20px 16px;
  border: 1px solid color-mix(in srgb, var(--color4) 78%, transparent 22%);
  border-radius: 16px;
  background: rgba(0,22,43,.38);
  text-align: center;
  box-shadow: 0 10px 28px rgba(0,0,0,.14);
  transition: var(--transicion-larga);
}
.cliente-stat:hover {
  transform: translateY(-4px);
  background: rgba(0,22,43,.55);
  box-shadow: 0 16px 34px rgba(0,0,0,.2);
}
.cliente-stat-valor-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  color: var(--color1);
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
}
.cliente-stat-sufijo {
  margin-left: 2px;
  color: var(--color4);
  font-size: 30px;
}
.cliente-stat-etiqueta {
  color: rgba(255,255,255,.82);
  font-size: 15px;
  line-height: 1.4;
}
@media screen and (max-width: 767.98px) {
  .clientes-estadisticas {
    margin-top: 32px;
  }
  .cliente-stat {
    min-height: 125px;
  }
  .cliente-stat-valor-wrap {
    font-size: 44px;
  }
  .cliente-stat-sufijo {
    font-size: 26px;
  }
}
@media screen and (max-width: 480px) {
  .cliente-stat-valor-wrap {
    font-size: 40px;
  }
  .cliente-stat-sufijo {
    font-size: 24px;
  }
}
/* ============================================================
   15. HORARIO Y CANALES
   ============================================================ */
/* Banner con el horario de atención */
.horario-banner-seccion {
  padding: 40px 0 16px;
  background: var(--color1);
}
.horario-banner {
  position: relative;
  display: flex;
  min-height: 290px;
  align-items: center;
  overflow: hidden;
  padding: 40px 48px 40px 31%;
  border-radius: 20px;
  background: linear-gradient(115deg, color-mix(in srgb, var(--color3) 78%, var(--color6) 22%), color-mix(in srgb, var(--color3) 58%, var(--color6) 42%));
  color: var(--color1);
}
.horario-banner-robot {
  position: absolute;
  bottom: 0;
  left: 3%;
  width: 26%;
  height: 95%;
  object-fit: contain;
  object-position: center bottom;
}
.horario-banner-contenido {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.horario-banner-antetitulo {
  color: var(--color7);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.horario-banner-contenido h2 {
  margin: 5.6px 0 8px;
  color: var(--color1);
  font-size: 32px;
  font-weight: 700;
}
.horario-banner-contenido > p {
  margin-bottom: 20px;
  color: rgba(255,255,255,.82);
}
.horario-banner-datos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.horario-banner-datos > div {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 8.8px;
  flex: 1 1 240px;
  min-width: 210px;
  padding: 11.2px 16px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 12px;
  background: rgba(255,255,255,.07);
}
.horario-banner-datos i {
  grid-row: span 2;
  color: var(--color7);
  font-size: 19.2px;
}
.horario-banner-datos span {
  color: rgba(255,255,255,.7);
  font-size: 15px;
}
.horario-banner-datos strong {
  color: var(--color1);
  font-size: 15px;
}
@media screen and (max-width: 767.98px) {
  .horario-banner-seccion {
    padding-top: 24px;
  }
  .horario-banner {
    min-height: 0;
    padding: 32px 20px 32px;
  }
  .horario-banner-robot {
    right: 0;
    left: auto;
    width: 35%;
    height: 48%;
    opacity: .22;
  }
  .horario-banner-contenido h2 {
    max-width: 70%;
    font-size: 26.4px;
  }
  .horario-banner-contenido > p {
    max-width: 70%;
    font-size: 15px;
  }
  .horario-banner-datos {
    max-width: 75%;
    flex-direction: column;
  }
  .horario-banner-datos > div {
    min-width: 0;
  }
}
.seccion-canales {
  background: var(--color1);
  padding-top: var(--espacio-seccion);
  padding-bottom: var(--espacio-seccion);
  border-top: 1px solid color-mix(in srgb, var(--color3) 8%, transparent 92%);
}
/* Encabezado y columnas de canales */
.canales-encabezado {
  max-width: 700px;
  margin: 0 auto 32px;
  text-align: center;
}
.canales-intro {
  margin-top: 12px;
  color: color-mix(in srgb, var(--color3) 70%, var(--color1) 30%);
  font-size: 15px;
}
.canales-lista {
  max-width: 1260px;
  margin: 0 auto;
}
.canales-columna {
  padding: 0 24px;
}
.canales-columna + .canales-columna {
  border-left: 2px solid var(--color4);
}
.canal-bloque {
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: center;
  padding: 16px 8px;
  text-align: center;
}
.canal-texto {
  margin-bottom: 20px;
}

.canal-titulo {
  margin: 5.6px 0 8.8px;
  color: var(--color3);
  font-size: 24px;
  font-weight: 700;
}
.canal-titulo i {
  margin-right: 5.6px;
  color: var(--color6);
  font-size: 19.2px;
}
.canal-descripcion {
  max-width: 340px;
  min-height: 3.4em;
  margin: 0 auto;
  color: color-mix(in srgb, var(--color3) 72%, var(--color1) 28%);
  font-size: 15px;
  line-height: 1.7;
}
.canal-videos-stack {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.canal-videos-stack .canal-video-preview {
  margin: 0 auto;
}
.canal-video-preview {
  position: relative;
  overflow: hidden;
  margin: auto auto 0;
  border-radius: 16px;
  background: var(--color3);
  box-shadow: 0 14px 34px rgba(0,22,43,.16);
}
.canal-video-preview--vertical {
  width: min(67%, 230px);
  aspect-ratio: 9 / 16;
}
.canal-video-preview--horizontal {
  width: min(100%, 380px);
  aspect-ratio: 16 / 9;
}
.canal-video-preview img,
.canal-video-preview video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.canal-video-preview iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media screen and (max-width: 991.98px) {
  .canales-columna {
    padding: 24px 12px;
  }
  .canales-columna + .canales-columna {
    border-top: 2px solid var(--color4);
    border-left: 0;
  }
  .canal-bloque {
    padding: 8px;
  }
  .canal-video-preview--vertical {
    width: min(100%, 260px);
  }
  .canal-video-preview--horizontal {
    width: min(100%, 480px);
  }
}
@media screen and (max-width: 767.98px) {
  .seccion-canales {
    padding-top: var(--espacio-seccion-xs);
    padding-bottom: var(--espacio-seccion-xs);
  }
  .canal-descripcion {
    min-height: 0;
  }
}
/* ============================================================
   16. SECCIÓN CONTACTO
   ============================================================ */
.seccion-contacto {
  background: var(--color2);
  padding-top: var(--espacio-seccion);
  padding-bottom: var(--espacio-seccion);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Columna izquierda: imagen */
.contacto-imagen {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  height: 100%;
  min-height: 480px;
  align-self: stretch;
}

.contacto-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Columna derecha: tarjeta del formulario (blanca) */
.contacto-card {
  background: var(--color1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  height: 100%;
}

.contacto-contenido {
  display: flex;
  flex-direction: column;
}

.contacto-header {
  margin-bottom: 16px;
}

.contacto-card .titulo-seccion {
  color: var(--color3);
}

.contacto-subtitulo {
  font-size: 15px;
  color: color-mix(in srgb, var(--color3) 70%, var(--color1) 30%);
  line-height: 1.6;
  max-width: 520px;
}

/* ---------- Inputs flotantes (sistema propio) ---------- */
/* Campos del formulario y estados de validación */
.input-style {
  position: relative;
  width: 100%;
}

/* Input base */
.input-style input {
  width: 100%;
  height: 40px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--color3);
  background: var(--color2);
  border: 1.5px solid color-mix(in srgb, var(--color3) 20%, transparent 80%);
  border-radius: 10px;
  padding: 16px 12px 4px 12px;
  transition: var(--transicion);
  outline: none;
  display: block;
}

/* Textarea base */
.input-style textarea {
  width: 100%;
  height: 80px;
  min-height: 80px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--color3);
  background: var(--color2);
  border: 1.5px solid color-mix(in srgb, var(--color3) 20%, transparent 80%);
  border-radius: 10px;
  padding: 20px 12px 4px 12px;
  transition: var(--transicion);
  outline: none;
  display: block;
  resize: vertical;
  line-height: 1.5;
}

/* Placeholder invisible (solo sirve para :placeholder-shown) */
.input-style input::placeholder,
.input-style textarea::placeholder {
  color: transparent;
}

/* Focus */
.input-style input:focus,
.input-style textarea:focus {
  border-color: var(--color6);
  background: var(--color1);
  box-shadow: 0 0 0 3.2px color-mix(in srgb, var(--color6) 20%, transparent 80%);
}

/* Label flotante — estado reposo (centrado en inputs) */
.input-style label {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%) scale(1);
  transform-origin: left center;
  font-size: 15px;
  font-weight: 400;
  color: color-mix(in srgb, var(--color3) 65%, var(--color1) 35%);
  pointer-events: none;
  transition: var(--transicion);
  margin: 0;
  line-height: 1;
}

/* Label en textarea (alineado arriba, no centrado) */
.input-style textarea ~ label {
  top: 13px;
  transform: none;
  transform-origin: left center;
}

/* Label flotante — inputs activos */
.input-style input:focus ~ label,
.input-style input:not(:placeholder-shown) ~ label {
  transform: translateY(-50%) translateY(-8px) scale(0.75);
  color: var(--color6);
  font-weight: 500;
}

/* Label flotante — textarea activo */
.input-style textarea:focus ~ label,
.input-style textarea:not(:placeholder-shown) ~ label {
  top: 13px;
  transform: scale(0.75);
  transform-origin: left center;
  color: var(--color6);
  font-weight: 500;
}

/* Error */
.input-style-error {
  display: none;
  font-size: 15px;
  color: var(--color5);
  padding-left: 4px;
  font-weight: 500;
  margin-top: 4px;
}

.input-style.is-invalid input,
.input-style.is-invalid textarea {
  border-color: var(--color5);
  background: color-mix(in srgb, var(--color5) 5%, var(--color1) 95%);
}

.input-style.is-invalid input:focus,
.input-style.is-invalid textarea:focus {
  box-shadow: 0 0 0 3.2px color-mix(in srgb, var(--color5) 20%, transparent 80%);
}

.input-style.is-invalid .input-style-error {
  display: block;
}

/* Botón de envío */
#btnEnviarSms {
  margin-top: 8px;
}

/* ---------- Responsive Contacto ---------- */
@media screen and (max-width: 991.98px) {
  .contacto-contenido {
    padding-right: 0 !important;
  }

  .contacto-imagen {
    display: none;
  }
}

@media screen and (max-width: 767.98px) {
  .seccion-contacto {
    padding-top: var(--espacio-seccion-sm);
    padding-bottom: var(--espacio-seccion-sm);
  }

  .contacto-card {
    padding: 20px !important;
  }
}

@media screen and (max-width: 480px) {

  .input-style textarea {
    height: 90px;
    min-height: 90px;
  }
}

/* ============================================================
   17. FOOTER
   ============================================================ */
.footer {
  background: var(--color3);
  color: rgba(255, 255, 255, 0.8);
  padding-top: 56px;
  padding-bottom: 24px;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transicion);
}

.footer a:hover {
  color: var(--color1);
}

/* Columnas principales del footer */
.footer-principal {
  padding-bottom: 32px;
}

/* Marca, redes y libro de reclamaciones */
.footer-marca {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.footer-logo {
  width: 130px;
  height: auto;
}

.footer-lema {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

.footer-redes {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.footer-reclamaciones {
  display: block;
  width: 100%;
  max-width: 150px;
  height: auto;
  margin: 18px auto 0;
}

.footer-red-icono {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
}

.footer-red-icono:hover {
  background: var(--color4);
  border-color: var(--color4);
  color: var(--color1);
  transform: translateY(-2px);
}

/* Enlaces y datos de contacto */
.footer-columna-titulo {
  font-size: 15px;
  font-weight: 700;
  color: var(--color1);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 16px;
}

.footer-lista {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-lista a {
  font-size: 15px;
}

.footer-lista--contacto li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
}

.footer-lista--contacto i {
  color: var(--color4);
  font-size: 15px;
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-mapa-google {
  width: 100%;
}

.footer-mapa-google iframe {
  width: 100%;
  height: 250px;
  border: 0;
  display: block;
  border-radius: 8px;
}

.footer-divisor {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 0 0 20px 0;
}

.footer-inferior {
  padding-bottom: 8px;
}

.footer-copyright {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.55);
}

.footer-legales {
  list-style: none;
  display: flex;
  gap: 24px;
  justify-content: flex-end;
  padding: 0;
  margin: 0;
}

.footer-legales a {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.55);
}

@media screen and (max-width: 767.98px) {
  .footer {
    padding-top: 40px;
    text-align: center;
  }

  .footer-lista--contacto li {
    justify-content: center;
  }

  .footer-inferior {
    text-align: center;
  }

  .footer-legales {
    justify-content: center;
    margin-top: 16px;
    flex-wrap: wrap;
  }
}

@media screen and (max-width: 480px) {
  .footer-logo {
    width: 110px;
  }

  .footer-legales {
    gap: 16px;
  }
}