:root {
    --primary-color: #ffffff;
    --background-color: #000000;
}

body {
    background-color: var(--background-color);
    color: var(--primary-color);
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/*modal*/
#player-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  padding: 1rem;
  box-sizing: border-box;
  
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
}

#player-modal video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background-color: black;
  color: red;
  font-size: 3rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  z-index: 10000;
  opacity: 0; /* Oculto por defecto */
  transition: opacity 0.3s ease;
}

.image-wrapper {
  position: relative;
  display: inline-block;
}

.image-wrapper img:first-child {
  width: 100%;
  height: auto;
  display: block;
}

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0.9;
}

/* Header y Navegación */

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 3rem 5px;
    
    position: fixed;
    width: 100%;
    z-index: 10;
    box-sizing: border-box;
}
.main-header.scrolled {
  background: rgba(0, 0, 0, 0.5); /* Fondo negro con 50% transparencia */
}
.main-header .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #e50914; 
    
}

.main-header .logo img{
width: 20%;
}
.main-header nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.main-header nav ul li {
  margin-left: 20px;
}

.main-header nav ul li a,
.user-menu a {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 1rem;
  padding-bottom: 0.25rem;
  transition: color 0.3s ease, border-bottom 0.3s ease;
}

/* Hover: cambia el color a rojo */
.main-header nav ul li a:hover,
.user-menu a:hover {
  color: red;
}

/* Enlace activo con línea roja debajo */
.main-header nav ul li a.activo,
.user-menu a.activo {
  border-bottom: 2px solid rgb(161, 189, 247);
  color: rgb(176, 202, 250);
}

/* Banner Principal */
#banner-container {
  height: 100vh;
  background-size: cover;
  background-position: center center;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden; /* Por si algo se sale */
}

/* Overlay de texto */
.banner-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0));
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 3rem;
  box-sizing: border-box;
  transition: opacity 0.5s ease-in-out;
  z-index: 2;  
}

#banner-title {
  font-size: 3rem;
  margin: 0 0 1rem 0;
}

#banner-description {
  font-size: 1.2rem;
  max-width: 50%;
  display: flex;
  justify-content: center;    /* Centra horizontalmente */
  text-align: center;         /* Centra texto internamente */
}

/* Botones de navegación */
.banner-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: white;
  background: rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  padding: 0.5rem 1rem;
  z-index: 3;
  transition: background 0.3s ease;
}

.banner-nav:hover {
  background: rgba(0, 0, 0, 0.6);
}

.banner-nav.left {
  left: 10px;
}

.banner-nav.right {
  right: 10px;
}

/* Indicadores */
#banner-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 4;
}

#banner-indicators .indicator {
  width: 24px;
  height: 6px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 3px;
  transition: background 0.3s ease;
  cursor: pointer;
}

#banner-indicators .indicator.active {
  background: white;
}
.control-visible {
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none; /* Evita clics cuando están ocultos */
}

.banner-container-show .control-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Carruseles */
.img-redonda {
  border-radius: 50%;
  object-fit: cover;
}

.carousel-section {
    padding: 1rem 3rem;
}

.carousel-container {
    display: flex;
    overflow-x: auto; /* Permite scroll horizontal */
    overflow-y: hidden;
    padding-bottom: 1rem;
}

.carousel-item {
    flex: 0 0 15%; /* Cada item ocupa el 15% del contenedor */
    margin-right: 10px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.carousel-item:hover {
    transform: scale(0.9);
}

.carousel-item img {
    width: 30%;
    height: 30%;
    aspect-ratio: 1920 / 1080; /* Mantiene la proporción */
    display: block;
    border-radius: 12px;
}
img:hover {
  border: 2px solid rgb(255, 255, 255);
}
/* Ocultar scrollbar pero mantener funcionalidad */
.carousel-container::-webkit-scrollbar {
    display: none;
}
.carousel-texto {
  font-size: 0.9rem;
  color: #eceaea;
  text-align: left;
  margin-top: 0.25rem;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  width: 100%;
  display: block;
}
.descripcion-resumida {
  width: 100%;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 1rem;
  color: #555;
  margin-top: 0.5rem;
}
/* Modal del Reproductor */
.modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    position: relative;
    margin: auto;
    top: 50%;
    transform: translateY(-50%);
    padding: 20px;
    width: 80%;
    max-width: 900px;
}

.close-button {
    color: #aaa;
    position: absolute;
    right: 25px;
    top: 0;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}
.banner-overlay.fade-out {
    opacity: 0;
}

/* footer */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #000000;
  border-top: 1px solid #000000;

  /* Personalización */
  font-size: 0.7rem; /* tamaño del texto */
  color: #d8d5d5;       /* color del texto */
}

.footer a {
  text-decoration: none;
  color: #007bff; /* color del enlace */

  transition: color 0.3s ease;
}

.footer a:hover {
  color: red; /* color al pasar el mouse */
}

.footer-left,
.footer-right {
  flex: 1;
}

.footer-right {
  text-align: right;
}


/* Responsive Design */
@media (max-width: 768px) {
    .main-header {
        padding: 1rem;
        font-weight: bolder;
    }
    #banner-description {
        max-width: 80%;
        font-size: medium;
        color: #f7f7f7;
    }
    #banner-title {
      font-size: 26px;
      margin: 0 0 1rem 0;
    }
    .carousel-item {
        flex: 0 0 30%; /* Más grandes en pantallas pequeñas */
    }
    .user-menu{
      margin-left: 10px;
    }
    .main-header .logo img{
    width: 40%;
    }
}