/* ==========================================
   VARIABLES Y ESTILOS BASE
   ========================================== */
:root {
  --primary: #fc7101;
  --primary-light: #fd9a45;
  --primary-dark: #e05e00;
  --star: #ffcc00;
}

* {
  font-family: "Poppins", sans-serif;
  scroll-behavior: smooth;
  box-sizing: border-box;
}

/* AJUSTE GLOBAL PARA EVITAR SCROLL HORIZONTAL */
html,
body {
  /* overflow-x: hidden removido - rompe position: sticky */
  width: 100%;
  margin: 0;
  padding: 0;
  background-color: transparent !important;
  overflow-x: hidden;
}

body {
  background: linear-gradient(135deg, #f8f9fa 0%, #edf2f7 100%);
  color: #333333;
  overflow-x: visible !important; /* Sobrescribe Tailwind para que sticky funcione */
}

/* Wrapper para controlar scroll horizontal sin romper sticky */
.page-wrapper {
  width: 100%;
}

/* ==========================================
   HEADER Y NAVEGACIÓN
   ========================================== */
header {
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

header nav {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 2rem;
  padding: 12px 36px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(25px) saturate(200%);
  -webkit-backdrop-filter: blur(25px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow:
    0 4px 30px rgba(0, 0, 0, 0.08),
    inset 0 1px 2px rgba(255, 255, 255, 0.4),
    inset 0 -1px 3px rgba(255, 255, 255, 0.15);
  transition: all 0.5s ease;
}

header nav::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  right: 1px;
  height: 55%;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.35) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  pointer-events: none;
}

.nav-link {
  position: relative;
  color: white;
  font-weight: 500;
  text-decoration: none;
  transition:
    color 0.3s ease,
    transform 0.2s ease;
}

.nav-link:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

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

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

/* Menú móvil base */
#mobileMenu {
  transition:
    transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.32s ease;
  z-index: 9999 !important;
}

#mobileMenu.is-open {
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

/* ==========================================
   HERO SECTION
   ========================================== */

#inicio {
  position: relative;
}

#inicio::after {
  content: "";
  position: absolute;
  inset: 0; /* Esto significa top:0, left:0, right:0, bottom:0 */
  width: 100%;
  height: 100%;
  /* Gradiente más fuerte para resaltar las letras blancas */
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    /* Inicio oscuro al 60% (Arriba) */ rgba(0, 0, 0, 0.15) 50%,
    /* Medio semitransparente */ rgba(252, 113, 1, 0.2) 100%
      /* Final con toque naranja sutil */
  );
  z-index: 1; /* Se pone encima de la foto */
  pointer-events: none; /* Permite dar clicks a través de la capa */
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content {
  /* Ya no animamos todo el bloque junto */
  /* animation: fadeUp 1.2s ease-out forwards;  <-- BORRAR */
  /* opacity: 0; <-- BORRAR */
  position: relative;
  z-index: 10;
  padding: 0 20px 6rem 20px; /* Ajuste tus paddings si es necesario */
}

/* --- ANIMACIÓN ESCALONADA (CASCADE) --- */

/* Clase base para animar */
.anim-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Clase especial para el texto naranja (necesita inline-block para moverse) */
.orange-reveal {
  display: inline-block; /* Vital para que la animación funcione en un <span> */
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Los tiempos de entrada (La coreografía) */
.delay-1 {
  animation-delay: 0.1s;
} /* "Tu Energía" */
.delay-2 {
  animation-delay: 0.3s;
} /* "Nuestra Responsabilidad" */
.delay-3 {
  animation-delay: 0.5s;
} /* Párrafo */
.delay-4 {
  animation-delay: 0.7s;
} /* Botones */

/* Botón Hero */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #ffffff;
  color: #000000;
  font-weight: 600;
  font-size: 1.5rem;
  padding: 0.5rem 0.7rem 0.5rem 2rem;
  border-radius: 9999px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-glass-icon {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 140, 0, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    0px 2px 4px rgba(0, 0, 0, 0.1),
    0px 4px 8px rgba(255, 140, 0, 0.25);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-glass-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 1px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.6) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.btn-glass-icon::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 50%;
  padding: 1px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0) 60%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover .btn-glass-icon {
  transform: scale(1.15) rotate(45deg);
  background-color: #fc7101;
  box-shadow:
    0 0 15px rgba(252, 113, 1, 0.6),
    inset 0 1px 2px rgba(255, 255, 255, 0.5);
}

/* Botón Ver Más (Glass Orange) */
.glass-orange-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2.2rem;
  text-decoration: none;
  isolation: isolate;
  border-radius: 999px;
  font-weight: 600;
  color: #ffffff;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  background-color: rgba(255, 140, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: none;
  box-shadow:
    0px 4px 10px rgba(252, 113, 1, 0.15),
    0px 10px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  overflow: hidden;
  cursor: pointer;
}
/* Contenedor del botón Ver Más */
.ver-mas-container {
  display: flex;
  justify-content: flex-end !important; /* Alineado a la derecha donde termina card-4 */
  margin-top: 40px; /* 40px de separación desde card-4 */
  padding: 0;
  width: 100%; /* ← AGREGA ESTO */
}

/* Ajustes específicos para el botón dentro del contenedor */
.ver-mas-container .glass-orange-button {
  padding: 0.75rem 1.8rem; /* Padding similar a los tabs */
  font-size: 1rem; /* Tamaño de fuente similar a tabs */
  min-width: auto; /* Ancho automático según texto */
  width: fit-content; /* Se ajusta al contenido */
}

/* Mobile */
@media (max-width: 768px) {
  .ver-mas-container {
    justify-content: center !important; /* Centrado en móvil */
    margin-top: 30px;
    width: 100%; /* ← AGREGA ESTO también */
  }

  .ver-mas-container .glass-orange-button {
    padding: 0.7rem 1.5rem;
    font-size: 0.95rem;
  }
}
.glass-orange-button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  padding: 1px;
  background: linear-gradient(
    180deg,
    rgba(255, 140, 0, 0.1) 0%,
    rgba(255, 140, 0, 0.8) 50%,
    rgba(255, 140, 0, 0.1) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.glass-orange-button::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 999px;
  padding: 1px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, 0.4) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.glass-orange-button:hover {
  transform: translateY(-3px) scale(1.02);
  background-color: rgba(255, 140, 0, 0.85);
  box-shadow:
    0 15px 30px rgba(252, 113, 1, 0.4),
    inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.glass-orange-button:hover::before {
  opacity: 0.5;
}
.glass-orange-button:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow: 0 5px 15px rgba(252, 113, 1, 0.3);
}

/* ==========================================
   SECCIÓN NUESTROS SERVICIOS (ESTILOS DESKTOP)
   ========================================== */
.servicios-section {
  padding: 100px 0;
  background-color: #ffffff;
  padding-bottom: 10px;
}

.servicios-container {
  max-width: 1550px;
  margin: 0 auto;
  padding: 0 60px;
  width: 100%;
}

.servicios-title {
  font-size: 50px;
  font-weight: 500;
  color: #000000;
  margin-bottom: 40px;
  position: relative;
  line-height: 114%;
}

.servicios-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background-color: #fc7101;
  margin-top: 10px;
}

/* Tabs */
.servicios-tabs {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.tab-btn {
  position: relative;
  font-size: 1.1rem;
  padding: 12px 35px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #555;
  background-color: rgba(240, 242, 245, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.05),
    inset 0 2px 4px rgba(255, 255, 255, 1);
  font-weight: 500;
}

.tab-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  padding: 1px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(0, 0, 0, 0.03) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.tab-btn:hover:not(.active) {
  background-color: rgba(230, 235, 240, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

.tab-btn.active {
  background-color: rgba(255, 140, 0, 0.9);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);

  /* --- CAMBIO AQUÍ: Sombra tipo Drop Shadow sutil --- */
  /* 0px X, 10px Y, 20px Blur, Color Negro al 15% */
  box-shadow:
    0 5px 10px rgba(0, 0, 0, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 0.4);

  transform: scale(1.05);
}

.tab-btn.active::before {
  opacity: 1;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(255, 255, 255, 0) 100%
  );
}

.servicios-subtitle {
  font-size: 38px;
  font-weight: 500;
  margin-bottom: 60px;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  line-height: 114%;
}

/* Wrapper y Grid Desktop */
.cards-wrapper {
  position: relative;
  min-height: 550px;
  padding-bottom: 40px;
}

.cards-grid {
  display: grid;
  grid-template-columns: 507px repeat(3, 249.99px);
  gap: 59px;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.cards-grid.fading {
  opacity: 0;
}

/* Cards Generales */
.service-card {
  position: relative;
  border-radius: 21.5px;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-card:hover .card-arrow {
  transform: scale(1.1) rotate(45deg);
  background-color: #ff8a1f;
}

.card-large {
  width: 507px;
  height: 507px;
}
.card-small {
  width: 249.99px;
  height: 507px;
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Overlay Glass */
.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 25px;
}

.card-content {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 22px 25px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  width: 100%;
}

/* Tipografía Cards */
.card-title {
  font-weight: 600;
  font-size: 20px;
  color: #ffffff;
  margin: 0 0 6px 0;
  line-height: 120%;
}

.card-description {
  font-weight: 500;
  font-size: 15px;
  color: #ffffff;
  margin: 0;
  line-height: 120%;
}

.card-title-small {
  font-weight: 500;
  font-size: 15px;
  color: #ffffff;
  margin: 0;
  line-height: 120%;
}

.service-card.card-small .card-title-small {
  display: flex;
  align-items: center;
  height: 100%;
  text-align: justify;
  line-height: 1.18;
}

.service-card.card-small .card-title-small::after {
  content: "";
  display: inline-block;
  width: 100%;
  height: 0;
}

.card-title-long {
  font-size: 15px !important;
  line-height: 120% !important;
  font-weight: 500;
}
.card-title-compact {
  font-weight: 600;
  font-size: 14px;
  color: #ffffff;
  margin: 0 0 4px 0;
  line-height: 115%;
}
.card-description-small {
  font-weight: 400;
  font-size: 12px;
  color: #ffffff;
  margin: 0;
  opacity: 0.95;
  line-height: 115%;
}

/* Arrow Button */
.card-arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #fc7101;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 2px 4px 6px 2px rgba(0, 0, 0, 0.38);
}

/* ==========================================
   SECCIÓN SOLUCIONES RESPALDADAS (CORREGIDO)
   ========================================== */
.soluciones-section {
  background-color: #f1f1f1;
  padding: 88px 125px 125px 125px;
  display: flex;
  align-items: flex-start;
}

.soluciones-container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.soluciones-title {
  font-weight: 600;
  font-size: 45px;
  color: #000000;
  text-align: center;
  margin-bottom: 88px;
  line-height: 120%;
}

.soluciones-grid {
  display: grid;
  grid-template-columns: repeat(3, 390px);
  grid-template-rows: repeat(2, 241px);
  gap: 52px 46px;
  justify-content: center;
}

.solution-tile {
  position: relative;
  width: 390px;
  height: 241px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  border-radius: 21.5px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 30px 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: visible;
}

/* 1. ESTILOS DE LA TARJETA ACTIVA */
.solution-tile:hover,
.solution-tile.scroll-active {
  /* <--- ¡IMPORTANTE LA COMA AQUÍ! */
  background: rgba(59, 57, 68, 0.95);
  backdrop-filter: blur(15px) saturate(140%);
  -webkit-backdrop-filter: blur(15px) saturate(140%);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.1);
}

/* 2. CÍRCULO DEL ICONO */
.tile-icon-circle {
  position: absolute;
  top: 30px; /* ✅ Subido 5px (era 35px) */
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 64px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 140, 0, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 50%;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

/* Decoraciones del círculo */
.tile-icon-circle::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 1px;
  background: linear-gradient(
    180deg,
    rgba(255, 140, 0, 0) 0%,
    rgba(255, 140, 0, 0.66) 50%,
    rgba(255, 140, 0, 0) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.tile-icon-circle::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 50%;
  padding: 1px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0) 50%,
    rgba(255, 255, 255, 0.52) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Círculo activo */
.solution-tile:hover .tile-icon-circle,
.solution-tile.scroll-active .tile-icon-circle {
  /* <--- ¡IMPORTANTE LA COMA! */
  background-color: rgba(255, 140, 0, 0.85);
  transform: translateX(-50%) scale(1.1);
  box-shadow: 0 10px 20px rgba(252, 113, 1, 0.4);
}

/* 3. ICONO (BRIGHTNESS) */
.tile-icon {
  width: 37px;
  height: 37px;
  object-fit: contain;
  filter: brightness(0.2);
  transition: filter 0.3s ease;
}

.solution-tile:hover .tile-icon,
.solution-tile.scroll-active .tile-icon {
  /* <--- ¡IMPORTANTE LA COMA! */
  filter: brightness(0) invert(1);
}

/* Ajustes de iconos individuales */
.icon-adjust-1 {
  transform: translate(-1.5px, 0px);
}
.icon-adjust-2 {
  transform: translate(-1px, 2px);
}
.icon-adjust-3 {
  /* ✅ Gestión del proyecto - centrado horizontal y vertical */
  transform: translate(-2px, 0px);
}
.icon-adjust-4 {
  /* ✅ Impacto positivo - centrado perfecto */
  transform: translate(-2px, -1px);
}

/* Tipografía */
.tile-title {
  font-weight: 600;
  font-size: 22px;
  color: #000000;
  margin: 90px 0 10px 0;
  text-align: center;
  transition: color 0.3s ease;
  line-height: 130%;
}
.tile-subtitle {
  font-weight: 400;
  font-size: 15px;
  color: #000000;
  margin: 0;
  text-align: center;
  transition: color 0.3s ease;
  line-height: 145%;
}

/* 4. TEXTOS ACTIVOS */
.solution-tile:hover .tile-title,
.solution-tile:hover .tile-subtitle,
.solution-tile.scroll-active .tile-title,    /* <--- ¡IMPORTANTE LA COMA! */
.solution-tile.scroll-active .tile-subtitle {
  color: #ffffff;
}

/* ==========================================
   SECCIÓN EQUIPO EXPERTO
   ========================================== */
.equipo-section {
  background-color: #ffffff;
  padding: 63px 149px 149px 149px;
}

.equipo-container {
  max-width: 1400px;
  margin: 0 auto;
  .carousel-nav-buttons {
    display: none;
  }
}

.equipo-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 80px;
  gap: 80px;
  max-width: 1255px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.header-left {
  flex: 1.5;
}
.header-right {
  flex: 1;
  padding-top: 10px;
}

.equipo-title {
  font-weight: 600;
  font-size: 39px;
  line-height: 1.2;
  color: #000000;
  margin: 0;
}
.equipo-subtitle {
  font-weight: 600;
  font-size: 12px;
  color: #000000;
  margin: 0 0 10px 0;
}
.equipo-description {
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
  color: #555555;
  margin: 0;
}

.equipo-grid {
  display: grid;
  grid-template-columns: repeat(3, 365px);
  gap: 80px;
  justify-content: center;
}

.team-card {
  position: relative;
  width: 365px;
  height: 540px;
  border-radius: 21.5px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all 0.4s ease;
}

.team-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
/* --- CORRECCIÓN: HOVER SOLO PARA PC --- */
/* Envolvemos el hover en una media query para que el celular lo ignore */
@media (min-width: 769px) {
  .team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  }

  .team-card:hover .team-img {
    transform: scale(1.1);
  }
}

.team-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 365px;
  height: 175px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  border-bottom-left-radius: 21.5px;
  border-bottom-right-radius: 21.5px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
}

.team-name {
  font-weight: 600;
  font-size: 23.5px;
  color: #ffffff;
  margin: 0 0 5px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.team-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
}
.team-stars svg {
  width: 17px;
  height: 17px;
  fill: var(--star) !important;
}
.team-role {
  font-weight: 400;
  font-size: 15px;
  line-height: 1.3;
  color: #ffffff;
  margin: 0;
  opacity: 0.95;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ==========================================
   SECCIÓN PROYECTOS
   ========================================== */
.proyectos-section {
  background-color: #f8f9fa;
  padding: 60px 98px 98px 98px;
  /* Permite que sticky funcione en esta sección */
  overflow: visible !important;
}

.proyectos-section .page-wrapper {
  overflow: visible !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
}

.proyectos-container {
  max-width: 1400px;
  margin: 0 auto;
  overflow: visible !important;
}
.proyectos-header {
  margin-bottom: 50px;
  max-width: 1327px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  padding: 0;
}
.proyectos-title {
  font-weight: 600;
  font-size: 39px;
  line-height: 1.2;
  color: #000000;
  margin: 0;
  position: relative; /* Eliminamos el sticky del desktop */
}

.proyectos-grid {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.proyectos-col-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 745px;
}

.proyecto-card {
  position: relative; /* Eliminamos el sticky del desktop */
  border-radius: 21.5px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all 0.4s ease;
  z-index: 10;
}

.card-vertical {
  width: 557px;
  height: 745px;
  flex-shrink: 0;
}
.card-horizontal {
  width: 722px;
  height: 352px;
  flex-shrink: 0;
}
/* Borramos los .card-horizontal:last-of-type con "top" que tenías aquí */

.proyecto-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.proyecto-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}
.proyecto-card:hover .proyecto-img {
  transform: scale(1.05);
}

.proyecto-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 75px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  border-bottom-left-radius: 21.5px;
  border-bottom-right-radius: 21.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  z-index: 2;
}

.overlay-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.proyecto-name {
  font-weight: 600;
  font-size: 18px;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.proyecto-desc {
  font-weight: 400;
  font-size: 13px;
  color: #f0f0f0;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.overlay-right {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
}
.location-text {
  font-weight: 500;
  font-size: 14px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.location-icon {
  width: 18px;
  height: 18px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* ==========================================
   SECCIÓN CONTACTO
   ========================================== */
.contacto-section {
  background-color: #ffffff;
  padding: 100px 20px;
  display: flex;
  justify-content: center;
}

.contacto-container {
  max-width: 1400px;
  width: 100%;
}
.contacto-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 56px;
  flex-wrap: wrap;
}

.contacto-image-box {
  position: relative;
  width: 453px;
  height: 606px;
  border-radius: 21.5px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.contacto-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.contacto-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 86px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  border-bottom-left-radius: 21.5px;
  border-bottom-right-radius: 21.5px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.expert-text {
  font-weight: 600;
  font-size: 18px;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.contacto-form-box {
  width: 602px;
  background: #ffffff;
  border-radius: 21.5px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.03);
  padding: 60px 50px;
}

.form-header {
  margin-bottom: 32px;
}
.form-title {
  font-weight: 600;
  font-size: 32px;
  color: #000000;
  margin: 0 0 10px 0;
  line-height: 1.2;
}
.form-subtitle {
  font-weight: 400;
  font-size: 16px;
  color: #666666;
  margin: 0;
}
.sintergia-form {
  display: flex;
  flex-direction: column;
  gap: 19px;
}
.form-row {
  display: flex;
  gap: 19px;
}
.form-input {
  width: 100%;
  height: 60px;
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0 20px;
  font-size: 15px;
  color: #333;
  outline: none;
  transition: all 0.3s ease;
}
.form-input:focus,
.form-textarea:focus {
  border-color: #fc7101;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(252, 113, 1, 0.1);
}
.form-textarea {
  width: 100%;
  height: 157px;
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  font-size: 15px;
  color: #333;
  resize: none;
  outline: none;
  transition: all 0.3s ease;
}
.form-footer {
  margin-top: 15px;
}

.btn-orange {
  background-color: #fc7101 !important;
  color: #ffffff !important;
  border: none;
  box-shadow: 0 10px 20px rgba(252, 113, 1, 0.3) !important;
}
.btn-orange:hover {
  background-color: #e05e00 !important;
  transform: translateY(-3px);
}
.btn-glass-icon.icon-white {
  background-color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.btn-glass-icon.icon-white::before {
  background: linear-gradient(
    180deg,
    rgba(200, 200, 200, 0.2) 0%,
    rgba(255, 255, 255, 0) 100%
  );
}
.btn-orange:hover .btn-glass-icon.icon-white {
  background-color: #ffffff !important;
  transform: scale(1.15) rotate(45deg);
}

/* ==========================================
   BOTÓN WHATSAPP FORMULARIO (ESCRITORIO)
   ========================================== */
.btn-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  border-radius: 50px;

  /* 👇 EL ALTO: 60px lo hará exactamente del mismo alto que tus inputs de texto */
  height: 60px;

  /* 👇 EL ANCHO: 'auto' hace que abrace el texto. 
     Si lo quieres más largo, cámbialo a un número exacto (ej. width: 350px;) 
     o ponle width: 100%; para que llene todo el espacio. */
  width: 55%;

  /* (Opcional) Si usas height, puedes quitar el padding o dejar uno pequeñito a los lados */
  padding: 0 15px;
}

.wa-text {
  font-weight: 600;
  font-size: 1.125rem;
  white-space: nowrap; /* ← AGREGA ESTO */
}

.wa-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.wa-svg {
  position: relative;
  /* 👇 Tu valor de -2px que ya comprobaste que funciona perfecto */
  top: -1px;

  /* 👇 Ahora sí, esto lo moverá en el eje X (positivo=derecha, negativo=izquierda) */
  left: -0.1px;
}

/* Evitamos que el logo de WA gire al pasar el mouse */
.btn-orange:hover .wa-no-spin {
  transform: scale(1.15) rotate(0deg) !important;
}

/* Whatsapp Flotante*/
.whatsapp-button {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  color: white;
}
.whatsapp-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* ==========================================
   RESPONSIVE DESIGN (TABLETS / LAPS PEQUEÑAS)
   ========================================== */
@media (max-width: 1400px) {
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .card-large,
  .card-small {
    width: 100%;
    height: 400px;
  }

  /* Soluciones */
  .soluciones-section {
    padding: 60px 40px 40px 40px;
    min-height: auto;
  }
  .soluciones-title {
    font-size: 36px;
    margin-bottom: 60px;
  }
  .soluciones-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 80px 0;
  }
  .solution-tile {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }

  /* Equipo */
  .equipo-section {
    padding: 60px 40px;
  }
  .equipo-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 365px));
    gap: 40px;
  }
}

/* ==========================================
   WIDGET FLOTANTE WHATSAPP (ESCRITORIO & BASE)
   ========================================== */
:root {
  --wa-primary: #25d366;
  --wa-dark: #128c7e;
  --wa-bg-chat: #efeae2;
  --wa-white: #ffffff;
  --wa-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  --wa-transition: cubic-bezier(
    0.175,
    0.885,
    0.32,
    1.275
  ); /* Animación con rebote suave */
}

.wa-widget-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* --- LA VENTANA DE CHAT --- */
.wa-chat-box {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 350px;
  height: 450px;
  background-color: var(--wa-bg-chat);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--wa-shadow);
  display: flex;
  flex-direction: column;

  /* ESTADO INICIAL: Oculto y encogido hacia la esquina inferior derecha */
  opacity: 0;
  visibility: hidden;
  transform: scale(0.5) translateY(50px);
  transform-origin: bottom right; /* De aquí nace la animación */
  pointer-events: none;

  /* Animación de aparición */
  transition:
    opacity 0.3s ease,
    transform 0.4s var(--wa-transition),
    visibility 0.4s;
}

/* Estado cuando el JavaScript lo abre */
.wa-chat-box.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
  pointer-events: all;
}

/* --- CABECERA ESTILO WHATSAPP --- */
.wa-chat-header {
  background-color: var(--wa-dark);
  color: var(--wa-white);
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.wa-agent-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wa-avatar-wrapper {
  position: relative;
  width: 57px;
  height: 50px;
  /* border-radius: 50% crea la forma circular */
  border-radius: 50%;
  /* overflow: hidden RECORTA todo lo que se salga del círculo */
  overflow: hidden;
  background-color: rgba(
    255,
    255,
    255,
    0.2
  ); /* Fondo por si la img es transparente */
  display: flex;
  align-items: center;
  justify-content: center;
  /* Opcional: un borde finito para definirlo mejor */
  border: 1px solid rgba(0, 0, 0, 0.1);
}
.wa-avatar-img {
  width: 100%;
  height: 100%;
  /* Esto asegura que la imagen cubra el círculo sin deformarse */
  object-fit: cover;
}
.wa-status-indicator {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  background-color: #4caf50;
  border-radius: 50%;
  border: 2px solid var(--wa-dark);
}

.wa-agent-name {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

.wa-reply-time {
  font-size: 12px;
  opacity: 0.9;
}

.wa-close-btn {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 5px;
  transition: transform 0.2s;
}

.wa-close-btn:hover {
  transform: scale(1.1) rotate(90deg);
}

/* --- CUERPO DEL CHAT (Doodles) --- */
.wa-chat-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  /* Fondo sutil */
  background-image: radial-gradient(rgba(0, 0, 0, 0.06) 1px, transparent 1px);
  background-size: 20px 20px;
}

.wa-message-bubble {
  background: var(--wa-white);
  padding: 10px 15px;
  border-radius: 8px;
  border-top-left-radius: 0; /* Colita de la burbuja */
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  max-width: 85%;
  position: relative;
  /* Animación de entrada de la burbuja */
  animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  animation-delay: 0.2s; /* Espera a que se abra la ventana */
  opacity: 0;
  transform: scale(0.8);
}

.wa-message-bubble::before {
  content: "";
  position: absolute;
  top: 0;
  left: -8px;
  width: 0;
  height: 0;
  border: 8px solid transparent;
  border-top-color: var(--wa-white);
  border-left: 0;
}

.wa-message-bubble p {
  margin: 0 0 5px 0;
  font-size: 14.5px;
  color: #111;
  line-height: 1.4;
}

.wa-timestamp {
  display: block;
  font-size: 11px;
  color: #888;
  text-align: right;
}

@keyframes popIn {
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* --- FOOTER (BARRA DE TEXTO) --- */
.wa-chat-footer {
  background-color: #f0f2f5;
  padding: 12px 15px;
}

.wa-input-area {
  display: flex;
  gap: 10px;
  background: var(--wa-white);
  border-radius: 24px;
  padding: 5px 5px 5px 15px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.wa-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  background: transparent;
}

.wa-send-btn {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}

.wa-send-btn:hover {
  background: #f0f2f5;
}

/* --- BOTÓN FLOTANTE (FAB) --- */
.wa-toggle-btn {
  position: relative;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background-color: var(--wa-primary);
  border: none;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.3s var(--wa-transition),
    background-color 0.3s;
  z-index: 10;
}

/* Notificación (El puntito rojo con el 1) */
.wa-notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #ff3b30; /* Rojo estándar de notificaciones */
  color: white;
  font-size: 12px;
  font-weight: bold;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 20;

  /* Animación de entrada para que llame la atención */
  animation: badgePop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 1s forwards;

  /* Empezamos oculto para que aparezca de golpe */
  transform: scale(0);
}

/* La animación del "Pop" */
@keyframes badgePop {
  to {
    transform: scale(1);
  }
}

/* Opcional: Que desaparezca cuando abres el chat */
.wa-widget-container.is-open .wa-notification-badge {
  display: none;
}

.wa-toggle-btn:hover {
  transform: scale(1.08);
  background-color: #20ba56;
}

/* Animación de pulso continuo (Ripple) */
.wa-toggle-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  border: 2px solid var(--wa-primary);
  animation: wa-pulse 2s infinite;
  z-index: -1;
}

@keyframes wa-pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* Transición del icono al abrir (se gira y desaparece o cambia a X) */
.wa-toggle-btn .wa-icon-logo {
  transition:
    transform 0.4s ease,
    opacity 0.4s ease;
}

.wa-widget-container.is-open .wa-icon-logo {
  transform: rotate(90deg) scale(0);
  opacity: 0;
}

/* =========================================================
   RESPONSIVE MÓVIL DEFINITIVO (MAX-WIDTH: 768PX)
   ========================================================= */
@media (max-width: 768px) {
  /* --- AJUSTES GENERALES --- */
  header {
    height: 55px !important;
  }

  /* ==========================================
     AJUSTE BOTONES HERO (SOLO MÓVIL)
     ========================================== */

  /* 1. Forzamos a que estén en la misma fila (anulando el flex-col de Tailwind) */
  #inicio .flex-col {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 12px !important; /* Separación justa entre ambos */
  }

  /* 2. Reducimos el Botón Principal (Empieza aquí) */
  #inicio .btn-primary {
    font-size: 16px !important; /* Letra más chica */
    padding: 6px 5px 6px 14px !important; /* Menos relleno */
    gap: 8px !important;
  }

  /* Achicamos el circulito glass y su ícono */
  #inicio .btn-glass-icon {
    width: 35px !important;
    height: 35px !important;
  }
  #inicio .btn-glass-icon svg {
    width: 12px !important;
    height: 12px !important;
  }

  /* 3. Reducimos el Botón Secundario (Ver más) */
  #inicio .glass-orange-button {
    font-size: 16px !important;
    padding: 8px 18px !important;
  }

  /* --- SECCIÓN SERVICIOS (STICKY) --- */
  .servicios-container {
    padding: 0 20px;
    overflow: visible !important;
  }
  .servicios-title {
    font-size: 32px;
    margin-bottom: 20px;
  }

  /* Ajuste móvil para el Título de Partners */
  .partners-header {
    padding: 0 20px;
  }
  .partners-title {
    font-size: 30px !important; /* <--- AQUÍ CONTROLAS EL TAMAÑO MÓVIL */
    margin-bottom: 30px !important; /* Un poco menos de espacio abajo */
  }

  /* ========================================
     STICKY STACK - CONFIGURACIÓN CORRECTA
     ======================================== */

  /* 1. TABS - Se pegan primero */
  .servicios-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: center;
    scroll-snap-type: x mandatory;
    gap: 12px;

    /* Glass effect */
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    /* Padding y dimensiones */
    padding: 12px 20px;
    margin-left: -20px;
    margin-right: -20px;
    width: calc(100% + 40px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);

    /* Scroll suave en iOS */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .servicios-tabs::-webkit-scrollbar {
    display: none;
  }

  .tab-btn {
    font-size: 15px;
    padding: 10px 20px;
    white-space: nowrap;
    flex-shrink: 0;
    width: auto;
    margin: 0;
  }

  /* 2. SUBTÍTULO - Se pega junto con Card #1 */
  .servicios-subtitle {
    font-size: 22px;
    line-height: 1.35;
    color: #666;

    /* Fondo glass sutil */
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 255, 255, 0.95) 80%,
      rgba(255, 255, 255, 0) 100%
    );
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    padding: 15px 5px 20px 5px;
    margin-bottom: 0;
  }

  /* 3. CARDS GRID */
  .cards-grid {
    display: block;
    position: relative;
    padding-top: 5px;
    padding-bottom: 0;
  }

  .card-large,
  .card-small {
    width: 100% !important;
    height: 350px !important;
  }

  /* 4. CARDS SCROLL FOCUS (Efecto Lupa Vertical) */
  .service-card {
    position: relative;
    background-color: #fff;
    border-radius: 20px;
    overflow: hidden;
    min-height: 350px;
    margin-bottom: 30px;

    /* 👇 1. MÁS PEQUEÑAS (Antes 0.92, ahora 0.88) */
    transform: scale(0.88);

    /* 👇 2. ADIÓS FILTRO TRANSLÚCIDO (Antes 0.6, ahora 1) */
    opacity: 1;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);

    /* Quitamos la opacidad de la transición para mejor rendimiento */
    transition:
      transform 0.5s cubic-bezier(0.25, 1, 0.5, 1),
      box-shadow 0.5s ease;
    will-change: transform;
  }

  /* Estado Activo (Cuando la tarjeta pasa por el centro) */
  .service-card.active-focus {
    transform: scale(1.02); /* El tamaño "lupa" se queda igual */
    opacity: 1;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    z-index: 10;
  }

  /* Animamos también la flecha naranja para simular el hover */
  .service-card.active-focus .card-arrow {
    transform: scale(1.1) rotate(45deg);
    background-color: #ff8a1f;
  }

  .ver-mas-container {
    margin-top: 10px !important;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 20;
  }

  /* --- OTRAS SECCIONES --- */
  .soluciones-section {
    padding: 40px 20px;
  }
  .soluciones-title {
    font-size: 28px;
    margin-bottom: 40px;
  }
  .soluciones-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
  }
  .solution-tile {
    width: 100% !important;
    max-width: 390px;
    height: auto !important;
    min-height: 240px;
    margin: 0 !important;
  }

  /* ✅ Ajuste del círculo en móvil */
  .tile-icon-circle {
    top: 25px !important; /* Subido un poco más en móvil */
  }

  .tile-title {
    font-size: 20px;
    margin-top: 70px;
  }

  .proyectos-section {
    padding: 50px 20px;
  }
  .proyectos-grid {
    gap: 30px;
  }

  .card-vertical,
  .card-horizontal {
    width: 100% !important;
    height: 400px !important;
  }

  .contacto-section {
    padding: 60px 20px;
  }
  .contacto-wrapper {
    gap: 40px;
  }
  .contacto-image-box {
    width: 100% !important;
    height: 400px !important;
  }
  .contacto-form-box {
    width: 100% !important;
    padding: 40px 25px;
  }
  .form-row {
    flex-direction: column;
  }

  /* ==========================================
     BOTÓN WHATSAPP FORMULARIO (MÓVIL)
     ========================================== */
  .btn-wa {
    width: 90% !important; /* En móvil abarca todo el ancho */
    padding: 5px 10px;
  }

  .wa-text {
    font-size: 1.05rem;
    white-space: nowrap; /* ← AGREGA ESTO */
  }

  /* ==========================================
     AQUÍ EMPIEZA LA MAGIA DEL CARRUSEL (CORREGIDO)
     ========================================== */

  /* 1. Contenedor principal */
  .equipo-section {
    /* El primer valor (60px) es el espacio de ARRIBA. Súbelo o bájalo según prefieras. 
       Antes lo teníamos en 20px. */
    padding: 60px 0 20px 0 !important;
    overflow: hidden;
  }
  .equipo-container {
    padding: 0;
    max-width: 100%;
  }

  /* ==========================================
     TEXTOS DEL HEADER DE EQUIPO (NUEVO DISEÑO MÓVIL)
     ========================================== */

  .equipo-header {
    /* 1. Cambiamos a Columna (Uno arriba del otro) */
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important; /* Espacio entre título y descripción */
    padding: 0 30px !important;
    margin-bottom: 20px !important; /* Separación con las tarjetas */
  }

  /* 2. Forzamos que los contenedores ocupen todo el ancho */
  .header-left,
  .header-right {
    width: 100% !important;
    flex: none !important;
    padding: 0 !important;
  }

  /* 3. ELIMINAR EL SUBTÍTULO ("Equipo Experto") */
  .equipo-subtitle {
    display: none !important;
  }

  /* 4. TÍTULO (Arriba) */
  .equipo-title {
    font-size: 20px !important;
    line-height: 1.2 !important;
    margin-bottom: 0 !important;
    color: #000000 !important;

    /* Alineación: Normalmente los títulos se ven mejor a la izquierda, 
       pero si lo quieres justificado también, cambia a 'justify' */
    text-align: left !important;
    width: 100% !important;
  }

  /* 5. DESCRIPCIÓN (Abajo y Justificada) */
  .equipo-description {
    font-size: 14px !important;
    line-height: 1.5 !important; /* Un poco más de aire para leer bien */
    color: #555555 !important;

    /* ⭐ EL TRUCO: Texto justificado de extremo a extremo */
    text-align: left !important;
    width: 100% !important;
    margin: 0 !important;
  }
  /* 2. Grid (Carrusel) */
  .equipo-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    gap: 20px;

    /* ⭐ NUEVA ESTRATEGIA: Sin padding lateral, usamos pseudo-elementos */
    padding: 50px 0 30px 0 !important;

    width: 100% !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  /* ✅ PSEUDO-ELEMENTOS: Espaciadores invisibles al inicio y final */
  .equipo-grid::before,
  .equipo-grid::after {
    content: "";
    display: block;
    flex-shrink: 0;
    width: 10vw; /* El espacio que queremos a cada lado */
  }

  .equipo-grid::-webkit-scrollbar {
    display: none;
  }

  /* 3. Tarjetas */
  .team-card {
    min-width: 80vw !important;
    width: 80vw !important;
    max-width: 400px !important;
    height: 420px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;

    scroll-snap-align: center;
    scroll-snap-stop: always;

    /* ✅ Sombra más sutil y pegada */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    will-change: transform, opacity;

    /* Transiciones */
    transition:
      transform 0.5s cubic-bezier(0.25, 1, 0.5, 1),
      opacity 0.5s ease,
      box-shadow 0.5s ease;

    /* AQUÍ ESTABA EL ERROR ANTES: Ahora todo está dentro de las llaves */
    transform: scale(0.9);
    opacity: 0.6;
    z-index: 1;
  }

  /* Ajustes internos */
  .team-overlay {
    width: 100% !important;
    padding: 15px;
  }
  .team-name {
    font-size: 20px;
  }
  .team-role {
    font-size: 13px;
    line-height: 1.4;
  }

  /* 4. Estado Activo (Centro) - Agregado por JS */
  .team-card.active-center {
    transform: scale(1.05) translateY(-10px) !important;
    opacity: 1 !important;
    z-index: 10;
    /* ✅ Sombra más fuerte pero compacta (sin blur excesivo) */
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15) !important;
  }

  /* 5. Botones de Navegación */
  .carousel-nav-buttons {
    display: flex !important; /* <--- LA MAGIA ESTÁ AQUÍ */
    justify-content: center;
    gap: 25px;
    margin-top: 5px;
    padding-bottom: 30px;
  }

  .carousel-btn {
    position: relative;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-color: rgba(255, 140, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 20px rgba(252, 113, 1, 0.3);
    transition: all 0.3s ease;
    z-index: 20;
  }

  .carousel-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 1px;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.5) 0%,
      rgba(255, 140, 0, 0.8) 50%,
      rgba(255, 140, 0, 0.1) 100%
    );
    -webkit-mask:
      linear-gradient(#fff 0 0) content-box,
      linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
  }
  .carousel-btn::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 50%;
    padding: 1px;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(255, 255, 255, 0) 60%
    );
    -webkit-mask:
      linear-gradient(#fff 0 0) content-box,
      linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
  }

  .carousel-btn:active {
    transform: scale(0.95);
  }
  .carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(1);
  }
  .carousel-btn svg {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
  }
  /* ==========================================
     AJUSTE DE TEXTOS EN CARDS (SOLO MÓVIL)
     ========================================== */

  /* 1. Títulos (Afecta a todas las variantes: grande, compacta, pequeña) */
  .card-title,
  .card-title-small,
  .card-title-compact {
    /* Juega con este número */
    font-size: 19px !important;

    /* Espacio entre líneas (1.2 es ajustado, 1.4 es aireado) */
    line-height: 1.25 !important;

    /* Opcional: Si quieres que el título no sea tan grueso */
    font-weight: 600 !important;

    margin-bottom: 5px !important;
  }

  /* 2. Descripciones (El texto de abajo) */
  .card-description,
  .card-description-small {
    /* Juega con este número */
    font-size: 15px !important;

    line-height: 1.4 !important;

    /* Opcional: Hacerlo un poco más transparente/suave */
    opacity: 0.9 !important;
  }

  /* 3. Ajuste del contenedor blurry para que el texto quepa bien */
  .card-content {
    /* Si agrandas mucho la letra, quizás necesites más padding */
    padding: 15px 20px !important;

    /* Altura automática para que crezca si el texto es largo */
    height: auto !important;
    min-height: 90px; /* Altura mínima para uniformidad */
  }

  /* ==========================================
     PROYECTOS - STICKY STACK (CONTROL MANUAL)
     ========================================== */

  .proyectos-section {
    padding: 50px 20px !important;
    overflow: visible !important;
  }

  /* --- CONTROL NUEVO: EL TÍTULO STICKY --- */
  .proyectos-header {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 100px !important;
    z-index: 40 !important;
    display: block !important;

    /* 👇 1. LA PIERNA INVISIBLE (Para que el título se vaya con las cards)
       Juega con este número si el título sale muy tarde o muy temprano. */
    padding-bottom: 520px !important;

    /* ¡AQUÍ ESTÁ EL CAMBIO! Ya no usamos margen negativo aquí */
    margin-bottom: 0px !important;

    background-color: transparent !important;
    pointer-events: none;
  }

  .proyectos-title {
    font-size: 32px !important;
    position: static !important;
    margin: 0 !important;
    background-color: #f8f9fa !important;
    padding: 10px 0 15px 0 !important;
    pointer-events: auto;
  }

  /* --- CONTROL 1: LA PISTA DE ATERRIZAJE --- */
  .proyectos-grid {
    display: block !important;
    overflow: visible !important;
    padding-bottom: 50px !important;

    /* 👇 2. EL COMPENSADOR (Elimina el hueco gigante)
       Este número DEBE SER EXACTAMENTE EL NEGATIVO del padding del título.
       Si arriba pusiste 500px, aquí pones -500px. */
    margin-top: -520px !important;
  }

  /* Destruimos la caja que separaba a la Card 2 y 3 de la Card 1 */
  .proyectos-col-right {
    display: contents !important;
  }

  /* Estilos base de las tarjetas */
  .proyecto-card {
    position: -webkit-sticky !important;
    position: sticky !important;
    width: 100% !important;
    height: 400px !important;
    border-radius: 20px !important;
    box-shadow:
      0 -15px 30px rgba(0, 0, 0, 0.1),
      0 10px 20px rgba(0, 0, 0, 0.05) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.7) !important;
    will-change: transform;
  }
  .proyecto-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.15) 0%,
      rgba(0, 0, 0, 0) 40%
    );
    pointer-events: none;
    z-index: 1;
    border-radius: 20px;
  }

  /* --- CONTROLES 2 Y 3: FRENADO Y SEPARACIÓN --- */

  .card-vertical {
    /* Tus posiciones de siempre */
    top: 240px !important;
    z-index: 10;
    margin-bottom: 70px !important;

    /* 👇 AGREGAMOS ESTO: Apaga la sombra exterior y la línea brillante */
    box-shadow: none !important;
    border-top: none !important;
  }
  .proyectos-col-right .card-horizontal:nth-child(1) {
    /* 👇 DÓNDE FRENA LA CARD 2: Debe ser el "top" de la Card 1 + los píxeles que asoman. */
    top: 270px !important;
    z-index: 20;

    /* 👇 SEPARACIÓN VISUAL: Distancia antes de que la Card 3 la alcance. */
    margin-bottom: 40px !important;

    .card-vertical::before {
      display: none !important;
    }
  }

  .proyectos-col-right .card-horizontal:nth-child(2) {
    /* 👇 DÓNDE FRENA LA CARD 3: Debe ser el "top" de la Card 2 + los píxeles que asoman. */
    top: 180px !important;
    z-index: 30;

    /* La última no necesita margen inferior */
    margin-bottom: 0 !important;
  }

  /* ==========================================
     WIDGET FLOTANTE WHATSAPP (AJUSTES MÓVIL)
     ========================================== */
  .wa-widget-container {
    bottom: 1rem;
    right: 1rem;
  }

  .wa-toggle-btn {
    width: 60px;
    height: 60px;
  }

  /* En celular, la ventana de chat toma casi todo el ancho */
  .wa-chat-box {
    position: fixed;
    bottom: 85px;
    right: 20px;
    left: 20px;
    width: auto;
    height: 400px;
    max-height: 75vh; /* Que no tape toda la pantalla si se abre el teclado */
    z-index: 9999;
  }

  /* ==========================================
     AJUSTES DE TEXTO WIDGET WHATSAPP (SOLO MÓVIL)
     ========================================== */

  /* 1. El Nombre ("Sintergia Energy") */
  .wa-agent-name {
    /* Reducimos un poquito el tamaño (en desktop es 16px) */
    font-size: 15px !important;
    /* Hacemos que las líneas estén más pegaditas */
    line-height: 1.1 !important;
    /* Reducimos el margen inferior para pegarlo al subtítulo */
    margin-bottom: 2px !important;
  }

  /* 2. El Subtítulo ("Normalmente responde...") */
  .wa-reply-time {
    /* Reducimos un poquito el tamaño (en desktop es 12px) */
    font-size: 11px !important;
    /* Hacemos el interlineado más compacto */
    line-height: 1.1 !important;
    /* Aseguramos que se muestre como bloque para que el line-height aplique bien */
    display: block !important;
    /* Un pequeño ajuste para que no choque con el borde derecho */
    padding-right: 5px !important;
  }
  /* ==========================================
     CORRECCIONES FINAS PROYECTOS (SOLO MÓVIL)
     ========================================== */

  /* 1. Evitar que la ubicación se parta en dos líneas */
  .overlay-right {
    white-space: nowrap !important; /* Obliga al texto a estar en una fila */
    flex-shrink: 0 !important; /* Prohíbe que se aplaste si falta espacio */
    margin-left: 8px !important; /* Separación de seguridad con el título */
  }

  /* 2. Compactar Título y Subtítulo (Reducir espaciado) */
  .proyecto-name {
    font-size: 17px !important; /* Tamaño ideal para lectura */
    line-height: 1.1 !important; /* Interlineado ajustado */
    margin-bottom: 2px !important; /* Reduce el espacio con la descripción de abajo */
  }

  .proyecto-desc {
    font-size: 13px !important;
    line-height: 1.1 !important; /* Más compacto */
    opacity: 0.9;
  }

  /* Ajuste para que el contenedor del texto aproveche el espacio */
  .overlay-left {
    flex: 1; /* Toma todo el espacio disponible */
    padding-right: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centra verticalmente el bloque de texto */
  }

  /* Aseguramos que la barra inferior tenga altura suficiente pero no excesiva */
  .proyecto-overlay {
    height: 70px !important; /* Un poco más compacto que en desktop */
    padding: 0 20px !important; /* Padding lateral equilibrado */
  }
}

/* AJUSTES FINOS DE ICONOS */

/* Icono: Tecnología confiable */
.icon-adjust-1 {
  /* X (Horizontal), Y (Vertical) */
  transform: translate(-1.5px, -2px);
}

/* Icono: Eficiencia */
.icon-adjust-2 {
  transform: translate(-2px, -2px);
}

/* Icono: Gestión técnica (El del casco que me mostraste) */
.icon-adjust-3 {
  /* Juega con estos valores: */
  /* Si se ve muy a la derecha, ponle un valor negativo en X (-2px) */
  /* Si se ve muy arriba, ponle un valor positivo en Y (2px) */
  transform: translate(-3px, -1px) !important;
}

/* Icono: Impacto positivo */
.icon-adjust-4 {
  transform: translate(-1px, 0px);
}
/* ==========================================
   SECCIÓN PARTNERS (CARRUSEL INFINITO)
   ========================================== */
.partners-section {
  background-color: #ffffff;
  padding: 60px 0 100px 0;
  /* overflow: hidden es VITAL para que no cree scroll horizontal en la página */
  overflow: hidden;
}

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

.slider {
  height: 120px;
  margin: auto;
  overflow: hidden;
  position: relative;
  width: 100%;
}

/* Efecto de desvanecido blanco a los lados (Vignette) */
.slider::before,
.slider::after {
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  content: "";
  height: 100px;
  position: absolute;
  width: 150px;
  z-index: 2;
}

.slider::before {
  left: 0;
  top: 0;
}

.slider::after {
  right: 0;
  top: 0;
  transform: rotateZ(180deg);
}

.slide-track {
  display: flex;
  /* 1. SEPARACIÓN: Subimos a 250px la base matemática */
  width: calc(250px * 26);
  /* 2. VELOCIDAD: Bajamos a 25s para que vaya el doble de rápido */
  animation: scrollLogo 35s linear infinite;
}

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

.slide {
  height: 120px;
  /* 1. SEPARACIÓN: Hacemos la caja de cada logo más ancha (antes 200px) */
  width: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* También aumentamos el espacio interno (antes 25px) */
  padding: 0 40px;
}

.slide img {
  max-width: 100%;
  max-height: 200px; /* Que no se hagan gigantes */
  object-fit: contain;

  /* ESTILO PREMIUM: Blanco y negro + Transparencia */
  filter: grayscale(100%);
  opacity: 0.5;
  transition: all 0.4s ease;
  cursor: pointer;
}

/* Efecto al pasar el mouse O cuando pasa por el centro (Radar JS) */
.slide img:hover,
.slide img.active-center {
  filter: grayscale(0%);
  opacity: 1;
  width: 400px; /* ← AGREGA ESTO */
  transform: scale(
    1.5
  ); /* Un poquito más de zoom para que resalte más en el centro */
}

/* LA ANIMACIÓN */
@keyframes scrollLogo {
  0% {
    transform: translateX(0);
  }
  100% {
    /* 1. SEPARACIÓN: Actualizamos el salto a 250px */
    transform: translateX(calc(-250px * 13));
  }
}

/* --- AJUSTES MÓVILES PARA EL CARRUSEL --- */
@media (max-width: 768px) {
  /* ... */

  .slide {
    /* SEPARACIÓN: Cajas más anchas en móvil (antes 140px) */
    width: 170px;
    padding: 0 25px; /* Más espacio interno */
  }

  .slide img {
    max-height: 100px; /* ANTES: 50px - Logos más grandes en móvil */
  }

  .slide-track {
    /* SEPARACIÓN: Matemática actualizada a 170px */
    width: calc(170px * 26);
    /* VELOCIDAD: Bajamos a 20s para que sea más veloz en móvil */
    animation: scrollLogoMobile 30s linear infinite;
  }

  @keyframes scrollLogoMobile {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-140px * 13));
    } /* Ajusta a 140px aquí también */
  }
}
/* ==========================================
   TÍTULO DE PARTNERS (Estilo clon de Servicios)
   ========================================== */
.partners-header {
  max-width: 1550px; /* Mismo ancho que servicios */
  margin: 0 auto;
  padding: 0 60px; /* Alineación perfecta con el resto */
  width: 100%;
}

.partners-title {
  /* --- IGUALADO A EQUIPO-TITLE --- */
  font-size: 39px;
  font-weight: 600;
  line-height: 1.2;

  color: #000000;
  margin-bottom: 40px;
  position: relative;
}

/* La línea naranja decorativa */
.partners-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background-color: #fc7101;
  margin-top: 10px;
}
/* ========================================== */
/* CTA BOTÓN EN SECCIÓN SOLUCIONES */
/* ========================================== */

.soluciones-cta-container {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

.soluciones-cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 40px;
  background: white;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
}

.soluciones-cta-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(59, 57, 68, 0.95);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 16px;
  z-index: 0;
}

.soluciones-cta-btn:hover::before {
  opacity: 1;
}

.soluciones-cta-btn:hover {
  transform: translateY(-8px);
  box-shadow: 0px 12px 30px rgba(252, 113, 1, 0.25);
}

.cta-text {
  position: relative;
  z-index: 1;
  font-weight: 600;
  font-size: 1.125rem;
  color: #1f2937;
  transition: color 0.3s ease;
}

.soluciones-cta-btn:hover .cta-text {
  color: white;
}

.cta-arrow {
  position: relative;
  z-index: 1;
  color: #000000;
  transition: all 0.3s ease;
}

.soluciones-cta-btn:hover .cta-arrow {
  color: #fc7101;
  transform: translate(4px, -4px);
}

/* Mobile */
@media (max-width: 768px) {
  .soluciones-cta-container {
    margin-top: 35px;
  }

  .soluciones-cta-btn {
    padding: 16px 32px;
  }

  .cta-text {
    font-size: 1rem;
  }
}
/* ==========================================
   ANIMACIONES AL HACER SCROLL (SCROLL REVEAL)
   ========================================== */

/* Estado inicial (Invisible y desplazado abajo) */
.reveal {
  opacity: 0;
  transform: translateY(50px); /* Empieza 50px más abajo */
  transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Movimiento suave */
}

/* Estado activo (Cuando el JS detecta que ya lo ves) */
.reveal.active {
  opacity: 1;
  transform: translateY(0); /* Sube a su lugar original */
}

/* Opcional: Para cosas que quieras que tarden un poquito más */
.reveal.delay-200 {
  transition-delay: 0.2s;
}
.reveal.delay-400 {
  transition-delay: 0.4s;
}
