/* ========================================
   MacAlf Modern Theme - Basado en nGestion.css
   Mantiene: Fuentes, Padding, Margins originales
   Mejora: Bordes, Sombras, Degradados
   ======================================== */

@font-face {
    font-family: 'nGestion';
    src: url('nGestion.eot');
}

@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    src: local('Open Sans'), local('OpenSans'), url(../nsans/OpenSans-Regular.woff) format('woff'), url(opensans/OpenSans-Regular.ttf) format('ttf');
}

/* ========================================
   CABECERAS - Color uniforme sin degradado
   ======================================== */
.Cabecera {
    background-color: #ee8813;
    color: #FFFFFF;
    font-weight: bold;
    font-family: 'nGestion','Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-left: 5px;
    box-shadow: 0 2px 4px rgba(238, 136, 19, 0.2);
    transition: all 0.08s ease;
}

.Cabecera:hover {
    box-shadow: 0 3px 6px rgba(238, 136, 19, 0.3);
}

.Cabecera a {
    color: #FFFFFF !important;
    text-decoration: none;
    transition: color 0.05s ease;
}

.Cabecera a:hover {
    color: #FFE5CC !important;
}

/* ========================================
   CUERPO - Fondo suave con sombra interna
   ======================================== */
.Cuerpo {
    background-color: #FCE6CD;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.Cuerpo a {
    color: #cc6600 !important;
    text-decoration: none;
    transition: all 0.05s ease;
}

.Cuerpo a:hover {
    color: #ee8813 !important;
    text-shadow: 0 1px 2px rgba(238, 136, 19, 0.2);
}

/* ========================================
   TABLAS/CAJAS DE MENÚ - Color uniforme
   ======================================== */
.tblMenus4 {
    border: 0px solid #ee8813;
    background-color: #ee8813;
    width: 200px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), 0 2px 4px rgba(0, 0, 0, 0.15);
    transition: all 0.08s ease;
}

.tblMenus4:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.tblMenus4 a {
    color: #FFFFFF;
    text-decoration: none;
    transition: all 0.05s ease;
}

/* ========================================
   MEMBRETE - Color uniforme
   ======================================== */
.Membrete {
    background-color: #ee8813;
    font-family: 'nGestion';
    box-shadow: 0 2px 6px rgba(238, 136, 19, 0.25);
}

/* ========================================
   CORNER4 - Modales con sombra profunda
   ======================================== */
.Corner4 {
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    background: #FFFFFF;
}

/* ========================================
   MODAL FONDO
   ======================================== */
.mpFondo {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

/* ========================================
   ACCESOS DIRECTOS - Efecto hover mejorado
   ======================================== */
#tdAccesoDirecto a {
    transition: all 0.15s ease;
    display: inline-block;
}

#tdAccesoDirecto a:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* ========================================
   BOTONES - Efecto moderno
   ======================================== */
.btn-primary, input[type="submit"], button {
    background: linear-gradient(135deg, #ee8813 0%, #ff9900 100%);
    border: none;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(238, 136, 19, 0.3);
    transition: all 0.15s ease;
    cursor: pointer;
}

.btn-primary:hover, input[type="submit"]:hover, button:hover {
    box-shadow: 0 4px 8px rgba(238, 136, 19, 0.4);
    transform: translateY(-1px);
}

/* ========================================
   ALERTAS - Animación parpadeo
   ======================================== */
.parpadea {
    animation: parpadeo 2s ease-in-out infinite;
}

@keyframes parpadeo {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ========================================
   SCROLLBARS PERSONALIZADOS
   ======================================== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #FCE6CD;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ee8813 0%, #ff9900 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #cc6600 0%, #ee8813 100%);
}

/* ========================================
   ANIMACIÓN FADE IN
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tblMenus4 {
    animation: fadeIn 0.2s ease-out;
}
