/* =========================================
   Variables y Estilos Globales
   ========================================= */
body {
  margin: 0;
  padding: 0;
  background-color: #030303;
  color: #e1e2e1;
  min-height: 100vh;
  
  /* Mejoras de tipografía */
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  
  /* Evitar que el texto sea seleccionable */
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none;    /* Firefox */
  -ms-user-select: none;     /* IE 10+ */
  user-select: none;         /* Estándar */
}

h1, h2, h3 {
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 15px;
  text-wrap: pretty;
}

p {
  color: #cccccc; 
  font-size: 1.05rem;
  margin-bottom: 15px;
  text-wrap: pretty;
}

a {
  text-decoration: none;
}

/* Mejora en las imágenes globales */
img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  margin-left: auto;
  margin-right: auto;
}

section {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 1200px;
  padding: 0 15px;
}

/* =========================================
   Navegación e Iconos
   ========================================= */
.nav {
  line-height: 1;
}
.nav-link {
  filter: invert(1);
  transition: transform 0.2s ease-in-out;
}

.nav-link:hover {
  transform: scale(1.3);
}

.icono {
  display: inline-block;
  animation: bounceIn 1s ease-out;
}

.icono-footer {
  display: inline-block;
  animation: bounceIn 1s ease-out;
  filter: invert(1);
  transition: transform 0.08s ease-out; /* Reacción instantánea */
}

.icono-footer:hover {
  transform: scale(1.3);
}

@keyframes bounceIn {
  0% { transform: translateY(-50px); opacity: 0; }
  60% { transform: translateY(5px); opacity: 1; }
  80% { transform: translateY(-5px); }
  100% { transform: translateY(0); }
}

/* =========================================
   Imágenes Especiales (Banners) y Layout
   ========================================= */
.hmp-imagen {
  max-width: 35vh; 
  margin-left: auto;
  margin-right: auto;
}

.hmp-banner {
  text-align: center;
  padding: 10px 0;
}

.footer-logo {
  max-width: 450px; 
  width: 100%;
  height: auto;
}

/* Esta clase empuja el contenido de abajo (como el carrusel) 
   para obligar al usuario a hacer scroll */
.espacio-scroll {
  margin-bottom: 15vh;
}

/* =========================================
   Carruseles
   ========================================= */
.carousel-inner {
  margin-left: auto;
  margin-right: auto;
}

#carouselExample {
  max-width: 100%;
  margin: 0 auto;
}

#carouselExample .carousel-item img {
  height: auto;
  max-height: 625px;
  width: 100%;
  object-fit: contain;
}

/* Transición de imágenes más sutil */
.carousel-item {
  transition: transform 0.9s ease-in-out !important; 
}

/* =========================================
   Videos de YouTube (Sesiones) - EFECTO HOVER
   ========================================= */
.ratio {
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #000;
}

.ratio:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
  z-index: 2;
  position: relative;
}

iframe {
  border: none;
}

/* =========================================
   Responsive (Media Queries)
   ========================================= */
@media (min-width: 1920px) {
  .hmp-imagen {
    max-width: 50vh; 
    object-fit: contain; 
  }
}