/* Estilos principales - Tema Oscuro y Dorado Premium */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800;900&family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Fondo oscuro profundo de alta gama */
    --bg-primary: #070605; 
    --bg-secondary: #0e0b09;
    --bg-tertiary: #191410;
    
    /* Bordes sutiles en oro semi-transparente */
    --border-color: rgba(212, 175, 55, 0.15);
    
    /* Textos modernos y pulidos */
    --text-primary: #f5f1eb;
    --text-secondary: #d4cbbd;
    --text-tertiary: #9c8e7c;
    
    /* Acentos Dorados Premium (Estilo Lorencia / Oro Pulido) */
    --accent: #d4af37; /* Oro real */
    --accent-hover: #ffca28; /* Oro brillante */
    --accent-glow: rgba(212, 175, 55, 0.35);
    --purple-glow: rgba(255, 202, 40, 0.25);
    
    --sidebar-width: 280px;
    --header-height: 100px;
}

body {
    font-family: 'Plus Jakarta Sans', 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.05) 0%, transparent 25%),
        radial-gradient(circle at 90% 80%, rgba(255, 202, 40, 0.03) 0%, transparent 25%);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar personalizado Moderno */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

/* Header Neon Modernizado con Fondo Cinemático Gigante (600px) - Vista Inicio */
.main-header.is-home {
    background: 
        linear-gradient(to bottom, rgba(7, 6, 5, 0.2) 0%, rgba(7, 6, 5, 0.98) 100%),
        linear-gradient(95deg, rgba(7, 6, 5, 0.98) 0%, rgba(7, 6, 5, 0.3) 50%, rgba(7, 6, 5, 0.98) 100%),
        url('../images/muonline_epic_banner.png') center/cover no-repeat;
    border-bottom: 1px solid var(--border-color);
    padding: 2rem 0;
    height: 420px;
    position: relative;
    z-index: 10;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* HEADER COMPACTO STICKY (.is-guia) - Vista Lectura de Guías */
.main-header.is-guia {
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    background: rgba(7, 6, 5, 0.85);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    padding: 0;
    overflow: hidden;
}

.main-header.is-guia::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    box-shadow: 0 0 10px var(--accent);
}

.header-content-compact {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo-section-compact {
    display: flex;
    align-items: center;
}

.header-logo-img-compact {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.4));
    transition: transform 0.3s ease;
}

.header-logo-img-compact:hover {
    transform: scale(1.05) rotate(2deg);
}

.header-title-container-compact {
    display: flex;
    flex-direction: column;
}

.header-title-compact {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem !important;
    font-weight: 800;
    color: #fff;
    margin: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9), 0 0 10px rgba(212, 175, 55, 0.3);
    background: linear-gradient(to right, #ffffff 10%, #f6e3ab 60%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-subtitle-compact {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Botón de Administración Compacto */
.btn-admin-header-compact {
    background: rgba(212, 175, 55, 0.08);
    color: var(--accent);
    border: 1px solid rgba(212, 175, 55, 0.25);
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-admin-header-compact:hover {
    background: var(--accent);
    color: #070605;
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--accent-glow);
}

/* BREADCRUMB DENTRO DE LA GUÍA INDIVIDUAL */
.guia-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    background: rgba(25, 20, 16, 0.35);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    width: fit-content;
    backdrop-filter: blur(4px);
}

.main-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    box-shadow: 0 0 15px var(--accent);
}

.header-overlay-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 30%, rgba(212, 175, 55, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.header-content {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 4rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

/* Breadcrumbs Estilo Lorencia Gold */
.header-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    background: rgba(7, 6, 5, 0.65);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    width: fit-content;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.4s ease;
}

.breadcrumb-item {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.breadcrumb-item:hover {
    color: var(--accent);
    text-shadow: 0 0 8px var(--accent-glow);
}

.breadcrumb-item.active {
    color: var(--accent-hover);
    font-weight: 600;
    text-shadow: 0 0 8px var(--accent-glow);
    pointer-events: none;
}

.breadcrumb-separator {
    color: var(--accent);
    opacity: 0.6;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
}

/* Cuerpo del Hero Section */
.header-hero-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 850px;
    margin-top: auto;
    margin-bottom: auto;
}

.header-logo-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    animation: slideRight 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideRight {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

.header-logo-img {
    height: 90px;
    width: auto;
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.5));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.header-logo-img:hover {
    transform: scale(1.1) rotate(3deg);
}

.header-title-container {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.main-header h1 {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    font-weight: 900;
    color: #fff;
    margin: 0;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.95), 0 0 25px rgba(212, 175, 55, 0.45);
    background: linear-gradient(to right, #ffffff 10%, #f6e3ab 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-subtitle-main {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    color: var(--accent);
    margin: 0;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9), 0 0 8px var(--accent-glow);
}

.header-hero-description {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.95);
    margin: 0;
    animation: fadeIn 0.7s ease;
}

.header-hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    animation: fadeIn 0.9s ease;
}

/* Botón de Administración Hero */
.btn-admin-header-hero {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.03) 100%);
    color: #fff;
    border: 1px solid rgba(212, 175, 55, 0.35);
    padding: 0.8rem 2rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(212, 175, 55, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-admin-header-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.btn-admin-header-hero:hover::before {
    left: 100%;
}

.btn-admin-header-hero:hover {
    background: var(--accent);
    color: #070605;
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px var(--accent-glow), 0 0 15px rgba(212, 175, 55, 0.3);
}

/* Container principal */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    min-height: calc(100vh - var(--header-height));
}

/* Posicionamiento del Sidebar autoadaptativo como Panel Flotante Premium */
.is-home-page .sidebar {
    width: var(--sidebar-width);
    background: rgba(12, 10, 8, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem 0;
    position: sticky;
    top: 2rem;
    height: calc(100vh - 4rem);
    overflow-y: auto;
    overflow-x: hidden;
    margin-left: 2rem;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.8),
        inset 0 1px 1px rgba(255, 255, 255, 0.05),
        inset 0 0 15px rgba(212, 175, 55, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.is-home-page .sidebar:hover {
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.9),
        0 0 30px rgba(212, 175, 55, 0.05),
        inset 0 1px 1px rgba(255, 255, 255, 0.08),
        inset 0 0 15px rgba(212, 175, 55, 0.05);
}

.has-guia .sidebar {
    width: var(--sidebar-width);
    background: rgba(12, 10, 8, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem 0;
    position: sticky;
    top: calc(var(--header-height) + 2rem);
    height: calc(100vh - var(--header-height) - 4rem);
    overflow-y: auto;
    overflow-x: hidden;
    margin-left: 2rem;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.8),
        inset 0 1px 1px rgba(255, 255, 255, 0.05),
        inset 0 0 15px rgba(212, 175, 55, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.has-guia .sidebar:hover {
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.9),
        0 0 30px rgba(212, 175, 55, 0.05),
        inset 0 1px 1px rgba(255, 255, 255, 0.08),
        inset 0 0 15px rgba(212, 175, 55, 0.05);
}

.sidebar-nav {
    padding: 0 1.5rem;
}

.sidebar-nav h2 {
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 1.5rem;
    padding: 0 1rem;
    text-shadow: 0 0 10px var(--accent-glow);
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav > ul > li {
    margin-bottom: 0.5rem;
}

.categoria-item {
    margin-bottom: 0.5rem;
}

.categoria-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 1.2rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 0.75rem;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    position: relative;
    background: rgba(255, 255, 255, 0.01);
}

.categoria-header:hover {
    background: linear-gradient(90deg, rgba(25, 20, 16, 0.8) 0%, rgba(14, 11, 9, 0.3) 100%);
    color: var(--text-primary);
    border-color: rgba(212, 175, 55, 0.1);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.categoria-item.open > .categoria-header {
    color: #fff;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.12) 0%, rgba(14, 11, 9, 0.2) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-left: 3px solid var(--accent);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.5),
        0 0 15px rgba(212, 175, 55, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.categoria-name {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.categoria-icon {
    font-size: 1.15rem;
    color: var(--text-tertiary);
    width: 24px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.categoria-header:hover .categoria-icon {
    color: var(--accent-hover);
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.categoria-item.open > .categoria-header .categoria-icon {
    color: var(--accent);
    filter: drop-shadow(0 0 8px var(--accent-glow));
    transform: scale(1.1);
}

.categoria-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.categoria-header .badge {
    background: #070605;
    color: var(--text-tertiary);
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.8);
}

.categoria-header:hover .badge {
    color: var(--text-primary);
    border-color: rgba(212, 175, 55, 0.25);
}

.categoria-item.open > .categoria-header .badge {
    background: var(--accent);
    color: #070605;
    border-color: var(--accent);
    text-shadow: none;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.toggle-icon {
    font-size: 0.7rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-tertiary);
    margin-left: 0.25rem;
}

.categoria-header:hover .toggle-icon {
    color: var(--text-primary);
}

.categoria-item.open > .categoria-header .toggle-icon {
    color: var(--accent);
    transform: rotate(180deg);
}

.submenu {
    margin-top: 0.5rem;
    padding-left: 0;
    margin-left: 1.5rem;
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.submenu::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 0;
    bottom: 15px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent) 0%, rgba(212, 175, 55, 0.15) 70%, transparent 100%);
    opacity: 0.6;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.submenu li {
    margin-bottom: 0.35rem;
}

.submenu a {
    display: block;
    padding: 0.6rem 1rem 0.6rem 2.8rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    opacity: 0.85;
    font-weight: 500;
}

.submenu a::before {
    content: '';
    position: absolute;
    left: 17px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--text-tertiary);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.submenu a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.02);
    opacity: 1;
    transform: translateX(4px);
}

.submenu a.active {
    color: var(--accent-hover);
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.15);
    opacity: 1;
    font-weight: 600;
    text-shadow: 0 0 8px var(--accent-glow);
}

.submenu a:hover::before {
    background: var(--accent-hover);
    box-shadow: 0 0 8px var(--accent-hover);
    transform: translateY(-50%) scale(1.3);
}

.submenu a.active::before {
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    transform: translateY(-50%) scale(1.3);
}

/* Contenido principal */
.content {
    flex: 1;
    padding: 4rem;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

/* Guía individual - Códice Dorado Premium */
.guia-content {
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(14, 11, 9, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        inset 0 0 20px rgba(212, 175, 55, 0.02);
    position: relative;
    overflow: hidden;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.guia-header {
    margin-bottom: 3rem;
    padding: 4rem 3rem;
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    background: 
        radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.15) 0%, rgba(7, 6, 5, 0.85) 80%),
        url('../images/muonline_epic_banner.png') center/cover no-repeat;
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.85),
        inset 0 0 30px rgba(0, 0, 0, 0.9);
}

/* Filigranas Medievales en las esquinas del Header de la Guía */
.guia-header::before {
    content: '✦';
    position: absolute;
    top: 10px;
    left: 12px;
    color: var(--accent);
    font-size: 0.8rem;
    text-shadow: 0 0 8px var(--accent);
    opacity: 0.8;
}

.guia-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    box-shadow: 0 0 15px var(--accent);
}

.categoria-badge {
    display: inline-block;
    background: rgba(7, 6, 5, 0.9);
    color: var(--accent);
    padding: 0.4rem 1.4rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.5),
        0 0 15px rgba(212, 175, 55, 0.1);
    backdrop-filter: blur(4px);
}

.guia-content h1 {
    font-family: 'Cinzel', serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    margin: 0.5rem 0;
    line-height: 1.25;
    letter-spacing: 0.5px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.95);
    background: linear-gradient(135deg, #ffffff 10%, #f6e3ab 60%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.guia-title-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.guia-title-toggle:hover {
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.guia-title-toggle .toggle-icon {
    font-size: 1.4rem;
    margin-left: 1rem;
    color: var(--text-tertiary);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
}

.guia-title-toggle:hover .toggle-icon {
    color: var(--accent);
    transform: scale(1.1);
}

.guia-descripcion {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 1.8rem;
    line-height: 1.65;
    padding: 1.2rem 1.8rem;
    background: rgba(7, 6, 5, 0.75);
    backdrop-filter: blur(8px);
    border-radius: 0 12px 12px 0;
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-left: 4px solid var(--accent);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.5),
        inset 0 0 15px rgba(212, 175, 55, 0.02);
}

.guia-body {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-primary);
    margin-top: 3.5rem;
}

.guia-body p {
    margin-bottom: 1.8rem;
}

.guia-body h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.9rem;
    color: #fff;
    margin: 3.5rem 0 1.8rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.guia-body h2::before {
    content: '◈';
    color: var(--accent);
    font-size: 1rem;
    text-shadow: 0 0 8px var(--accent-glow);
}

.guia-body h2::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-hover), transparent);
    box-shadow: 0 0 10px var(--accent-hover);
}

.guia-body h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.45rem;
    color: var(--accent);
    margin: 2.5rem 0 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    letter-spacing: 0.5px;
}

.guia-body h3::before {
    content: '◇';
    color: var(--accent);
    font-size: 0.95rem;
}

.guia-body a {
    color: var(--accent-hover);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 202, 40, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding-bottom: 1px;
    font-weight: 600;
}

.guia-body a:hover {
    color: #fff;
    border-bottom-color: var(--accent-hover);
    text-shadow: 0 0 8px var(--accent-glow);
}

.guia-body blockquote {
    background: linear-gradient(135deg, rgba(25, 20, 16, 0.6) 0%, rgba(14, 11, 9, 0.3) 100%);
    border-left: 4px solid var(--accent);
    border-right: 1px solid rgba(212, 175, 55, 0.08);
    border-top: 1px solid rgba(212, 175, 55, 0.08);
    border-bottom: 1px solid rgba(212, 175, 55, 0.08);
    padding: 1.8rem;
    margin: 2.5rem 0;
    color: var(--text-secondary);
    border-radius: 0 16px 16px 0;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.4),
        inset 0 0 15px rgba(212, 175, 55, 0.02);
    font-style: italic;
    position: relative;
}

.guia-body blockquote::before {
    content: '“';
    font-family: 'Cinzel', serif;
    position: absolute;
    top: 5px;
    left: 10px;
    color: var(--accent);
    font-size: 2.5rem;
    line-height: 1;
    opacity: 0.15;
}

.guia-body table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 2.5rem 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.guia-body table th {
    background: linear-gradient(180deg, var(--bg-tertiary) 0%, rgba(25, 20, 16, 0.8) 100%);
    color: var(--accent);
    font-weight: 700;
    padding: 1.2rem 1.5rem;
    text-align: left;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: inset 0 -2px 5px rgba(0, 0, 0, 0.5);
    font-family: 'Outfit', sans-serif;
}

.guia-body table td {
    background: rgba(14, 11, 9, 0.45);
    color: var(--text-secondary);
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.08);
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.guia-body table tr:last-child td {
    border-bottom: none;
}

.guia-body table tr:hover td {
    background: rgba(212, 175, 55, 0.06);
    color: #fff;
}

.guia-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2.5rem 0;
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.65),
        0 0 20px rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.guia-body code {
    background: rgba(212, 175, 55, 0.08);
    color: var(--accent-hover);
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.85em;
    font-family: 'Courier New', monospace;
    border: 1px solid rgba(212, 175, 55, 0.18);
    word-break: break-word;
}

.guia-body pre {
    background: #090706;
    padding: 1.8rem;
    border-radius: 16px;
    overflow-x: auto;
    margin: 2.5rem 0;
    border: 1px solid var(--border-color);
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.6),
        inset 0 0 25px rgba(0, 0, 0, 0.8);
    position: relative;
}

.guia-body pre::before {
    content: '◈ CODEX';
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(212, 175, 55, 0.12);
    color: var(--accent);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 0.3rem 0.8rem;
    border-radius: 0 15px 0 12px;
    border-left: 1px solid rgba(212, 175, 55, 0.15);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.guia-body pre code {
    background: none;
    padding: 0;
    color: #e2d9cc;
    border: none;
    font-size: 0.9rem;
}

/* Página de bienvenida */
.welcome-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding-top: 2rem;
}

.welcome-content h1 {
    font-family: 'Cinzel', serif;
    font-size: 3.8rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #ffffff 10%, #f6e3ab 60%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.3));
    animation: glowText 3s infinite alternate;
}

@keyframes glowText {
    from { filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.15)); }
    to { filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.45)); }
}

.welcome-content > p {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.categorias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    text-align: left;
}

.categoria-card {
    background: rgba(14, 11, 9, 0.65);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        inset 0 0 15px rgba(212, 175, 55, 0.02);
}

.categoria-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.categoria-card:hover {
    border-color: rgba(212, 175, 55, 0.5);
    transform: translateY(-8px);
    box-shadow: 
        0 20px 45px rgba(0, 0, 0, 0.85),
        0 0 25px rgba(212, 175, 55, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        inset 0 0 20px rgba(212, 175, 55, 0.05);
}

.categoria-card:hover::before {
    opacity: 1;
}

.categoria-card h3 {
    color: #fff;
    margin-bottom: 1.2rem;
    font-size: 1.45rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.5px;
}

.categoria-card h3 i {
    color: var(--accent);
    font-size: 1.8rem;
    filter: drop-shadow(0 0 8px var(--accent-glow));
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.categoria-card:hover h3 i {
    transform: scale(1.15) rotate(7deg);
    color: var(--accent-hover);
    filter: drop-shadow(0 0 12px var(--accent));
}

.categoria-card p {
    color: var(--text-secondary);
    margin-bottom: 1.8rem;
    font-size: 0.95rem;
    line-height: 1.6;
    position: relative;
    opacity: 0.9;
}

.categoria-count {
    font-weight: 700;
    color: var(--accent);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-block;
    padding: 0.35rem 0.9rem;
    background: rgba(212, 175, 55, 0.08);
    border-radius: 30px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.categoria-card:hover .categoria-count {
    background: var(--accent);
    color: #070605;
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

.categoria-guias {
    list-style: none;
    margin-top: 1.8rem;
    padding-top: 1.8rem;
    border-top: 1px solid var(--border-color);
    position: relative;
}

.categoria-guias li {
    margin-bottom: 0.9rem;
}

.categoria-guias li:last-child {
    margin-bottom: 0;
}

.categoria-guias a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 500;
}

.categoria-guias a::before {
    content: '◈';
    color: var(--accent);
    font-size: 0.7rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.7;
}

.categoria-guias a:hover {
    color: var(--accent-hover);
    transform: translateX(6px);
    text-shadow: 0 0 5px var(--accent-glow);
}

.categoria-guias a:hover::before {
    transform: scale(1.4) rotate(45deg);
    color: var(--accent-hover);
    opacity: 1;
    text-shadow: 0 0 8px var(--accent);
}

/* Footer */
.main-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    color: var(--text-tertiary);
    text-align: center;
    padding: 3rem 0;
    margin-top: 6rem;
    font-size: 0.9rem;
    position: relative;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    box-shadow: 0 0 15px var(--accent);
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        width: 250px;
    }
    
    .content {
        padding: 3rem;
    }
}

@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        position: static;
        height: auto;
        max-height: 400px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        background: var(--bg-secondary);
    }
    
    .content {
        padding: 2rem 1.5rem;
    }
    
    .welcome-content h1 {
        font-size: 2.5rem;
    }
    
    .guia-content h1 {
        font-size: 2.2rem;
    }
    
    .categorias-grid {
        grid-template-columns: 1fr;
    }

    /* Adaptaciones de la Cabecera de 600px a Móvil */
    .main-header {
        height: auto;
        min-height: 336px;
        padding: 2rem 0;
        background: 
            linear-gradient(to bottom, rgba(7, 6, 5, 0.3) 0%, rgba(7, 6, 5, 0.99) 100%),
            linear-gradient(90deg, rgba(7, 6, 5, 0.99) 0%, rgba(7, 6, 5, 0.4) 50%, rgba(7, 6, 5, 0.99) 100%),
            url('../images/muonline_epic_banner.png') center/cover no-repeat;
    }

    .header-content {
        padding: 0 1.5rem;
        gap: 2rem;
        justify-content: flex-start;
    }

    .header-logo-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .header-logo-img {
        height: 65px;
    }

    .main-header h1 {
        font-size: 2.2rem;
    }

    .header-subtitle-main {
        font-size: 0.85rem;
        letter-spacing: 1px;
    }

    .header-hero-description {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .header-hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-admin-header-hero {
        justify-content: center;
        width: 100%;
        padding: 0.7rem 1.5rem;
    }
}

/* Clases obsoletas removidas y reemplazadas por el nuevo Hero */

/* ==========================================
   MODERNIZACIONES DE LA INTERFAZ DE GUÍAS
   ========================================== */

/* Sidebar Search */
.sidebar-search {
    padding: 0 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}
.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.search-wrapper i.search-icon {
    position: absolute;
    left: 14px;
    color: var(--text-tertiary);
    font-size: 0.95rem;
    pointer-events: none;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}
.search-input {
    width: 100%;
    padding: 0.75rem 2rem 0.75rem 2.5rem;
    background: linear-gradient(180deg, rgba(7, 6, 5, 0.8) 0%, rgba(25, 20, 16, 0.4) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.5px;
}
.search-input::placeholder {
    color: var(--text-tertiary);
    opacity: 0.7;
}
.search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 
        0 0 15px rgba(212, 175, 55, 0.25),
        inset 0 2px 5px rgba(0, 0, 0, 0.9);
    background: rgba(7, 6, 5, 0.9);
}
.search-input:focus + i.search-icon {
    color: var(--accent);
    transform: scale(1.1);
    filter: drop-shadow(0 0 5px var(--accent-glow));
}
.search-clear {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    font-size: 0.95rem;
    padding: 0;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    line-height: 1;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
}
.search-clear:hover {
    color: var(--accent-hover);
    background: rgba(212, 175, 55, 0.1);
}

/* Tabla de Contenidos (TOC) Flotante Autoadaptable */
/* Tabla de Contenidos (TOC) Flotante - Pergamino Rúnico Oscuro */
.has-guia .guia-toc-container {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
    width: 260px;
    max-height: calc(100vh - var(--header-height) - 4rem);
    overflow-y: auto;
    padding: 1.8rem 1.5rem;
    background: linear-gradient(135deg, rgba(20, 16, 12, 0.85) 0%, rgba(12, 10, 8, 0.9) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 20px;
    margin-left: 2.5rem;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        inset 0 0 15px rgba(212, 175, 55, 0.03);
    transition: all 0.3s ease;
}

.has-guia .guia-toc-container:hover {
    border-color: rgba(212, 175, 55, 0.35);
    box-shadow: 
        0 25px 45px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(212, 175, 55, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.guia-toc-title {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
    text-shadow: 0 0 8px var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.guia-toc-title::before,
.guia-toc-title::after {
    content: '◈';
    font-size: 0.65rem;
    color: var(--accent);
    opacity: 0.8;
}

.guia-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guia-toc-item {
    margin-bottom: 0.6rem;
}

.guia-toc-item:last-child {
    margin-bottom: 0;
}

.guia-toc-link {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    line-height: 1.45;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.4rem 0.5rem 0.4rem 1.2rem;
    border-left: 2px solid rgba(212, 175, 55, 0.1);
    border-radius: 0 6px 6px 0;
    position: relative;
    font-weight: 500;
}

.guia-toc-link::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 0;
    height: 100%;
    width: 2px;
    background: transparent;
    transition: all 0.3s ease;
}

.guia-toc-link:hover {
    color: var(--accent-hover);
    background: rgba(255, 255, 255, 0.02);
    padding-left: 1.5rem;
}

.guia-toc-link.active {
    color: #fff;
    background: rgba(212, 175, 55, 0.06);
    border-left: 3px solid var(--accent);
    font-weight: 700;
    padding-left: 1.5rem;
    text-shadow: 0 0 8px var(--accent-glow);
}

/* Layout de lectura adaptativo */
.guia-layout {
    display: flex;
    align-items: flex-start;
    position: relative;
    width: 100%;
}
.guia-main-content {
    flex: 1;
    min-width: 0;
}

/* Menú Móvil Drawer (Panel Deslizable) */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-toggle {
    display: none;
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 2px solid var(--accent);
    color: var(--accent);
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px var(--accent-glow), inset 0 0 10px rgba(212, 175, 55, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu-toggle:hover {
    transform: scale(1.1) rotate(90deg);
    background: var(--accent);
    color: #070605;
    box-shadow: 0 0 25px var(--accent-hover);
}

/* Hero Banner de Bienvenida */
.welcome-hero {
    background: linear-gradient(180deg, rgba(25, 20, 16, 0.4) 0%, rgba(7, 6, 5, 0) 100%);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 4rem 2rem;
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.welcome-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    pointer-events: none;
}
.welcome-hero h1 {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem !important;
    margin-bottom: 1rem !important;
}
.welcome-hero p.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* Ajustes adicionales del buscador y no-results */
.no-results {
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
    display: none;
}
.no-results i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
    opacity: 0.7;
}
.no-results p {
    font-size: 0.95rem;
}

/* Cajas de Aviso / Alertas Modernas para el cuerpo de las Guías */
.info-box, .warning-box, .danger-box {
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    border-radius: 10px;
    display: flex;
    gap: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}
.info-box p, .warning-box p, .danger-box p {
    margin-bottom: 0 !important;
    font-size: 0.95rem;
    color: var(--text-secondary);
}
.info-box strong, .warning-box strong, .danger-box strong {
    color: #fff;
    display: block;
    margin-bottom: 0.25rem;
}
.info-box::before, .warning-box::before, .danger-box::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* Info Box - Lorencia Gold Style */
.info-box {
    background: rgba(212, 175, 55, 0.04);
    border-color: rgba(212, 175, 55, 0.2);
}
.info-box::before {
    content: "\f05a"; /* fa-info-circle */
    color: var(--accent);
}

/* Warning Box - Ámbar MuOnline */
.warning-box {
    background: rgba(243, 156, 18, 0.04);
    border-color: rgba(243, 156, 18, 0.2);
}
.warning-box::before {
    content: "\f071"; /* fa-exclamation-triangle */
    color: #f39c12;
}

/* Danger Box - Fuego / Magma */
.danger-box {
    background: rgba(231, 76, 60, 0.04);
    border-color: rgba(231, 76, 60, 0.2);
}
.danger-box::before {
    content: "\f057"; /* fa-times-circle */
    color: #e74c3c;
}

/* Media Queries para Mobile Drawer y Responsividad Premium */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .sidebar {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        width: 290px !important;
        height: 100vh !important;
        z-index: 999 !important;
        background: rgba(12, 10, 8, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: 15px 0 40px rgba(0, 0, 0, 0.9) !important;
        border: none !important;
        border-right: 1px solid rgba(212, 175, 55, 0.2) !important;
        border-radius: 0 !important;
        margin-left: 0 !important;
        max-height: none !important;
        padding-top: 3rem !important;
    }
    
    .sidebar.active {
        left: 0 !important;
    }
    
    .is-home-page .sidebar,
    .has-guia .sidebar {
        margin-left: 0 !important;
        top: 0 !important;
        height: 100vh !important;
        border-radius: 0 !important;
    }
    
    .guia-toc-container {
        display: none !important; /* Esconde el TOC en móvil */
    }

    /* Adaptación del Códice de la Guía en Móvil */
    .guia-content {
        padding: 1.8rem 1.2rem !important;
        border-radius: 16px !important;
    }

    .guia-header {
        padding: 2.2rem 1.5rem !important;
        margin-bottom: 2rem !important;
        border-radius: 12px !important;
    }

    .guia-descripcion {
        padding: 0.8rem 1.2rem !important;
        font-size: 0.95rem !important;
    }

    .guia-body {
        margin-top: 2rem !important;
        font-size: 0.95rem !important;
        line-height: 1.75 !important;
    }

    .guia-body h2 {
        font-size: 1.5rem !important;
        margin: 2.5rem 0 1.2rem !important;
    }

    .guia-body h3 {
        font-size: 1.2rem !important;
        margin: 2rem 0 1rem !important;
    }

    .guia-body blockquote {
        padding: 1.2rem !important;
        margin: 1.8rem 0 !important;
        border-radius: 0 10px 10px 0 !important;
    }

    .guia-body table {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .guia-body pre {
        padding: 1.2rem !important;
        margin: 1.8rem 0 !important;
        border-radius: 12px !important;
    }

    .info-box, .warning-box, .danger-box {
        padding: 1rem 1.2rem !important;
        margin: 1.5rem 0 !important;
        gap: 0.8rem !important;
    }

    /* Adaptación de la Cabecera Compacta en Móvil */
    .main-header.is-guia {
        height: 70px !important;
    }

    .header-content-compact {
        padding: 0 1rem !important;
    }

    .header-logo-img-compact {
        height: 38px !important;
    }

    .header-title-compact {
        font-size: 1.25rem !important;
    }

    .header-subtitle-compact {
        font-size: 0.65rem !important;
        letter-spacing: 0.5px !important;
    }

    .btn-admin-header-compact {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.75rem !important;
        border-radius: 6px !important;
        gap: 0.3rem !important;
    }
}

/* Ajustes adicionales para pantallas extra pequeñas */
@media (max-width: 480px) {
    .welcome-content h1 {
        font-size: 1.9rem !important;
    }
    
    .welcome-content > p {
        font-size: 0.95rem !important;
        margin-bottom: 2rem !important;
    }

    .welcome-hero {
        padding: 2.2rem 1.2rem !important;
        margin-bottom: 2rem !important;
    }

    .welcome-hero h1 {
        font-size: 2rem !important;
    }

    .welcome-hero p.hero-subtitle {
        font-size: 0.95rem !important;
        margin-bottom: 1.5rem !important;
    }

    .categorias-grid {
        gap: 1.2rem !important;
    }

    .categoria-card {
        padding: 1.8rem 1.2rem !important;
        border-radius: 16px !important;
    }

    .categoria-card h3 {
        font-size: 1.2rem !important;
    }

    .categoria-card h3 i {
        font-size: 1.4rem !important;
    }

    .categoria-card p {
        font-size: 0.85rem !important;
        margin-bottom: 1.2rem !important;
    }

    .categoria-guias {
        margin-top: 1.2rem !important;
        padding-top: 1.2rem !important;
    }

    .main-footer {
        padding: 2rem 0 !important;
        margin-top: 3rem !important;
        font-size: 0.8rem !important;
    }
}

