body {
    padding-top: 80px;
    overflow-x: hidden; /* Evita el scroll horizontal */
}

/* ============================================================
   SECCIÓN PRINCIPAL: CONTACTO
   ============================================================ */
.contacto-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 100vh;
  padding-top: 10px; /* espacio superior para navbar */
  background-color: #f9f9f9;
  box-sizing: border-box;
}

/* ============================================================
   TÍTULO PRINCIPAL
   ============================================================ */
.titulo-container {
  padding: 10px 15px;
  border-radius: 10px;
  text-align: center;
  display: inline-block;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.titulo-contacto {
  font-size: 2.2rem;
  margin: 0;
  color: #255468;
  font-weight: 700;
}

.subrayado {
  width: 60%;
  height: 4px;
  background-color: #ffbb00;
  margin: 8px auto 0;
  border-radius: 2px;
}

/* ============================================================
   CONTENIDO GENERAL
   ============================================================ */
.contenido {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 1500px;
  padding: 35px 50px;
  border-radius: 10px;
  backdrop-filter: blur(10px);
  box-sizing: border-box;
}

/* ============================================================
   SECCIÓN TEXTO + IMAGEN
   ============================================================ */
.seccion-texto-imagen {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  text-align: left;
  margin-top: -48px; /* sube el bloque hacia arriba */
}

.contenido-texto {
  flex: 1 1 500px;
  max-width: 600px;
  text-align: justify;
}

.contenido-texto h2 {
  color: #255468;
  margin-bottom: 15px;
  font-weight: 700;
  font-size: 1.9rem;
}

.contenido-texto p {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #444;
}

.contenido-imagen {
  flex: 1 1 400px;
  max-width: 500px;
  text-align: center;
}

.contenido-imagen img {
  width: 100%;
  height: auto;
  max-width: 480px;
  object-fit: cover;
}

/* ============================================================
   BLOQUE PRINCIPAL: CONTACTANOS + FORMULARIO
   ============================================================ */
.contacto-main {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: stretch;
  width: 100%;
  max-width: 1850px; /* más ancho para equilibrar los lados */
  margin: 40px auto;
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  padding: 20px 30px;
  gap: 60px; /* separa un poco más la imagen y el formulario */
  box-sizing: border-box;
}

/* ============================================================
   SECCIÓN DE CONTACTO 
   ============================================================ */
.info-contacto-container {
  position: relative;
  flex: 1;
  max-width: 70%;
  /*laimagenocupaunpocomásdeancho*/display: flex;
  flex-direction: column;
  /*organizaelcontenidoverticalmente*/align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 10px;
  overflow: hidden;
  min-height: 700px;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  -ms-border-radius: 10px;
  -o-border-radius: 10px;
}

/* Imagen de fondo */
.contacto-img {
  position: absolute;
  top: 0;
  left: -40%;
  width: 140%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.45);
  transform: scale(1.08);
  transition: transform 0.5s ease;

}

/* Efecto de zoom al pasar el cursor */
.info-contacto-container:hover .contacto-img {
  transform: scale(1.12);
}

/* Capas de contenido centradas sobre la imagen */
.info-contacto-section,
.info-contacto-redes {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   TÍTULOS
   ============================================================ */
.info-contacto-section h2,
.info-contacto-redes h2 {
  font-size: 1.6rem;
  color: white;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 1px 1px 6px rgba(255, 255, 255, 0.3);
}

/* ============================================================
   PÁRRAFOS (correos y teléfonos)
   ============================================================ */
.info-contacto-section {
  display: flex;
  flex-direction: column;
  align-items: center; /* centra horizontalmente */
  justify-content: center; /* centra verticalmente */
  gap: 10px;
}

.info-contacto-section p {
  margin: 10px 0;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center; /* centra el contenido dentro de cada línea */
  gap: 16px;
}

.info-contacto-section i {
  color: white;
  font-size: 18px;
  margin-right: 4px; /* 🔹 refuerza el espacio visual */
}

.info-contacto-section a {
  text-decoration: none;
  color: white;
  transition: color 0.3s ease;
}

.info-contacto-section a:hover {
  color: #EC9D2E;
}

/* ============================================================
   REDES SOCIALES
   ============================================================ */
.info-contacto-redes {
  width: 100%;
  margin-top: 30px;
  text-align: center;
}

.info-contacto-iconos {
  display: flex;
  justify-content: center;
  align-items: center; /* centra verticalmente también */
  gap: 25px;
}

.info-contacto-iconos a {
  font-size: 30px;
  color: #EC9D2E;
  transition: transform 0.3s ease, color 0.3s ease;
}

.info-contacto-iconos a:hover {
  transform: scale(1.25);
}

/* Facebook */
.info-contacto-iconos a:hover .fa-facebook {
  color: #1877f2;
}

/* Instagram con degradado */
.info-contacto-iconos a:hover .fa-instagram {
  background: radial-gradient(circle at 30% 107%, 
    #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* LinkedIn */
.info-contacto-iconos a:hover .fa-linkedin {
  color: #0077b5;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media screen and (max-width: 992px) {
  .contacto-main {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .info-contacto-container {
    max-width: 100%;
    padding: 80px 20px;
    min-height: 500px;
  }

  .contacto-img {
    left: 0;
    width: 100%;
    height: 100%;
    transform: scale(1);
  }
}


/* ============================================================
   LADO DERECHO - FORMULARIO DE CONTACTO
   ============================================================ */
.form-container {
  flex: 1;
  max-width: 85%;
  background: #ffffff;
  border-radius: 16px;
  padding: 40px 45px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  margin-left: auto;
  margin-right: 1%;
  transform: translateX(5%);
}

.form-container h1 {
  color: #255468;
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 10px;
  font-size: 2rem;
  font-weight: 700;
  border-bottom: 3px solid #255468;
}

/* --- Campos del formulario --- */
.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: nowrap;
}

.form-group {
  position: relative;
  flex: 1;
}

.form-group i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #255468;
  font-size: 18px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 12px 12px 44px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
  resize: vertical;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #255468;
  outline: none;
}

.form-group textarea {
  min-height: 130px;
  margin-top: 20px;
}

/* --- Acciones (checkbox, links) --- */
.form-actions {
  margin: 15px 0;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-actions label {
  color: #444;
}

.form-actions a {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.form-actions a:hover {
  text-decoration: underline;
}

/* --- Botón enviar --- */
button {
  width: 100%;
  background-color: #255468;
  color: #fff;
  padding: 14px 0;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #0066cc;
}

/* ============================================================
   RESPONSIVE - PANTALLAS MEDIANAS Y PEQUEÑAS
   ============================================================ */
@media screen and (max-width: 992px) {
  .contacto-main {
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 20px;
  }

  .info-contacto-container {
    max-width: 100%;
    align-items: center;
    text-align: center;
    justify-content: center;
    padding: 20px;
  }

  .info-contacto-section p {
    justify-content: center;
  }

  .form-container {
    max-width: 95%;
    margin: 0 auto; /* centra horizontalmente */
    transform: none; /* elimina el desplazamiento lateral */
  }

  .form-row {
    flex-direction: column;
    gap: 15px;
  }
}

/* ============================================================
   BANNER GENERAL
   ============================================================ */
.banner-ubicaciones {
  position: relative;
  width: 100%;
  height: 450px;
  overflow: hidden;
}

/* Imagen del banner (se estira sin recortarse) */
.banner-ubicaciones img {
  width: 100%;
  height: 100%;
  object-fit: fill; /* 🔹 Se estira sin recortarse */
  display: block;
}

/* 🔹 Capa semi-transparente sobre la imagen */
.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45); /* 🔹 oscurece ligeramente la imagen */
  z-index: 1;
}

/* Contenido del banner */
.banner-contenido {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  padding: 0 5%;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 850px;
  transform: translateY(-50%);
  color: #fff;
  z-index: 2; /* 🔹 sobre la capa oscura */
}

.banner-texto {
  max-width: 550px;
  text-align: left;
  color: #fff;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

.banner-texto h2 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-bottom: 15px;
}

.banner-texto p {
  font-size: 1.4rem;
  color: #f0f0f0;
}

/* Icono del banner */
.banner-icono img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  filter: drop-shadow(2px 2px 8px rgba(0, 0, 0, 0.7));
  transition: transform 0.3s ease;
}

.banner-icono img:hover {
  transform: scale(1.08);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* 🔹 Pantallas medianas */
@media (max-width: 1100px) {
  .banner-ubicaciones {
    height: 400px;
  }

  .banner-contenido {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 25px;
    padding: 0 6%;
  }

  .banner-texto {
    max-width: 80%;
    text-align: center;
  }

  .banner-texto h2 {
    font-size: 2.4rem;
  }

  .banner-texto p {
    font-size: 1.2rem;
  }

  .banner-icono img {
    width: 150px;
    height: 150px;
  }
}

/* 🔹 Pantallas pequeñas (celulares y tablets) */
@media (max-width: 768px) {
  .banner-ubicaciones {
    height: 320px;
  }

  .banner-contenido {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 18px;
    width: 90%;
  }

  .banner-texto {
    max-width: 100%;
  }

  .banner-texto h2 {
    font-size: 2rem;
  }

  .banner-texto p {
    font-size: 1rem;
  }

  .banner-icono img {
    width: 120px;
    height: 120px;
  }
}

/* 🔹 Pantallas muy pequeñas (celulares chicos) */
@media (max-width: 480px) {
  .banner-ubicaciones {
    height: 280px;
  }

  .banner-texto h2 {
    font-size: 1.7rem;
  }

  .banner-texto p {
    font-size: 0.95rem;
  }

  .banner-icono img {
    width: 100px;
    height: 100px;
  }
}


/* ============================================================
   TÍTULO CENTRADO
   ============================================================ */
.titulo-sucursales {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: #333;
  margin: 50px 0 30px;
  letter-spacing: 1px;
}

/* ============================================================
   MAPAS (GRID 4x1 EN PANTALLAS GRANDES)
   ============================================================ */
.grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 🔹 1 fila con 4 columnas */
  gap: 25px;
  max-width: 1600px; /* 🔹 ancho amplio */
  margin: 0 auto 60px;
  padding: 0 20px;
  box-sizing: border-box;
}

.ubicacion {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.ubicacion:hover {
  transform: translateY(-5px);
}

.cuadro {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  color: #333;
}

.cuadro i {
  font-size: 28px;
  color: #ffbb00;
}

.map-container iframe {
  width: 100%;
  height: 250px;
  border: none;
  border-radius: 8px;
}

/* ============================================================
   RESPONSIVIDAD GENERAL (AJUSTES DE COLUMNAS)
   ============================================================ */

/* Pantallas medianas (2 columnas) */
@media (max-width: 1100px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Pantallas pequeñas (1 columna) */
@media (max-width: 600px) {
  .grid-container {
    grid-template-columns: 1fr;
  }

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

  .titulo-sucursales {
    font-size: 2rem;
  }
}
