/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: sans-serif;
  width: 100%;
  overflow-x: hidden;
  color: #333;
}


/* CARRUSEL */
.slider-container {
  margin-top: 60px;
  position: relative;
  width: 100%;
  height: calc(100vw / 1.54);
  overflow: hidden;
}

.slider-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: top;
  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;
  }

  .slider-image {
    background-position: center;
  }
}

/* REQUISITOS */
.cont-requi {
  width: 100%;
  background-color: #fcfaf9;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.titulo-requisitos {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 40px;
  text-align: center;
}

.requi-header h2 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 30px;
  text-align: center;
}

.image-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.slide {
  width: 200px;
  height: 200px;
  background: transparent;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.slide img {
  width: 80%;
  height: 80%;
  object-fit: cover;
  border-radius: 50%;
}

.slide:hover {
  transform: scale(1.05);
}

/* PIE DE PÁGINA */
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;
  margin-bottom: 15px;
}

.footer p, .footer a {
  color: white;
  text-decoration: none;
  line-height: 1.6;
}

.footer a:hover {
  text-decoration: underline;
}

.social-icons a {
  margin-right: 15px;
  font-size: 24px;
}

/* SUCURSALES */
.container-sucu {
  width: 100%;
  padding: 40px 20px;
  background-color: #fff;
}

.sucursales-header h2 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 30px;
  text-align: center;
}

.content-wrapper {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}

.map-section {
  flex: 1;
  min-width: 300px;
  height: 400px;
  background-color: #f5f5f5;
  border-radius: 8px;
  overflow: hidden;
}

.map-section iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.info-section {
  flex-shrink: 0;
  flex-basis: 350px;
  width: 350px;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.location-selector {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin: 10px 0;
}

.info-content {
  padding: 0;
  width: 300px;
}

.info-item h3 {
  color: #2e326e;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-item p {
  color: #666;
  margin-left: 0;
  line-height: 1.5;
  white-space: normal;
  word-wrap: break-word;
}

/* SERVICIOS ADICIONALES */
.cont-adicional {
  width: 100%;
  padding: 80px 20px;
  background-color: #f8f9fa;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.col-md-4 {
  flex: 1;
  min-width: 280px;
  max-width: 350px;
}

.card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.card-body {
  padding: 2rem;
  text-align: center;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.card-text {
  color: #6c757d;
}

.fa-3x {
  font-size: 3em;
}

/* MISION Y VISION */
.mvision {
  width: 100%;
  padding: 4rem 2rem;
  background-color: #f8f9fa;
  display: flex;
  justify-content: center;
}

.seccion-mvision {
  width: 100%;
  max-width: 1200px;
}

.mvision-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

.mvision-img {
  width: 100%;
  border-radius: 10px;
}

/* PREGUNTAS FRECUENTES */
.pfrecuentes {
  width: 100%;
  padding: 2rem 1rem;
  background-color: #fff;
}

.seccion-pfrecuentes {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.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: transform 0.3s ease;
}

.pfrecuentes-card:hover {
  transform: translateY(-5px);
}

.pfrecuentes-img {
  width: 100%;
  height: auto;
}

/* BLOG */
.blog-section {
  width: 100%;
  padding: 4rem 1rem;
  background-color: #f8f9fa;
}

.blog-container {
  max-width: 1200px;
  margin: 0 auto;
}

.blog-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  font-weight: 700;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.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;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.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;
  margin-bottom: 0.75rem;
}

.blog-excerpt {
  color: #4a5568;
  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;
}

.blog-read-more {
  color: #2b6cb0;
  text-decoration: none;
}

.blog-read-more:hover {
  text-decoration: underline;
}

/* CONTACTANOS */
.contactanos-section {
  width: 100%;
  padding: 5rem 1rem;
  background-color: #f8f9fa;
}

.contactanos-container {
  max-width: 1200px;
  margin: 0 auto;
}

.contactanos-header h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1rem;
}

.contactanos-header p {
  text-align: center;
  color: #4a5568;
  margin-bottom: 2rem;
}

.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;
}

.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;
}

.contactanos-form {
  padding: 2rem;
}

.form-header h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.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;
}

.input-group label {
  position: absolute;
  left: 1rem;
  top: 0.75rem;
  color: #718096;
  pointer-events: none;
  transition: all 0.3s ease;
}

.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;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.submit-btn:hover {
  background: #2c5282;
}

/* RESPONSIVE - Media Queries */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-direction: column;
    gap: 15px;
    margin-left: 0;
    margin-top: 15px;
  }

  .hamburger {
    display: block;
  }

  .content-wrapper {
    flex-direction: column;
  }

  .map-section,
  .info-section {
    width: 100%;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .contactanos-content {
    grid-template-columns: 1fr;
  }
}