/* GLOBAL STYLES
-------------------------------------------------- */
/* Padding below the footer and lighter body text */

body {
  /* padding-top: 3rem; */
  padding-bottom: 3rem;
  color: #5a5a5a;
  background-color: #f8f9fa;
}


/* CUSTOMIZE THE CAROUSEL
-------------------------------------------------- */
/* Base del carousel */
.carousel {
  margin-bottom: 4rem;
}

/* Caption general */
.carousel-caption {
  bottom: 3rem;
  z-index: 10;
  color: white;
  text-align: center;
  /* Aseguramos que el texto sea blanco para buen contraste */
  padding: 0 15px;
  /* Agregar espacio para que el texto no toque los bordes */
}

/* Capa negra encima del video */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  /* Negro claro (40% de opacidad) */
  z-index: 1;
}

/* Ajuste de las imágenes o videos en el carousel */
.carousel-item {
  height: 32rem;
  position: relative;
}

/* Video visible solo en pantallas grandes */
@media (min-width: 768px) {
  .carousel-item>video {
    position: absolute;
    top: 0;
    left: 0;
    min-width: 100%;
    height: 100%;
    object-fit: cover;
    /* Para que el video cubra el área sin deformarse */
    z-index: 0;
  }

  .carousel-caption {
    bottom: 5rem;
    /* Ajustar la posición del texto en pantallas más grandes */
    font-size: 2rem;
    /* Tamaño más grande para mejor legibilidad */
  }
}

/* Para pantallas medianas y pequeñas (responsivo) */
@media (max-width: 768px) {
  .carousel-item {
    height: 250px;
    /* Para que la altura se ajuste automáticamente */
  }

  .carousel-caption {
    bottom: 1rem;
    z-index: 10;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.5);
    /* Fondo oscuro solo para móviles */
    border-radius: 10px;
    /* Opcional, para redondear las esquinas */
    font-size: 1.2rem;
    /* Ajustar el tamaño del texto */
  }

   .carousel-item>video {
    /* display: none; */
    /* Ocultar el video en pantallas móviles */
    position: absolute;
    top: 0;
    left: 0;
    min-width: 100%;
    height: 100%;
    object-fit: cover;
    /* Para que el video cubra el área sin deformarse */
    z-index: 0;
  } 

  .overlay {
    background-color: rgba(0, 0, 0, 0.6);
    /* Fondo más oscuro en móviles */
  }
}

/* Para pantallas muy pequeñas (teléfonos) */
@media (max-width: 480px) {
  .carousel-caption {
    font-size: 1rem;
    /* Aún más pequeño para teléfonos */
    padding: 0.5rem;
    /* Reducir el padding en pantallas muy pequeñas */
  }

  .btn {
    font-size: 0.9rem;
    /* Ajustar el tamaño de los botones en pantallas pequeñas */
  }
}


/* MARKETING CONTENT
-------------------------------------------------- */

/* Center align the text within the three columns below the carousel */
.marketing .col-lg-4 {
  margin-bottom: 1.5rem;
  text-align: center;
}

.marketing h2 {
  font-weight: 400;
}

/* rtl:begin:ignore */
.marketing .col-lg-4 p {
  margin-right: .75rem;
  margin-left: .75rem;
}

/* rtl:end:ignore */


/* Featurettes
------------------------- */

.featurette-divider {
  margin: 5rem 0;
  /* Space out the Bootstrap <hr> more */
}

/* Thin out the marketing headings */
.featurette-heading {
  font-weight: 300;
  line-height: 1;
  /* rtl:remove */
  letter-spacing: -.05rem;
}


/* RESPONSIVE CSS
-------------------------------------------------- */

@media (min-width: 40em) {

  /* Bump up size of carousel content */
  .carousel-caption p {
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    line-height: 1.4;
  }

  .featurette-heading {
    font-size: 50px;
  }
}

@media (min-width: 62em) {
  .featurette-heading {
    margin-top: 7rem;
  }
}