/* =======================================================
   css/style.css
   Versión unificada y lista para pegar
   - Incluye variables, sticky footer, navbar, hero, carousels,
     mapa, clientes, permisos, contacto y footer.
   ======================================================= */

/* =======================================================
   1. CONFIGURACIÓN GLOBAL Y VARIABLES
   ======================================================= */
:root {
  --color-principal: #343a40;
  --color-acento: #D4AF37;
  --color-fondo: #f8f9fa;
  --color-texto: #343a40;
  --color-blanco: #FFFFFF;
}

/* --- REGLAS MODIFICADAS PARA STICKY FOOTER --- */
html, body {
  height: 100%;
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.7;
  color: var(--color-texto);
  background-color: var(--color-blanco);
  overflow-x: hidden;
}

/* Sticky footer layout */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex-grow: 1;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

.footer {
  flex-shrink: 0;
}

/* Headings */
h2, h3, h4 {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--color-principal);
}
h2 { font-size: 2.8em; margin-bottom: 25px; }
h3 { font-size: 2.2em; margin-bottom: 20px; }

img { max-width: 100%; height: auto; display: block; }

.section-container { padding: 80px 15px; }

/* =======================================================
   2. BARRA DE NAVEGACIÓN
   ======================================================= */
.main-nav {
  padding: 10px 0;
  background-color: var(--color-blanco);
  border-bottom: 1px solid #e0e0e0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
  margin-bottom: 0 !important;
}
.main-nav .container {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1350px;
}
.logo-img { height: 80px; width: auto; }
.logo-img-mobile { height: 60px; }
.navbar-brand-centered {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}
@media (max-width: 991.98px) {
  .navbar-brand-centered { display: none; }
  .main-nav .navbar-brand { display: flex !important; }
}
@media (min-width: 992px) {
  .main-nav .navbar-brand { display: none !important; }
}

/* Desktop-only nav layout */
@media (min-width: 992px) {
  .navbar-collapse {
    width: 100%;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
  }
  .nav-links {
    display: flex;
    flex-basis: 42%;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .nav-links-left { justify-content: flex-start; }
  .nav-links-right { justify-content: flex-end; }
  .nav-links .nav-item { flex: 1; text-align: center; }
}

.nav-links .nav-link {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--color-texto);
  transition: color 0.3s ease;
  text-transform: none;
  position: relative;
  padding: 15px 10px;
  white-space: nowrap;
}
.nav-links .nav-link::after {
  content: '';
  position: absolute;
  bottom: -11px;
  left: 0;
  right: 0;
  width: 100%;
  height: 5px;
  background-color: var(--color-acento);
  transform: scaleX(0);
  transition: transform 0.3s ease-in-out;
}
.nav-links .nav-link:hover { color: var(--color-principal); }
.nav-links .nav-link:hover::after,
.nav-links .nav-link.active::after { transform: scaleX(1); }

/* Mobile menu tweaks */
@media (max-width: 991.98px) {
  .navbar-collapse.show {
    background-color: var(--color-blanco);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    padding: 15px;
    margin-top: 15px;
    border: 1px solid #eee;
  }
  .navbar-collapse .navbar-nav { flex-direction: column; width: 100%; }
  .nav-links .nav-item { text-align: center; }
  .nav-links .nav-link {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    width: 100%;
  }
  .nav-links .nav-item:last-child .nav-link { border-bottom: none; }
  .nav-links .nav-link::after { display: none; }
}

/* =======================================================
   3. SECCIÓN HERO (PORTADA)
   ======================================================= */
.hero-section {
  position: relative;
  color: var(--color-blanco);
  background: url('../images/hero.webp') no-repeat center center/cover;
  min-height: calc(var(--vh, 1vh) * 100 - 95px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  
}
.hero-overlay {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; }

.animated-text { color: var(--color-blanco); text-shadow: 2px 2px 8px rgba(0,0,0,0.7); }

.text-slide-in {
  font-family: 'Anton', sans-serif;
  font-size: 4.5rem;
  line-height: 1.2;
}
.text-slide-in span {
  opacity: 0;
  transform: translateY(20px);
  display: inline-block;
  animation: fadeInSlideUp 0.5s forwards;
}
@keyframes fadeInSlideUp {
  to { opacity: 1; transform: translateY(0); }
}

.hero-bottom-content { margin-top: 30px; }
.btn {
  background: var(--color-acento);
  color: var(--color-blanco);
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  font-family: 'Roboto', sans-serif;
  font-size: 1.2em;
  border: none;
  text-transform: uppercase;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
.btn:hover {
  background-color: #C19E2B;
  color: var(--color-blanco);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* =======================================================
   AJUSTES DE RESPONSIVIDAD PARA HERO
   ======================================================= */
@media (max-width: 1200px) {
  .text-slide-in { font-size: 3.8rem; }
}
@media (max-width: 992px) {
  .text-slide-in { font-size: 3rem; line-height: 1.1; }
}
@media (max-width: 768px) {
  .text-slide-in { font-size: 2.2rem; }
}
@media (max-width: 576px) {
  .text-slide-in { font-size: 1.8rem; line-height: 1.1; overflow-wrap: break-word; word-break: break-word; }
  .btn { padding: 10px 25px; font-size: 1em; }
  .hero-content { padding: 0 10px; }
}
@media (max-width: 450px) {
  .text-slide-in { font-size: 1.6rem; line-height: 1.1; }
}

/* =======================================================
   4. OTRAS SECCIONES (Quienes somos, etc.)
   ======================================================= */
#quienes-somos { background-color: var(--color-fondo); }
#quienes-somos .text-content {
  background: var(--color-blanco);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
@media (min-width: 992px) {
  #quienes-somos .text-content { position: relative; left: -50px; }
}
.ver-mas-btn {
  background-color: transparent;
  color: var(--color-acento);
  border: none;
  padding: 5px 0;
  cursor: pointer;
  font-weight: bold;
  font-size: 1em;
  text-decoration: underline;
}
.full-text {
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 0.8s ease, opacity 0.8s ease;
}
.full-text.show { opacity: 1; }

/* =======================================================
   5. HERO CAROUSEL (FONDO Y DESCRIPCIONES)
   ======================================================= */
.service-carousel-section {
  position: relative;
  width: 100%;
  min-height: 93vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 0;
  margin-top: 0;
}

/* Background wrapper: full-bleed layers */
.carousel-background-wrapper {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}
.carousel-bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 900ms ease-in-out;
  will-change: opacity;
}
.carousel-bg-image.active { opacity: 1; }

/* overlay para mejorar contraste texto */
.carousel-background-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.45) 50%, rgba(0,0,0,0.75) 100%);
}

/* Foreground content wrapper - sobre el fondo */
.carousel-content-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 30px 24px;
}

/* Track y slides */
.main-content-carousel { position: relative; overflow: hidden; }
.slide-content-track {
  display: flex;
  transition: transform 800ms cubic-bezier(.2,.9,.3,1);
  width: 100%;
  will-change: transform;
}

/* Slide base: cada slide ocupa 100% (javascript también fuerza esto) */
.service-slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 12px 40px;
  box-sizing: border-box;
}

/* Caja de texto: animable y limitada */
.service-text-box {
  transform: translateX(-18px);
  opacity: 0;
  transition: transform 600ms cubic-bezier(.2,.9,.3,1), opacity 600ms ease;
  will-change: transform, opacity;
  background: rgba(0,0,0,0.78);
  padding: 26px 30px;
  border-radius: 10px;
  max-width: 520px;
  min-width: 260px;
  border-left: 6px solid var(--color-acento);
  color: var(--color-blanco);
  box-shadow: 0 12px 30px rgba(0,0,0,0.6);
}
.service-slide.active .service-text-box {
  transform: translateX(0);
  opacity: 1;
}
.service-text-box h3 {
  color: var(--color-acento);
  font-size: clamp(20px, 2.6vw, 28px);
  margin-bottom: 12px;
}
.service-text-box p {
  color: var(--muted);
  line-height:1.6;
  font-size:0.98rem;
}

/* Si usas imagenes dentro de slide en algún punto */
.service-image-display {
  width: 48%;
  max-width: 640px;
  min-width: 260px;
  max-height: 420px;
  overflow: hidden;
  border-radius: 10px;
  box-sizing: border-box;
}
.service-image-display img {
  display:block;
  width:100%;
  height:100%;
  max-height:420px;
  object-fit:cover;
  border-radius:10px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.9);
  transition: transform 900ms cubic-bezier(.2,.9,.3,1), filter 600ms ease;
  transform-origin:center;
}
.service-slide.active .service-image-display img {
  transform: scale(1.02);
  filter: saturate(1);
}

/* Navegación botones (flechas) */
.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255,255,255,0.12);
  color: white;
  border: 2px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  width: 55px;
  height: 55px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 50;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}
.carousel-nav-btn.prev { left: 8px; }
.carousel-nav-btn.next { right: 8px; }
.carousel-nav-btn:hover {
  transform: translateY(-50%) scale(1.05);
  background-color: var(--color-acento);
  color: var(--color-principal);
  border-color: var(--color-acento);
}

/* Indicators (dots) */
.carousel-indicators {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display:flex;
  gap:10px;
  z-index: 60;
}
.carousel-indicators button {
  width:12px;
  height:12px;
  border-radius:50%;
  border: none;
  background: rgba(255,255,255,0.18);
  cursor:pointer;
  transition: background 200ms, transform 200ms;
}
.carousel-indicators button[aria-selected="true"] {
  background: var(--color-acento);
  transform: scale(1.18);
}

/* Pausar animaciones respetando reduce-motion */
@media (prefers-reduced-motion: reduce) {
  .slide-content-track,
  .carousel-bg-image,
  .service-text-box,
  .service-image-display img {
    transition: none !important;
    animation: none !important;
  }
}

/* RESPONSIVE tweaks for carousel */
@media (max-width: 1024px) {
  .section-main-title { text-align:center; margin-left:0; }
  .service-slide { flex-direction: column; text-align:center; padding: 30px 20px; }
  .service-text-box { margin: 0 auto; border-left: none; border-radius: 10px; width: 92%; min-width: unset; }
  .service-image-display { order: -1; width: 90%; max-width: 720px; max-height: 360px; }
  .carousel-nav-btn { top: 42%; }
}
@media (max-width: 768px) {
  .service-text-box h3 { font-size: 1.6rem; }
  .service-image-display { max-height: 260px; }
}
@media (max-width: 576px) {
  .section-main-title { font-size: 1.6rem; margin-top: 20px; margin-bottom: 8px; text-align:center; }
  .service-image-display { max-height: 220px; height: auto; }
  .service-text-box { padding: 18px; }
  .carousel-nav-btn { width: 44px; height: 44px; font-size: 1.1rem; }
}
/* =======================================================
    6. SECCIÓN MISIÓN, VISIÓN Y VALORES (REFINADO FINAL)
    ======================================================= */
.feature-card {
    /* Base para el overlay y la imagen */
    position: relative; 
    overflow: hidden; 
    
    /* Propiedades de fondo para la imagen */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    /* Estilos del contenedor */
    padding: 40px 30px;
    border-radius: 8px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* OVERLAY (Superposición Semitransparente) */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
    z-index: 1; 
    transition: background-color 0.3s ease;
}

/* Oscurecer el overlay en hover (Opcional, si te gusta el efecto) */
.feature-card:hover::before {
    background-color: rgba(0, 0, 0, 0.7); 
}

/* CONTENIDO: Asegurar que esté por encima del overlay (z-index: 2) */
.feature-card h4, 
.feature-card p, 
.feature-card .icon-wrap {
    position: relative; 
    z-index: 2; /* Mantener por encima del overlay */
}

/* TÍTULOS Y PÁRRAFOS: Tienen que ser blancos para contrastar con la imagen */
.feature-card h4 { 
    color: var(--color-blanco); /* Título BLANCO */
    font-size: 1.8em; 
    margin-bottom: 15px; 
    position: relative; 
    padding-bottom: 10px;
}
.feature-card p { 
    color: rgba(255, 255, 255, 0.9); /* Párrafos BLANCOS semi-transparentes */
    font-size: 1em;
}

/* LÍNEA DIVISORIA: Vuelve a ser de COLOR DE ACENTO (Amarillo) */
.feature-card h4::after {
    content: ''; 
    position: absolute; 
    bottom: 0; 
    left: 50%; 
    transform: translateX(-50%);
    width: 200px; 
    height: 3px; 
    background-color: var(--color-acento); /* <-- ¡Acento/Amarillo aquí! */
}

/* ICONOS: Vuelven a ser de COLOR DE ACENTO (Amarillo) */
.feature-card .icon-wrap {
    width: 80px; height: 80px; margin: 0 auto 25px auto;
    background-color: transparent; 
    border: 3px solid var(--color-acento); /* Borde de color acento */
    color: var(--color-acento); /* Icono de color acento */
    border-radius: 50%;
    display:flex; align-items:center; justify-content:center; font-size:2.5em;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* EFECTO HOVER DEL ICONO */
.feature-card:hover .icon-wrap { 
    background-color: var(--color-acento); 
    color: var(--color-blanco); 
}

/* EFECTOS HOVER GENERAL DE LA TARJETA */
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12), 0 0 20px rgba(212,175,55,0.3);
}

/* =======================================================
    ASIGNACIÓN DE IMAGEN POR TARJETA (RUTAS CORREGIDAS)
    (Asegúrate de que tus rutas con '../images/' sean correctas)
    ======================================================= */
.card-mision {
    background-image: url('../images/mision.webp'); 
}
.card-vision {
    background-image: url('../images/vision.webp');
}
.card-valores {
    background-image: url('../images/valores.webp');
}

/* =======================================================
    AJUSTE DE RESPONSIVE para CARD-RAISED (Visión)
    ======================================================= */
@media (min-width: 768px) {
    /* Anulación para que la imagen de fondo se vea en la tarjeta Visión */
    .feature-card.card-raised { 
        margin-top: -30px; 
        background-color: transparent; 
    }
    /* El hover del icono es el mismo */
    .feature-card.card-raised:hover .icon-wrap { 
        background-color: var(--color-blanco); 
        color: var(--color-principal); 
    }

    /* La línea debe seguir el ACENTO (amarillo), no el blanco que se usaba antes */
    .feature-card.card-raised h4::after { 
        background-color: var(--color-acento); 
    }
}
/* =======================================================
   7. MAPA DE PRESENCIA
   ======================================================= */
.map-container { position: relative; max-height: 640px; overflow: hidden; }
#vzla-map { width: 100%; height: auto; display:block; }
#presencia-nacional { padding-bottom: 50px; margin-bottom: 0; }
#vzla-map #features path { fill: #E0E0E0; stroke: #666; stroke-width: 1.5; }
#vzla-map .pin {
  fill: var(--color-acento); stroke: var(--color-blanco); stroke-width: 2; r: 8;
  transition: r 0.3s ease; cursor: pointer;
}
#vzla-map .pin:hover { r: 12; }

/* Tooltip */
#tooltip {
  position: absolute; background-color: var(--color-principal); color: var(--color-acento);
  padding: 8px 12px; border-radius: 5px; font-family: 'Montserrat', sans-serif;
  font-size: 14px; z-index: 100; opacity: 0; visibility: hidden; transition: opacity 0.3s ease;
  pointer-events: none; display: none;
}
#tooltip.visible { opacity: 1; visibility: visible; display: block; }

.text-content-map h2 { font-size: 3em; }
.text-content-map p { font-size: 1.1em; color: #666; }

/* =======================================================
   8. CARRUSEL CLIENTES (ISOLA 3D)
   ======================================================= */
#clientes { background-color: var(--color-fondo); overflow: hidden; }
.client-carousel-wrapper { position: relative; height: 600px; margin-top: 20px; }
.carousel-viewport { width: 100%; height: 350px; position: absolute; top: 0; left: 0; perspective: 1500px; }
.carousel-track {
  width: 100%; height: 100%; position: absolute; transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.77,0,0.175,1); visibility: hidden;
}
.carousel-slide {
  position: absolute; left: calc(50% - 125px); top: 50px; width: 250px; height: 150px;
  display: flex; align-items:center; justify-content:center; backface-visibility: hidden;
}
.carousel-slide img {
  max-width: 100%; max-height: 100%; cursor: pointer; transition: all 0.6s ease;
  filter: grayscale(100%) opacity(0.5); transform: scale(0.7);
}
.carousel-slide.is-active img { filter: none; opacity: 1; transform: scale(1.3); }

.client-description-box {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  background-color: rgba(255,255,255,0.9); backdrop-filter: blur(5px);
  padding: 20px 25px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  width: 90%; max-width: 600px; min-height: 120px; opacity: 0; transition: opacity 0.5s ease 0.2s;
}
.client-description-box.is-visible { opacity: 1; }

.client-description { font-size: 1.1em; line-height: 1.6; color: #555; margin-bottom: 0; }
.carousel-arrow {
  position: absolute; top: 40%; transform: translateY(-50%); background-color: rgba(0,0,0,0.3);
  color: var(--color-blanco); border: none; z-index: 20; border-radius: 50%; width: 50px; height: 50px;
  font-size: 1.8em; cursor: pointer; transition: all 0.3s ease;
}
.carousel-arrow:hover { background-color: var(--color-acento); }
.prev-arrow { left: 5%; } .next-arrow { right: 5%; }
/* =======================================================
    MEDIA QUERY PARA DISPOSITIVOS PEQUEÑOS (< 768px)
    ======================================================= */
@media (max-width: 768px) {
    
    /* 1. Eliminar Altura Fija y Posicionamiento Absoluto del Wrapper */
    .client-carousel-wrapper {
        /* Eliminamos la altura fija. Ahora crecerá con el contenido. */
        height: auto; 
        padding-bottom: 20px; /* Añade un poco de espacio en la parte inferior */
    }

    /* 2. Reposicionar el Viewport */
    .carousel-viewport {
        /* Mantenemos una altura que contenga bien los logos */
        height: 275px; 
        /* Eliminamos el absolute para que el flujo vertical funcione */
        position: relative; 
    }

    /* 3. Ajustar la Posición de las Flechas de Navegación */
    .carousel-arrow {
        /* Las movemos un poco más abajo, ya que el viewport es más corto. */
        top: 25%;
    }

    /* 4. Reposicionar el Bloque de Texto (¡La Solución Clave!) */
    .client-description-box {
        /* Esto es lo más importante: 
           Quitamos el 'position: absolute' y dejamos que fluya normalmente. */
        position: relative; 
        bottom: auto; /* Anulamos 'bottom: 0' */
        left: auto;   /* Anulamos 'left: 50%' */
        transform: none; /* Anulamos 'translateX(-50%)' */

        /* Centramos el bloque horizontalmente */
        margin: 20px auto 0 auto; 
        
        /* Aseguramos que el ancho sea suficiente sin desbordarse */
        width: 95%; 
        max-width: none;
    }
    
    /* 5. Ajustar el Espacio del Logo (Opcional, si siguen muy apretados) */
    .carousel-slide {
        left: calc(50% - 100px); /* Ajusta el centrado si es necesario */
        width: 200px; /* Reducir el tamaño base del slide */
        top: 20px;
    }
}
/* =======================================================
   9. PERMISOS, LOGOS Y SECCIÓN CONTACTO
   ======================================================= */
.permisos-logos, .permisos-laborales-logos {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-top: 30px;
}
.logo-container { text-align:center; max-width:120px; position:relative; overflow:hidden; }
.logo-container img { height:auto; max-width:100%; margin-bottom:0; transition: filter 0.3s ease; filter: brightness(100%); }
.logo-container:hover img { filter: brightness(60%); }
.logo-container .logo-name {
  position: absolute; inset:0; display:flex; justify-content:center; align-items:center; text-align:center;
  color: var(--color-blanco); background: rgba(0,0,0,0.7); opacity: 0; visibility: hidden; transition: opacity 0.3s ease;
  font-size: 0.8em; font-weight: bold; padding: 5px;
}
.logo-container:hover .logo-name { opacity: 1; visibility: visible; }
.aval-subheading {
  font-family: 'Montserrat', sans-serif; font-size: 1.4em; font-weight:700; color: var(--color-acento);
  margin-bottom: 1rem;
}
.digeservisp-logo { max-width:100%; height:auto; display:block; }

.permisos-bomberos-titulo { text-align:center; margin-top:3rem; }
.permisos-bomberos-content { display:flex; flex-direction:column; align-items:center; gap:30px; margin-top:20px; max-width:500px; margin-left:auto; margin-right:auto; }
.permisos-bomberos-content img { height:auto; width:100%; max-width:250px; border-radius:8px; box-shadow:0 4px 8px rgba(0,0,0,0.1); }
@media (min-width: 768px) { .permisos-bomberos-content { flex-direction: row; } }

/* Contacto */
#contacto { background-color: var(--color-fondo); }
.contact-info {
  background: var(--color-blanco); padding: 30px; border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08); height: 100%;
}
.contact-info h3, .contact-info p { text-align: left; }
.contact-info i { color: var(--color-acento); margin-right: 15px; }
.form-control:focus { border-color: var(--color-acento); box-shadow: 0 0 0 0.25rem rgba(212,175,55,0.25); }

/* =======================================================
   10. FOOTER y WIDGETS
   ======================================================= */
.footer {
  background-color: var(--color-principal);
  color: var(--color-blanco);
  padding: 30px 20px;
}
.footer-company-name {
  font-family: 'Anton', sans-serif; font-size: 1.5em; color: var(--color-blanco);
}
.footer-social a { color: var(--color-blanco); font-size: 2.2em; transition: color 0.3s ease; }
.footer-social a:hover { color: var(--color-acento); }

.whatsapp-btn {
  position: fixed; right: 20px; bottom: 20px; background-color: #25d366; color: var(--color-blanco);
  width: 60px; height: 60px; border-radius: 50%; display:flex; align-items:center; justify-content:center;
  font-size: 2.5em; box-shadow: 0 4px 8px rgba(0,0,0,0.2); z-index: 1000; transition: transform 0.3s ease;
}
.whatsapp-btn:hover { transform: scale(1.1); }

/* =======================================================
   11. ANIMACIONES y MEDIA QUERIES (global)
   ======================================================= */
.animate-on-scroll { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

/* Mobile-specific hero background */
@media (max-width: 991.98px) {
  .hero-section { background-image: url('../images/hero-dinamico-movil.webp'); }
  .animated-text { height: auto; }
  .text-slide-in { position: relative; transform: none; opacity: 1; font-size: 3.5rem; }
  #quienes-somos .text-content { left: 0; margin-top: 30px; }
}
@media (max-width: 767px) {
  h2 { font-size: 2.2em; }
  h3 { font-size: 1.8em; }
  .text-slide-in { font-size: 2.8rem; }
  .client-logos-tray img { height: 40px; margin: 0 10px; }
}

/* ==================================================
   Hero / Carousel - ajustes de armonía visual
   Pegar al final de css/style.css
   ================================================== */

/* Título: menos espacio abajo para mejor equilibrio visual */
.section-main-title {
  color: var(--color-blanco);
  font-family: 'Anton', sans-serif;
  font-size: clamp(55px, 4vw, 44px);
  text-align: center;
  /* Ajuste: reduce el gap inferior para no empujar demasiado la caja */
  margin: 5px 0 100px; /* antes 200px */
  text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
  z-index: 10;
}

/* Mantener hero alto (ya lo pusiste a 93vh) - dejamos la regla */
.service-carousel-section {
  min-height: 93vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Overlay: un poco más suave para que el fondo respire */
.carousel-background-overlay {
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.60) 0%,
    rgba(0,0,0,0.30) 45%,
    rgba(0,0,0,0.65) 100%
  );
  transition: background 400ms ease;
}

/* Contenedor del contenido: bajar un poco verticalmente para centrar en la visual */
.carousel-content-wrapper {
  padding: 10px 12px;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

/* Slide: ajustar para dar más aire entre contenido y los laterales */
.service-slide {
  padding: 24px 48px;
  gap: 36px;
  align-items: flex-start;
}

/* Caja de texto: más estrecha, con padding extra inferior para el botón */
.service-text-box {
  background: rgba(0,0,0,0.62); /* menos opacidad para respirar */
  padding: 60px 32px 48px; /* padding-bottom mayor para dejar espacio al botón */
  border-radius: 12px;
  max-width: 500px; /* un poco más estrecha para mayor elegancia */
  min-width: 240px;
  margin-left: 3%;
  border-left: 6px solid var(--color-acento);
  box-shadow: 0 18px 36px rgba(0,0,0,0.45);
  transform: translateY(8px); /* ligero ajuste vertical para sensación de "anclaje" */
  transition: transform 320ms ease, background 280ms ease;
}

/* Cuando la slide se activa, elevamos la caja ligeramente */
.service-slide.active .service-text-box {
  transform: translateY(0);
}

/* Tipografía dentro de la caja */
.service-text-box h3 {
  color: var(--color-acento);
  font-size: clamp(20px, 2.6vw, 30px);
  margin-bottom: 12px;
}
.service-text-box p {
  color: rgba(255,255,255,0.95);
  line-height: 1.7;
  font-size: 1rem;
  margin-bottom: 0;
}

/* BOTÓN: no debe superponerse a la caja — lo dejamos en flow normal, separado */
.btn-contact {
  display: inline-block;
  background: var(--color-acento);
  color: #111;
  border: none;
  padding: 12px 22px;
  border-radius: 28px;
  font-weight: 700;
  margin-top: 18px;           /* separación desde el texto */
  box-shadow: 0 8px 18px rgba(0,0,0,0.28);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  text-decoration: none;
  z-index: 30;
}

/* Si el botón está dentro de .service-text-box mantiene el flujo y no se solapa */
.service-text-box .btn-contact {
  position: static;
}

/* Hover del botón */
.btn-contact:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.32);
  background: #c79e25;
}

/* Si quieres el botón visualmente "fuera" del recuadro (por diseño),
   puedes usar este estilo: (descomentar si lo deseas)
.service-text-box { padding-bottom: 20px; }
.service-text-box .btn-contact {
  position: relative;
  top: 18px; 
  transform: none;
}


/* Indicadores: centrados y con mejor espaciado visual */
.carousel-indicators {
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 60;
  opacity: 0.95;
}
.carousel-indicators button {
  width: 12px;
  height: 12px;
  background: rgba(255,255,255,0.18);
  border-radius: 50%;
  border: none;
  transition: transform 200ms ease, background 200ms ease, opacity 200ms ease;
}
.carousel-indicators button[aria-selected="true"] {
  background: var(--color-acento);
  transform: scale(1.2);
}

/* Reubicación de las flechas (un poco más separadas del borde) */
.carousel-nav-btn.prev { left: 18px; }
.carousel-nav-btn.next { right: 18px; }

/* Ajustes responsivos para conservar armonía con hero 93vh */
@media (max-width: 1024px) {
  .section-main-title { text-align:center; margin: 8px 0 90px; }
  .carousel-content-wrapper { padding: 24px 18px; }
  .service-slide { flex-direction: column; align-items:center; padding: 24px 18px; gap: 20px; }
  .service-text-box { width: 92%; margin: 0 auto; text-align: center; border-left: none; padding-bottom: 28px; }
  .btn-contact { margin: 18px auto 0; display: inline-block; }
  .carousel-indicators { bottom: 20px; }
}

/* Móvil pequeño */
@media (max-width: 576px) {
  .service-carousel-section { min-height: 78vh; }
  .section-main-title { margin: 8px 0 56px; font-size: clamp(18px, 6vw, 26px); }
  .service-text-box { padding: 20px; border-radius: 10px; }
  .btn-contact { padding: 10px 16px; border-radius: 999px; }
}
/* ==================================================
   Ajuste: subir la caja de texto (pequeño lift)
   Pegar al final de css/style.css
   ================================================== */

/* Valor por defecto (fuera del estado activo) – la dejamos ligeramente abajo para que la animación de entrada suba la caja */
.service-text-box {
  transform: translateY(10px); /* ya tenías esto: conserva la animación inicial */
  transition: transform 320ms ease, background 280ms ease;
}

/* Cuando la slide está activa la elevamos hacia arriba: */
.service-slide.active .service-text-box {
  transform: translateY(-25px); /* ajusta este número para subir más/menos */
}

/* Ajustes por breakpoint: menos desplazo en dispositivos pequeños para evitar recortes */
@media (max-width: 1024px) {
  .service-slide.active .service-text-box {
    transform: translateY(-8px); /* menos lift en tablet/móvil */
  }
}
@media (max-width: 576px) {
  .service-slide.active .service-text-box {
    transform: translateY(0); /* sin lift en móviles muy pequeños */
  }
}
/* =========================
   Hero: responsive background
   ========================= */

/* Base: mantener cover y centrado por defecto */
.hero-section {
  background-image: url('../images/hero.webp');
  background-repeat: no-repeat;
  background-size: cover;
  background-position:center 39.5%;
  background-attachment: scroll;
  min-height: calc(var(--vh, 1vh) * 100 - 95px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

/* Overlay: contraste adecuado, sobreescribir si ya existe */
.hero-overlay {
  background: rgba(0, 0, 0, 0.45);
  pointer-events: none;
  z-index: 1;
}

/* Contenido al frente */
.hero-content { position: relative; z-index: 2; width:100%; max-width:1200px; padding: 0 18px; }

/* Ajustes por breakpoints: imagen específica y re-foco */
@media (max-width: 992px) {
  .hero-section {
    background-image: url('../images/hero.webp');
    /* Mover el foco verticalmente si el sujeto principal está más arriba/abajo */
    background-position: center 35%;
    min-height: calc(var(--vh, 1vh) * 85 - 80px);
  }
}

@media (max-width: 576px) {
  .hero-section {
    background-image: url('../images/hero.webp');
    background-position: center 28%;
    background-size: cover;
    min-height: calc(var(--vh, 1vh) * 72 - 60px);
    padding: 20px 12px;
  }

  .hero-overlay { background: rgba(0,0,0,0.55); }
  .hero-content { padding: 0 8px; }
}

/* Asegurar que texto y botón mantienen su visibilidad y responsividad */
.text-slide-in { word-break: break-word; overflow-wrap: break-word; }

/* Opcional: reducir peso visual del shadow/overlay en pantallas muy pequeñas */
@media (max-width: 360px) {
  .hero-overlay { background: rgba(0,0,0,0.5); }
  .text-slide-in { font-size: 1.45rem !important; line-height: 1.1 !important; }
}

/* Fine tune: asegurar que el contenedor .container no limite verticalmente el hero */
.hero-section > .container { height: 100%; display:flex; align-items:center; justify-content:center; padding:0; }

/* Fin de hero-overrides */