
/* =========================================================
   AURA IA
   PRODUCCIONES BETAVERSIÓN OFICIAL
========================================================= */


/* =========================================================
   VARIABLES
========================================================= */

:root {

    --azul: #3C78D8;
    --azul-oscuro: #2459A8;

    --fondo: #D9D9D9;

    --blanco: #FFFFFF;
    --negro: #111111;

    --texto: #171717;
    --texto-secundario: #5E5E5E;

    --vidrio: rgba(255, 255, 255, 0.16);
    --vidrio-suave: rgba(255, 255, 255, 0.10);
    --vidrio-fuerte: rgba(255, 255, 255, 0.24);

    --borde: rgba(255, 255, 255, 0.45);

    --sombra:
        0 20px 60px rgba(0, 0, 0, 0.14);

    --radio-grande: 34px;
    --radio-mediano: 22px;
    --radio-pequeno: 16px;

}


/* =========================================================
   REINICIO
========================================================= */

* {

    box-sizing: border-box;

    margin: 0;
    padding: 0;

}


html {

    width: 100%;
    height: 100%;

}


body {

    width: 100%;
    min-height: 100vh;

    font-family:
        "Times New Roman",
        Times,
        serif;

    color: var(--texto);

    overflow-x: hidden;

    background:
        url("portada.png")
        center center
        / cover
        fixed
        no-repeat;

}


/* =========================================================
   FONDO DE VIDRIO GENERAL
========================================================= */

body::before {

    content: "";

    position: fixed;

    inset: 0;

    z-index: -2;

    background:
        rgba(255, 255, 255, 0.18);

    backdrop-filter:
        blur(14px)
        saturate(115%);

    -webkit-backdrop-filter:
        blur(14px)
        saturate(115%);

}


/* =========================================================
   CAPA DE EMPAÑADO
========================================================= */

body::after {

    content: "";

    position: fixed;

    inset: 0;

    z-index: -1;

    pointer-events: none;

    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(255,255,255,0.28),
            transparent 32%
        ),

        radial-gradient(
            circle at 80% 70%,
            rgba(255,255,255,0.18),
            transparent 35%
        );

}


/* =========================================================
   APLICACIÓN
========================================================= */

.aura-app {

    position: relative;

    width: calc(100% - 40px);
    max-width: 1500px;

    height: calc(100vh - 40px);

    min-height: 600px;

    margin: 20px auto;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    border-radius: var(--radio-grande);

    border: 1px solid var(--borde);

    background:
        rgba(255, 255, 255, 0.12);

    backdrop-filter:
        blur(8px)
        saturate(115%);

    -webkit-backdrop-filter:
        blur(8px)
        saturate(115%);

    box-shadow:
        var(--sombra);

}


/* Reflejo superior */

.aura-app::before {

    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 180px;

    pointer-events: none;

    background:
        linear-gradient(
            to bottom,
            rgba(255,255,255,0.28),
            transparent
        );

    opacity: 0.7;

    z-index: 0;

}


/* =========================================================
   BARRA SUPERIOR
========================================================= */

.aura-header {

    position: relative;

    z-index: 10;

    width: 100%;
    height: 82px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding:
        0 26px;

    border-bottom:
        1px solid rgba(255,255,255,0.35);

    background:
        rgba(255,255,255,0.13);

    backdrop-filter:
        blur(18px);

    -webkit-backdrop-filter:
        blur(18px);

}


/* =========================================================
   IDENTIDAD
========================================================= */

.aura-identidad {

    display: flex;

    align-items: center;

}


/* =========================================================
   LOGO AURA
========================================================= */

.aura-logo {

    width: 48px;
    height: 48px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    padding: 0;

    border: none;

    border-radius: 17px;

    color: white;

    font-family: inherit;

    font-size: 27px;

    background:
        linear-gradient(
            145deg,
            var(--azul),
            var(--azul-oscuro)
        );

    box-shadow:
        0 10px 25px rgba(60,120,216,0.32);

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;

}


.aura-logo:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 14px 30px rgba(60,120,216,0.40);

}


.aura-logo:active {

    transform:
        scale(0.94);

}
/* =========================================================
   TÍTULO
   OCULTO — EL HEADER SOLO MUESTRA EL LOGO
========================================================= */

.aura-titulo {

    display: none;

}


/* =========================================================
   ESTADO
========================================================= */

.aura-estado {

    display: flex;

    align-items: center;

    gap: 8px;

    padding:
        9px 14px;

    border-radius: 999px;

    border:
        1px solid rgba(255,255,255,0.40);

    background:
        rgba(255,255,255,0.12);

    backdrop-filter:
        blur(14px);

    -webkit-backdrop-filter:
        blur(14px);

    font-size: 14px;

}


.estado-punto {

    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: #38B66A;

    box-shadow:
        0 0 10px rgba(56,182,106,0.65);

}


.estado-texto {

    color:
        var(--texto);

}


/* =========================================================
   BOTÓN MENÚ
========================================================= */

.boton-menu {

    display: none;

    width: 44px;
    height: 44px;

    border: 1px solid var(--borde);

    border-radius: 14px;

    background:
        rgba(255,255,255,0.14);

    color:
        var(--texto);

    font-size: 21px;

    cursor: pointer;

    transition:
        0.2s ease;

}


.boton-menu:hover {

    background:
        rgba(255,255,255,0.28);

    transform:
        translateY(-1px);

}


/* =========================================================
   CONTENIDO PRINCIPAL
========================================================= */

.aura-contenido {

    position: relative;

    z-index: 2;

    flex: 1;

    min-height: 0;

    display: flex;

}


/* =========================================================
   SIDEBAR
========================================================= */

.aura-sidebar {

    width: 235px;

    flex-shrink: 0;

    display: flex;

    flex-direction: column;

    gap: 7px;

    padding:
        24px 15px;

    border-right:
        1px solid rgba(255,255,255,0.30);

    background:
        rgba(255,255,255,0.09);

    backdrop-filter:
        blur(18px);

    -webkit-backdrop-filter:
        blur(18px);

}


/* =========================================================
   TÍTULO SIDEBAR
========================================================= */

.sidebar-titulo {

    padding:
        4px 12px 12px;

    font-size: 13px;

    color:
        var(--texto-secundario);

    text-transform:
        uppercase;

    letter-spacing:
        1px;

}


/* =========================================================
   OPCIONES SIDEBAR
========================================================= */

.sidebar-opcion {

    width: 100%;

    min-height: 46px;

    display: flex;

    align-items: center;

    gap: 12px;

    padding:
        0 13px;

    border: 1px solid transparent;

    border-radius:
        var(--radio-pequeno);

    background:
        transparent;

    color:
        var(--texto);

    font-family:
        inherit;

    font-size: 16px;

    text-align: left;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        border 0.2s ease;

}


.sidebar-opcion span:first-child {

    width: 25px;

    display: flex;

    justify-content: center;

    font-size: 18px;

}


.sidebar-opcion:hover {

    background:
        rgba(255,255,255,0.18);

    border-color:
        rgba(255,255,255,0.30);

    transform:
        translateX(2px);

}


.sidebar-opcion.activo {

    background:
        rgba(255,255,255,0.25);

    border-color:
        rgba(255,255,255,0.45);

    box-shadow:
        0 5px 18px rgba(0,0,0,0.06);

}


/* =========================================================
   SERIES BLOQUEADA
========================================================= */

.sidebar-opcion.series-bloqueada {

    opacity: 0.38;

    cursor: not-allowed;

    pointer-events: none;

}


.sidebar-opcion.series-bloqueada:hover {

    transform: none;

}


/* =========================================================
   SEPARADOR
========================================================= */

.sidebar-separador {

    width: 100%;

    height: 1px;

    margin:
        14px 0;

    background:
        rgba(255,255,255,0.30);

}


/* =========================================================
   INFORMACIÓN SIDEBAR
========================================================= */

.sidebar-informacion {

    margin-top: auto;

    padding:
        16px;

    border:
        1px solid rgba(255,255,255,0.30);

    border-radius:
        var(--radio-mediano);

    background:
        rgba(255,255,255,0.10);

    backdrop-filter:
        blur(15px);

    -webkit-backdrop-filter:
        blur(15px);

}


.sidebar-mini-logo {

    width: 34px;
    height: 34px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 9px;

    border-radius: 11px;

    color: white;

    background:
        linear-gradient(
            145deg,
            var(--azul),
            var(--azul-oscuro)
        );

    font-size: 19px;

}


.sidebar-informacion p {

    font-size: 16px;

    margin-bottom: 3px;

}


.sidebar-informacion small {

    display: block;

    color:
        var(--texto-secundario);

    font-size: 12px;

    line-height: 1.35;

}


/* =========================================================
   CHAT
========================================================= */

.aura-chat {

    position: relative;

    flex: 1;

    min-width: 0;

    min-height: 0;

    display: flex;

    flex-direction: column;

    overflow: hidden;

}


/* =========================================================
   PANTALLA INICIAL
========================================================= */

.pantalla-inicio {

    width: 100%;
    height: 100%;

    overflow-y: auto;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    padding:
        45px 30px;

    text-align: center;

}


.pantalla-inicio.oculta {

    display: none;

}

/* =========================================================
   LOGO GRANDE
========================================================= */

.aura-simbolo-grande {

    width: 110px;
    height: 110px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 24px;

    border-radius: 32px;

    color:
        white;

    font-size: 58px;

    background:
        linear-gradient(
            145deg,
            var(--azul),
            var(--azul-oscuro)
        );

    box-shadow:
        0 20px 45px rgba(60,120,216,0.28);

    animation:
        auraFlotar 4s ease-in-out infinite;

}


@keyframes auraFlotar {

    0%,
    100% {

        transform:
            translateY(0);

    }

    50% {

        transform:
            translateY(-7px);

    }

}


/* =========================================================
   TÍTULOS INICIALES
========================================================= */

.pantalla-inicio h2 {

    margin-bottom: 10px;

    font-size:
        clamp(28px, 4vw, 40px);

    font-weight:
        700;

}


.bienvenida-texto {

    max-width: 600px;

    color:
        var(--texto-secundario);

    font-size: 17px;

    line-height: 1.5;

}


.pregunta-inicial {

    margin-top: 12px;

    margin-bottom: 25px;

    font-size: 19px;

}


/* =========================================================
   SUGERENCIAS
========================================================= */

.sugerencias {

    width: min(760px, 100%);

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 14px;

}


/* =========================================================
   BOTÓN SUGERENCIA
========================================================= */

.sugerencia {

    min-height: 86px;

    display: flex;

    align-items: center;

    gap: 15px;

    padding:
        17px;

    border:
        1px solid rgba(255,255,255,0.42);

    border-radius:
        var(--radio-mediano);

    background:
        rgba(255,255,255,0.12);

    backdrop-filter:
        blur(18px);

    -webkit-backdrop-filter:
        blur(18px);

    color:
        var(--texto);

    font-family:
        inherit;

    text-align:
        left;

    cursor:
        pointer;

    box-shadow:
        0 8px 25px rgba(0,0,0,0.05);

    transition:
        0.25s ease;

}


.sugerencia:hover {

    background:
        rgba(255,255,255,0.23);

    border-color:
        rgba(255,255,255,0.65);

    transform:
        translateY(-3px);

    box-shadow:
        0 14px 30px rgba(0,0,0,0.10);

}


.sugerencia > span:first-child {

    width: 45px;
    height: 45px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background:
        rgba(255,255,255,0.24);

    font-size: 22px;

}


.sugerencia strong {

    display: block;

    margin-bottom: 4px;

    font-size: 16px;

}


.sugerencia small {

    display: block;

    color:
        var(--texto-secundario);

    font-size: 13px;

    line-height: 1.35;

}


/* =========================================================
   CONVERSACIÓN
========================================================= */

.chat {

    flex: 1;

    min-height: 0;

    overflow-y: auto;

    display: flex;

    flex-direction: column;

    gap: 16px;

    padding:
        30px 30px 145px;

}


.chat:empty {

    display: none;

}


/* =========================================================
   MENSAJES
========================================================= */

.mensaje {

    max-width: 780px;

    padding:
        16px 19px;

    border-radius:
        20px;

    line-height: 1.5;

    font-size: 16px;

}


.mensaje.usuario {

    align-self: flex-end;

    color:
        white;

    background:
        var(--azul);

    border-bottom-right-radius:
        7px;

    box-shadow:
        0 8px 20px rgba(60,120,216,0.20);

}


.mensaje.aura {

    align-self: flex-start;

    color:
        var(--texto);

    background:
        rgba(255,255,255,0.14);

    border:
        1px solid rgba(255,255,255,0.42);

    backdrop-filter:
        blur(18px);

    -webkit-backdrop-filter:
        blur(18px);

    border-bottom-left-radius:
        7px;

}


/* =========================================================
   TARJETAS AURA
========================================================= */

.tarjeta-aura {

    width: min(820px, 100%);

    padding:
        22px;

    border:
        1px solid rgba(255,255,255,0.45);

    border-radius:
        25px;

    background:
        rgba(255,255,255,0.13);

    backdrop-filter:
        blur(20px)
        saturate(120%);

    -webkit-backdrop-filter:
        blur(20px)
        saturate(120%);

    box-shadow:
        0 12px 35px rgba(0,0,0,0.07);

}


.tarjeta-aura h3 {

    margin-bottom: 9px;

    font-size: 22px;

}


.tarjeta-aura p {

    color:
        var(--texto-secundario);

    line-height: 1.5;

}


/* =========================================================
   BOTONES DENTRO DE TARJETAS
========================================================= */

.tarjeta-aura button {

    margin-top: 16px;

    padding:
        10px 17px;

    border:
        none;

    border-radius:
        999px;

    background:
        var(--azul);

    color:
        white;

    font-family:
        inherit;

    font-size:
        15px;

    cursor:
        pointer;

    transition:
        0.2s ease;

}


.tarjeta-aura button:hover {

    background:
        var(--azul-oscuro);

    transform:
        translateY(-2px);

}


/* =========================================================
   ENTRADA DE MENSAJE
========================================================= */

.entrada-contenedor {

    position: absolute;

    left: 50%;

    bottom: 22px;

    transform:
        translateX(-50%);

    width:
        min(850px, calc(100% - 50px));

    z-index: 20;

}


.entrada-contenedor.oculta {

    display: none;

}


/* =========================================================
   CAJA DE ENTRADA
========================================================= */

.entrada {

    width: 100%;

    min-height: 62px;

    display: flex;

    align-items: center;

    gap: 10px;

    padding:
        7px 8px 7px 16px;

    border:
        1px solid rgba(255,255,255,0.52);

    border-radius:
        22px;

    background:
        rgba(255,255,255,0.22);

    backdrop-filter:
        blur(24px)
        saturate(125%);

    -webkit-backdrop-filter:
        blur(24px)
        saturate(125%);

    box-shadow:
        0 15px 40px rgba(0,0,0,0.12);

}


.entrada-icono {

    width: 30px;

    color:
        var(--azul);

    font-size:
        23px;

    text-align:
        center;

}


.entrada input {

    flex: 1;

    min-width: 0;

    height: 46px;

    border:
        none;

    outline:
        none;

    background:
        transparent;

    color:
        var(--texto);

    font-family:
        inherit;

    font-size:
        16px;

}


.entrada input::placeholder {

    color:
        rgba(17,17,17,0.55);

}


/* =========================================================
   BOTÓN ENVIAR
========================================================= */

#enviar {

    width: 47px;
    height: 47px;

    flex-shrink: 0;

    border:
        none;

    border-radius:
        16px;

    background:
        linear-gradient(
            145deg,
            var(--azul),
            var(--azul-oscuro)
        );

    color:
        white;

    font-size:
        21px;

    cursor:
        pointer;

    box-shadow:
        0 8px 20px rgba(60,120,216,0.25);

    transition:
        0.2s ease;

}


#enviar:hover {

    transform:
        scale(1.05);

}


#enviar:active {

    transform:
        scale(0.96);

}


/* =========================================================
   AYUDA DE ENTRADA
========================================================= */

.entrada-ayuda {

    margin-top: 7px;

    text-align:
        center;

    color:
        rgba(17,17,17,0.52);

    font-size:
        11px;

}


/* =========================================================
   SCROLLBARS
========================================================= */

.chat::-webkit-scrollbar,
.pantalla-inicio::-webkit-scrollbar {

    width: 7px;

}


.chat::-webkit-scrollbar-track,
.pantalla-inicio::-webkit-scrollbar-track {

    background:
        transparent;

}


.chat::-webkit-scrollbar-thumb,
.pantalla-inicio::-webkit-scrollbar-thumb {

    background:
        rgba(17,17,17,0.18);

    border-radius:
        999px;

}


/* =========================================================
   ANIMACIÓN DE APARICIÓN
========================================================= */

.sugerencia,
.mensaje,
.tarjeta-aura {

    animation:
        aparecerAura 0.35s ease both;

}


@keyframes aparecerAura {

    from {

        opacity: 0;

        transform:
            translateY(8px);

    }

    to {

        opacity: 1;

        transform:
            translateY(0);

    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .aura-sidebar {

        width: 210px;

    }

    .sugerencias {

        width: 90%;

    }

}


/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 900px) {

    body {

        background-attachment:
            scroll;

    }


    .aura-app {

        width: 100%;

        height: 100vh;

        min-height: 100vh;

        margin: 0;

        border-radius: 0;

        border-left: none;
        border-right: none;

    }


    .aura-header {

        height: 72px;

        padding:
            0 17px;

    }


    .aura-logo {

        width: 43px;
        height: 43px;

        border-radius:
            15px;

        font-size:
            24px;

    }


    .aura-estado {

        margin-left:
            auto;

        margin-right:
            10px;

    }


    .boton-menu {

        display:
            flex;

        align-items:
            center;

        justify-content:
            center;

    }


    .aura-contenido {

        position:
            relative;

    }


    .aura-sidebar {

        position:
            absolute;

        top: 0;
        left: 0;
        bottom: 0;

        width: 270px;

        z-index: 50;

        transform:
            translateX(-105%);

        transition:
            transform 0.3s ease;

        box-shadow:
            15px 0 40px rgba(0,0,0,0.12);

        background:
            rgba(255,255,255,0.20);

    }


    .aura-sidebar.abierto {

        transform:
            translateX(0);

    }


    .aura-chat {

        width: 100%;

    }


    .pantalla-inicio {

        padding:
            35px 18px 130px;

    }


    .aura-simbolo-grande {

        width: 90px;
        height: 90px;

        border-radius:
            27px;

        font-size:
            47px;

        margin-bottom:
            20px;

    }


    .pantalla-inicio h2 {

        font-size:
            30px;

    }


    .bienvenida-texto {

        font-size:
            16px;

    }


    .pregunta-inicial {

        font-size:
            17px;

    }


    .sugerencias {

        width: 100%;

        grid-template-columns:
            1fr;

        gap: 11px;

    }


    .sugerencia {

        min-height:
            75px;

        padding:
            14px;

    }


    .chat {

        padding:
            22px 16px 140px;

    }


    .entrada-contenedor {

        width:
            calc(100% - 24px);

        bottom:
            12px;

    }


    .entrada {

        min-height:
            57px;

        border-radius:
            19px;

    }


    .entrada-ayuda {

        font-size:
            10px;

    }

}


/* =========================================================
   MÓVIL PEQUEÑO
========================================================= */

@media (max-width: 480px) {

    .aura-estado {

        padding:
            8px 10px;

    }


    .estado-texto {

        font-size:
            12px;

    }


    .aura-simbolo-grande {

        width: 82px;
        height: 82px;

        font-size:
            43px;

    }


    .pantalla-inicio h2 {

        font-size:
            27px;

    }


    .entrada-icono {

        display:
            none;

    }


    .entrada {

        padding-left:
            11px;

    }


    #enviar {

        width: 43px;
        height: 43px;

        border-radius:
            14px;

    }

}