/* Estilos generales */
/* Agrega esto en tu CSS */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* Para prevenir scroll horizontal */
}

* {
  box-sizing: border-box;
}
/*CABECERA*/ 
header {
  background-color: #2e326e;  
  padding: 20px;
  width: 100%; 
  position: fixed; /* Si quieres que el header sea fijo */
  top: 0;
  left: 0;
  z-index: 1000;
}
/* Navegación principal */
.nav-container {
  background-color: #2e326e;  
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0; /* Espaciado lateral */
}
.logo {
  flex-shrink: 0; /* Evita que el logo se encoja */
}
.logo img {
  height: 80px;
  width: auto;
}
.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
  margin-left: auto; /* Empuja los enlaces hacia la derecha */
}
.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 20px;
  font-weight: 500;
  padding: 8px 12px;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ff4b4b;
}

/* Menú hamburguesa para móvil */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: white;
  margin: 5px 0;
  transition: 0.3s;
}
/*FIN CABECERA*/

/*PARA MI CARRUCEL*/
.slider-container {
  position: relative;
  width: 100%;
  height: calc(100vw / 1.54); /* Altura proporcional a la imagen */
  overflow: hidden;
}

.slider-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover; /* Cubre el contenedor */
  background-position: top; /* Mantén visible la parte superior de la imagen */
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slider-image.active {
  opacity: 1;
}

@media (max-width: 768px) {
  .slider-container {
    height: 60vh; /* Reduce la altura del slider en móviles */
  }

  .slider-image {
    background-position: center; /* Centra la imagen en móviles */
  }
}
/*FIN CARRUCEL*/

/* REQUISITOS*/
.cont-requi {
  width: 100%;
  max-width: 1200px;
  height: 350px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgb(252, 250, 250);
  text-align: center;
  flex-direction: column;
  padding: 0;
}
.titulo-requisitos {
  margin-bottom: 40px; /* Espacio entre título e imágenes */
  color: rgb(7, 7, 7);
  font-size: 32px;
  font-weight: bold;
  width: 100%;
  text-align: center;
}
.image-wrapper {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.image-wrapper h2 {
  position: absolute;
  margin-bottom: 20px;
  top: 0;
  width: 100%;
  color: rgb(7, 7, 7);
  font-size: 32px;
  background-color: rgb(252, 250, 250);
  padding: 10px 0;
  z-index: 1;
}

.slide {
  width: 200px;
  height: 200px;
  background: transparent; /* Cambiado a transparente para quitar el fondo blanco */
  border: none;
  border-radius: 50%; /* Cambiado a 50% para hacer un círculo perfecto */
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.5s ease-out;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden; /* Añadido para mantener el contenido dentro del círculo */
  background: rgba(255, 255, 255, 0.1); /* fondo sutil */
  backdrop-filter: blur(5px); /* efecto de vidrio esmerilado */
  transition: transform 0.3s ease;
}

.slide.active {
  opacity: 1;
  transform: translateX(0);
}

.slide img {
  width: 80%; /* Cambiado para tener un tamaño fijo */
  height: 80%; /* Cambiado para tener un tamaño fijo */
  object-fit: cover;
  border-radius: 50%; /* Añadido para hacer la imagen circular */
}
.slide:hover {
  transform: scale(1.05); /* efecto de zoom suave al pasar el mouse */
}

/* FIN REQUISITOS*/

/* PIE Y REDES SOCIALES*/
/* Estilos del footer */
footer {
  background-color: #2e326e;
  color: #fff;
  text-align: center;
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.footer-seccion {
    flex: 1;
    min-width: 150px;
    margin: 10px;
}
.social-icons a {
  margin-right: 10px;
  color: #333;
}
footer .text-center {
color: #fff;
}
.footer h3 {  
  font-size: 24px;
  color: #fff;
  margin-bottom: 20px;
  font-weight: bold;
}
.footer p, .footer a {
  color: #fff;
  text-decoration: none;
  line-height: 1.6;
}
.footer a:hover {
  text-decoration: underline;
}
.social-icons a {
  margin-right: 15px;
  font-size: 24px;
}
/**FIN REDES SOCIALES*/

/*sucursales*/
.container-sucu {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;  
}

.content-wrapper {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.sucursales-header {
  text-align: center;
  margin-bottom: 30px; 
}

.sucursales-header h2 {
  font-size: 32px;
  font-weight: bold;
  color: rgb(7, 7, 7);
  display: block; /* Cambiado de inline-block a block */
  margin: 0 auto; /* Centrar el título */
  padding: 0 20px; /* Mantener el padding */
  background-color: #fff;
  position: relative;
  z-index: 1;
}

.map-section {
  flex: 1;
  min-width: 300px;
  height: 400px;
  background-color: #f5f5f5;
  border-radius: 8px;
  overflow: hidden;
}

.info-section {
  flex: 1;
  min-width: 300px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  overflow: hidden;
}

.location-selector {
  padding: 10px;
  margin: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: calc(100% - 20px);
}

.info-content {
  padding: 20px;
}

.info-section h2 {
  color: #333;
  margin-bottom: 15px;
}

.info-item {
  margin-bottom: 20px;
}

.info-item h3 {
  color: #2e326e;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-item p {
  color: #666;
  margin-left: 25px;
  line-height: 1.5;
}

.image-preview {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  margin-top: 20px;
}
/*FIN SUCURSALES

/*SERVICIOS ADICIONALES*/
.cont-adicional {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.bg-light {
  background-color: #f8f9fa;
  padding: 80px 0;
}

.text-center {
  text-align: center;
}

.mb-5 {
  margin-bottom: 3rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: -15px;
}

.col-md-4 {
  flex: 0 0 33.333%;
  max-width: 33.333%;
  padding: 15px;
}

.card {
  background: white;
  border-radius: 12px;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.card-body {
  padding: 2rem;
}

.text-primary {
  color: #0d6efd; /* Color principal, puedes cambiarlo según tu paleta */
}

.mb-3 {
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.card-text {
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 0;
}

.fa-3x {
  font-size: 3em;
}
/*FIN ADICIONALES*/

/*MISION VSION*/
/* Estilos base para la sección */
.mvision {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 4rem 2rem;
  background-color: #f8f9fa;
}

.seccion-mvision {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

/* Estilos para la tarjeta */
.mvision-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mvision-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Estilos para la imagen */
.mvision-img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

/* Animación de entrada */
@keyframes fadeIn {
  from {
      opacity: 0;
      transform: translateY(20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}
/*FIN MVISION*/

/*PREGUNTAS PRECUENTES*/
.pfrecuentes {
  padding: 2rem 1rem;
  background-color: #ffffff;
  width: 100%;
}

.seccion-pfrecuentes {
  max-width: 95%;
  margin: 0 auto;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Estilos para las tarjetas */
.pfrecuentes-card {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
}

.pfrecuentes-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Estilos para las imágenes */
.pfrecuentes-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.pfrecuentes-card:hover .pfrecuentes-img {
  transform: scale(1.02);
}

/* Animación de entrada */
@keyframes slideIn {
  from {
      opacity: 0;
      transform: translateX(-20px);
  }
  to {
      opacity: 1;
      transform: translateX(0);
  }
}

.pfrecuentes-card {
  animation: slideIn 0.6s ease forwards;
}

/*stilos de blog*/
/* Estilos para la sección del blog */
.blog-section {
  padding: 4rem 1rem;
  background-color: #f8f9fa;
}

.blog-container {
  max-width: 1200px;
  margin: 0 auto;
}

.blog-title {
  text-align: center;
  font-size: 2.5rem;
  color: #2d3748;
  margin-bottom: 3rem;
  font-weight: 700;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 0 1rem;
}

/* Estilos para las tarjetas de blog */
.blog-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.blog-image-container {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.blog-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-image {
  transform: scale(1.05);
}

.blog-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(0, 0, 0, 0.75);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
}

.blog-content {
  padding: 1.5rem;
}

.blog-card-title {
  font-size: 1.25rem;
  color: #2d3748;
  margin-bottom: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
}

.blog-excerpt {
  color: #4a5568;
  font-size: 0.975rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.blog-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.blog-date {
  color: #718096;
  font-size: 0.875rem;
}

.blog-read-more {
  color: #2b6cb0;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.975rem;
  transition: color 0.3s ease;
}

.blog-read-more:hover {
  color: #2c5282;
}

/* Estilos para la sección de contactanos */
.contactanos-section {
  padding: 5rem 1rem;
  background-color: #f8f9fa;
}

.contactanos-container {
  max-width: 1200px;
  margin: 0 auto;
}

.contactanos-header {
  text-align: center;
  margin-bottom: 3rem;
}

.contactanos-header h2 {
  font-size: 2.5rem;
  color: #070707;  
  margin-bottom: 1rem;
  font-weight: bold;
}

.contactanos-header p {
  color: #4a5568;
  font-size: 1.1rem;
}

.contactanos-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* Estilos para la información de contacto */
.contactanos-info {
  padding: 2rem;
  background: #2b6cb0;
  color: white;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.info-card {
  text-align: center;
  padding: 1.5rem;
}

.info-card i {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.info-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.info-card p {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Estilos para el formulario */
.contactanos-form {
  padding: 2rem;
}

.form-header {
  margin-bottom: 2rem;
}

.form-header h3 {
  font-size: 1.5rem;
  color: #2d3748;
  margin-bottom: 0.5rem;
}

.form-header p {
  color: #718096;
}

.form-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.input-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.input-group input,
.input-group textarea,
.input-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.input-group select {
  color: #4a5568;
}

.input-group label {
  position: absolute;
  left: 1rem;
  top: 0.75rem;
  color: #718096;
  transition: all 0.3s ease;
  pointer-events: none;
}

.input-group input:focus,
.input-group textarea:focus {
  border-color: #2b6cb0;
  outline: none;
}

.input-group input:focus + label,
.input-group textarea:focus + label,
.input-group input:not(:placeholder-shown) + label,
.input-group textarea:not(:placeholder-shown) + label {
  transform: translateY(-1.5rem);
  font-size: 0.875rem;
  color: #2b6cb0;
  background: white;
  padding: 0 0.5rem;
}

.submit-btn {
  width: 100%;
  padding: 1rem;
  background: #2e326e;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.submit-btn:hover {
  background: #2c5282;
}