/* =====================================================
   SIMPLEMIND
   LOGIN / REGISTER
   ESTILO COMPATIBLE CON MENÚ PRINCIPAL
===================================================== */

/* ==========================
   VARIABLES
========================== */
:root {
    --blue: #79b8f3;
    --blue-dark: #397db9;
    --blue-deep: #28689f;
    --blue-light: #eaf6ff;
    --blue-soft: #cff6f6;
    --purple-soft: #b7e5e5;
    --green-soft: #94ddc1;
    --green: #4bb890;
    --text: #25364a;
    --text-light: #718096;
    --white: #ffffff;
    --background: #8abaf8;
    --border: #e4edf6;
    --shadow: 0 20px 50px rgba(58,111,158,0.12);
}

/* ==========================
   RESET
========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ==========================
   BODY
========================== */
body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: "DM Sans", Arial, sans-serif;
    color: var(--text);
    background: 
        radial-gradient(circle at 10% 15%, var(--blue-soft) 0%, transparent 30%),
        radial-gradient(circle at 90% 85%, var(--purple-soft) 0%, transparent 28%),
        var(--background);
    overflow: hidden;
}

/* ==========================
   CÍRCULOS DECORATIVOS
========================== */
body::before {
    content: "";
    position: fixed;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: var(--blue-light);
    opacity: .65;
    top: -220px;
    left: -150px;
}

body::after {
    content: "";
    position: fixed;
    width: 330px;
    height: 330px;
    border-radius: 50%;
    background: var(--purple-soft);
    opacity: .7;
    right: -130px;
    bottom: -160px;
}

/* ==========================
   CUADRO PRINCIPAL
========================== */
.container-login {
    position: relative;
    z-index: 2;
    width: min(920px, 95vw);
    max-height: 92vh;
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    overflow: hidden;
    background: var(--white);
    border: 1px solid rgba(228,237,246,.9);
    border-radius: 28px;
    box-shadow: 0 25px 70px rgba(58,111,158,.16);
}

/* ==========================
   CRUZ
========================== */
.close-login {
    position: absolute;
    top: 18px;
    right: 20px;
    z-index: 20;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #718096;
    font-family: Arial, sans-serif;
    font-size: 26px;
    font-weight: 400;
    transition: .25s;
}

.close-login:hover {
    color: var(--blue-dark);
    background: var(--blue-light);
    transform: rotate(90deg);
}

/* =====================================================
   PANEL IZQUIERDO
===================================================== */
.left-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(
        145deg,
        #edf8ff 0%,
        #e6f4ff 48%,
        #f0edff 100%
    );
}

.left-panel::before {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(121,184,243,.18);
    top: -150px;
    left: -110px;
}

.left-panel::after {
    content: "";
    position: absolute;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: rgba(238,234,255,.7);
    right: -110px;
    bottom: -100px;
}

.left-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 315px;
    padding: 35px 25px;
    text-align: center;
}

/* ==========================
   LOGO
========================== */
.logo-container {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: rgba(255,255,255,.55);
    box-shadow: 0 15px 35px rgba(58,111,158,.12);
}

.logo {
    width: 88px;
    height: 88px;
    object-fit: contain;
    border-radius: 50%;
    mix-blend-mode: multiply;
}

/* ==========================
   BIENVENIDO
========================== */
.bienvenida {
    margin-bottom: 8px;
    font-family: "Poppins", Arial, sans-serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.8px;
    color: var(--text);
}

/* ==========================
   SUBTÍTULO
========================== */
.subtitle {
    max-width: 275px;
    margin: 0 auto 20px;
    color: var(--text-light);
    font-size: 13px;
    line-height: 1.6;
}

/* ==========================
   FRASE
========================== */
.frase {
    position: relative;
    padding: 15px 18px;
    text-align: left;
    background: rgba(255,255,255,.60);
    border: 1px solid rgba(255,255,255,.8);
    border-left: 3px solid var(--blue);
    border-radius: 0 16px 16px 0;
    box-shadow: 0 10px 30px rgba(58,111,158,.08);
}

.quote {
    position: absolute;
    top: 0px;
    left: 10px;
    font-family: Georgia, serif;
    font-size: 38px;
    line-height: 1;
    color: rgba(57,125,185,.18);
}

.frase p {
    padding-left: 18px;
    color: #607389;
    font-size: 13px;
    line-height: 1.5;
}

.frase strong {
    display: block;
    margin-top: 2px;
    color: var(--blue-dark);
    font-weight: 700;
}

/* =====================================================
   PANEL DERECHO
===================================================== */
.right-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px 55px;
    background: white;
    max-height: 92vh;
    overflow-y: auto; /* Permite desplazamiento si la pantalla es muy pequeña */
}

.form-header {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    color: var(--blue-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.form-header h2 {
    margin-bottom: 5px;
    font-family: "Poppins", Arial, sans-serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.5px;
    color: var(--text);
}

.form-header p {
    color: var(--text-light);
    font-size: 13px;
}

/* ==========================
   FORMULARIO
========================== */
form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ==========================
   INPUT GROUP
========================== */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.input-group label {
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
}

.input-group input {
    width: 100%;
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 9px;
    outline: none;
    background: #fbfdff;
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
    transition: .25s;
}

.input-group input::placeholder {
    color: #9aa8b8;
}

.input-group input:hover {
    border-color: #cbdceb;
}

.input-group input:focus {
    background: white;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(121,184,243,.12);
}

/* ==========================
   BOTONES
========================== */
.button {
    width: 100%;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: .25s;
}

.button-primary {
    border: none;
    background: var(--blue-dark);
    color: white;
    box-shadow: 0 10px 25px rgba(57,125,185,.20);
    margin-top: 4px;
}

.button-primary:hover {
    background: var(--blue-deep);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(57,125,185,.28);
}

/* ==========================
   REGISTRO
========================== */
.register-text {
    margin-top: 2px;
    text-align: center;
    color: var(--text-light);
    font-size: 13px;
}

.register-text a {
    color: var(--blue-dark);
    font-weight: 800;
}

.register-text a:hover {
    text-decoration: underline;
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 800px) {
    body {
        padding: 15px;
        overflow: auto;
    }

    .container-login {
        width: 100%;
        max-width: 500px;
        grid-template-columns: 1fr;
        max-height: none;
    }

    .left-panel {
        min-height: 280px;
    }

    .right-panel {
        padding: 35px 30px;
        max-height: none;
    }
}
/* 1. Laptops y Pantallas Medianas (<= 1024px) */
@media (max-width: 1024px) {
.contenedor {
max-width: 100%;
padding: 0 16px;
}

.panel-opciones {
    width: 250px;
}


}

/* 2. Tablets / iPads en Orientación Vertical y Móviles Grandes (<= 860px) */
@media (max-width: 860px) {
body {
padding: 16px;
}

.main-layout {
    flex-direction: column;
    gap: 20px;
}

.caja,
.panel-opciones {
    width: 100%;
}

.panel-opciones {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}


}

/* 3. Smartphones Estándar (<= 640px) */
@media (max-width: 640px) {
body {
padding: 12px 8px;
}

.contenedor {
    padding: 0;
    gap: 16px;
}

/* Encabezado adaptable */
.resumen-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-left-width: 5px;
}

.header-text h1 {
    font-size: 18px;
}

.header-text p {
    font-size: 12px;
}

.ia-logo {
    align-self: flex-start;
    padding: 8px 10px;
    font-size: 18px;
}

/* Caja de conversión principal */
.caja {
    padding: 16px;
}

.caja h2 {
    font-size: 14px;
    margin-bottom: 12px;
}

textarea {
    height: 110px;
    font-size: 14px;
}

select {
    font-size: 14px;
    padding: 10px;
}

.archivo {
    padding: 10px;
    font-size: 12px;
}

/* Botón adaptable de ancho completo para táctil */
.acciones-contenedor {
    width: 100%;
}

.acciones-contenedor button,
button {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
}

/* Panel de opciones en una sola columna táctil */
.panel-opciones {
    grid-template-columns: 1fr;
}

.opcion-card {
    padding: 0.85rem;
}

.opcion-icon {
    width: 38px;
    height: 38px;
    font-size: 1rem;
}

/* Modal / Pantalla de carga responsiva */
.loading-overlay {
    padding: 1rem;
}

.loading-card {
    padding: 1.5rem 1.2rem;
}

.loading-scene {
    height: 80px;
}

.loading-circle {
    width: 60px;
    height: 60px;
}

.ai-center {
    width: 34px;
    height: 34px;
    font-size: 1rem;
}

.btn-cerrar-vista {
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
}


}

/* 4. Pantallas Muy Pequeñas (<= 380px) */
@media (max-width: 380px) {
.header-text h1 {
font-size: 16px;
}

.caja {
    padding: 12px;
}

.opcion-info h3 {
    font-size: 0.8rem;
}

.opcion-info p {
    font-size: 0.68rem;
}


}