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

:root {
    --blue-color: #9E4700;
    --darkblue-color: #9E4700;
    --red-color: #9E4700;

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

    --bg-1: #f8f4f1;
    --bg-2: #efe6df;
    --surface: #ffffff;
    --surface-soft: #f5f0eb;
    --text-main: #142126;
    --text-muted: #4d636d;
    --border-soft: rgba(158, 71, 0, 0.18);
    --shadow-soft: 0 14px 35px rgba(158, 71, 0, 0.18);
    --shadow-strong: 0 22px 45px rgba(158, 71, 0, 0.24);
    --topbar-bg: rgba(255, 255, 255, 0.78);
    --overlay-bg: rgba(12, 17, 26, 0.56);
    --card-bg: rgba(255, 255, 255, 0.94);
    --card-bg-soft: rgba(245, 240, 235, 0.9);
    --input-bg: #ffffff;
    --input-text: #142126;
    --input-placeholder: #6a7d85;
    --state-warn-bg: rgba(158, 71, 0, 0.12);
    --state-warn-text: #7d3f1a;
    --bg-accent-1: rgba(158, 71, 0, 0.15);
    --bg-accent-2: rgba(158, 71, 0, 0.12);
    --sidebar-bg-1: #5a3d31;
    --sidebar-bg-2: #9E4700;
    --sidebar-hover-bg: rgba(255, 255, 255, 0.14);
    --sidebar-active-bg: rgba(255, 247, 242, 0.94);
    --sidebar-active-text: #5a3d31;
    --table-wrap-bg: var(--card-bg);
    --table-head-bg: linear-gradient(120deg, var(--blue-color), var(--darkblue-color));
    --table-head-text: #ffffff;
    --table-row-even: rgba(17, 55, 68, 0.08);
    --table-row-odd: rgba(255, 255, 255, 0.82);
    --table-row-hover: rgba(158, 71, 0, 0.14);
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(1000px 500px at 0% 0%, var(--bg-accent-1), transparent 60%),
        radial-gradient(800px 380px at 100% 100%, var(--bg-accent-2), transparent 58%),
        linear-gradient(120deg, var(--bg-1) 0%, var(--bg-2) 100%);
    background-attachment: fixed;
}

body[data-theme='antiguo'] {
    --blue-color: #1f3d73;
    --darkblue-color: #152b52;
    --red-color: #1f3d73;
    --bg-1: #edf2ff;
    --bg-2: #dce7ff;
    --surface: #ffffff;
    --surface-soft: #eef3ff;
    --text-main: #10203f;
    --text-muted: #3f5278;
    --border-soft: rgba(31, 61, 115, 0.23);
    --shadow-soft: 0 14px 35px rgba(31, 61, 115, 0.18);
    --shadow-strong: 0 22px 45px rgba(31, 61, 115, 0.24);
    --topbar-bg: rgba(255, 255, 255, 0.8);
    --overlay-bg: rgba(9, 20, 45, 0.56);
    --card-bg: rgba(255, 255, 255, 0.95);
    --card-bg-soft: rgba(238, 243, 255, 0.9);
    --input-bg: #ffffff;
    --input-text: #10203f;
    --input-placeholder: #5a6d94;
    --state-warn-bg: rgba(31, 61, 115, 0.14);
    --state-warn-text: #1b3768;
    --bg-accent-1: rgba(31, 61, 115, 0.16);
    --bg-accent-2: rgba(31, 61, 115, 0.12);
    --sidebar-bg-1: #1b2744;
    --sidebar-bg-2: #111a31;
    --sidebar-hover-bg: rgba(255, 255, 255, 0.13);
    --sidebar-active-bg: rgba(255, 255, 255, 0.94);
    --sidebar-active-text: #1b2f58;
    --table-wrap-bg: var(--card-bg);
    --table-head-bg: linear-gradient(120deg, #1f3d73, #152b52);
    --table-head-text: #ffffff;
    --table-row-even: rgba(31, 61, 115, 0.09);
    --table-row-odd: rgba(255, 255, 255, 0.84);
    --table-row-hover: rgba(31, 61, 115, 0.16);
}

body[data-theme='verdozo'] {
    --blue-color: #6f7782;
    --darkblue-color: #525a64;
    --red-color: #6f7782;
    --bg-1: #17191d;
    --bg-2: #0e1013;
    --surface: #1d2127;
    --surface-soft: #252a32;
    --text-main: #e5e9ef;
    --text-muted: #a6adb8;
    --border-soft: rgba(166, 173, 184, 0.25);
    --shadow-soft: 0 14px 35px rgba(5, 7, 10, 0.42);
    --shadow-strong: 0 22px 45px rgba(2, 3, 5, 0.5);
    --topbar-bg: rgba(20, 22, 27, 0.86);
    --overlay-bg: rgba(7, 8, 11, 0.72);
    --card-bg: rgba(30, 34, 41, 0.95);
    --card-bg-soft: rgba(37, 42, 50, 0.92);
    --input-bg: #262b33;
    --input-text: #e5e9ef;
    --input-placeholder: #9ca4af;
    --state-warn-bg: rgba(144, 152, 163, 0.2);
    --state-warn-text: #d9dde4;
    --bg-accent-1: rgba(160, 167, 178, 0.13);
    --bg-accent-2: rgba(120, 129, 141, 0.1);
    --sidebar-bg-1: #161a20;
    --sidebar-bg-2: #0d1015;
    --sidebar-hover-bg: rgba(229, 233, 239, 0.14);
    --sidebar-active-bg: rgba(229, 233, 239, 0.9);
    --sidebar-active-text: #1a1f26;
    --table-wrap-bg: rgba(24, 28, 34, 0.95);
    --table-head-bg: linear-gradient(120deg, #4c545f, #353b44);
    --table-head-text: #f0f3f8;
    --table-row-even: rgba(143, 152, 164, 0.13);
    --table-row-odd: rgba(30, 34, 41, 0.85);
    --table-row-hover: rgba(160, 169, 180, 0.2);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.02em;
}

.loading {
    width: 100%;
    height: 100vh;
    position: fixed;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 2rem;
    inset: 0;

    background-color: rgba(8, 22, 31, 0.88);
    backdrop-filter: blur(4px);
}

.loading h1 {
    font-size: 35px;
    color: #fff;
    text-shadow: 0 0 20px #fff;
}

.loading span {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.18);
    border-top-color: #a27b68;
    border-right-color: rgba(255, 184, 104, 0.86);
    animation: spin 1.05s infinite linear;
    box-shadow: 0 0 0 0 rgba(162, 123, 104, 0.18);
}

.loading img {
    width: min(160px, 42vw);
}

.loading span::after {
    content: "";
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(162, 123, 104, 0.9) 42%, rgba(162, 123, 104, 0.08) 72%, rgba(162, 123, 104, 0) 100%);
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    z-index: 1;
    animation: pulse 1.35s infinite ease-in-out;
}

.loading span::before {
    content: "";
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 32px rgba(162, 123, 104, 0.18);
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    z-index: 0;
    animation: orbitGlow 1.8s infinite ease-in-out;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(0.85);
        opacity: 0.78;
    }

    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}

@keyframes orbitGlow {
    0%,
    100% {
        transform: scale(0.98);
        opacity: 0.45;
    }

    50% {
        transform: scale(1.14);
        opacity: 0.92;
    }
}

@media print {
    @page {
        margin: 0;
        margin-bottom: .5cm;
    }
    body { margin: 1.5cm; }
  }



