/* ==========================
   ESTILOS DEL CARRUSEL
   ========================== */
#carouselExampleControls {
  width: 100%;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

/* Imágenes del carrusel */
.carousel-item img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

/* Texto sobre las imágenes (por defecto en escritorio) */
.carousel-caption {
  background: rgba(230, 224, 224, 0.7);
  padding: 15px 25px;
  border-radius: 8px;
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 80%;
}

.carousel-caption h5 {
  font-size: 1.8rem;
  font-weight: bold;
  color: black;
}

.carousel-caption p {
  font-size: 1rem;
  color: black;
}

/* ==========================
   RESPONSIVE
   ========================== */
@media (max-width: 992px) {
  .carousel-item img {
    height: 350px;
  }
}

/* ----- Ajuste para móviles ----- */
@media (max-width: 576px) {
  .carousel-item img {
    height: 220px;
  }

  /* Texto debajo de la imagen */
  #carouselExampleControls .carousel-caption {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    background: #f9f9f9 !important;
    color: #000 !important;
    margin-top: 8px;
    border-radius: 0;
    max-width: 100%;
    text-align: center;
    padding: 10px 15px;
  }

  #carouselExampleControls .carousel-caption h5 {
    font-size: 1.1rem;
  }

  #carouselExampleControls .carousel-caption p {
    font-size: 0.9rem;
  }
}





/* ==========================
   FOOTER
   ========================== */
.footer {
  background-color: #115395; /* Azul fuerte */
  color: #fff;
  font-size: 0.95rem;
}

.footer h5 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  font-weight: bold;
}

.footer p {
  margin: 0;
  line-height: 1.6;
}

/* Iconos de redes sociales */
.footer a {
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #00aced; /* Azul celeste al pasar el mouse */
}


.custom-box {
  background-color: #20c997; /* verde agua */
  color: white;
  border-radius: 12px;
  min-height: 180px;  /* asegura altura mínima */
  display: flex;
  flex-direction: column;  /* contenido en columna */
  justify-content: space-between; /* texto arriba, botón abajo */
}

.custom-box h4 {
  font-weight: bold;
}

.custom-box p {
  margin-bottom: 20px; /* espacio antes del botón */
}

.custom-btn {
  align-self: flex-end; /* botón a la derecha */
}



/* ============================
   CARRUSEL DE TARJETAS
   ============================ */

.custom-carousel-wrapper {
  position: relative;
  overflow: hidden;
  margin-top: 20px;
  width: 100%;

  /* ESPACIO PARA LAS FLECHAS */
  padding-left: 60px;
  padding-right: 60px;
}

/* Carrusel */
.custom-carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

/* ============================
   TARJETAS
   ============================ */

.custom-card {
  min-width: calc(33.33% - 20px);
  margin-right: 20px;
  box-sizing: border-box;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0px 2px 10px rgba(0,0,0,0.1);
  text-align: center;
  overflow: hidden;
}

.custom-card img {
  width: 100%;
  display: block;
}

/* Contenido */
.card-body {
  padding: 20px;
}

.card-title {
  font-size: 20px;
  margin-bottom: 10px;
}

.card-text {
  font-size: 15px;
  color: #555;
}

/* ============================
   FLECHAS
   ============================ */

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: #ffffff;
  border: 1px solid #ddd;
  color: #000;
  font-size: 22px;
  line-height: 38px;
  text-align: center;
  cursor: pointer;
  border-radius: 6px;
  z-index: 20;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Izquierda */
.carousel-btn.prev {
  left: 10px;
}

/* Derecha */
.carousel-btn.next {
  right: 10px;
}

/* ============================
   RESPONSIVE
   ============================ */

/* Tablet → 2 tarjetas */
@media (max-width: 1024px) {
  .custom-card {
    min-width: calc(50% - 20px);
  }

  .custom-carousel-wrapper {
    padding-left: 50px;
    padding-right: 50px;
  }
}

/* Móvil → 1 tarjeta */
@media (max-width: 768px) {
  .custom-card {
    min-width: 100%;
  }

  .custom-carousel-wrapper {
    padding-left: 40px;
    padding-right: 40px;
  }

  .carousel-btn {
    width: 34px;
    height: 34px;
    font-size: 20px;
    line-height: 32px;
  }
}



/* ==========================
   FORMULARIO
   ========================== */
.formulario {
  background-color: #e0e0e0; /* Gris medio */
  padding: 30px;
  border-radius: 12px;
  width: 100%;
  max-width: 700px;
  margin: 40px auto;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Título del formulario */
.formulario h2 {
  font-weight: bold;
  color: #333;
}

/* Ajuste de labels */
.formulario label {
  font-weight: 500;
  color: #222;
}

/* Inputs y textarea */
.formulario .form-control {
  border-radius: 6px;
  border: 1px solid #ccc;
  padding: 8px 10px;
}

/* Botón */
.formulario button {
  background-color: #0033A0;
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.formulario button:hover {
  background-color: #115395;
}

/* ✅ Responsivo:
   - En escritorio (>= 576px) → label a la izquierda, input a la derecha
   - En móvil (< 576px) → label arriba, input abajo */
@media (max-width: 575.98px) {
  .formulario .row {
    flex-direction: column;
  }
  .formulario .col-sm-4,
  .formulario .col-sm-8 {
    width: 100%;
  }
  .formulario label {
    margin-bottom: 5px;
  }
}

/*mensaje de confirmacion de informacion enviada en el formulario*/

 .checkmark {
    font-size: 150px; /* Tamaño mucho más grande */
    color: #28a745;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: bounceIn 0.8s ease-in-out;
  }

  @keyframes bounceIn {
    0% {
      transform: scale(0);
      opacity: 0;
    }
    60% {
      transform: scale(1.4);
      opacity: 1;
    }
    80% {
      transform: scale(0.9);
    }
    100% {
      transform: scale(1);
    }
  }

  #mensajeGracias {
    background-color: #f0fff0; /* Verde muy claro */
    padding: 50px 20px;
    border-radius: 20px;
  }

  #mensajeGracias p {
    margin: 0;
  }