/* Variables de colores actualizadas */
:root {
  --rojo-intenso: #b6151f; 
  --rojo-vino: #780000;    
  --gris-claro: #d0d1d0;
  --amarillo-zibi: #FFC107; 
  --texto-oscuro: #333333;
}

body {
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--texto-oscuro);
}

/* =========================================
   1. FRANJA SUPERIOR (Logo + Contacto)
   ========================================= */
.top-header {
  background-color: var(--rojo-vino);
  color: #ffffff;
  padding: 15px 0 45px 0; /* Padding inferior extra para dar espacio al menú superpuesto */
  position: relative;
  z-index: 10;
}
.contact-info-block {
  display: flex;
  align-items: center;
  border-right: 1px solid rgba(255,255,255,0.2);
  padding-right: 20px;
  margin-right: 20px;
}
.contact-info-block:last-child {
  border-right: none;
  padding-right: 0;
  margin-right: 0;
}
.contact-icon {
  font-size: 1.8rem;
  color: var(--amarillo-zibi); /* Iconos en amarillo para resaltar sobre el vino */
}
.contact-text small {
  font-size: 0.7rem;
  color: var(--gris-claro);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.contact-text span {
  font-size: 0.9rem;
  font-weight: 600;
}
.social-top a {
  color: var(--amarillo-zibi);
  font-size: 1.2rem;
  margin-left: 15px;
  text-decoration: none;
}
.social-top a:hover {
  color: #ffffff;
}

/* =========================================
   2. CONTENEDOR DEL MENÚ FLOTANTE
   ========================================= */
.nav-wrapper {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  transform: translateY(-50%); /* Este es el truco para que quede mitad arriba y mitad abajo */
  z-index: 20;
}

/* NAVBAR BLANCA CENTRADA */
.navbar-zibi {
  background-color: #ffffff;
  box-shadow: 0 5px 15px rgba(0,0,0,0.15); /* Sombra para dar profundidad */
  padding: 0;
  max-width: 900px; /* Ancho máximo para que no ocupe toda la pantalla */
  margin: 0 auto; /* Centrar la caja */
}
.navbar-zibi .nav-link {
  color: var(--texto-oscuro);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  padding: 20px 20px !important; 
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}
.navbar-zibi .nav-link:hover, 
.navbar-zibi .nav-link.active {
  color: var(--rojo-intenso);
}

/* Separadores entre links (opcional, como se ve en la referencia) */
.navbar-nav .nav-item:not(:last-child) {
  border-right: 1px solid var(--gris-claro);
}

/* =========================================
   3. CARRUSEL PRINCIPAL (Banners Animados)
   ========================================= */
.hero-carousel, .carousel-inner, .carousel-item {
  height: 85vh; /* Lo subimos de 75vh a 85vh para que ocupe más pantalla */
  min-height: 600px; /* Altura mínima aumentada de 500px a 680px */
}

/* Propiedades base para las imágenes de fondo */
.carousel-item {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 1.5s ease-in-out, opacity 1s ease-out;
}

/* Imágenes de los 3 banners */
.slide-1 { background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('../img/banner1.jpg'); }
.slide-2 { background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('../img/banner2.jpg'); }
.slide-3 { background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('../img/banner3.jpg'); }

/* Contenedor interno */
.carousel-container {
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
  padding-top: 50px; /* Este padding empuja la caja hacia abajo para que no choque con el menú flotante */
}

/* El cuadro oscuro con textos (se mantiene tu diseño) */
.hero-box {
  background-color: rgba(40, 40, 40, 0.85);
  padding: 40px;
  max-width: 500px;
  border-top: 4px solid var(--amarillo-zibi);
  animation: fadeInUp 1s ease forwards; /* Pequeña animación al entrar */
}
.hero-box p.subtitle {
  color: var(--amarillo-zibi);
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}
.hero-box h1 {
  color: #ffffff;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.hero-box p.desc {
  color: #dddddd;
  font-size: 0.95rem;
  margin-bottom: 30px;
  line-height: 1.6;
}
.btn-zibi {
  background-color: var(--amarillo-zibi);
  color: #000000;
  font-weight: bold;
  font-size: 0.85rem;
  border: none;
  border-radius: 2px;
  padding: 12px 30px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}
.btn-zibi:hover {
  background-color: #e0a800;
  color: #000000;
}


/* =========================================
   4. DISEÑO RESPONSIVE (MENÚ MÓVIL)
   ========================================= */
@media (max-width: 991px) {
  /* Quitamos el efecto flotante "mitad y mitad" en móviles para evitar descuadres */
  .nav-wrapper {
    position: relative;
    transform: none;
  }
  
  /* Ajuste de padding para la barra en móvil */
  .navbar-zibi {
    padding: 10px 20px;
    margin: 0;
    max-width: 100%;
  }

  /* Diseño de la caja desplegable del menú (Fondo sólido) */
  .navbar-collapse {
    background-color: #ffffff; /* Fondo blanco sólido para que no se mezcle con el banner */
    position: absolute; /* Hace que el menú caiga por encima del banner sin empujarlo */
    top: 100%;
    left: 0;
    width: 100%;
    box-shadow: 0 15px 25px rgba(0,0,0,0.2); /* Sombra elegante hacia abajo */
    z-index: 1050;
    border-top: 2px solid var(--rojo-intenso); /* Detalle rojo arriba */
  }

  /* Estilo de los enlaces en móvil */
  .navbar-zibi .nav-link {
    padding: 15px 25px !important;
    border-bottom: 1px solid var(--gris-claro) !important; /* Línea separadora gris claro */
    text-align: left; /* Alineado a la izquierda */
  }
  
  /* Quitar línea al último enlace */
  .navbar-nav .nav-item:last-child .nav-link {
    border-bottom: none !important;
  }

  /* Quitar la línea divisoria vertical del diseño de escritorio */
  .navbar-nav .nav-item:not(:last-child) {
    border-right: none;
  }
}

/* =========================================
   5. SECCIÓN DE SERVICIOS
   ========================================= */
.seccion-servicios {
  background-color: #f4f6f8;
}
.titulo-seccion {
  color: var(--rojo-vino);
  font-weight: 800;
  text-transform: uppercase;
}
.linea-separadora {
  height: 3px;
  width: 60px;
  background-color: var(--amarillo-zibi);
  margin: 15px auto 30px auto;
}
.servicio-card {
  background-color: #ffffff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}
.servicio-card:hover {
 transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12); /* Efecto de saltito al pasar el mouse */
}
.servicio-card img {
  height: 190px;
  width: 100%;
  object-fit: cover;
  border-bottom: 4px solid var(--amarillo-zibi); /* Detalle corporativo bajo la foto */
}
.servicio-body h5 {
  color: var(--rojo-vino);
  font-size: 1.1rem;
  margin-top: 15px;
  margin-bottom: 10px;
 
}
.servicio-body p {
  color: #555555;
  line-height: 1.5;
}
.servicio-body {
  padding: 15px 18px 20px 18px;
}

.link-zibi {
  color: var(--rojo-intenso);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s ease;
}
.link-zibi:hover {
  color: var(--texto-oscuro);
}

/* =========================================
   6. SECCIÓN NOSOTROS / POR QUÉ ELEGIRNOS (ESTILO OSCURO)
   ========================================= */
.seccion-nosotros {
  background: linear-gradient(rgba(22, 24, 29, 0.92), rgba(22, 24, 29, 0.95)), url('../img/bg-franja.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #ffffff;
  border-top: 4px solid var(--amarillo-zibi);
  border-bottom: 4px solid var(--amarillo-zibi);
}
.seccion-nosotros .titulo-nosotros {
  color: #ffffff;
}
.seccion-nosotros .text-muted {
  color: #d1d5db !important; /* Gris claro legible sobre fondo oscuro */
}
.seccion-nosotros h5 {
  color: var(--amarillo-zibi) !important; /* CALIDAD, SEGURIDAD, PUNTUALIDAD en amarillo */
}
.seccion-nosotros .link-zibi {
  color: var(--amarillo-zibi);
}
.seccion-nosotros .link-zibi:hover {
  color: #ffffff;
}


/* =========================================
   ANIMACIONES SECCIÓN NOSOTROS
   ========================================= */

/* 1. Interacción en los pilares (Calidad, Seguridad, Puntualidad) */
.seccion-nosotros .d-flex {
  padding: 12px 15px;
  border-radius: 6px;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
}
.seccion-nosotros .d-flex:hover {
  background-color: rgba(255, 255, 255, 0.06);
  border-left-color: var(--amarillo-zibi);
  transform: translateX(8px);
}
.seccion-nosotros .d-flex:hover .icono-check {
  transform: scale(1.2);
  transition: transform 0.3s ease;
}

/* 2. Zoom y brillo en las 2 fotos */
.seccion-nosotros img {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.seccion-nosotros img:hover {
  transform: scale(1.04);
  box-shadow: 0 10px 25px rgba(255, 193, 7, 0.25) !important;
}

/* 3. Flecha animada en "LEER MÁS >" */
.seccion-nosotros .link-zibi i {
  transition: transform 0.3s ease;
}
.seccion-nosotros .link-zibi:hover i {
  transform: translateX(5px);
}

/* 4. Entrada suave al hacer scroll */
.animar-izq, .animar-der {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.animar-izq {
  transform: translateX(-40px);
}
.animar-der {
  transform: translateX(40px);
}
.animar-izq.visible, .animar-der.visible {
  opacity: 1;
  transform: translateX(0);
}

/* =========================================
   7. FRANJA CALL TO ACTION (CTA) CON PARALLAX
   ========================================= */
.franja-cta {
  /* Reemplaza bg-franja.jpg por una imagen de tu elección (ej. textura metálica, mina, etc.) */
  background: linear-gradient(rgba(152, 5, 19, 0.85), rgba(99, 1, 10, 0.9)), url('../img/banner2.jpg');
  background-attachment: fixed; /* Esto crea el efecto Parallax */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 80px 0; /* Altura de la franja */
  color: #ffffff;
  text-align: center;
  border-top: 5px solid var(--amarillo-zibi);
  border-bottom: 5px solid var(--amarillo-zibi);
}

.franja-cta h2 {
  font-weight: 700;
  font-size: 1.8rem;
  letter-spacing: 1px;
}

.franja-cta .resaltado-amarillo {
  color: var(--amarillo-zibi);
}

/* =========================================
   8. SECCIÓN NUESTROS CLIENTES
   ========================================= */
.seccion-clientes {
  background-color: #ffffff;
}
.cliente-logo {
  padding: 20px;
  text-align: center;
  border: 1px solid #eeeeee; /* Un borde gris muy sutil para separar */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 120px; /* Altura fija para que todos los cuadros midan igual */
  display: flex;
  align-items: center;
  justify-content: center;
}
.cliente-logo:hover {
  transform: scale(1.05); /* El logo crece un 5% al pasar el mouse */
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  border-color: var(--amarillo-zibi); /* El borde se pinta de amarillo al hacer hover */
}
.cliente-logo img {
  max-width: 100%;
  max-height: 80px; /* Para que ningún logo se desproporcione */
  filter: grayscale(100%); /* (OPCIONAL) Los hace grises y elegantes */
  transition: filter 0.3s ease;
}
.cliente-logo:hover img {
  filter: grayscale(0%); /* Al pasar el mouse, recuperan su color original */
}

/* =========================================
   9. FOOTER (PIE DE PÁGINA)
   ========================================= */
.footer-zibi {
  background-color: #f4f4f4;
  border-top: 1px solid #e5e5e5;
}
.footer-top {
  padding-top: 60px;
  padding-bottom: 40px;
}
.footer-title {
  color: var(--rojo-vino);
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}
/* Pequeña línea amarilla debajo de los títulos del footer */
.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background-color: var(--amarillo-zibi);
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  color: #555555;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}
.footer-links a:hover {
  color: var(--rojo-intenso);
  padding-left: 5px; /* Pequeño efecto de desplazamiento al pasar el mouse */
}
.footer-contact li {
  color: #555555;
  font-size: 0.9rem;
  margin-bottom: 15px;
  display: flex;
}
.footer-contact i {
  color: var(--amarillo-zibi);
  font-size: 1.1rem;
  margin-right: 12px;
  margin-top: 3px;
}
/* Barra inferior sólida */
.footer-bottom {
  background-color: var(--amarillo-zibi);
  color: #333333;
  padding: 15px 0;
}

html {
  scroll-behavior: smooth;
}

/* =========================================
   ESTILO PREMIUM PARA TÍTULOS Y CONTENIDO (NOSOTROS)
   ========================================= */
.kicker-zibi {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--amarillo-zibi);
  background: rgba(255, 193, 7, 0.12);
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 10px;
}

.titulo-nosotros-pro {
  color: #ffffff;
  font-weight: 800;
  font-size: 2rem;
  margin-bottom: 12px;
}

.titulo-nosotros-pro span {
  color: var(--amarillo-zibi);
}

.linea-titulo-izq {
  width: 65px;
  height: 4px;
  background: linear-gradient(90deg, var(--amarillo-zibi), var(--rojo-intenso));
  border-radius: 2px;
  margin-bottom: 28px;
}

/* Tarjetas Dark Glass para Calidad, Seguridad y Puntualidad */
.pilar-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--amarillo-zibi);
  border-radius: 8px;
  padding: 16px 18px;
  transition: all 0.3s ease;
}

.pilar-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 193, 7, 0.35);
  border-left-color: var(--amarillo-zibi);
  transform: translateX(8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.icono-box {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 10px;
  background: rgba(255, 193, 7, 0.15);
  border: 1px solid rgba(255, 193, 7, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amarillo-zibi);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.pilar-card:hover .icono-box {
  background: var(--amarillo-zibi);
  color: #16181d;
  transform: scale(1.1);
}

/* Texto de Quiénes Somos con acento lateral */
.texto-nosotros-pro {
  border-left: 3px solid rgba(255, 193, 7, 0.6);
  padding-left: 16px;
  color: #d1d5db;
  line-height: 1.75;
  font-size: 0.96rem;
}

/* Botón estilizado para LEER MÁS */
.btn-leer-mas {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: 2px solid var(--amarillo-zibi);
  color: var(--amarillo-zibi);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn-leer-mas:hover {
  background-color: var(--amarillo-zibi);
  color: #16181d;
  box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
}

.hero-box h1,
.hero-box h2 {
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 15px;
}

/* Ajuste para que en celulares no se vea demasiado grande */
@media (max-width: 768px) {
  .hero-box h1,
  .hero-box h2 {
    font-size: 1.8rem;
  }
}