/* DOCUMENTO DE ESTILOS CORREGIDO */
/* SELECTOR UNIVERSAL */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

/* ============================================== */
/* ESTILOS DEL BODY (FONDO Y FILTRO GLOBAL) */
/* ============================================== */
body {
  /* Imagen de fondo principal */
  background-image: url("https://assets.nflxext.com/ffe/siteui/vlv3/a927b1ee-784d-494a-aa80-cf7a062d2523/web/AR-es-20250714-TRIFECTA-perspective_be0dce3e-bf56-44c2-a5ea-be989f1a388b_large.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  
  /* PROPIEDADES CLAVE PARA EL FILTRO GLOBAL */
  position: relative; /* FUNDAMENTAL: Permite posicionar el pseudo-elemento ::before */
  min-height: 100vh; /* Asegura que ocupe toda la altura visible */
}

/* PSEUDO-ELEMENTO: Crea la capa de filtro sobre toda la imagen de fondo. */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  
  /* z-index: -1: Coloca el filtro DETRÁS del header, formulario y footer. */
  z-index: -1; 
}

/* La clase filterBlack ahora es redundante y se mantiene por si se necesita localmente. */


/* ============================================== */
/* ESTILOS DE COMPONENTES Y REGISTRO */
/* ============================================== */

/* Estilo para centrar el formulario de registro verticalmente */
.registro {
    
    align-items: center;
    justify-content: center;
    min-height: 85vh; 
}

/* Estilo para la caja del formulario (.contenedor) */
.contenedor {
  /* Fondo opaco para la caja del formulario, sobre el filtro global. */
  background-color: rgba(0, 0, 0, 0.8); 
  border-radius: 5px;
  padding: 48px 64px;
  position: relative; /* Asegura que flote sobre el filtro */
  z-index: 1;
}

header > img {
  height: 80px;
  margin-left: 150px;
  margin-top: 20px;
  position: relative;
  z-index: 10;
}


footer {
  position: relative;
  z-index: 2;
  background-color: #161616 !important;
}
footer .row a {
  display: block;
  text-align: left;
}

footer p,
a {
  color: #bababa;
}

.contenedor > h1 {
  color: white;
  font-size: 35px;
  font-weight: bolder;
}

.form-control {
  background-color: rgba(128, 128, 128, 0.132) !important;
  border: 1px solid rgba(128, 128, 128);
}

.form-floating > label {
  color: white !important;
}

form > button {
  width: 100%;
  height: 40px;
  background-color: rgba(255, 0, 0, 0.693);
  color: white;
  border-radius: 5px;
  border: none;
  font-weight: bold;
  margin-top: 15px;
  padding: 1rem;
}

form > button:hover {
  background-color: rgba(255, 0, 0, 0.596);
}

form > p {
  color: white;
  text-align: center;
  margin: 15px 0px;
}

form > .button2 {
  background-color: rgba(128, 128, 128, 0.462);
  margin: 0px;
}

form > .button2:hover {
  background-color: rgba(128, 128, 128, 0.26);
}

div > a {
  color: white;
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

form > label {
  color: white;
}

.p2 {
  text-align: start;
  color: gray;
}

.p3 {
  text-align: start;
  color: gray;
  font-size: 13px;
}

a {
  text-align: end;
  color: white !important;
}
/*  ESTILO DE LA PAGINA DE BIENVENIDO */

/* DOCUMENTO DE ESTILOS DE BIENVENIDA RESPONSIVE */

/* ... (Mantén aquí el selector universal y los estilos de body/filtro global) ... */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65); 
    z-index: -1; 
}
/* ============================================== */

/* ESTILOS BASE DE BIENVENIDA */
.welcome-page {
    background-color: #141414;
    color: #e5e5e5;
}

/* 1. HEADER Y LOGO */
header {
    position: relative;
    z-index: 10;
}
header .logo {
    height: 45px; /* Tamaño por defecto en escritorio */
    width: auto; 
}

/* 2. SECCIÓN PRINCIPAL */
.welcome-section {
    /* Clave: Usa 100vh para que ocupe todo el espacio visible */
    min-height: 100vh; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 50px 20px;
    
    background-image: url("https://assets.nflxext.com/ffe/siteui/vlv3/d1532f52-f472-4d26-a006-cd3c1f6b643a/5b487c6b-28b9-4670-b747-d5d21a20df94/AR-es-20231206-popsignuptwoweeks-perspective_alpha_website_large.jpg");
    background-size: cover;
    background-position: center;
    position: relative;
}
/* Filtro de la sección de bienvenida */
.welcome-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    
    z-index: 1;
}

.welcome-content {
    position: relative;
    z-index: 2;
    padding: 30px;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.6); 
    /* Max-width para que no se extienda demasiado en pantallas grandes */
    max-width: 900px; 
}

/* Título de Bienvenida */
.welcome-content h1 {
    font-size: 3.5rem; /* Tamaño de escritorio */
    font-weight: bold;
    color: #e50914; 
}

/* Botón Explorar */
.btn-explore {
    background-color: #e50914; 
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    text-decoration: none; 
    display: inline-block; /* Asegura que se centre bien */
}
.btn-explore:hover {
    background-color: #f40612; 
    color: white; 
}


/* 3. FOOTER */
footer {
    position: relative;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.9) !important;
}

footer a {
    color: #737373 !important; /* Gris sutil */
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline !important;
}


/* ============================================== */
/* MEDIA QUERIES (RESPONSIVE) */
/* ============================================== */

@media (max-width: 768px) {
    
    /* Logo más pequeño en móvil */
    header .logo {
        height: 30px; 
    }

    /* Títulos y texto más pequeños en móvil */
    .welcome-content h1 {
        font-size: 2.2rem; /* Tamaño de título ajustado para móvil */
    }

    .welcome-content p {
        font-size: 1.1rem;
    }

    .btn-explore {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    /* Footer: Asegura alineación correcta de texto en móvil */
    footer p.text-md-start {
        text-align: left !important;
    }
    
    /* Eliminar el fondo semi-transparente del contenido en pantallas muy pequeñas */
    .welcome-content {
        background-color: transparent; 
        padding: 0;
    }
}