/*
 * Tema 2026 de Flix TV (fondo negro, navbar nueva y home). Portado del tema de Sunset TV con la paleta roja de Flix.
 * Se carga después de app.min.css y lo sobrescribe; se edita a mano, no pasa por gulp.
 */

:root {
  --nav-h: 62px;
  --flix-rojo: #ff1f2d;
  --flix-vino: #a3000b;
}

body {
  background-color: #000;
  font-family: "Inter", "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- Navbar ---------- */

/* Estado del menú móvil y botón flotante de WhatsApp: el app.min.css de Flix los tenía con
   prefijo flix_navegacion_, así que aquí van completos para no depender de él. */
#active {
  display: none;
}

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, .2);
  transition: transform .3s ease, box-shadow .3s ease;
}

.whatsapp-float img {
  width: 70%;
  height: 70%;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 8px rgba(0, 0, 0, .3);
}


.sunset-nav {
  height: var(--nav-h);
  padding: 0;
  background-color: #1b1e24;
  z-index: 5000;
}

.sunset-nav__inner {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  width: 100%;
  height: 100%;
  padding: 0 9px;
}

.sunset-nav__marca {
  display: flex;
  align-items: center;
  gap: clamp(6px, 3.2vw, 14px);
  flex-shrink: 0;
}

.sunset-nav__logo {
  display: block;
  width: clamp(36px, 12vw, 48px);
  cursor: pointer;
  transition: transform .2s ease;
}

.sunset-nav__logo:hover {
  transform: scale(1.08);
}

.sunset-nav__logo img,
.sunset-nav__titulo img,
.sunset-nav__prueba img {
  display: block;
  width: 100%;
  height: auto;
}

.sunset-nav__titulo {
  display: block;
  width: clamp(66px, 23vw, 112px);
}

.sunset-nav__prueba {
  display: block;
  flex-shrink: 0;
  width: clamp(92px, 32vw, 160px);
  margin-left: clamp(3px, 1.6vw, 14px);
  transition: transform .2s ease, filter .2s ease;
}

.sunset-nav__prueba:hover {
  transform: scale(1.04);
  filter: brightness(1.15);
}

.sunset-nav__menu {
  display: flex;
  align-items: center;
  gap: clamp(.9rem, 1.7vw, 1.75rem);
  margin: 0 auto;
  padding: 0 1rem;
  list-style: none;
  font-size: 1rem;
}

.sunset-nav__menu a {
  position: relative;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  padding: .35rem 0;
}

.sunset-nav__menu a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--flix-rojo), var(--flix-vino));
  transform: scaleX(0);
  transition: transform .2s ease;
}

.sunset-nav__menu a:hover::after {
  transform: scaleX(1);
}

.sunset-nav__iconos {
  display: flex;
  align-items: center;
  gap: clamp(8px, 4.2vw, 18px);
  margin-left: auto;
  flex-shrink: 0;
}

.sunset-nav__icono {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(26px, 8.4vw, 38px);
  height: clamp(26px, 8.4vw, 38px);
  background-color: #21242e;
  border: 1px solid #333;
  border-radius: 50%;
  transition: transform .2s ease;
}

.sunset-nav__icono svg {
  width: 52%;
  height: 52%;
  fill: #0b0c0f;
}

a.sunset-nav__icono:hover {
  transform: scale(1.15);
}

/* Menú móvil: se despliega bajo la barra al tocar el logo */
.sunset-nav__desplegable {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 9, 12, .97);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}

#active:checked ~ .sunset-nav__desplegable {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.sunset-nav__desplegable ul {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

.sunset-nav__desplegable li {
  margin: .35rem 0;
}

.sunset-nav__desplegable a {
  display: inline-block;
  padding: .55rem 2rem;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  transition: background .2s ease;
}

.sunset-nav__desplegable a:hover,
.sunset-nav__desplegable a:focus {
  background: linear-gradient(90deg, var(--flix-rojo), var(--flix-vino));
  color: #fff;
}

@media (min-width: 992px) {
  :root {
    --nav-h: 72px;
  }

  .sunset-nav__inner {
    padding: 0 24px;
  }

  .sunset-nav__logo {
    width: 52px;
  }

  .sunset-nav__titulo {
    width: 124px;
  }

  .sunset-nav__prueba {
    width: 170px;
    margin-left: 18px;
  }

  /* En escritorio el botón de prueba va a la derecha, junto a los iconos */
  .sunset-nav__menu {
    order: 2;
  }

  .sunset-nav__prueba {
    order: 3;
    margin-right: 18px;
  }

  .sunset-nav__iconos {
    order: 4;
    margin-left: 0;
  }
}

/* ---------- Portada de la home ---------- */

.hero-home {
  --boton-w: min(60vw, 20rem);
  position: relative;
  margin-top: var(--nav-h);
  padding-bottom: 1.25rem;
  background: #000;
  overflow: hidden;
}

/* Relleno desenfocado a los lados cuando la pantalla es más ancha que la portada */
.hero-home__fondo {
  position: absolute;
  inset: -60px;
  bottom: 25%;
  background-position: center;
  background-size: cover;
  filter: blur(42px) brightness(.5) saturate(1.2);
  display: none;
}

.hero-home__portada {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.hero-home__portada img {
  display: block;
  width: 100%;
  height: auto;
}

/* La portada se funde a negro por abajo, donde va el botón */
.hero-home__portada::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 24%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .78) 62%, #000 100%);
  pointer-events: none;
}

.hero-home__boton {
  position: relative;
  z-index: 2;
  width: var(--boton-w);
  margin: calc(var(--boton-w) * -.19) auto 0;
}

.hero-home__boton img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  transition: transform .2s ease, filter .2s ease;
}

.hero-home__boton a:hover img {
  transform: scale(1.04);
  filter: brightness(1.15) drop-shadow(0 0 14px rgba(255, 31, 45, .55));
}

@media (min-width: 768px) {
  .hero-home {
    --boton-w: 20rem;
  }

  .hero-home__fondo {
    display: block;
  }

  .hero-home__portada {
    width: min(100%, calc((100vh - var(--nav-h) - 3.5rem) * 1024 / 1395));
    min-width: 520px;
  }

  /* Los bordes laterales de la portada también se funden con el relleno */
  .hero-home__portada img {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
  }
}

/* ---------- Carruseles ---------- */

.swiper-slide img {
  border-radius: 4px;
}

/* ---------- Texto + dispositivos ---------- */

.home-info {
  max-width: 980px;
  margin: 2rem auto 0;
  padding: 0 .75rem;
  color: #fff;
  text-align: center;
}

.home-info p {
  margin-bottom: 1.1rem;
  font-size: clamp(1.3rem, 1rem + 1.4vw, 1.75rem);
  line-height: 1.5;
}

.home-info img {
  margin-top: .25rem;
}

.home-video {
  max-width: 860px;
  margin: 2rem auto 3rem;
  padding: 0 .75rem;
}

.home-video .ratio {
  border-radius: 12px;
  overflow: hidden;
}

/* ---------- Preguntas frecuentes ---------- */

.home-faq {
  max-width: 860px;
  margin: 3rem auto 0;
  padding: 0 .75rem;
  color: #fff;
}

.home-faq h2 {
  margin-bottom: 1rem;
  text-align: center;
}

.home-faq details {
  margin-bottom: .6rem;
  background: #14161b;
  border: 1px solid #262a33;
  border-radius: 12px;
  transition: border-color .2s ease;
}

.home-faq details[open] {
  border-color: var(--flix-vino);
}

.home-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .95rem 1.1rem;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.home-faq summary::-webkit-details-marker {
  display: none;
}

.home-faq summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--flix-rojo);
  transition: transform .2s ease;
}

.home-faq details[open] summary::after {
  transform: rotate(45deg);
  color: var(--flix-vino);
}

.home-faq details p {
  margin: 0;
  padding: 0 1.1rem 1.05rem;
  color: #cfd3da;
  line-height: 1.6;
}

.home-faq a {
  color: var(--flix-rojo);
}

/* ---------- Footer ---------- */

.sunset-footer {
  margin-top: 3rem;
  padding: 2.25rem 1rem 6.5rem;
  background: #0b0c0f;
  border-top: 1px solid #1b1e24;
  color: #9aa0ab;
  text-align: center;
  font-size: .95rem;
}

.sunset-footer p {
  margin: 0;
}

.sunset-footer a {
  color: #e6e8ec;
  text-decoration: none;
}

.sunset-footer a:hover {
  color: var(--flix-rojo);
}

.sunset-footer__marca {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.sunset-footer__marca img:first-child {
  width: 44px;
  height: auto;
}

.sunset-footer__marca img:last-child {
  width: 110px;
  height: auto;
}

.sunset-footer__lema {
  margin-top: .75rem !important;
}

.sunset-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem 1.4rem;
  margin: 1.4rem 0;
  padding: 0;
  list-style: none;
}

.sunset-footer__whatsapp {
  display: inline-block;
  padding: .6rem 1.6rem;
  background: linear-gradient(90deg, var(--flix-rojo), var(--flix-vino));
  border-radius: 50px;
  color: #fff !important;
  font-weight: 700;
}

.sunset-footer__idioma {
  margin-top: 1.4rem !important;
}

.sunset-footer__idioma a[aria-current] {
  color: var(--flix-rojo);
  font-weight: 600;
}

.sunset-footer__legal {
  margin-top: .6rem !important;
  font-size: .85rem;
}

/* ---------- Página de planes ---------- */

.planes-hero {
  display: flex;
  flex-direction: column;
  margin-top: var(--nav-h);
  background: #000;
}

.planes-hero img {
  display: block;
  width: 100%;
  height: auto;
}

.planes-hero__suscribete {
  display: block;
  transition: filter .2s ease;
}

.planes-hero__suscribete:hover {
  filter: brightness(1.12);
}

@media (min-width: 768px) {
  /* Las dos imágenes van lado a lado con la misma altura: cada una crece según su proporción */
  .planes-hero {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
    width: min(100% - 2rem, max(720px, calc((100vh - var(--nav-h) - 3rem) * 1.69)));
    margin: calc(var(--nav-h) + 1.25rem) auto 0;
  }

  .planes-hero__suscribete {
    flex: 738 1 0;
  }

  .planes-hero__beneficios {
    flex: 953 1 0;
  }

  .planes-hero img {
    border-radius: 16px;
  }
}

.planes-aviso {
  max-width: 820px;
  margin: 2.5rem auto 0;
  padding: 0 1rem;
  color: #fff;
  text-align: center;
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}

.planes-aviso p {
  margin: 0 0 1rem;
  padding: 1.1rem 1.25rem;
  background: #14161b;
  border: 1px solid #262a33;
  border-left: 4px solid var(--flix-rojo);
  border-right: 4px solid var(--flix-vino);
  border-radius: 14px;
  font-size: clamp(1.1rem, .95rem + .8vw, 1.4rem);
  font-weight: 600;
  line-height: 1.4;
  text-wrap: balance;
}

.planes-aviso__whatsapp {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .6rem 1.4rem;
  background: #25d366;
  border-radius: 50px;
  color: #04210f;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, filter .2s ease;
}

.planes-aviso__whatsapp:hover {
  transform: scale(1.05);
  filter: brightness(1.08);
  color: #04210f;
}

.planes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 4.5rem 1.75rem;
  max-width: 1380px;
  margin: 0 auto;
  padding: 2.5rem 1rem 5rem;
}

/* Todas las medidas de la tarjeta van en cqw (% del ancho de la tarjeta) para que
   conserve las proporciones del diseño en cualquier tamaño. */
.plan {
  container-type: inline-size;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.plan__caja {
  position: relative;
  padding: 7cqw 9cqw 10.6cqw;
  background: #030104;
  border: max(2px, .32cqw) solid #e10a14;
  border-radius: 4.5cqw;
  box-shadow: 0 0 5cqw rgba(225, 10, 20, .18);
  color: #fff;
  font-family: "Sofia Sans Extra Condensed", "League Gothic", "Arial Narrow", sans-serif;
  transition: box-shadow .25s ease, transform .25s ease;
}

.plan:hover .plan__caja {
  transform: translateY(-4px);
  box-shadow: 0 0 8cqw rgba(225, 10, 20, .38);
}

.plan__cabecera {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0 1.2cqw 2.8cqw;
  border-bottom: max(2px, .28cqw) solid #e10a14;
}

.plan__marca {
  display: block;
  width: 17cqw;
  height: auto;
}

.plan__nombre {
  margin: 2.2cqw 0 0;
  font-size: 4.3cqw;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .01em;
  text-transform: uppercase;
}

.plan__logo {
  width: 10.5cqw;
  height: auto;
  margin-top: -.6cqw;
}

.plan__features {
  margin: 2.8cqw 0 0;
  padding: 0 0 0 2.6cqw;
  list-style: none;
  font-size: 4.2cqw;
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.plan__features li {
  display: flex;
  align-items: center;
  gap: 2.6cqw;
  min-height: 6.8cqw;
}

.plan__features svg {
  flex-shrink: 0;
  width: 4.4cqw;
  height: auto;
  fill: none;
  stroke: #e10a14;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.plan__precio {
  margin: 7.2cqw 0 0;
  font-size: 9cqw;
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  text-align: center;
}

.plan__pagar {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 32.5cqw;
  transform: translate(-50%, 50%);
  border-radius: 1.4cqw;
  overflow: hidden;
  transition: transform .2s ease, filter .2s ease;
}

.plan__pagar img {
  display: block;
  width: 100%;
  height: auto;
}

.plan__pagar:hover {
  transform: translate(-50%, 50%) scale(1.06);
  filter: brightness(1.2);
}

/* ---------- Bloques de texto (SEO): encabezado de la home, beneficios, pasos y páginas internas ---------- */

.hero-home__texto {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 1.25rem auto 0;
  padding: 0 1rem;
  text-align: center;
}

.hero-home__texto h1 {
  margin: 0;
  font-size: clamp(1.35rem, 1rem + 1.8vw, 2.1rem);
  font-weight: 800;
  line-height: 1.25;
}

.hero-home__texto ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem 1.1rem;
  margin: .8rem 0 0;
  padding: 0;
  list-style: none;
  color: #cfd3da;
  font-size: .95rem;
}

.hero-home__texto li::before {
  content: "";
  display: inline-block;
  width: .45rem;
  height: .45rem;
  margin-right: .45rem;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--flix-rojo), var(--flix-vino));
  vertical-align: middle;
}

.home-info h2,
.sunset-pasos h2,
.sunset-pagina h2 {
  margin-bottom: 1rem;
  color: #fff;
  font-weight: 800;
  text-align: center;
}

.sunset-tarjetas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: .75rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.sunset-tarjetas li {
  padding: 1rem 1.1rem;
  background: #14161b;
  border: 1px solid #262a33;
  border-radius: 12px;
}

.sunset-tarjetas h2,
.sunset-tarjetas h3 {
  margin: 0 0 .35rem;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: left;
}

.home-info .sunset-tarjetas p,
.sunset-tarjetas p {
  margin: 0;
  color: #cfd3da;
  font-size: .98rem;
  line-height: 1.5;
}

.sunset-tarjetas a {
  color: var(--flix-rojo);
  font-weight: 600;
}

.sunset-pasos {
  max-width: 980px;
  margin: 3rem auto 0;
  padding: 0 .75rem;
  color: #fff;
}

.sunset-pasos ol {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: .75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: paso;
}

.sunset-pasos li {
  position: relative;
  padding: 1rem 1.1rem 1rem 3.6rem;
  background: #14161b;
  border: 1px solid #262a33;
  border-radius: 12px;
  counter-increment: paso;
}

.sunset-pasos li::before {
  content: counter(paso);
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--flix-rojo), var(--flix-vino));
  font-weight: 800;
}

.sunset-pasos h3 {
  margin: 0 0 .3rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.sunset-pasos p {
  margin: 0;
  color: #cfd3da;
  line-height: 1.5;
}

.sunset-acciones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin: 1.75rem 0 0;
}

.sunset-boton {
  display: inline-block;
  padding: .75rem 1.6rem;
  background: linear-gradient(90deg, var(--flix-rojo), var(--flix-vino));
  border: 2px solid transparent;
  border-radius: 50px;
  color: #fff !important;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: transform .2s ease, filter .2s ease;
}

.sunset-boton:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
}

.sunset-boton--borde {
  background: transparent;
  border-color: var(--flix-rojo);
}

.sunset-pagina {
  max-width: 980px;
  margin: calc(var(--nav-h) + 2rem) auto 0;
  padding: 0 1rem;
  color: #fff;
}

.sunset-pagina h1 {
  margin-bottom: .75rem;
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem);
  font-weight: 800;
  text-align: center;
}

.sunset-pagina h2 {
  margin-top: 2.5rem;
}

.sunset-intro {
  max-width: 720px;
  margin: 0 auto 1.5rem;
  color: #cfd3da;
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: center;
}

.sunset-pagina__imagen {
  display: block;
  margin: 0 auto;
  border-radius: 12px;
}

.sunset-pagina .premium {
  margin-top: 0;
}

.sunset-pagina .btn-contacto {
  margin-top: 1.5rem;
}

.sunset-tarjetas--contacto {
  max-width: 640px;
  margin-right: auto;
  margin-left: auto;
}

.sunset-tarjetas--contacto h2 {
  margin-top: 0;
}

.sunset-nota {
  max-width: 720px;
  margin: 2rem auto 0;
  color: #9aa0ab;
  text-align: center;
}

.sunset-nota a {
  color: var(--flix-rojo);
}

.sunset-pagina__imagen--chica {
  width: 100%;
  max-width: 620px;
}

.planes-nota {
  max-width: 820px;
  margin: -2.5rem auto 0;
  padding: 0 1rem;
  color: #9aa0ab;
  font-size: .9rem;
  text-align: center;
}

.planes-nota a {
  color: var(--flix-rojo);
}
