body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.font-tech {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.glass-panel {
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(0, 180, 216, 0.24);
}

.chart-container {
    position: relative;
    width: 100%;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
    height: 280px;
    max-height: 300px;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #0f172a;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #00b4d8;
}

/* =========================
   R3DULAB THEME SYSTEM
   Oscuro por defecto
   ========================= */

body.dark-mode {
    background: #020617 !important;
    color: #e2e8f0 !important;
}

body.dark-mode .glass-panel,
body.dark-mode header,
body.dark-mode footer,
body.dark-mode .bg-white {
    background: rgba(15, 23, 42, 0.96) !important;
    border-color: rgba(0, 180, 216, 0.24) !important;
    color: #e2e8f0 !important;
}

body.dark-mode .bg-slate-50,
body.dark-mode .bg-slate-50\/50,
body.dark-mode .bg-slate-100,
body.dark-mode .bg-slate-100\/50 {
    background: #0f172a !important;
}

body.dark-mode .text-slate-950,
body.dark-mode .text-slate-900,
body.dark-mode .text-slate-800,
body.dark-mode .text-slate-700,
body.dark-mode .text-slate-600 {
    color: #e2e8f0 !important;
}

body.dark-mode .text-slate-500,
body.dark-mode .text-slate-400 {
    color: #94a3b8 !important;
}

body.dark-mode .border-slate-100,
body.dark-mode .border-slate-150,
body.dark-mode .border-slate-200 {
    border-color: rgba(148, 163, 184, 0.24) !important;
}

body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
    background: #020617 !important;
    color: #e2e8f0 !important;
    border-color: rgba(0, 180, 216, 0.35) !important;
}

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
    color: #64748b !important;
}

body.dark-mode table {
    color: #e2e8f0 !important;
}

body.dark-mode thead tr {
    background: #0f172a !important;
}

body.dark-mode tbody tr:hover {
    background: rgba(0, 180, 216, 0.08) !important;
}

body.dark-mode .shadow-sm,
body.dark-mode .shadow-md,
body.dark-mode .shadow-lg {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.38) !important;
}

/* =========================
   Modo claro manual
   ========================= */

body.light-mode {
    background: #f8fafc !important;
    color: #1e293b !important;
}

body.light-mode .glass-panel,
body.light-mode header,
body.light-mode footer,
body.light-mode .bg-white {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(13, 148, 136, 0.15) !important;
    color: #1e293b !important;
}

body.light-mode .bg-slate-50,
body.light-mode .bg-slate-50\/50,
body.light-mode .bg-slate-100,
body.light-mode .bg-slate-100\/50 {
    background: #f8fafc !important;
}

body.light-mode .text-slate-950,
body.light-mode .text-slate-900,
body.light-mode .text-slate-800,
body.light-mode .text-slate-700,
body.light-mode .text-slate-600 {
    color: #0f172a !important;
}

body.light-mode .text-slate-500,
body.light-mode .text-slate-400 {
    color: #64748b !important;
}

body.light-mode input,
body.light-mode select,
body.light-mode textarea {
    background: #ffffff !important;
    color: #334155 !important;
    border-color: #e2e8f0 !important;
}

#theme-toggle {
    min-width: 125px;
}

/* =========================
   R3DULAB ADMIN MODE
   ========================= */

body.admin-mode #btn-admin {
    background: #00b4d8 !important;
    color: #020617 !important;
    border-color: #00b4d8 !important;
}

body.admin-mode [data-admin-only="true"] {
    display: inline-flex !important;
}
/* =========================
   R3DULAB GALLERY
   ========================= */

.gallery-grid-pattern {
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.18) 1px, transparent 1px);
    background-size: 28px 28px;
}

.gallery-card {
    min-height: 100%;
}/* =========================
   INSTAGRAM EMBEDS
   ========================= */

.instagram-embed-card {
    min-height: 420px;
    border: 1px solid rgba(226, 232, 240, 1);
    border-radius: 1rem;
    background: #ffffff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.instagram-media {
    min-width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
}
/* =========================
   HOME SERVICES
   ========================= */

.home-service-card {
    min-height: 120px;
    border: 1px solid rgba(226, 232, 240, 1);
    border-radius: 1rem;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
    text-align: center;
    color: #0f172a;
    font-size: 0.75rem;
    font-weight: 800;
    transition: all 0.2s ease;
}

.home-service-card:hover {
    border-color: rgba(20, 184, 166, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}
/* =========================
   BRAND LOGO
   ========================= */

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.brand-link:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.brand-logo-symbol {
    height: 42px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-wordmark-block {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.brand-logo-wordmark {
    height: 20px;
    width: auto;
    object-fit: contain;
    max-width: 180px;
}

.brand-slogan {
    font-size: 0.56rem;
    letter-spacing: 0.18em;
    font-weight: 700;
    color: #64748b;
    line-height: 1;
}

@media (min-width: 768px) {
    .brand-logo-symbol {
        height: 48px;
    }

    .brand-logo-wordmark {
        height: 24px;
        max-width: 220px;
    }
}

.footer-brand .brand-logo-symbol {
    height: 34px;
}

.footer-brand .brand-logo-wordmark {
    height: 18px;
    max-width: 170px;
}

.footer-brand .brand-slogan {
    font-size: 0.5rem;
}