

body {
    background-color: #f1f5f9 !important;
    color: var(--text-dark);
}

/* ==========================================================================
   AJ SERVICES GT - UI DARK PREMIUM 
   ========================================================================== */


/* Forzar que el tema de WordPress no meta márgenes blancos */
#content, .site-content, .page-content, .site-main {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    background-color: #121212 !important;
}

/* 2. CONTENEDORES PRINCIPALES (Bordes, Sombras y Fondos) */
.aj-dark-auth, .aj-dark-app, .aj-dashboard, .aj-dashboard-master {
    background-color: #121212;
    color: #ffffff;
    border-radius: 16px;
    margin: 40px auto;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(211, 47, 47, 0.15);
    border: 1px solid #2a2a2a;
    overflow: hidden;
}

/* Busca esto en tu styles.css y cámbialo: */
.aj-dark-auth { max-width: 400px; padding: 40px 30px; }

/* Le damos los 120px de fondo directamente en el archivo global */
.aj-dark-app { 
    max-width: 500px; 
    padding: 30px 20px 120px 20px !important; 
}
.aj-dashboard { max-width: 600px; }
.aj-dashboard-master { width: 95%; max-width: 1200px; margin: 20px auto; }

/* 3. ENCABEZADOS Y TEXTOS */
.aj-dark-auth h2, .aj-dark-app h2 {
    color: #e53935;
    text-align: center;
    margin-top: 0;
    margin-bottom: 5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.aj-dash-header {
    background: linear-gradient(135deg, #1e1e1e 0%, #0a0a0a 100%);
    padding: 25px 20px;
    border-bottom: 2px solid #333;
    text-align: center;
}
.aj-dash-header h3 { margin: 0; color: #ffffff; font-size: 22px; font-weight: 700; }
.aj-dash-header-rojo h3 { color: #e53935; text-transform: uppercase; letter-spacing: 1px;}
p.subtitle { text-align: center; color: #9e9e9e; font-size: 14px; margin-bottom: 25px; }

/* 4. FORMULARIOS E INPUTS */
.aj-form-group { margin-bottom: 18px; text-align: left; }
.aj-form-group label {
    display: block;
    margin-bottom: 6px;
    color: #b0bec5;
    font-size: 13px;
    font-weight: 600;
}
.aj-input, .aj-select, input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="date"] {
    width: 100%;
    padding: 14px;
    background-color: #1a1a1a !important;
    border: 1px solid #333 !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    box-sizing: border-box;
    transition: all 0.3s ease;
    font-size: 14px;
}
.aj-input:focus, .aj-select:focus, input:focus {
    border-color: #e53935 !important;
    outline: none;
    box-shadow: 0 0 10px rgba(229, 57, 53, 0.3) !important;
}
.aj-file, input[type="file"] {
    width: 100%;
    padding: 10px;
    background-color: #1a1a1a;
    border: 1px dashed #555;
    border-radius: 10px;
    color: #888;
    font-size: 12px;
    box-sizing: border-box;
    cursor: pointer;
}
.aj-grid-2, .aj-file-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

/* 5. BOTONES */
.aj-btn-submit, .aj-btn-red {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    color: white !important;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    
    margin-top: 10px;
    /* EL CAMBIO MAESTRO: Obliga al formulario a dejar espacio debajo del botón */
    margin-bottom: 50px !important; 
}

.aj-btn-submit:hover, .aj-btn-red:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(211, 47, 47, 0.5);
}

/* 6. PESTAÑAS (TABS) */
.aj-tabs { display: flex; background: #1e1e1e; border-bottom: 1px solid #333; flex-wrap: wrap; }
.aj-tab {
    flex: 1; min-width:120px; padding: 15px; text-align: center; cursor: pointer;
    color: #9e9e9e; font-weight: 600; font-size: 14px; transition: 0.3s;
}
.aj-tab.active { color: #ffffff; border-bottom: 3px solid #e53935; background: #2a2a2a; }
.aj-tab-content { display: none; padding: 25px; overflow-x: auto; }
.aj-tab-content.active { display: block; animation: fadeIn 0.3s; }

/* 7. TARJETAS Y LISTAS */
.aj-card {
    background: #1e1e1e; border: 1px solid #333; border-radius: 12px; padding: 20px; margin-bottom: 20px;
}
.aj-card h4 { margin-top: 0; color: #e53935; font-size: 16px; border-bottom: 1px solid #333; padding-bottom: 10px; margin-bottom: 15px; }
.aj-history-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px; border-bottom: 1px solid #333; font-size: 13px;
}
.aj-history-item:last-child { border-bottom: none; }
.aj-amount { color: #4caf50; font-weight: bold; font-size: 15px; }

/* 8. ALERTAS Y BADGES */
.aj-alert { display: none; padding: 12px; margin-bottom: 20px; border-radius: 8px; text-align: center; font-weight: 600; font-size: 14px; }
.aj-alert-success { background-color: rgba(76, 175, 80, 0.1) !important; color: #4caf50 !important; border: 1px solid #4caf50 !important; }
.aj-alert-error { background-color: rgba(229, 57, 53, 0.1) !important; color: #e53935 !important; border: 1px solid #e53935 !important; }
.aj-badge { display: inline-block; padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: bold; text-transform: uppercase; margin-top: 10px; letter-spacing: 1px; }

/* 9. TABLAS TIPO EXCEL */
.aj-table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: left; white-space: nowrap; }
.aj-table th { background: #1e1e1e; color: #b0bec5; padding: 12px; border-bottom: 2px solid #333; font-weight: 600; }
.aj-table td { padding: 12px; border-bottom: 1px solid #2a2a2a; color: #e0e0e0; }
.aj-table tr:hover { background: #1a1a1a; }
.aj-select-status { background: #121212; color: #fff; border: 1px solid #555; padding: 6px; border-radius: 4px; font-size: 12px; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }




/* Elimina el espacio que a veces deja la barra oculta */
html.admin-bar {
    margin-top: 0 !important;
}


/* Ocultar el título en la página de Cuenta */
.page-id-65 .entry-title, 
.page-id-65 h1.page-title {
    display: none !important;
}

.has-global-padding {
    padding-right: 5px !important;
    padding-left: 5px !important;
    
}


/* =========================================================
   MENÚ INFERIOR TIPO PÍLDORA FLOTANTE (COMPACTO Y CENTRADO)
   ========================================================= */
.aj-bottom-menu {
    position: fixed !important;
    bottom: 25px !important;
    
    /* Centrado horizontal inteligente */
    left: 50% !important;
    transform: translateX(-50%) !important;
    
    /* El ancho se adapta al número de botones en vez de estirarse todo */
    width: max-content !important;
    min-width: 140px !important;
    max-width: 90vw !important;
    padding: 0 30px !important;
    
    /* Efecto Cristal Premium */
    background: rgba(20, 20, 20, 0.88) !important; 
    backdrop-filter: blur(2px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    
    /* Estructura */
    height: 60px !important;
    border-radius: 50px !important; /* Bordes totalmente redondeados tipo píldora */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7) !important;
    
    display: flex !important;
    justify-content: center !important;
    gap: 35px !important; /* Espacio uniforme entre iconos */
    align-items: center !important;
    z-index: 999999 !important;
}

/* Arreglo para que el fondo cubra siempre el 100% de la pantalla sin cortarse al hacer scroll */
html, body {
    min-height: 100vh !important;
    background-color: #0d0d0d !important;
    
    /* Si tienes la imagen en el body o en una sección constructora, esto fuerza la cobertura completa: */
    background-attachment: fixed !important;
    background-size: cover !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
}

/* =========================================================
   ESTILO DE LOS BOTONES INTERNOS DEL MENÚ FLOTANTE
   ========================================================= */
.aj-bottom-menu .menu-item {
    display: flex !important;
    flex-direction: row !important; /* En modo píldora queda excelente en horizontal (ícono + texto) */
    align-items: center !important;
    gap: 8px !important;
    text-decoration: none !important;
    
    /* COLOR BLANCO BRILLANTE PARA QUE RESALTE EN EL FONDO DARK */
    color: #ffffff !important; 
    
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
}

/* El SVG (ícono) hereda el color blanco brillante */
.aj-bottom-menu .menu-item svg {
    fill: currentColor !important;
    width: 18px !important;
    height: 18px !important;
    transition: transform 0.3s ease !important;
}

/* Efecto Hover / Activo en color Rojo Premium + animación al pasar el dedo/mouse */
.aj-bottom-menu .menu-item:hover,
.aj-bottom-menu .menu-item:active,
.aj-bottom-menu .menu-item.active {
    color: #e53935 !important;
}

.aj-bottom-menu .menu-item:hover svg {
    transform: rotate(180deg); /* Le da un toque muy pro al ícono de recargar al pasar el mouse */
}