/* LOYOLA ESTERILES - SISTEMA DE DISEÑO GLOBAL 
    Este archivo centraliza la estética de la plataforma.
*/

:root {
    /* Paleta de Colores Principal */
    --azul-brand: #0056ff;
    --azul-hover: #0045cc;
    --azul-soft: rgba(0, 86, 255, 0.08);
    --verde-exito: #00c853;
    --rojo-error: #f43f5e;

    /* Escala de Grises y Fondo */
    --fondo-gris: #f3f5f7;
    --blanco: #ffffff;
    --borde: #e2e8f0;
    --texto-principal: #1a1a1a;
    --texto-secundario: #64748b;
    --texto-suave: #94a3b8;

    /* Tipografía y Efectos */
    --fuente: 'Outfit', sans-serif;
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.03);
    --shadow-md: 0 10px 25px rgba(0,0,0,0.06);
    --shadow-lg: 0 20px 50px rgba(0,0,0,0.1);
    --radius: 16px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--fuente);
    background-color: var(--blanco);
    color: var(--texto-principal);
    line-height: 1.5;
    overflow-x: hidden;
}

/* Tipografía Dinámica */
h1, h2, h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: var(--azul-brand);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

a:hover {
    opacity: 0.8;
}

/* Componentes Universales: Botones */
.btn-blue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--azul-brand);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    font-family: var(--fuente);
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 86, 255, 0.15);
}

.btn-blue:hover {
    background: var(--azul-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 86, 255, 0.25);
}

.btn-blue:active {
    transform: translateY(0);
}

.btn-ghost {
    background: transparent;
    border: 2px solid var(--azul-brand);
    color: var(--azul-brand);
}

/* Componentes de Formulario */
.input-field {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--borde);
    border-radius: 12px;
    font-family: var(--fuente);
    font-size: 1rem;
    background: #f8fafc;
    outline: none;
    transition: var(--transition);
}

.input-field:focus {
    border-color: var(--azul-brand);
    background: white;
    box-shadow: 0 0 0 4px var(--azul-soft);
}

/* Modales Dinámicos */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.modal-card {
    background: var(--blanco);
    padding: 35px;
    border-radius: 24px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: modalSlide 0.3s ease-out;
}

@keyframes modalSlide {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Utilidades de Diseño */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.text-azul { color: var(--azul-brand); }
.bg-gris { background-color: var(--fondo-gris); }

/* Scrolleable suave */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--fondo-gris);
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}