:root {
    /* Stack de fuentes del sistema: Rápido, nativo y sin descargas */
    --bs-body-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --bs-heading-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --bs-body-font-size: 14px;
    --bs-body-font-weight: 400;
    --bs-heading-font-weight: 600;
}
:root {
    --color-god-main: linear-gradient(135deg, #f06d06, #f2c400);
    --color-god-border: #e65c00;
    --color-god-text: #6b3103;
    --color-god-btn-idle: #fff4b8;

    /* Colores semánticos GOD */
    --god-warning: #f2c400;   /* dorado solar */
    --god-success: #4caf50;   /* verde vida */
    --god-danger:  #c62828;   /* rojo profundo */
    --god-info:    #0288d1;   /* azul cielo */
    --god-creme:   #f7e864;
}
.text-god-creme {
    color: var(--god-creme) !important;
}
.theme-god {
    background: var(--color-god-main);
    color: white;
    border: 1px solid var(--color-god-border);
}

/* HEADER PRINCIPAL GOD */
.header-god {
    background: linear-gradient(to right, #f06d06, #f1f10b) !important;
    color: #ffffff !important;
    border-bottom: 3px solid #6b3103;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* 2. Estructura de la barra de navegación GOD */
.god-menu-card {
    background: var(--color-god-main) !important;
    border-radius: 12px;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border: none !important;
    padding: 10px;
}

/* Cabeceras de Card GOD */
.menu-card-header.god {
    background: transparent !important;
    color: #fff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 15px;
}

.menu-card-header.god h5 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    /* Sombra de texto suave para asegurar legibilidad sobre el amarillo brillante */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* 3. Botones GOD - GRADIENTE NARANJA/AMARILLO POR DEFECTO */
.god-menu-btn {
    background: var(--color-god-main) !important;
    border: 1px solid #c45a05 !important; /* Borde naranja más oscuro */
    color: white !important;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin-bottom: 4px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* 4. Estado Hover y Activo - AMARILLO CLARO */
.god-menu-btn:hover,
.god-menu-btn.active {
    background: var(--color-god-btn-idle) !important;
    color: var(--color-god-text) !important;
    border-color: var(--color-god-border) !important;
    box-shadow: 0 4px 12px rgba(240, 109, 6, 0.3);
    text-shadow: none;
}

/* 5. Panel de contenido GOD */
.god-content-panel {
    background-color: rgba(59, 70, 82, 0.75) !important;
    border-radius: 12px;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

/* Tarjeta de Administrador estilo GOD */
.admin-card-god {
    background: var(--color-god-main) !important;
    border-radius: 12px;
    border: none;
}

.admin-card-god .admin-avatar {
    width: 48px;
    height: 48px;
    background-color: #ffffff;
    border: 2px solid var(--color-god-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.admin-card-god .admin-avatar i {
    color: var(--color-god-border);
    font-size: 1.3rem;
}

/* Nombre de la Embajada (Respeta Case) */
.admin-card-god .admin-name {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    line-height: 1.2;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Username y Estado (Respeta Case) */
.admin-card-god .admin-status {
    color: var(--color-god-btn-idle);
    font-weight: 600;
    font-size: 0.8rem;
    display: block;
    text-decoration: none; /* Para el enlace */
    transition: color 0.3s ease;
}

.admin-card-god .admin-status:hover {
    color: #ffffff;
}

/* HEADER GENERAL BASE */
header {
    min-height: 100px;
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
}

/* STRUCTURE COMMON */
.army-card-header {
    border-radius: 0;
    overflow: hidden;
    background-color: rgba(15, 100, 26, 0.8);
    color: #fff;
    font-weight: 500;
    padding: 0.90rem 1rem;
    border-bottom: 2px solid #061a30;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.army-card-header span,
.army-card-header i {
    color: #fff;
}

.god-card {
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(to right, #f06d06, #f1f10b);
    color: #fff;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid #061a30;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Card completa  God*/
.god-menu-card {
    background: linear-gradient(to right, #f06d06, #f1f10b);
    border-radius: 12px;
}

/* Botones de menú God */
.god-menu-btn {
    background: linear-gradient(to right, #f06d06, #f1f10b);
    color: #fff;
    border: none;
}

/* Base cabecera de menú */
.menu-card-header {
    color: #fff;
    font-weight: 600;
    padding: 0.6rem 1rem;
    border-bottom: 2px solid rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
}

/* Estilo específico para el título del Card Header */
.menu-card-header h5 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem !important; /* Un poco más pequeña que el estándar */
    font-weight: 600;
    text-transform: uppercase; /* Queda muy bien en títulos pequeños */
    letter-spacing: 1px; /* Espaciado entre letras para elegancia */
    margin: 0;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2); /* Sombra sutil para legibilidad */
}
/* Ajuste adicional para el padding del header si lo sientes muy grande */
.menu-card-header {
    padding: 0.6rem 1rem !important;
}

.menu-card-header i {
    opacity: 0.9;
}

/* Cabecera default */
.menu-card-header.default {
    background: linear-gradient(135deg, #878c91, #6c757d);
    border-bottom: 2px solid #5c5c5c;
}

.logo-img img {
    width: 80px;
    height: 80px;
    box-shadow: 0 0 3px #848484;
    border-radius: 50%;
}

h2 {
    color: white;
    font-size: 18px;
    margin: 0;
}

.right_header_info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.right_header_info a {
    white-space: nowrap;
}

/* Ajuste responsive */
@media (max-width: 576px) {
    .right_header_info a {
        text-align: center;
    }
}

/* Videos responsive */
.video-responsive {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ===============================
   Hover específico para spans dentro de botones outline-light
   =============================== */
.btn-outline-light:hover span {
    color: #000000 !important;
}

/* =========================================
   ESTILOS PARA TARJETAS FAMILIARES (GOD THEME)
   ========================================= */

/* Contenedor principal de la tarjeta horizontal */
.family-horizontal-card {
    background: rgba(26, 26, 26, 0.7) !important;
    border: 1px solid rgba(240, 109, 6, 0.3) !important;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.family-horizontal-card:hover {
    border-color: var(--color-god-border) !important;
    transform: translateX(5px);
    background: rgba(35, 35, 35, 0.8) !important;
}

/* Miniatura de la foto de perfil */
.family-avatar {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

/* Etiqueta de Parentesco (Padre, Madre, etc.) */
.family-label {
    color: #f1f10b;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: block;
}

/* Nombre del familiar */
.family-name {
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    margin: 0;
}

/* Enlace/Botón de perfil transparente */
.family-link {
    color: #f1f10b !important;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.family-link:hover {
    color: var(--color-god-border) !important;
}

/* =========================================
   ESTILOS DINÁMICOS GOD (Extranet 2026)
   ========================================= */

:root {
    --color-god-main: linear-gradient(135deg, #f06d06, #f1f10b);
    --color-god-border: #f06d06;
    --color-god-text: #6b3103; /* Marrón oscuro para contraste */
    --color-god-btn-idle: #fff9c4; /* Amarillo crema para activo */
}

/* Redefinición de la clase base para que use el estilo GOD */
.army-card-header.header-god {
    background: var(--color-god-main) !important;
    color: #ffffff !important;
    border-bottom: 3px solid var(--color-god-text) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    padding: 0.75rem 1rem;
}

/* Botón Moderno Estilo GOD (Adaptación de tu air-nav-btn-modern) */
.god-nav-btn-modern {
    background: var(--color-god-main) !important;
    border: 1px solid var(--color-god-border) !important;
    color: #ffffff !important;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    text-decoration: none;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* ESTADO ACTIVO/HOVER: Aquí cambiamos a letra oscura sobre fondo crema */
.god-nav-btn-modern:hover,
.god-nav-btn-modern.active {
    background: var(--color-god-btn-idle) !important;
    color: var(--color-god-text) !important;
    border-color: var(--color-god-border) !important;
    box-shadow: 0 4px 12px rgba(240, 109, 6, 0.3);
    text-shadow: none !important;
}

/* Ajuste para el Offcanvas Mobile bajo el tema GOD */
.offcanvas.theme-god {
    background: var(--color-god-main) !important;
    border-left: 2px solid var(--color-god-text);
}

/* ========================= */
/*   SELECT SYSTEM (GLOBAL)  */
/* ========================= */

.select-menu {
    border: none !important;
    border-radius: 8px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0.35rem 0.6rem;
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.15);
    backdrop-filter: blur(4px);
}

/* Hover universal */
.select-menu:hover{
    transform: translateY(-1px);
    box-shadow: 0 .25rem .5rem rgba(0,0,0,.25);
}

/* Focus universal */
.select-menu:focus{
    outline: none !important;
}

/* ========================= */
/*     GLASS BODY SYSTEM     */
/* ========================= */

.menu-glass-body{
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(4px);
}
.bg-dynamic {
    background-image: var(--bg-url);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    min-height: 100vh;
    background-attachment: scroll; /* Por defecto para móvil */
}
@media (min-width: 992px) {
    .bg-dynamic {
        background-attachment: fixed; /* Solo para PC */
    }
}


