:root {
  --color-principal: #800000;     /* Rojo oscuro */
  --color-secundario: #990000;    /* Rojo intermedio */
  --color-destacado: #cc0000;     /* Rojo más claro */
  --color-accion: #ff3300;        /* Botones, hover */
  --color-accion-hover: #cc2900;  /* Hover oscuro */
  --color-fondo-suave: #fff5f5;   /* Fondo claro */
  --color-texto: #800000;         /* Texto principal */
  --color-blanco: #ffffff;
  --color-oscuro: #2c3e50;
}

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

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

/* Typography normalization (site-wide consistency) */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.2;
}

/* Default paragraph size; specific sections can override if needed */
p {
  font-size: 1rem;
  line-height: 1.7;
}

/* Default heading sizes; hero or special sections may override */
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }

/* Contenedor de fondo plomo para la barra de contacto */
.contenedor-barra-contacto {
  background-color: rgba(38, 54, 70, 0.9);
  width: 100%;
  padding: 43px 0;
  position: fixed;
  z-index: 999;
  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 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: 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 */
}

/* Hero Image Section */
.hero-image {
  width: 100%;
  height: 98vh; /* Increased for better visual impact */
  overflow: hidden;
  position: relative;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeIn 1.2s ease-out forwards;
  animation-delay: 0.3s;
  margin-top: -55px;
}

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

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%; /* Ajustado a 40% según solicitud del usuario */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Dark overlay for better text visibility */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 20px;
}

.hero-overlay h1 {
  font-size: 3rem;
  padding-top: 100px;
  font-weight: 800;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(20px);
  animation: slideUp 0.8s ease-out forwards;
  animation-delay: 0.6s;
}

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

.hero-overlay p {
  font-size: 1.2rem;
  padding-top: 10px;
  max-width: 550px;
  font-weight: 500;
  margin: 0 auto;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(20px);
  animation: slideUp 0.8s ease-out forwards;
  animation-delay: 0.8s;
}

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

/* Contenido principal */
main {
  max-width: 1200px;
  padding: 0;
  margin-bottom: -75px;
}

.quienes-somos-container {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.imagen-container {
  flex: 1;
  max-width: 500px;
}

.imagen-container img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.texto-container {
  flex: 1;
}

.texto-container h1 {
  margin-bottom: 20px;
  color: var(--color-principal);
}

.texto-container h2 {
  margin: 25px 0 15px;
  color: var(--color-principal);
}

.texto-container p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.texto-container ul {
  list-style: none;
  padding-left: 20px;
}

.texto-container ul li {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.fondo-principal {
  background-image: url('../../media/img/img20.webp');
  background-size: cover;
  background-position: center;
  height: 85vh;
  position: relative;
  z-index: 1;
}

main{
  max-width: 100%;
}

/* Hero Section */
.hero-nosotros {
  background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
  color: white;
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  max-width: 100%;
}

.hero-nosotros::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="white" opacity="0.05"><polygon points="0,0 1000,100 1000,0"/></svg>') no-repeat;
  background-size: cover;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.hero-nosotros h1 {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-nosotros p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

/* Historia Section */
.historia-section {
  margin-top: -55px;
  padding: 80px 0;
  background: #f8fafc;
}

.historia-section .container{
  max-width: 1250px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  font-size: 2.25rem;
  color: #000000;
  margin-bottom: 20px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(45deg, var(--color-accion), var(--color-destacado));
  margin: 20px auto;
  border-radius: 2px;
}

.historia-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 60px;
}

.historia-texto {
  font-size: 1.1rem;
  line-height: 1.8;
  color: black;
  text-align: justify;
}

/* Make historia paragraphs match section description size (1.2rem) */
.historia-texto p {
  font-size: 1.2rem;
  line-height: 1.7;
}

.historia-imagen {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.historia-imagen img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: 50% 80%; /* 👈 mueve el recorte hacia abajo */
  transition: transform 0.3s ease;
}

.historia-imagen:hover img {
  transform: scale(1.05);
}

.timeline-container {
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  background-image: url('../../media/img/Nosotros/HistoriaHydromenn.webp');
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  z-index: 0;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

.timeline {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, #B41922, #D4262F, #C8323A, #B41922, #8B1419);
  transform: translateX(-50%);
  border-radius: 2px;
  box-shadow: 0 0 20px rgba(180, 25, 34, 0.3);
}

.timeline-item {
  position: relative;
  margin: 60px 0;
  opacity: 0;
  transform: translateY(50px);
  animation: slideUp 0.8s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.2s; }
.timeline-item:nth-child(2) { animation-delay: 0.4s; }
.timeline-item:nth-child(3) { animation-delay: 0.6s; }
.timeline-item:nth-child(4) { animation-delay: 0.8s; }
.timeline-item:nth-child(5) { animation-delay: 1s; }
.timeline-item:nth-child(6) { animation-delay: 1.2s; }

.timeline-content {
  position: relative;
  width: 45%;
  padding: 40px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(180, 25, 34, 0.15);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(180, 25, 34, 0.1);
  transition: all 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 50px rgba(180, 25, 34, 0.2);
  border-color: rgba(180, 25, 34, 0.3);
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 55%;
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border: 15px solid transparent;
}

.timeline-item:nth-child(odd) .timeline-content::before {
  right: -30px;
  border-left-color: #ffffff;
}

.timeline-item:nth-child(even) .timeline-content::before {
  left: -30px;
  border-right-color: #ffffff;
}

.year {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #B41922, #D4262F);
  color: white;
  padding: 15px 25px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.2rem;
  box-shadow: 0 10px 25px rgba(180, 25, 34, 0.5);
  z-index: 10;
  min-width: 120px;
  text-align: center;
  border: 3px solid white;
}

.timeline-item:nth-child(2) .year { background: linear-gradient(135deg, #C8323A, #B41922); }
.timeline-item:nth-child(3) .year { background: linear-gradient(135deg, #8B1419, #B41922); }
.timeline-item:nth-child(4) .year { background: linear-gradient(135deg, #D4262F, #8B1419); }
.timeline-item:nth-child(5) .year { background: linear-gradient(135deg, #B41922, #6B0F14); }
.timeline-item:nth-child(6) .year { background: linear-gradient(135deg, #8B1419, #2C0507); }

.content-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #B41922, #D4262F);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  font-size: 1.8rem;
  color: white;
  box-shadow: 0 5px 15px rgba(180, 25, 34, 0.4);
}

.timeline-item:nth-child(2) .icon { background: linear-gradient(135deg, #C8323A, #B41922); }
.timeline-item:nth-child(3) .icon { background: linear-gradient(135deg, #8B1419, #B41922); }
.timeline-item:nth-child(4) .icon { background: linear-gradient(135deg, #D4262F, #8B1419); }
.timeline-item:nth-child(5) .icon { background: linear-gradient(135deg, #B41922, #6B0F14); }
.timeline-item:nth-child(6) .icon { background: linear-gradient(135deg, #8B1419, #2C0507); }

.content-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2C0507;
  margin-bottom: 15px;
}

.content-card {
  position: relative;
  width: 100%;       /* puedes ajustar el tamaño */
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  margin: 0 auto;
}

.content-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

/* Capa de texto oculta al inicio */
.content-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  transition: opacity 0.4s ease;
}

/* Texto */
.content-text {
  font-size: 1.1rem;
  line-height: 1.5;
  width: 600px;
}

.highlight {
  color: white;
  font-weight: bold;
}

/* Efecto hover */
.content-card:hover .content-overlay {
  opacity: 1;
}

.content-card:hover .content-image {
  transform: scale(1.1);
}

/* ============================= */
/* 🌐 Responsive Styles */
/* ============================= */

/* Tablets medianas (≤1024px) */
@media (max-width: 1024px) {
  .content-card {
    max-width: 380px;
  }

  .content-text {
    font-size: 1rem;
    padding: 15px;
  }
}

/* Tablets pequeñas / móviles grandes (≤768px) */
@media (max-width: 768px) {
  .future-section {
    padding: 40px 15px !important;
  }
  .content-card {
    max-width: 100%;
  }

  .content-overlay {
    padding: 15px;
  }

  .content-text {
    font-size: 0.95rem;
  }
}

/* Celulares pequeños (≤480px) */
@media (max-width: 480px) {
  .content-card {
    max-width: 100%;
    border-radius: 8px;
  }

  .content-text {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .content-overlay {
    padding: 6px;
  }

  .highlight {
    font-weight: 600;
  }
}

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

@media (max-width: 768px) {
  .header h1 {
      font-size: 2.5rem;
  }
  
  .timeline::before {
      left: 30px;
  }

  .content-header .icon {
    display: none;
  }

  .timeline-item .year {
    min-width: 10px;
  }
    
  
  .timeline-content {
      width: calc(100% - 80px);
      padding: 15px;
      margin-left: 80px !important;
  }
  
  .timeline-content::before {
      left: -30px !important;
      border-right-color: #ffffff !important;
      border-left-color: transparent !important;
  }
  
  .year {
      left: 30px;
      transform: translate(-50%, -50%);
  }
}

.footer {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, #B41922 0%, #8B1419 100%);
  margin-top: 100px;
  color: white;
  position: relative;
  overflow: hidden;
}

.future-section {
  position: relative;
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(180, 25, 34, 0.2);
  color: #333;
  border: 2px solid rgba(180, 25, 34, 0.2);
}

.future-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #B41922, #D4262F);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  font-size: 2.5rem;
  color: white;
  box-shadow: 0 10px 25px rgba(180, 25, 34, 0.4);
  animation: pulse 2s infinite;
}

.future-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #B41922;
  margin-bottom: 20px;
}

.future-text {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 30px;
}

.innovation-stats {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, #B41922, #D4262F);
  color: white;
  border-radius: 15px;
  min-width: 120px;
  box-shadow: 0 5px 15px rgba(180, 25, 34, 0.3);
}

.stat-number {
  color: #000;
  font-size: 2rem;
  font-weight: bold;
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.arrow-up {
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.3);
  animation: bounce 2s infinite;
}

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

/* Misión y Visión Section */
.mision-vision-section {
  padding: 10px 0 60px 0;
  background: white;
  z-index: -2;
}

.mision-vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 60px;
}

.mision-card, .vision-card {
  background: linear-gradient(135deg, #BB1922 0%, #16213e 100%);
  color: white;
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;

  /* sombra con color base */
  box-shadow: 0 8px 20px rgba(187, 25, 34, 0.4),   /* rojo del inicio */
              0 8px 20px rgba(22, 33, 62, 0.4);   /* azul oscuro del final */
  border: none;
}

.mision-card:hover, .vision-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(187, 25, 34, 0.5),   /* rojo más intenso */
              0 20px 50px rgba(22, 33, 62, 0.5);   /* azul más intenso */
}


.mision-card::before, .vision-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mision-card:hover::before, .vision-card:hover::before {
  opacity: 1;
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  opacity: 0.9;
}

.card-title {
  font-size: 1.8rem;
  margin-bottom: 20px;
  font-weight: bold;
}

.card-text {
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.9;
}

/* Valores Section */
.valores-section {
  padding: 80px 0;
  background: #000000;
  color: white;
}

.valores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.valor-item {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.valor-item {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

.valor-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #ffffff;
  text-shadow: 
    1px 1px 0 #000,
    2px 2px 0 #000,
    3px 3px 0 #000,
    4px 4px 0 #000,
    5px 5px 0 #000;
  transition: all 0.3s ease;
  display: inline-block;
}
.valor-item:hover {
  transform: scale(1.06);
  box-shadow: 0 15px 25px rgba(0,0,0,0.2);
}

.valor-icon {
  transform: translateZ(30px) scale(1.2) rotateX(10deg) rotateY(10deg);
  color: #ffcc00;
  text-shadow: 
    1px 1px 0 #000,
    2px 2px 0 #000,
    3px 3px 0 #000,
    4px 4px 0 #000,
    5px 5px 0 #000;
}

.valor-titulo {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.valor-descripcion {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Equipo Section */
.equipo-section {
  padding: 80px 0;
  background: #f7fafc;
}

.equipo-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 60px;
}

.equipo-section .container {
  max-width: 1400px;
}

.equipo-imagen {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.equipo-imagen:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}

.equipo-imagen img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.equipo-imagen:hover img {
  transform: scale(1.05);
}

.equipo-texto {
  padding: 20px;
  text-align: justify;
}

.equipo-descripcion {
  font-size: 1.1rem;
  line-height: 1.8;
  color: black;
  margin-bottom: 30px;
}

.equipo-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.stat-item {
  background: white;
  padding: 25px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.stat-numero {
  font-size: 2.2rem;
  font-weight: bold;
  color: #BB1322;
  margin-bottom: 5px;
  position: relative; /* ← Agregar esto */
}

.stat-label {
  color: #4a5568;
  font-size: 0.95rem;
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-nosotros h1 {
      font-size: 2.5rem;
  }

  .hero-nosotros p {
      font-size: 1.1rem;
  }

  .historia-content {
      grid-template-columns: 1fr;
      gap: 40px;
  }

  .mision-vision-grid {
      grid-template-columns: 1fr;
      gap: 30px;
  }
  .equipo-section {
    padding: 40px 0;
  }

  .equipo-section .container {
    padding: 10px 0;
  }

  .equipo-content {
      grid-template-columns: 1fr;
      gap: 40px;
  }

  .equipo-imagen {
    border-radius: 0;
  }

  .equipo-stats {
      grid-template-columns: 1fr;
      gap: 15px;
  }

  .section-title {
      font-size: 2rem;
  }
}

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

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}


/* 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 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;
  text-align: left;
}

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

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