/*Defino variables de color*/
:root {
  /*Colores Bootstrap*/
  --bs-primary: #255267; /*Cambiado*/
  --bs-secondary: #6c757d;
  --bs-success: #198754;
  --bs-info: #0dcaf0;
  --bs-warning: #ffc107;
  --bs-danger: #dc3545;
  --bs-light: #f8f9fa;
  --bs-dark: #212529;

  /*Paleta propia*/
  --bs-color1: #527990;
  --bs-color1b: #78a6c1;
  --bs-color2: #255267;
  --bs-color3: #182a35;
  --bs-color3b: #182a35c5;
  --bs-color4: #07202b;
  --bs-color5: #050809;
  --bs-color6: #edf6f9;
}

/*Estilos botones*/
.btn-outline-primary {
  border-color: white;
  color: white;
  /* Defino variables de Bootstrap */
  --bs-btn-hover-bg: var(--bs-color4);
  --bs-btn-hover-border-color: var(--bs-color4);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--bs-color4);
  --bs-btn-active-border-color: var(--bs-color4);
  --bs-btn-active-color: #fff;
}

.btn-primary {
  background-color: var(--bs-color2);
  border-color: var(--bs-color2);
  /* Defino variables de Bootstrap */
  --bs-btn-hover-bg: var(--bs-color1);
  --bs-btn-hover-border-color: var(--bs-color1);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--bs-color4);
  --bs-btn-active-border-color: var(--bs-color4);
  --bs-btn-active-color: #fff;
}

/* HEADER */
.navbar {
  /* background-color: var(--bs-color3); */
  color: white;
  z-index: 5;
}
.navbar a {
  color: white;
}
.navbar a:hover {
  color: var(--bs-color1);
}
.navbar .nav-link.active {
  color: #e9f9f9;
}
.dropdown-menu {
  background-color: var(--bs-color3b);
  z-index: 1000;
}
.dropdown-item {
  display: flex !important;
  align-items: center;
  gap: 10px;
}
.dropdown-item:active {
  background-color: var(--bs-color6);
}
.dropdown-poster {
  width: 30px;
  height: auto;
  border-radius: 4px;
}

#header {
  background: url("../img/westworld-hero.jpg") no-repeat;
  background-position: top;
  background-size: cover;
  min-height: 100vh;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 0;
}
.blur {
  backdrop-filter: blur(50%);
  filter: blur(5px);
  /* filter: grayscale(); */
}
.fondoNav {
  background-color: var(--bs-color3b) !important;
  transition: background-color 0.3s ease;
}
.fondoNone {
  background: none !important;
}
#header-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  z-index: 2;
}

h2,
h3 {
  margin-bottom: 50px;
  letter-spacing: 0.4rem;
  font-weight: 700;
}
#header-content h1,
#header-content h3 {
  color: white;
}

#header .titulo {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 900;
  font-style: normal;
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: 0.7rem;
}

#header .subtitulo {
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.2rem;
}
/* MAIN */
#informacion,
#temporadas {
  padding-top: 100px;
  padding-bottom: 100px;
}
#temporadas .card {
  transition: all 0.3s ease;
}
#temporadas .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);

  cursor: pointer;
}
#reparto {
  padding-top: 120px;
  padding-bottom: 100px;
}
.reparto img {
  width: 160px;
  height: 160px;
  object-fit: cover;
}

#separador {
  background: url("../img/westworld-dolores-a-caballo.jpg") no-repeat center;
}
#separador2 {
  background: url("../img/westworld-piano.jpg") no-repeat center;
}
#separador,
#separador2 {
  background-size: cover;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 400px;
  position: relative;
}

#separador img,
#separador2 img {
  animation: animaLogo 5s ease-in-out;
  animation-timing-function: ease-in-out;
  /* animation-fill-mode: both; */
  animation-direction: alternate;
  animation-iteration-count: infinite;
}

.card {
  margin-bottom: 30px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

/* Cards Reparto*/
.profile-card {
  text-align: center;
}
.profile-card img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.profile-card h5 {
  font-weight: 600;
}
.profile-card p {
  margin: 0;
  color: #6c757d;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(50%) sepia(100%) saturate(100%) hue-rotate(200deg);
}
#personasCarousel {
  margin-bottom: 50px;
}
#personasCarousel article {
  margin-bottom: 20px;
}

/*FOOTER*/
#footer {
  background-color: var(--bs-color4);
  color: white;
  /* Mantiene el padding horizontal por defecto de .container-fluid */
  padding-top: 60px;
  padding-bottom: 10px;
}
#footer i {
  font-size: 1.8rem;
  margin: 0 5px;
}
#footer section {
  margin-bottom: 50px;
}
#footer a {
  color: var(--bs-color6);
  text-decoration: none;
}
#footer a :hover,
.footer-temporadas a:hover {
  color: var(--bs-color1);
}
.footer-temporadas {
  max-width: 280px;
}
.footer-temporadas a {
  /* display: block; */
  display: flex;
  /* align-items: flex-start;
  justify-content: center; */
  gap: 10px;
  margin-bottom: 10px;
}

.footer-poster {
  width: 20px;
  height: auto;
  border-radius: 3px;
}
#copyright {
  font-size: 0.8rem;
  background-color: var(--bs-color5);
  color: white;
  /* Evita colapso de márgenes del <p> interno */
  padding: 0.75rem 0;
}

/* Remueve el margen del párrafo para que no genere espacio fuera del fondo */
#copyright p {
  margin: 0;
}

/*Boton de whatsapp */
.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--bs-color2);
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  text-decoration: none;
  transition: all 0.3s ease;
}
.whatsapp-button:hover {
  background-color: var(--bs-color3);
  color: white;
}

/******* Media queries ********/

@media (max-width: 768px) {
  #header .titulo {
    font-size: 2.5rem;
  }
  #header .subtitulo {
    font-size: 1.5rem;
  }
}
@media (max-width: 576px) {
  #header .titulo {
    font-size: 2.2rem;
  }
  #header .subtitulo {
    font-size: 1.3rem;
  }
}

/********** Animation *********/

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo {
  animation: fadeInDown 0.8s ease both;
}

@keyframes animaLogo {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(5px);
  }
}
