/* ===================== styles.css =====================
    Estilos globales, responsive y animaciones mejorados
    ===================================================== */

:root {
  --primary: #66b32f;
  --secondary: #66b32f;
  --bg: #f8f9fa;
  --text: #2d3748;
  --accent: #25D366;
  --glass: rgba(255, 255, 255, 0.72);
}

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

html, body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  scroll-behavior: smooth;
  color: var(--text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  line-height: 1.6;
  padding-bottom: 0; /* footer in normal flow */
}

/* Ocultar barra de scroll vertical pero permitir scroll */
body {
  overflow-y: auto; /* permitir desplazamiento vertical */
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

body::-webkit-scrollbar { /* Chrome, Safari y Opera */
  display: none;
}

/* Main area grows to push footer to bottom when content is short */
.site-main{flex:1;display:block}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ================= VIDEO FULLSCREEN ================= 
.video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.6s ease;
  backdrop-filter: blur(2px);
}

.video-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.video-container {
  position: relative;
  width: 90%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.intro-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid white;
  border-radius: 50%;
  color: white;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  z-index: 10000;
}

.video-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.video-close-btn:active {
  transform: scale(0.95);
}

@media (max-width: 768px) {
  .video-container {
    width: 95%;
    border-radius: 8px;
  }

  .video-close-btn {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}
  */

/* ================= HEADER ================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  width: 100%;
  transition: all 0.25s ease;
}

/* Ensure no blank gap appears between the injected #site-header and the next element
   This forces the immediate sibling to have no top margin/padding and overrides
   the common banner offsets. */
#site-header { display: block; }
#site-header + * { margin-top: 0 !important; padding-top: 0 !important; }

/* Defensive overrides for known banner classes that previously used margin-top */
.banner, .bannerN, .banner-panamericano { margin-top: 0 !important; }

.header.sticky {
  box-shadow: 0 6px 18px rgba(12, 23, 55, 0.10);
}

.header .header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-left: 0;
  margin-left: 0;
}

.logo img {
  height: 60px;
  width: auto;
  transition: transform 0.25s ease;
}

.logo img:hover {
  transform: scale(1.03);
}

.logo span {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #222;
}

/* NAV */
.nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.nav a {
  color: rgba(45, 55, 72, 0.9);
  text-decoration: none;
  padding: 0.6rem 0.9rem;
  font-size: 1.12rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.nav a:hover {
  background: rgba(102, 126, 234, 0.10);
  color: var(--primary);
  transform: translateY(-2px);
}

/* BOTÓN HAMBURGUESA */
#menuBtn {
  display: none;
  background: none;
  border: 0;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.25rem;
  color: #333;
  transition: 0.2s ease;
}

#menuBtn:hover {
  color: var(--primary);
}

/* MENÚ MÓVIL */
#mobileMenu {
  display: none;
  background: #fff;
  width: 100%;
  padding: 1rem;
  border-top: 1px solid #ddd;
  position: fixed;
  top: 91px;
  left: 0;
  z-index: 999;
}

#mobileMenu a {
  display: block;
  padding: 0.9rem 0;
  color: #444;
  text-decoration: none;
  border-bottom: 1px solid #eee;
  transition: 0.2s ease;
}

#mobileMenu a:last-child {
  border-bottom: none;
}

#mobileMenu a:hover {
  color: var(--primary);
}

/* RESPONSIVE HEADER */
@media(max-width: 768px) {
  .nav {
    display: none;
  }

  #menuBtn {
    display: block;
  }
}

/* ================= BANNER ================= */
.banner {
  position: relative;
  height: 66vh;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 91px;
}

.banner.banner-panamericano {
  margin-top: 0;
}

.banner .bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  opacity: 0.93;
}

.banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.banner .hero-inner {
  position: relative;
  z-index: 10;
  text-align: center;
  color: #fff;
}

/* ================= BANNER NOSOTROS ================= */
.bannerN {
  position: relative;
  height: 33vh;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 91px;
}

.bannerN .bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  opacity: 0.93;
}

.bannerN::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.bannerN .hero-inner {
  position: relative;
  z-index: 10;
  text-align: center;
  color: #fff;
}

/* Ajustes: eliminar espacio superior para que el header y bannerN queden pegados
   y bajar el contenido del banner en pantallas grandes para que el título sea visible */
.bannerN {
  margin-top: 0;
}

@media (min-width: 769px) {
  .bannerN .hero-inner {
    padding-top: 3.25rem; /* empuja el contenido hacia abajo en escritorio */
  }
}

@media (max-width: 768px) {
  .bannerN {
    height: auto;
    min-height: 260px;
    padding: 2.5rem 1rem;
  }

  .bannerN .hero-inner {
    padding-top: 2rem; /* empuja el contenido hacia abajo en móviles */
  }

  .bannerN .hero-inner h1,
  .bannerN .hero-inner h2,
  .bannerN .hero-inner .title {
    font-size: 1.9rem !important;
    line-height: 1.2;
    margin-bottom: 0.4rem;
  }

  .bannerN .hero-inner p {
    font-size: 1.05rem;
    margin-top: 0.4rem;
  }
}

@media (max-width: 480px) {
  .bannerN {
    min-height: 220px;
    padding: 2rem 1rem;
  }

  .bannerN .hero-inner h1,
  .bannerN .hero-inner h2,
  .bannerN .hero-inner .title {
    font-size: 1.6rem !important;
  }

  .bannerN .hero-inner p {
    font-size: 0.95rem;
  }

  /* Ajuste adicional para pantallas muy pequeñas */
  .bannerN .hero-inner {
    padding-top: 1.25rem;
  }
}

/* ================= BANNER PANAMERICANO ================= */
.banner-panamericano {
  position: relative;
  height: 119vh;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  margin-top: 91px;
}

.banner-panamericano::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

/* ===== CARRUSEL ===== */
.carousel {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.carousel .bg-img {
  position: absolute;
  inset: 0;
}

/* ===== HERO CENTER ===== */
.hero-center {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0.6rem;
  color: white;
  margin-top: -120px;
  display: flex;
  flex-direction: column;
  align-items: center;   /* centra horizontal */
  justify-content: center;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.hero-center h1,
.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.hero-logo {
  width: 250px;
  margin-bottom: 1.5rem;
  margin-top: -20px;
}

.hero-center h2,
.hero-sub {
  font-size: 1.4rem;
  margin-bottom: 2rem;
  line-height: 1.4;
  color: #ffffff;
  opacity: 0.5;
}

/* ===== SERVICIOS HERO ===== */
.hero-services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

.hero-service-card {
  padding: 1.4rem 0.8rem;
  border-radius: 18px;
  font-size: 1.15rem;
  color: white;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  text-decoration: none;
  transition: transform 0.2s ease;
}

.hero-service-card:hover {
  transform: translateY(-4px);
}

.hero-service-card.azul {
  background: #1d4ed8;
}

.hero-service-card.verde {
  background: #66b32f;
}

/* ===== ANIMACIONES ===== */
@keyframes slideText {
  from {
    opacity: 0;
    transform: translateX(120px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

@keyframes slideFromRight {
  from {
    opacity: 0;
    transform: translateX(320px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes slideTextMV {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideImageMV {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-text {
  animation: slideText 1.8s ease forwards;
}

.mv-left .mv-text {
  animation: slideFromRight 2s ease forwards;
}

.mv-gris .mv-text {
  animation: slideFromLeft 2s ease forwards;
}

.animate-services {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  animation: slideServices 1.2s ease forwards;
  animation-delay: 0.4s;
}

.reveal-up {
  animation: revealUp 1s ease forwards;
}

/* ===== RESPONSIVE BANNER PANAMERICANO ===== */
@media(max-width: 768px) {
  .banner-panamericano {
    height: auto;
    padding: 3rem 1rem;
  }

  .hero-center {
    margin-top: 0;
    padding-top: 1rem;
  }

  .hero-logo {
    width: 180px;
    margin-top: 0;
    margin-bottom: 1rem;
  }

  .hero-center h1,
  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 0.6rem;
  }

  .hero-center h2,
  .hero-sub {
    font-size: 1.1rem;
    margin-bottom: 1.4rem;
  }

  .hero-services {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.2rem;
  }

  .hero-service-card {
    padding: 1rem;
    font-size: 1rem;
  }
}

@media(max-width: 480px) {
  .hero-logo {
    width: 150px;
  }

  .hero-center h1,
  .hero-title {
    font-size: 1.8rem;
  }

  .hero-center h2,
  .hero-sub {
    font-size: 1rem;
  }
}

/* ================= SECCIONES ================= */
.section {
  padding: 4rem 0;
}

/* ================= FOOTER ================= */
.footer {
  position: static; /* ahora en flujo normal, al final de la página */
  width: 100%;
  background: #167bb4;
  color: #f8fafc;
  box-shadow: 0 -8px 30px rgba(2, 6, 23, 0.12);
  z-index: 100;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}

/* ICONOS SOCIALES */
.social {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6em;
  height: 2.6em;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  text-decoration: none;
  transition: 0.2s ease;
}

.social-link:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.12);
}

.social-link svg {
  width: 70%;
  height: 70%;
  display: block;
}

/* RESPONSIVE FOOTER */
@media(max-width: 680px) {
  .footer .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0 0.9rem;
  }
}

@media (max-width: 768px) {
  .footer {
    position: static;
    box-shadow: none;
  }

  body {
    padding-bottom: 0 !important;
  }
}

/* ========= WHATSAPP FLOAT ========= */
.whatsapp-float {
  position: fixed;
  right: 16px;
  bottom: calc(1rem + 0.6em + 16px);
  width: 3.2em;
  height: 3.2em;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10010;
  cursor: pointer;
  transition: 0.2s ease;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.20);
}

.whatsapp-float:hover {
  transform: translateY(-4px);
  background: #128C7E;
  box-shadow: 0 16px 34px rgba(37, 211, 102, 0.28);
}

.whatsapp-float svg {
  width: 70%;
  height: 70%;
  color: #fff;
}

@media (max-width: 768px) {
  .whatsapp-float {
    width: 3em;
    height: 3em;
    right: 12px;
    bottom: 12px;
  }
}

/* ================= FORM EMPLEOS ================= */
.job-card {
  background: #fff;
  padding: 3rem;
  border-radius: 22px;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.06);
}

.job-title {
  font-size: 1.9rem;
  margin-bottom: 2rem;
  font-weight: 700;
  color: #2b2b2b;
}

.job-form .form-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.4rem;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-group small {
  margin-top: 0.3rem;
  color: #6b7280;
  font-size: 0.85rem;
}

/* Inputs */
.nice-input {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  font-size: 1rem;
  transition: 0.25s ease;
  outline: none;
}

.nice-input:hover {
  background: #eef0f4;
}

.nice-input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(102, 179, 47, 0.25);
}

/* Required */
.req {
  color: #e63946;
  font-weight: bold;
}

/* Button */
.btn-apply {
  padding: 1rem 3rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  background: linear-gradient(90deg, #1f2937, #374151);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
  transition: 0.25s ease;
  border: none;
  cursor: pointer;
}

.btn-apply:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.20);
}

/* FORM RESPONSIVE */
@media(max-width: 680px) {
  .job-form .form-row {
    flex-direction: column;
  }
}

/* ====== CONTACTO ====== */
.contact-title {
  text-align: center;
  font-size: 2.6rem;
  margin-bottom: 2.5rem;
  color: #333;
  font-weight: 700;
}

/* Separación para que el título de contacto no quede oculto por el header */
.contact-title {
  padding-top: 4rem; /* aumentado para desplazar más hacia abajo */
}

@media (max-width: 768px) {
  .contact-title {
    padding-top: 3rem; /* móvil: espacio ligeramente menor */
  }
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.2rem;
  align-items: start;
}

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

.contact-form label {
  font-weight: 600;
  font-size: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
  outline: none;
}

.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

.checkbox-label {
  display: flex;
  align-items: start;
  gap: 8px;
}

.btn-blue {
  background: #0b74d9;
  color: #fff;
  padding: 12px 24px;
  font-size: 1rem;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  width: 130px;
  transition: background 0.2s ease;
}

.btn-blue:hover {
  background: #095cad;
}

.contact-image img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.map-box {
  margin-top: 2rem;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

/* ================= BOTÓN CTA ================= */
.cta {
  display: inline-block;
  padding: 0.9rem 2rem;
  background: #66b32f;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(102, 179, 47, 0.28);
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}

.cta:hover {
  background: #5aa42a;
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 14px 28px rgba(102, 179, 47, 0.38);
}

.cta:active {
  transform: scale(0.97);
}

/* ====================== MISIÓN & VISIÓN ====================== */
.mv-section {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 330px;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 60px 5%;
  overflow: visible;
  color: white;
  gap: 40px;
}

.mv-img {
  position: relative;
  width: 40%;
  height: 250px;
  object-fit: cover;
  z-index: 3;
  border-radius: 12px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.15);
  flex-shrink: 0;
}

.mv-azul {
  background: linear-gradient(135deg, #00a3d9 0%, #008cb4 100%);
}

.mv-gris {
  background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
}

.mv-azul::before,
.mv-gris::before {
  display: none;
}

.mv-text {
  flex: 1;
  z-index: 3;
  max-width: 600px;
  text-align: left;
  padding: 0;
  min-width: 300px;
}

.mv-text h2 {
  font-size: 2rem;
  margin-bottom: 0.7rem;
  font-weight: 700;
}

.mv-text p {
  font-size: 1.15rem;
  line-height: 1.6;
}

/* ===== MISIÓN TEXTO IZQUIERDA (DESKTOP) ===== */
.mv-left {
  flex-direction: row;
}

.mv-left .mv-img {
  order: 2;
  margin-left: 0;
}

.mv-left.mv-azul::before,
.mv-left.mv-gris::before {
  display: none;
}

.mv-left .mv-text {
  order: 1;
  margin-left: 0;
  margin-right: 0;
  padding: 0;
  text-align: left;
}

@media (max-width: 768px) {
  .mv-section {
    flex-direction: column;
    padding: 40px 20px;
    min-height: auto;
  }

  .mv-img {
    position: relative;
    width: 100%;
    height: 250px;
    object-fit: cover;
    top: auto;
    left: auto;
    z-index: 3;
    order: 1;
  }

  .mv-azul::before,
  .mv-gris::before {
    display: none;
  }

  .mv-text {
    position: relative;
    z-index: 3;
    margin: 0;
    padding: 0;
    max-width: 100%;
    text-align: center;
    order: 2;
    width: 100%;
  }

  .mv-text h2 {
    font-size: 1.9rem;
    margin-bottom: 10px;
    margin-top: 20px;
  }

  .mv-text p {
    font-size: 1.05rem;
  }

  .mv-left .mv-img {
    order: 1;
  }

  .mv-left .mv-text {
    text-align: center;
    margin: 0 auto;
  }
}

/* ================= SERVICIOS ================= */

.services-title {
  text-align: center;
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 4rem;
  color: #333;
}

/* Separación para que el título no quede debajo del header fijo */
.services-page .services-title {
  padding-top: 2.5rem;
}

@media (max-width: 768px) {
  .services-page .services-title {
    padding-top: 2rem;
  }
}

/* FILA BASE */
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "img text";
  align-items: center;
  gap: 3rem;
  margin-bottom: 5rem;
}

/* FILA ALTERNADA */
.service-row.reverse {
  grid-template-areas: "text img";
}

/* ÁREAS */
.service-img {
  grid-area: img;
}

.service-text {
  grid-area: text;
}

/* IMAGEN */
.service-img img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* TEXTO */
.service-text h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: #111;
}

.service-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #555;
  max-width: 520px;
}

@media (max-width: 768px) {
  .service-row,
  .service-row.reverse {
    grid-template-columns: 1fr;
    grid-template-areas:
      "img"
      "text";
    text-align: center;
  }

  .service-text p {
    max-width: 100%;
  }
}

/* ================= CARRUSEL SERVICIOS ================= */

.services-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,.15);
}

.services-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.services-carousel-track img {
  width: 100%;
  flex-shrink: 0;
  object-fit: cover;
}

/* Botones */
.services-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.5);
  color: #fff;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 5;
}

.services-carousel-btn.prev { left: 10px; }
.services-carousel-btn.next { right: 10px; }

/* Responsive */
@media (max-width: 768px) {
  .services-page .services-row {
    grid-template-columns: 1fr;
    grid-template-areas:
      "img"
      "text";
    text-align: center;
  }
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-left: 0;
  margin-left: 0;
}

.logo img {
  height: 60px;
  width: auto;
  transition: transform 0.25s ease;
}

.logo img:hover {
  transform: scale(1.03);
}

.logo span {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #222;
}

/* NAV */
.nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.nav a {
  color: rgba(45, 55, 72, 0.9);
  text-decoration: none;
  padding: 0.6rem 0.9rem;
  font-size: 1.12rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.nav a:hover {
  background: rgba(102, 126, 234, 0.10);
  color: var(--primary);
  transform: translateY(-2px);
}

/* BOTÓN HAMBURGUESA */
#menuBtn {
  display: none;
  background: none;
  border: 0;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.25rem;
  color: #333;
  transition: 0.2s ease;
}

#menuBtn:hover {
  color: var(--primary);
}

/* MENÚ MÓVIL */
#mobileMenu {
  display: none;
  background: #fff;
  width: 100%;
  padding: 1rem;
  border-top: 1px solid #ddd;
  position: fixed; /* Lo moví a fixed para que se vea bien si el header es fixed */
  top: 91px; /* Ajustar según la altura de tu header-content (1rem padding top/bottom + 90px logo) */
  left: 0;
  z-index: 999;
}

#mobileMenu a {
  display: block;
  padding: 0.9rem 0;
  color: #444;
  text-decoration: none;
  border-bottom: 1px solid #eee;
  transition: 0.2s ease;
}

#mobileMenu a:last-child {
  border-bottom: none; /* Eliminar borde inferior del último elemento */
}

#mobileMenu a:hover {
  color: var(--primary);
}

/* RESPONSIVE HEADER */
@media(max-width: 768px) {
  .nav {
    display: none;
  }

  #menuBtn {
    display: block;
  }
}

/* ================= BANNER ================= */
.banner {
  position: relative;
  height: 66vh;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  /*overflow: hidden;*/
  margin-top: 91px; /* Para compensar el header fixed (ajustar si la altura del header cambia) */
}

.banner .bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  opacity: 0.93;
}

.banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.banner .hero-inner {
  position: relative;
  z-index: 10;
  text-align: center;
  color: #fff;
}

/*===========BannerNosotros*/
.bannerN {
  position: relative;
  height: 33vh;
  min-height: 300px; /* Reduje la altura mínima ya que 420px es muy alto para un banner pequeño */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 91px; /* Para compensar el header fixed (ajustar si la altura del header cambia) */
}

.bannerN .bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  opacity: 0.93;
}

.bannerN::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.bannerN .hero-inner {
  position: relative;
  z-index: 10;
  text-align: center;
  color: #fff;
}


/* ================= SECCIONES ================= */
.section {
  padding: 4rem 0;
}

/* ================= FOOTER ================= */
.footer {
  /*position: fixed;*/
  bottom: 0;
  left: 0;
  right: 0;
  width: 100vw;
  background: #167bb4;
  color: #f8fafc;
  
  box-shadow: 0 -8px 30px rgba(2, 6, 23, 0.6);
  z-index: 1000;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}

/* ICONOS SOCIALES */
.social {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6em;
  height: 2.6em;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  text-decoration: none;
  transition: 0.2s ease;
}

.social-link:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.12);
}

.social-link svg {
  width: 70%;
  height: 70%;
  display: block;
}

/* ========= WHATSAPP FLOAT ========= */
.whatsapp-float {
  position: fixed;
  right: 16px;
  bottom: calc(1rem + 0.6em + 16px); /* Para elevarlo por encima del footer fijo */
  width: 3.2em;
  height: 3.2em;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10010;
  cursor: pointer;
  transition: 0.2s ease;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.20);
}

.whatsapp-float:hover {
  transform: translateY(-4px);
  background: #128C7E;
  box-shadow: 0 16px 34px rgba(37, 211, 102, 0.28);
}

.whatsapp-float svg {
  width: 70%;
  height: 70%;
  color: #fff;
}

/* RESPONSIVE FOOTER */
@media(max-width: 680px) {
  .footer .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0 0.9rem;
  }

  .whatsapp-float {
    width: 3em;
    height: 3em;
    right: 12px;
    bottom: 12px; /* Volver a la posición normal ya que el footer se hace static */
  }

  body {
    padding-bottom: 0 !important; /* El media query de abajo ya hace el trabajo */
  }
}

/* ===== Footer NO fijo en móviles (Revisión de duplicado) ===== */
@media (max-width: 768px) {
  .footer {
    position: static; /* Eliminé !important porque no era estrictamente necesario */
    box-shadow: none;
  }

  body {
    padding-bottom: 0 !important;
  }
}


/* ================= FORM EMPLEOS ================= */
.job-card {
  background: #fff;
  padding: 3rem;
  border-radius: 22px;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.06);
}

.job-title {
  font-size: 1.9rem;
  margin-bottom: 2rem;
  font-weight: 700;
  color: #2b2b2b;
}

.job-form .form-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.4rem;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-group small {
  margin-top: 0.3rem;
  color: #6b7280;
  font-size: 0.85rem;
}

/* Inputs */
.nice-input {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  font-size: 1rem;
  transition: 0.25s ease;
  outline: none;
}

.nice-input:hover {
  background: #eef0f4;
}

.nice-input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(102, 179, 47, 0.25);
}

/* Required */
.req {
  color: #e63946;
  font-weight: bold;
}

/* Button */
.btn-apply {
  padding: 1rem 3rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  background: linear-gradient(90deg, #1f2937, #374151);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
  transition: 0.25s ease;
  border: none; /* Asegurar que no tenga un borde por defecto */
  cursor: pointer;
}

.btn-apply:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.20);
}

/* FORM RESPONSIVE */
@media(max-width: 680px) {
  .job-form .form-row {
    flex-direction: column;
  }
}

/* ====== CONTACTO ====== */
.contact-title {
  text-align: center;
  font-size: 2.6rem;
  margin-bottom: 2.5rem;
  color: #333;
  font-weight: 700;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.2rem;
  align-items: start;
}

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

.contact-form label {
  font-weight: 600;
  font-size: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
  outline: none;
}

.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

.checkbox-label {
  display: flex;
  align-items: start;
  gap: 8px;
}

.btn-blue {
  background: #0b74d9;
  color: #fff;
  padding: 12px 24px;
  font-size: 1rem;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  width: 130px;
  transition: background 0.2s ease;
}

.btn-blue:hover {
  background: #095cad;
}

.contact-image img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.map-box {
  margin-top: 2rem;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* RESPONSIVE CONTACTO */
@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}


/* ===== BANNER ESTILO PANAMERICANO ===== */
.banner-panamericano {
  position: relative;
  height: 100vh;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  margin-top: 91px; /* Para compensar el header fixed (ajustar si la altura del header cambia) */
}

.banner-panamericano .bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  filter: brightness(0.7);
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

/* CENTRO (ESCRITORIO SIN CAMBIOS) */
.hero-center {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0.5rem;
  color: white;
  margin-top: -120px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.hero-logo {
  width: 250px;
  margin-bottom: 1.5rem;
  margin-top: -20px;
}

.hero-sub {
  font-size: 1.4rem;
  margin-bottom: 2rem;
  line-height: 1.4;
}

/* CARDS DE SERVICIOS */
.hero-services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

.hero-service-card {
  padding: 1.4rem 0.8rem;
  border-radius: 18px;
  font-size: 1.15rem;
  color: white;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  text-decoration: none; /* Asegurar que si son enlaces no se vean subrayados */
  transition: transform 0.2s ease;
}

.hero-service-card:hover {
  transform: translateY(-4px);
}

.hero-service-card.azul {
  background: #1d4ed8;
}

.hero-service-card.verde {
  background: #66b32f;
}

/* ===== RESPONSIVE MÓVIL BANNER PANAMERICANO ===== */
@media(max-width: 768px) {

  /* Altura correcta en móvil */
  .banner-panamericano {
    height: auto;
    padding: 3rem 1rem 3rem;
  }

  /* Centrado perfecto */
  .hero-center {
    margin-top: 0;
    padding-top: 1rem;
  }

  /* Logo proporcional */
  .hero-logo {
    width: 180px;
    margin-top: 0;
    margin-bottom: 1rem;
  }

  /* Título */
  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 0.6rem;
  }

  /* Subtítulo */
  .hero-sub {
    font-size: 1.1rem;
    margin-bottom: 1.4rem;
  }

  /* Servicios en una sola columna */
  .hero-services {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.2rem;
  }

  .hero-service-card {
    padding: 1rem;
    font-size: 1rem;
  }
}

/* Ajuste adicional para pantallas muy pequeñas */
@media(max-width: 480px) {
  .hero-logo {
    width: 150px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-sub {
    font-size: 1rem;
  }
}

/* =========== RESPONSIVE PARA MÓVILES BANNER N =========== */
@media (max-width: 768px) {

  .bannerN {
    height: auto;
    min-height: 260px;
    padding: 2.5rem 1rem;
  }

  .bannerN .hero-inner {
    padding-top: 0.5rem;
  }

  .bannerN .hero-inner h1,
  .bannerN .hero-inner h2,
  .bannerN .hero-inner .title {
    font-size: 1.9rem !important;
    line-height: 1.2;
    margin-bottom: 0.4rem;
  }

  .bannerN .hero-inner p {
    font-size: 1.05rem;
    margin-top: 0.4rem;
  }

}

/* Ajuste adicional para móviles pequeños */
@media (max-width: 480px) {

  .bannerN {
    min-height: 220px;
    padding: 2rem 1rem;
  }

  .bannerN .hero-inner h1,
  .bannerN .hero-inner h2,
  .bannerN .hero-inner .title {
    font-size: 1.6rem !important;
  }

  .bannerN .hero-inner p {
    font-size: 0.95rem;
  }
}

/*===boton cnocenos mas*/
.cta {
  display: inline-block;
  padding: 0.9rem 2rem;
  background: #66b32f;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(102, 179, 47, 0.28);
  transition: all 0.25s ease; /* Cambié de .25s ease a all .25s ease */
  border: none;
  cursor: pointer;
}

.cta:hover {
  background: #5aa42a;
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 14px 28px rgba(102, 179, 47, 0.38);
}

.cta:active {
  transform: scale(0.97);
}

/*===========mison y vison */
/* ====================== MISIÓN & VISIÓN ====================== */
.mv-section {
  position: relative;
  width: 100%;
  height: 330px;
  display: flex;
  align-items: center;
  padding: 0 5%;
  overflow: hidden;
  color: white;
}

/* Imagen de fondo */
.mv-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(45%);
}

/* Capa oscura */
.mv-azul::before,
.mv-gris::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.mv-azul::before {
  background: rgba(0, 132, 180, 0.50);
}

.mv-gris::before {
  background: rgba(0, 0, 0, 0.50);
}

/* Texto */
.mv-text {
  margin-left: auto;
  z-index: 3;
  max-width: 600px;
  text-align: left;
  padding-left: 40px;
}

.mv-text h2 {
  font-size: 2rem;
  margin-bottom: 0.7rem;
  font-weight: 700;
}

.mv-text p {
  font-size: 1.15rem;
  line-height: 1.6;
}

/* Animaciones para mv-section */
.mv-text {
  opacity: 0;
  transform: translateX(100px);
}

.mv-text h2,
.mv-text p {
  opacity: 0;
  transform: translateX(100px);
}

.mv-img {
  opacity: 0;
  transform: scale(0.95);
}

/* Cuando la sección está visible */
.mv-section.visible .mv-text {
  animation: slideTextMV 0.8s ease-out forwards;
}

.mv-section.visible .mv-text h2 {
  animation: slideTextMV 0.8s ease-out forwards;
}

.mv-section.visible .mv-text p {
  animation: slideTextMV 0.9s ease-out forwards 0.1s;
}

.mv-section.visible .mv-img {
  animation: slideImageMV 1s ease-out forwards;
}

/* Para la sección izquierda (misión) */
.mv-section.mv-left .mv-text {
  transform: translateX(100px);
}

.mv-section.mv-left.visible .mv-text {
  animation: slideTextMV 0.8s ease-out forwards;
}


/* ================= RESPONSIVE MISIÓN & VISIÓN ================= */
@media (max-width: 768px) {

  .mv-section {
    height: 380px;
    text-align: center;
    justify-content: center;
    padding: 0 20px;
  }

  /* Imagen sigue siendo fondo (no se mueve) */
  .mv-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
    z-index: 1;
  }

  /* Capa oscura también cubre todo */
  .mv-azul::before,
  .mv-gris::before {
    height: 100%;
    width: 100%;
  }

  /* TEXTO ENCIMA DE LA IMAGEN */
  .mv-text {
    position: relative;
    z-index: 4;
    margin: 0 auto; /* Centrar en móvil */
    padding: 0 10px;
    max-width: 100%;
    text-align: center;
  }

  .mv-text h2 {
    font-size: 1.9rem;
    margin-bottom: 10px;
  }

  .mv-text p {
    font-size: 1.05rem;
  }
}


/*============= MISIÓN TEXTO IZQUIERDA (DESKTOP) =============*/
/* CLASE PRINCIPAL para texto a la izquierda. Necesita display:flex */
.mv-left {
  flex-direction: row; /* La misión por defecto está a la derecha */
}

/* Ajusta la posición de la imagen y overlay para la variante de la izquierda */
.mv-left .mv-img {
  left: auto;
  right: 0;
}

.mv-left.mv-azul::before,
.mv-left.mv-gris::before {
  left: auto;
  right: 0;
}

.mv-left .mv-text {
  margin-left: 0;
  margin-right: auto;
  padding-left: 0;
  padding-right: 40px;
  text-align: left;
}

/*============= MISIÓN RESPONSIVE — TEXTO ENCIMA =============*/
@media (max-width: 768px) {

  .mv-left .mv-img {
    left: 0;
    right: 0;
  }

  .mv-left .mv-text {
    padding-right: 0;
    text-align: center;
    margin: 0 auto; /* Para centrar correctamente en móvil */
  }
}
/* Servicios: estilos trasladados a servicios.html (bloque local). */

/* ================= CARRUSEL SERVICIOS ================= */

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-track img {
  width: 100%;
  flex-shrink: 0;
  object-fit: cover;
}

/* BOTONES */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  color: white;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
  z-index: 5;
  transition: background 0.2s ease;
}

.carousel-btn:hover {
  background: rgba(0,0,0,0.7);
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .carousel-btn {
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
  }
}
/* Duplicados de carrusel/banner eliminados. Se conservan las
   definiciones principales más arriba (única fuente de verdad).
   Este bloque se consolidó para evitar reglas repetidas y conflictos.
*/

/* ===== BANNER ===== */
.banner-panamericano {
    position: relative;
    min-height: 50vh;
    overflow: hidden;
}

/* Oscurecer fondo */
.banner-panamericano::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1;
}

/* ===== CARRUSEL ===== */
.carousel {
   position: absolute;
    inset: 0;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

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

/* ===== HERO ===== */
.hero-center {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    color: #fff;
    text-align: center;
    padding: 1rem;
    padding-bottom: 3rem;
}

.hero-logo {
    width: 180px;
    margin: 1rem 0;
}

/* ===== ANIMACIONES ===== */
@keyframes slideText {
    from { opacity: 0; transform: translateX(120px); }
    to { opacity: 1; transform: translateX(0); }
}

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

.animate-text {
    animation: slideText 1.2s ease forwards;
}

.animate-services {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    animation: slideServices 1.2s ease forwards;
    animation-delay: .4s;
}

/* ===== SERVICIOS HERO ===== */
.hero-service-card {
    padding: 1rem;
    border-radius: 8px;
    min-width: 160px;
    font-weight: bold;
}

.azul { background: #0077b6; }
.verde { background: #2a9d8f; }

/* ===== SECCIÓN SERVICIOS ===== */
.section {
    padding: 4rem 1rem;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
}

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

.service-box {
    background: #f5f5f5;
    padding: 1.5rem;
    border-radius: 10px;
}

/* ===== ANIMACIÓN SERVICIOS ABAJO ===== */
@keyframes revealUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal-up {
    animation: revealUp 1s ease forwards;
}
/* Servicios: estilos trasladados a servicios.html (bloque local). */
/* Estilos locales y aislados para la página de Servicios */
    .services-page .services-container{padding:20px 12px}
    .services-page .services-title{font-size:28px;margin-bottom:18px;text-align:center}

    .services-page .services-carousel{
      width:100%;
      max-width:1000px;
      margin:0 auto;
      overflow:hidden;
      height:320px; /* mismo alto para todos los carruseles */
      position:relative;
      background:#000;
    }

    .services-page .services-carousel-track{
      display:flex;
      transition:transform .5s ease;
      height:100%;
      will-change:transform;
    }

    .services-page .services-carousel-track img{
      width:100%;
      height:100%;
      object-fit:cover;
      flex:0 0 100%;
      display:block;
    }

    .services-page .services-carousel-btn{
      position:absolute;
      top:50%;
      transform:translateY(-50%);
      background:rgba(0,0,0,0.45);
      color:#fff;
      border:none;
      padding:8px 12px;
      cursor:pointer;
      z-index:2;
      border-radius:4px;
      font-size:18px;
      line-height:1;
    }

    .services-page .services-carousel-btn.prev{left:8px}
    .services-page .services-carousel-btn.next{right:8px}

    @media (max-width:768px){
      .services-page .services-carousel{height:220px}
      .services-page .services-title{font-size:22px}
    }
    /* ===== TEXTO DEL CARRUSEL ===== */
.texto-barnner {
  position: absolute;
  bottom: 18%;
  left: 8%;
  max-width: 520px;
  font-size: 2.2rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  z-index: 3;

  /* estado inicial (oculto) */
  opacity: 0;
  transform: translateX(-120px);
}

/* Cuando el slide está activo → animar texto */
.slide.active .texto-barnner {
  animation: textoSlideIn 1.2s ease forwards;
}

/* Reinicio al salir */
.slide:not(.active) .texto-barnner {
  opacity: 0;
  transform: translateX(-120px);
}

/* ===== ANIMACIÓN IZQUIERDA → DERECHA ===== */
@keyframes textoSlideIn {
  from {
    opacity: 0;
    transform: translateX(-120px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
