: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%;
  padding-top: 75px;
}

html{
  scroll-behavior: smooth;
}


body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4); /* oscurece la imagen ligeramente */
  z-index: -1; /* queda detrás de todo */
}

/* 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: 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.4s 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;
  opacity: 0;
  transform: translateY(-10px);
  animation: fadeIn 0.4s ease-out forwards 0.4s;
  transition: background-color 0.3s ease;
}

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

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

@keyframes menuFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

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

/* 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 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 a:hover::before,
nav ul li a.active::before {
  width: 100%; /* La línea se extiende del ancho de la palabra */
}

nav ul li a: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; }

main {
  max-width: 100%;
  background-color: var(--color-fondo-suave);
  margin: 0;
  margin-top: -60px;
  margin-bottom: -80px;
}

h1 {
  margin-bottom: 20px;
  color: var(--color-principal);
  text-align: center;
}
/* ===== SECCIÓN GENERAL ===== */
.contact-section {
  padding: 50px 0 30px 0;
  padding-bottom: 0;
  background-image: linear-gradient(rgb(255, 255, 255), rgba(255, 255, 255, 0.5)), url(../../media/img/fondos2.webp);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Izquierda y derecha */
  gap: 40px;
  padding: 40px 20px;
  margin: 0 auto;
  align-items: start;
}

/* ===== COLUMNA IZQUIERDA ===== */
.contact-left {
  display: flex;
  flex-direction: column;
  gap: 25px;
  background: #fff;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.contact-left h2 {
  font-size: 2.2rem;
  color: black;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-left: 5px solid var(--color-destacado);
  padding-left: 10px;
}

.contact-left p {
  font-size: 1rem;
  color: #4a4a4a;
  line-height: 1.7;
  font-weight: 600;
  text-align: justify;
}

/* ===== BOTÓN WHATSAPP ===== */
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #25d366, #1ebc59);
  color: var(--color-blanco);
  padding: 14px 25px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
  transition: all 0.3s ease;
}

.whatsapp-btn i {
  font-size: 22px;
}

.whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(37, 211, 102, 0.4);
}

/* ===== CORREO ELECTRÓNICO ===== */
.email-contact {
  font-size: 16px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  padding: 12px 16px;
  border-radius: 10px;
  border-left: 4px solid var(--color-oscuro);
  transition: background 0.3s ease;
}

.email-contact:hover {
  background: #eef3ff;
}

.email-contact i {
  color: var(--color-principal);
  font-size: 1.5rem;
  font-weight: 600;
}

.email-contact a {
  color: var(--color-principal);
  text-decoration: none;
  font-weight: 600;
}

.email-contact a:hover {
  color: var(--color-destacado);
  text-decoration: underline;
}

/* ===== TELÉFONOS ===== */
.phones {
  background: #f8fafc;
  padding: 15px 18px;
  border-radius: 12px;
  border-left: 4px solid var(--color-oscuro);
}

.phones:hover {
  background: #eef3ff;
}

.phones h2 {
  font-size: 18px;
  color: var(--color-oscuro);
  margin-bottom: 10px;
  border-left: none;
}

.phones p {
  margin: 6px 0;
  color: #444;
  display: flex;
  font-weight: 600;
  align-items: center;
  gap: 8px;
}

.phones i {
  color: var(--color-principal);
  font-size: 1.1rem;
}

.phones a {
  color: var(--color-principal);
  text-decoration: none;
}

.phones a:hover {
  color: var(--color-destacado);
}

/* ===== REDES SOCIALES ===== */
.social-links {
  margin-top: 18px;
}

.social-links h2 {
  font-size: 18px;
  color: black;
  font-weight: 800;
  margin-bottom: 12px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-principal);
  color: #fff;
  font-size: 1.2rem;
  margin-right: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.social-links a:hover {
  transform: translateY(-4px);
}

/* Colores originales de las redes */
.contact-left .social-links a[aria-label="Facebook"] {
  background: #1877f2;
  color: white;
}

.contact-left .social-links a[aria-label="Instagram"] {
  background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
  color: white;
}

.contact-left .social-links a[aria-label="TikTok"] {
  background: #000;
  color: white;
}

.contact-left .social-links a[aria-label="YouTube"] {
  background: #FF0000; /* rojo YouTube */
  color: white;
}

.contact-left .social-links a[aria-label="LinkedIn"] {
  background: #0A66C2; /* azul oficial de LinkedIn */
  color: white;
}

/* ===== HORARIOS ===== */
.schedule {
  background: #f8fafc;
  padding: 16px 18px;
  border-radius: 12px;
  border-left: 4px solid var(--color-oscuro);
}

.schedule:hover {
  background: #eef3ff;
}

.schedule h2 {
  font-size: 18px;
  color: var(--color-oscuro);
  margin-bottom: 10px;
  border-left: none;
}

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

.schedule li {
  color: #444;
  font-size: 16px;
  margin-bottom: 6px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.schedule li::before {
  content: "\f017";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--color-destacado);
  font-size: 1.1rem;
}



/* ===== COLUMNA DERECHA ===== */
.contact-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ===== IMAGEN CON OVERLAY ===== */
.image-container {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.6);
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

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

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(128, 0, 0, 0.85), transparent);
  padding: 1.5rem;
  color: white;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.5s ease;
}

.image-container:hover .image-overlay {
  transform: translateY(0);
  opacity: 1;
}

.image-overlay h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.image-overlay p {
  font-size: 1rem;
  margin: 0;
  opacity: 0.9;
  color: #f8f8f8;
}

/* ===== Contenedor general ===== */
.locations {
  background-image: linear-gradient(rgb(255, 255, 255), rgba(255, 255, 255, 0.5)), url(../../media/img/fondos2.webp);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  padding-top: 1rem;
  padding-bottom: 4rem;
}

/* ===== Mapa de Lima ===== */
.map-container.full-width iframe {
  width: 100%;
  height: 500px;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.8);
}

.map-container.full-width h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1rem;
  color: black;
}

/* ===== Arequipa: contenedor mapa + video ===== */
.arequipa-container {
  display: flex;
  flex-wrap: wrap; /* Para que en móvil se apile */
  gap: 2rem;
  margin-top: 3rem;
  justify-content: center;
}

/* Cada caja (mapa o video) */
.map-box,
.video-box {
  flex: 1 1 500px; /* mínimo 500px, se adapta */
  max-width: 700px;
}

/* Títulos */
.map-box h2,
.video-box h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1rem;
  color: black;
}

.map-box h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  text-align: center;
  color: var(--color-texto);
}

.map-box h3 i {
  color: var(--color-principal);
  margin-left: 0.3rem;
}

/* Estilos para el iframe */
.map-box iframe,
.video-box iframe {
  width: 100%;
  height: 400px;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.8);
}

/* ===== RESPONSIVE PARA MÓVILES ===== */
@media (max-width: 1024px) {
  .locations {
    flex-wrap: wrap; /* En pantallas medianas, que se apilen */
  }

  .map-container {
    width: 100%; /* Ocupan todo el ancho en móvil */
  }
}


/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .contact-container {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr; /* Una sola columna en móviles */
  }

  .whatsapp-btn {
    max-width: 100%;
    padding: 15px;
    font-size: 16px;
  }

  .map-container iframe {
    height: 300px;
  }

  .contact-left .social-links{
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 1rem;
  }

  .contact-left .social-links h2{
    margin-top: 1rem;
    text-align: center;
  }
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* Hero Image Section - Efecto de mosaico */
.hero-image {
  width: 100%;
  height: 750px;
  overflow: hidden;
  position: relative;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeIn 1.2s ease-out forwards;
  animation-delay: 0.3s;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
  transform-style: preserve-3d;
  perspective: 1000px;
}

.hero-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
  opacity: 0;
  transform: translateZ(50px);
  animation: fadeInOverlay 1s ease-out forwards;
  animation-delay: 0.5s;
}

@keyframes fadeInOverlay {
  to {
    opacity: 1;
    transform: translateZ(0);
  }
}

@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%; /* Adjusted to show more of the middle part */
}

.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 {
  color: white;
  font-size: 3rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(30px) scale(0.9);
  animation: tileDrop 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: 0.6s;
  position: relative;
  display: inline-block;
  z-index: 3;
}

@keyframes tileDrop {
  0% {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
    text-shadow: 0 10px 20px rgba(0,0,0,0.3);
  }
  50% {
    opacity: 1;
    transform: translateY(20px) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  }
}

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

.hero-overlay p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(40px);
  animation: revealText 1.2s cubic-bezier(0.19, 1, 0.22, 1) forwards;
  animation-delay: 0.9s;
  position: relative;
  line-height: 1.6;
  letter-spacing: 0.5px;
}

@keyframes revealText {
  from {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.contact-hero {
  position: relative;
  background: url('../../media/img/Contacto/Contacto-Intro.webp') no-repeat center center/cover;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  height: 88vh; /* Hero más compacto */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}

.contact-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* oscurece el fondo */
}

.contact-hero-content {
  position: relative;
  max-width: 1200px;
  padding: 0 1rem;
  z-index: 2;
}

.contact-hero h1 {
  color: white;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-align: center;
}

.contact-hero p {
  max-width: 600px;
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #f1f1f1;
  font-weight: 600;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.btn-primary {
  padding: 0.8rem 1.5rem;
  background-color: #B51922;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--color-principal);
  transform: translateY(-2px);
}

#contact-info {
  scroll-margin-top: 110px; /* Ajusta el valor según el alto de tu header */
}


.contact-container {
  background-color: white;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 90%;
  margin: 0 auto;
  gap: 30px; /* Reducido de 40px */
  border-radius: 15px;
  overflow: hidden;
  align-items: flex-start; /* Alineación superior para que no estiren */
}


.form-section {
  padding: 3rem 2.5rem; /* Mínimo padding */
  display: flex;
  flex-direction: column;
  background: white;
  position: relative;
  height: auto;
  box-sizing: border-box;
}

.form-section::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  bottom: 10%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, #e1e5e9, transparent);
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #1a202c;
  letter-spacing: -0.025em;
  text-align: left;
}

.form-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 1rem 0; /* Aumentado margen inferior a 1rem */
  color: #1a202c;
  letter-spacing: -0.025em;
  text-align: left;
  line-height: 1.1;
  padding: 0;
  padding-bottom: 0.1rem; /* Mínimo espacio inferior */
}

.form-section p {
  font-size: 1.1rem;
  color: #4a5568;
  margin: 0 0 2rem 0; /* Aumentado margen inferior a 2rem */
  line-height: 1.7;
  max-width: 100%;
  padding: 0;
}

form {
  display: grid;
  gap: 0.05rem;
  max-width: 500px;
  margin-top: -0.5rem;
  padding-top: 0.75rem; /* Reducido a 0.75rem */
}

/* Estilo para los campos en fila (empresa/ruc) */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
}

/* Ajuste para los campos de formulario */
form > div {
  margin-bottom: 0.1rem; /* Reducido de 0.25rem */
}

/* Ajuste para el botón de enviar */
button[type="submit"] { 
  margin-top: 0.5rem; /* Reducido de 0.75rem */
  padding: 0.7rem 1.5rem; /* Ajuste de padding */
}

label {
  font-size: 0.85rem; /* Reducido de 0.9rem */
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.1rem; /* Reducido de 0.25rem */
  display: block;
  letter-spacing: 0.02em; /* Reducido de 0.025em */
}

input, textarea {
  width: 100%;
  padding: 0.6rem 0.75rem; /* Reducido vertical de 0.75rem a 0.6rem */
  border: 2px solid #e2e8f0;
  border-radius: 6px; /* Reducido de 8px */
  font-size: 0.9rem; /* Reducido de 0.95rem */
  transition: all 0.15s ease; /* Transición más rápida */
  background: #ffffff;
  color: #2d3748;
  margin: 0;
  line-height: 1.2; /* Reducido de 1.5 */
}

input:focus, textarea:focus {
  outline: none;
  border-color: #3182ce;
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
  transform: translateY(-1px);
}

textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

button[type="submit"] {
  background: linear-gradient(135deg, #2b77e6 0%, #1e40af 100%);
  color: white;
  border: none;
  padding: 1.2rem 2rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
  letter-spacing: 0.025em;
}

button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(43, 119, 230, 0.3);
}

button[type="submit"]:active {
  transform: translateY(0);
}

.images-section {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: 1fr 0.8fr;
  gap: 0.8rem;
  padding: 2rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.images-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 40%;
  height: 200%;
  background: linear-gradient(45deg, rgba(59, 130, 246, 0.03) 0%, rgba(99, 102, 241, 0.05) 100%);
  transform: rotate(15deg);
  z-index: 0;
}

.img {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.img::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.img:hover {
  transform: scale(1.03);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.img:hover::after {
  opacity: 1;
}

.img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
  filter: brightness(0.95);
}

.img:hover img {
  filter: brightness(1) saturate(1.1);
  transform: scale(1.03);
}

.img1 {
  grid-column: 1 / 3;
  grid-row: 1;
  border-radius: 24px;
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
}

.img2 {
  grid-column: 1;
  grid-row: 2;
  border-radius: 18px;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.img3 {
  grid-column: 2;
  grid-row: 2;
  border-radius: 18px;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

/* Placeholder para imágenes no cargadas */
.img::before {
  content: '⚒️';
  font-size: 3rem;
  color: #a0aec0;
  position: absolute;
  z-index: 1;
}


@media (max-width: 1500px) {
  .contact-container {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    max-width: 95; /* aumentas el ancho máximo */
    margin: 0 auto;    /* lo centras */
  }

  .contact-left {
    padding: 10px 20px;
    margin-bottom: -50px;
  }

  .contact-right {
    margin-top: 40px;
  }

  .form-section {
      padding: 3rem 2rem;
  }

  .form-section::after {
      display: none;
  }

  h1 {
      font-size: 2rem;
  }

  .form-section p {
      max-width: 100%;
  }

  .images-section {
      grid-template-columns: 1fr;
      grid-template-rows: 200px 180px 160px;
      padding: 2rem 1.5rem;
      gap: 1.5rem;
  }

  .img1 {
      grid-column: 1;
      grid-row: 1;
      height: 450px;
  }

  .img2 {
      display: none;
  }

  .img3 {
      display: none;
  }
}


@media (max-width: 868px) {
  .contact-container {
    width: 100%;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    height: auto;
    padding: 30px;
  }

  .contact-left {
    margin-top: -40px;
    padding: 10px 20px;
  }
  
  .image-container {
    display: block !important;
    width: 100%;
    height: auto;
    margin-top: 20px;
  }

  .image-container img {
    width: 100%;
    height: auto;
  }
  
  .image-overlay {
    width: 100%;
    height: auto;
  }

  .form-section {
    padding: 0rem 2rem 0rem 2rem; /* reduce el padding inferior */
  }

  .form-section::after {
      display: none;
  }

  h1 {
      font-size: 2rem;
  }

  .form-section p {
      max-width: 100%;
  }

  .images-section {
      grid-template-columns: 1fr;
      grid-template-rows: 200px 180px 160px;
      padding: 0;
      gap: 1.5rem;
  }

  .img1 {
      grid-column: 1;
      grid-row: 1;
      height: 300px;
  }

  .img2 {
      display: none;
  }

  .img3 {
      display: none;
  }
}

@media (max-width: 500px) {
  
  .contact-section {
    width: 100%;
  } 

  .contact-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    height: auto;
    width: 100%;
    padding: 30px 0;
  }

  .contact-left {
    margin-top: -40px;
    padding: 10px 10px;
    border-radius: 0;
  }

  .image-container {
    display: block !important;
    width: 100%;
    height: auto;
    margin-top: 20px;
    border-radius: 0;
  }

  .image-container img {
    width: 100%;
    height: auto;
  }

  .image-overlay {
    width: 100%;
  }
  
  .contact-container {
    max-width: 100%; /* aumentas el ancho máximo */
  }

  h1 {
      font-size: 1.8rem;
  }

  input, textarea {
      padding: 0.8rem;
  }

  button[type="submit"] {
      padding: 1rem;
  }

}

/* Animaciones sutiles */
.form-section {
  animation: slideInLeft 0.6s ease-out;
}

.images-section {
  animation: slideInRight 0.6s ease-out;
}

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

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

/* Estados de error para validación */
input:invalid {
  border-color: #e53e3e;
}

input:invalid:focus {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}