:root {
  --color-principal: #800000;     /* Rojo oscuro */
  --color-secundario: #990000;    /* Rojo intermedio */
  --color-destacado: #cc0000;     /* Rojo más claro */
  --color-accion: #dd3333;        /* Botones, hover */
  --color-accion-hover: #2E3D4F;  /* Hover oscuro */
  --color-fondo-suave: #fff5f5;   /* Fondo claro */
  --color-texto: #800000;         /* Texto principal */
  --color-blanco: #ffffff;
  --color-oscuro: #2c3e50;
  --color-gris: #7f8c8d;
  --color-gris-claro: #ecf0f1;
  --color-exito: #27ae60;
  --color-info: #3498db;
  --color-advertencia: #f39c12;
  --sombra: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transicion: all 0.3s ease-in-out;
  --borde-redondeado: 8px;
}


/*                 */
/* Reset PARA TODO */
/*     BASICO      */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

/* Tipografía mejorada */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--color-oscuro);
  overflow-x: hidden;
  background-color: #fff;
}

/* Ensure primary font is used everywhere by inheritance */
button, input, select, textarea, .btn, a, p, li, label {
  font-family: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--color-principal);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }

p {
  margin-bottom: 1.5rem;
  color: var(--color-oscuro);
}

a {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--color-accion);
  text-decoration: none;
  transition: var(--transicion);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utilidades */
.text-center {
  text-align: center;
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 20px 0;
}
.text-white { color: var(--color-blanco); }
.bg-principal { background-color: var(--color-principal); }
.bg-secundario { background-color: var(--color-secundario); }
.bg-destacado { background-color: var(--color-destacado); }
.bg-blanco { background-color: var(--color-blanco); }

/* Botones */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transicion);
  border: none;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-accion);
  border-radius: 50px;
  z-index: -2;
}

.btn:before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: var(--color-accion-hover);
  transition: var(--transicion);
  border-radius: 50px;
  z-index: -1;
}

.btn:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn:hover:before {
  width: 100%;
}

.btn-primary {
  background-color: var(--color-accion);
  color: white;
}

.btn-primary:hover {
  background-color: var(--color-accion-hover);
  color: white;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--color-blanco);
  color: var(--color-blanco);
}

.btn-outline:hover {
  background-color: var(--color-blanco);
  color: var(--color-blanco);
}

.btn-small {
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
}

/* Animaciones */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

/* Animación del footer */

.footer-col-animate {
  opacity: 0; /* oculto inicialmente */
}

.footer-col-animate.fade-up {
  animation: fadeUp 0.8s ease-out forwards;
}

/* Animaciones CTA */
@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.cta-animate {
  opacity: 0; /* Oculto inicialmente */
}

.cta-animate.fade-slide-up {
  animation: fadeSlideUp 0.8s ease-out forwards;
}


.fade-in {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.slide-in-left {
  opacity: 0;
  animation: slideInLeft 0.6s ease-out forwards;
}

.slide-in-right {
  opacity: 0;
  animation: slideInRight 0.6s ease-out forwards;
}

@keyframes fadeScaleUp {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.testimonio-animate {
  opacity: 0; /* Oculto inicialmente */
}

.testimonio-animate.fade-scale-up {
  animation: fadeScaleUp 0.8s ease-out forwards;
}

.btn-animate {
  opacity: 0;
}

.btn-animate.pop-up {
  animation: fadeScaleUp 0.8s ease-out forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }


.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;   /* 👈 asegúrate de poner esto */
  left: 0;
  background: white;
  list-style: none;
  padding: 10px 0;
  margin: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border-radius: 6px;
  min-width: 180px;
  z-index: 1000;
}

.nav-item.dropdown {
  position: relative;
}

.nav-item:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li a {
  display: block;
  padding: 8px 15px;
  text-decoration: none;
  color: #333;
}

.dropdown-menu li a:hover {
  background: #f5f5f5;
  text-decoration: none;
}

.dropdown-menu li a::before {
  content: none !important;
}

.nav-item .dropdown-icon {
  margin-left: 6px;
  font-size: 0.7rem;
  transition: transform 0.3s;
}

.nav-item:hover .dropdown-icon {
  transform: rotate(180deg); /* gira la flechita al pasar el mouse */
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  height: 90vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-oscuro);
}

.hero-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.carousel-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

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

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 10s ease-in-out;
}

.carousel-item.active .hero-image {
  transform: scale(1.1);
}

.carousel-caption {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  padding: 0 20px;
  animation: fadeInUp 1s ease-out;
}

.carousel-caption h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.carousel-caption p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transicion);
  backdrop-filter: blur(5px);
}

.carousel-control:hover {
  background: var(--color-accion);
  transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev {
  left: 20px;
}

.carousel-control.next {
  right: 20px;
}

/* About Section */
.about-section {
  padding: 80px 0;
  background-color: #fff;
  display: flex;               /* centra el contenedor interno */
  justify-content: center;     /* centra horizontal */
  align-items: center;         /* centra verticalmente el bloque */
}


/* Animations for about section */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Estilos para las animaciones de productos destacados - Versión optimizada */
.featured-products .section-header {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease-out, 
              transform 0.4s ease-out;
  will-change: transform;
}

.featured-products .product-card {
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.3s ease-out, 
              box-shadow 0.3s ease-out;
  will-change: transform;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
}

/* Efecto hover más fluido */
.product-card {
  transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1), 
              box-shadow 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
              filter 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
  backface-visibility: hidden;
  will-change: transform, box-shadow, filter;
  background-color: white;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  filter: drop-shadow(0 15px 20px rgba(0, 0, 0, 0.12));
}

/* Animaciones para la sección about - Se activan vía JavaScript */
.about-text h2 {
  text-align: left;
  opacity: 0;
  transform: translateX(-30px);
}

.about-text p {
  opacity: 0;
  transform: translateY(20px);
  margin-bottom: 0.6rem;
}

.about-text .features-list li {
  opacity: 0;
  transform: translateX(20px);
}

.about-btn {
  opacity: 0;
  transform: scale(0.9);
  display: inline-block;
}

.about-image-container {
  opacity: 1;                /* visible por defecto */
  transform: none;           /* evita corrimiento a la derecha */
}

.about-content {
  display: flex;
  position: relative;
  justify-content: space-between; /* reparte columnas internas */
  align-items: center;
  width: 100%;
  max-width: 1300px;
  padding: 0 20px; /* espacio igual a ambos lados */
  box-sizing: border-box;
  gap: 50px;
}



/* Igualar columnas y evitar desbordes que empujen a la derecha */
.about-content .about-text,
.about-content .about-image-container {
  min-width: 0;
}

/* Centrar imagen y hacerla responsive */
.about-image-container {
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-image-container img,
.about-image img,
.about-image .featured-image {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Evitar desplazamientos iniciales por transform que generan desbalance visual */
.about-section .about-text h2,
.about-section .about-text p,
.about-section .about-text .features-list li,
.about-section .about-btn {
  flex: initial;
  transform: none !important;
  opacity: 1 !important;
}

/* Asegura que los hijos no tengan desplazamientos horizontales por defecto */
.about-content .about-text,
.about-content .about-image-container {
  transform: none !important;
}

.about-text {   /* cada columna ocupa la mitad */
  padding: 10px;
  box-sizing: border-box;
  max-width: 600px; /* si quieres limitar texto */
}


.about-text h2 {
  font-size: 2.2rem;
  margin-bottom: 1;
  color: var(--color-principal);
  position: relative;
  padding-bottom: 1rem;
}

.about-text h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--color-destacado);
}

.about-section .about-text p{
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 1.6rem;
  color: black;
  text-align: justify;
}

.features-list {
  list-style: none;
  margin: 2.5rem 0 3rem 0; /* Aumentado margen superior a 2.5rem */
  padding: 0;
}

.features-list li {
  margin-bottom: 1.5rem;
  padding-left: 45px;
  position: relative;
  font-size: 1.05rem;
  color: var(--color-oscuro);
  display: flex;
  align-items: center;
}

.features-list li::before {
  content: "\f058"; /* Unicode del fa-check-circle */
  font-family: "Font Awesome 6 Free";
  font-weight: 900; /* para solid */
  position: absolute;
  left: 0;
  top: -2px;
  color: var(--color-destacado);
  font-size: 1.4rem;
}

.features-list i {
  margin-right: 10px;
  color: var(--color-accion);
  font-size: 1.4rem;
}


.about-image-container {
  flex: 0 0 50%;
  max-width: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-image {
  width: 100%;
  position: relative;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.about-image-link {
  display: block;
  text-decoration: none;
  color: white;
}

.about-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.featured-image {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 0;
  object-fit: cover;
  transition: all 0.5s ease;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 0;
}

.about-image:hover .image-overlay {
  opacity: 1;
}

.overlay-text {
  font-size: 1.2rem;
  font-weight: 500;
  text-align: center;
  padding: 15px 25px;
  background: var(--color-destacado);
  border-radius: 5px;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.about-image:hover .overlay-text {
  transform: translateY(0);
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Video Container - Enhanced for Visibility */
.about-video-container {
  flex: 1;
  min-width: 0;
  width: 100%;
  max-width: 400px; /* Aumentado el ancho máximo */
  margin: 0;
  position: relative;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 9/16;
  height: auto;
}

.about-video-container:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.9);
}

.video-wrapper {
  position: relative;
  width: 100%;
  margin: 0 auto; /* Centrar el video */
  padding-bottom: 177.78%; /* 9:16 Aspect Ratio for Shorts */
  height: 0;
  overflow: visible; /* Cambiado a visible para que se vean los controles */
  border-radius: 0;
  background: #000;
  margin: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  margin: 0 auto;
  padding: 0;
  background: #000;
}



/* Responsive adjustments */
@media (max-width: 1200px) {
  .about-content {
    padding: 0 2rem;
  }
  
  .about-video-container {
    max-width: 550px;
  }
}

@media (max-width: 992px) {
  .about-content {
    flex-direction: column;
    align-items: center;
    padding: 0 2rem;
  }
  
  .about-text {
    width: 100%;
    max-width: 800px;
    text-align: center;
    padding: 0 1rem;
  }
  
  .about-video-container {
    width: 100%;
    max-width: 550px;
    margin: 2rem auto 0;
  }
}

@media (max-width: 768px) {
  .about-content {
    padding: 0 1.5rem;
  }
  
  .about-video-container {
    margin-top: 0;
    margin-bottom: -50px;
  }
}

@media (max-width: 480px) {
  .about-video-container {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
  }
  
  .video-wrapper {
    padding-bottom: 177.78%; /* Maintain 9:16 aspect ratio */
  }
}

.about-btn {
  display: block;
  width: auto;
  min-width: 260px;
  max-width: 340px;
  text-align: center;
  margin-right: auto;
  padding: 10px 25px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 100px; /* más grande para que el borde siga la curva */
  transition: all 0.3s ease;
  background-color: var(--color-oscuro);
  color: white;
  border: 2px;
  box-sizing: border-box; /* asegura que el borde se incluya en el cálculo */
}

.about-btn:hover {
  background-color: var(--color-oscuro);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 992px) {
  .about-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 30px;
  }
  
  .about-text {
    max-width: 100%;
    margin-bottom: 40px;
  }
  
  .about-text h2::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .features-list {
    text-align: left;
  }
  
  .about-image-container {
    max-width: 100%;
  }
  
  .about-btn {
    max-width: 100%;
  }
}

/* Featured Products */
.featured-products {
  margin: 0;
  margin-bottom: -50px;
  padding: 100px 0;
  background-color: var(--color-fondo-suave);
  max-width: 2120px;
}

.section-header {
  text-align: center;
  max-width: 800px;
  width: 100%;
  margin: 0 auto 4rem; /* esto lo centra */
  padding: 0 20px;
  display: block;
}

.section-header h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  color: var(--color-principal);
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--color-accion);
}

.section-header p {
  font-size: 1.2rem;
  color: var(--color-gris);
  margin-top: 1rem;
  max-width: 700px; /* keep paragraphs readable */
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 425px)); /* columnas 300–400px */
  justify-content: center;
  text-align: center;
  gap: 20px; /* espaciado entre tarjetas */
  max-width: 1500px; /* constrain inner content */
  width: 100%;
  margin: 0 auto 3rem;
  padding: 0 20px;
}

/* Contenedor principal del footer */
.footer-col {
  flex: 1;
  min-width: 200px;
  margin-bottom: 2rem;
  padding: 0 15px;
  overflow: hidden;
  transition: var(--transicion);
  position: relative;
}

.footer-brand .redes-sociales-container h5{
  color: #fff;
  font-size: 1rem;
  margin: 0 0 1rem 0;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
}

/* Contenedor de sedes */
.sedes-container {
  flex: 2; /* Ocupa más espacio que las otras columnas */
  min-width: 300px;
}

.sedes-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 1rem;
  margin: 0 auto;
}

.map-container {
  width: 100%;
}

iframe {
  width: 100%;
}

.video-reference {
  margin-top: 1rem;
  transition: all 0.3s ease;
  background-color: #B51922;
  padding: 10px 15px;
  border-radius: 5px;
}

.video-reference:hover {
  transform: translateY(-3px);
}

.video-reference a {
  font-weight: 500;
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 5s ease;
}

.video-reference a:hover {
  transform: translateY(-3px);
}
/* Estilos para cada sede */
.sede {
  flex: 1;
  min-width: 250px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1rem;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
}

.sede:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.sede h5 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
}

.sede-info p {
  color: #e0e0e0;
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.telefono a {
  color: #fff;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.9rem;
}

.telefono a:hover {
  color: #B51922;
}

/* Columna de horario */
.horario-col {
  min-width: 220px;
  display: flex;
  flex-direction: column;
}

/* Contenedor de horario personalizado */
.horario-container {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  margin-top: 0.5rem;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  flex-direction: column;
}

.horario-container:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.horario-icon {
  background: rgba(181, 25, 34, 0.2);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.horario-icon i {
  font-size: 1.5rem;
  color: #B51922;
}

.horario-info h5 {
  color: #fff;
  font-size: 1rem;
  margin: 0 0 1rem 0;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
}

.horario-sede {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.sede-nombre {
  color: #e0e0e0;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}

.sede-horario {
  font-weight: 500;
  background: rgba(181, 25, 34, 0.2);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
  white-space: nowrap;
}

@media (max-width: 992px) {
  .horario-col {
    order: 3;
    max-width: 100%;
    margin-top: 1rem;
  }
  
  .horario-container {
    flex-direction: row;
    text-align: left;
    padding: 1.2rem;
    height: auto;
  }
  
  .horario-icon {
    margin-right: 1rem;
    margin-bottom: 0;
  }
}

@media (max-width: 992px) {
  .horario-col {
    order: 3;
    max-width: 100%;
    margin-top: 1rem;
  }
  
  .horario-container {
    padding: 1rem;
  }
  
  .horario-sede {
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .horario-col {
    margin-top: 0;
  }
  
  .horario-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
  }
  
  .horario-info {
    margin-left: 0;
    margin-top: 1rem;
    width: 100%;
  }
  
  .horario-sede {
    justify-content: center;
    text-align: center;
    gap: 0.5rem;
  }
  
  .sede-horario {
    margin: 0 auto;
  }
  
  .horario-container {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }
  
  .horario-icon {
    margin: 0 auto 1rem;
  }
  
  .horario-info h5 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  
  .horario-info p {
    font-size: 0.85rem;
  }
}

/* Estilos responsivos */
@media (max-width: 1200px) {
  .sedes-wrapper {
    flex-direction: column;
  }
  
  .sede {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .footer{
    padding: 70px 20px 30px !important;
  }

  .footer-col {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0;
  }

  .footer-container{
    gap: 40px !important;
  }

  .sedes-container {
    order: 1; /* Mover las sedes arriba en móviles */
  }
  
  .sede {
    padding: 0.8rem;
  }
  
  .sede h5 {
    font-size: 0.95rem;
  }
  
  .sede-info p {
    font-size: 0.8rem;
  }
}

@media (min-width: 1201px) {
  .sede {
    flex: 1;
    min-width: 250px;
  }

}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-image {
  position: relative;
  overflow: hidden;
  height: 400px;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 0;
}

.product-card:hover .product-overlay{
  opacity: 1;
}

.product-card .btn-small {
  color: white;
}

.product-info {
  padding: 25px;
  background-color: rgb(243, 243, 243);
}

.product-card:hover .product-info {
  background-color: rgb(255, 255, 255);
}

.product-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  color: var(--color-principal);
}

.product-info p {
  color: var(--color-gris);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}


.btn-link {
  display: inline-flex;
  align-items: center;
  color: var(--color-accion);
  font-weight: 600;
  transition: var(--transicion);
}

.btn-link i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.btn-link:hover {
  color: var(--color-accion-hover);
}

.btn-link:hover i {
  transform: translateX(5px);
}

/* Why Choose Us */
/* Sección principal */
.why-choose-us {
  margin-top: 0;
  position: relative;
  padding: 80px 0;
  min-height: 800px;
  text-align: center;
  max-width: 100%;
  
  background-image: url('../../media/img/Inicio/fondo-original.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Capa negra encima del fondo */
.why-choose-us::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* negro con 50% de opacidad */
  z-index: 1;
}

/* Para que el contenido esté encima de la capa negra */
.why-choose-us > * {
  position: relative;
  z-index: 2;
}


.why-choose-us .section-header {
  max-width: 100%;
  text-align: center;

  /* padding arriba */
  padding-top: 60px; /* ajusta el valor a tu gusto */
}

.why-choose-us .section-header h2 {
  font-size: 2.5rem;
  color: var(--color-blanco);
  text-shadow:
    1px 1px 1px #000,
    3px 3px 3px #000,
    4px 5px 6px rgba(0, 0, 0, 0.6);
}

.why-choose-us .section-header p {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-blanco);
  text-shadow:
  1px 1px 1px #000,
  3px 3px 3px #000,
  3px 3px 4px rgba(0, 0, 0, 0.6);
}

.features-grid {
  display: inline-grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  width: 90%;           /* ocupa más espacio horizontal */
  max-width: 1400px;    /* opcional, evita que sea demasiado grande */
}


/* En pantallas grandes (ej: desktops grandes) -> 4 columnas */
@media (min-width: 1200px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}


.feature {
  text-align: center;
  padding: 40px 25px;
  border-radius: var(--borde-redondeado);
  background: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 1;
}

.feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--color-destacado);
  transition: var(--transicion);
  z-index: -1;
}

.feature:hover {
  transform: translateY(-10px) scale(1.02); /* ahora sí se agranda */
  box-shadow: 
    0 15px 30px rgba(0, 0, 0, 0.1),
    0 8px 15px rgba(0, 0, 0, 0.3);
}

.feature:hover::before {
  height: 100%;
  opacity: 0.1;
}

.feature, .feature * {
  overflow: visible !important;
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: rgba(255, 51, 0, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--color-destacado);
  transition: var(--transicion);
}

.feature:hover .feature-icon {
  background: var(--color-oscuro);
  color: white;
  transform: rotateY(180deg);
}

.feature h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-principal);
}

.feature p {
  color: black;
  line-height: 1.6;
}

/* CTA Section */
.cta-section {
  padding: 100px 20px;
  background: linear-gradient(135deg, var(--color-destacado), var(--color-oscuro));
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
  max-width: 100%;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
  z-index: 1;
  max-width: 100%;
}

.cta-content {
  position: relative;
  z-index: 2;
  width: 800px;
  max-width: 100%;
  margin: 0 auto;
}

.cta-content h2 {
  max-width: 100%;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: white;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.cta-content p {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* =====================================================
   Overrides: Carousel buttons to match Acoples styles
   Scope: only buttons inside the hero carousel caption
   ===================================================== */
.hero-background .carousel-caption {
  position: absolute !important;
  top: 62%;
  left: 50% !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
  width: 100% !important;
  max-width: 1200px !important;
  padding: 0 20px !important; /* elimina padding-left asimétrico */
  text-align: center !important;
  pointer-events: auto !important; /* habilita interacción */
}
.hero-background .carousel-caption h1,
.hero-background .carousel-caption h2 {
  margin-bottom: 1.75rem !important;
  font-size: clamp(1.5rem, 5vw, 3rem) !important;
  line-height: 1.2 !important;
  color: #ffffff !important;
  text-shadow: 2px 2px 4px rgba(126, 93, 93, 0.5) !important;
}
.hero-background .carousel-caption p {
  margin-top: 0.75rem !important;
  margin-bottom: 2rem !important;
  font-size: 1.5rem !important; /* Acoples hero paragraph size */
  font-weight: 500 !important;
  color: #ffffff !important;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5) !important;
}

/* Responsive adjustments for caption typography (keep Acoples feel) */

/* Media Queries */
@media (max-width: 1500px) {
  .hero-background .carousel-caption h1 {font-size: 2.8rem !important;}
  .hero-background .carousel-caption h2 { font-size: 2.8rem !important; }
  .hero-background .carousel-caption p { font-size: 1.2rem !important; }
}

@media (max-width: 992px) {
  .hero-background .carousel-caption h1 {font-size: 2.6rem !important;}
  .hero-background .carousel-caption h2 { font-size: 2.6rem !important; }
  .hero-background .carousel-caption p { font-size: 1.2rem !important; }
}

@media (max-width: 768px) {
  .hero-background .carousel-caption h1 {font-size: 2.2rem !important;}
  .hero-background .carousel-caption h2 { font-size: 2.2rem !important; }
  .hero-background .carousel-caption p { font-size: 1.1rem !important; }
}

@media (max-width: 576px) {
  .hero-background .carousel-caption h1 {font-size: 1.8rem !important;}
  .hero-background .carousel-caption h2 { font-size: 1.8rem !important; }
  .hero-background .carousel-caption p { font-size: 1rem !important; }
}
.hero-background .carousel-caption .button-container,
.hero-background .carousel-caption .button-container .btn,
.hero-background .carousel-caption .button-container a {
  pointer-events: auto !important; /* el contenedor caption tiene pointer-events:none */
}
.hero-background .carousel-caption .button-container {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 28px !important; /* más separación izquierda-derecha */
  column-gap: 28px !important; /* refuerza espacio horizontal al romper línea */
  flex-wrap: wrap !important;
  margin-top: 1.5rem !important;
  row-gap: 16px !important; /* más espacio vertical si se quiebran en dos líneas */
}
.hero-background .carousel-caption .button-container a,
.hero-background .carousel-caption .button-container button {
  display: inline-flex !important;
}
.hero-background .carousel-caption .button-container .btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 48px !important;
  padding: 0.8rem 2rem !important;
  border-radius: 8px !important; /* similar a var(--radio-borde) en acoples */
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.3s ease-in-out !important; /* var(--transicion-rapida) equivalente */
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  font-size: 1rem !important;
  line-height: 1.2 !important;
  text-align: center !important;
  vertical-align: middle !important;
  position: relative !important;
  overflow: visible !important; /* desactivar efectos de recorte */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important; /* var(--sombra-boton) de acoples */
}

/* Efecto hover genérico (levantado + sombra), igual que Acoples */
.hero-background .carousel-caption .button-container .btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Presionado: regresa y reduce sombra */
.hero-background .carousel-caption .button-container .btn:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Desactiva los pseudo-elementos globales del .btn para estos botones */
.hero-background .carousel-caption .button-container .btn::before,
.hero-background .carousel-caption .button-container .btn::after {
  content: none !important;
}

.hero-background .carousel-caption .button-container .btn.btn-primary {
  background-color: #B51922 !important; /* Rojo corporativo */
  color: #ffffff !important;
  border: none !important;
}

.hero-background .carousel-caption .button-container .btn.btn-primary:hover {
  background-color: #8B1419 !important; /* Rojo corporativo oscuro */
  transform: translateY(-3px) !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
}

/* Ajusta btn-secondary para que luzca como el outline blanco de acoples */
.hero-background .carousel-caption .button-container .btn.btn-secondary {
  background-color: rgba(0, 0, 0, 0.3) !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
}

.hero-background .carousel-caption .button-container .btn.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
}

/* Scroll Down indicator (matching Acoples) */
.hero-background .scroll-down {
  position: absolute;
  bottom: 28px; /* similar a var(--espaciado-lg) */
  left: 0;
  right: 0;
  color: #ffffff;
  font-size: 0.9rem;
  z-index: 3;
  text-align: center;
  opacity: 0.85;
  transition: all 0.3s ease;
  pointer-events: auto; /* habilita clic como en Acoples */
}

.hero-background .scroll-down span {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.hero-background .scroll-down svg {
  margin: 0 auto;
  display: block;
  animation: bounce 2s infinite;
}

/* Asegura que el enlace herede color y sea clickeable */
.hero-background .scroll-down a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
}

.hero-background .scroll-down:hover {
  opacity: 1;
  transform: translateY(-5px);
}

#main-content {
  scroll-margin-top: 80px; /* se detendrá 80px antes */
}


@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
  60% { transform: translateY(-3px); }
}

/* Responsive Design */
@media (max-width: 992px) {
  .about-content {
    flex-direction: column;
    text-align: center;
  }
  
  .about-text h2::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .carousel-caption h1 {
    font-size: 2.8rem;
  }
  
  .carousel-caption p {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {

  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .hero {
    height: 80vh;
    min-height: 500px;
  }
  
  .carousel-caption h1 {
    font-size: 2.2rem;
  }
  
  .carousel-caption p {
    text-align: center;
    font-size: 1.1rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-content h2 {
    font-size: 2.2rem;
  }
  
  .cta-content p {
    font-size: 1.1rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 576px) {
  .carousel-caption h1 {
    font-size: 1.8rem;
  }
  
  .carousel-caption p {
    font-size: 1rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .about-text h2 {
    font-size: 2rem;
  }
  
  .feature h3 {
    font-size: 1.3rem;
  }
  
  .feature p {
    font-size: 0.95rem;
  }
}

/* Animaciones al hacer scroll */
[data-aos] {
  opacity: 0;
  transition-property: opacity, transform;
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translate(0, 0);
}

[data-aos="fade-up"] {
  transform: translateY(50px);
}

[data-aos="fade-down"] {
  transform: translateY(-50px);
}

[data-aos="fade-right"] {
  transform: translateX(-50px);
}

[data-aos="fade-left"] {
  transform: translateX(50px);
}

/* WhatsApp Float Button */

html, body {
  height: 100%;
  width: 100%;
}

/* Main content container constraints */
.main-content {
  width: 100%;
}


/* Hero Background with Carousel */
.hero-background {
  position: relative;
  width: 100%;
  height: 106vh;
  opacity: 0;
  animation: fadeIn 1s ease-out forwards 0.3s;
  overflow: hidden;
  margin-top: -52px; /* Pull up further to align with bottom of contact bar */
  padding-top: -50px; /* Push content down to compensate */
  z-index: 1; /* Below nav, above contact bar */
}

.hero-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
  overflow: hidden;
}

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

.carousel-slide .slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,0));
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: transform 15s linear;
  will-change: transform;
  z-index: 1;
  background-blend-mode: darken;
}

.video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Hace que el video cubra todo el div */
  z-index: 1; /* Envía el video al fondo */
}

.carousel-slide .slide-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2; /* encima de la imagen */
  background: linear-gradient(
  to bottom,
  rgba(0,0,0,0.9) 0%,   /* negro casi sólido justo arriba */
  rgba(0,0,0,0.8) 12%,
  rgba(0,0,0,0.6) 22%,  /* todavía oscuro en un tramo corto */
  rgba(0,0,0,0.5) 25%,  /* empieza a desvanecerse */
  rgba(0,0,0,0.2) 40%,
  rgba(0,0,0,0.4) 58%,
  rgba(0,0,0,0.4) 67%,
  rgba(0,0,0,0.4) 70%,
  rgba(0,0,0,0.0) 80%,
  rgba(0,0,0,0.4) 95%,     /* ya transparente */
  rgba(0,0,0,0.4) 100%     /* ya transparente */
  );
}

.carousel-slide.active .slide-bg {
  animation: zoomIn 12s linear forwards;
}

/* Suppress only the first entry animation of slide background */
.hero-background .hero-carousel.suppress-entry-anim .carousel-slide.active .slide-bg {
  animation: none !important;
}

@keyframes zoomIn {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

.carousel-caption {
  position: absolute;
  bottom: 5%;
  left: 3%;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  max-width: 35%;
  padding: 25px 25px 25px 80px;
  background-color: none;
  border-radius: 30px;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.8s ease-out;
  z-index: 3; /* Ensure captions are above the zooming image */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  pointer-events: none; /* Make sure clicks go through to the slide */
}

@media (max-width: 1500px){
  .carousel-caption {
    bottom: auto;
    top: 45%;
    left: 5%;
    padding: 15px;
    text-align: left;
  }
}

@media (max-width: 1010px) {
  .carousel-caption {
    bottom: auto;                /* anula el "bottom: 25%" */
    top: 45%;                    /* lo llevamos al medio */
    left: 12%;                   /* centramos horizontal */
    max-width: 90%;              /* más ancho que en PC */
    padding: 15px;               /* menos padding para móviles */
    text-align: center;          /* centramos el contenido */
  }
  .carousel-caption .button-container {
    display: flex;
    justify-content: center; /* centra horizontal */
    margin-top: 1rem;        /* espacio arriba si lo necesitas */
  }
}


@media (max-width: 970px) {
  .carousel-caption {
    bottom: auto;                /* anula el "bottom: 25%" */
    top: 45%;                    /* lo llevamos al medio */
    left: 11%;                   /* centramos horizontal */
    max-width: 90%;              /* más ancho que en PC */
    padding: 15px;               /* menos padding para móviles */
    text-align: center;          /* centramos el contenido */
  }
  .carousel-caption .button-container {
    display: flex;
    justify-content: center; /* centra horizontal */
    margin-top: 1rem;        /* espacio arriba si lo necesitas */
  }
}

@media (max-width: 880px) {
  .carousel-caption {
    bottom: auto;                /* anula el "bottom: 25%" */
    top: 45%;                    /* lo llevamos al medio */
    left: 5%;                   /* centramos horizontal */
    max-width: 90%;              /* más ancho que en PC */
    padding: 15px;               /* menos padding para móviles */
    text-align: center;          /* centramos el contenido */
  }
  .carousel-caption .button-container {
    display: flex;
    justify-content: center; /* centra horizontal */
    margin-top: 1rem;        /* espacio arriba si lo necesitas */
  }
}

@media (max-width: 576px) {
  .carousel-caption {
    bottom: auto;                /* anula el "bottom: 25%" */
    top: 55% !important;                    /* lo llevamos al medio */
    left: 5%;                   /* centramos horizontal */
    max-width: 90%;              /* más ancho que en PC */
    padding: 15px;               /* menos padding para móviles */
    text-align: center;          /* centramos el contenido */
  }
  
  .carousel-caption .button-container {
    display: flex;
    justify-content: center; /* centra horizontal */
    margin-top: 1rem;        /* espacio arriba si lo necesitas */
  }

  .carousel-caption h1 {
    font-size: 1.6rem;
  }

  .carousel-caption p {
    font-size: 1rem;
  }
  
  .carousel-caption h1,
  .carousel-caption p {
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
  }
}

.carousel-caption h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: white;
  font-weight: 800;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}

.carousel-caption p {
  font-size: 1.2rem;
  margin: 0 0 20px 0;
  color: white;
  font-weight: 400;
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 1);
}

.carousel-caption .button-container {
  display: flex;
  gap: 15px;
  margin-top: 15px;
  pointer-events: auto;
}

.carousel-caption .btn {
  padding: 10px 25px;
  border-radius: 1%;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.carousel-caption .btn-primary {
  border-radius: 4px;
  background-color: var(--color-accion);
  color: white;
  padding: 8px 16px;
}

.carousel-caption .btn-secondary {
  background-color: var(--color-accion);
  color: white;
  border-radius: 4px; /* Ajusta el valor según qué tan redondeado lo quieras */
  padding: 8px 16px;  /* opcional: mejora el espacio dentro del botón */
}

.carousel-caption .btn-primary:hover {
  border-radius: 30px;
  color: whitesmoke;
  background-color: var(--color-accion-hover);
}

.carousel-caption .btn-secondary:hover {
  border-radius: 30px;
  color: whitesmoke;
  background-color: var(--color-accion-hover);
}


.carousel-slide.active .carousel-caption {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 0.5s;
}

/* Reset main content styles */
.main-content {
  position: relative;
  z-index: 10;
  margin-bottom: -75px;
}

/* Remove any extra padding/margin that might affect layout */
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Contenedor de fondo plomo para la barra de contacto */
.contenedor-barra-contacto {
  background-color: transparent;
  width: 100%;
  padding: 43px 0;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards 0.2s;
  position: fixed;
  z-index: 999;
  top: 0;
  transition: background-color 0.3s ease;
}

.contenedor-barra-contacto.scrolled {
  background-color: rgba(38, 54, 70, 0.9);
}

@keyframes fadeIn {
  0% {
  opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Contenedor de fondo blanco para el nav */
.contenedor-nav {
  background: transparent;
  left: 0;
  width: 95%; /* Hacemos el contenedor más ancho */
  margin: 0 auto; /* Centra el contenedor */
  border-radius: 0; /* Sin bordes redondeados, rectángulo normal */
  box-shadow: transparent; /* Sombra sutil */
  padding: 3px 0; /* Reducimos aún más el padding vertical */
  position: fixed;
  z-index: 1000; 
  top: 25px;
  margin-top: 50px; /* Lo movemos hacia arriba para que se superponga */

  left: 0;
  right: 0;
  transition: background-color 0.4s ease;
}

.contenedor-nav.scrolled {
  background: white; /* al hacer scroll */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}
/* Barra de contacto arriba */
.barra-contacto {
  color: white;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1rem;
  text-shadow: 2px 2px 1px rgba(0, 0, 0, 0.7);
  width: 100%;
  background-color: transparent; /* Ahora es transparente porque el contenedor padre tiene el fondo */
  backdrop-filter: none; /* Removemos el blur ya que no es necesario */
  -webkit-backdrop-filter: none;
  margin-top: 0px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.contacto-izquierda {
  display: flex;
  gap: 30px;
  margin-left: 80px;
  margin-top: -20px;
}

.contacto-item {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(-10px);
  animation: fadeIn 0.6s ease-out forwards;
}

.contacto-item i {
  font-size: 1.1rem;
}

.contacto-item span {
  margin: 0;
  text-align: left;
  color: white;
  text-shadow: 2px 2px 1px rgba(0, 0, 0, 0.7);
}

.contacto-derecha {
  display: flex;
  align-items: center;
  gap: 30px; /* Aumentamos el espaciado entre elementos */
  margin-right: 80px; /* Aumentamos el espaciando desde la derecha */
  margin-top: -20px; /* Movemos un poco más arriba */
}

.redes-sociales {
  display: flex;
  gap: 25px;
}

.red-social {
  color: white;
  font-size: 1.5rem;
  text-decoration: none;
  transition: color 0.3s ease;
  opacity: 0;
  transform: translateY(-10px);
  animation: fadeIn 0.6s ease-out forwards 0.2s;
}

.red-social:hover {
  color: #B51922; /* Color especificado por el usuario */
}

.btn-cotizar {
  background-color: #B51922; /* Color especificado por el usuario */
  color: white;
  text-decoration: none;
  padding: 6px 16px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1.1rem; /* Hacemos un poco más grande */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Mismo font que la barra de contacto */
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.3s ease;
  opacity: 0;
  transform: translateY(-10px);
  animation: fadeIn 0.4s ease-out forwards 0.4s;
}

.btn-cotizar:hover {
  background-color: #8B1419; /* Color similar pero más oscuro para el hover */
}

.btn-cotizar i {
  font-size: 1rem;
}

/* Navegación */
nav {
  display: flex;
  align-items: center;
  padding: 2px 40px; /* Reducimos aún más el padding vertical */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin-top: 0; /* Removemos el margin-top negativo */
  justify-content: space-between;
  flex-wrap: wrap;
  background-color: transparent; /* El nav es transparente, el contenedor padre tiene el fondo blanco */
  margin-bottom: 1px;
}

/* CAMBIO DE TAMAÑO DE IMAGEN */
nav a img {
  height: 60px; /* Reducimos significativamente la altura */
  width: 220px; /* Aumentamos un poco más el ancho */
  margin-right: 20px;
  opacity: 0;
  transform: translateX(-10px);
  animation: fadeIn 0.6s ease-out forwards;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin-left: 0; /* para que no se superponga con la imagen */
  padding: 0;
  background-color: transparent; /* Ahora es transparente */
  border-radius: 8px;
  padding: 5px 25px; /* Reducimos aún más el padding vertical */
}

/* Estilos para los enlaces de navegación */
.nav-item {
  position: relative;
}

.nav-link {
  display: inline-block;
  padding: 2px 12px;
  color: white; /* color inicial */
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
  position: relative;
}

nav.scrolled .nav-link {
  color: var(--color-texto); /* color al hacer scroll */
}

.nav-link:hover {
  color: white;
}

/* Estado después del scroll */
nav.scrolled .nav-link:hover {
  color: var(--color-destacado);
}

/* Iconos de navegación */
.nav-icon {
  font-size: 14px;
  color: var(--color-accion-hover);
  opacity: 0;
  position: absolute;
  top: -10px; /* Posición más baja del icono */
  left: 50%;
  transform: translateX(-50%) translateY(100%); /* Inicia dentro del texto */
  transition: all 0.3s ease;
}


.nav-link:hover .nav-icon {
  color: white;
  opacity: 1;
  transform: translateX(-50%) translateY(-25%);
}

/* Estado después del scroll */
nav.scrolled .nav-link:hover .nav-icon {
  color: var(--color-destacado);
}

.nav-link span {
  display: block;
  margin-top: 0;
  position: relative;
  z-index: 1; /* Para que el texto esté por encima del icono */
}

nav ul li {
  opacity: 0;
  transform: translateY(5px);
}

nav ul li:nth-child(1) { animation: slideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards 0.1s; }
nav ul li:nth-child(2) { animation: slideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards 0.2s; }
nav ul li:nth-child(3) { animation: slideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards 0.3s; }
nav ul li:nth-child(4) { animation: slideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards 0.4s; }
nav ul li:nth-child(5) { animation: slideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards 0.5s; }
nav ul li:nth-child(6) { animation: slideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards 0.6s; }
nav ul li:nth-child(7) { animation: slideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards 0.7s; }

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

nav ul li a {
  color: #2F353A; /* Color especificado por el usuario */
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem; /* Hacemos un poco más pequeño */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Mismo font que la barra de contacto */
  padding: 4px 12px; /* Reducimos el padding vertical de los enlaces */
  border-radius: 4px;
  transition: color 0.3s ease; /* Transición suave para el color */
  text-shadow: none; /* Removemos la sombra ya que no es necesaria en fondo blanco */
  position: relative; /* Para el pseudo-elemento */
}

nav ul li a::before {
  content: '';
  position: absolute;
  top: -22px; /* Línea más pegada al tope del contenedor nav */
  left: 0;
  width: 0;
  height: 3px;
  background-color: transparent; /* al inicio transparente */
  transition: width 0.3s ease, background-color 0.3s ease;
}

nav.scrolled ul li a::before {
  background-color: #B51922; /* al hacer scroll toma el color */
}

nav ul li a:hover::before,
nav ul li a.active::before {
  width: 100%; /* La línea se extiende del ancho de la palabra */
}

nav ul li a.active {
  color: white;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* Estado después del scroll */
nav.scrolled ul li a.active {
  color: #B51922;
  text-shadow: none;
}

nav ul li a:hover {
  color: #B51922; /* Color principal especificado */
}

/* Header (Hero) */
header {
  text-align: center;
  padding: 40px 20px 60px 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  gap: 8px;
  margin-top: 50px; /* Reducimos el margen ya que el nav ya no se superpone */
}

header h1 {
  font-size: 4rem;
  color: var(--color-principal);
  margin-bottom: 10px;
  font-weight: bold;
}

header p {
  font-size: 2.5rem;
  color: var(--color-destacado);
  margin-bottom: 30px;
}

header h1,
header p {
  position: relative;
  display: block;
  color: white;
  z-index: 1;
  display: block;
  margin: 0 auto 8px; /* margen abajo para separación */
  width: fit-content; /* para que el texto no ocupe todo el ancho */
}

header h1::before,
header p::before {
  content: "";
  position: absolute;
  top: 64%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 106%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  filter: blur(10px);
  z-index: -1;
  border-radius: 20px;
}

header img {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 64, 128, 0.3);
}

.fondo-principal {
  display: flex;
  flex-direction: column;
  margin-top: 0;
}

/* Y en las 3 secciones internas, fondo transparente para que se vea la imagen */
.barra-contacto,
nav,
header {
  background-color: transparent !important;
  color: white; /* para que el texto resalte */
  position: relative; /* si usas overlays o sombras */
  z-index: 1;
}

/* Secciones */
section {
  max-width: 1800px;
  margin: 40px auto;
  padding: 0 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--color-principal);
  line-height: 1.6;
}

section h2 {
  font-size: 2rem;
  border-bottom: 3px solid --color-accion;
  padding-bottom: 6px;
  margin-bottom: 20px;
  font-weight: 700;
}

section p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

/* Productos destacados */
section > div {
  display: inline-block;
  width: 28%;
  margin-right: 2%;
  vertical-align: top;
  text-align: center;
}

section > div:last-child {
  margin-right: 0;
}

section > div img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
}

section > div img:hover {
  transform: scale(1.05);
}

section > div p {
  margin-top: 10px;
  font-weight: 600;
  font-size: 1rem;
}

/* Beneficios lista */
section ul {
  list-style: none;
  padding-left: 0;
  font-size: 1.1rem;
  color: var(--color-destacado);
}

section ul li {
  margin-bottom: 10px;
  font-weight: 600;
  position: relative;
  padding-left: 25px;
}

section ul li::before {
  content: "✔";
  color: var(--color-accion);
  position: absolute;
  left: 0;
  top: 0;
}

/* Llamado a la acción (botones) */
section a {
  text-decoration: none;
  margin-right: 15px;
}

section button {
  background-color: var(--color-accion);
  color: white;
  border: none;
  padding: 14px 28px;
  font-size: 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  transition: background-color 0.3s ease;
}

section button:hover {
  background-color: var(--color-accion-hover);
}

/* ESTILOS DE INICIO ¿QUIENES SOMOS? */
section.quienes-somos {
  width: 1200px;  /* más ancho que 900px */
  margin: 40px auto;
  padding: 0 30px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--color-principal);
  line-height: 1.7;
  position: relative;
}

/* Contenedor que separa texto del botón */
section.quienes-somos {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 30px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--color-principal);
  line-height: 1.7;
}

.contenedor-quienes {
  position: relative;
  padding-top: 20px;
}

.contenedor-quienes p {
  text-align: left;
  max-width: 1200px;
  width: 850px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.6;
}


/* Botón arriba a la derecha */
.btn-ir-nosotros {
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--color-principal);
  color: white;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.3s ease;
}

.btn-ir-nosotros:hover {
  background-color: #333;
}


/* ESTILOS DE LAS IMAGENES DE ¿QUIENES SOMOS? */
.carrusel-container {
  position: relative;
  max-width: 1200px;
  width: 100%;
  margin: 40px auto;
  overflow: hidden;
  height: 500px; /* fija la altura para que no colapse */
}

.carrusel {
  display: flex;
  gap: 15px;
  transition: transform 0.5s ease-in-out;
  /* Ancho dinámico, se ajusta con JS */
}

.carrusel img {
  width: 300px; /* ancho fijo para 3 imágenes visibles en 900px */
  height: 500px;
  object-fit: cover;
  flex-shrink: 0; /* evita que se reduzcan */
  transition: transform 0.5s ease; /* para zoom al hover */
  cursor: pointer;
}

/* Para que la última imagen no tenga margen extra */
.carrusel img:last-child {
  margin-right: 0;
}

/* Zoom suave al pasar el mouse */
.carrusel img:hover {
  transform: scale(1.05);
}

/* Botones de navegación */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 0 10px;
  cursor: pointer;
  z-index: 2;
  border-radius: 5px;
  user-select: none;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

.testimonios {
  background-color: var(--color-fondo-suave);
  padding: 60px 0;
  text-align: center;
  color: var(--color-texto);
  max-width: 100%;
}

.testimonios h2 {
  font-size: 2.5rem;
  margin-bottom: 80px; /* antes era 40px */
  color: var(--color-principal);
}

/* GRID centrado */
.testimonios .testimonios-grid {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;              /* más espacio entre las tarjetas */
  max-width: 1650px;      /* límite del ancho del grid */
  margin: 0 auto;         /* centra el grid */
  width: 100%;            /* asegura que ocupe todo hasta el máximo */
}

.testimonio {
  background-color: var(--color-blanco);
  padding: 150px 20px 25px; /* más padding arriba porque la foto ocupará ese espacio */
  border-radius: var(--borde-redondeado);
  box-shadow: var(--sombra);
  transition: var(--transicion);
  text-align: center;
  position: relative; /* necesario para que la foto se posicione respecto a la tarjeta */
}

.testimonio:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.foto-wrapper {
  position: absolute;
  top: -45px;
  left: 50%;
  transform: translateX(-50%);
}

/* foto circular */
.foto-cliente {
  width: 185px;
  height: 185px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-principal);
  box-shadow: var(--sombra);
  transition: transform 0.3s ease; /* animación suave */
}

/* efecto hover: solo escala, sin mover */
.foto-cliente:hover {
  transform: scale(1.1);
}

.testimonio p {
  font-style: italic;
  font-size: 1.2rem;
  color: var(--color-oscuro);
  margin-bottom: 12px;
}

.testimonio h4 {
  font-size: 1rem;
  color: var(--color-gris);
}

/* BOTÓN CENTRADO */
.ver-mas {
  padding: 30px 20px 0px 20px;
  margin-top: 20px;
  text-align: center; /* fuerza el botón al centro */
}

.btn-ver-mas {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transicion);
  border: none;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-ver-mas:hover {
  background-color: var(--color-accion-hover);
  transform: scale(1.06); /* agranda un poco */
  box-shadow: 0 8px 18px rgba(0,0,0,0.25); /* sombra más intensa */
}

/* Responsive: tablets = 2 columnas, móviles = 1 */
@media (max-width: 1500px) {
  .testimonios h2 {
    margin-bottom: 30px;
  }

  .testimonios .testimonios-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    padding: 50px;
  }
  .ver-mas {
    margin-top: -5px;
    padding: 20px 20px 0px 20px;
    width: 310px;
  }
}

@media (max-width: 1200px) {
  .testimonios .testimonios-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    padding: 40px;
  }
  .ver-mas {
    margin-top: -5px;
    padding: 20px 20px 0px 20px;
    width: 300px;
  }
}

@media (max-width: 800px) {
  .testimonios .testimonios-grid {
    grid-template-columns: 1fr;
    padding: 60px;
  }
}

@media (max-width: 500px) {
  .testimonios h2 {
    margin-bottom: 60px;
  }

  .testimonios .testimonios-grid {
    grid-template-columns: 1fr;
    padding: 10px;
  }
}



/* ===== FOOTER CORPORATIVO ===== */
.footer {
  background: var(--color-oscuro); /* Rojo vino degradado más elegante */
  color: #f5f5f5;
  padding: 70px 50px 30px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin-top: 80px;
  font-size: 0.95rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 60px;
  max-width: 1600px;
  margin: auto;
}

.footer-logo {
  background-color: #fff;     /* Fondo blanco */
  padding: 6px 10px;          /* Espacio alrededor */
  border-radius: 8px;         /* Opcional: esquinas redondeadas */
  display: inline-block;
}

.footer-logo-box {
  width: 180px;     /* Caja fija */
  height: 100px;     /* Caja fija */
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff; /* opcional si quieres fondo blanco */
  border-radius: 6px;
  overflow: hidden;
}

.footer-logo-box img {
  max-height: 160%;  /* o auto */
  max-width: 160%;
  object-fit: contain;
}
.footer-logo {
  height: 200%;     /* El logo crece dentro de la caja */
  width: auto;
  object-fit: contain;
}

.footer h4 {
  color: #FFFFFF;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  display: inline-block;
  padding-bottom: 6px;
}

.footer p {
  font-size: 15px;
  line-height: 1.8;
  margin: 0;
  color: #e4e4e4;
}

.footer a {
  font-size: 15px;
  color: #f1f1f1;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 10px;
  transition: color 0.3s ease, transform 0.2s ease;
}

.footer a:hover {
  color: white; /* Dorado elegante */
  font-weight: 700;
  transform: translateX(5px);
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer ul li {
  margin: 12px 0;
}

.social-links {
  margin-top: 15px;
}

.social-links a {
  display: inline-flex;        /* para centrar el ícono */
  justify-content: center;
  align-items: center;
  margin-right: 15px;
  font-size: 20px;             /* tamaño del ícono */
  color: #BC1922; 
  background: rgb(255, 255, 255); /* fondo circular suave */
  width: 40px;
  height: 40px;
  border-radius: 50%;          /* círculo */
  transition: background 0.3s ease, transform 0.2s ease;
}

.social-links a:hover {
  background: #fff;       /* círculo blanco en hover */
  color: #BC1922;         /* el vino para contraste */
  transform: scale(1.15);
}

.footer-bottom {
  text-align: center;
  margin-top: 60px;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 25px;
  font-size: 14px;
  color: #bbb;
  letter-spacing: 0.5px;
}


/* Responsive para móviles */
@media (max-width: 768px) {
  nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  section > div {
    width: 100%;
    margin-bottom: 25px;
  }

  header h1 {
    font-size: 2.2rem;
  }

  header p {
    font-size: 1rem;
  }
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-50px);
  animation: fadeInLeft 1s ease forwards;
}

.fade-in-right {
  opacity: 0;
  transform: translateX(50px);
  animation: fadeInRight 1s ease forwards;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(50px);
  animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounceUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  60% {
    opacity: 1;
    transform: translateY(-10px);
  }
  80% {
    opacity: 1;
    transform: translateY(5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.bounce-up {
  animation: bounceUp 1.5s ease forwards; 
}


.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 30px;
  z-index: 999;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float .whatsapp-text {
  position: absolute;
  right: 70px;
  background-color: #128C7E;
  padding: 8px 15px;
  border-radius: 30px;
  font-size: 14px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.3s ease;
  pointer-events: none;
  color: white;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  letter-spacing: 0.3px;
}

.whatsapp-float:hover {
  background-color: #128C7E;
  color: white;
  scale: 1.1;
}

/* Client Logos Section */
.client-logos-section {
  padding: 4rem 0;
  background-color: var(--color-blanco);
  overflow: hidden;
  max-width: 100%;
  height: 480px;
}

/* Logo items animation */
@keyframes slideInLogos {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.logo-item {
  flex-shrink: 0;
  width: 130px !important;
  height: 100px !important;
  opacity: 1;
  transition: transform 0.3s ease, filter 0.3s ease;
  will-change: transform, filter;
  animation: slideInLogos 0.6s ease-out forwards;
}

/* Stagger the animation for each logo */
.logo-item:nth-child(1) { animation-delay: 0.1s; }
.logo-item:nth-child(2) { animation-delay: 0.2s; }
.logo-item:nth-child(3) { animation-delay: 0.3s; }
.logo-item:nth-child(4) { animation-delay: 0.4s; }
.logo-item:nth-child(5) { animation-delay: 0.5s; }
.logo-item:nth-child(6) { animation-delay: 0.6s; }
.logo-item:nth-child(7) { animation-delay: 0.7s; }
.logo-item:nth-child(8) { animation-delay: 0.8s; }
.logo-item:nth-child(9) { animation-delay: 0.9s; }
.logo-item:nth-child(10) { animation-delay: 1.0s; }

.client-logos-section .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.client-logos-section h2 {
  color: var(--color-principal);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

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

.client-logos-section p {
  color: var(--color-gris);
  font-size: 1.2rem;
  line-height: 1.7;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.logo-carousel {
  width: 100%;
  position: relative;
  padding: 1.5rem 0;
  overflow: hidden;
  /* Ensure the container doesn't cause layout shifts */
  min-height: 150px;
  display: flex;
  align-items: center;
}

.logo-track {
  display: flex;
  align-items: center;
  gap: 4rem;                 /* espacio entre logos */
  width: max-content;        /* ancho dinámico según el contenido */
  animation: scroll 28s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
}

.logo-item {
  flex-shrink: 0;
  width: 200px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: grayscale(100%) opacity(0.7);
  contain: layout style paint;
}

.logo-item img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
  aspect-ratio: auto;
}

.logo-item:hover {
  transform: scale(1.1);
  filter: grayscale(0%) opacity(1);
}

.logo-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo-carousel:hover .logo-track {
  animation-play-state: paused;
}

@keyframes scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* porque tienes dos sets duplicados */
}

/* Responsive Design */
@media (max-width: 1200px) {
  .logo-item {
    width: 200px;
    height: 130px;
  }
  
  .logo-track {
    gap: 3rem;
  }
}

@media (max-width: 992px) {
  .logo-item {
    width: 180px;
    height: 120px;
  }
  
  .client-logos-section h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .logo-item {
    width: 160px;
    height: 110px;
  }
  
  .client-logos-section {
    padding: 3rem 0;
  }
  
  .client-logos-section h2 {
    font-size: 2rem;
  }
  
  .logo-track {
    gap: 2.5rem;
  }
}

@media (max-width: 576px) {
  .logo-item {
    width: 160px;
    height: 110px;
  }
  
  .logo-track {
    gap: 2rem;
  }
  
  .client-logos-section h2 {
    font-size: 1.8rem;
  }
  
  .client-logos-section p {
    font-size: 1rem;
    padding: 0 1rem;
  }
}

.whatsapp-float:hover .whatsapp-text {
  opacity: 1;
  transform: translateX(0);
  right: 75px;
}

nav ul li {
  opacity: 0;
  transform: translateY(5px);
}
nav ul li:nth-child(1) { animation: slideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards 0.1s; }
nav ul li:nth-child(2) { animation: slideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards 0.2s; }
nav ul li:nth-child(3) { animation: slideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards 0.3s; }
nav ul li:nth-child(4) { animation: slideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards 0.4s; }
nav ul li:nth-child(5) { animation: slideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards 0.5s; }

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

@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 1; transform: translateY(0); }
}

.redes-sociales {
  display: flex;
  gap: 25px;
}


.red-social {
  color: white;
  font-size: 1.5rem;
  text-decoration: none;
  transition: color 0.3s ease;
  opacity: 0;
  transform: translateY(-10px);
  animation: fadeIn 0.6s ease-out forwards 0.2s;
}
  /* Menú en desktop */
  .nav-menu {
    display: flex;
    gap: 1.5rem;
  }

  .nav-menu.active .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }

  .dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px); /* un poquito más abajo */
    transition: all 0.3s ease;
    display: block; /* 👈 mantenemos block para que se pueda animar */
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-radius: 6px;
    min-width: 180px;
    z-index: 1000;
    pointer-events: none; /* evita clics mientras está oculto */
  }
  
  .nav-item.dropdown {
    position: relative;
  }

  .nav-item:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  nav ul li::before, nav ul li ul .dropdown-menu::before {
    display: none;
    content: none; /* aseguras que no genere nada */
  }

  .dropdown-menu li a {
    display: block;
    padding: 8px 15px;
    text-decoration: none;
    color: #333;
  }
  

  .dropdown-menu li a:hover {
    background: #f5f5f5;
    text-decoration: none;
  }

  .dropdown-menu li a::before {
    content: none !important;
  }

  .nav-item .dropdown-icon {
    margin-left: 6px;
    font-size: 0.7rem;
    transition: transform 0.3s;
  }

  .nav-item:hover .dropdown-icon {
    transform: rotate(180deg); /* gira la flechita al pasar el mouse */
  }
    
  /* Hamburguesa oculta en desktop */
  .menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--color-fondo-suave);
    cursor: pointer;
  }

  .scrolled .menu-toggle {
    color: var(--color-oscuro);
  }
  
  /* --- Responsive --- */
  @media (max-width: 1327px) {
  
    /* Botón hamburguesa visible */
    .menu-toggle {
      display: block;
    }
  
    /* ==== Menú hamburguesa oculto por defecto ==== */
    .nav-menu {
      position: absolute;
      top: 70px;
      right: 0;
      background: white;
      flex-direction: column;
      gap: 1rem;
      padding: 1rem;
      border-radius: 8px;
      box-shadow: 0 8px 20px rgba(0,0,0,0.15);
      display: none; /* Oculto al inicio */
      z-index: 999;
    }
  
    /* Cuando se abre con JS */
    .nav-menu.active {
      display: flex;
    }
  
    /* ==== SOLO los que NO son always-visible van dentro del menú ==== */
    .nav-item:not(.always-visible) {
      display: none;
    }
  
    /* Cuando el menú está activo, aparecen SOLO los que no son always-visible */
    .nav-menu.active .nav-item:not(.always-visible) {
      display: block;
    }
  
    /* ==== Mantener siempre visibles los always-visible fuera del toggle ==== */
    .always-visible {
      display: block !important;
      position: relative;
      z-index: 1000; /* Asegura que estén encima si hay superposición */
    }
  
    /* ===== Dropdown dentro de responsive ===== */
    .dropdown-menu {
      display: block;
      position: static;
      box-shadow: none;
      padding-left: 1rem;
    }
  
    nav ul li::before,
    nav ul li a::before {
      display: none;
      content: none;
    }
  }

  @media (max-width: 992px) ,
  (max-width: 1010px){

    .contenedor-nav nav {
        display: flex;
        justify-content: space-between; /* Logo a la izq, menú/hamburguesa a la der */
        align-items: center;
        padding: 0 20px;
      }

    .menu-toggle {
        display: block;
      }
    
      /* Menú oculto por defecto */
      .nav-menu {
        position: absolute;
        top: 70px;     /* debajo del nav */
        right: 0;
        background: white;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        border-radius: 8px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    
        display: none; /* oculto */
      }
    
      /* Cuando se abre (ej: con JS añades la clase "active") */
      .nav-menu.active {
        display: flex;
      }

      .nav-item {
        position: relative;
      }
    
      .dropdown-menu {
        display: block;
        position: static;
        top: 100%;
        left: 0;
        background: white;
        min-width: 200px;
        border-radius: 6px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.15);
        z-index: 1;
      }

      nav ul li a.active {
        color: var(--color-accion);
        transition: color 0.3s ease, text-shadow 0.3s ease;
      }

      .nav-link:hover {
        color: var(--color-accion);
      }

      .nav-link:hover .nav-icon {
        color: var(--color-accion);
        opacity: 1;
        transform: translateX(-50%) translateY(-25%);
      }

      .nav-item > a {
        color: var(--color-texto);
        display: inline-block;   /* o block si quieres que ocupe toda la fila */
        position: relative;
        z-index: 2;  /* asegúrate de que quede encima del dropdown */
      }
    
      .nav-item:hover > .dropdown-menu {
        display: block;
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
      }
    }
    @media (max-width: 992px) ,
    (max-width: 1010px){
        .dropdown-menu {
            display: block;       /* siempre visible */
            position: static;     /* que ya no sea absoluto */
            box-shadow: none;
            padding-left: 1rem;
          }
      
        .nav-item.open > .dropdown-menu {
          display: block; /* se abre al hacer click */
        }

        nav ul li::before, nav ul li a::before {
            display: none;
            content: none; /* aseguras que no genere nada */
          }
      }

      @media (max-width: 992px) {
        .contenedor-barra-contacto .contacto-derecha .btn-cotizar {
            margin-left: auto !important;
          }

        .contenedor-barra-contacto {
            padding: 35px 0; /* aún más compacto en pantallas chicas */
          }

        /* Ocultar correo y teléfono */
        .contacto-izquierda {
            display: none; /* ocultar correo/teléfono */
          }
        
          .contacto-derecha {
            display: flex;
            margin-right: 0 !important;
            justify-content: space-between; /* redes a la izq, botón a la der */
            align-items: center;
            width: 100%;
            padding: 0;
          }
        
          /* Redes sociales a la izquierda */
          .contacto-derecha .redes-sociales {
            order: 1;
            margin-left: 15px; /* pegadas a la izq */
          }
        
          /* Botón cotizar a la derecha */
          .contacto-derecha .btn-cotizar {
            order: 2;
            margin-right: 15px;
        }
      }

      @media (max-width: 360px) {
        .contenedor-barra-contacto .contacto-derecha .btn-cotizar {
            margin-left: auto !important;
          }

        .contenedor-barra-contacto {
            padding: 35px 0; /* aún más compacto en pantallas chicas */
          }

        /* Ocultar correo y teléfono */
        .contacto-izquierda {
            display: none; /* ocultar correo/teléfono */
          }
        
          .contacto-derecha {
            display: flex;
            margin-right: 0 !important;
            justify-content: space-between; /* redes a la izq, botón a la der */
            align-items: center;
            width: 100%;
            padding: 0;
          }
        
          /* Redes sociales a la izquierda */
          .contacto-derecha .redes-sociales {
            order: 1;
            margin-left: 5px; /* pegadas a la izq */
          }
        
          /* Botón cotizar a la derecha */
          .contacto-derecha .btn-cotizar {
            order: 2;
            margin-right: 5px;
        }
      }
  
  a.correo-link {
  color: inherit; 
  text-decoration: none;  
  font-weight: 500;
  cursor: pointer;
}

a[href^="tel:"] {
  color: inherit;          
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
}