@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display.swap');

/*
=================================
Estilos con Correcciones Finales
=================================
*/

/* --- Tipografía Profesional y Global --- */
body, h2, h5, p, label, button, a {
    font-family: 'Poppins', sans-serif;
}

#buscar-email {
    width: 100%;
    padding: 10px 20px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 25px;
    transition: all 0.3s ease;
    outline: none;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-weight: 400;
}

#buscar-email:focus {
    border-color: #007BFF;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

/* --- Contenedor del texto dinámico --- */
.text-cambios {
    display: inline-block;
    vertical-align: middle;
    overflow: hidden;
    height: 1.2em;
    line-height: 1.2em;
    color: #39beff;
    -webkit-text-fill-color: #39beff; 
}

.dynamic-text {
    display: inline-block;
    animation: slideUp 2s infinite;
}

@keyframes slideUp {
    0% { transform: translateY(100%); opacity: 0; }
    10% { transform: translateY(0); opacity: 1; }
    90% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-100%); opacity: 0; }
}

.texto-contenido {
    color: #d2d0d0;
    font-size: 17px;
    max-width: 80%;
    line-height: 1.6;
    text-align: justify;
    font-weight: 300;
}

/* --- Título principal con Gradiente y Sombra Suave --- */
.section-title {
    font-size: 2.5em;
    font-weight: 800;
    position: relative;
    background: linear-gradient(to top, #e0e0e0, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0px 4px 15px rgba(0, 0, 0, 0.4);
}

/* Título de la página de inicio para alinear el texto dinámico */
.home-title {
    line-height: 1.2em;
}


.section-title::before {
    content: "";
    position: absolute;
    bottom: -9px;
    left: 0;
    width: 150px;
    height: 1px;
    border-radius: 5px;
    background: rgba(210, 208, 208, 0.5);
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    border-radius: 5px;
    background: #39beff;
}

.url {
    text-decoration: none;
}

/* --- Efecto Glassmorphism y Animación de Elevación --- */
.link-plataformas {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 12px;
    max-width: 400px;
    margin: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.link-plataformas:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* --- Aumento de fuente y negrita para títulos de plataforma --- */
.tituloplataformas {
    font-size: 19px;
    font-weight: 800;
    text-transform: uppercase;
    text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
}

/* --- Colores de Títulos de Plataforma --- */
.animacionnetflix .tituloplataformas {
    color: #E50914; /* Rojo Netflix */
}
.animaciondisney .tituloplataformas {
    color: #0063e5; /* Azul Disney */
}
.animacionstar .tituloplataformas {
    color: #00A8E1; /* Celeste Prime Video */
}

/* --- Color de texto de descripción a negro --- */
.description {
    color: #000000;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    text-align: left;
    padding: 0px 5px 0px 5px;
}

.link-description {
    display: flex;
    flex-direction: row;
    gap: 50px;
}

.icono-plataforma {
    flex-shrink: 0;
    align-self: flex-start;
}

.platform-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.url:hover .platform-icon {
    transform: scale(1.1);
}

.fa-solid, .fas, .bi {
    font-weight: 900;
}

.alertanocorreoborde {
    border-radius: 12px;
    background: rgba(57, 190, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px;
    width: 100%;
}

.alertanocorreo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    font-size: 18px;
    position: relative;
    background: #39beff;
    color: #ffffff;
    border-radius: 8px;
    padding: 10px;
    font-weight: 400;
}

/* --- Estilo Glassmorphism para el formulario de consulta --- */
#emailForm {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 30px;
    margin-top: 20px;
}

#emailForm .section-title {
    color: #1a1a1a;
    text-shadow: none; 
    font-size: 1.8em;
    background: none;
    -webkit-text-fill-color: initial;
}

#emailForm label {
    color: #000000;
    font-weight: 600;
}

#emailForm .btn-success {
    background-color: #E50914;
    border-color: #A30000;
}
#emailForm .btn-success:hover {
    background-color: #B20000;
    border-color: #800000;
}

/* --- Estilos para el Iframe del correo --- */
.email-iframe {
    display: block;
    width: 100%;
    height: 75vh;
    min-height: 600px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.logo-img-animacion {
    max-width: 320px;
    transform: translatey(0px);
    animation: float 4s ease-in-out infinite;
}

.imgyorobot {
    transition: transform 0.3s ease;
    animation: entrada-desde-la-izquierda 1.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.imgyorobot:hover {
    transform: rotate(5deg);
}

/*
==========================================================
ESTILOS GENERALES Y DE BARRAS
==========================================================
*/

body {
    background-color: #1b1b1b;
    padding-bottom: 45px;
    margin: 0;
}

#fondo1 {
    background-image: url('../img/bg1.jpg');
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-position: center top;
    background-size: cover;
    padding-top: 90px;
    min-height: 100vh;
    box-sizing: border-box; 
    display: flex;
    flex-direction: column;
    padding-bottom: 60px;
}


/* --- Barra de Navegación con Gradiente Rojo Semi-Transparente --- */
.navbar {
    background: linear-gradient(to right, rgba(178, 0, 0, 0.7), rgba(229, 9, 20, 0.7)) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding: 8px 15px !important;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-mobile {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.logo-link .logo img {
    max-height: 40px;
    display: block;
}

.navbar-title {
    color: white;
    font-weight: bold;
    font-size: 1.4em;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.navbar .links .link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white !important;
    font-weight: bold;
    text-decoration: none;
}
.navbar .links .link:hover {
    opacity: 0.8;
}

.navbar .links {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.navbar .hamburger {
    display: none;
}

/*
==========================================================
ESTILOS RESPONSIVE PARA TABLETS Y MÓVILES
==========================================================
*/

/* --- Media Query para tablet y móvil (donde aparece el menú hamburguesa) --- */
@media (max-width: 992px) {
    /* Ocultamos los links de escritorio */
    .navbar .links {
        display: none;
        /* Estilos del menú desplegable */
        position: absolute;
        top: 55px; /* Altura de la barra de navegación */
        left: 0;
        width: 100%;
        background: rgba(178, 0, 0, 0.9); /* Fondo más sólido */
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        padding-bottom: 15px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    }
    
    /* Clase que activa el menú con JavaScript */
    .navbar .links.active {
        display: flex;
    }
    
    .navbar .hamburger {
        display: block;
        flex-shrink: 0;
        color: white;
        font-size: 1.6rem;
        cursor: pointer;
    }
    .navbar-title {
        position: static;
        transform: none;
        margin-left: 15px;
        text-align: left;
        pointer-events: auto;
    }
}

/* --- Media Query solo para móviles (donde se apilan las columnas) --- */
@media (max-width: 768px) {

    /* --- Ajuste de Título Principal --- */
    .section-title {
        font-size: 1.8em; /* Reducir tamaño de fuente en móviles */
        text-align: center;
    }

    .home-title {
        text-align: left;
    }

    /* --- Ajuste de Columnas y Layout --- */
    .row {
        flex-direction: column;
    }

    .col-sm-4, .col-sm-8 {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }

    .col-sm-8 {
        margin-top: 30px; /* Añadir espacio cuando las columnas se apilan */
    }
    
    /* CORRECCIÓN: Se asegura que la tarjeta no sea más ancha que la pantalla */
    .link-plataformas {
        max-width: 100%; 
    }

    /* --- Ajuste del Iframe --- */
    .email-iframe {
        height: 60vh;
        min-height: 400px;
    }

    /* --- Ajuste del Pie de Página --- */
    #footer {
        position: static; /* El footer ya no es fijo, se va al final */
    }
    
    body, #fondo1 {
        padding-bottom: 0; /* Quitar el padding extra para el footer */
    }

    .imgyorobot {
        display: none; /* Ocultar el robot en móvil para ahorrar espacio */
    }
}

/*
==========================================================
ESTILOS DEL PIE DE PÁGINA Y OTROS
==========================================================
*/

#footer {
    background: linear-gradient(to right, rgba(178, 0, 0, 0.7), rgba(229, 9, 20, 0.7)) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding: 10px 0;
    text-align: center;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1030;
}

#footer .copyright {
    font-size: 0.9em;
    margin: 0;
    color: white;
    width: 100%;
}

#footer .copyright a {
    color: white;
    text-decoration: none;
}

#footer .social-links {
    display: none;
}

/* --- Estilos para las Cajas de Plataforma Activas --- */
.plataforma-activa-netflix {
    border: 3px solid #E50914 !important;
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.5);
}

.plataforma-activa-disney {
    border: 3px solid #0063e5 !important;
    box-shadow: 0 0 20px rgba(0, 99, 229, 0.5);
}

.plataforma-activa-prime {
    border: 3px solid #00A8E1 !important;
    box-shadow: 0 0 20px rgba(0, 168, 225, 0.5);
}