/* Estilos para la página de Repuestos de Martillos Hidráulicos */
:root {
  --color-primario: #B51922;
  --color-secundario: #2c3e50;
  --color-texto: #333;
  --color-texto-claro: #666;
  --color-fondo: #f9f9f9;
  --color-blanco: #ffffff;
  --sombra: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transicion: all 0.3s ease;
  --color-oscuro: #2c3e50;

  --color-accent: #cc0000;          /* Naranja */
  --color-acento-secundario: #B51922; /* Naranja claro */
  --color-texto: #263238;           /* Gris oscuro para texto */
  --color-texto-secundario: #546e7a; /* Gris medio */
  --color-fondo: #f8f9fa;           /* Fondo gris claro */
  --color-blanco: #ffffff;
  --color-negro: #000000;
  --color-exito: #2e7d32;           /* Verde */
  --color-alerta: #d32f2f;          /* Rojo */
  --color-advertencia: #ffa000;     /* Ámbar */
  --color-info: #0288d1;            /* Azul claro */
  
  /* Sombras */
  --sombra-suave: 0 4px 6px rgba(0, 0, 0, 0.05);
  --sombra-media: 0 8px 15px rgba(0, 0, 0, 0.1);
  --sombra-fuerte: 0 15px 30px rgba(0, 0, 0, 0.15);
  --sombra-boton: 0 4px 8px rgba(0, 0, 0, 0.2);
  
  /* Bordes */
  --radio-borde: 8px;
  --radio-borde-grande: 12px;
  --radio-borde-completo: 9999px;
  
  /* Transiciones */
  --transicion-rapida: all 0.2s ease-in-out;
  --transicion-media: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transicion-lenta: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Espaciados */
  --espaciado-xs: 0.5rem;
  --espaciado-sm: 1rem;
  --espaciado-md: 1.5rem;
  --espaciado-lg: 2rem;
  --espaciado-xl: 3rem;
  --espaciado-xxl: 4rem;
  
}


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

html, body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  height: 100%;
  width: 100%;
}

html {
  scroll-behavior: smooth;
}

/* ============================================
   HERO SECTION (Adaptado al estilo hero-video)
   ============================================ */
.hero-section {
  position: relative;
  height: 95vh !important;
  background-image: url('../../media/img/Productos/Repuestos/IntroRepuestos.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--color-blanco);
  text-align: center;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 var(--espaciado-md);
}

/* Capa oscura encima de la imagen */
.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

/* Contenedor del contenido */
.hero-section .container {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  padding-top: 50px;
}

/* Título principal */
.hero-section h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: var(--espaciado-md);
  line-height: 1.2;
  color: var(--color-blanco);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInDown 1s ease-out;
}

/* Subtítulo */
.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: var(--espaciado-lg);
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out 0.3s both;
}

/* Descripción */
.hero-description {
  font-size: 1.1rem;
  margin-bottom: var(--espaciado-xl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  animation: fadeInUp 1s ease-out 0.5s both;
}

/* Botones */
.hero-buttons {
  display: flex;
  gap: var(--espaciado-md);
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.7s both;
}

/* Reutiliza los estilos .btn, .btn-primary y .btn-outline del otro hero */
.hero-buttons .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 2rem;
  border-radius: var(--radio-borde);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transicion-rapida);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1rem;
}

.hero-buttons .btn-primary {
  background-color: var(--color-accent);
  color: #ffffff !important;
  border: none;
}

.hero-buttons .btn-primary:hover {
  background-color: var(--color-acento-secundario);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

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

#repuesto{
  scroll-margin-top: 150px;
}

#contacto{
  scroll-margin-top: 200px;
}

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

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

/* Responsividad */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.2rem;
  }
  .hero-subtitle {
    font-size: 1.2rem;
  }
}

/* Sección de repuestos */
.repuestos-container {
  padding: 5rem 0;
  margin-bottom: -70px;
}


.repuesto-section {
  background: linear-gradient(rgb(255, 255, 255), rgba(255, 255, 255, 0.5)),url(../../media/img/fondos3.webp);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  margin-bottom: 5rem;
  position: relative;
}

.repuesto-section.bg-light{
  background: linear-gradient(rgb(255, 255, 255), rgba(255, 255, 255, 0.5)),url(../../media/img/fondos2.webp);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  margin-bottom: 5rem;
  position: relative;
}

.repuesto-section.bg-light {
  background-color: #f9fafc;
  padding: 4rem 0;
  border-radius: var(--borde-redondeado);
}

.repuesto-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.repuesto-header h2 {
  font-size: 2.2rem;
  color: var(--color-secundario);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}


.repuesto-header p {
  font-size: 1.2rem;
  color: var(--color-texto-claro);
  max-width: 700px;
  margin: 0 auto;
}

.repuesto-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.repuesto-content.reverse {
  direction: rtl;
}

.repuesto-content.reverse > * {
  direction: ltr;
}

.repuesto-gallery {
  position: relative;
  border-radius: var(--borde-redondeado);
  overflow: hidden;
  box-shadow: var(--sombra);
  background: var(--color-blanco);
  padding: 1.5rem;
}

/* Estilos para la galería de imágenes */
.gallery-main {
  margin-bottom: 1.5rem;
  text-align: center;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 600px;
  height: 500px; /* 🔹 altura fija */
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f9f9f9; /* color de fondo para evitar parpadeo */
}

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

/* Contenedor del carrusel de miniaturas */
.gallery-thumbs-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 30px;
}

.gallery-thumbs {
  position: relative;
  overflow: hidden;
  margin: 0 10px;
}

.thumbs-track {
  display: flex;
  transition: transform 0.3s ease;
  gap: 8px;
  padding: 5px 0;
}

.gallery-thumbs img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.gallery-thumbs img:hover,
.gallery-thumbs img.active {
  border-color: var(--color-primario);
  transform: scale(1.05);
}

.gallery-thumbs img:active {
  transform: scale(0.98);
}

/* Controles de navegación */
.thumb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  color: var(--color-texto);
}

.thumb-nav:hover {
  background: var(--color-primario);
  color: white;
  border-color: var(--color-primario);
}

.prev-thumb {
  left: 0;
}

.next-thumb {
  right: 0;
}

/* Ocultar scrollbar pero mantener funcionalidad de desplazamiento */
.gallery-thumbs {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.gallery-thumbs::-webkit-scrollbar {
  display: none;
}

.gallery-main {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.gallery-main img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-main img:hover {
  transform: scale(1.03);
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-thumbs img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transicion);
  border: 2px solid transparent;
}

.gallery-thumbs img:hover,
.gallery-thumbs img.active {
  border-color: var(--color-primario);
  transform: translateY(-3px);
}

.repuesto-info {
  padding: 1rem;
}

.repuesto-descripcion{
  background: rgba(255, 255, 255, 0.8);
  padding: 2rem;
}

.repuesto-descripcion h3 {
  font-size: 1.5rem;
  color: var(--color-secundario);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.8rem;
}

.repuesto-descripcion h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--color-primario);
  border-radius: 2px;
}

.repuesto-descripcion ul {
  list-style: none;
  margin-bottom: 2rem;
}

.repuesto-descripcion li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.8rem;
  color: var(--color-texto);
  line-height: 1.6;
}

.repuesto-descripcion li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primario);
  font-weight: bold;
}

.especificaciones {
  background: rgba(230, 57, 70, 0.05);
  padding: 1.5rem;
  border-radius: var(--borde-redondeado);
  margin: 2rem 0;
  border-left: 4px solid var(--color-primario);
}

.especificaciones h3 {
  font-size: 1.3rem;
  color: var(--color-secundario);
  margin-bottom: 1rem;
}

.especificaciones ul {
  list-style: none;
}

.especificaciones li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
}

.especificaciones strong {
  min-width: 120px;
  display: inline-block;
  color: var(--color-texto);
  font-weight: 600;
}

.repuesto-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn-whatsapp {
  background: linear-gradient(45deg, #25D366, #128C7E);
  color: white !important;
  padding: 0.9rem 1.8rem !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transicion) !important;
  border: 2px solid transparent !important;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3) !important;
}

.btn-whatsapp:hover {
  background: transparent;
  color: #25D366 !important;
  border-color: #25D366 !important;
  transform: translateY(-3px);
  box-shadow: 0 7px 25px rgba(37, 211, 102, 0.4);
}

.main .rep-btn-cotizar {
  background: linear-gradient(45deg, var(--color-primario), #c1121f);
  color: white !important;
  padding: 0.9rem 1.8rem !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transicion) !important;
  border: 2px solid transparent !important;
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3) !important;
}

.main .rep-btn-cotizar:hover {
  background: transparent !important;
  color: var(--color-primario) !important;
  border-color: var(--color-primario) !important;
  transform: translateY(-3px);
  box-shadow: 0 7px 25px rgba(230, 57, 70, 0.4) !important;
}

/* Sección de garantía */
.rep-garantia-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
  position: relative;
  overflow: hidden;
  max-width: 100%;
}

.rep-garantia-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  background: var(--color-blanco);
  border-radius: var(--borde-redondeado);
  box-shadow: var(--sombra);
  padding: 3rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);
  max-width: 1400px;
  margin: 0 auto;
}

.rep-garantia-text h2 {
  font-size: 2.2rem;
  color: var(--color-secundario);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.rep-garantia-text h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--color-primario);
  border-radius: 2px;
}

.rep-garantia-text p.highlight {
  font-size: 1.2rem;
  color: var(--color-primario);
  font-weight: 500;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.rep-garantia-text ul {
  list-style: none;
  margin: 2rem 0;
  padding: 0;
}

.rep-garantia-text li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  color: var(--color-texto);
  line-height: 1.6;
}

.rep-garantia-text li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primario);
  font-weight: bold;
  font-size: 1.2rem;
}

.rep-garantia-cta {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.rep-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transicion);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  border: 2px solid transparent;
}

.rep-btn-primary {
  background: linear-gradient(45deg, var(--color-primario), #c1121f);
  color: white;
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.rep-btn-primary:hover {
  background: transparent;
  color: var(--color-primario);
  border-color: var(--color-primario);
  transform: translateY(-3px);
  box-shadow: 0 7px 25px rgba(230, 57, 70, 0.4);
}

.rep-btn-whatsapp {
  background: linear-gradient(45deg, #25D366, #128C7E);
  color: white;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.rep-btn-whatsapp:hover {
  background: transparent;
  color: #25D366 !important;
  border-color: #25D366;
  transform: translateY(-3px);
  box-shadow: 0 7px 25px rgba(37, 211, 102, 0.4);
}

.rep-garantia-img {
  position: relative;
  border-radius: var(--borde-redondeado);
  overflow: hidden;
  box-shadow: var(--sombra);
  height: 100%;
  min-height: 350px;
}

.rep-garantia-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.rep-garantia-img:hover img {
  transform: scale(1.05);
}

/* ============================================
   SECCIÓN CTA - REPUESTOS
   ============================================ */
.rep-cta-section {
  padding: var(--espaciado-xxl, 6rem);
  background: linear-gradient(135deg, var(--color-primario, #b11b22) 0%, var(--color-secundario, #8c131a) 100%);
  color: var(--color-blanco, #ffffff);
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
}

/* Patrón de fondo suave */
.rep-cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjAzKSIvPjwvcGF0dGVybj48L2RlZnM+PHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNwYXR0ZXJuKSIvPjwvc3ZnPg==');
  opacity: 0.45;
  z-index: 1;
}

.rep-cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.rep-cta-content h2 {
  color: var(--color-blanco, #ffffff);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.rep-cta-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
  line-height: 1.7;
}

/* BOTÓN DE WHATSAPP */
.rep-btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #ffffff !important;
  background-color: transparent;
  border: 2px solid #ffffff;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-decoration: none;
  z-index: 1;
}

.rep-btn-whatsapp i {
  font-size: 1.3rem;
}

.rep-btn-whatsapp:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


/* Responsive Design */
@media (max-width: 1024px) {
  .rep-garantia-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .rep-garantia-img {
    min-height: 300px;
    order: -1;
  }
  
  .repuesto-content {
    grid-template-columns: 1fr;
  }
  
  .repuesto-content.reverse {
    direction: ltr;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 6rem 0 4rem;
    margin-top: 80px;
  }
  
  .hero-section h1 {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
  }
  
  .repuesto-header h2 {
    font-size: 1.8rem;
  }
  
  .rep-garantia-content {
    padding: 2rem 1.5rem;
  }
  
  .rep-garantia-text h2 {
    font-size: 1.8rem;
  }
  
  .rep-cta-section h2 {
    font-size: 2rem;
  }
  
  .rep-cta-section p {
    font-size: 1.1rem;
    padding: 0 1rem;
  }
  
  .rep-btn, .btn-whatsapp {
    padding: 0.8rem 1.5rem !important;
    font-size: 0.9rem !important;
  }

  .rep-btn-cotizar {
    padding: 0.8rem 1.5rem !important;
    font-size: 0.9rem !important;
  }
}

@media (max-width: 517px) {
  .hero-section h1 {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .repuesto-cta, .rep-garantia-cta {
    flex-direction: column;
    gap: 1rem;
  }
  
  .rep-btn, .btn-whatsapp{
    width: 100%;
    justify-content: center;
  }

  .rep-btn-cotizar  {
    width: 100%;
    justify-content: center;
  }
  
  .rep-cta-section h2 {
    font-size: 1.8rem;
  }
  
  .rep-cta-section p {
    font-size: 1rem;
  }
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

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

.hero-section .container{
  overflow-x: visible;
}

/* Contenedor de fondo plomo para la barra de contacto */
.contenedor-barra-contacto {
  background-color: var(--color-oscuro);
  width: 100%;
  padding: 43px 0;
  position: fixed;
  z-index: 100;
  top: 0;
}

/* Contenedor de fondo blanco para el nav */
.contenedor-nav {
  background-color: white;
  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: 0 2px 10px rgba(0, 0, 0, 0.1); /* 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;}

.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: 1.5px;
  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;
}

.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 espaciado desde la derecha */
  margin-top: -20px; /* Movemos un poco más arriba */
}

.redes-sociales {
  display: flex;
  gap: 15px;
  opacity: 0;
  transform: translateY(-10px);
  animation: fadeIn 0.5s ease-out forwards 0.4s;
}

.red-social {
  color: white;
  font-size: 1.2rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.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: 8px 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 */
}

/* 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;
}

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: var(--color-texto);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
  position: relative;
}

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

/* 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 {
  opacity: 1;
  transform: translateX(-50%) translateY(-25%); /* Sale un poco hacia arriba */
}

.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 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::before, nav ul li a::before {
  content: '';
  position: absolute;
  top: -26px; /* Línea más pegada al tope del contenedor nav */
  left: 0;
  width: 0;
  height: 3px;
  background-color: #B51922;
  transition: width 0.3s ease; /* Transición suave para la línea */
}

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

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

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; }


/* WhatsApp Float */
.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;
  scale: 1.1;
}

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




/* 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.5rem;
  }
  
  .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;
  }

}

/* Footer */
.footer {
  background: linear-gradient(180deg, var(--color-oscuro), #253546); /* 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: 0 10px;          /* Espacio alrededor */
  border-radius: 8px;         /* Opcional: esquinas redondeadas */
  display: inline-block;
}

.footer-logo-box {
  width: 180px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
}

.footer-logo-box img {
  max-height: 150%;  /* o auto */
  max-width: 150%;
  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 */
  background: rgb(255, 255, 255); /* fondo circular suave */
  color: #BC1922;
  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;
}