/* ================================================================
   GymSoft — main.css
   Variables CSS globales, reset y estilos base
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;1,9..40,400&display=swap');

/* ── Variables del sistema (base, sobrescritas según config BD) ── */
:root {
    /* Paleta principal */
    --azul-oscuro:   #0D1B3E;
    --azul-medio:    #1A3A6B;
    --celeste:       #2E86C1;
    --celeste-claro: #AED6F1;
    --celeste-glow:  #5DADE2;
    --gris-oscuro:   #1C2333;
    --gris-medio:    #5D6D7E;
    --gris-claro:    #F0F4F8;
    --blanco:        #FFFFFF;
    --verde-ok:      #1ABC9C;
    --rojo-alerta:   #E74C3C;
    --amarillo:      #F39C12;

    /* Tipografía */
    --font-display: 'Outfit',  sans-serif;
    --font-body:    'DM Sans', sans-serif;

    /* Radios */
    --radius-sm:  6px;
    --radius-md:  12px;
    --radius-lg:  20px;
    --radius-xl:  28px;

    /* Transiciones */
    --trans-rapida:  0.15s ease;
    --trans-normal:  0.3s ease;
    --trans-lenta:   0.5s ease;

    /* Sombras */
    --sombra-card:  0 8px 32px rgba(13, 27, 62, 0.25);
    --sombra-boton: 0 4px 15px rgba(46, 134, 193, 0.4);
    --sombra-glow:  0 0 20px rgba(93, 173, 226, 0.3);

    /* Borde estándar */
    --borde: #dde4ec;
}

/* ── Reset base ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family:      var(--font-body);
    font-size:        0.9375rem;
    line-height:      1.6;
    color:            #e2e8f0;
    background-color: var(--gris-oscuro);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

a { color: var(--celeste); text-decoration: none; }
a:hover { color: var(--celeste-glow); }

img, svg { display: block; max-width: 100%; }

button { cursor: pointer; border: none; background: none; font-family: inherit; }

input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

ul, ol { list-style: none; }

/* ── Utilidades globales ── */
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); border: 0;
}

.oculto  { display: none !important; }
.visible { display: block !important; }

.texto-centro { text-align: center; }
.texto-der    { text-align: right; }

/* Scrollbar estilizado */
::-webkit-scrollbar              { width: 6px; height: 6px; }
::-webkit-scrollbar-track        { background: var(--gris-oscuro); }
::-webkit-scrollbar-thumb        { background: var(--azul-medio); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover  { background: var(--celeste); }
