/* ===== ESTILOS GLOBALES MB SYSTEMS ===== */
/* Basado en el diseño de index.html - Aplicado a nivel de etiquetas */

/* ===== VARIABLES DE COLOR Y TIPOGRAFÍA ===== */
:root {
    --navy-blue: #1e3a8a;
    --blue: #2563eb;
    --blue-bright: #3b82f6;
    --blue-dark: #1e40af;
    --purple: #2563eb;
    --dark-purple: #1e40af;
    --black: #000000;
    --black-soft: #0a0a0a;
    --dark-gray: #1a1a2e;
    --text-light: #ffffff;
    --text-gray: #bebebe;
    --white: #ffffff;
    --gradient-blue: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #3b82f6 100%);
    --gradient-blue-dark: linear-gradient(135deg, #000000 0%, #1e3a8a 50%, #2563eb 100%);
    --gradient-navy-blue: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    --shadow-blue: 0 10px 40px rgba(37, 99, 235, 0.3);
    --shadow-blue-glow: 0 0 30px rgba(37, 99, 235, 0.5);
}

/* ===== TIPOGRAFÍA GLOBAL ===== */
html {
    font-family: 'Space Grotesk', 'Rajdhani', 'Arial', sans-serif;
    scroll-behavior: smooth;
}


body {
    font-family: 'Space Grotesk', 'Rajdhani', 'Arial', sans-serif;
    background: linear-gradient(135deg, #000000 0%, #0a0a0a 50%, #1a1a2e 100%) !important;
    color: var(--text-light) !important;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(30, 58, 138, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ===== TÍTULOS ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', 'Space Grotesk', sans-serif;
    color: var(--text-light) !important;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(255, 255, 255, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2rem;
    color: var(--blue-bright) !important;
}

h3 {
    font-size: 1.75rem;
    color: var(--blue-bright) !important;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

/* ===== PÁRRAFOS Y TEXTO ===== */
p {
    color: var(--text-gray) !important;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    text-align: justify;
}

strong, b {
    color: var(--text-light) !important;
    font-weight: 700;
}

em, i {
    font-style: italic;
}

/* ===== ENLACES ===== */
a {
    color: var(--blue-bright) !important;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

a:hover {
    color: var(--text-light) !important;
    text-shadow: 0 0 10px rgba(37, 99, 235, 0.8);
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-blue);
    transition: width 0.3s ease;
    box-shadow: 0 0 8px rgba(37, 99, 235, 0.6);
}

a:hover::after {
    width: 100%;
}

/* ===== TABLAS (Para páginas antiguas) ===== */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

td, th {
    padding: 0.75rem;
    border: 1px solid rgba(37, 99, 235, 0.2);
    color: var(--text-gray) !important;
}

th {
    background: var(--gradient-blue);
    color: var(--text-light) !important;
    font-weight: 600;
    text-align: left;
}

tr:nth-child(even) {
    background: rgba(37, 99, 235, 0.05);
}

tr:hover {
    background: rgba(37, 99, 235, 0.1);
}

/* ===== FORMULARIOS ===== */
form {
    margin: 1.5rem 0;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
textarea,
select {
    background: rgba(0, 0, 0, 0.5) !important;
    border: 2px solid rgba(37, 99, 235, 0.3) !important;
    border-radius: 8px;
    color: var(--text-light) !important;
    padding: 0.75rem 1rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--blue-bright) !important;
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.5);
    background: rgba(0, 0, 0, 0.7) !important;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

/* ===== BOTONES ===== */
button,
input[type="submit"],
input[type="button"],
.btn {
    background: var(--gradient-blue) !important;
    border: 2px solid rgba(37, 99, 235, 0.5) !important;
    border-radius: 8px;
    color: var(--text-light) !important;
    padding: 0.75rem 2rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-blue), 0 0 20px rgba(37, 99, 235, 0.6);
    border-color: var(--blue-bright) !important;
}

button:active,
input[type="submit"]:active,
input[type="button"]:active {
    transform: translateY(0);
}

/* ===== LISTAS ===== */
ul, ol {
    color: var(--text-gray) !important;
    margin: 1rem 0;
    padding-left: 2rem;
}

li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

ul li::marker {
    color: var(--blue-bright);
}

ol li::marker {
    color: var(--blue-bright);
    font-weight: 700;
}

/* ===== IMÁGENES ===== */
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    transition: all 0.3s ease;
}

img:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

/* ===== DIVS Y CONTENEDORES ===== */
div {
    color: var(--text-gray) !important;
}

/* ===== FONTS (Para páginas antiguas con <font>) ===== */
font {
    color: inherit !important;
}

font[color="#FFCC66"],
font[color="#ffcc66"] {
    color: var(--blue-bright) !important;
}

font[color="#FFFFFF"],
font[color="#ffffff"],
font[color="white"] {
    color: var(--text-light) !important;
}

font[face*="Arial"],
font[face*="Helvetica"] {
    font-family: 'Space Grotesk', 'Arial', sans-serif !important;
}

font[face*="Georgia"],
font[face*="Times"] {
    font-family: 'Rajdhani', 'Georgia', serif !important;
}

/* ===== NAVEGACIÓN Y MENÚS ===== */
/* Navbar Moderno - Estilo de index.html - Aplicado globalmente */
body .modern-navbar {
    z-index: 99999 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    transform: none !important;
    overflow: visible !important;
}

body .modern-navbar .modern-nav-container {
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    max-width: 100% !important;
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    top: 0 !important;
    z-index: 99999 !important;
    visibility: visible !important;
    opacity: 1 !important;
    gap: 0 !important;
    justify-content: center !important;
    align-items: stretch !important;
    height: 60px !important;
    min-height: 60px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}

.modern-nav-container:hover {
    background: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
}

body .modern-navbar .modern-nav-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 20px !important;
    margin: 0 !important;
    color: #333333 !important;
    text-decoration: none !important;
    border-radius: 0 !important;
    transition: all 0.3s ease;
    position: relative;
    height: 60px !important;
    min-height: 60px !important;
    max-height: 60px !important;
    font-weight: 500;
    font-size: 0.95rem;
    background: transparent !important;
    flex-shrink: 0;
    white-space: nowrap;
    box-sizing: border-box !important;
    line-height: 1 !important;
}

body .modern-navbar .modern-nav-link::before {
    display: none !important;
}

body .modern-navbar .modern-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

body .modern-navbar .modern-nav-link:hover::after,
body .modern-navbar .modern-nav-link.active::after {
    transform: scaleX(1);
}

body .modern-navbar .modern-nav-link:hover {
    color: #2563eb !important;
    background: rgba(37, 99, 235, 0.08) !important;
    transform: none !important;
    box-shadow: none !important;
}

body .modern-navbar .modern-nav-link.active {
    background: rgba(37, 99, 235, 0.12) !important;
    color: #2563eb !important;
}

body .modern-navbar .modern-nav-link.active::after {
    transform: scaleX(1);
}

body .modern-navbar .nav-icon {
    margin-right: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: inherit !important;
    display: inline-flex;
    align-items: center;
}

body .modern-navbar .modern-nav-link:hover .nav-icon {
    transform: scale(1.1);
    color: inherit !important;
}

body .modern-navbar .nav-text {
    position: relative;
    z-index: 1;
    color: inherit !important;
    display: inline-block;
}

/* Navbar Scroll Effect */
body .modern-navbar .modern-nav-container.scrolled {
    background: #ffffff !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

/* Responsive Navbar */
@media (max-width: 768px) {
    body .modern-navbar .modern-nav-container {
        height: 50px !important;
        min-height: 50px !important;
        flex-direction: row !important;
        align-items: stretch !important;
        padding: 0 !important;
        overflow: visible !important;
        position: fixed !important;
    }
    
    body .modern-navbar .modern-nav-link {
        padding: 0 15px !important;
        height: 50px !important;
        min-height: 50px !important;
        max-height: 50px !important;
        width: auto !important;
        border-bottom: none !important;
        justify-content: center !important;
        font-size: 0.85rem !important;
    }
    
    body .modern-navbar .modern-nav-link:hover {
        background: rgba(37, 99, 235, 0.08) !important;
    }
    
    body .modern-navbar .nav-icon {
        margin-right: 8px !important;
    }
}

@media (max-width: 576px) {
    body .modern-navbar .modern-nav-container {
        height: 50px !important;
        min-height: 50px !important;
        overflow: visible !important;
    }
    
    body .modern-navbar .modern-nav-link {
        padding: 0 10px !important;
        height: 50px !important;
        min-height: 50px !important;
        max-height: 50px !important;
        font-size: 0.8rem !important;
    }
    
    body .modern-navbar .nav-text {
        display: none;
    }
    
    body .modern-navbar .nav-icon {
        margin-right: 0 !important;
        font-size: 1.2rem !important;
    }
}

/* Estilos para navegación antigua (compatibilidad) */
nav:not(.modern-navbar) {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav:not(.modern-navbar) a {
    color: #333333 !important;
    padding: 0.75rem 1.5rem;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
}

nav:not(.modern-navbar) a:hover {
    color: var(--blue) !important;
    background: rgba(37, 99, 235, 0.08);
}

nav:not(.modern-navbar) a::after {
    background: var(--gradient-blue);
    height: 3px;
    bottom: 0;
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(to top, 
        #000000 0%, 
        #0a0a0a 50%,
        #1a1a2e 100%) !important;
    border-top: 2px solid rgba(37, 99, 235, 0.4) !important;
    padding: 2rem;
    margin-top: 3rem;
    text-align: center;
    color: var(--text-gray) !important;
}

footer p {
    margin: 0.5rem 0;
}

footer a {
    color: var(--blue-bright) !important;
}

/* ===== TARJETAS Y CARDS ===== */
.card {
    background: linear-gradient(135deg, #000000 0%, #0a0a0a 50%, #1a1a2e 100%) !important;
    border: 2px solid rgba(37, 99, 235, 0.3) !important;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
    transition: all 0.4s ease;
}

.card:hover {
    border-color: rgba(37, 99, 235, 0.6) !important;
    box-shadow: var(--shadow-blue);
    transform: translateY(-5px);
}

.card-title {
    color: var(--text-light) !important;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-text {
    color: var(--text-gray) !important;
}

/* ===== BOTONES ESPECIALES (Para páginas antiguas) ===== */
table[background*="boton"],
table[background*="botony"] {
    background: var(--gradient-blue) !important;
    border: 2px solid rgba(37, 99, 235, 0.5) !important;
    border-radius: 8px;
}

table[background*="boton"] a,
table[background*="botony"] a {
    color: var(--text-light) !important;
    font-weight: 600;
    display: block;
    padding: 0.5rem;
}

table[background*="boton"] a:hover,
table[background*="botony"] a:hover {
    color: var(--text-light) !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    p {
        font-size: 0.95rem;
    }
    
    table {
        font-size: 0.9rem;
    }
    
    button,
    .btn {
        padding: 0.625rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    body {
        font-size: 0.9rem;
    }
    
    table {
        font-size: 0.85rem;
    }
    
    td, th {
        padding: 0.5rem;
    }
}

/* ===== UTILIDADES ===== */
.text-center {
    text-align: center !important;
}

.text-left {
    text-align: left !important;
}

.text-right {
    text-align: right !important;
}

.text-justify {
    text-align: justify !important;
}

.mt-1 { margin-top: 0.5rem !important; }
.mt-2 { margin-top: 1rem !important; }
.mt-3 { margin-top: 1.5rem !important; }
.mt-4 { margin-top: 2rem !important; }
.mt-5 { margin-top: 3rem !important; }

.mb-1 { margin-bottom: 0.5rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }
.mb-4 { margin-bottom: 2rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.p-1 { padding: 0.5rem !important; }
.p-2 { padding: 1rem !important; }
.p-3 { padding: 1.5rem !important; }
.p-4 { padding: 2rem !important; }
.p-5 { padding: 3rem !important; }

/* ===== ANIMACIONES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* ===== SCROLLBAR PERSONALIZADO ===== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--black-soft);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-blue);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--blue-bright);
}

/* ===== SELECTION ===== */
::selection {
    background: var(--blue);
    color: var(--text-light);
}

::-moz-selection {
    background: var(--blue);
    color: var(--text-light);
}

.fuente-footer{
    font-size: 25px!important;
}

