/* ========================================
   CAPITAL AIRES - MAIN STYLES
   ======================================== */

/* ========== RESET & BASE STYLES ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* ===== Colores corporativos (NUEVOS) ===== */
  /* principales */
  --primary-blue-dark: #002e5c;  /* azul oscuro */
  --primary-blue: #1f81ba;       /* azul claro */
  --primary-blue-light: #3e528c; /* morado/azul intermedio */

  /* secundarios */
  --accent-red: #bd1b27;         /* rojo principal (botones) */
  --accent-gray: #7a7a7a;

  /* compatibilidad con nombres antiguos (para no romper el resto del sitio) */
  --accent-teal: #1f81ba;        /* lo usamos como azul de acento */
  --accent-yellow: #bd1b27;      /* mapeado al rojo para CTAs */
  --white: #ffffff;
  --light-gray: #f5f7fa;
  --medium-gray: #6c757d;
  --dark-gray: #343a40;
  --text-dark: #2c3e50;

  /* Typography */
  --font-primary: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --font-size-base: 16px;
  --line-height-base: 1.6;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 5rem;

  /* Transitions */
  --transition-base: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--text-dark);
  background-color: var(--white);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ========== TOP BAR DENTRO DEL HEADER ========== */
/* Ahora no usamos .top-bar como banda separada, sino la fila superior del header */

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  padding: 0.4rem 0 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  color: #f5f7fa;
}

.top-bar-left,
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.top-bar-social {
  display: flex;
  gap: 0.8rem;
}

.social-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transition: var(--transition-base);
  color: var(--white);
}

.social-icon:hover {
  background-color: var(--accent-red);
  transform: translateY(-2px);
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-bar-item svg {
  flex-shrink: 0;
}

/* ========== HEADER / NAVIGATION (NUEVO) ========== */

.header {
  position: fixed;
  width: 100%;
  background: linear-gradient(
    120deg,
    var(--primary-blue-dark) 0%,
    var(--primary-blue) 45%,
    var(--primary-blue-light) 100%
  );
  color: #f5f7fa;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  z-index: 1000;
}

/* Fila superior */
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.6rem 0 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.header-logo {
  flex-shrink: 0;
}

.logo img {
  height: 90px;
  width: auto;
  background-color: var(--white);
  border-radius: 10px;
  padding: 6px 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.header-top-center {
  flex: 0 0 auto;
}

.header-top-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

/* Social icons */
.top-bar-social {
  display: flex;
  gap: 0.8rem;
}

.social-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  transition: var(--transition-base);
  color: var(--white);
}

.social-icon:hover {
  background-color: var(--accent-yellow); /* rojo */
  transform: translateY(-2px);
}

/* Datos contacto */
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.85rem;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.top-bar-item svg {
  flex-shrink: 0;
}

/* Fila inferior: navegación */
.header-bottom {
  padding: 0.45rem 0 0.6rem;
}

.navbar {
  width: 100%;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

/* Menú de navegación */
.nav-menu {
  display: flex;
  gap: 2rem;
  flex: 1;
  justify-content: center;
  list-style: none;
}

.nav-link {
  color: #f5f7fa;
  font-weight: 500;
  transition: var(--transition-base);
  position: relative;
  padding: 0.5rem 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-yellow);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* CTA header */
.btn-cta {
  background-color: #9a131d;
  color: #ffffff;
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-base);
  white-space: nowrap;
  box-shadow: 0 5px 15px rgba(189, 27, 39, 0.55);
}

.btn-cta:hover {
  background-color: #9a131d;
  transform: translateY(-2px);
}

/* Toggle móvil */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: #ffffff;
  transition: var(--transition-base);
}

/* NAV DROPDOWN */

.nav-item {
  position: relative;
}

/* Botón padre de dropdown */
.dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem 0;
  color: #f5f7fa;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  position: relative;
}

/* Subrayado */
.dropdown-toggle::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-yellow);
  transition: width 0.3s ease;
}

.nav-item.dropdown:hover .dropdown-toggle::after {
  width: 100%;
}

/* flecha pequeña */
.nav-item.dropdown .dropdown-toggle::before {
  content: "▾";
  font-size: 0.7rem;
  margin-left: 4px;
}

/* contenedor del menú */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  padding: 0.4rem 0;
  display: none;
  z-index: 1200;
}

/* mostrar en desktop */
.nav-item.dropdown:hover .dropdown-menu,
.nav-item.dropdown:focus-within .dropdown-menu {
  display: block;
}

.dropdown-link {
  display: block;
  padding: 0.6rem 1.2rem;
  color: #f5f7fa;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: var(--transition-base);
}

.dropdown-link:hover {
  background-color: var(--primary-blue);
}

.dropdown-link.active-page {
  background-color: var(--primary-blue);
}

/* ========== HERO SLIDER ========== */
.hero-slider {
  position: relative;
  height: 600px;
  overflow: hidden;
}

.slider-container {
  position: relative;
  height: 100%;
}

/* Cada slide está apilado uno encima de otro */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.7s ease-in-out, visibility 0.7s ease-in-out;
}

/* Slide visible */
.slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Estado mientras se está desvaneciendo el slide actual */
.slide.fading-out {
  opacity: 0;
  visibility: visible; /* sigue visible durante la animación */
  pointer-events: none;
}

/* Fondo y contenido */
.slide-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.slide-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-background::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.45),
    rgba(0, 0, 0, 0.1)
  );
}

.slide-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  color: var(--white);
}

.hero-text {
  max-width: 650px;
}

.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.slide-title {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.slide-text {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Botón del hero */
.btn {
  display: inline-block;
  padding: 1rem 2.4rem;
  border-radius: 5px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition-base);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--primary-blue);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(31, 129, 186, 0.4);
}

.btn-secondary {
  background-color: var(--primary-blue-light);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--primary-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(62, 82, 140, 0.4);
}

/* Flechas */
.slider-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  justify-content: space-between;
  padding: 0 2rem;
}

.slider-btn {
  background-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
  border: none;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: var(--transition-base);
}

.slider-btn:hover {
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--primary-blue);
}

/* ====== SECCIÓN NOSOTROS / SERVICIOS ====== */

.corporate-message {
  padding: 5rem 0;
  background: #f8fafc; /* fondo muy suave */
}

.message-wrapper--services {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 3.5rem;
}

/* Columna izquierda (texto corporativo) */
.message-content {
  flex: 1 1 55%;
  max-width: 640px;
}

.message-content .message-label {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.75rem;
}

.message-content h2 {
  font-size: 2.3rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: #0f172a;
}

.message-content .lead-text {
  font-size: 1.05rem;
  color: #334155;
  margin-bottom: 1rem;
}

.message-content p {
  color: #475569;
}

/* Columna derecha (resumen de servicios) */
.services-overview {
  flex: 1 1 40%;
  background: #ffffff;
  border-radius: 18px;
  padding: 1.75rem 1.75rem 2rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
}

/* franja superior decorativa */
.services-overview::before {
  content: "";
  position: absolute;
  inset: 0;
  height: 4px;
  background: linear-gradient(90deg, #0ea5e9, #38bdf8, #0f766e);
}

/* título columna derecha */
.services-overview-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #0f172a;
  margin-top: 0.75rem; /* separarlo de la franja */
  margin-bottom: 1.5rem;
}

/* grid de servicios (2 x 2 en desktop) */
.services-grid-home {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
}

/* tarjeta individual de servicio */
.service-box-home {
  padding: 0.75rem 0.5rem 0.75rem 0;
  padding-left: 0.5rem;
  border-radius: 10px;
  position: relative;
  transition: transform 0.22s ease, box-shadow 0.22s ease,
    background-color 0.22s ease;
}

/* barrita a la izquierda de cada tarjeta */
.service-box-home::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #0ea5e9, #22c55e);
  opacity: 0;
  transform: scaleY(0.4);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.service-box-home h4 {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: #0f172a;
}

.service-box-home p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #4b5563;
  margin-bottom: 0.5rem;
}

.service-link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: #0ea5e9;
  position: relative;
  padding-bottom: 1px;
}

.service-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background-color: rgba(14, 165, 233, 0.4);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

/* Hover: levanta la tarjeta y muestra barra lateral + subrayado */
.service-box-home:hover {
  background-color: #f8fafc;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
  transform: translateY(-2px);
}

.service-box-home:hover::before {
  opacity: 1;
  transform: scaleY(1);
}

.service-box-home:hover .service-link::after {
  transform: scaleX(1);
}

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

@media (max-width: 992px) {
  .message-wrapper--services {
    flex-direction: column;
  }

  .services-overview {
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .corporate-message {
    padding: 3.5rem 0;
  }

  .message-content h2 {
    font-size: 1.8rem;
  }

  .services-grid-home {
    grid-template-columns: 1fr; /* una columna en móvil */
  }

  .services-overview {
    padding: 1.4rem 1.25rem 1.6rem;
  }
}

/* ========== CORPORATE MESSAGE SECTION ========== */
.corporate-message {
  padding: var(--spacing-xl) 0;
  background-color: var(--white);
}

.message-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.message-image {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  background: #000;
}

.message-image .video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
}

.message-image .video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.message-image img {
  width: 100%;
  height: auto;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: var(--transition-base);
}

.play-button:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

.message-label {
  color: var(--primary-blue-light);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.message-content h2 {
  color: var(--text-dark);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.lead-text {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.message-content p {
  color: var(--medium-gray);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* ========== COUNTERS SECTION (NUESTRA TRAYECTORIA) ========== */
.counters-section {
  padding: 3.5rem 0;
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--primary-blue-dark) 100%
  );
  color: var(--white);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
}

.section-subtitle {
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: var(--spacing-lg);
}

/* 6 columnas en una sola fila en escritorio */
.counters-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(150px, 1fr));
  gap: 1.2rem;
  margin-top: 2.5rem;
}

.counter-card {
  text-align: center;
  padding: 1.5rem;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  transition: var(--transition-base);
}

.counter-card:hover {
  transform: translateY(-7px);
  background-color: rgba(255, 255, 255, 0.15);
}

.counter-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.7rem;
  background: rgba(0, 0, 0, 0.1);
}

.counter-icon svg {
  stroke-width: 2;
}

.counter-number {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.counter-label {
  font-size: 0.98rem;
  opacity: 0.95;
}

/* ========== CHART SECTION (NUESTRO CRECIMIENTO) ========== */
.chart-section {
  padding: var(--spacing-xl) 0;
  background-color: var(--white);
}

.chart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
  margin-top: 2.5rem;
}

.chart-wrapper {
  background-color: var(--white);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  padding: 2rem;
}

/* Altura cómoda para la gráfica */
#growthChart {
  width: 100% !important;
  height: 320px !important;
}

.chart-text h3 {
  font-size: 1.9rem;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.chart-text p {
  color: var(--medium-gray);
  margin-bottom: 0.9rem;
  line-height: 1.8;
}

.chart-text ul {
  margin: 0.7rem 0 1.4rem;
  padding-left: 1.2rem;
  color: var(--medium-gray);
}

.chart-text ul li {
  position: relative;
  margin-bottom: 0.5rem;
}

.chart-text ul li::before {
  content: "•";
  color: var(--primary-blue-light);
  font-weight: bold;
  position: absolute;
  left: -1rem;
}

.chart-badge {
  display: inline-block;
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--primary-blue-light) 100%
  );
  color: var(--white);
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(62, 81, 140, 0.35);
}

/* ========== COVERAGE MAP SECTION ========== */
.coverage-section {
  padding: var(--spacing-xl) 0;
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--primary-blue-dark) 100%
  );
  color: var(--white);
}

.coverage-section-subtitle {
  text-align: center;
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: var(--spacing-lg);
}

.coverage-wrapper {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 3rem;
}

.map-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
}

.colombia-map {
  max-width: 420px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: #ffffff;
}

/* Marcadores */
.coverage-marker {
  position: absolute;
  cursor: pointer;
  animation: pulse 2s infinite;
}

.marker-dot {
  width: 18px;
  height: 18px;
  background: var(--accent-yellow);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 0 var(--primary-blue);
}

.marker-label {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--white);
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-blue);
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transition: var(--transition-base);
}

.coverage-marker:hover .marker-label {
  opacity: 1;
}

/* Posiciones aproximadas */
/* Posiciones de cada ciudad (ajusta 1–2% si algo no coincide perfecto con tu imagen) */
.marker-bogota {
  top: 42%;
  left: 44%;
}

.marker-medellin {
  top: 30%;
  left: 39%;
}

.marker-barranquilla {
  top: 9%;
  left: 41%;
}

.marker-villavicencio {
  top: 50%;
  left: 46%;
}

.marker-cali {
  top: 48%;
  left: 34%;
}

.marker-bucaramanga {
  top: 29%;
  left: 48%;
}

.marker-cartagena {
  top: 12%;
  left: 39%;
}

.marker-ibague {
  top: 45%;
  left: 39%;
}

.marker-ipiales {
  top: 58%;
  left: 28%;
}

.marker-chia {
  top: 41%;
  left: 45%;
}

.marker-girardot {
  top: 43%;
  left: 42%;
}

.marker-pereira {
  top: 40%;
  left: 33%;
}

.marker-armenia {
  top: 45%;
  left: 34%;
}

.marker-neiva {
  top: 53%;
  left: 35%;
}

.marker-sincelejo {
  top: 16%;
  left: 40%;
}

.marker-tunja {
  top: 38%;
  left: 48%;
}

.marker-valledupar {
  top: 15%;
  left: 48%;
}

.marker-madrid {
  top: 40%;
  left: 44%;
}

.marker-puerto-lopez {
  top: 46%;
  left: 50%;
}

.marker-cucuta {
  top: 18%;
  left: 46%;
}

.marker-rionegro {
  top: 32%;
  left: 41%;
}

.marker-pitalito {
  top: 52%;
  left: 38%;
}

.marker-tuquerres {
  top: 60%;
  left: 30%;
}

.coverage-info h3 {
  color: #ffffff;
  font-size: 2rem;
  margin-bottom: 1.4rem;
}

.coverage-description {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.coverage-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 0.8rem;
}

.coverage-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 1.02rem;
  color: #f5f7fa;
}

.coverage-list svg {
  stroke-width: 3;
  color: var(--accent-yellow);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* ================================
   CLIENTS CAROUSEL SECTION
================================ */

/* Contenedor general */
.clients-section {
  padding: var(--spacing-xl) 0;
  background-color: var(--white);
  overflow: hidden;
}

.clients-carousel {
  width: 100%;
  overflow: hidden;           /* Oculta el contenido fuera del track */
  position: relative;
}

/* Carril que contiene todos los logos */
.clients-track {
  display: flex;
  align-items: center;
  gap: 3rem;                  /* Espacio entre logos */
  will-change: transform;
  animation: none !important; /* Desactivamos cualquier animación previa */
}

/* Cada logo */
.client-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;           /* aseguran tamaño mínimo para logos pequeños */
  width: 240px;
  height: 200px;
  padding: 1rem;
  background-color: var(--light-gray);
  border-radius: 12px;
}

.client-logo img {
  max-height: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(0);          /* Quitar blanco y negro */
  opacity: 0.95;
  transition: transform 0.3s, opacity 0.3s, filter 0.3s;
}

/* Efecto hover de logo */
.client-logo img:hover {
  transform: scale(1.08);
  opacity: 1;
  filter: none;
}

/* Pausar carrusel al pasar el mouse */
.clients-track:hover {
  animation-play-state: paused;
}

/* -------------------------------
   OPCIONAL: Scroll manual
   (solo si quieres permitirlo)
-------------------------------- */
/*
.clients-carousel {
  overflow-x: auto;
  overflow-y: hidden;
}

.clients-track {
  scroll-snap-type: x mandatory;
}

.client-logo {
  scroll-snap-align: center;
}
*/

/* Ocultar scrollbar en scroll manual */
.clients-carousel::-webkit-scrollbar {
  display: none;
}

.clients-carousel {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ========== FOOTER ========== */
.footer {
  background: linear-gradient(
    120deg,
    var(--primary-blue-dark) 0%,
    var(--primary-blue) 45%,
    var(--primary-blue-light) 100%
  );
  color: var(--white);
}

.footer-top {
  padding: var(--spacing-lg) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

/* Caja blanca de certificaciones */
.footer-cert-box {
  background: #ffffff;
  padding: 20px;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-certifications {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.cert-badge-footer {
  width: 110px;
  height: 110px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s ease;
}

.cert-badge-footer:hover {
  transform: scale(1.06);
}

.footer-title {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.footer-description {
  margin-bottom: 1.5rem;
  opacity: 0.9;
  line-height: 1.8;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.footer-contact svg {
  flex-shrink: 0;
  stroke-width: 2;
  margin-top: 0.2rem;
}

.footer-schedule {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-schedule li {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.day {
  font-weight: 600;
}

.time {
  opacity: 0.9;
}

.emergency {
  margin-top: 1rem;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  text-align: center;
  font-weight: 600;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition-base);
}

.social-link:hover {
  background-color: var(--white);
  color: var(--primary-blue);
  transform: translateY(-3px);
}

.footer-bottom {
  padding: 1.5rem 0;
  background-color: rgba(0, 0, 0, 0.2);
  text-align: center;
}

/* ========== VIDEO MODAL ========== */

.video-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.video-modal.open {
  display: flex;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.video-modal-content {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 900px;
  background: #000;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.video-modal-body {
  position: relative;
  padding-top: 56.25%; /* 16:9 */
}

.video-modal-body iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-base);
}

.video-modal-close:hover {
  background: var(--accent-yellow);
  color: #000;
}

/* ========== NAV DROPDOWN ========== */

.nav-item {
  position: relative;
}

/* Botón padre de dropdown (nuevo) */
.dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem 0;
  color: #f5f7fa;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  position: relative;
}

/* Subrayado */
.dropdown-toggle::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-yellow);
  transition: width 0.3s ease;
}

.nav-item.dropdown:hover .dropdown-toggle::after {
  width: 100%;
}

/* flecha pequeña */
.nav-item.dropdown .dropdown-toggle::before {
  content: "▾";
  font-size: 0.7rem;
  margin-left: 4px;
}

/* contenedor del menú */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  padding: 0.4rem 0;
  display: none;
  z-index: 1200;
}

/* mostrar en desktop */
.nav-item.dropdown:hover .dropdown-menu,
.nav-item.dropdown:focus-within .dropdown-menu {
  display: block;
}

.dropdown-link {
  display: block;
  padding: 0.6rem 1.2rem;
  color: #f5f7fa;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: var(--transition-base);
}

.dropdown-link:hover {
  background-color: var(--primary-blue);
}

/* estado activo opcional */
.dropdown-link.active-page {
  background-color: var(--primary-blue);
}

/* ========== PÁGINA CONÓCENOS ========== */

.page-hero-nosotros {
  padding: var(--spacing-xl) 0;
  background: linear-gradient(
    90deg,
    var(--primary-blue-dark) 0%,
    var(--primary-blue) 60%,
    var(--primary-blue-light) 100%
  );
  color: var(--white);
}

.page-hero-grid {
  margin-top: 180px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.page-hero-title {
  font-size: 3rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 1rem;
}

.page-hero-description {
  font-size: 1.1rem;
  max-width: 520px;
  line-height: 1.8;
}

.page-hero-image img {
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

/* Reconocimientos */
.recognitions-section {
  padding: var(--spacing-xl) 0;
  background-color: var(--white);
  text-align: center;
}

.recognitions-grid {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.recognition-card {
  background-color: var(--light-gray);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

/* Nuestro equipo / misión – visión */
.team-section {
  padding: var(--spacing-xl) 0;
  background: linear-gradient(
    135deg,
    var(--primary-blue-light) 0%,
    var(--primary-blue-dark) 100%
  );
  color: #ffffff;
}

.team-section .section-title {
  color: #ffffff;
}

.team-section .section-subtitle {
  color: rgba(255, 255, 255, 0.9);
}

.team-text {
  max-width: 800px;
  margin: 1.5rem auto 2.5rem;
  text-align: center;
}

.mv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.mv-card {
  background-color: #ffffff;
  color: var(--text-dark);
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
  border: 2px solid var(--primary-blue-light);
}

.mv-card h3 {
  color: var(--primary-blue);
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.mv-card p {
  color: var(--medium-gray);
  line-height: 1.8;
}

/* responsive de la página Conócenos */
@media (max-width: 992px) {
  .page-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .page-hero-description {
    margin: 0 auto;
  }

  .mv-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== PÁGINA PROYECTOS ========== */

.page-hero {
  position: relative;
  height: 320px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  color: #ffffff;
  overflow: hidden;
}

.page-hero-proyectos {
  background: linear-gradient(
    90deg,
    var(--primary-blue-dark) 0%,
    var(--primary-blue) 50%,
    #f1f4fb 100%
  );
  background-size: cover;
  background-position: center;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 46, 92, 0.9) 0%,
    rgba(0, 46, 92, 0.7) 45%,
    rgba(0, 46, 92, 0.1) 100%
  );
}

.page-hero-content {
  position: relative;
  z-index: 1;
  padding-bottom: 2.5rem;
}

.page-hero-content h1 {
  font-size: 3.4rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
}

.page-hero-content p {
  margin-top: 0.8rem;
  font-size: 1.1rem;
  max-width: 580px;
}

/* Sección de tarjetas de proyectos */
.projects-section {
  padding: var(--spacing-xl) 0 var(--spacing-xl);
  background-color: #f4f6fb;
}

.projects-title {
  margin-bottom: 0.5rem;
}

.projects-subtitle {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 2.5rem;
  color: var(--medium-gray);
}

/* Grid: 3 columnas centradas */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 3rem 4rem;
  justify-content: center;
  justify-items: center;
}

/* Tarjeta */
.project-card {
  max-width: 360px;
  width: 100%;
  text-align: center;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

/* Marco de la imagen */
.project-image-wrapper {
  border: 3px solid var(--primary-blue);
  border-radius: 26px;
  overflow: hidden;
  margin: 0;
  background: #ffffff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover .project-image-wrapper {
  border-color: var(--primary-blue-light);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.16);
}

/* Imagen */
.project-image {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.project-card:hover .project-image {
  transform: scale(1.05);
}

/* Nombre del proyecto */
.project-name {
  margin-top: 0.8rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-blue-dark);
  position: relative;
  display: inline-block;
  padding-bottom: 0.3rem;
  transition: color 0.25s ease;
}

.project-name::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.25rem;
  transform: translateX(-50%);
  width: 65%;
  height: 3px;
  border-radius: 999px;
  background-color: var(--primary-blue);
  transition: background-color 0.25s ease, width 0.25s ease;
}

.project-card:hover .project-name {
  color: var(--primary-blue-light);
}

.project-card:hover .project-name::after {
  background-color: var(--primary-blue-light);
  width: 80%;
}

/* ========== PÁGINA INSTITUCIONAL ========== */

.page-hero-general {
  background: linear-gradient(
    90deg,
    var(--primary-blue-dark) 0%,
    var(--primary-blue) 50%,
    #f1f4fb 100%
  );
  color: #fff;
  padding: 90px 0 80px;
  text-align: center;
}

.page-hero-general .hero-subtitle {
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.85;
  margin-bottom: 10px;
}

.page-hero-general .page-hero-title {
  font-size: 46px;
  letter-spacing: 8px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.page-hero-general .page-hero-description {
  max-width: 700px;
  margin: 0 auto;
  font-size: 16px;
  opacity: 0.9;
}

.institutional-section {
  padding: 70px 0;
}

.institutional-section + .institutional-section {
  border-top: 1px solid #eef1f6;
}

.institutional-section .section-title {
  text-align: center;
  margin-bottom: 12px;
}

.institutional-section .section-subtitle {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 40px;
  color: #6c7a8e;
  line-height: 1.6;
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.policy-card {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  padding: 24px 22px;
  border-top: 4px solid var(--primary-blue);
  position: relative;
  overflow: hidden;
}

.policy-number {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 32px;
  font-weight: 700;
  color: rgba(45, 109, 204, 0.12);
}

.policy-title {
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--primary-blue-dark);
}

.policy-text {
  font-size: 14px;
  line-height: 1.6;
  color: #4c5667;
}

.values-list {
  max-width: 900px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed #e1e6f0;
}

.value-item:last-child {
  border-bottom: none;
}

.value-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  margin-top: 3px;
}

.value-text strong {
  color: var(--primary-blue-dark);
}

.value-text {
  font-size: 15px;
  line-height: 1.6;
  color: #4c5667;
}

/* Bloques placeholder para Blog y Contenido técnico */
.info-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.info-card {
  background: #f7f9fc;
  border-radius: 16px;
  padding: 22px 20px;
  border: 1px solid #e1e6f0;
}

.info-card h3 {
  margin-bottom: 10px;
  color: var(--primary-blue-dark);
}

.info-card p {
  font-size: 14px;
  line-height: 1.6;
  color: #4c5667;
}

/* ========== PÁGINA BLOG ========== */

.page-hero-blog {
  background: linear-gradient(
    90deg,
    var(--primary-blue-dark) 0%,
    var(--primary-blue) 50%,
    #f1f4fb 100%
  );
  position: relative;
  color: #fff;
  padding: 110px 0 90px;
}

.page-hero-blog::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 46, 92, 0.95) 0%,
    rgba(0, 46, 92, 0.6) 45%,
    rgba(0, 46, 92, 0.1) 100%
  );
}

.page-hero-blog .container {
  position: relative;
  z-index: 1;
}

.page-hero-blog-title {
  font-size: 70px;
  letter-spacing: 10px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.page-hero-blog-subtitle {
  max-width: 520px;
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.95;
}

.blog-section {
  padding: 70px 0 80px;
  background: #f5f7fb;
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.blog-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  padding: 26px 30px;
  border-left: 4px solid var(--primary-blue);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.blog-card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-blue-dark);
  margin-bottom: 8px;
}

.blog-card-excerpt {
  font-size: 15px;
  color: #4c5667;
  line-height: 1.7;
  margin-bottom: 14px;
}

.blog-meta {
  font-size: 13px;
  color: #7c8898;
  margin-bottom: 6px;
}

.blog-readmore {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 999px;
  border: 1px solid var(--primary-blue);
  font-size: 13px;
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
  background: #fff;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover .blog-readmore {
  background: var(--primary-blue);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(45, 109, 204, 0.15);
}

/* Por defecto, el enlace 'Ver todo ...' NO se ve (desktop) */
.dropdown-link-all {
  display: none;
}

/* En móvil lo mostramos dentro del submenú */
@media (max-width: 992px) {
  .dropdown-link-all {
    display: block;
  }
}

/* ========================================
   PÁGINAS DE SERVICIOS
======================================== */

/* Secciones genéricas de servicios */

.service-section {
  padding: var(--spacing-xl) 0;
  background-color: #ffffff;
}

.service-section-alt {
  background-color: #f5f7fb;
}

.service-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.service-grid-reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}

.service-text p {
  color: var(--medium-gray);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.service-list {
  margin-top: 1rem;
  padding-left: 1.4rem;
  color: var(--medium-gray);
}

.service-list li {
  margin-bottom: 0.6rem;
  position: relative;
}

.service-list li::before {
  content: "•";
  position: absolute;
  left: -1.1rem;
  color: var(--primary-blue);
  font-weight: 700;
}

.service-image img {
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
  object-fit: cover;
  width: 100%;
}

/* Tarjetas de 3 columnas */

.service-cards-3 {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: #ffffff;
  border-radius: 18px;
  padding: 1.8rem 1.6rem;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
  border-top: 4px solid var(--primary-blue);
}

.service-card h3 {
  margin-bottom: 0.8rem;
  color: var(--primary-blue-dark);
}

.service-card p {
  color: var(--medium-gray);
  line-height: 1.7;
}

/* Grid de productos (suministros) */

.product-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
}

.product-card {
  background-color: #ffffff;
  border-radius: 18px;
  padding: 1.5rem 1.4rem 1.8rem;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
  text-align: center;
}

.product-image-wrapper {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.product-image-wrapper img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.product-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-blue-dark);
  margin-bottom: 0.5rem;
}

/* Metodología – tarjetas de pasos */

.methodology-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}

.method-card {
  background-color: #ffffff;
  border-radius: 18px;
  padding: 1.6rem 1.4rem 1.8rem;
  box-shadow: 0 10px 24px rgba(0,0,0,0.07);
  position: relative;
}

.method-step {
  position: absolute;
  top: -14px;
  left: 16px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.method-card h3 {
  margin-top: 1.2rem;
  margin-bottom: 0.6rem;
  color: var(--primary-blue-dark);
}

.method-card p {
  color: var(--medium-gray);
  line-height: 1.7;
}

/* CTA final de metodología */

.method-cta {
  padding: var(--spacing-xl) 0;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
  color: #ffffff;
  text-align: center;
}

.method-cta-box {
  max-width: 720px;
  margin: 0 auto;
}

.method-cta-box h2 {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.method-cta-box p {
  margin-bottom: 1.6rem;
  line-height: 1.8;
}

/* Responsive servicios */

@media (max-width: 992px) {
  .service-grid,
  .service-grid-reverse {
    grid-template-columns: 1fr;
  }

  .service-image {
    order: -1;
  }

  .service-cards-3,
  .product-grid,
  .methodology-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .service-cards-3,
  .product-grid,
  .methodology-grid {
    grid-template-columns: 1fr;
  }
}

/* ====== PROYECTOS LISTA ====== */

.projects-section {
  padding: 4rem 0 5rem;
  background: #f7f9fc;
}

.projects-title {
  text-align: center;
  margin-bottom: 0.75rem;
}

.projects-subtitle {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
  color: #666;
}

.projects-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.project-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.1);
}

.project-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.project-image-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.project-card:hover .project-image {
  transform: scale(1.05);
}

.project-card-body {
  padding: 1.25rem 1.5rem 1.3rem;
}

.project-name {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.project-excerpt {
  font-size: 0.9rem;
  color: #666;
  min-height: 3.2em; /* dos líneas aprox */
}

.project-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0077c8;
}

.project-cta::after {
  content: '›';
  font-size: 1.2rem;
  line-height: 1;
}

/* ====== DETALLE PROYECTO ====== */

.project-detail-hero {
  padding: 3rem 0 1rem;
  background: #ffffff;
}

.back-link a {
  font-size: 0.9rem;
  color: #0077c8;
  text-decoration: none;
}

.back-link a:hover {
  text-decoration: underline;
}

.project-detail-title {
  font-size: 2.2rem;
  margin-top: 0.5rem;
}

.project-detail-section {
  padding: 2rem 0 4rem;
}

.project-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: flex-start;
}

.project-detail-subtitle {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.project-detail-summary {
  color: #444;
  margin-bottom: 1.7rem;
  line-height: 1.7;
}

.project-detail-subsubtitle {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.project-detail-locations {
  font-weight: 500;
  color: #333;
}

.project-detail-gallery {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Contenedor principal de la imagen */
.project-image-main {
  width: 100%;
  max-width: 600px;       /* límite máximo */
  max-height: 300px;       /* límite máximo */
  margin: 0 auto;         /* centrar */
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 18px;
  overflow: hidden;
  background: #f3f4f6;    /* gris suave para cuando la imagen es más pequeña */
  padding: 10px;          /* espacio interior */
}

/* Imagen dentro del contenedor */
#project-main-image {
  width: 100%;
  height: auto;
  max-height: 300px;      /* evita imágenes demasiado altas */
  object-fit: contain;    /* muestra la imagen completa, sin recortes */
  display: block;
}


.project-image-main img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.project-gallery-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.project-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: none;
  background: #cfd8e3;
  cursor: pointer;
  padding: 0;
}

.project-dot.active {
  width: 18px;
  background: #0077c8;
}

/* Responsive detalle */
@media (max-width: 900px) {
  .project-detail-grid {
    grid-template-columns: 1fr;
  }
}

.service-card-list {
  margin-top: 0.75rem;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: #555;
}

.service-card-list li {
  margin-bottom: 0.25rem;
}

.service-integral-note {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  background: #f3f7fb;
  font-size: 0.95rem;
  color: #344;
}

/* ========== SECTORES ========== */

.sector-section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.sector-section + .sector-section {
  border-top: 1px solid #e2e8f0; /* línea suave entre sectores */
}

/* Contenedor de cada sector: descripción + acciones */
.sector-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 3rem;
  margin-top: 2rem;
}

/* Columna izquierda: info y caso de éxito */
.sector-info {
  flex: 2;
  max-width: 720px;
}

/* Columna derecha: accesos rápidos */
.sector-actions {
  flex: 1;
  max-width: 320px;
}

.sector-actions-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Botones grandes y bien alineados */
.sector-actions .btn-cta,
.sector-actions .btn-cta-secondary {
  display: block;
  width: 100%;
  text-align: center;
  margin-bottom: 0.75rem;
}

/* Versión responsive (celular / pantallas pequeñas) */
@media (max-width: 768px) {
  .sector-grid {
    flex-direction: column;
    gap: 1.5rem;
  }

  .sector-info,
  .sector-actions {
    max-width: 100%;
  }
}

.whatsapp-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  font-family: inherit;
}

/* Tarjeta */
.whatsapp-card {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 260px;
  background: #ffffff;
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  display: none;
}

.whatsapp-card h4 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}

.whatsapp-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  text-decoration: none;
}

.whatsapp-contact + .whatsapp-contact {
  border-top: 1px solid #e5e7eb;
}

.whatsapp-icon-small {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.whatsapp-icon-small svg {
  width: 18px;
  height: 18px;
}

.whatsapp-info {
  display: flex;
  flex-direction: column;
}

.whatsapp-label {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.whatsapp-phone {
  font-size: 13px;
  color: #6b7280;
}

/* Botón flotante */
.whatsapp-button {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  animation: whatsapp-pulse 1.6s infinite;
}

.whatsapp-button svg {
  width: 30px;
  height: 30px;
}

.whatsapp-button:hover {
  transform: translateY(-2px);
}

/* Animación halo */
@keyframes whatsapp-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Estado visible */
.whatsapp-widget.is-open .whatsapp-card {
  display: block;
}

/* ========== ANIMATIONS ========== */

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 102, 204, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(0, 102, 204, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 102, 204, 0);
  }
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
