/* ===============================
   CRECEFÁCIL GLOBAL STYLE
   Archivo: assets/css/style.css
================================ */

:root {
    --bg-main: #0B1C2C;
    --bg-dark: #061224;
    --bg-deep: #020A13;

    --card: #10243A;
    --card-dark: #081625;

    --text: #E0E1DE;
    --text-soft: #CBD5E1;
    --muted: #9FAFC4;

    --blue: #1E88FF;
    --blue-soft: #60A5FA;
    --blue-light: #93C5FD;

    --green: #22C55E;
    --yellow: #F59E0B;
    --red: #EF4444;

    --line: rgba(122, 140, 165, .25);
    --line-strong: rgba(122, 140, 165, .38);

    --white: #FFFFFF;
    --black: #000000;

    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-xl: 30px;

    --shadow-card: 0 20px 60px rgba(0, 0, 0, .25);
    --shadow-blue: 0 0 28px rgba(30, 136, 255, .35);
}

/* RESET */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

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

button {
    cursor: pointer;
}

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

ul,
ol {
    list-style: none;
}

/* UTILIDADES */

.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

/* BOTONES */

.btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    border-radius: var(--radius-md);
    padding: 0 22px;
    font-weight: 900;
    transition: .2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(180deg, #ffffff, #dbeafe);
    color: #061224;
    box-shadow: var(--shadow-blue);
}

.btn-dark {
    background: rgba(8, 22, 37, .78);
    color: var(--text);
    border: 1px solid var(--line);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--line-strong);
}

/* CARDS */

.card {
    background:
        linear-gradient(145deg, rgba(16, 36, 58, .90), rgba(8, 22, 37, .96));
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

/* INPUTS */

.input,
select,
textarea {
    color: var(--text);
}

.input {
    width: 100%;
    height: 54px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    background: rgba(8, 22, 37, .72);
    padding: 0 18px;
    outline: none;
    font-size: 16px;
}

.input::placeholder,
textarea::placeholder {
    color: var(--muted);
}

.input:focus,
select:focus,
textarea:focus {
    border-color: rgba(30, 136, 255, .72);
    box-shadow: 0 0 0 4px rgba(30, 136, 255, .12);
}

/* BADGES */

.badge {
    padding: 8px 13px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.badge-blue {
    background: rgba(30, 136, 255, .15);
    color: #60a5fa;
}

.badge-green {
    background: rgba(34, 197, 94, .15);
    color: #4ade80;
}

.badge-yellow {
    background: rgba(245, 158, 11, .15);
    color: #fbbf24;
}

.badge-red {
    background: rgba(239, 68, 68, .15);
    color: #fca5a5;
}

.badge-gray {
    background: rgba(148, 163, 184, .15);
    color: #cbd5e1;
}

/* ALERTAS GENERALES */

.alert {
    padding: 16px 18px;
    border-radius: var(--radius-md);
    font-weight: 800;
    margin-bottom: 20px;
}

.alert-success {
    background: rgba(34, 197, 94, .14);
    border: 1px solid rgba(34, 197, 94, .35);
    color: #86efac;
}

.alert-error {
    background: rgba(239, 68, 68, .14);
    border: 1px solid rgba(239, 68, 68, .35);
    color: #fca5a5;
}

/* SCROLLBAR */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #061224;
}

::-webkit-scrollbar-thumb {
    background: #1F2A44;
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4A5D73;
}

/* RESPONSIVE GLOBAL */

@media (max-width: 760px) {
    .container {
        width: min(100% - 30px, 1180px);
    }

    .btn {
        width: 100%;
    }
}