/* ==========================================================
   Nexo Play — Landing
   Valores tomados del frame "COMPUTADORA" (1440 × 3153) en Figma
   ========================================================== */

:root {
  --blue: #10009e;
  --blue-deep: #000c58;
  --blue-text: #1e1faf;
  --orange: #ff8300;
  --orange-soft: #f69228;
  --white: #ffffff;

  --container: 1200px;
  --radius-card: 40px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--white);
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-deep) 100%);
  background-color: var(--blue-deep);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* ---------- Botones base ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 12px;
  border-radius: 15px;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1.3px solid var(--orange-soft);
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--outline { color: var(--orange-soft); background: transparent; }
.btn--outline:hover { background: var(--orange-soft); color: var(--blue-text); }
.btn--orange { background: var(--orange-soft); color: var(--blue-text); }
.btn--orange:hover { background: #ffa347; }

/* ---------- Navegación ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 22px 0 10px;
  transition: background-color .25s ease, padding .25s ease, box-shadow .25s ease;
}
.nav.is-scrolled {
  background: rgba(16, 0, 158, .92);
  backdrop-filter: blur(10px);
  padding: 8px 0;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
}
.nav__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 105px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav__logo img { width: 65px; height: 77px; object-fit: contain; transition: width .25s, height .25s; }
.nav.is-scrolled .nav__logo img { width: 48px; height: 57px; }

.nav__menu {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 20px;
}
.nav__menu > a {
  font-size: 20px;
  font-weight: 700;
  position: relative;
}
.nav__menu > a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 3px;
  border-radius: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transition: transform .2s ease;
}
.nav__menu > a:hover::after { transform: scaleX(1); }

.nav__actions { display: flex; gap: 8px; }
.nav__actions--mobile { display: none; }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  margin-left: auto;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}
.nav__toggle span {
  display: block;
  height: 3px;
  border-radius: 3px;
  background: var(--white);
  transition: transform .25s, opacity .25s;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

/* ---------- Hero / slider ---------- */
.hero {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  aspect-ratio: 1440 / 500;
  overflow: hidden;
}
.hero__track { position: absolute; inset: 0; }
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .8s ease;
}
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }

.btn--hero {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  padding: 6px 23px;
  border-radius: 80px;
  font-size: 25px;
  font-weight: 900;
  z-index: 2;
}
.btn--hero:hover { transform: translateX(-50%) translateY(-2px); }

.hero__dots {
  position: absolute;
  right: 24px;
  bottom: 18px;
  display: flex;
  gap: 8px;
  z-index: 2;
}
.hero__dots button {
  width: 10px; height: 10px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, .5);
  cursor: pointer;
  transition: width .25s, background-color .25s;
}
.hero__dots button.is-active { width: 26px; background: var(--orange); }

/* ---------- Secciones ---------- */
.section {
  max-width: var(--container);
  margin: 69px auto 0;
  padding: 0 20px;
  box-sizing: content-box;
}

.title {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.title__main {
  color: var(--orange);
  font-size: 45px;
  font-weight: 800;
  line-height: 1.1;
}
.live .title__main { font-weight: 900; }
.title__sub {
  font-size: 30px;
  font-weight: 500;
  line-height: 1.2;
}
.title__desc {
  margin-top: 6px;
  font-size: 23px;
  font-weight: 500;
  line-height: 1.35;
}

/* ---------- Carrusel genérico ---------- */
.carousel { position: relative; }
.carousel__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  scroll-padding-inline: 4px;
  -webkit-overflow-scrolling: touch;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: start; flex: 0 0 auto; }

/* Arrastre con mouse (en táctil se usa el scroll nativo) */
.carousel__track { cursor: grab; }
.carousel__track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
  user-select: none;
}
.carousel__track img,
.marquee img { -webkit-user-drag: none; user-select: none; }
.carousel__track.is-dragging a,
.carousel__track.is-dragging .plan { pointer-events: none; }

/* ---------- Planes ---------- */
.plans__track {
  justify-content: safe center; /* pocas tarjetas: centradas; muchas: carrusel normal */
  gap: 24px;
  padding: 24px 4px 30px;
  max-width: 1110px;
  margin: 0 auto;
}

.plan {
  width: 314px;
  min-height: 442px;
  padding: 18px 20px 20px;
  border-radius: var(--radius-card);
  background: var(--white);
  color: var(--blue);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  transition: transform .2s ease;
}
.plan:hover { transform: translateY(-6px); }

.plan__name {
  width: 100%;
  max-width: 278px;
  padding: 6px 12px;
  border-radius: 40px;
  background: var(--blue);
  color: var(--orange-soft);
  font-size: 25px;
  font-weight: 800;
  line-height: 30px;
  min-height: 49px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-wrap: anywhere;
}

.plan__price {
  min-height: 68px;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.plan__from { font-size: 14px; }
.plan__price strong { font-size: 34px; font-weight: 700; line-height: 41px; }
.plan__promo { display: flex; align-items: center; gap: 5px; font-size: 14px; }
.plan__promo em {
  font-style: normal;
  font-weight: 500;
  padding: 1px 11px;
  border-radius: 10px;
  background: var(--orange);
}
.plan__promo s { text-decoration-thickness: 1px; }

.plan__sep {
  width: 218px;
  margin: 10px 0 12px;
  border: 0;
  border-top: 1px solid var(--blue);
}

.plan__channels { display: flex; gap: 5px; }
.plan__channels span {
  width: 50px; height: 50px;
  border-radius: 10px;
  background: var(--blue);
  display: grid;
  place-items: center;
}
.plan__channels img { max-width: 44px; max-height: 33px; object-fit: contain; }

.plan__includes {
  margin-top: 12px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
}
.plan__list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 21px;
}

.plan__cta {
  margin-top: auto;
  padding: 8px 19px;
  border-radius: 10px;
  background: var(--blue);
  color: var(--orange);
  font-size: 16px;
  font-weight: 700;
  transition: background-color .15s;
}
.plan__cta:hover { background: #2410c9; }
.plan__list + .plan__cta { margin-top: 12px; }
.plan__more {
  margin-top: 8px;
  color: var(--orange);
  font-size: 14px;
  font-weight: 800;
}
.plan__more:hover { text-decoration: underline; }

/* ---------- +50 canales ---------- */
.channels__head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.channels__title {
  font-size: 40px;
  font-weight: 400;
  line-height: 40px;
}
.channels__title span {
  display: block;
  color: var(--orange);
  font-size: 60px;
  font-weight: 900;
  line-height: 50px;
}
.btn-list {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 13px 34px;
  border-radius: 12px;
  background: var(--orange);
  font-size: 33px;
  font-weight: 900;
  line-height: 1;
  transition: transform .15s, background-color .15s;
}
.btn-list:hover { transform: translateY(-2px); background: #ff961f; }

.marquee {
  margin-top: 19px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.marquee__track {
  display: flex;
  gap: 19px;
  width: max-content;
  will-change: transform;
}
.marquee { cursor: grab; touch-action: pan-y; }
.marquee.is-dragging { cursor: grabbing; }
.marquee__track img {
  width: 130px; height: 130px;
  padding: 14px;
  border-radius: 30px;
  background: var(--white);
  object-fit: contain;
}
.marquee__track img.is-cover { padding: 0; object-fit: cover; }


/* ---------- Canales en vivo ---------- */
.live__track {
  gap: 35px;
  padding: 35px 4px 6px;
  max-width: 1154px;
  margin: 0 auto;
}
.live-card {
  position: relative;
  width: 338px;
  height: 284px;
  border-radius: 32px;
  border: 1.8px solid var(--orange);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.live-card:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(0, 0, 0, .35); }
.live-card__bg { width: 100%; height: 100%; object-fit: cover; }
.live-card__btn {
  position: absolute;
  left: 34px; bottom: 22px;
  padding: 5px 15px;
  border-radius: 31px;
  background: var(--blue);
  color: var(--orange);
  font-size: 14px;
  font-weight: 700;
}
.live-card__logo {
  position: absolute;
  right: 14px; bottom: 10px;
  width: 58px; height: 58px;
  border-radius: 6px;
  border: 2px solid var(--orange);
  background: var(--white);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.live-card__logo img { max-width: 44px; max-height: 44px; object-fit: contain; }

/* ---------- Dispositivos ---------- */
.devices__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.devices__img { width: 618px; max-width: 54%; height: auto; }
.devices__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 19px;
  text-align: center;
}
.devices__title {
  font-size: 35px;
  font-weight: 500;
  line-height: 40px;
  text-transform: uppercase;
}
.devices__title span {
  display: block;
  color: var(--orange);
  font-size: 60px;
  font-weight: 900;
  line-height: 60px;
}
.btn-compat {
  padding: 5px 43px;
  border-radius: 30px;
  background: var(--orange);
  font-size: 25px;
  font-weight: 500;
  text-transform: uppercase;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15), 0 4px 14px rgba(0, 0, 0, .3);
  transition: transform .15s;
}
.btn-compat:hover { transform: translateY(-2px); }

.stores {
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 29px;
}
.stores li {
  width: 111px; height: 111px;
  border-radius: 20px;
  background: var(--white);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.stores img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- FAQ ---------- */
.faq { max-width: 1138px; }
.faq__title {
  margin-bottom: 10px;
  text-align: center;
  font-size: 40px;
  font-weight: 700;
  text-transform: uppercase;
}
.faq__item {
  margin-top: 10px;
  border-radius: 30px;
  background: var(--blue-deep);
  overflow: hidden;
}
.faq__item summary {
  position: relative;
  padding: 10px 60px;
  font-size: 20px;
  font-weight: 700;
  line-height: 30px;
  text-align: center;
  list-style: none;
  cursor: pointer;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 28px; top: 50%;
  transform: translateY(-50%);
  color: var(--orange);
  font-size: 28px;
  font-weight: 700;
  transition: transform .2s;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p {
  padding: 0 40px 18px;
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
  opacity: .9;
}
.faq__item p a { color: var(--orange); font-weight: 600; }

/* ---------- Footer ---------- */
.footer {
  margin-top: 69px;
  background: var(--blue);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, .25);
}
.footer__inner {
  max-width: 1312px;
  margin: 0 auto;
  padding: 34px 20px;
  display: flex;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
}
.footer__brand p { margin: 6px 0; font-size: 18px; font-weight: 700; }
.footer__logo { width: 70px; height: 83px; object-fit: contain; }
.footer__social { display: flex; gap: 5px; }
.footer__social a {
  width: 40px; height: 40px;
  border-radius: 10.6px;
  background: var(--white);
  overflow: hidden;
  transition: transform .15s;
}
.footer__social a:hover { transform: translateY(-2px); }
.footer__social img { width: 100%; height: 100%; object-fit: cover; }

.footer__col { display: flex; flex-direction: column; gap: 3px; }
.footer__col h3 {
  margin-bottom: 2px;
  color: var(--orange);
  font-size: 20px;
  font-weight: 900;
}
.footer__col a { font-size: 18px; font-weight: 500; line-height: 27px; }
.footer__col a:hover { color: var(--orange); }

/* ---------- Bot flotante ---------- */
.bot {
  position: fixed;
  right: 49px;
  bottom: 40px;
  z-index: 40;
  width: 88px; height: 88px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #d9d9d9;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
  transition: transform .2s;
}
.bot:hover { transform: scale(1.07); }
.bot img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1280px) {
  .nav__inner { padding: 0 32px; gap: 24px; }
  .nav__menu > a { font-size: 17px; }
}

@media (max-width: 1080px) {
  .nav { padding: 10px 0; background: rgba(16, 0, 158, .92); backdrop-filter: blur(10px); }
  .nav__logo img, .nav.is-scrolled .nav__logo img { width: 44px; height: 52px; }
  .nav__actions { display: none; }
  .nav__toggle { display: flex; }

  .nav__menu {
    position: fixed;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 28px 16px 32px;
    background: var(--blue);
    box-shadow: 0 16px 30px rgba(0, 0, 0, .35);
    transform: translateY(-120%);
    visibility: hidden;
    transition: transform .3s ease, visibility .3s;
  }
  .nav__menu.is-open { transform: none; visibility: visible; }
  .nav__actions--mobile { display: flex; margin-top: 8px; flex-wrap: wrap; justify-content: center; }
  .nav__actions--mobile .btn { padding: 8px 16px; }

  .hero { margin-top: 72px; }

  .devices__row { flex-direction: column; }
  .devices__img { max-width: 100%; }
}

@media (max-width: 720px) {
  .section { margin-top: 48px; padding: 0 16px; }
  .btn--hero { font-size: 15px; padding: 4px 14px; bottom: 10px; }
  .hero__dots { display: none; }

  .title__main { font-size: 28px; }
  .title__sub { font-size: 20px; }
  .title__desc { font-size: 16px; }

  .plans__track { padding-inline: 8px; scroll-padding-inline: 8px; }
  .plan { width: min(314px, 82vw); }
  .plan__name { font-size: 21px; }

  .channels__head { flex-direction: column; text-align: center; }
  .channels__title { font-size: 26px; line-height: 30px; }
  .channels__title span { font-size: 44px; line-height: 44px; }
  .btn-list { font-size: 22px; padding: 12px 22px; gap: 12px; }
  .marquee__track img { width: 96px; height: 96px; border-radius: 22px; padding: 10px; }

  .live-card { width: min(338px, 82vw); height: auto; aspect-ratio: 338 / 284; }

  .devices__title { font-size: 22px; line-height: 28px; }
  .devices__title span { font-size: 40px; line-height: 44px; }
  .btn-compat { font-size: 16px; padding: 8px 22px; }
  .stores { gap: 14px; }
  .stores li { width: 84px; height: 84px; border-radius: 16px; }

  .faq__title { font-size: 28px; }
  .faq__item summary { padding: 12px 48px 12px 20px; font-size: 16px; line-height: 24px; text-align: left; }
  .faq__item summary::after { right: 20px; }
  .faq__item p { padding: 0 20px 16px; text-align: left; }

  .footer__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 16px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__col h3 { font-size: 17px; }
  .footer__col a { font-size: 15px; line-height: 24px; }

  .bot { width: 64px; height: 64px; right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__slide { transition: none; }
}
