.contenedor-primero {
  display: flex;
  height: 80vh;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
 .left-section {
  position: relative;
  width: 70cm;
  height: 70vh;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: right;
  justify-content: right;
}

.titulo-Seccion {
  font-size: 2rem;
  margin-bottom: 8px;
  text-align: center;
  block-size: auto;
  animation: cambiarColor 6s infinite ease-in-out;
}

@keyframes cambiarColor {
  0%   { color: #0c0380; }
  33%  { color: #007BFF; }
  66%  { color: #616161; }
  100% { color: #242424; }
}


.titulo-principal {
  font-size: 2rem;
  margin-bottom: 6px;
  color: #0d47a1;
  text-align: center;
}

.subtitulo {
  font-size: 1.3rem;
  color: #555;
  margin-bottom: 10px;
  text-align: center;
}

.intro-texto {
  font-size: 1rem;
  color: #666;
  margin-bottom: 30px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.slider-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
  width: 100%;
  height: 100%;
}

.slide {
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 15px;
  transform: translateY(-50%);
  z-index: 10;
}

.controls .btn {
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 10px 15px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.controls .btn:hover {
  background: rgba(255, 255, 255, 0.8);
  color: #111;
  transform: scale(1.1);
}

.dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
  z-index: 10;
}

.dots span {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.dots span.active {
  background: #fff;
  transform: scale(1.2);
}


.form-title2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #0078d7;
  text-align: center;
  width: 100%;
}

#contactForm {
  display: flex;
  flex-direction: column;
  padding: 0.5cm;
  width: 10cm;
}

#contactForm label {
  font-size: 0.95rem;
  font-weight: 500;
  color: #444;

  display: block;
  width: 100%;
}

#contactForm input,
#contactForm select,
#contactForm textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  font-size: 0.95rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  font-family: inherit;
  background: #fafafa;
}

#contactForm input:focus,
#contactForm select:focus,
#contactForm textarea:focus {
  border-color: #0078d7;
  box-shadow: 0 0 6px rgba(0, 120, 215, 0.3);
  background: #fff;
}

#contactForm button {
  width: 100%;
  background: #0078d7;
  color: #fff;
  border: none;
  border-radius: 8px;
  margin-top: 15px;
  padding: 10px 0 10px 0;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

#contactForm button:hover {
  background: #005bb5;
  transform: translateY(-2px);
}

#contactForm button:active {
  transform: translateY(0);
}
@media (max-width: 768px) {
  .slide {
    height: 350px;
  }

  .controls .btn {
    font-size: 1.5rem;
    padding: 8px 12px;
  }

  .dots span {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 480px) {
  .slide {
    height: 250px;
  }

  .controls .btn {
    font-size: 1.2rem;
    padding: 6px 10px;
  }
  .right-section {
    padding: 20px;
  }
  .form-title2 {
    font-size: 1.5rem;
  }
  #contactForm button {
    font-size: 0.95rem;
    padding: 12px;
  }
}



.contenedor-tarjetas {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
}

.tarjeta {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  flex: 1 1 300px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tarjeta:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.tarjeta-imagen {
  width: 100%;
  height: 220px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.tarjeta-imagen img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.tarjeta-titulo {
  font-size: 1.2rem;
  margin: 12px;
  color: #222;
}

.tarjeta-texto {
  font-size: 0.95rem;
  margin: 0 15px 15px;
  color: #555;
  flex-grow: 1;
}

.tarjeta-link {
  margin: 0 15px 20px;
  color: #007BFF;
  text-decoration: none;
  font-weight: bold;
  align-self: flex-start;
  font-size: 14px;
  transition: color 0.3s ease;
}

.tarjeta-link:hover {
  text-decoration: underline;
  color: #0056b3;
}


@media (max-width: 992px) {
  .contenedor-tarjetas {
    gap: 15px;
  }

  .tarjeta {
    flex: 1 1 45%;
    max-width: none;
  }
}

@media (max-width: 600px) {
  .tarjeta {
    flex: 1 1 100%;
  }

  .tarjeta-imagen {
    height: 180px;
  }

  .tarjeta-titulo {
    font-size: 1.1rem;
  }

  .tarjeta-texto {
    font-size: 0.9rem;
  }
}


.columna-texto, 
.columna-imagen {
  flex: 1 1 50%;
  padding: 20px;
}

.columna-texto, 
.columna-imagen {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.columna-texto p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 20px;
}

.btn-azul {
  display: inline-block;
  background: #0d47a1;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-azul:hover {
  background: #08306b;
  transform: translateY(-2px);
}

.columna-imagen img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.section-nosotros {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

@media (max-width: 768px) {
  .section-nosotros {
    flex-direction: column;
    text-align: center;
  }

  .columna-texto, 
  .columna-imagen {
    flex: 1 1 100%;
    padding: 10px;
  }

  .btn-azul {
    margin: 0 auto;
  }
}



  
.container-eligenos {
  display: flex;
  height: auto;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1rem;
  flex-wrap: wrap;
}

.left-section {
  position: relative;
  flex: 1 1 45%;
  min-width: 280px;
  height: 70vh;
  background: #ddd;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.text-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%);
  z-index: 2;
  font-size: 2.5rem;
  font-weight: bold;
  color: #222;
  user-select: none;
  transition: opacity 0.4s ease;
  text-align: center;
  padding: 0 1rem;
}


.bg-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  top: 0;
  left: 0;
  z-index: 1;
}

.right-section {
  flex: 1 1 45%;
  min-width: 280px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 1.5rem;
  height: 70vh;
  overflow-y: auto;
  padding: 1rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 0 12px rgb(0 0 0 / 0.1);
}

.reason {
  background-color: #fff;
   border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease, color 0.3s ease;
  outline: none;
  user-select: none;
}

.reason img {
  width: 25px;
  height: 25px;
  margin-bottom: 0.5rem;
  filter: grayscale(80%);
  transition: filter 0.3s ease;
}

.reason h3 {
  font-weight: 380;
  font-size: 1.2rem;
  color: #444;
  margin-bottom: 0.3rem;
  transition: color 0.3s ease;
}

.reason p {
  font-size: 0.7rem;
  color: #666666;
  text-align: center;
  transition: color 0.3s ease;
}


@media (max-width: 992px) {
  .container-eligenos {
    flex-direction: column;
    gap: 2rem;
  }

  .left-section,
  .right-section {
    width: 100%;
    height: auto;
  }

  .text-container {
    font-size: 2rem;
  }

  .right-section {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .text-container {
    font-size: 1.6rem;
  }

  .right-section {
    grid-template-columns: 1fr;
    height: auto;
  }

  .reason h3 {
    font-size: 1rem;
  }

  .reason p {
    font-size: 0.85rem;
  }
}




.contenedor-padre {
  text-align: center;
  padding: 30px 10px;
  background-color: transparent;
  color: white;
  font-size: 2.5rem;
  font-weight: bold;
}

.contenedor-tarjetas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  padding: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.tarjeta {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.tarjeta:hover {
  transform: scale(1.05);
}

.imagen-contenedor {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.imagen-fondo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.icono {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 50px;
  height: 50px;
  transition: transform 0.3s ease;
}

.tarjeta:hover .imagen-fondo {
  transform: scale(1.1);
}

.tarjeta:hover .icono {
  transform: scale(1.3);
}

.contenido {
  padding: 20px;
}

.titulo {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
  transition: color 0.3s ease;
}

.tarjeta:hover .titulo {
  color: #004aad;
}

.descripcion {
  font-size: 1rem;
  color: #555;
  line-height: 1.4;
}