/* --- VARIABLES Y ESTILOS BASE --- */
:root {
  --font-principal: 'Poppins', Arial, sans-serif;
  --color-primario: #ffe100; /* Amarillo Zvuk */
  --color-fondo: #ffffff;
  --color-texto: #1a1a1a;
  --color-gris: #555;
  --color-negro: #000000;
  --color-dark: #1c1c1c;
  --radio-borde: 18px;
  --sombra-suave: 0 4px 15px rgba(0,0,0,0.1);
  --sombra-media: 0 8px 24px rgba(0,0,0,0.15);
}

/* Importar fuente de Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap');

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

body {
  font-family: var(--font-principal);
  background-color: var(--color-fondo);
  color: var(--color-texto);
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100%;
  padding-bottom: 80px; /* Espacio para el footer fijo */
}

h1, h2, h3 {
  margin-bottom: 1em;
  font-weight: 700;
}

.logo {
  height: 55px;
  width: 55px;
  object-fit: contain;
  margin-bottom: 32px;
}
/* --- NAVEGACIÓN LATERAL --- */
.homepageNav {
  position: fixed;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  width: 85px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 10px;
  z-index: 500;
  border-radius: var(--radio-borde);
  box-shadow: var(--sombra-media);
  transition: all 0.3s ease;
}

.homepageNav ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}

.homepageNav li {
  display: flex; 
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
}

.homepageNav li a {
  display: flex; 
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-decoration: none;
  padding: 5px 0;
  border-radius: 8px;
  transition: background 0.3s, transform 0.3s;
}

.homepageNav li a img {
  background-color: var(--color-fondo);
  border-radius: 20px;
  padding: 5px;
  margin-bottom: 4px;
  transition: box-shadow 0.3s, transform 0.3s, background-color 0.3s;
  display: block;
  box-shadow: var(--sombra-suave);
}

.homepageNav li a span {
  display: block;
  color: var(--color-texto);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  margin-top: 2px;
}

.homepageNav li a:hover img {
  transform: scale(1.18);
  box-shadow: var(--sombra-media);
  background: var(--color-primario);
}

.homepageNav li a:hover {
  transform: translateX(8px);
    transition: 6s;
}
.Bienvenida{
  text-align: left;
  padding: 2em 15em 0em 12em;
  border-radius: 0px 0px 12px 12px;
  width: 100%;
  height: auto;
  box-sizing: border-box; 
}
/* --- HERO CAROUSEL PREMIUM --- */
.hero-carousel {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: var(--color-negro);
}

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

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: scale(1.1);
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 1;
}

.slide-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slide-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s ease-out;
}

.carousel-slide.active .slide-background img {
  transform: scale(1.05);
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.8) 100%
  );
  backdrop-filter: blur(1px);
}

.slide-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  z-index: 2;
  padding: 0 5%;
}

.content-wrapper {
  max-width: 800px;
  color: white;
  position: relative;
}

.slide-number {
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--color-primario);
  display: block;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 1s ease 0.2s forwards;
}

.carousel-slide.active .slide-number {
  animation: slideUp 1s ease 0.2s forwards;
}

.text-content {
  position: relative;
}

.slide-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  overflow: hidden;
}

.title-line {
  display: block;
  opacity: 0;
  transform: translateY(100%);
}

.carousel-slide.active .title-line:nth-child(1) {
  animation: slideUp 1s ease 0.4s forwards;
}

.carousel-slide.active .title-line:nth-child(2) {
  animation: slideUp 1s ease 0.6s forwards;
}

.title-line.highlight {
  background: linear-gradient(90deg, var(--color-primario), #ff8a00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.title-line.highlight::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primario), #ff8a00);
  border-radius: 2px;
}

.carousel-slide.active .title-line.highlight::after {
  animation: expandWidth 1s ease 0.8s forwards;
}

.slide-subtitle {
  font-size: 1.3rem;
  font-weight: 500;
  color: #e0e0e0;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
}

.carousel-slide.active .slide-subtitle {
  animation: slideUp 1s ease 0.8s forwards;
}

.slide-description {
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(30px);
}

.carousel-slide.active .slide-description {
  animation: slideUp 1s ease 1s forwards;
}

.slide-description p {
  font-size: 1.1rem;
  color: #b0b0b0;
  line-height: 1.6;
  max-width: 500px;
}

.slide-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(30px);
}

.carousel-slide.active .slide-actions {
  animation: slideUp 1s ease 1.2s forwards;
}

.btn-primary, .btn-secondary {
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primario), #ff8a00);
  color: var(--color-negro);
  box-shadow: 0 8px 25px rgba(255, 225, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(255, 225, 0, 0.4);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.slide-decorations {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.decoration-circle {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  border: 2px solid rgba(255, 225, 0, 0.1);
  border-radius: 50%;
  opacity: 0;
}

.carousel-slide.active .decoration-circle {
  animation: scaleIn 2s ease 0.5s forwards;
}

.decoration-line {
  position: absolute;
  bottom: 20%;
  right: 5%;
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-primario), transparent);
  opacity: 0;
}

.carousel-slide.active .decoration-line {
  animation: slideInRight 1.5s ease 1s forwards;
}

/* Navigation Controls */
.carousel-navigation {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 10;
}

.nav-arrow {
  width: 60px;
  height: 60px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-arrow:hover {
  background: rgba(255, 225, 0, 0.2);
  transform: scale(1.1);
}

.nav-arrow svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Dots Indicator */
.carousel-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border: none;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.dot.active {
  background: var(--color-primario);
  transform: scale(1.2);
}

.dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Progress Bar */
.carousel-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 10;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primario), #ff8a00);
  width: 0;
  transition: width 0.3s ease;
}

/* Animations */
@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes expandWidth {
  to {
    width: 100%;
  }
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
  .hero-carousel {
    height: 80vh;
    min-height: 500px;
  }
  
  .slide-content {
    padding: 0 1rem;
    text-align: center;
    justify-content: center;
  }
  
  .content-wrapper {
    max-width: 100%;
  }
  
  .slide-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  
  .slide-actions {
    justify-content: center;
  }
  
  .btn-primary, .btn-secondary {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
  
  .carousel-navigation {
    padding: 0 1rem;
  }
  
  .nav-arrow {
    width: 50px;
    height: 50px;
  }
  
  .nav-arrow svg {
    width: 20px;
    height: 20px;
  }
}

/* --- CARRUSEL GENÉRICO (si se usa en otras páginas) --- */
.carrusel-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.carrusel {
  position: relative;
  width: 920px;
  height: 520px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.carrusel-item {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  display: none;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.carrusel-item img {
  width: 900px;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radio-borde);
  box-shadow: var(--sombra-suave);
}

.carrusel-item p {
  margin-top: 10px;
  font-size: 1rem;
  color: #333;
}

/* --- SECCIÓN SERVICIOS --- */
.us-services {
  background-color: #ffffff;
  padding: 2em;
  border-radius: var(--radio-borde);
  box-shadow: var(--sombra-suave);
  margin-bottom: 2em;
  width: 100%;
  box-sizing: border-box;
}
.us-services h2 { color: var(--color-primario); margin-bottom: 0.5em; }
.us-services h3 { color: var(--color-texto); margin-bottom: 1em; }
.us-services h4 { color: #3b3b3b; margin-bottom: 1em; }

.service-button {
  background-color: var(--color-negro);
  color: #fff;
  border: none;
  border-radius: 15px;
  padding: 12px 35px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  transition: background 0.5s, transform 0.5s;
  margin: 8px 0;
}

.service-button:hover {
  background-color: #404040;
  transform: translateY(-2px) scale(1.05);
}

.services-list {
  background: #e1e1e1;
  border-radius: var(--radio-borde);
  box-shadow: var(--sombra-suave);
  padding: 24px 20px;
  margin: 18px 0;
  width: 100%;
  box-sizing: border-box;
}

.mapa {
  background: var(--color-negro);
  padding: 40px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}


.mapa-img {
  width: 100%;
  max-width: 500px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: var(--radio-borde);
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  transition: transform 0.4s, box-shadow 0.4s, filter 0.4s;
}

.mapa-img:hover {
  transform: scale(1.07);
  filter: brightness(1.15) drop-shadow(0 0 8px var(--color-negro));
  z-index: 2;
}

.map {
  color: var(--color-texto);
  text-align: center;
}

/* --- FOOTER CREATIVO Y DINÁMICO --- */
footer {
  background: rgba(28, 28, 28, 0.8); /* Fondo semitransparente */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  padding: 1em 0;
  height: 70px;
  display: flex;
  align-items: center;
  position: fixed;
  left: 0;
  bottom: -80px; /* Posición inicial fuera de la pantalla */
  width: 100vw;
  z-index: 999;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  animation: slideUpFooter 1s 0.5s ease-out forwards; /* Animación de entrada */
}

.footer-icons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 25px; /* Añadimos padding a ambos lados */
}

.ftr_text {
  font-size: 1em;
  color: white;
  display: flex;
  align-items: center;
  gap: 10px; /* Espacio entre icono y texto */
}

.footer-social {
  display: flex;
  gap: 18px;
  align-items: center;
}

.footer-icons .logo {
  width: 35px;
  height: 35px;
  display: block;
  object-fit: contain;
  vertical-align: middle;
  margin: 0; 
}

/* Animación de entrada para el footer */
@keyframes slideUpFooter {
  to {
    bottom: 0;
  }
}

/* Estilos y animaciones para los iconos sociales */
.footer-social a {
  transition: transform 0.3s ease;
}

.footer-social a:hover {
  transform: translateY(-5px) scale(1.1);
}

.footer-social .logo {
  transition: all 0.3s ease;
}

.footer-social a:hover .logo {
  filter: none; /* Quitar filtros en hover para que el color de la sombra resalte */
}

/* Sombras de color personalizadas para cada red social */
.footer-social a[href*="facebook.com"]:hover .logo {
  box-shadow: 0 0 15px 3px rgba(24, 119, 242, 0.7);
}
.footer-social a[href*="wa.me"]:hover .logo,
.footer-social a[href*="WhatsApp.com"]:hover .logo {
  box-shadow: 0 0 15px 3px rgba(37, 211, 102, 0.7);
}
.footer-social a[href*="instagram.com"]:hover .logo {
  box-shadow: 0 0 15px 3px rgba(225, 48, 108, 0.7);
}

/* --- CARDS --- */
.soluciones {
  text-align: center;
  padding: 40px;
  background: #ffffff;
  width: 100%;
  box-sizing: border-box;
}

.cards-container {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}

.card {
  position: relative;
  width: 250px;
  border-radius: var(--radio-borde);
  overflow: hidden;
  box-shadow: var(--sombra-suave);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover { 
  transform: translateY(-10px); 
  box-shadow: var(--sombra-media);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.card:hover img {
  transform: scale(1.05);
}

.card-content { padding: 15px; background: var(--color-fondo); }
.card h3 { margin-bottom: 10px; color: var(--color-texto); }
.card p { font-size: 14px; color: var(--color-gris); margin-bottom: 30px; }

.card .btn {
  display: inline-block;
  padding: 15px 15px;
  background: #ffe100; 
  color: black;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s;
}

.card .btn:hover { background: var(--color-negro); color: var(--color-fondo); }

/* --- DROPDOWN PRODUCTOS --- */
.productos-menu {
  display: flex;
  align-items: center;
  position: relative;
  padding: 0;
}

.productos-dropdown {
  display: none;
  position: absolute;
  top: -10px;
  left: 100%;
  transform: translateX(-5px);
  background: transparent;
  backdrop-filter: blur(5px);
  border-radius: var(--radio-borde);
  padding: 15px;
  z-index: 100;
  max-height: 450px;
  overflow-y: auto;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 15px;
  opacity: 0;
  pointer-events: none;
  /* Transición para ocultar el menú con un retraso de 3 segundos */
  transition: opacity 10.3s ease 10s, visibility 10s linear 10.3s;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

/* Para navegadores Webkit (Chrome, Safari, Edge) */
.productos-dropdown::-webkit-scrollbar {
  width: 6px;
  background: transparent;
}
.productos-dropdown::-webkit-scrollbar-thumb {
  background: transparent;
}

.productos-menu:hover .productos-dropdown,
.productos-dropdown:hover {
  display: grid; /* Aseguramos que sea visible */
  grid-template-columns: repeat(2, 1fr); /* Restaurado a 2 columnas */
  opacity: 1;
  pointer-events: auto;
  /* Transición para mostrar el menú inmediatamente, sin retraso */
  transition: opacity 0.3s ease, visibility 0s linear;
}

.producto-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  padding: 10px;
  transition: background-color 0.3s, transform 0.3s;
}

.producto-item:hover {
  transform: scale(1.05);
  background-color: rgba(0,0,0,0.05);
}

.producto-logo {
  width: 45px;
  height: 45px;
  object-fit: contain;
  border-radius: 8px;
  transition: filter 0.3s;
  align-items: center;
}

.producto-item span {
  color: var(--color-texto);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}

/* --- RESPONSIVE GENERAL --- */
@media (max-width: 100% ) {
  .carrusel { width: 100%; height: 350px; }
  .carrusel-item img { width: 100%; height: 320px; }
  .cards-container { gap: 24px; }
  .card { width: 220px; }
}

@media (max-width: 900px) {
  .homepageNav {
    position: static;
    width: 100%;
    height: auto;
    flex-direction: row;
    justify-content: space-around;
    border-radius: 0;
    box-shadow: none;
    background: var(--color-fondo);
    padding: 10px 0;
    transform: none;
    left: 0;
  }
  .carrusel { height: 220px; }
  .carrusel-item img { height: 200px; }
  .cards-container { flex-direction: column; align-items: center; gap: 18px; }
  .card { width: 90vw; max-width: 320px; }
  .us-services, .services-list { width: 95vw; padding: 1em; }
  .Bienvenida-carrusel-img-container,
  .Bienvenida-carrusel-img {
    height: 220px;
  }
  .Bienvenida-carrusel-overlay {
    padding: 16px 8px;
    font-size: 1em;
    width: 95vw;
  }
}

@media (max-width: 600px) {
  .carrusel { height: 140px; }
  .carrusel-item img { height: 120px; }
  .Bienvenida { padding: 2em 1em; height: auto; }
  .HomeTitle, .HomeSubt { font-size: 2em; padding-left: 10vw; }
  .footer-icons { flex-direction: column; gap: 8px; height: auto; }
  .card { width: 98vw; max-width: 350px; }
  .us-services, .services-list { width: 98vw; padding: 0.5em; }
}

/* Elimina espacio a la derecha en la sección history-content */
.history-content {
  width: 100vw;
  max-width: 100vw;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Agrega o ajusta estos media queries al final de tu archivo para mejorar la responsividad sin cambiar el diseño base */

@media (max-width: 900px) {
  .productos-dropdown {
    display: none !important;
  }
  .productos-menu.active .productos-dropdown {
    display: flex !important;
    flex-direction: row !important;
    top: 100%;
    left: 0;
    transform: none;
    width: 100vw;
    background: rgba(255,255,255,0.98);
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border-radius: 0 0 18px 18px;
    padding: 12px;
    overflow-x: auto;
    gap: 18px;
  }
}

/* Footer responsivo */
@media (max-width: 900px) {
  body {
    padding-bottom: 0; /* Eliminar padding si el footer ya no es fijo */
  }
  footer {
    position: static;
    height: auto;
    padding: 1em;
  }
  .footer-icons {
    flex-direction: column;
    gap: 15px;
  }
}

/* Reset básico */

/* Carrusel principal - ancho completo */
.carrusel-us {
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carrusel-ius {
  position: absolute;
  width: 100vw;
  height: 100%;
  left: 0;
  top: 0;
  display: none;
  background-size: cover;
  background-position: center;
  z-index: 1;
}
.carrusel-ius:first-child {
  display: block;
}

.carrusel-ius img {
  width: 100vw;
  height: 600px;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
}

.carrusel-texto {
  position: absolute;
  z-index: 3; 
  width: 100vw;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 8px rgba(58, 58, 58, 0.7);
  font-size: 24px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  padding: 0 30px;
}

.carrusel-titulo,
.carrusel-descripcion {
  text-align: center;
  flex: 2;
  margin: 0;
  padding: 5%;
}

/* Nuevo carrusel horizontal */

.carrusel-horizontal {
  width: 100vw;
  max-width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
  background: #000;
}

.carrusel-horizontal-img-container {
  position: relative;
  width: 100vw;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carrusel-horizontal-img {
  width: 100vw;
  height: 420px;
  object-fit: cover;
  filter: brightness(0.7);
  transition: opacity 0.5s;
}

.carrusel-horizontal-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  width: 80vw;
  background: rgba(71, 71, 71, 0.45);
  padding: 32px 24px;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}

.carrusel-horizontal-text h1 {
  font-size: 2.6em;
  margin-bottom: 0.5em;
  font-weight: bold;
  letter-spacing: 2px;
}

.carrusel-horizontal-text p {
  font-size: 1.25em;
  line-height: 1.5;
}

.carrusel-arrow {
  background: #ffe606d7;
  border: none;
  color: #000000;
  font-size: 2.5em;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  cursor: pointer;
  margin: 0 12px;
  box-shadow: 0 2px 8px rgba(30,136,229,0.12);
  transition: background 0.3s, transform 0.3s;
  z-index: 2;
}

.carrusel-arrow:hover {
  background: #1e88e5;
  color: #fff;
  transform: scale(1.12);
}

@media (max-width: 900px) {
  .carrusel-horizontal-img-container,
  .carrusel-horizontal-img {
    height: 220px;
  }
  .carrusel-horizontal-text {
    padding: 16px 8px;
    font-size: 1em;
    width: 95vw;
  }
  .carrusel-arrow {
    width: 44px;
    height: 44px;
    font-size: 1.5em;
  }
}

/* Info-us detalles */
.info-us details {
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 1em;
  background: #f8f8f8;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: box-shadow 0.3s;
  width: 40%;
}

.info-us details[open] {
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}

.info-us details summary {
  cursor: pointer;
  padding: 1em;
  font-weight: bold;
  outline: none;
  background: #dcd900;
  color: #000;
  border-radius: 8px 8px 0 0;
  transition: background 0.3s;
}
.info-us details summary:hover {
  background: #fff;
  color: #000;
}

.info-us details[open] summary {
  background: #000;
  color: #fff;
}

.info-us details p {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin: 0 1em 1em 1em;
  transition: max-height 0.5s ease, opacity 0.5s ease;
}

.info-us details[open] p {
  max-height: 500px;
  opacity: 1;
  transition: max-height 0.5s ease, opacity 0.5s ease;
}

/* Valores */
.valores {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #ffe606d7;
  padding: 2em 0;
  border-radius: 16px;
  margin: 2em 0;
  text-align: center;
  width: 100%;
}

.valores-list {
  display: flex;
  gap: 2em;
  justify-content: center;
  align-items: center;
  width: 100%;
  filter: brightness(1.4);        
}

.valor-item {
  background: transparent;
  color: #000;
  padding: 1.5em 2em;
  border-radius: 12px;
  text-align: center;
  min-width: 120px;
  transition: 
    transform 0.3s cubic-bezier(.4,0,.2,1),
    filter 0.4s cubic-bezier(.4,0,.2,1);
  filter: brightness(2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.valor-item:hover {
  transform: translateY(-8px) scale(1.07);
  filter: brightness(2.5) contrast(1.2);
}

/* Historia (corregido) */
.history {
  background-color: #f8f8f8;
  padding: 2em;
  border-radius: 8px;
  margin-bottom: 2em;
}

/* Cards info-us */
.info-us-cards {
  display: flex;
  flex-direction: row;      /* Hilera horizontal */
  justify-content: center;
  align-items: stretch;
  gap: 32px;
  margin: 2em auto;
  flex-wrap: nowrap;        /* No se bajan, solo horizontal */
}

.info-us-card {
  flex: 1 1 0;
  min-width: 260px;
  max-width: 320px;
  border-radius: 18px;
  padding: 1.5em 1.2em;
  transition: transform 0.4s cubic-bezier(.4,0,.2,1), box-shadow 0.4s;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
  overflow: hidden;
}

.info-us-card:hover {
  background: #000; /* Fondo negro en hover */
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 20px 56px rgba(0,0,0,0.28);
}

.info-us-card:hover .card-content {
  border-color: #fff; /* Borde blanco en hover */
  box-shadow: 0 8px 32px rgba(0,0,0,0.22);
  background: #000;   /* Fondo negro en el contenido */
  color: #fff;        /* Texto blanco */
}

.info-us-card:hover .card-content h2,
.info-us-card:hover .card-content p {
  color: #fff;        /* Texto blanco en hover */
}

.card-details {
  border: none;
  background: transparent;
  transition: filter 0.4s;
}

.card-details summary {
  cursor: pointer;
  font-weight: bold;
  color: #fff;
  background: rgba(0, 0, 0, 0.85);
  border-radius: 10px;
  padding: 1em 1.5em;
  text-align: left;
  font-size: 1.15em;
  transition: background 0.3s, color 0.3s;
  outline: none;
  letter-spacing: 1px;
}

.card-details[open] summary {
  background: #ffe606d7;
  color: #1e88e5;
  border: 2px solid #1e88e5;
}

.card-details summary:hover {
  background: #ffe606d7;
  color: #000000;
}

.card-content {
  padding: 1em 1.5em;
  animation: fadeInCard 0.7s;
  background: transparent;
  border-radius: 12px 12px 12px 12px;
  box-shadow: transparent;
  margin-top: 0.5em;
  opacity: 1;
  transition: opacity 0.5s, max-height 0.5s;
}

@keyframes fadeInCard {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.card-details:not([open]) .card-content {
  opacity: 0;
  max-height: 0;
  padding: 0 1.5em;
  transition: opacity 0.5s, max-height 0.5s;
  display: none;
}

.card-content h2 {
  color: #1e88e5;
  font-size: 1.2em;
  margin-bottom: 0.6em;
  letter-spacing: 1px;
}

.card-content p {
  color: #222;
  font-size: 1em;
  margin: 0;
  line-height: 1.6;
}

/* Carrusel manual */
.manual-carrusel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-bottom: 24px;
  background: transparent;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(30,136,229,0.10);
  padding: 24px 0;
  position: relative;
}

.carrusel-main-img {
  width: 800px;
  height: 450px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(30,136,229,0.18);
  border: 4px solid #000000;
  transition: box-shadow 0.4s, border-color 0.4s, opacity 0.5s;
  opacity: 1;
}

.carrusel-main-img.fade {
  opacity: 0.3;
}

.carrusel-thumbnails {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
}

.carrusel-thumb {
  width: 110px;
  height: 85px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  opacity: 0.7;
  border: 2.5px solid transparent;
  transition: border 0.3s, opacity 0.3s, transform 0.3s;
  box-shadow: 0 2px 8px rgba(30,136,229,0.08);
}

.carrusel-thumb.selected,
.carrusel-thumb:hover {
  opacity: 1;
  border: 2.5px solid #000000;
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(30,136,229,0.18);
}

@media (max-width: 900px) {
  .info-us-cards {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
}

/* ========= SECCIÓN DE MARCAS ========= */
.marcas {
  text-align: center;
  padding: 50px 0;
  background-color: #f8f9fa;
  overflow: hidden;
}

.marcas-titulo {
  margin-bottom: 40px;
  font-size: 2em;
  color: var(--color-texto);
}

.marcas-slider {
  width: 100%;
  display: flex;
  position: relative;
}

.marcas-slider::before,
.marcas-slider::after {
  content: '';
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
}

.marcas-slider::before {
  left: 0;
  background: linear-gradient(to left, rgba(248, 249, 250, 0), #f8f9fa);
}

.marcas-slider::after {
  right: 0;
  background: linear-gradient(to right, rgba(248, 249, 250, 0), #f8f9fa);
}

.marcas-track {
  display: flex;
  animation: scroll 40s linear infinite;
}

.marca-logo {
  height: 80px;
  width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
}

.marca-logo img {
  max-width: 100%;
  max-height: 50px;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: filter 0.3s, opacity 0.3s;
}

.marca-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========= SECCIÓN DE TESTIMONIOS ========= */
.testimonios {
  padding: 60px 20px;
  text-align: center;
  background-color: var(--color-fondo);
}

.testimonios h1 {
  margin-bottom: 40px;
  font-size: 2em;
}

.testimonios-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.testimonio-card {
  background-color: #fff;
  border-radius: var(--radio-borde);
  box-shadow: var(--sombra-suave);
  padding: 30px;
  max-width: 350px;
  border-top: 4px solid var(--color-primario);
  transition: transform 0.3s, box-shadow 0.3s;
}

.testimonio-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--sombra-media);
}

.testimonio-texto {
  font-style: italic;
  color: var(--color-gris);
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.6;
}

.testimonio-autor {
  font-weight: 700;
  color: var(--color-texto);
}

/* ========= SECCIÓN CALL TO ACTION (CTA) ========= */
.cta {
  background-color: var(--color-dark);
  color: #fff;
  text-align: center;
  padding: 60px 20px;
}

.cta h2 {
  font-size: 2.2em;
  margin-bottom: 15px;
}

.cta p {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

.cta-button {
  background-color: var(--color-primario);
  color: var(--color-texto);
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: transform 0.3s, background-color 0.3s;
  display: inline-block;
}

.cta-button:hover {
  background-color: #fff;
  transform: scale(1.05);
}

/* ========= SECCIÓN PROYECTOS DESTACADOS ========= */
.proyectos-destacados {
  padding: 60px 20px;
  text-align: center;
  background-color: #f8f9fa;
}

.proyectos-titulo {
  font-size: 2.2em;
  margin-bottom: 10px;
}

.proyectos-subtitulo {
  font-size: 1.1em;
  color: var(--color-gris);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.proyectos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.proyecto-card {
  position: relative;
  border-radius: var(--radio-borde);
  overflow: hidden;
  box-shadow: var(--sombra-media);
  height: 400px;
  cursor: pointer;
}

.proyecto-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.proyecto-card:hover img {
  transform: scale(1.1);
}

.proyecto-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
  color: #fff;
  padding: 40px 20px 20px;
  transform: translateY(30%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.proyecto-card:hover .proyecto-overlay {
  transform: translateY(0);
  opacity: 1;
}

.proyecto-overlay h3 {
  font-size: 1.5em;
  margin-bottom: 10px;
}

.proyecto-overlay p {
  font-size: 1em;
  line-height: 1.5;
}

/* ========= SECCIÓN DE MARCAS ========= */
.marcas {
  text-align: center;
  padding: 50px 0;
  background-color: #f8f9fa;
  overflow: hidden;
}

.marcas-titulo {
  margin-bottom: 40px;
  font-size: 2em;
  color: var(--color-texto);
}

.marcas-slider {
  width: 100%;
  display: flex;
  position: relative;
}

.marcas-slider::before,
.marcas-slider::after {
  content: '';
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
}

.marcas-slider::before {
  left: 0;
  background: linear-gradient(to left, rgba(248, 249, 250, 0), #f8f9fa);
}

.marcas-slider::after {
  right: 0;
  background: linear-gradient(to right, rgba(248, 249, 250, 0), #f8f9fa);
}

.marcas-track {
  display: flex;
  animation: scroll 40s linear infinite;
}

.marca-logo {
  height: 80px;
  width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
}

.marca-logo img {
  max-width: 100%;
  max-height: 50px;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: filter 0.3s, opacity 0.3s;
}

.marca-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========= SECCIÓN DE TESTIMONIOS ========= */
.testimonios {
  padding: 60px 20px;
  text-align: center;
  background-color: var(--color-fondo);
}

.testimonios h1 {
  margin-bottom: 40px;
  font-size: 2em;
}

.testimonios-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.testimonio-card {
  background-color: #fff;
  border-radius: var(--radio-borde);
  box-shadow: var(--sombra-suave);
  padding: 30px;
  max-width: 350px;
  border-top: 4px solid var(--color-primario);
  transition: transform 0.3s, box-shadow 0.3s;
}

.testimonio-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--sombra-media);
}

.testimonio-texto {
  font-style: italic;
  color: var(--color-gris);
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.6;
}

.testimonio-autor {
  font-weight: 700;
  color: var(--color-texto);
}

/* ========= SECCIÓN CALL TO ACTION (CTA) ========= */
.cta {
  background-color: var(--color-dark);
  color: #fff;
  text-align: center;
  padding: 60px 20px;
}

.cta h2 {
  font-size: 2.2em;
  margin-bottom: 15px;
}

.cta p {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

.cta-button {
  background-color: var(--color-primario);
  color: var(--color-texto);
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: transform 0.3s, background-color 0.3s;
  display: inline-block;
}

.cta-button:hover {
  background-color: #fff;
  transform: scale(1.05);
}

/* ========= SECCIÓN DE MARCAS ========= */
.marcas {
  text-align: center;
  padding: 50px 0;
  background-color: #f8f9fa;
  overflow: hidden;
}

.marcas-titulo {
  margin-bottom: 40px;
  font-size: 2em;
  color: var(--color-texto);
}

.marcas-slider {
  width: 100%;
  display: flex;
  position: relative;
}

.marcas-slider::before,
.marcas-slider::after {
  content: '';
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
}

.marcas-slider::before {
  left: 0;
  background: linear-gradient(to left, rgba(248, 249, 250, 0), #f8f9fa);
}

.marcas-slider::after {
  right: 0;
  background: linear-gradient(to right, rgba(248, 249, 250, 0), #f8f9fa);
}

.marcas-track {
  display: flex;
  animation: scroll 40s linear infinite;
}

.marca-logo {
  height: 80px;
  width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
}

.marca-logo img {
  max-width: 100%;
  max-height: 50px;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: filter 0.3s, opacity 0.3s;
}

.marca-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========= SECCIÓN DE TESTIMONIOS ========= */
.testimonios {
  padding: 60px 20px;
  text-align: center;
  background-color: var(--color-fondo);
}

.testimonios h1 {
  margin-bottom: 40px;
  font-size: 2em;
}

.testimonios-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.testimonio-card {
  background-color: #fff;
  border-radius: var(--radio-borde);
  box-shadow: var(--sombra-suave);
  padding: 30px;
  max-width: 350px;
  border-top: 4px solid var(--color-primario);
  transition: transform 0.3s, box-shadow 0.3s;
}

.testimonio-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--sombra-media);
}

.testimonio-texto {
  font-style: italic;
  color: var(--color-gris);
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.6;
}

.testimonio-autor {
  font-weight: 700;
  color: var(--color-texto);
}

/* ========= SECCIÓN CALL TO ACTION (CTA) ========= */
.cta {
  background-color: var(--color-dark);
  color: #fff;
  text-align: center;
  padding: 60px 20px;
}

.cta h2 {
  font-size: 2.2em;
  margin-bottom: 15px;
}

.cta p {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

.cta-button {
  background-color: var(--color-primario);
  color: var(--color-texto);
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: transform 0.3s, background-color 0.3s;
  display: inline-block;
}

.cta-button:hover {
  background-color: #fff;
  transform: scale(1.05);
}

/* ========= SECCIÓN DE EQUIPO (Nosotros) ========= */
.equipo {
  padding: 60px 20px;
  background-color: #fff;
}

.equipo h1 {
  text-align: center;
  margin-bottom: 15px;
}

.equipo > center > p {
  text-align: center;
  font-size: 1.1em;
  color: var(--color-gris);
  margin-bottom: 40px;
}

.equipo-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.equipo-card {
  background-color: #f8f9fa;
  border-radius: var(--radio-borde);
  box-shadow: var(--sombra-suave);
  padding: 20px;
  width: 280px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.equipo-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--sombra-media);
}

.equipo-card img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 4px solid #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.equipo-card h3 {
  margin-bottom: 5px;
  font-size: 1.4em;
  color: var(--color-texto);
}

.equipo-card p {
  color: var(--color-primario);
  font-weight: 500;
  font-size: 1em;
}