/**
 * GRIMORIO APP - Mobile First Luxury Esoteric Design System
 * Optimizada para pantallas táctiles y Android WebView
 */

:root {
    --pa-bg: #07040d;
    --pa-bg-alt: #0f081c;
    --pa-surface: rgba(22, 14, 42, 0.75);
    --pa-surface-hover: rgba(36, 23, 68, 0.85);
    --pa-surface-card: #140c26;
    --pa-gold: #f5d67b;
    --pa-gold-glow: rgba(245, 214, 123, 0.35);
    --pa-gold-dark: #b8912e;
    --pa-text-primary: #f5f2eb;
    --pa-text-secondary: #c0b4d6;
    --pa-text-muted: #8c80a6;
    --pa-border: rgba(245, 214, 123, 0.18);
    --pa-border-glow: rgba(245, 214, 123, 0.45);
    --pa-free: #10b981;
    --pa-free-glow: rgba(16, 185, 129, 0.25);
    --pa-purple: #9d72e6;
    --pa-nav-height: 64px;
    --pa-safe-bottom: env(safe-area-inset-bottom, 12px);
}

/* Reset y base para la app */
#pa-app-root {
    background: radial-gradient(1000px 600px at 50% -10%, #251647 0%, var(--pa-bg) 65%), var(--pa-bg);
    color: var(--pa-text-primary);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    padding-bottom: calc(var(--pa-nav-height) + var(--pa-safe-bottom) + 24px);
    box-sizing: border-box;
    overflow-x: hidden;
    position: relative;
}

#pa-app-root * {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* En la portada, ocultamos headers desktop pesados de Neve para una vista nativa */
body.home .header,
body.home #header-grid,
body.home #header-menu-sidebar,
body.home .header-menu-sidebar-overlay,
body.home .site-footer,
body.home .neve-skip-link,
body.home #scroll-to-top,
body.home #pa-explora-tambien {
    display: none !important;
}

/* Evitar que WhatsApp y traductor tapen la barra de navegación inferior */
body.home #pa-wa-float {
    bottom: calc(var(--pa-nav-height) + var(--pa-safe-bottom) + 14px) !important;
    right: 14px !important;
}
body.home .gtranslate_wrapper,
body.home #gt_float_wrapper,
body.home .gt_float_switcher {
    bottom: calc(var(--pa-nav-height) + var(--pa-safe-bottom) + 14px) !important;
    left: 14px !important;
}

/* AISLAMIENTO TOTAL: cuando la hoja de tarjeta está abierta, nada puede taparla */
body.pa-sheet-open {
    overflow: hidden !important;
}
body.pa-sheet-open .gtranslate_wrapper,
body.pa-sheet-open #gt_float_wrapper,
body.pa-sheet-open .gt_float_switcher,
body.pa-sheet-open #pa-wa-float,
body.pa-sheet-open .joinchat,
body.pa-sheet-open .pa-bottom-nav {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* 1. BARRA SUPERIOR DE LA APP (APP TOPBAR) */
.pa-app-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: rgba(11, 7, 22, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--pa-border);
}

.pa-topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pa-app-logo-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.pa-sacred-icon {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 0 8px var(--pa-gold-glow));
    animation: paPulseIcon 4s ease-in-out infinite;
}

@keyframes paPulseIcon {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 6px var(--pa-gold-glow)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 12px var(--pa-gold-glow)); }
}

.pa-app-titles {
    display: flex;
    flex-direction: column;
}

.pa-brand-kicker {
    font-size: 10px;
    letter-spacing: 0.18em;
    color: var(--pa-gold-dark);
    font-weight: 700;
    line-height: 1;
}

.pa-brand-name {
    font-family: 'Cinzel', serif;
    font-size: 20px;
    letter-spacing: 0.12em;
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 10%, #f5d67b 60%, #d4af37 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pa-topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pa-wallet-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(245, 214, 123, 0.18), rgba(212, 175, 55, 0.08));
    border: 1px solid var(--pa-gold);
    padding: 6px 12px;
    border-radius: 20px;
    color: var(--pa-gold);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 0 12px rgba(245, 214, 123, 0.15);
    transition: all 0.2s ease;
}

.pa-wallet-chip:hover, .pa-wallet-chip:active {
    transform: scale(1.03);
    background: rgba(245, 214, 123, 0.25);
}

.pa-wallet-icon {
    font-size: 14px;
}

.pa-user-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--pa-surface);
    border: 1px solid var(--pa-border);
    color: var(--pa-text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.pa-user-btn:hover {
    border-color: var(--pa-gold);
    color: var(--pa-gold);
}

.pa-login-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--pa-gold), var(--pa-gold-dark));
    color: #1a1202 !important;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(245, 214, 123, 0.3);
}

/* 2. MAIN CONTAINER */
.pa-app-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 16px 16px 40px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* 3. BIENVENIDA Y VALOR FREEMIUM */
.pa-welcome-card {
    background: linear-gradient(135deg, rgba(32, 19, 64, 0.8), rgba(16, 9, 32, 0.85));
    border: 1px solid var(--pa-border);
    border-radius: 18px;
    padding: 20px;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.pa-welcome-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(245, 214, 123, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.pa-welcome-kicker {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--pa-gold);
    font-weight: 700;
    display: block;
    margin-bottom: 6px;
}

.pa-welcome-title {
    font-family: 'Cinzel', serif;
    font-size: 22px;
    margin: 0 0 8px;
    color: #ffffff;
    letter-spacing: 0.04em;
}

.pa-welcome-desc {
    font-size: 14px;
    line-height: 1.55;
    color: var(--pa-text-secondary);
    margin: 0 0 16px;
}

.pa-highlight-free {
    color: #34d399;
    font-weight: 700;
}

.pa-highlight-gold {
    color: var(--pa-gold);
    font-weight: 700;
}

.pa-welcome-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pa-action-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--pa-border);
    padding: 9px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--pa-text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.pa-action-pill:hover, .pa-action-pill:active {
    background: rgba(255, 255, 255, 0.14);
    border-color: var(--pa-gold);
}

.pa-pill-gold {
    background: linear-gradient(135deg, var(--pa-gold), var(--pa-gold-dark));
    color: #1e1302 !important;
    border: none;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(245, 214, 123, 0.25);
}

/* 4. ORÁCULO DIARIO INTERACTIVO (FLIP CARDS) */
.pa-oracle-section {
    background: var(--pa-surface);
    border: 1px solid var(--pa-border);
    border-radius: 18px;
    padding: 18px;
}

.pa-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.pa-section-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pa-section-badge {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(245, 214, 123, 0.2);
    color: var(--pa-gold);
}

.pa-badge-free {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.pa-badge-gold {
    background: rgba(245, 214, 123, 0.25);
    color: var(--pa-gold);
}

.pa-badge-purple {
    background: rgba(157, 114, 230, 0.25);
    color: #c4b5fd;
}

.pa-section-title {
    font-family: 'Cinzel', serif;
    font-size: 18px;
    margin: 0;
    color: #fff;
    letter-spacing: 0.05em;
}

.pa-oracle-sub {
    font-size: 12px;
    color: var(--pa-text-muted);
}

.pa-oracle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

@media (max-width: 540px) {
    .pa-oracle-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
}

.pa-card-flip {
    perspective: 800px;
    height: 165px;
    cursor: pointer;
    user-select: none;
}

.pa-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
    border-radius: 14px;
}

.pa-card-flip.is-flipped .pa-card-inner {
    transform: rotateY(180deg);
}

.pa-card-front, .pa-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 14px;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.pa-card-front {
    background: linear-gradient(145deg, #1f1238, #0d071a);
    border: 1px solid rgba(245, 214, 123, 0.3);
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.6), 0 4px 10px rgba(0, 0, 0, 0.3);
}

.pa-card-mystic-border {
    position: absolute;
    inset: 4px;
    border: 1px dashed rgba(245, 214, 123, 0.25);
    border-radius: 10px;
    pointer-events: none;
}

.pa-card-icon {
    font-size: 28px;
    margin-bottom: 6px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}

.pa-card-tag {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--pa-gold);
    margin-bottom: 4px;
}

.pa-card-cta {
    font-size: 10px;
    color: var(--pa-text-muted);
}

.pa-card-back {
    background: linear-gradient(145deg, #2d1b52, #150c2a);
    border: 1px solid var(--pa-gold);
    transform: rotateY(180deg);
    box-shadow: 0 0 16px var(--pa-gold-glow);
    padding: 12px 10px;
    overflow: hidden;
}

.pa-back-tag {
    font-size: 9px;
    letter-spacing: 0.1em;
    font-weight: 800;
    color: var(--pa-gold);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.pa-back-title {
    font-family: 'Cinzel', serif;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px;
    line-height: 1.2;
}

.pa-back-text {
    font-size: 10px;
    color: var(--pa-text-secondary);
    line-height: 1.35;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pa-back-link {
    font-size: 10px;
    font-weight: 700;
    color: var(--pa-gold);
    margin-top: auto;
}

/* 5. BUSCADOR TÁCTIL RÁPIDO CON AUTOCOMPLETADO Y CHIPS */
.pa-search-section {
    position: relative;
    z-index: 100;
}

.pa-search-form {
    margin: 0;
    padding: 0;
    width: 100%;
}

.pa-search-box {
    display: flex;
    align-items: center;
    background: rgba(18, 11, 35, 0.92);
    border: 1px solid var(--pa-border);
    border-radius: 16px;
    padding: 2px 10px 2px 14px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.pa-search-box:focus-within {
    border-color: var(--pa-gold);
    box-shadow: 0 0 16px var(--pa-gold-glow);
    background: rgba(28, 17, 54, 0.98);
}

.pa-search-icon {
    color: var(--pa-gold);
    margin-right: 10px;
    flex-shrink: 0;
}

.pa-search-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 15px;
    padding: 13px 0;
    font-family: inherit;
    -webkit-appearance: none;
}

.pa-search-input::placeholder {
    color: var(--pa-text-muted);
    font-size: 14px;
}

.pa-search-clear {
    background: transparent;
    border: none;
    color: var(--pa-text-muted);
    font-size: 14px;
    padding: 6px;
    cursor: pointer;
    display: none;
    flex-shrink: 0;
}

.pa-search-clear.is-visible {
    display: block;
}

.pa-search-submit-btn {
    background: linear-gradient(135deg, var(--pa-gold), var(--pa-gold-dark));
    border: none;
    color: #1a1002;
    font-weight: 800;
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: 6px;
    box-shadow: 0 2px 8px rgba(245, 214, 123, 0.3);
    transition: transform 0.15s ease;
}

.pa-search-submit-btn:active {
    transform: scale(0.95);
}

/* CHIPS DE ACCESO RÁPIDO HORIZONTAL */
.pa-filter-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 2px 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.pa-filter-chips::-webkit-scrollbar {
    display: none;
}

.pa-chip-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(245, 214, 123, 0.22);
    color: var(--pa-text-secondary);
    font-size: 12px;
    font-weight: 600;
    padding: 7px 12px;
    border-radius: 20px;
    white-space: nowrap;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.pa-chip-btn:active, .pa-chip-btn:hover {
    background: rgba(245, 214, 123, 0.18);
    border-color: var(--pa-gold);
    color: var(--pa-gold);
}

/* DESPLEGABLE DE RESULTADOS INSTANTÁNEOS */
.pa-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background: #140c26;
    border: 1px solid var(--pa-gold);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(245, 214, 123, 0.15);
    z-index: 500;
    max-height: 380px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: none;
}

.pa-search-dropdown.is-active {
    display: block;
}

.pa-search-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-decoration: none;
    color: var(--pa-text-primary);
    transition: background 0.15s ease;
}

.pa-search-item:last-child {
    border-bottom: none;
}

.pa-search-item:active, .pa-search-item:hover {
    background: rgba(245, 214, 123, 0.12);
}

.pa-search-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-grow: 1;
    min-width: 0;
}

.pa-search-item-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.pa-search-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pa-search-item-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(245, 214, 123, 0.15);
    color: var(--pa-gold);
    flex-shrink: 0;
    margin-left: 8px;
}

.pa-search-item-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(245, 214, 123, 0.2), rgba(212, 175, 55, 0.08));
    color: var(--pa-gold);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    border: none;
    width: 100%;
    border-radius: 0 0 16px 16px;
}

/* 6. GRID DE 12 MÓDULOS DE CONOCIMIENTO (BOTONES GRANDES Y CLAROS) */
.pa-modules-section {
    display: flex;
    flex-direction: column;
}

.pa-modules-count {
    font-size: 12px;
    color: var(--pa-text-muted);
}

.pa-modules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 10px;
}

@media (min-width: 650px) {
    .pa-modules-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
}

@media (min-width: 900px) {
    .pa-modules-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}

.pa-module-card {
    background: var(--pa-surface-card);
    border: 1px solid var(--pa-border);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    user-select: none;
    min-height: 125px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.pa-module-card:active {
    transform: scale(0.97);
}

.pa-module-card:hover {
    background: var(--pa-surface-hover);
    border-color: var(--pa-gold);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), 0 0 12px rgba(245, 214, 123, 0.15);
}

.pa-module-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.pa-module-emoji {
    font-size: 26px;
}

.pa-chip-free {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 3px 6px;
    border-radius: 6px;
    background: rgba(16, 185, 129, 0.16);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.pa-chip-gold {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 3px 6px;
    border-radius: 6px;
    background: rgba(245, 214, 123, 0.2);
    color: var(--pa-gold);
    border: 1px solid rgba(245, 214, 123, 0.4);
}

.pa-chip-purple {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 3px 6px;
    border-radius: 6px;
    background: rgba(157, 114, 230, 0.2);
    color: #c4b5fd;
    border: 1px solid rgba(157, 114, 230, 0.4);
}

.pa-module-title {
    font-family: 'Cinzel', serif;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px;
    letter-spacing: 0.02em;
}

.pa-module-subtitle {
    font-size: 12px;
    color: var(--pa-text-secondary);
    line-height: 1.35;
    margin: 0 0 10px;
    flex-grow: 1;
}

.pa-module-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--pa-text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 8px;
}

.pa-module-arrow {
    color: var(--pa-gold);
    font-size: 14px;
    font-weight: 700;
    transition: transform 0.2s ease;
}

.pa-module-card:hover .pa-module-arrow {
    transform: translateX(4px);
}

.pa-card-highlight-gold {
    background: linear-gradient(145deg, #24143d, #140b24);
    border-color: rgba(245, 214, 123, 0.4);
}

.pa-card-highlight-purple {
    background: linear-gradient(145deg, #1c1038, #110924);
    border-color: rgba(157, 114, 230, 0.35);
}

/* 7. SECCIÓN ESPECIALISTAS IA (ROW SCROLLABLE) */
.pa-specialists-section {
    background: var(--pa-surface);
    border: 1px solid var(--pa-border);
    border-radius: 18px;
    padding: 20px;
}

.pa-section-desc {
    font-size: 13px;
    color: var(--pa-text-secondary);
    margin: 0 0 16px;
    line-height: 1.5;
}

.pa-buy-astrales-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, var(--pa-gold), var(--pa-gold-dark));
    color: #1a1002 !important;
    font-weight: 700;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(245, 214, 123, 0.25);
}

.pa-spec-scroll-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
}

@media (max-width: 580px) {
    .pa-spec-scroll-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

.pa-spec-card {
    background: #0f091c;
    border: 1px solid var(--pa-border);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
}

.pa-spec-card:hover, .pa-spec-card:active {
    transform: translateY(-3px);
    border-color: var(--pa-gold);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5), 0 0 10px var(--pa-gold-glow);
}

.pa-spec-card img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
}

.pa-spec-info {
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.pa-spec-role {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--pa-gold);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.pa-spec-name {
    font-family: 'Cinzel', serif;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px;
    line-height: 1.25;
}

.pa-spec-cta {
    font-size: 11px;
    font-weight: 700;
    color: var(--pa-gold);
    margin-top: auto;
}

/* 8. SECCIÓN CAMPUS LMS */
.pa-campus-banner {
    background: linear-gradient(135deg, #1b0e36 0%, #110724 100%);
    border: 1px solid rgba(157, 114, 230, 0.35);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.pa-campus-title {
    font-family: 'Cinzel', serif;
    font-size: 22px;
    color: #fff;
    margin: 8px 0;
}

.pa-campus-desc {
    font-size: 14px;
    color: var(--pa-text-secondary);
    line-height: 1.55;
    margin: 0 0 18px;
    max-width: 600px;
}

.pa-campus-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.pa-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--pa-gold), var(--pa-gold-dark));
    color: #1a1002 !important;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(245, 214, 123, 0.25);
}

.pa-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(245, 214, 123, 0.3);
    color: var(--pa-gold) !important;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    text-decoration: none;
}

/* 9. BOTTOM SHEET (HOJA DE UNA SOLA CAPA ELEVADA) */
.pa-sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99998 !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.pa-sheet-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}

.pa-sheet-drawer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 84vh;
    min-height: 70vh;
    max-height: 92vh;
    background: #110822;
    border-top: 2px solid var(--pa-gold);
    border-radius: 26px 26px 0 0;
    z-index: 99999 !important;
    padding: 14px 20px 120px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -12px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(245, 214, 123, 0.25);
}

.pa-sheet-drawer.is-active {
    transform: translateY(0);
}

.pa-sheet-handle-wrap {
    display: flex;
    justify-content: center;
    padding: 4px 0 12px;
    cursor: pointer;
}

.pa-sheet-handle {
    width: 44px;
    height: 5px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 4px;
}

.pa-sheet-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 16px;
}

.pa-sheet-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.pa-sheet-title-box {
    flex-grow: 1;
}

.pa-sheet-title {
    font-family: 'Cinzel', serif;
    font-size: 18px;
    color: #fff;
    margin: 0;
}

.pa-sheet-sub {
    font-size: 12px;
    color: var(--pa-text-muted);
}

.pa-sheet-close-btn {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pa-sheet-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pa-sheet-link-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(245, 214, 123, 0.15);
    border-radius: 12px;
    color: var(--pa-text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.pa-sheet-link-btn:active, .pa-sheet-link-btn:hover {
    background: rgba(245, 214, 123, 0.12);
    border-color: var(--pa-gold);
    color: var(--pa-gold);
}

.pa-sheet-link-highlight {
    background: linear-gradient(135deg, rgba(245, 214, 123, 0.15), rgba(212, 175, 55, 0.05));
    border-color: rgba(245, 214, 123, 0.35);
}

.pa-sheet-link-cta {
    background: linear-gradient(135deg, var(--pa-gold), var(--pa-gold-dark));
    color: #1a1002 !important;
    font-weight: 700;
    justify-content: center;
}

/* 10. BARRA DE NAVEGACIÓN INFERIOR (BOTTOM NAV) */
.pa-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(var(--pa-nav-height) + var(--pa-safe-bottom));
    padding-bottom: var(--pa-safe-bottom);
    background: rgba(9, 5, 18, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid rgba(245, 214, 123, 0.2);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 999;
}

.pa-nav-item {
    background: transparent;
    border: none;
    color: var(--pa-text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex: 1;
    height: 100%;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.pa-nav-icon {
    font-size: 20px;
    line-height: 1;
}

.pa-nav-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.pa-nav-item.pa-nav-active, .pa-nav-item:active {
    color: var(--pa-gold);
}

.pa-nav-item.pa-nav-active .pa-nav-icon {
    transform: translateY(-2px);
    filter: drop-shadow(0 2px 6px var(--pa-gold-glow));
}

/* 11. TOAST DE SALIDA SEGURA ANDROID */
.pa-toast {
    position: fixed;
    bottom: calc(var(--pa-nav-height) + var(--pa-safe-bottom) + 20px);
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    background: rgba(22, 14, 40, 0.95);
    border: 1px solid var(--pa-gold);
    color: var(--pa-gold);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100000 !important;
    white-space: nowrap;
}

.pa-toast.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* 12. BOTÓN GLOBAL FLOTANTE DE RETORNO EN ARTÍCULOS */
.pa-sticky-back-bar {
    position: sticky;
    top: 0;
    z-index: 9990;
    background: rgba(11, 7, 22, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--pa-border);
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pa-back-btn-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--pa-gold) !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 14px;
    background: rgba(245, 214, 123, 0.12);
    border: 1px solid rgba(245, 214, 123, 0.3);
    padding: 6px 14px;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.pa-back-btn-pill:hover, .pa-back-btn-pill:active {
    background: rgba(245, 214, 123, 0.22);
}
