/* site-01-base.css: Variables, base and reset, general layout (01-03).
   Part of the old site.css, split by sections (same order: _Styles.cshtml links them one after the other,
   so the cascade is exactly the same). */

/* =====================================================================
   01. VARIABLES
   ===================================================================== */
:root {
    /* Typography */
    --font-family: 'Inter', 'Roboto', 'Segoe UI', system-ui, -apple-system, sans-serif;
    /* Backgrounds */
    --bg: #050914;
    --bg-soft: #0c1220;
    /* Panels */
    --panel: #0c1220;
    --panel-2: #111a2e;
    --panel-3: #1e293b;
    /* Primary and accent */
    --primary: #FF330A;
    --primary-soft: #3a54e0;
    --primary-glow: rgba(79, 109, 245, 0.18);
    --accent: #22d3ee;
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #4f6df5 0%, #22d3ee 100%);
    --gradient-primary-hover: linear-gradient(135deg, #3a54e0 0%, #06b6d4 100%);
    --gradient-vivid: linear-gradient(135deg, #4f6df5 0%, #a855f7 55%, #22d3ee 100%);
    /* States */
    --success: #16c98d;
    --warning: #f7a63b;
    --danger: #f4506b;
    --danger-glow: rgba(244, 80, 107, 0.18);
    --info: #22d3ee;
    /* Text */
    --text: #f8fafc;
    --text-soft: #94a3b8;
    --muted: #64748b;
    /* Borders */
    --border: #1e293b;
    --border-light: #334155;
    /* Inputs */
    --input-bg: #050914;
    --input-bg-focus: #111a2e;
    --input-border: #1e293b;
    --input-text: #f8fafc;
    --input-placeholder: #475569;
    /* Tables */
    --row-1: #0c1220;
    --row-2: #111a2e;
    --row-hover: rgba(79, 109, 245, 0.12);
    /* Radii */
    --radius-sm: 8px;
    --radius: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 1px 1px rgba(0, 0, 0, 0.2);
    --shadow: 0 6px 16px -4px rgba(0, 0, 0, 0.4), 0 2px 6px -2px rgba(79, 109, 245, 0.12);
    --shadow-lg: 0 20px 40px -12px rgba(0, 0, 0, 0.5), 0 4px 12px -4px rgba(79, 109, 245, 0.15);
    --shadow-glow: 0 0 0 1px rgba(79, 109, 245, 0.25), 0 8px 24px -6px rgba(79, 109, 245, 0.4);
    --form-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    /* Transitions */
    --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.14s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-spring: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}


/* =====================================================================
   02. BASE AND RESET
   ===================================================================== */
* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    color: var(--text);
    background: var(--bg);
    overflow-x: clip;   /* "hidden" would break position: sticky of the top bar */
    -webkit-font-smoothing: antialiased;
}

body {
    position: relative;
    display: flex;
    flex-direction: column;
    background-image: radial-gradient(circle at 15% 0%, rgba(79, 109, 245, 0.16), transparent 45%), radial-gradient(circle at 85% 100%, rgba(34, 211, 238, 0.10), transparent 45%), linear-gradient(to bottom, rgba(5, 9, 20, 0.92), rgba(5, 9, 20, 0.97)), var(--app-bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

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

::selection {
    background: #3b82f6;
    color: white;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text);
    font-weight: 700;
    letter-spacing: -0.025em;
}

    h1:focus {
        outline: none;
    }

p {
    color: var(--text-soft);
    line-height: 1.5;
}

/* Links with animated underline */
a {
    color: var(--primary-soft);
    text-decoration: none;
    transition: var(--transition);
    background-image: linear-gradient(var(--accent), var(--accent));
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 0% 1px;
}

    a:hover {
        color: var(--primary);
        background-size: 100% 1px;
    }

    a.btn:hover,
    a.person-back:hover,
    a[class*="btn-"]:hover {
        background-image: none;
    }

label {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 0.815rem;
    font-weight: 500;
}

/* Browser autofill */
.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus,
.form-control:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px var(--panel) inset !important;
    -webkit-text-fill-color: var(--text) !important;
    transition: background-color 5000s ease-in-out 0s;
}


/* =====================================================================
   03. GENERAL LAYOUT
   ===================================================================== */
.app-layout {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.content {
    flex: 1;
    width: 100%;
    padding: 32px 24px;
}

.page-container {
    width: 100%;
    max-width: 1400px;
    margin: auto;
}

/* Classic header */
.app-header {
    width: 100%;
    background: var(--panel);
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.header-content {
    height: 64px;
    padding: 0 24px;
    display: flex;
    align-items: center;
}

.app-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
}

    .app-logo i {
        color: var(--primary);
        font-size: 24px;
    }

    .app-logo:hover {
        color: var(--primary-soft);
    }

/* Footer */
.app-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 8px;
    margin-top: auto;
    padding: 16px 24px;
    text-align: center;
    background: var(--panel);
    color: var(--muted);
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
}

    /* Version (right): discreet, it opens "Novedades" */
    .app-footer .app-footer-version {
        color: var(--muted);
        font-size: 0.8rem;
        font-weight: 500;
        text-decoration: none;
        font-variant-numeric: tabular-nums;
    }

        .app-footer .app-footer-version:hover,
        .app-footer .app-footer-version:focus-visible {
            color: var(--primary-soft);
            text-decoration: underline;
        }

/* Phone: if it does not fit in one line, the version goes below (without the dash) */
@media (max-width: 575.98px) {
    .app-footer {
        flex-direction: column;
    }

    .app-footer .app-footer-sep {
        display: none;
    }
}
