/*
Theme Name: Movistar+ International Custom Theme
Theme URI:  https://mintermational.dev-ecomm.com/
Author:     the team iagt
Author URI: https://iagt.es
Description: Custom Bootstrap theme for WordPress, simulating the Movistar+ style.
Version:    1.0
Text Domain: movistarplus-internacional
*/

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Estilos generales */
body {
  font-family: Arial, sans-serif;
  background-color: #fff;
  color: #fff; /* Texto en blanco */
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
.navbar a,
footer,
button,
input,
select,
textarea {
  font-family: "Lato", sans-serif !important;
  font-weight: 600;
}
html,
body {
  background-color: #161616;
}

/* Si es la home, el body pasa a blanco */
body.home {
  background-color: #fff;
}

a {
  color: #fff;
  text-decoration: none;
}

.text-muted span.rt-reading-time:first-of-type {
  display: none !important;
}

.mobile-img {
  display: none !important;
}

/* En móvil, ocultamos desktop y mostramos móvil */
@media (max-width: 576px) {
  .mobile-img {
    display: block !important;
  }
  .carousel-item img {
    height: 376px !important;
  }
}

/* Logo */
.custom-logo {
  height: 52px;
  max-width: 160px;
  margin-top: 15%;
}

@media (max-width: 576px) {
  .custom-logo {
    width: 150px;
    padding-left: 0.5rem;
  }
}
.navbar {
  display: flex;
  align-items: center;
}
/* Fondo y enlaces del nav */
nav.navbar {
  background-color: #161616;
}

@media (max-width: 576px) {
  nav.navbar {
    background-color: #000;
  }
}

.custom-nav {
  display: flex;
  align-items: left;
  margin: 0;
  padding: 0;
  list-style: none;
}

.custom-nav .menu-item {
  position: relative;
  margin: 0 24px;
}

@media (max-width: 576px) {
  .custom-nav .menu-item {
    width: 100%;
  }
}

.custom-nav .menu-item a {
  color: #fff !important;
  font-weight: 400;
  text-transform: none;
  padding: 8px; /* 8px de padding en todos los lados */
  font-size: 16px;
  position: relative;
  display: inline-block;
  text-decoration: none;
  transition: all 0.3s ease;
}

.custom-nav .menu-item a:focus,
.custom-nav .current-menu-item a {
  border-bottom: 2px solid white;
}

/* Separador entre elementos */
.custom-nav .menu-item:not(:last-child)::after {
  content: "|";
  color: white;
  position: absolute;
  right: -24px; /* Ajustado para coincidir con el margen */
  top: 50%;
  transform: translateY(-50%);
  font-weight: 300;
}
#movistarplusNavbar {
  display: flex;
  align-items: center;
}
/* Section Hero / Coming Soon */
.hero {
  background-color: #161616;
}
.card-title {
  color: #fff;
  font-size: 1.5rem !important;
}
.coming-soon {
  background-color: #161616;
}

.carousel-item {
  background-color: #161616;
}

.carousel-item h2 {
  font-size: 40px;
  line-height: 100%;
  vertical-align: middle;
}

.hero .carousel-item img {
  display: block;
  height: 476px;
  object-fit: cover;
  border-radius: 0;
}

.carousel-indicators {
  justify-content: center;
  /*bottom: 20px;*/
}

.carousel-indicators [data-bs-target] {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #444;
  opacity: 1;
  margin: 0 8px;
  border: none;
}

.carousel-indicators .active {
  background-color: #fff;
}

video.video-unmute {
  cursor: pointer;
}

/* Estilos específicos para el bloque Coming Soon en móvil */
@media (max-width: 576px) {
  #comingSoonCarousel {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .coming-soon {
    background-color: #161616;
    padding: 0;
  }

  .coming-soon .carousel-item {
    padding: 0;
  }

  .coming-soon .carousel-item img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }

  .coming-soon-content {
    padding: 1.25rem;
    background-color: #161616;
  }

  .coming-soon h2 {
    color: #fff;
    font-size: 24px !important;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    padding-left: 0 !important;
  }

  .coming-soon .content-subtitle {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
  }

  .coming-soon .content-meta {
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 1rem;
    display: block;
  }

  .coming-soon .carousel-indicators {
    position: relative;
    bottom: auto;
    margin-top: 1rem;
    padding-bottom: 2rem;
    justify-content: center;
    gap: 8px;
  }

  .coming-soon .carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #666;
    opacity: 1;
    border: none;
    margin: 0;
  }

  .coming-soon .carousel-indicators .active {
    background-color: #fff;
  }

  /* Estructura específica para el layout de la imagen */
  .coming-soon .row.g-0 {
    flex-direction: column;
  }

  .coming-soon .row.g-0 > div {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  video {
    width: 343px !important;
    height: 343px !important;
    object-fit: cover;
    aspect-ratio: 1 / 1;
  }
}

/* Section Series*/

.title-series {
  color: #000;
  font-size: 40px;
}

.tv-series {
  background-color: #fff;
}

.card-img-top {
  object-fit: cover;
  border-radius: 0;
}

.card-body {
  padding: 1.5rem;
}
.card-text {
  color: #fff !important;
  font-size: 1rem;
}
.series img {
  height: 495px;
}
/* Indicadores SOLO para TV Series */
#tvSeriesCarousel .carousel-indicators {
  position: relative;
  bottom: auto;
  gap: 10px; /* espacio entre círculos */
  justify-content: center;
}

#tvSeriesCarousel .carousel-indicators [data-bs-target] {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #eee; /* gris claro para inactivos */
  opacity: 1;
  border: none;
  transition: background-color 0.3s ease;
}

#tvSeriesCarousel .carousel-indicators .active {
  background-color: #111; /* negro para el activo */
}

@media (max-width: 576px) {
  .title-series {
    font-size: 24px;
  }

  .series img {
    display: none;
    height: auto !important;
    width: 100% !important;
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }
  .tv-series .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}
.feature-films {
  display: none !important;
}

/* Carousel: Feature Films - Indicadores personalizados */
.title-feature-films {
  color: #000;
  font-size: 40px;
}

.films img {
  height: 495px;
}

.feature-films .card-img-top.feature-img {
  height: 476px;
  object-fit: cover;
  border-radius: 0;
}

.feature-films .card-body {
  padding: 1.5rem;
}

/* Indicadores personalizados sólo para feature-films */
#featureFilmsCarousel .feature-indicators {
  justify-content: center;
  bottom: auto;
  gap: 10px;
}

#featureFilmsCarousel .feature-indicators [data-bs-target] {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #eee; /* gris claro */
  opacity: 1;
  border: none;
  transition: background-color 0.3s ease;
}

#featureFilmsCarousel .feature-indicators .active {
  background-color: #111; /* negro activo */
}

@media (max-width: 576px) {
  .title-feature-films {
    font-size: 24px;
  }

  .films img {
    display: none;
    height: auto !important;
    width: 100% !important;
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }

  .feature-films .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* News */

.latest-news h2 {
  font-size: 40px;
  color: #000;
}

.latest-news h4,
.latest-news h5 {
  font-weight: 600;
  line-height: 1.4;
  color: #000;
  margin-right: 2.5rem;
  font-size: 1.5rem;
}

.latest-news img {
  margin-top:10%;
  object-fit: unset !important;
  /*height: 384px;*/
}

#contenedor-noticias .text-muted {
  margin-right: 2.5rem;
  color: #000 !important;
  font-weight: normal;
}
#contenedor-noticias .text-secondary {
  color: #9e9e9e !important;
  font-weight: normal;
  font-size: 1rem;
  margin-bottom: 0rem !important;
}
.btn-dark {
  background-color: #000;
  color: #fff;
  border: none;
  font-size: 14px;
  font-weight: 400;
  text-transform: none;
  transition: background-color 0.3s ease;
}

.btn-dark:hover {
  background-color: #222;
  color: #fff;
}
#load-more-news {
  margin-bottom: 2rem;
  font-size: 1rem;
}
.imagen-destacada {
  aspect-ratio: 1.29/1;
}
@media (max-width: 768px) {
  .latest-news .row {
    flex-direction: column;
  }

  .latest-news img {
    margin-top: 1rem;
  }
}

@media (max-width: 576px) {
  .latest-news .text-muted {
    display: none;
  }
  .latest-news .small {
    font-weight: 400;
  }
  .latest-news img {
    margin-top: 0px;
    object-fit: contain !important;
  }
  .latest-news .row {
    flex-direction: row !important;
    flex-wrap: nowrap;
  }
  .latest-news .col-md-7,
  .latest-news .col-md-5 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .latest-news .col-md-5 img {
    max-height: 169px !important;
    vertical-align: super;
  }

  .latest-news h2 {
    font-size: 24px;
  }
  .latest-news h5 {
    font-size: 1rem;
    margin-right: 0rem;
  }
  .latest-news .container {
    padding-top: 2rem;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  .latest-news .row.align-items-center.mb-5 {
    margin-bottom: 1rem !important;
  }
  #contenedor-noticias .text-secondary {
    font-size: 0.5rem;
  }
}
/* footer */
.footer-subpage {
  margin-right: 2.5%;
}

ul#menu-menu-principal-1 {
  justify-content: right !important;
}
footer {
  background-color: #000;
}
footer p {
  font-size: 16px;
}
footer .custom-logo-link {
  margin-bottom: 1.5rem;
}

footer .separator {
  color: #fff;
}
footer .navbar {
  background-color: #000;
}

@media (max-width: 768px) {
  .footer-nav-wrapper {
    margin-top: 1rem;
  }

  .custom-footer-nav {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding-left: 1rem;
    gap: 0.5rem;
  }

  .custom-footer-nav .menu-item {
    margin-bottom: 0.3rem;
  }

  .custom-footer-nav .menu-item a {
    display: inline-block;
    color: #fff !important;
    font-size: 16px;
    padding: 0.25rem 0;
  }

  .custom-footer-nav .menu-item::after {
    display: none !important; /* Quitar separador | */
  }
}

@media (max-width: 992px) {
  /* 1) Selección por ID para mayor especificidad */
  #movistarplusNavbar {
    position: absolute !important;
    top: 100% !important; /* justo bajo la navbar */
    left: 0 !important;
    width: 100vw !important; /* ancho total del viewport */
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: none !important; /* Bootstrap lo mostrará con .show */
    background-color: #000 !important;
    z-index: 9999 !important;
    overflow-y: auto !important;
  }
  /* 2) Cuando Bootstrap añade .show: simplemente display:block */
  #movistarplusNavbar.show {
    display: block !important;
  }

  /* 3) Tus <ul> en columna y enlaces full-width */
  .custom-nav {
    display: flex !important;
    flex-direction: column !important;
    margin: 0;
    padding: 0;
  }
  .custom-nav .menu-item {
    margin: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
  }
  .custom-nav .menu-item:last-child {
    border-bottom: none !important;
  }
  .custom-nav .menu-item a {
    display: block !important;
    width: 100% !important;
    padding: 1rem 1.5rem !important;
    color: #fff !important;
    text-decoration: none !important;
  }
  .custom-nav .menu-item::after {
    display: none !important; /* quita los “|” */
  }

  /* 4) Sub-menú indentado si existe */
  .custom-nav .sub-menu {
    display: none;
    flex-direction: column;
    margin: 0;
    padding: 0;
  }
  .custom-nav .sub-menu.show {
    display: flex;
  }
  .custom-nav .sub-menu .menu-item a {
    padding-left: 2.5rem !important;
    font-size: 0.95rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  }
  .custom-nav .sub-menu .menu-item:last-child a {
    border-bottom: none !important;
  }

  /* 5) Toggler por encima para poder cerrarlo */
  .navbar-toggler {
    position: relative !important;
    z-index: 10000 !important;
  }
  .navbar-toggler.opened .navbar-toggler-icon {
    display: none !important;
  }
  .navbar-toggler.opened .close-icon {
    display: inline-block !important;
  }
}
