/* ==========================================================================
   PORTADA + INICIAR SESIÓN
   --------------------------------------------------------------------------
   Estructura replicada de la referencia que él pasó (el clon de la portada
   de Netflix, guardado en assets/textos/referencia-portada-login/):
   hero 100vh con formulario, filas alternadas, acordeón con radios, pie de
   4 columnas; login con caja translúcida sobre fondo.

   Acabados con los valores MEDIDOS en netflix.com (docs/NETFLIX-DISENO.md):
   rojo #E50914 (hover #B1060E, transición .25s cubic-bezier(.4,0,.68,.06)),
   superficies #232323/#2D2D2D, error #EB3942, texto secundario
   rgba(255,255,255,.7), botones radio 4px, tarjetas radio 8px, y la curva
   separadora bajo el hero. En vez de las carátulas de Netflix (que son
   suyas), el fondo es un collage con los pósters del catálogo de ELLA.
   ========================================================================== */

/* ===== Hero de la portada ===== */
#portada.activa { display: block; }

.portada-hero {
  position: relative;
  min-height: 100vh; min-height: 100dvh;
  padding: 10px 8% 120px;
  overflow: hidden;
  background: #000;
}

/* El collage de pósters de su catálogo (lo llena js/app.js) */
.portada-collage {
  position: absolute;
  inset: -4%;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
  transform: rotate(-1.5deg) scale(1.06);
  opacity: .5;
}
.collage-poster {
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .8);
  font-family: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(1.2rem, 2.6vw, 2.2rem);
}
.portada-velo {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 60% at 50% 0%, transparent 40%, rgba(0, 0, 0, .55) 100%),
    linear-gradient(to top, #000 0%, rgba(0, 0, 0, .6) 35%, rgba(0, 0, 0, .78) 100%);
}

/* La curva separadora, la firma del rediseño real de Netflix */
.portada-curva {
  position: absolute;
  left: -10%;
  bottom: 0;
  width: 120%;
  height: 100px;
  background:
    radial-gradient(50% 500% at 50% -420%, rgba(229, 9, 20, .35) 80%, transparent 100%),
    #000;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  border-top: 2px solid rgba(229, 9, 20, .5);
}

.portada-nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.logo-portada {
  font-family: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  color: #e50914;
  letter-spacing: .02em;
  cursor: default;
  user-select: none;
}
.portada-nav-botones { display: flex; align-items: center; gap: 10px; }
.portada-boton {
  background: #e50914;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
  padding: 8px 16px;
  transition: background-color .25s cubic-bezier(.4, 0, .68, .06);
}
.portada-boton:hover { background: #b1060e; }
.portada-idioma {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, .35);
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 4px;
  color: #fff;
  font-size: 14px;
  padding: 7px 12px;
}

.portada-contenido {
  position: relative;
  z-index: 2;
  max-width: 42rem;
  margin: 0 auto;
  padding: max(18vh, 130px) 0 40px;
  text-align: center;
}
.portada-contenido h1 {
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.2;
}
.portada-contenido h3 {
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 400;
  margin: 16px 0 20px;
}
.portada-contenido p { font-size: .95rem; color: rgba(255, 255, 255, .9); }

/* El formulario blanco del clon, con el botón rojo dentro */
.entrada-mail {
  background: #fff;
  display: flex;
  align-items: center;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 26px;
}
.entrada-mail input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  margin-left: 20px;
  font-size: 1rem;
  color: #111;
  background: transparent;
}
.entrada-mail button {
  background: #e50914;
  color: #fff;
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 500;
  padding: 15px 26px;
  flex: none;
  transition: background-color .25s cubic-bezier(.4, 0, .68, .06);
}
.entrada-mail button:hover { background: #b1060e; }

/* ===== Las filas de features ===== */
.portada-elementos { padding: 20px 12%; }
.portada-fila {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding: 50px 0;
  border-bottom: 8px solid #232323;
}
.portada-fila.invertida { flex-direction: row-reverse; }
.portada-col-texto { flex: 1 1 300px; }
.portada-col-texto h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  margin-bottom: 16px;
}
.portada-col-texto p { font-size: clamp(16px, 2.2vw, 21px); color: rgba(255, 255, 255, .9); }
.portada-col-arte {
  flex: 1 1 300px;
  display: grid;
  place-items: center;
  min-height: 180px;
}

/* Ilustraciones hechas en CSS (las imágenes del clon son propiedad de Netflix) */
.arte-tv {
  position: relative;              /* ancla lo de dentro: nada se escapa del marco */
  width: min(320px, 90%);
  aspect-ratio: 16 / 10;
  border: 12px solid #2d2d2d;
  border-bottom-width: 26px;
  border-radius: 14px;
  background: #000;
  display: flex;                   /* palabra y barra, en columna y centradas */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  overflow: hidden;                /* red de seguridad: recorta a la pantalla */
  box-shadow: 0 20px 50px rgba(0, 0, 0, .55);
}
.arte-tv span {
  font-family: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  font-size: 2.6rem;
  line-height: 1;
  color: #e50914;
}
.arte-tv i {
  display: block;
  width: 55%;
  height: 4px;
  border-radius: 2px;
  background: #333;
  overflow: hidden;
}
.arte-tv i::after {
  content: "";
  display: block;
  width: 62%;
  height: 100%;
  background: #e50914;
}
.arte-regalo { text-align: center; }
.arte-caja { font-size: 5.2rem; line-height: 1; filter: drop-shadow(0 12px 22px rgba(229, 9, 20, .35)); }
.arte-tarjeta {
  margin-top: 14px;
  display: inline-block;
  background: #232323;
  border: 1px dashed rgba(255, 255, 255, .45);
  border-radius: 8px;
  padding: 10px 18px;
  font-size: .8rem;
  letter-spacing: .35em;
  color: rgba(255, 255, 255, .85);
}
.arte-perfiles { display: flex; gap: 18px; }
.arte-avatar {
  width: 74px;
  height: 74px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  background: #2d2d2d;
  color: rgba(255, 255, 255, .8);
}
.arte-avatar.activo {
  background: #e50914;
  color: #fff;
  font-family: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  font-size: 2.2rem;
}
.arte-buscador {
  background: #2d2d2d;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 16px 22px;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, .85);
}
.arte-buscador em {
  font-style: normal;
  border-right: 2px solid #e50914;
  padding-right: 3px;
}

/* ===== FAQ: el acordeón de radios del clon ===== */
.portada-faq {
  padding: 50px 12%;
  text-align: center;
}
.portada-faq h2 { font-size: clamp(24px, 3.5vw, 40px); font-weight: 700; }
.acordeon {
  margin: 40px auto 20px;
  width: 100%;
  max-width: 750px;
  list-style: none;
  text-align: left;
}
.acordeon li { margin-bottom: 8px; }
.acordeon input[type="radio"] { display: none; }
.acordeon label {
  display: flex;
  align-items: center;
  padding: 22px 60px 22px 24px;
  font-size: clamp(15px, 2vw, 19px);
  font-weight: 500;
  background: #2d2d2d;
  cursor: pointer;
  position: relative;
  transition: background-color .25s cubic-bezier(.4, 0, .68, .06);
}
.acordeon label:hover { background: #414141; }
.acordeon label::after {
  content: "+";
  font-size: 32px;
  font-weight: 300;
  position: absolute;
  right: 22px;
  transition: transform .5s;
}
.acordeon-contenido {
  background: #2d2d2d;
  margin-top: 1px;
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  font-size: clamp(14px, 2vw, 17px);
  line-height: 1.5;
  transition: max-height .5s, padding .5s;
}
.acordeon input[type="radio"]:checked + label + .acordeon-contenido {
  max-height: 600px;
  padding: 22px 24px;
}
.acordeon input[type="radio"]:checked + label::after { transform: rotate(135deg); }
.portada-faq small { font-size: .85rem; color: rgba(255, 255, 255, .8); }
.portada-faq .entrada-mail { max-width: 600px; margin: 18px auto 30px; }

/* ===== Pie de la portada ===== */
.portada-footer {
  padding: 50px 12% 24px;
  border-top: 8px solid #232323;
  color: rgba(255, 255, 255, .7);
}
.portada-footer p { font-size: 1rem; margin-bottom: 26px; }
.portada-footer-columnas { display: flex; flex-wrap: wrap; }
.portada-footer-columnas > div {
  flex: 1 1 25%;
  min-width: 160px;
  margin-bottom: 20px;
  padding-right: 12px;
}
.portada-footer-columnas a {
  display: block;
  color: rgba(255, 255, 255, .7);
  font-size: .82rem;
  text-decoration: none;
  margin-bottom: 12px;
}
.portada-footer-columnas a:hover { text-decoration: underline; }
.portada-copy { font-size: .8rem; color: rgba(255, 255, 255, .5); }

/* ===== Iniciar sesión ===== */
#login.activa { display: block; position: relative; min-height: 100vh; min-height: 100dvh; overflow: hidden; }
.login-fondo {
  position: absolute;
  inset: -4%;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
  transform: rotate(-1.5deg) scale(1.06);
  opacity: .35;
}
.login-velo {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, .75));
}
.login-nav { position: relative; z-index: 2; padding: 22px 3%; }
.login-caja {
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, .75);
  width: min(440px, 92%);
  margin: 3vh auto 60px;
  border-radius: 4px;
  padding: clamp(28px, 6vw, 56px) clamp(20px, 6vw, 64px) 36px;
}
.login-caja h2 { font-size: 32px; font-weight: 700; margin-bottom: 26px; }
.login-caja form { display: flex; flex-direction: column; }

/* El banner de error rojo, como el real */
.login-banner {
  background: #eb3942;
  color: #fff;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.4;
  padding: 10px 16px;
  margin-bottom: 16px;
}

/* Inputs con etiqueta flotante (medidos del login real: padding 24/16/8) */
.campo-flotante { position: relative; margin-bottom: 16px; }
.campo-flotante input {
  width: 100%;
  padding: 24px 16px 8px;
  font-size: 16px;
  background: rgba(22, 22, 22, .7);
  color: #fff;
  border: 1px solid rgba(128, 128, 128, .7);
  border-radius: 4px;
  outline: 0;
}
.campo-flotante input:focus { border-color: #fff; }

/* El ojito para ver la contraseña */
#campo-clave input { padding-right: 52px; }
.campo-ojo {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #b3b3b3;
  border-radius: 50%;
  transition: color .2s, background .2s;
}
.campo-ojo:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.campo-ojo.viendo { color: #fff; }
.campo-flotante.con-error input { border-color: #eb3942; }
.campo-flotante label {
  position: absolute;
  left: 17px;
  top: 50%;
  transform: translateY(-50%);
  color: #b3b3b3;
  font-size: 16px;
  pointer-events: none;
  transition: top .15s ease, transform .15s ease, font-size .15s ease;
}
.campo-flotante input:focus + label,
.campo-flotante input:not(:placeholder-shown) + label {
  top: 8px;
  transform: none;
  font-size: 11px;
}

.login-boton {
  background: #e50914;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border-radius: 4px;
  padding: 12px;
  min-height: 44px;                /* área de toque cómoda en el móvil */
  margin-top: 8px;
  transition: background-color .25s cubic-bezier(.4, 0, .68, .06);
}
.login-boton:hover { background: #b1060e; }
.temblando { animation: temblar .4s; }

.login-o { text-align: center; color: #b3b3b3; font-size: 15px; margin: 12px 0; }
.login-boton-gris {
  width: 100%;
  padding: 12px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  background: rgba(128, 128, 128, .4);
  border-radius: 4px;
  transition: background-color .25s cubic-bezier(.4, 0, .68, .06);
}
.login-boton-gris:hover { background: rgba(128, 128, 128, .3); }
.login-olvide { display: block; margin: 14px auto 0; color: #fff; font-size: 15px; }
.login-olvide:hover { text-decoration: underline; }
.login-recordar {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  color: #fff;
  font-size: 15px;
  margin-top: 16px;
}
.login-recordar input { accent-color: #b3b3b3; width: 16px; height: 16px; }
.login-legal a { color: #fff; }
.login-pista {
  color: #ffd166;
  font-size: 13px;
  margin-top: 10px;
  border-left: 2px solid #ffd166;
  padding-left: 10px;
}
.login-sub { margin-top: 34px; color: #8c8c8c; font-size: 15px; }
.login-sub span { color: #fff; font-weight: 600; }
.login-legal { margin-top: 12px; color: #8c8c8c; font-size: 12.5px; line-height: 1.45; }

/* ===== Revelado al hacer scroll (las filas aparecen al llegar a ellas) ===== */
.portada-fila, .acordeon li {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .9, .25, 1);
}
.portada-fila.visible, .acordeon li.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .portada-fila, .acordeon li { opacity: 1; transform: none; transition: none; }
}

/* ===== Pantallas pequeñas (como el clon) ===== */
@media (max-width: 600px) {
  .portada-hero { padding: 10px 5% 110px; }
  .portada-collage, .login-fondo { grid-template-columns: repeat(4, 1fr); }
  .portada-contenido { padding-top: 110px; }
  .portada-elementos { padding: 10px 6%; }
  .portada-fila { padding: 34px 0; }
  .portada-faq { padding: 40px 6%; }
  .acordeon label { padding: 14px 48px 14px 16px; }
  .acordeon label::after { font-size: 24px; right: 16px; }
  .portada-footer { padding: 36px 6% 18px; }
  .portada-footer-columnas > div { flex-basis: 50%; }
  .entrada-mail { flex-direction: column; background: transparent; gap: 10px; overflow: visible; }
  .entrada-mail input { width: 100%; margin: 0; background: #fff; border-radius: 4px; padding: 14px 16px; }
  .entrada-mail button { border-radius: 4px; width: 100%; }
  .login-caja { background: rgba(0, 0, 0, .82); }
}
