﻿#blazor-error-ui {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.titulo-btn {
    width: 100%;
    padding: 5px 0px;
    font-size: clamp(1rem, 3.5vw, 1.5rem); /* responsive */
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.bg-gradient-custom {
    /* fallback por si no soporta gradients */
    background-color: #283e51;
    /* propiedades del degradado */
    background: linear-gradient(135deg, #283e51, #1b1d8b); /* asegurar altura visible */
    min-height: 100vh;
    /* para ver el contenido centrado */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.btn-card {
    border-radius: 15px; /* bordes redondeados */
    background: rgba(255, 255, 255, 0.08); /* fondo semitransparente */
    color: white; /* color del texto */
    border: 1px solid rgba(255, 255, 255, 0.2); /* borde tenue */
    backdrop-filter: blur(8px); /* efecto de desenfoque detrás (vidrio esmerilado) */
    transition: all 0.3s ease; /* animación suave en hover */
}

/* EFECTO CUANDO PASAS EL MOUSE SOBRE UNA TARJETA */
.btn-card:hover {
    color: white !important;
    transform: translateY(-5px); /* la tarjeta se eleva un poco */
    background: rgba(255, 255, 255, 0.15); /* se aclara el fondo */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); /* sombra para dar profundidad */
}

/* CONTENEDOR FIJO DE CHAT + PANEL */
.fixed-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 5px;
    flex-wrap: wrap; /* evita que se vaya hacia la izquierda */
    max-width: 100vw; /* nunca excede ancho pantalla */
    z-index: 9999;
}

/* PANEL Y CHAT */
.side-panel,
.chat-window {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    height: 90vh;
    max-height: 600px;
}

/* PANEL IZQUIERDO */
.side-panel {
    width: 250px; /* ancho fijo */
    overflow-y: auto; /* no crece, hace scroll interno */
}

/* CHAT */
.chat-window {
    width: 450px;
    overflow: hidden;
}

/* ------------------------------ */
/* RESPONSIVE: PANTALLAS < 1050px */
/* ------------------------------ */
@media (max-width: 1050px) {
    .fixed-container {
        right: 10px;
        bottom: 10px;
    }

    icono-robot {
        top: 10px;
    }

    /* Reducimos un poco los tamaños */
    .side-panel {
        width: 200px;
        height: 70vh;
    }

    .chat-window {
        width: 380px;
        height: 70vh;
    }
}

/* ------------------------------ */
/* RESPONSIVE: PANTALLAS < 850px */
/* Panel arriba del chat          */
/* ------------------------------ */
@media (max-width: 850px) {

    .fixed-container {
        flex-direction: column; /* panel arriba */
        align-items: center;
        right: 0;
        left: 0;
        margin: auto;
    }

    .side-panel,
    .chat-window {
        width: 90vw !important; /* ocupar casi todo el ancho */
        max-width: 80vw;
        /*height: 40vh;*/ /* más bajo para móvil */
    }

    .side-panel {
        order: 1; /* panel arriba */
        height: 30vh; /* más bajo para móvil */
    }

    .chat-window {
        order: 2; /* chat abajo */
        height: 60vh; /* más bajo para móvil */
    }
}

/* ------------------------------ */
/* MÓVIL PEQUEÑO (< 500px)        */
/* ------------------------------ */
@media (max-width: 500px) {
    .side-panel,
    .chat-window {
       
        border-radius: 10px;
    }
}

icono-robot {
    top: 10px;
}

.chat-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0; /* importante para que funcione el scroll */
}

/* Cuerpo del chat (mensajes) */
.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px 15px;
    background: #f9f9f9;
    scroll-behavior: smooth;
}

/* Caja de texto */
.chat-input {
   /* display: flex;*/
    padding: 10px;
    border-top: 1px solid #ddd;
    background: #fff;
}

.chat-input .input-group {
    flex: 1;
}

.chat-input input {
    flex: 1;
}

.chat-input button {
    display: flex;
}

.input-texarea {
    font-size:12px;
    resize: none;
    overflow: hidden;
    min-height: 40px;
    max-height: 100px;
    overflow-y: auto;
    margin-right: 8px;
}

    .text-titulo {
        font-size: 60px;
    }

.icon-box {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    background: linear-gradient( 135deg, rgba(39, 156, 255, 0.7), rgba(0, 99, 255, 0.7) );
}

.icon-pill {
    width: 120px;
    height: 80px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

