/* Prevent layout shift for hero section */
.hero {
  min-height: 80vh; /* ensure hero occupies space early */
}

/* Ensure swiper slides have consistent height */
.swiper-slide {
  min-height: 100%;
}

:root {
  --primary: #151515;
  --secondary: #222222;
  --accent: #4A5C72;
  --accent2: #C8D4E0;
  --text: #f0f0f0;
  --text-dark: #171717;
  --bg-light: #f7f5f2;
  --white: #ffffff;
  --whatsapp: #25D366;
  --brand-dark: #2a3442;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
}

/* Fallback offset for fragment navigation so fixed navbar doesn't hide targets */
html {
  scroll-padding-top: 100px; /* safe default, adjusted dynamically by JS on load */
}

body {
  max-width: 100vw;
  overflow-x: clip;
  font-family: 'Nunito', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
}

section {
  padding: 72px 20px 60px;
}

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: visible;
  background: linear-gradient(180deg, rgba(21, 21, 21, 0.92) 0%, rgba(34, 34, 34, 0.72) 100%);
  border-bottom: 2px solid rgba(192, 192, 192, 0.22);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  z-index: 9999;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, transform 0.35s ease;
  will-change: transform;
}

#navbar.scrolled {
  background: linear-gradient(180deg, rgba(21, 21, 21, 0.98) 0%, rgba(21, 21, 21, 0.94) 100%);
  border-bottom-color: rgba(128, 128, 128, 0.45);
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.34);
}

#navbar.nav-hidden {
  transform: translateY(-100%);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 14px 40px;
  margin: 0 auto;
}

.logo {
  height: 70px;
  display: flex;
  align-items: center;
  text-decoration: none;
  background: transparent;
  border: 0;
  box-shadow: none;
  outline: 0;
  line-height: 0;
}

.logo picture,
.logo img {
  height: 100%;
  width: auto;
  display: block;
  background: transparent;
  border: 0;
  box-shadow: none;
  outline: 0;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 50px;
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 30px;

  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #d9d9d9 25%,
    #a6a6a6 50%,
    #f2f2f2 75%,
    #8c8c8c 100%
  );

  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links .nav-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  border: 2px solid var(--whatsapp);
  background: var(--whatsapp);
  color: var(--white);
  -webkit-text-fill-color: var(--white);
  text-decoration: none;
  white-space: nowrap;
  font-size: 22px;
  line-height: 1;
}

.nav-links .nav-whatsapp:hover {
  background: transparent;
  color: var(--whatsapp);
  -webkit-text-fill-color: var(--whatsapp);
}

.nav-telefono {
  color: var(--text-dark);
  text-decoration: none;
  border: 2px solid var(--accent2);
  padding: 7px 14px;
  border-radius: 20px;
  transition: all 0.3s ease;
  font-weight: 600;
  font-family: 'Barlow Condensed', sans-serif;
  background-color: var(--accent2);
}

.nav-telefono:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
  position: relative;
  z-index: 1001;
  flex-shrink: 0;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--accent2);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.hero {
  padding: 0;
  height: 100vh;
  position: relative;
  margin-top: 100px;
}

.hero-swiper {
  height: 100%;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
}

.hero-slide {
  height: 100%;
  width: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.34), rgba(17, 17, 17, 0.58));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 600px;
  padding: 20px;
}

.hero-animate {
  animation: heroFadeUp 1s ease forwards;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content h1 {
  font-size: 100px; /* casi 2 pulgadas aproximadas */
  line-height: 1.05;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-content p {
  font-size: 22px;
  color: var(--accent2);
  margin-bottom: 30px;
}

.btn-cta {
  display: inline-block;
  background-color: var(--accent);
  color: var(--white);
  padding: 16px 36px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid var(--accent);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  line-height: 1;
}

.btn-cta:hover {
  background-color: var(--white);
  color: var(--accent);
}

.swiper-button-prev,
.swiper-button-next {
  color: var(--accent);
}

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 24px;
}

.swiper-pagination-bullet {
  background-color: var(--accent);
  opacity: 0.5;
}

.swiper-pagination-bullet-active {
  background-color: var(--accent);
  opacity: 1;
}

.clientes {
  background-color: var(--bg-light);
  text-align: center;
  padding-top: 40px;
}

.clientes h2 {
  font-size: 70px;
  margin-bottom: 10px;
  color: var(--text-dark);
  position: relative;
  display: inline-block;
}

.clientes h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--accent);
}

.subtitulo {
  color: #999;
  font-size: 28px;
  margin-bottom: 40px;
  font-weight: 600;
}

.clientes-swiper {
  max-width: 1200px;
  margin: 0 auto;
}

.clientes-swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 340px;
  min-width: 320px;
  border-radius: 8px;
  padding: 10px;
  background-color: transparent; /* quitar fondo blanco */
  box-shadow: none;
}

.clientes-swiper img {
  display: block;
  width: 300px;
  height: 300px;
  object-fit: contain;
  background: transparent; /* asegurar que la imagen no tenga fondo via CSS */
}

.servicios {
  background-color: var(--secondary);
  text-align: center;
}

.servicios h2 {
  font-size: 56px;
  margin-bottom: 10px;
  color: var(--white);
  position: relative;
  display: inline-block;
}

.servicios h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--accent);
}

.servicios .subtitulo {
  color: #ccc;
}

.servicios-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 1600px;
  margin: 40px auto 0;
}

.servicio-card {
  background-color: var(--primary);
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  transition: transform 0.3s ease, border-bottom-color 0.3s ease;
  border-bottom: 3px solid transparent;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
}

.servicio-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(21,21,21,0.3) 0%, rgba(21,21,21,0.88) 100%);
  transition: background 0.35s ease;
}

.servicio-card:hover .servicio-card-overlay {
  background: linear-gradient(180deg, rgba(74,92,114,0.5) 0%, rgba(74,92,114,0.92) 100%);
}

.servicio-card:hover {
  border-bottom-color: var(--accent);
  transform: translateY(-5px);
}

.servicio-card-content {
  position: relative;
  z-index: 1;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
}

.servicio-icono {
  color: var(--accent2);
  margin-bottom: 20px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.servicio-card h3 {
  color: var(--white);
  font-size: 42px;
  margin-bottom: 15px;
}

.servicio-card p {
  color: rgba(255,255,255,0.85);
  font-size: 20px;
  line-height: 1.6;
}

/* Flota de carros */

.seccion-flota {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 32px;
  gap: 64px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #faf8f5 100%);
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.06);
}

/* Columna Izquierda */
.columna-texto {
  flex: 0 0 40%;
  text-align: left;
  padding: 12px 0;
}

.titulo-flota {
  display: inline-block;
  font-size: clamp(3.4rem, 4.4vw, 5.8rem);
  line-height: 0.95;
  margin-bottom: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.descripcion-flota-intro {
  color: #5f5f5f;
  margin-bottom: 14px;
  font-size: 1.55rem;
}

.descripcion-flota {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  color: #5f5f5f;
  font-size: 1.5rem;
}

.descripcion-flota li {
  position: relative;
  padding: 10px 0 10px 1.9rem;
  margin-bottom: 8px;
  line-height: 1.4;
  border-bottom: 1px solid rgba(192, 35, 39, 0.12);
}

.descripcion-flota li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(180deg, #e44b4f 0%, #c02327 100%);
  color: #c02327;
  font-weight: 700;
}

.btn-cotizar {
  font-weight: bold;
  text-decoration: none;
  color: black;
  border-bottom: 2px solid #c02327;
  padding-bottom: 5px;
}

/* Columna Derecha - Carrusel */
.columna-carrusel {
  flex: 1; /* Ocupa el resto del espacio */
  overflow: hidden;
  position: relative;
  min-width: 0;
}

/* Contenedor relativo de la tarjeta blanca donde flotan las flechas */
.carousel-wrapper-rel {
  position: relative;
  width: 100%;
  background: #ffffff;
  border-radius: 18px;
  padding: 34px 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
}

.carousel-container {
  width: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease-in-out; /* Velocidad del deslizamiento */
}

/* Tarjeta y textos perfectamente centrados */
.slide {
  min-width: 100%; /* Para que se vea de uno en uno */
  padding: 0 56px; /* Espacio interno para que el contenido no choque con las flechas */
  box-sizing: border-box;
  text-align: center; /* Centra todo el texto y elementos inline dentro del slide */
}

.slide img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  margin: 0 auto; /* Asegura que la imagen se mantenga al centro */
}

.slide h3 { 
  margin-top: 18px; 
  font-size: 1.85rem; 
  letter-spacing: 0.02em;
}

.btn-info {
  display: inline-block;
  margin-top: 15px;
  color: #333;
  font-weight: bold;
  text-decoration: none;
  border-bottom: 2px solid #c02327;
}

/* --- DISEÑO DE LAS FLECHAS NAVEGADORAS --- */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 2rem;
  color: #111;
  cursor: pointer;
  padding: 10px;
  z-index: 10;
  transition: color 0.2s, transform 0.2s;
}

.carousel-btn:hover {
  color: #c02327; /* Cambia a rojo al pasar el cursor */
}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

/* Responsive: en tabletas y móviles ponemos uno arriba del otro */
@media (max-width: 768px) {
  .seccion-flota { 
    flex-direction: column; 
    text-align: center; 
    gap: 30px;
    padding: 40px 18px;
    border-radius: 20px;
  }
  .columna-texto { 
    flex: 0 0 100%; 
    text-align: center; 
  }
  .titulo-flota {
    white-space: normal;
    font-size: clamp(2.8rem, 11vw, 4rem);
  }
  .descripcion-flota li {
    padding-left: 0;
  }
  .descripcion-flota li::before {
    left: 50%;
    top: -2px;
    transform: translateX(-50%);
  }
  .slide {
    padding: 0 35px; /* Reduce el margen en móviles para aprovechar espacio */
  }
  .carousel-btn {
    font-size: 1.6rem; /* Flechas un poco más pequeñas en pantallas chicas */
  }
}

/* === FRANJA CTA === */
.cta-franja {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--accent) 100%);
  padding: 44px 20px;
}

.cta-franja-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 30px;
  flex-wrap: nowrap;
}

.cta-franja-texto {
  flex: 1 1 auto;
  min-width: 0;
}

.cta-franja-texto h3 {
  font-family: 'Barlow Condensed', sans-serif;
  color: var(--white);
  font-size: 72px;
  font-weight: 700;
  margin-bottom: 8px;
}

.cta-franja-texto p {
  color: rgba(255,255,255,0.88);
  font-size: 30px;
  line-height: 1.4;
  margin-bottom: 6px;
}

.btn-wa-franja {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--whatsapp);
  color: var(--white);
  padding: 14px 28px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 700;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 32px;
  white-space: nowrap;
  transition: all 0.3s ease;
  border: 2px solid var(--whatsapp);
  flex-shrink: 0;
}

.btn-wa-franja:hover {
  background-color: transparent;
  color: var(--whatsapp);
}

@media (max-width: 768px) {
  .cta-franja-inner {
    flex-direction: column;
    text-align: center;
    flex-wrap: wrap;
  }
  .cta-franja-texto { width: 100%; }
  .cta-franja-texto h3 { font-size: 28px; }
  .cta-franja-texto p { font-size: 16px; }
}

.porque {
  background-color: var(--bg-light);
  text-align: center;
}

.porque h2 {
  font-size: 72px;
  margin-bottom: 10px;
  color: var(--text-dark);
  position: relative;
  display: inline-block;
}

.porque h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--accent);
}

.porque .subtitulo {
  color: #999;
}

.porque-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  max-width: 1200px;
  margin: 40px auto 0;
}

.porque-item {
  text-align: center;
  padding: 30px;
}

.porque-item [data-lucide] {
  font-size: 48px;
  color: var(--accent);
  margin-bottom: 15px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.porque-item h4 {
  font-size: 28px;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.porque-item p {
  color: #666;
  font-size: 42px;
}

.nosotros {
  background-color: var(--primary);
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.nosotros h2 {
  font-size: 52px;
  margin-bottom: 20px;
  color: var(--white);
  position: relative;
  display: inline-block;
}

.nosotros h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--accent);
}

.nosotros-texto {
  padding-right: 0;
}

.nosotros-texto p {
  color: var(--text);
  margin-bottom: 20px;
  font-size: 20px;
  line-height: 1.8;
}

.nosotros-video iframe {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  aspect-ratio: 16 / 9;
}

.nosotros-video {
  width: 100%;
}

.estadisticas {
  background-color: var(--accent);
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  text-align: center;
}

.stat-item {
  padding: 30px 20px;
  text-align: center;
}

.stat-numero {
  display: block;
  font-size: 160px;
  font-weight: 700;
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
}

.stat-sufijo {
  color: var(--accent2);
  font-size: 28px;
  font-weight: 700;
  margin-left: 5px;
}

.stat-item p {
  color: var(--white);
  margin-top: 10px;
  font-size: 14px;
}

.contacto {
  background-color: var(--secondary);
  text-align: center;
}

.contacto h2 {
  font-size: 52px;
  margin-bottom: 10px;
  color: var(--white);
  position: relative;
  display: inline-block;
}

.contacto h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--accent);
}

.contacto .subtitulo {
  color: #ccc;
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 40px auto 0;
  text-align: left;
}

.contacto-datos {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contacto-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.contacto-item [data-lucide] {
  font-size: 32px;
  color: var(--accent2);
  flex-shrink: 0;
  min-width: 32px;
}

.contacto-item h4 {
  color: var(--white);
  font-size: 24px;
  margin-bottom: 5px;
}

.contacto-item p {
  color: #ccc;
  font-size: 24px;
}

.contacto-item a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contacto-item a:hover {
  color: var(--accent2);
}

.btn-whatsapp-contacto {
  display: inline-block;
  background-color: var(--whatsapp);
  color: var(--white);
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid var(--whatsapp);
  font-family: 'Barlow Condensed', sans-serif;
  text-align: center;
  margin-top: 10px;
}

.btn-whatsapp-contacto:hover {
  background-color: transparent;
  color: var(--whatsapp);
}

.contacto-mapa {
  width: 100%;
  height: 350px;
  border-radius: 10px;
  overflow: hidden;
}

.contacto-mapa iframe {
  width: 100%;
  height: 100%;
  border: none;
}

#footer {
  background-color: var(--primary);
  color: var(--text);
  padding: 60px 20px 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto 40px;
  align-items: start;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

.footer-col {
  text-align: left;
}

.btn-footer {
  display: inline-block;
  margin-top: 15px;
  color: var(--accent);
  font-weight: bold;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  transition: color 0.3s ease, border-color 0.3s ease;
  font-size: 18px;
}

.btn-footer:hover {
  color: var(--white);
  border-color: var(--white);
}

.footer-col h4 {
  color: var(--white);
  font-size: 32px;
  margin-bottom: 15px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 23px;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-logo {
  max-height: 80px;
  margin-bottom: 15px;
}

.footer-col p {
  color: #999;
  font-size: 14px;
  line-height: 1.6;
}

.footer-redes {
  display: flex;
  gap: 15px;
  justify-content: center;
  align-items: center;
}

.footer-redes a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  background: transparent;
  border-radius: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  line-height: 0;
  font-size: 0;
}

.footer-redes a:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.footer-redes .social-icon {
  display: block;
  font-size: 32px;
  line-height: 1;
}

.social-icon-facebook {
  color: #1877f2;
}

.social-icon-instagram {
  color: #e4405f;
}

.social-icon-linkedin {
  color: #0a66c2;
}

.footer-col-redes {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-col-redes h4 {
  margin-bottom: 12px;
}

.footer-col-redes .footer-redes {
  margin: 0;
}

.footer-redes a:hover [data-lucide] {
  color: var(--white);
}

.footer-redes a:hover .social-icon {
  transform: scale(1.08);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.footer-bottom p {
  color: #999;
  font-size: 16px;
  margin: 0;
}

/* Desktop: push social icons to the right, keep nav left */
@media (min-width: 1025px) {
  .footer-grid {
    gap: 40px;
  }

  .footer-col:first-child {
    text-align: left;
  }

  .footer-col:last-child {
    text-align: right;
  }

  .footer-redes {
    justify-content: flex-end;
  }

  .footer-col-redes {
    text-align: center;
  }

  .footer-col-redes .footer-redes {
    justify-content: center;
  }
}

/* Small polish for nav list inside footer */
.footer-col ul {
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  display: inline-block;
}

.footer-col a:hover {
  color: var(--accent);
}

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background-color: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  z-index: 999;
  animation: pulse-whatsapp 2s infinite;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  animation: none;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@keyframes pulse-whatsapp {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  }
}

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

#btn-top {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
  z-index: 998;
}

#btn-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#btn-top:hover {
  background-color: var(--accent);
}

#btn-top svg {
  display: block;
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 128px;
  }

  section {
    padding: 40px 20px;
    scroll-margin-top: 128px;
  }

  nav {
    padding: 15px 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    flex-direction: column;
    gap: 0;
    background-color: var(--primary);
    padding: 20px;
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .hamburger {
    display: flex;
  }

  .hero {
    margin-top: 100px;
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .btn-cta {
    padding: 10px 25px;
    font-size: 14px;
  }

  .clientes h2,
  .servicios h2,
  .porque h2,
  .contacto h2 {
    font-size: 24px;
  }

  .clientes {
    padding-top: 24px;
  }

  .clientes .subtitulo {
    margin-bottom: 18px;
  }

  .clientes-swiper {
    margin-top: 0;
  }

  .clientes-swiper .swiper-slide {
    height: auto;
    min-width: 0;
    padding: 4px 8px 8px;
  }

  .clientes-swiper img {
    width: min(180px, 100%);
    height: auto;
  }

  .servicios-grid,
  .porque-grid {
    gap: 20px;
  }

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

  .contacto-mapa {
    order: -1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-logo {
    width: 180px;
    height: auto;
  }

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

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

  .stat-numero {
    font-size: 36px;
  }

  .nosotros-video {
    order: -1;
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-float svg {
    width: 25px;
    height: 25px;
  }

  #btn-top {
    bottom: 88px;
    right: 16px;
    width: 42px;
    height: 42px;
  }

  #navbar nav {
    flex-wrap: wrap;
  }

  .nav-telefono {
    padding: 8px 12px;
    font-size: 14px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .servicios-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .porque-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contacto-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nosotros {
    grid-template-columns: repeat(2, 1fr);
  }

  .estadisticas {
    grid-template-columns: repeat(2, 1fr);
  }

  nav {
    padding: 15px 30px;
  }

  .nav-links {
    gap: 20px;
  }

  /* Ajustes de tipografía para pantallas medianas (tablets) */
  .hero-content h1 {
    font-size: 90px; /* reduce desde 160 para evitar overflow en tablets */
    line-height: 1.1;
  }

  .hero-content p {
    font-size: 20px;
  }

  .btn-cta {
    font-size: 22px;
    padding: 14px 28px;
  }
}

@media (min-width: 1025px) {
  .servicios-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }

  .porque-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
  }

  .contacto-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nosotros {
    grid-template-columns: repeat(2, 1fr);
  }

  .estadisticas {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-col {
    text-align: left;
  }

  .porque-item {
    text-align: center;
  }

  .contacto-datos {
    text-align: left;
  }
}

/* ==========================================================================
   ESTILOS PÁGINA TRABAJA CON NOSOTROS
   ========================================================================== */
.page-trabaja {
  margin-top: 100px; /* offset por el header */
  background-color: var(--bg-light);
  min-height: 100vh;
}

.hero-trabaja {
  position: relative;
  background-image: url('../assets/images/nosotros.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 100px 20px;
  text-align: center;
  color: var(--white);
}

.hero-trabaja-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(17, 17, 17, 0.7);
  z-index: 1;
}

.hero-trabaja-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero-trabaja h1 {
  font-size: 48px;
  color: var(--accent);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero-trabaja h2 {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-trabaja h2 span {
  color: var(--accent);
}

.hero-trabaja p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 15px;
  color: #ddd;
}

/* Sección Líderes */
.seccion-lideres {
  max-width: 1000px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}

.lideres-texto h2 {
  font-size: 36px;
  color: var(--accent);
  margin-bottom: 10px;
}

.lideres-texto h3 {
  font-size: 28px;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.lideres-texto p {
  font-size: 30px;
  line-height: 1.8;
  color: #555;
}

/* Oferta Laboral */
.oferta-laboral {
  background-color: var(--white);
  padding: 60px 20px;
}

.oferta-container {
  max-width: 900px;
  margin: 0 auto;
  background-color: var(--bg-light);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  overflow: hidden;
}

.oferta-header {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 20px 30px;
  background-color: var(--primary);
  border-bottom: 4px solid var(--accent);
}

.etiqueta {
  background-color: rgba(255,255,255,0.1);
  color: var(--white);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: bold;
}

.oferta-contenido {
  padding: 40px 30px;
}

.oferta-contenido h2 {
  font-size: 32px;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.oferta-contenido p {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 30px;
}

.oferta-contenido h3 {
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 15px;
  border-left: 4px solid var(--accent);
  padding-left: 10px;
}

.lista-requisitos {
  list-style: none;
  margin-bottom: 40px;
}

.lista-requisitos li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 15px;
  font-size: 16px;
  color: #444;
}

.lista-requisitos li [data-lucide] {
  color: var(--accent);
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.tener-en-cuenta {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.item-cuenta {
  background-color: var(--white);
  padding: 15px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
  min-width: 250px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  border-left: 3px solid var(--accent);
}

.item-cuenta [data-lucide] {
  color: var(--accent);
  width: 32px;
  height: 32px;
}

.item-cuenta span {
  font-weight: bold;
  color: var(--text-dark);
}

.formulario-postulacion {
  margin-top: 40px;
  text-align: left;
}

.form-contacto {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-size: 14px;
  color: var(--text-dark);
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group-file {
  flex-direction: row;
  align-items: center;
  gap: 15px;
  font-size: 14px;
}

.btn-enviar-form {
  background-color: var(--accent);
  color: var(--white);
  padding: 12px 30px;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  align-self: flex-start;
  transition: background-color 0.3s ease;
}

.btn-enviar-form:hover {
  background-color: #a01a1d;
}

/* --- Contenedor General con Fondo Oscuro --- */
.porque-elegirnos-section-dark {
    background-color: var(--secondary);
    padding: 60px 20px;
    width: 100%;
    box-sizing: border-box;
}

.porque-elegirnos-section-dark * {
    box-sizing: border-box;
}

.pem-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* --- Encabezado --- */
.pem-header h2 {
    font-size: 64px;
    margin-bottom: 10px;
    color: var(--white);
    position: relative;
    display: inline-block;
}

.pem-header .pem-subtitle {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.8rem;
    color: #a0aec0;
    margin-bottom: 45px;
}

/* --- Recuadro de Características (Efecto Flotante) --- */
.pem-dark-box {
    background: linear-gradient(135deg, #1a2633 0%, #131c26 100%);
    border: 1px solid rgba(197, 160, 89, 0.2);
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    padding: 40px;
    gap: 35px;
    margin-bottom: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Elementos internos */
.pem-feature-item {
    flex: 1;
    display: flex;
    align-items: flex-start;
    text-align: left;
    gap: 15px;
}

/* Contenedor e Iconos */
.pem-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
}

.pem-icon-container i {
    color: #C0C0C0;
    font-size: 2.8rem;
    margin-top: 2px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Textos informativos */
.pem-text-container h3 {
    color: var(--white);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.pem-text-container p {
    color: #e2e8f0;
    font-family: 'Nunito', sans-serif;
    font-size: 1.2rem;
    line-height: 1.5;
    font-weight: 400;
}

/* --- Sección Inferior de Métricas (Números Grandes) --- */
.pem-stats-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.pem-stat-item {
    flex: 1;
    padding: 10px 20px;
}

/* Líneas sutiles de separación */
.pem-border-left {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.pem-stat-number {
    font-family: 'Barlow Condensed', serif;
    font-size: 6rem;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #e2e8f0 0%, #ffffff 25%, #cbd5e1 50%, #94a3b8 75%, #f8fafc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pem-stat-label {
    font-family: 'Barlow Condensed', serif;
    font-style: italic;
    font-size: 1.2rem;
    color: #C0C0C0;
    font-weight: 600;
}

/* --- Adaptabilidad Móvil (Responsive) --- */
@media (max-width: 768px) {
    .porque-elegirnos-section-dark {
        padding: 40px 15px;
    }

    .pem-dark-box {
        flex-direction: column;
        padding: 30px 20px;
        gap: 30px;
    }

    .pem-feature-item {
        align-items: center;
        text-align: center;
        flex-direction: column;
    }

    .pem-text-container {
        text-align: center;
    }

    .pem-stats-container {
        flex-direction: column;
        gap: 35px;
    }

    .pem-border-left {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 25px;
        width: 75%;
        margin: 0 auto;
    }

    .pem-stat-number {
        font-size: 3.5rem;
    }

    .pem-header h2 {
        font-size: 32px;
    }
}

/* Asegura que el enlace contenedor de la imagen no altere su tamaño */
.img-link-wssp {
    display: block;
    width: 100%;
    text-decoration: none;
}

/* Efecto opcional: reduce ligeramente la opacidad al pasar el mouse por la imagen */
.img-link-wssp:hover img {
    opacity: 0.9;
    transition: opacity 0.2s ease;
}