/* ==========================================================================
   VALORGT AI - SYSTEM DESIGN & STYLE SHEET (FUTURISTIC FINTECH MODE)
   ========================================================================== */

/* VARIABLES DE DISEÑO SYSTEM DE ALTA FIDELIDAD */
:root {
    --bg-deep: #050608;
    --bg-surface: #0a0c10;
    --bg-card: rgba(13, 16, 22, 0.65);
    --bg-card-hover: rgba(18, 22, 32, 0.85);
    --bg-card-solid: #0e1116;
    
    --border-cyan-dim: rgba(0, 240, 255, 0.15);
    --border-cyan-bright: rgba(0, 240, 255, 0.5);
    --border-light: rgba(255, 255, 255, 0.05);
    --border-hover: rgba(255, 255, 255, 0.15);
    
    --cyan: #00f0ff;
    --blue: #0066ff;
    --green: #00ff66;
    --orange: #ff9f0a;
    --red: #ff375f;
    --magenta: #ff007f;
    --gold: #ffd60a;

    
    --text-primary: #f5f6f8;
    --text-secondary: #9da4b0;
    --text-muted: #5a6270;
    
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
    
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --glow-cyan: 0 0 15px rgba(0, 240, 255, 0.35);
    --glow-green: 0 0 15px rgba(0, 255, 102, 0.35);
    --glow-card: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* RESET & CONFIGURACIONES GENERALES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-primary);
    font-family: var(--font-sans);
    overflow-x: hidden;
    height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 102, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 240, 255, 0.03) 0%, transparent 40%),
        linear-gradient(rgba(18, 18, 18, 0.35) 1px, transparent 1px),
        linear-gradient(90deg, rgba(18, 18, 18, 0.35) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
    z-index: -1;
    pointer-events: none;
}

/* SCROLLBAR PERSONALIZADO */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--cyan);
    box-shadow: var(--glow-cyan);
}

/* ESTRUCTURA GENERAL (LAYOUT CONTENEDOR) */
.app-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    transition: grid-template-columns 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* BARRA LATERAL (SIDEBAR) */
.sidebar {
    background-color: var(--bg-surface);
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    z-index: 10;
    position: relative;
}

.logo-area {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-light);
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    border-radius: 8px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-pulse {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    position: absolute;
    border: 1px solid var(--cyan);
    animation: radar-pulse 2s infinite linear;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.brand-title .highlight {
    color: var(--cyan);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.brand-subtitle {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.nav-menu {
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.nav-item {
    background: transparent;
    border: 1px solid transparent;
    outline: none;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: left;
    width: 100%;
    transition: var(--transition-smooth);
}

.nav-item i {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.nav-item:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.02);
    border-color: var(--border-light);
}

.nav-item:hover i {
    color: var(--cyan);
}

.nav-item.active {
    color: var(--cyan);
    background: linear-gradient(90deg, rgba(0, 240, 255, 0.08) 0%, transparent 100%);
    border-left: 3px solid var(--cyan);
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.nav-item.active i {
    color: var(--cyan);
    filter: drop-shadow(0 0 5px var(--cyan));
}

.sidebar-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-dot.green {
    background-color: var(--green);
    box-shadow: 0 0 8px var(--green);
}

.status-text {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
}

.system-time {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

/* CONTENIDO PRINCIPAL */
.main-content {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* CABECERA SUPERIOR (HEADER) */
.top-header {
    background-color: rgba(10, 12, 16, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
    z-index: 5;
}

.page-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--text-primary);
}

.sub-title {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* TOGGLE DE MONEDA FUTURISTA */
.currency-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.currency-toggle {
    display: flex;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 2px;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.currency-option {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 16px;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.currency-option.active {
    color: var(--cyan);
    background-color: rgba(0, 240, 255, 0.1);
    box-shadow: inset 0 0 5px rgba(0, 240, 255, 0.2);
    border: 1px solid rgba(0, 240, 255, 0.3);
}

.hud-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.hud-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.hud-value {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: bold;
}

.glowing-cyan {
    color: var(--cyan);
    text-shadow: 0 0 5px rgba(0, 240, 255, 0.5);
}

/* CONTENEDOR DE LA VISTA */
.view-viewport {
    flex-grow: 1;
    overflow-y: auto;
    padding: 24px;
}

/* CARDS GLASSMORPHISM */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--glow-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    z-index: 1;
}

.card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

.header-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.header-icon i {
    width: 16px;
    height: 16px;
}

.header-icon.cyan {
    color: var(--cyan);
    border-color: var(--border-cyan-dim);
    background-color: rgba(0, 240, 255, 0.03);
}

.header-icon.green {
    color: var(--green);
    border-color: rgba(0, 255, 102, 0.15);
    background-color: rgba(0, 255, 102, 0.03);
}

.card-header h2 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

/* MÉTODOS DE LA VISTA GENERAL */
.app-view {
    display: none;
    animation: fade-in 0.4s ease-out;
}

.app-view.active {
    display: block;
}

/* ==========================================================================
   VISTA 1: DASHBOARD DE VALUACIÓN (ELEMENTOS)
   ========================================================================== */
.dashboard-grid {
    display: grid;
    grid-template-columns: 520px 1fr;
    gap: 24px;
    align-items: start;
}

.input-panel {
    background-color: rgba(10, 12, 17, 0.85);
}

/* FORMULARIO ESTILOS */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: span 2;
}

label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
}

select, input[type="text"], input[type="number"] {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 10px 12px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition-smooth);
    max-width: 100%;
    box-sizing: border-box;
}

select:focus, input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
    background-color: rgba(0, 0, 0, 0.6);
}

select option {
    background-color: var(--bg-card-solid);
    color: var(--text-primary);
}

.input-with-unit {
    position: relative;
    display: flex;
}

.input-with-unit input {
    width: 100%;
    padding-right: 40px;
}

.unit-badge {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    pointer-events: none;
}

/* AMENITIES CHECKBOXES */
.amenities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 4px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    font-size: 0.8rem;
    user-select: none;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    background-color: rgba(0, 0, 0, 0.2);
    transition: var(--transition-smooth);
}

.checkbox-container:hover {
    background-color: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.1);
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    width: 14px;
    height: 14px;
    border: 1px solid var(--text-muted);
    border-radius: 3px;
    margin-right: 10px;
    display: inline-block;
    position: relative;
    transition: var(--transition-smooth);
}

.checkbox-container input:checked ~ .checkmark {
    border-color: var(--cyan);
    background-color: rgba(0, 240, 255, 0.1);
}

.checkbox-container input:checked ~ .checkmark::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 7px;
    border: solid var(--cyan);
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked {
    background-color: rgba(0, 240, 255, 0.05);
}

.checkbox-container .label-text {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
}

.checkbox-container input:checked ~ .label-text {
    color: var(--text-primary);
}

.tiny-icon {
    width: 12px;
    height: 12px;
}

/* DROPZONE FOTOS IA VISUAL */
.photo-upload-zone {
    border: 1px dashed var(--border-light);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.25);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.photo-upload-zone:hover {
    border-color: var(--cyan);
    background-color: rgba(0, 240, 255, 0.02);
}

.hidden-file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.upload-icon {
    width: 24px;
    height: 24px;
    color: var(--text-muted);
}

.upload-title {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.upload-subtitle {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.upload-preview {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
    background-color: #000;
}

.upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scan-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
}

.scan-status {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--cyan);
    letter-spacing: 1.5px;
    text-shadow: 0 0 8px var(--cyan);
    animation: text-pulse 1.5s infinite;
}

/* LASER DE ESCANEO ANIME */
.laser-scanner {
    position: absolute;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--green), transparent);
    box-shadow: 0 0 12px 2px var(--green);
    top: 0;
    z-index: 5;
    animation: laser-sweep 2.5s infinite ease-in-out;
}

/* BOTONES */
.btn {
    border: none;
    outline: none;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    color: #fff;
    border: 1px solid rgba(0, 240, 255, 0.25);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--glow-cyan);
    border-color: var(--cyan);
}

.btn-block {
    width: 100%;
    margin-top: 16px;
}

.hidden {
    display: none !important;
}

/* SECCIÓN DE RESULTADOS TASACIÓN */
.valuation-results {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-height: 600px;
}

/* ESTADO VACÍO */
.empty-results {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 40px;
}

.empty-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-icon {
    width: 36px;
    height: 36px;
    color: var(--text-muted);
}

.radar-scan {
    width: 100%;
    height: 100%;
    position: absolute;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: radar-pulse 3s infinite linear;
}

.empty-results h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.empty-results p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    max-width: 420px;
    line-height: 1.5;
}

/* RESULTADOS ACTIVOS */
.results-active {
    display: flex;
    flex-direction: column;
    gap: 24px;
    animation: slide-up-fade 0.5s ease-out;
}

.main-value-card {
    background: linear-gradient(135deg, rgba(10, 14, 25, 0.9) 0%, rgba(5, 7, 12, 0.95) 100%);
    border: 1px solid var(--border-cyan-dim);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.05);
    text-align: center;
    padding: 30px 20px;
}

.card-tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--cyan);
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.main-valuation-display {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 20px;
}

.main-valuation-display .currency-symbol {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 2.2rem;
    color: var(--text-secondary);
    margin-top: 4px;
    margin-right: 4px;
}

.main-valuation-display .value-amount {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 3.8rem;
    color: #fff;
    letter-spacing: -1px;
    line-height: 1;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

/* RANGO DE CONFIANZA FINANCIERA UI */
.market-range-bar-wrapper {
    max-width: 500px;
    margin: 0 auto 24px;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.range-track {
    width: 100%;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    position: relative;
}

.range-fill {
    position: absolute;
    height: 100%;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    border-radius: 3px;
}

.range-pointer {
    width: 12px;
    height: 12px;
    background-color: var(--cyan);
    border: 2px solid #fff;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: var(--glow-cyan);
    transition: left 0.5s ease-out;
}

.micro-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    margin-top: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.mstat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.border-l {
    border-left: 1px solid var(--border-light);
}

.border-r {
    border-right: 1px solid var(--border-light);
}

.ms-lbl {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.ms-val {
    font-size: 1rem;
    font-weight: 600;
}

.text-green {
    color: var(--green);
    text-shadow: 0 0 10px rgba(0, 255, 102, 0.2);
}

.text-cyan {
    color: var(--cyan);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.text-red {
    color: var(--red);
}

/* RESULTADOS SUBGRID IA */
.results-subgrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* IA EXPLANATION CHAT CARD */
.ai-explanation-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ai-chat-bubble {
    background-color: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 18px;
    flex-grow: 1;
    min-height: 140px;
    max-height: 280px;
    overflow-y: auto;
    margin-bottom: 12px;
}

/* TYPING INDICATOR */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 20px;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background-color: var(--cyan);
    border-radius: 50%;
    display: inline-block;
    animation: typing-bounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

.ai-response-text {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-primary);
}

.ai-tabs {
    display: flex;
    gap: 4px;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 2px;
}

.ai-tab {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 8px;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.ai-tab.active {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.ai-tab-content {
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    min-height: 50px;
}

/* DETECCION MATERIALES VISUAL AI CARD */
.visual-ai-feedback-card {
    display: flex;
    flex-direction: column;
}

.visual-ai-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    text-align: center;
}

.placeholder-icon-pulse {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px dashed var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: var(--text-muted);
    animation: radar-pulse 3s infinite linear;
}

.placeholder-icon-pulse i {
    width: 24px;
    height: 24px;
}

.help-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    max-width: 260px;
    line-height: 1.4;
}

.detected-materials-list {
    list-style: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    flex-grow: 1;
}

.detected-materials-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    font-size: 0.75rem;
}

.detected-name {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.detected-conf {
    font-family: var(--font-mono);
    color: var(--green);
}

.ai-adjustment-hud {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding-top: 12px;
    border-top: 1px dashed var(--border-light);
    font-size: 0.8rem;
    font-weight: 500;
}

.hud-adjust-val {
    font-family: var(--font-mono);
    font-weight: bold;
}

/* GRÁFICOS CONTAINER */
.chart-card {
    grid-column: span 1;
}

.chart-container {
    position: relative;
    height: 230px;
    width: 100%;
}

/* ==========================================================================
   VISTA 2: RADAR DE CALOR (MAPAS)
   ========================================================================== */
.heatmap-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    height: calc(100vh - 120px);
}

.map-wrapper {
    position: relative;
    padding: 0;
    overflow: hidden;
    height: 100%;
}

#heatmap-map {
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: var(--bg-deep) !important;
}

/* LEYENDA DEL MAPA FLOTANTE */
.map-legend {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 10;
    background: rgba(10, 12, 16, 0.85);
    border: 1px solid var(--border-cyan-dim);
    border-radius: 8px;
    padding: 12px;
    width: 220px;
    box-shadow: var(--glow-card);
    backdrop-filter: blur(10px);
}

.map-legend h4 {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

.legend-scale {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.scale-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.65rem;
    color: var(--text-secondary);
}

.legend-color {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.legend-color.red { background-color: var(--red); box-shadow: 0 0 5px var(--red); }
.legend-color.orange { background-color: var(--orange); box-shadow: 0 0 5px var(--orange); }
.legend-color.yellow { background-color: var(--gold); box-shadow: 0 0 5px var(--gold); }
.legend-color.green { background-color: var(--green); box-shadow: 0 0 5px var(--green); }
.legend-color.blue { background-color: var(--blue); box-shadow: 0 0 5px var(--blue); }

/* LEAFLET POPUPS CUSTOMS TERMINAL ESTILO */
.leaflet-popup-content-wrapper {
    background: rgba(8, 10, 15, 0.9) !important;
    border: 1px solid var(--border-cyan-dim) !important;
    border-radius: 8px !important;
    color: var(--text-primary) !important;
    font-family: var(--font-sans) !important;
    box-shadow: var(--glow-card) !important;
    backdrop-filter: blur(10px);
}

.leaflet-popup-tip {
    background: rgba(8, 10, 15, 0.9) !important;
    border-left: 1px solid var(--border-cyan-dim) !important;
    border-bottom: 1px solid var(--border-cyan-dim) !important;
}

.map-popup-header {
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 6px;
    margin-bottom: 6px;
}

.map-popup-header h4 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--cyan);
}

.map-popup-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
}

.popup-lbl {
    color: var(--text-muted);
}

.popup-val {
    text-align: right;
    font-weight: bold;
}

/* SIDEBAR DEL MAPA */
.heatmap-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
    overflow-y: auto;
    padding-right: 8px;
}

/* Scrollbar futurista y minimalista para la barra lateral del mapa */
.heatmap-sidebar::-webkit-scrollbar {
    width: 6px;
}

.heatmap-sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
}

.heatmap-sidebar::-webkit-scrollbar-thumb {
    background: rgba(0, 240, 255, 0.25);
    border-radius: 3px;
    border: 1px solid rgba(0, 240, 255, 0.1);
}

.heatmap-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 240, 255, 0.45);
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

.gps-search-card {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.zone-info-card {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-height: 180px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.zone-info-card:has(.zone-details-active:not(.hidden)) {
    min-height: 450px; /* Aumentado a 450px para dar espacio completo y aireado a la telemetría del sector */
}

.zone-details-active {
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: fade-in 0.3s ease-out;
}

.zone-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 8px;
}

.metric-hud-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.metric-hud-box {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hud-box-lbl {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.hud-box-val {
    font-size: 0.95rem;
    font-weight: bold;
}

.zone-trend-hud {
    background-color: rgba(0, 240, 255, 0.02);
    border: 1px solid var(--border-cyan-dim);
    border-radius: 6px;
    padding: 12px;
}

.zone-trend-hud h4 {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--cyan);
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.hud-opinion {
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--text-secondary);
}

/* SEÑALES DE ARBITRAJE */
.investor-alerts-card {
    height: 350px; /* Aumentado a 350px para dar espacio completo y aireado a las señales */
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.arbitrage-signals-list {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.signal-item {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    background-color: rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.signal-badge {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    width: fit-content;
}

.signal-badge.danger { background-color: rgba(255, 55, 95, 0.15); color: var(--red); border: 1px solid rgba(255, 55, 95, 0.3); }
.signal-badge.success { background-color: rgba(0, 255, 102, 0.15); color: var(--green); border: 1px solid rgba(0, 255, 102, 0.3); }
.signal-badge.info { background-color: rgba(0, 102, 255, 0.15); color: var(--blue); border: 1px solid rgba(0, 102, 255, 0.3); }

.signal-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

.signal-desc {
    font-size: 0.65rem;
    color: var(--text-muted);
    line-height: 1.3;
}

/* ==========================================================================
   VISTA 3: SIMULADOR HIPOTECARIO (ELEMENTOS)
   ========================================================================== */
.mortgage-layout {
    display: grid;
    grid-template-columns: 500px 1fr;
    gap: 24px;
    align-items: start;
}

.sliders-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

.slider-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lbl-text {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.slider-value-display {
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--cyan);
}

/* SLIDERS INPUT PERSONALIZADOS TERMINAL ESTILO */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--cyan);
    box-shadow: var(--glow-cyan);
    cursor: pointer;
    border: 2px solid #fff;
    transition: transform 0.1s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* BANK SELECTOR */
.bank-selector-wrapper h3 {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.bank-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.bank-btn {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: var(--transition-smooth);
}

.bank-btn:hover {
    background-color: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.1);
}

.bank-btn.active {
    border-color: var(--cyan);
    background-color: rgba(0, 240, 255, 0.04);
    box-shadow: inset 0 0 8px rgba(0, 240, 255, 0.05);
}

.bank-name {
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--text-primary);
}

.bank-btn.active .bank-name {
    color: var(--cyan);
}

.bank-rate {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
}

.bank-btn.active .bank-rate {
    color: var(--text-secondary);
}

/* OUTPUS HIPOTECARIOS COLUMN */
.mortgage-outputs {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.main-payment-card {
    background: linear-gradient(135deg, rgba(8, 12, 20, 0.9) 0%, rgba(3, 5, 8, 0.95) 100%);
    text-align: center;
    padding: 24px;
}

.glowing-cyan-border {
    border: 1px solid var(--border-cyan-dim);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.05);
}

.payment-title {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--cyan);
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.payment-display {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 8px;
}

.payment-display .curr {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.8rem;
    color: var(--text-secondary);
    margin-top: 4px;
    margin-right: 4px;
}

.payment-display .amt {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 3.2rem;
    color: #fff;
    line-height: 1;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.08);
}

.payment-subtitle {
    font-size: 0.65rem;
    color: var(--text-muted);
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.4;
}

.mortgage-stats-card .hud-stats-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hud-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.hud-stat-item.border-top {
    border-top: 1px solid var(--border-light);
    padding-top: 12px;
    margin-top: 4px;
}

.hud-item-lbl {
    color: var(--text-secondary);
}

.hud-item-val {
    font-weight: 600;
}

.mortgage-recommendation-card .recommendation-content {
    display: flex;
    gap: 20px;
    align-items: center;
}

.viability-gauge-wrapper {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 110px;
    height: 90px;
    flex-shrink: 0;
}

.viability-badge {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: bold;
    color: var(--green);
    text-shadow: var(--glow-green);
    margin-bottom: 4px;
}

.gauge-caption {
    font-size: 0.55rem;
    color: var(--text-muted);
    text-align: center;
}

.recommendation-text {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* ==========================================================================
   VISTA 4: TERMINAL DE INVERSIÓN (ELEMENTOS)
   ========================================================================== */
.investor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.investor-summary-card {
    grid-column: span 2;
    padding: 16px 20px;
}

.market-ticker {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    overflow-x: auto;
}

.ticker-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 8px 12px;
    min-width: 200px;
}

.tick-lbl {
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.tick-val {
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 4px;
}

.inline-icon {
    width: 12px;
    height: 12px;
}

.chart-card-investor {
    grid-column: span 2;
}

.chart-container-large {
    position: relative;
    height: 280px;
    width: 100%;
}

.terminal-table-card {
    grid-column: span 2;
}

.table-responsive {
    overflow-x: auto;
}

.terminal-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-sans);
    font-size: 1.05rem;
    text-align: left;
}

.terminal-table th {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
}

.terminal-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
}

.terminal-table tbody tr:hover td {
    background-color: rgba(255, 255, 255, 0.01);
    color: var(--text-primary);
}

.terminal-table tbody tr:last-child td {
    border-bottom: none;
}

.table-zone-name {
    font-weight: 600;
    color: var(--text-primary);
}

.table-number {
    font-family: var(--font-mono);
}

/* TERM NEWS TERMINAL CONSOLE */
.terminal-news-card {
    grid-column: span 2;
}

.news-console {
    background-color: #030406;
    border: 1px solid rgba(0, 240, 255, 0.08);
    border-radius: 6px;
    padding: 16px;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--text-secondary);
    min-height: 160px;
    max-height: 220px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}

.news-log {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.log-timestamp {
    color: var(--text-muted);
    flex-shrink: 0;
}

.log-tag {
    color: var(--cyan);
    font-weight: bold;
    flex-shrink: 0;
}

.log-tag.alert {
    color: var(--orange);
}

.log-tag.system {
    color: var(--green);
}

.log-msg {
    word-break: break-word;
}

/* ==========================================================================
   ANIMACIONES & KEYFRAMES
   ========================================================================== */
@keyframes radar-pulse {
    0% {
        transform: scale(0.9);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

@keyframes text-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes laser-sweep {
    0%, 100% { top: 0%; }
    50% { top: calc(100% - 3px); }
}

@keyframes typing-bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1.0); }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slide-up-fade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   PORTAFOLIO DE PROPIEDADES EN VENTA DESTACADAS
   ========================================================================== */
.featured-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 10px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hud-label-small {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--cyan);
    letter-spacing: 2px;
}

.section-title-premium {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-top: 4px;
}

.hud-caption {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.featured-properties-deck {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.featured-card {
    padding: 0 !important;
    cursor: pointer;
    background: rgba(13, 16, 22, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.featured-card:hover {
    transform: translateY(-4px);
    border-color: var(--cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
    background: rgba(18, 22, 32, 0.75) !important;
}

.card-image-wrapper {
    height: 165px;
    position: relative;
    overflow: hidden;
    background-color: #000;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.featured-card:hover .card-image-wrapper img {
    transform: scale(1.05);
}

.card-status-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-family: var(--font-mono);
    font-size: 0.55rem;
    font-weight: bold;
    padding: 3px 6px;
    background-color: rgba(0, 102, 255, 0.3);
    color: #fff;
    border: 1px solid var(--blue);
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.card-status-badge.cyan {
    background-color: rgba(0, 240, 255, 0.15);
    border-color: var(--cyan);
    color: var(--cyan);
    box-shadow: 0 0 5px rgba(0, 240, 255, 0.2);
}

.card-status-badge.green {
    background-color: rgba(0, 255, 102, 0.15);
    border-color: var(--green);
    color: var(--green);
}

.card-status-badge.orange {
    background-color: rgba(255, 159, 10, 0.15);
    border-color: var(--orange);
    color: var(--orange);
}

.card-info {
    padding: 14px 16px;
}

.property-tag {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.card-info h4 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 4px;
}

.property-location {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.property-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.property-specs span {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    color: var(--text-secondary);
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 3px 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-price-hud {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px dashed rgba(255, 255, 255, 0.06);
}

.price-val {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}

.btn-micro-cyber {
    background: transparent;
    border: 1px solid rgba(0, 240, 255, 0.3);
    outline: none;
    color: var(--cyan);
    font-family: var(--font-mono);
    font-size: 0.55rem;
    font-weight: bold;
    padding: 3px 6px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-micro-cyber:hover {
    background-color: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 6px rgba(0, 240, 255, 0.3);
    border-color: var(--cyan);
}

/* ==========================================================================
   WIDGETS DE GPS & RADAR DE COORDENADAS
   ========================================================================== */
.live-coords-bar {
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.beacon-pulse-mini {
    width: 6px;
    height: 6px;
    background-color: var(--cyan);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.beacon-pulse-mini::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid var(--cyan);
    top: 0;
    left: 0;
    animation: radar-pulse 1.5s infinite linear;
}

.gps-inputs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.gps-diagnostic-hud {
    background-color: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(0, 240, 255, 0.08);
    border-radius: 6px;
    padding: 10px 12px;
    margin-top: 10px;
}

/* BLINKING BEACON ICON ON THE MAP OVERLAYS */
.radar-beacon-container {
    background: transparent;
    border: none;
}

.radar-beacon {
    position: relative;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.beacon-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    z-index: 10;
}

.beacon-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: radar-pulse 2s infinite linear;
}

/* Colores para las balizas según plusvalía */
.beacon-red .beacon-dot { background-color: var(--red); box-shadow: 0 0 8px var(--red); }
.beacon-red .beacon-pulse { border: 1.5px solid var(--red); }

.beacon-orange .beacon-dot { background-color: var(--orange); box-shadow: 0 0 8px var(--orange); }
.beacon-orange .beacon-pulse { border: 1.5px solid var(--orange); }

.beacon-yellow .beacon-dot { background-color: var(--gold); box-shadow: 0 0 8px var(--gold); }
.beacon-yellow .beacon-pulse { border: 1.5px solid var(--gold); }

.beacon-green .beacon-dot { background-color: var(--green); box-shadow: 0 0 8px var(--green); }
.beacon-green .beacon-pulse { border: 1.5px solid var(--green); }

.beacon-blue .beacon-dot { background-color: var(--blue); box-shadow: 0 0 8px var(--blue); }
.beacon-blue .beacon-pulse { border: 1.5px solid var(--blue); }

.beacon-cyan .beacon-dot { background-color: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.beacon-cyan .beacon-pulse { border: 1.5px solid var(--cyan); }

.beacon-purple .beacon-dot { background-color: #bf5af2; box-shadow: 0 0 8px #bf5af2; }
.beacon-purple .beacon-pulse { border: 1.5px solid #bf5af2; }

.map-popup-header.purple-header {
    border-bottom: 1px solid rgba(191, 90, 242, 0.4);
}
.map-popup-header.purple-header h4 {
    color: #bf5af2;
    display: flex;
    align-items: center;
    gap: 4px;
}

.beacon-pink .beacon-dot { background-color: #ff2d55; box-shadow: 0 0 8px #ff2d55; }
.beacon-pink .beacon-pulse { border: 1.5px solid #ff2d55; }

.map-popup-header.pink-header {
    border-bottom: 1px solid rgba(255, 45, 85, 0.4);
}
.map-popup-header.pink-header h4 {
    color: #ff2d55;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* CLASES DE BORDES GLOW PARA PROPIEDADES EN VENTA */
.featured-card.glow-red {
    border-color: rgba(255, 55, 95, 0.25) !important;
}
.featured-card.glow-red:hover {
    border-color: var(--red) !important;
    box-shadow: 0 0 15px rgba(255, 55, 95, 0.25) !important;
}

.featured-card.glow-orange {
    border-color: rgba(255, 159, 10, 0.25) !important;
}
.featured-card.glow-orange:hover {
    border-color: var(--orange) !important;
    box-shadow: 0 0 15px rgba(255, 159, 10, 0.25) !important;
}

.featured-card.glow-yellow {
    border-color: rgba(255, 214, 10, 0.25) !important;
}
.featured-card.glow-yellow:hover {
    border-color: var(--gold) !important;
    box-shadow: 0 0 15px rgba(255, 214, 10, 0.25) !important;
}

.featured-card.glow-green {
    border-color: rgba(0, 255, 102, 0.25) !important;
}
.featured-card.glow-green:hover {
    border-color: var(--green) !important;
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.25) !important;
}

.featured-card.glow-blue {
    border-color: rgba(0, 102, 255, 0.25) !important;
}
.featured-card.glow-blue:hover {
    border-color: var(--blue) !important;
    box-shadow: 0 0 15px rgba(0, 102, 255, 0.25) !important;
}

/* MEDIA QUERIES PARA RESPONSIVIDAD */
@media (max-width: 1100px) {
    .app-container {
        grid-template-columns: 1fr;
    }
    .sidebar {
        display: none;
    }
    .featured-properties-deck {
        grid-template-columns: 1fr 1fr;
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .mortgage-layout {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .featured-properties-deck {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   VISTA 5: PORTAFOLIO INMOBILIARIO IA (ESTILOS COMPLETOS)
   ========================================================================== */
:root {
    --neon-purple: #bf5af2;
    --neon-purple-glow: rgba(191, 90, 242, 0.35);
    --neon-purple-dim: rgba(191, 90, 242, 0.15);
    --carbon-deep: #0a0b0d;
    --graphite-dark: #121418;
}

/* Cabecera del Portafolio y Rango */
.portfolio-header-hud {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.investor-rank-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(191, 90, 242, 0.08);
    border: 1px solid rgba(191, 90, 242, 0.3);
    border-radius: 6px;
    padding: 6px 12px;
    margin-top: 6px;
    font-size: 0.75rem;
    box-shadow: 0 0 10px rgba(191, 90, 242, 0.08);
}

.purple-icon {
    color: var(--neon-purple);
    width: 16px;
    height: 16px;
}

.badge-lbl {
    color: var(--text-muted);
}

.badge-val {
    font-weight: bold;
}

.text-purple {
    color: var(--neon-purple) !important;
    text-shadow: 0 0 8px rgba(191, 90, 242, 0.25);
}

.border-purple {
    border-bottom-color: rgba(191, 90, 242, 0.2) !important;
}

.header-icon.purple {
    background-color: rgba(191, 90, 242, 0.1);
    color: var(--neon-purple);
    box-shadow: 0 0 8px rgba(191, 90, 242, 0.1);
}

/* Grid de KPIs */
.portfolio-kpis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.kpi-card {
    padding: 18px 24px !important;
}

.kpi-icon-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.kpi-mini-icon {
    width: 15px;
    height: 15px;
    color: var(--cyan);
}

.kpi-val {
    font-size: 1.45rem;
    font-weight: bold;
    margin-top: 8px;
    display: block;
    letter-spacing: 0.5px;
}

/* Grid del Dashboard */
.portfolio-grid-upper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
    align-items: start;
}

.portfolio-grid-lower {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 24px;
    align-items: start;
}

.portfolio-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.col-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.col-card.form-card {
    background: rgba(18, 20, 24, 0.7) !important;
}

.item-count {
    font-size: 0.65rem;
    color: var(--text-muted);
    background-color: rgba(255, 255, 255, 0.04);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Gestor de Activos */
.gestor-activos-card {
    min-height: 410px;
    display: flex;
    flex-direction: column;
}
.gestor-activos-card .assets-scroll-area {
    flex-grow: 1;
}
.assets-scroll-area {
    max-height: 520px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-right: 4px;
}

.asset-card {
    border: 1px solid rgba(255, 255, 255, 0.04);
    background-color: rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    padding: 18px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.asset-card:hover {
    border-color: var(--neon-purple-glow);
    box-shadow: 0 0 12px rgba(191, 90, 242, 0.08);
    background-color: rgba(255, 255, 255, 0.01);
}

.asset-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.asset-title-area h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.asset-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.asset-badge {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.asset-badge.apartamento { background-color: rgba(0, 240, 255, 0.1); color: var(--cyan); border: 1px solid rgba(0, 240, 255, 0.2); }
.asset-badge.casa { background-color: rgba(0, 255, 102, 0.1); color: var(--green); border: 1px solid rgba(0, 255, 102, 0.2); }
.asset-badge.comercial, .asset-badge.oficina { background-color: rgba(191, 90, 242, 0.1); color: var(--neon-purple); border: 1px solid rgba(191, 90, 242, 0.2); }
.asset-badge.bodega, .asset-badge.terreno { background-color: rgba(255, 159, 10, 0.1); color: var(--orange); border: 1px solid rgba(255, 159, 10, 0.2); }
.asset-badge.airbnb, .asset-badge.beachhouse { background-color: rgba(255, 45, 85, 0.1); color: #ff2d55; border: 1px solid rgba(255, 45, 85, 0.2); }

.asset-financials-hud {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.af-box {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.af-lbl {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.af-val {
    font-size: 0.85rem;
    font-weight: bold;
}

.asset-actions-row {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    border-top: 1px dashed rgba(255, 255, 255, 0.05);
    padding-top: 10px;
    flex-wrap: wrap;
}

.btn-asset-action {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-asset-action:hover {
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.03);
}

.btn-asset-action.active-purple {
    border-color: var(--neon-purple);
    color: var(--neon-purple);
    background-color: rgba(191, 90, 242, 0.05);
    box-shadow: 0 0 6px rgba(191, 90, 242, 0.2);
}

.btn-asset-action.btn-sell:hover {
    border-color: var(--red);
    color: var(--red);
    background-color: rgba(255, 55, 95, 0.05);
}

/* Efecto de borde glowing morado */
.glowing-effect-purple:hover {
    box-shadow: 0 0 15px rgba(191, 90, 242, 0.4);
    border-color: var(--neon-purple);
    background: var(--neon-purple);
    color: #000 !important;
}

.checkmark.border-purple {
    border-color: rgba(191, 90, 242, 0.3);
}

.checkbox-container input:checked ~ .checkmark.border-purple {
    background-color: var(--neon-purple);
    border-color: var(--neon-purple);
}

/* Contenedores de gráficos de portafolio */
.chart-container-portfolio {
    position: relative;
    height: 230px;
    width: 100%;
}

.projection-toggles {
    display: flex;
    gap: 4px;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 3px;
    border-radius: 6px;
}

.proj-toggle-btn {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.proj-toggle-btn.active {
    background-color: var(--neon-purple);
    color: #000;
}

.projection-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--border-light);
    padding-top: 12px;
    margin-top: 12px;
}

/* Asesor IA del portafolio */
.ai-console-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
}

.credit-capacity-box {
    background-color: rgba(191, 90, 242, 0.03);
    border: 1px dashed rgba(191, 90, 242, 0.25);
    border-radius: 8px;
    padding: 12px;
}

.cap-title {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cap-val {
    font-size: 1.55rem;
    font-weight: 800;
    margin-top: 2px;
    margin-bottom: 4px;
}

.cap-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.3;
}

.ai-opinion-feed {
    background-color: #040507;
    border: 1px solid rgba(191, 90, 242, 0.08);
    border-radius: 8px;
    padding: 14px;
    min-height: 150px;
    overflow-y: auto;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.8);
}

/* Libertad Financiera */
.freedom-card {
    background: linear-gradient(135deg, rgba(12, 8, 18, 0.9) 0%, rgba(6, 4, 10, 0.95) 100%) !important;
    border: 1px solid rgba(191, 90, 242, 0.15) !important;
}

.freedom-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.freedom-progress-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 8px 0;
}

.freedom-percentage-ring {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ring-svg {
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.03);
    stroke-width: 12px;
}

.ring-fill {
    fill: none;
    stroke: var(--neon-purple);
    stroke-width: 12px;
    stroke-linecap: round;
    stroke-dasharray: 502.65;
    stroke-dashoffset: 502.65; /* 100% libre es 0 dashoffset */
    transition: stroke-dashoffset 0.8s ease-out;
    filter: drop-shadow(0 0 8px rgba(191, 90, 242, 0.6));
}

.ring-center {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
}

.pct-num {
    font-size: 2.1rem;
    font-weight: 800;
    color: #fff;
}

.pct-lbl {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 1.5px;
}

.freedom-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 12px;
}

.fstat {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
}

/* Geolocalización del portafolio */
.portfolio-map-card {
    margin-top: 24px;
}

.map-layout-portfolio {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
    align-items: stretch;
}

.map-signals-sidebar {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: 440px;
}

/* Responsividad para el Portafolio Grid */
@media (max-width: 1200px) {
    .portfolio-grid-upper,
    .portfolio-grid-lower {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 950px) {
    .map-layout-portfolio {
        grid-template-columns: 1fr;
    }
    .map-signals-sidebar {
        max-height: 250px;
    }
}

/* ==========================================================================
   ESTILOS ADICIONALES: SIDEBAR COLAPSABLE Y TOOLTIPS
   ========================================================================== */

/* Botón de Colapso del Sidebar */
.sidebar-toggle {
    position: absolute;
    right: -12px;
    top: 28px;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    outline: none;
    padding: 0;
}

.sidebar-toggle:hover {
    color: var(--cyan);
    border-color: var(--cyan);
    background: rgba(0, 240, 255, 0.05);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.sidebar-toggle i {
    width: 14px;
    height: 14px;
}

/* Reglas cuando el sidebar está colapsado */
.app-container.sidebar-collapsed {
    grid-template-columns: 72px 1fr;
}

.app-container.sidebar-collapsed .logo-text {
    display: none;
}

.app-container.sidebar-collapsed .logo-area {
    padding: 24px 0;
    justify-content: center;
}

.app-container.sidebar-collapsed .nav-menu {
    padding: 20px 8px;
    align-items: center;
}

.app-container.sidebar-collapsed .nav-item {
    justify-content: center;
    padding: 14px 0;
    width: 48px;
    gap: 0;
}

.app-container.sidebar-collapsed .nav-item span {
    display: none;
}

.app-container.sidebar-collapsed .sidebar-footer {
    padding: 20px 0;
    align-items: center;
    justify-content: center;
}

.app-container.sidebar-collapsed .sidebar-footer .status-text,
.app-container.sidebar-collapsed .sidebar-footer .system-time {
    display: none;
}

.app-container.sidebar-collapsed .connection-status {
    justify-content: center;
    width: 100%;
}

/* Tooltips Premium para Sidebar Colapsado */
.app-container.sidebar-collapsed .nav-item {
    position: relative;
}

.app-container.sidebar-collapsed .nav-item:hover span {
    display: block !important;
    position: absolute;
    left: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 12, 16, 0.95);
    border: 1px solid var(--cyan);
    color: var(--text-primary);
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
    pointer-events: none;
}

.app-container.sidebar-collapsed .nav-item:hover span::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 6px 6px 0;
    border-style: solid;
    border-color: transparent var(--cyan) transparent transparent;
}

/* Efecto de Brillo Pulsante de Proyección para las tarjetas KPI */
.kpi-card.projected-glow {
    border-color: rgba(191, 90, 242, 0.4) !important;
    box-shadow: 0 0 15px rgba(191, 90, 242, 0.15) !important;
    background: linear-gradient(135deg, rgba(18, 20, 24, 0.7), rgba(191, 90, 242, 0.03)) !important;
    transition: var(--transition-smooth);
}

.kpi-card.projected-glow .kpi-lbl {
    color: var(--neon-purple) !important;
    text-shadow: 0 0 8px rgba(191, 90, 242, 0.25);
}

/* ==========================================================================
   CONSOLA DE GESTIÓN COMERCIAL & B2B SaaS STYLES
   ========================================================================== */

:root {
    --neon-emerald: #34c759;
    --neon-emerald-glow: rgba(52, 199, 89, 0.35);
}

/* Grids */
.commercial-grid-upper,
.commercial-grid-lower {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
    width: 100%;
}

@media (max-width: 1200px) {
    .commercial-grid-upper,
    .commercial-grid-lower {
        grid-template-columns: 1fr;
    }
}

/* Ajustes de Altura para prevenir cortes de información */
#view-commercial #commercial-dashboard-area .card {
    min-height: 530px; /* Altura ideal de confort para formularios, tablas y precios */
    display: flex;
    flex-direction: column;
}

/* Headers */
.border-green {
    border-bottom: 2px solid var(--cyan) !important;
}

.border-cyan {
    border-bottom: 2px solid var(--cyan) !important;
}

.header-icon.green, .header-icon.cyan {
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--cyan);
}

.header-icon.green i, .header-icon.cyan i {
    color: var(--cyan);
}

/* Forms */
.commercial-section-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: flex-start;
    gap: 15px;
}

.commercial-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.commercial-form .form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.commercial-form .form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

.commercial-form .form-row-4 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 10px;
}

@media (max-width: 768px) {
    .commercial-form .form-row-2,
    .commercial-form .form-row-3,
    .commercial-form .form-row-4 {
        grid-template-columns: 1fr;
    }
}

.commercial-form label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
    text-transform: uppercase;
}

.commercial-form input,
.commercial-form select {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.commercial-form input:focus,
.commercial-form select:focus {
    border-color: var(--cyan);
    outline: none;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.btn-commercial {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
}

.btn-commercial-emerald {
    background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 100%);
    color: #000;
}

.btn-commercial-cyan {
    background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 100%) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6) !important;
    border: 1px solid rgba(0, 240, 255, 0.35) !important;
}

.btn-commercial-gold {
    background: linear-gradient(135deg, #ffd700 0%, #ff9f0a 100%) !important;
    color: #000000 !important;
    font-weight: 900 !important;
    font-family: var(--font-mono) !important;
    border: 1px solid rgba(255, 215, 0, 0.5) !important;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4) !important;
    text-shadow: none !important;
    transition: all 0.3s ease !important;
}

.btn-commercial-emerald:hover {
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.45);
    filter: brightness(1.1);
}

.btn-commercial-cyan:hover {
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5) !important;
    filter: brightness(1.1);
    color: #ffffff !important;
}

.btn-commercial-gold:hover {
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.7) !important;
    transform: translateY(-2px) !important;
    filter: brightness(1.1) !important;
}

.btn-commercial-purple {
    background: linear-gradient(135deg, #bf5af2 0%, #0a84ff 100%);
    color: #fff;
}

.btn-commercial-purple:hover:not(:disabled) {
    box-shadow: 0 0 15px rgba(191, 90, 242, 0.4);
    filter: brightness(1.1);
}

.btn-commercial-purple:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Pricing Grid */
.saas-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 15px;
}

@media (max-width: 768px) {
    .saas-pricing-grid {
        grid-template-columns: 1fr;
    }
}

.pricing-card {
    background: rgba(10, 12, 16, 0.5);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 520px;
    position: relative;
    transition: var(--transition-smooth);
}

.pricing-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.pricing-card.active-plan {
    border-color: var(--cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
    background: rgba(0, 240, 255, 0.04);
}

.active-ribbon {
    position: absolute;
    top: -8px;
    background: var(--cyan);
    color: #000;
    font-size: 0.55rem;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.plan-header {
    text-align: center;
    margin-bottom: 10px;
}

.plan-badge {
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 1.2px;
    font-weight: bold;
}

.plan-title {
    font-size: 1.45rem;
    font-weight: bold;
    margin-top: 8px;
    color: #ffffff;
}

.plan-price {
    font-size: 2.3rem;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.plan-price-num {
    text-shadow: 0 0 10px rgba(255,255,255,0.15);
}

.plan-period {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.plan-features {
    list-style: none;
    width: 100%;
    margin-bottom: 25px;
    font-size: 0.92rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
}

.plan-features li i {
    width: 12px;
    height: 12px;
    color: var(--cyan);
}

.plan-features li i.text-red {
    color: var(--red);
}

.btn-plan-action {
    width: 100%;
    padding: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-plan-action:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--text-secondary);
}

.active-plan .btn-plan-action {
    background: var(--cyan);
    color: #000;
    border-color: var(--cyan);
}

.active-plan .btn-plan-action:hover {
    filter: brightness(1.1);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.35);
}

/* Tables */
.commercial-table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    background: rgba(0,0,0,0.25);
    max-height: 180px;
}

.commercial-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
    text-align: left;
}

.commercial-table th {
    background: rgba(255,255,255,0.02);
    color: var(--text-secondary);
    padding: 8px 12px;
    font-weight: bold;
    border-bottom: 1px solid var(--border-light);
}

.commercial-table td {
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
}

.commercial-table tr:hover td {
    background: rgba(255,255,255,0.02);
}

.commercial-table .plan-col {
    color: var(--cyan);
    font-weight: bold;
}

.commercial-table .status-col {
    color: var(--neon-blue);
}

/* Payment Modal */
.payment-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 6, 8, 0.85);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.payment-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.payment-modal-card {
    width: 440px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.payment-modal-overlay.active .payment-modal-card {
    transform: scale(1);
}

.modal-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.modal-close-btn:hover {
    color: var(--red);
}

.modal-header-payment {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 15px;
}

.modal-header-payment h3 {
    font-size: 0.95rem;
    font-weight: bold;
}

/* Credit Card Preview */
.credit-card-preview {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    background: linear-gradient(135deg, #071b26 0%, #080c10 100%);
    border: 1px solid var(--cyan);
    box-shadow: 0 8px 24px rgba(0, 240, 255, 0.25);
    padding: 20px;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cc-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.04;
    background-image: radial-gradient(var(--cyan) 1px, transparent 1px);
    background-size: 10px 10px;
    pointer-events: none;
}

.cc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cc-chip {
    width: 38px;
    height: 28px;
    background: linear-gradient(135deg, #f3d078 0%, #c49430 100%);
    border-radius: 4px;
    box-shadow: inset 0 1px 3px rgba(255,255,255,0.3);
}

.cc-wifi {
    color: var(--text-secondary);
    opacity: 0.5;
    width: 16px;
    height: 16px;
}

.cc-number {
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-align: center;
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    margin: 15px 0;
}

.cc-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.cc-lbl {
    font-size: 0.45rem;
    color: var(--text-muted);
    display: block;
    letter-spacing: 1px;
}

.cc-val {
    font-size: 0.65rem;
    color: var(--text-primary);
    text-transform: uppercase;
}

/* Payment Forms */
.payment-summary {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 6px;
    padding: 12px;
    margin-top: 15px;
    font-size: 0.75rem;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    color: var(--text-secondary);
}

.summary-line.font-bold {
    color: var(--text-primary);
}

.payment-state-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 10px;
    min-height: 250px;
}

.hidden {
    display: none !important;
}

/* Neon Spinner */
.processing-spinner-wrap {
    position: relative;
    width: 70px;
    height: 70px;
}

.neon-spinner {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: var(--cyan);
    border-bottom-color: var(--neon-blue);
    border-radius: 50%;
    animation: rotate-neon 1.5s linear infinite;
    filter: drop-shadow(0 0 5px rgba(0, 240, 255, 0.4));
}

.spinner-core {
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 50%;
}

@keyframes rotate-neon {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Highlight Sponsored Deck Cards - Overridden dynamically by heatmap zone glow classes */

/* B2B Login Gate Styles */
.commercial-login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 180px);
    width: 100%;
}

.login-card {
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 240, 255, 0.15) !important;
    box-shadow: 0 8px 32px rgba(0, 240, 255, 0.05) !important;
}

.login-card:hover {
    border-color: var(--cyan) !important;
    box-shadow: 0 8px 32px rgba(0, 240, 255, 0.25) !important;
}

.login-lock-halo {
    animation: pulse-lock-glow 2s infinite ease-in-out;
}

@keyframes pulse-lock-glow {
    0% {
        box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
        border-color: rgba(0, 240, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 25px rgba(0, 240, 255, 0.6);
        border-color: var(--cyan);
    }
    100% {
        box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
        border-color: rgba(0, 240, 255, 0.4);
    }
}

.login-scanner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 6, 8, 0.96);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 12px;
}

.scan-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    animation: laser-scan 2s linear infinite;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

@keyframes laser-scan {
    0% { top: 0%; }
    50% { top: 100%; }
    100% { top: 0%; }
}

.scanner-spinner {
    width: 40px;
    height: 40px;
    border: 2px solid transparent;
    border-top-color: var(--cyan);
    border-radius: 50%;
    animation: rotate-neon 1s linear infinite;
}

.btn-logout:hover {
    background: var(--red) !important;
    color: #000 !important;
    box-shadow: 0 0 10px rgba(255, 55, 95, 0.4);
}

/* B2B Inventory Grid Styles */
.b2b-inventory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 10px;
}

@media (max-width: 1200px) {
    .b2b-inventory-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .b2b-inventory-grid {
        grid-template-columns: 1fr;
    }
}

.btn-inv-filter {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-inv-filter:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

.btn-inv-filter.active {
    background: rgba(0, 240, 255, 0.15);
    border-color: var(--cyan);
    color: var(--cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

/* Mini Inventory Card */
.b2b-inventory-card-item {
    background: rgba(13, 16, 22, 0.4);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.b2b-inventory-card-item:hover {
    border-color: var(--cyan);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.15);
}

.b2b-inventory-card-item.is-sponsored {
    border-color: var(--cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.inv-img-wrap {
    height: 120px;
    position: relative;
    overflow: hidden;
}

.inv-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.b2b-inventory-card-item:hover .inv-img-wrap img {
    transform: scale(1.05);
}

.inv-cat-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 0.55rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(0,0,0,0.7);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-primary);
}

.inv-cat-badge.casa { color: var(--neon-blue); border-color: rgba(10, 132, 255, 0.4); }
.inv-cat-badge.apartamento { color: #bf5af2; border-color: rgba(191, 90, 242, 0.4); }
.inv-cat-badge.local { color: var(--orange); border-color: rgba(255, 159, 10, 0.4); }
.inv-cat-badge.bodega { color: var(--gold); border-color: rgba(255, 214, 10, 0.4); }
.inv-cat-badge.terreno { color: #ff375f; border-color: rgba(255, 55, 95, 0.4); }

.inv-sponsored-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 0.55rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--cyan);
    color: #000;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.inv-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    justify-content: space-between;
}

.inv-title {
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inv-meta {
    font-size: 0.6rem;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
}

.inv-specs {
    font-size: 0.55rem;
    color: var(--text-muted);
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.inv-price-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 8px;
    margin-top: 4px;
}

.inv-price {
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--cyan);
}

.btn-inv-action {
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--cyan);
    color: var(--cyan);
    font-size: 0.55rem;
    padding: 2px 6px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition-smooth);
}

.btn-inv-action:hover {
    background: var(--cyan);
    color: #000;
    box-shadow: 0 0 5px rgba(0, 240, 255, 0.35);
}

/* B2C Property Navigation Filter Bar */
.b2c-filters-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    margin-bottom: 24px;
    border-radius: 12px;
    border: 1px solid rgba(0, 240, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.03);
    background: rgba(8, 10, 15, 0.6);
    flex-wrap: wrap;
    gap: 15px;
    backdrop-filter: blur(10px);
}

.b2c-filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.b2c-filter-group .filter-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: bold;
    color: var(--cyan);
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}

.b2c-filter-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-b2c-filter {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-sans);
}

.btn-b2c-filter:hover {
    background: rgba(0, 240, 255, 0.08);
    color: var(--cyan);
    border-color: rgba(0, 240, 255, 0.4);
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.15);
    transform: translateY(-1px);
}

.btn-b2c-filter.active {
    background: rgba(0, 240, 255, 0.15);
    border-color: var(--cyan);
    color: var(--cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.35);
    font-weight: 700;
}

@media (max-width: 992px) {
    .b2c-filters-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        width: 100%;
    }
    
    .b2c-filter-group {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Homepage Glowing Catalog Button CTA */
.deck-cta-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 15px;
    margin-bottom: 30px;
}

.btn-glowing-cta {
    background: rgba(0, 240, 255, 0.04);
    border: 2px solid var(--cyan);
    color: var(--cyan);
    padding: 12px 32px;
    border-radius: 30px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 1.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.15), inset 0 0 10px rgba(0, 240, 255, 0.05);
    outline: none;
}

.btn-glowing-cta:hover {
    background: var(--cyan);
    color: #000;
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.5), inset 0 0 5px rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.btn-glowing-cta:hover i {
    transform: translateX(5px);
}

.btn-glowing-cta i {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

/* Cybernetic Sponsor Space Placeholder Card */
.ad-placeholder-card {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    min-height: 220px;
    border: 2px dashed rgba(52, 199, 89, 0.25);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(8, 10, 15, 0.85), rgba(52, 199, 89, 0.02));
    box-shadow: 0 4px 20px rgba(52, 199, 89, 0.02);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    box-sizing: border-box;
    animation: border-glow-pulse 3s infinite ease-in-out;
}

@keyframes border-glow-pulse {
    0% { border-color: rgba(52, 199, 89, 0.25); box-shadow: 0 0 8px rgba(52, 199, 89, 0.02); }
    50% { border-color: rgba(52, 199, 89, 0.55); box-shadow: 0 0 15px rgba(52, 199, 89, 0.08); }
    100% { border-color: rgba(52, 199, 89, 0.25); box-shadow: 0 0 8px rgba(52, 199, 89, 0.02); }
}

.ad-placeholder-card:hover {
    border-color: var(--neon-emerald);
    box-shadow: 0 0 25px rgba(52, 199, 89, 0.12) !important;
}

/* Dedicated B2C Catalog Properties Grid Layout */
.catalog-properties-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
    margin-top: 10px;
}

@media (max-width: 1600px) {
    .catalog-properties-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1200px) {
    .catalog-properties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .catalog-properties-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   CONSOLA GLOBAL ADMIN - GLOWS & CYBERPUNK PALETTE
   ========================================================================== */

.border-red {
    border: 1px solid rgba(255, 55, 95, 0.25) !important;
    box-shadow: 0 4px 15px rgba(255, 55, 95, 0.05) !important;
    transition: var(--transition-smooth);
}

.border-red:hover {
    border-color: var(--red) !important;
    box-shadow: 0 0 20px rgba(255, 55, 95, 0.22) !important;
}

.header-icon.red {
    background: rgba(255, 55, 95, 0.1) !important;
    color: var(--red) !important;
    border-color: rgba(255, 55, 95, 0.3) !important;
    box-shadow: 0 0 10px rgba(255, 55, 95, 0.15);
}

.card-header.border-red {
    border-bottom: 1px solid rgba(255, 55, 95, 0.15) !important;
}

/* Magenta Custom Cyber-styles for Admin priorities */
.border-magenta {
    border: 1px solid rgba(255, 0, 127, 0.25) !important;
    box-shadow: 0 4px 15px rgba(255, 0, 127, 0.05) !important;
    transition: var(--transition-smooth);
}

.border-magenta:hover {
    border-color: var(--magenta) !important;
    box-shadow: 0 0 20px rgba(255, 0, 127, 0.22) !important;
}

.border-white {
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.03) !important;
    transition: var(--transition-smooth);
}

.border-white:hover {
    border-color: rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.12) !important;
}

.header-icon.magenta {
    background: rgba(255, 0, 127, 0.1) !important;
    color: var(--magenta) !important;
    border-color: rgba(255, 0, 127, 0.3) !important;
    box-shadow: 0 0 10px rgba(255, 0, 127, 0.15);
}

.header-icon.white {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.12) !important;
}

.card-header.border-magenta {
    border-bottom: 1px solid rgba(255, 0, 127, 0.15) !important;
}

.card-header.border-white {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.checkmark.border-white {
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.text-magenta {
    color: var(--magenta) !important;
}

.text-white-neon {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.45) !important;
}

/* Server Real-time Audit Logs */
.news-log {
    display: flex;
    align-items: flex-start;
    padding: 6px 8px;
    margin-bottom: 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.01);
    border-left: 2px solid transparent;
    transition: background 0.2s ease;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    line-height: 1.3;
}

.news-log:hover {
    background: rgba(255, 255, 255, 0.03);
}

.news-log:has(.log-tag.alert) {
    border-left-color: var(--red);
    background: rgba(255, 55, 95, 0.02);
}

.news-log:has(.log-tag.network) {
    border-left-color: var(--neon-emerald);
    background: rgba(52, 199, 89, 0.01);
}

.log-tag.system {
    background: rgba(0, 240, 255, 0.12) !important;
    color: var(--cyan) !important;
    border: 1px solid rgba(0, 240, 255, 0.25);
}

.log-tag.network {
    background: rgba(52, 199, 89, 0.12) !important;
    color: var(--neon-emerald) !important;
    border: 1px solid rgba(52, 199, 89, 0.25);
}

.log-tag.alert {
    background: rgba(255, 55, 95, 0.15) !important;
    color: var(--red) !important;
    border: 1px solid rgba(255, 55, 95, 0.3);
}

.log-timestamp {
    font-weight: bold;
    margin-right: 8px;
    opacity: 0.85;
}

/* Pricing Card and Plan Badges */
.pricing-card {
    transition: var(--transition-smooth);
}

.pricing-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.15) !important;
}

.pricing-card.active-plan:hover {
    box-shadow: 0 4px 15px rgba(52, 199, 89, 0.12);
    border-color: var(--neon-emerald) !important;
}

.plan-badge {
    font-size: 0.7rem;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(52, 199, 89, 0.15);
    color: var(--neon-emerald);
    border: 1px solid rgba(52, 199, 89, 0.3);
}

.active-ribbon {
    position: absolute;
    background: var(--neon-emerald);
    color: #000;
    font-weight: bold;
    border-radius: 3px;
    box-shadow: 0 0 8px var(--neon-emerald-glow);
}

/* Custom Scrollbars for Cyberpunk Terminals */
.ai-opinion-feed::-webkit-scrollbar,
.commercial-table-wrapper::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.ai-opinion-feed::-webkit-scrollbar-track,
.commercial-table-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.15);
}

.ai-opinion-feed::-webkit-scrollbar-thumb,
.commercial-table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
}

.ai-opinion-feed::-webkit-scrollbar-thumb:hover,
.commercial-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   PREMIUM B2B SAAS DASHBOARD EXTRA STYLES
   ========================================================================== */

/* Premium KPI Cards Styling */
.kpi-card-premium {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(10, 14, 20, 0.8) 0%, rgba(0, 240, 255, 0.04) 100%) !important;
    border: 1px solid rgba(0, 240, 255, 0.15) !important;
    border-left: 4px solid var(--cyan) !important;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 0 15px rgba(0, 240, 255, 0.02) !important;
    padding: 16px 20px !important;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.kpi-card-premium:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 240, 255, 0.4) !important;
    box-shadow: 0 12px 40px rgba(0, 240, 255, 0.15), inset 0 0 20px rgba(0, 240, 255, 0.05) !important;
}

.kpi-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.05);
    flex-shrink: 0;
}

.kpi-card-premium:hover .kpi-icon-wrapper {
    background: rgba(0, 240, 255, 0.15);
    border-color: var(--cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
    transform: scale(1.05);
}

.kpi-icon-cyan {
    width: 20px;
    height: 20px;
    color: var(--cyan);
    filter: drop-shadow(0 0 3px rgba(0, 240, 255, 0.5));
}

.kpi-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.kpi-label-text {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.kpi-value-text {
    font-family: var(--font-mono);
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--cyan);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.45);
    line-height: 1.1;
    margin: 2px 0;
}

.kpi-sub-text {
    font-family: var(--font-mono);
    font-size: 0.56rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.kpi-glow-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    transition: width 0.4s ease;
    box-shadow: 0 0 8px var(--cyan);
}

.kpi-card-premium:hover .kpi-glow-bar {
    width: 100%;
}

/* Flex Column Stack to equalize Card Heights */
.commercial-column-flex {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.commercial-column-flex .card {
    min-height: 0 !important; /* Overrides the min-height: 530px from dashboard card */
    margin: 0 !important;
    display: flex;
    flex-direction: column;
}

.commercial-column-flex .card:first-child {
    flex: 1.25;
}

.commercial-column-flex .card:last-child {
    flex: 0.75;
}

.commercial-column-flex .card .commercial-section-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ==========================================================================
   ACORDIONES DE FORMULARIO PREMIUM (VALORACIÓN DETALLADA)
   ========================================================================== */
.valuation-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.accordion-item {
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.accordion-item.active {
    border-color: rgba(0, 240, 255, 0.3);
    background: rgba(0, 0, 0, 0.35);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.05);
}

.accordion-header {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.01);
    user-select: none;
    transition: var(--transition-smooth);
}

.accordion-header:hover {
    background: rgba(0, 240, 255, 0.03);
    color: var(--cyan);
}

.accordion-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.accordion-header-left i {
    width: 16px;
    height: 16px;
    color: var(--cyan);
    filter: drop-shadow(0 0 4px var(--cyan));
}

.accordion-header h3 {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.acc-arrow {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.accordion-item.active .acc-arrow {
    transform: rotate(180deg);
    color: var(--cyan);
}

.accordion-content {
    padding: 0 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), padding 0.4s ease;
    border-top: 0 solid var(--border-light);
}

.accordion-item.active .accordion-content {
    padding: 16px;
    max-height: 1200px; /* High enough to contain all items in a section */
    border-top: 1px solid var(--border-light);
}

.accordion-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 16px;
}

.form-group-full {
    grid-column: span 2;
}

.form-label-bold {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-primary);
    border-left: 2px solid var(--cyan);
    padding-left: 6px;
    margin-bottom: 4px;
    display: block;
}

/* KEYFRAMES ADICIONALES PARA LA INSIGNIA FLOTANTE DE VISTA PREVIA */
@keyframes glow-pulse {
    0% {
        border-color: #bf5af2;
        box-shadow: 0 0 12px rgba(191, 90, 242, 0.4), inset 0 0 8px rgba(191, 90, 242, 0.2);
    }
    50% {
        border-color: #00f0ff;
        box-shadow: 0 0 25px rgba(191, 90, 242, 0.8), 0 0 35px rgba(0, 240, 255, 0.4), inset 0 0 12px rgba(0, 240, 255, 0.3);
    }
    100% {
        border-color: #bf5af2;
        box-shadow: 0 0 12px rgba(191, 90, 242, 0.4), inset 0 0 8px rgba(191, 90, 242, 0.2);
    }
}

@keyframes beacon-pulse-anim {
    0% {
        transform: scale(0.9);
        opacity: 0.6;
        box-shadow: 0 0 0 0 rgba(191, 90, 242, 0.7);
    }
    70% {
        transform: scale(1.1);
        opacity: 1;
        box-shadow: 0 0 0 10px rgba(191, 90, 242, 0);
    }
    100% {
        transform: scale(0.9);
        opacity: 0.6;
        box-shadow: 0 0 0 0 rgba(191, 90, 242, 0);
    }
}

/* ==========================================================================
   FORMULARIO SIMPLIFICADO & COLAPSABLES PREMIUM (DETALLES AVANZADOS)
   ========================================================================== */
.cyber-details {
    background: rgba(10, 12, 17, 0.6);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    margin-top: 15px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
    width: 100%;
}

.cyber-details[open] {
    border-color: var(--cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
}

.details-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--cyan);
    cursor: pointer;
    user-select: none;
    list-style: none; /* Oculta la flecha nativa */
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
    outline: none;
}

.details-summary::-webkit-details-marker {
    display: none; /* Flecha nativa Safari */
}

.details-summary-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.details-summary i.acc-arrow {
    transition: transform var(--transition-smooth);
}

.cyber-details[open] .details-summary i.acc-arrow {
    transform: rotate(180deg);
}

.details-content {
    border-top: 1px dashed var(--border-light);
    padding: 16px;
    animation: slide-down-details 0.3s ease-out;
}

@keyframes slide-down-details {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 20px;
}

/* Ocultamiento y animación de terreno */
.form-group-dynamic {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: scaleY(1);
    transform-origin: top;
    max-height: 150px;
}

.form-group-dynamic.hidden-dynamic {
    opacity: 0 !important;
    transform: scaleY(0) !important;
    max-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    overflow: hidden !important;
    border: none !important;
    pointer-events: none !important;
}

/* ==========================================================================
   ESTILOS PREMIUM PARA PESTAÑAS COMERCIALES (B2B TABS) Y RETIROS
   ========================================================================== */

.comm-tab-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.comm-tab-btn:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
}

.comm-tab-btn.active {
    background: rgba(255, 215, 0, 0.08) !important;
    border-color: rgba(255, 215, 0, 0.45) !important;
    color: #ffd700 !important;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.12) !important;
}

#comm-tab-btn-propiedades.active,
#comm-tab-btn-propiedades-list.active {
    background: rgba(0, 240, 255, 0.05) !important;
    border-color: rgba(0, 240, 255, 0.4) !important;
    color: var(--cyan) !important;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.12) !important;
}

#comm-tab-btn-suscripcion.active {
    background: rgba(191, 90, 242, 0.05) !important;
    border-color: rgba(191, 90, 242, 0.4) !important;
    color: #bf5af2 !important;
    box-shadow: 0 0 12px rgba(191, 90, 242, 0.12) !important;
}

.comm-tab-content {
    animation: fadeInCommercialTab 0.35s ease-out;
}

.comm-tab-content.hidden {
    display: none !important;
}

@keyframes fadeInCommercialTab {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efectos de celdas para la tabla de retiros */
#b2b-withdrawals-table-body tr {
    border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: background 0.2s;
}

#b2b-withdrawals-table-body tr:hover {
    background: rgba(255, 215, 0, 0.02);
}

.status-badge-pending {
    font-size: 0.55rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 159, 10, 0.15) !important;
    color: #ff9f0a !important;
    border: 1px solid rgba(255, 159, 10, 0.3) !important;
    text-transform: uppercase;
}

.status-badge-approved {
    font-size: 0.55rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(52, 199, 89, 0.15) !important;
    color: var(--neon-emerald) !important;
    border: 1px solid rgba(52, 199, 89, 0.3) !important;
    text-transform: uppercase;
}

/* OVERLAYS DE BLOQUEO HOLOGRÁFICO B2B */
.holographic-lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 7, 12, 0.92);
    backdrop-filter: blur(8px);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    animation: lockFadeIn 0.3s ease-out;
}

.lock-card {
    max-width: 450px;
    padding: 30px;
    background: rgba(10, 15, 28, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.lock-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.02) 0%, transparent 60%);
    pointer-events: none;
}

.lock-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
}

.lock-icon.gold {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid #ffd700;
    color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.lock-icon.cyan {
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--cyan);
    color: var(--cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.lock-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: 1.5px;
}

#commercial-gold-overlay-lock .lock-title {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

#commercial-promo-overlay-lock .lock-title {
    color: var(--cyan);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.lock-message {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 22px;
}

@keyframes lockFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(8px);
    }
}

/* ==========================================================================
   SISTEMA DE GALERÍA MULTIMEDIA Y MARCA DE AGUA (SLIDER CAROUSEL & WATERMARKS)
   ========================================================================== */
.card-image-slider-container {
    position: relative;
    overflow: hidden;
    background-color: #000;
}

.card-image-slider-container:hover .slider-btn {
    opacity: 1 !important;
}

.slider-btn {
    transition: opacity 0.25s, background 0.25s, color 0.25s, border-color 0.25s !important;
}

.slider-btn:hover {
    background: var(--cyan) !important;
    color: #000 !important;
    border-color: var(--cyan) !important;
}

.slider-indicators {
    display: flex;
    gap: 4px;
}

.slider-dot {
    transition: background 0.25s, transform 0.25s !important;
}

.slider-dot.active {
    background: var(--cyan) !important;
    transform: scale(1.25);
    box-shadow: 0 0 6px var(--cyan);
}

.card-logo-watermark {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-logo-watermark:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 12px var(--cyan) !important;
}

/* ==========================================================================
   DETALLES DE PROPIEDAD Y MODAL PREMIUM DE FICHA TÉCNICA
   ========================================================================== */
.cyber-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 10, 15, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    transition: opacity 0.3s ease;
}

.cyber-modal.hidden {
    display: none;
    opacity: 0;
    pointer-events: none;
}

.cyber-modal-content {
    width: 92%;
    max-width: 580px;
    max-height: 90vh;
    background: rgba(18, 22, 32, 0.88) !important;
    border: 1px solid rgba(0, 240, 255, 0.28) !important;
    box-shadow: 0 0 35px rgba(0, 240, 255, 0.16) !important;
    border-radius: 12px;
    position: relative;
    overflow-y: auto;
    animation: slideInUpModal 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 240, 255, 0.2) rgba(0,0,0,0.1);
}

.cyber-modal-content::-webkit-scrollbar {
    width: 6px;
}

.cyber-modal-content::-webkit-scrollbar-thumb {
    background: rgba(0, 240, 255, 0.2);
    border-radius: 3px;
}

.cyber-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(8, 10, 15, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 300;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    transition: all 0.25s ease;
}

.cyber-modal-close:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    transform: rotate(90deg);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.35) !important;
    background: linear-gradient(135deg, #2ae771, #159b8c) !important;
}

@keyframes slideInUpModal {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ESTILOS DE PASARELA POR TRANSFERENCIA BANCARIA Y APROBACIÓN ADMIN */
.bank-details-card {
    transition: all 0.3s ease;
}
.bank-details-card:hover {
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.12) !important;
    border-color: rgba(0, 240, 255, 0.5) !important;
}

.receipt-upload-box {
    transition: all 0.3s ease;
}
.receipt-upload-box:hover {
    border-color: var(--cyan) !important;
    background: rgba(0, 240, 255, 0.04) !important;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.08) !important;
}
.receipt-upload-box:hover i {
    color: var(--cyan) !important;
    transform: scale(1.1);
}

/* Lightbox de Comprobantes para el Admin */
.receipt-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2500;
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.receipt-lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.receipt-lightbox-card {
    position: relative;
    width: 90%;
    max-width: 550px;
    background: rgba(10, 15, 25, 0.95);
    border: 1.5px solid rgba(0, 240, 255, 0.35);
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 0 35px rgba(0, 240, 255, 0.25);
    transform: scale(0.9);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.receipt-lightbox-overlay.active .receipt-lightbox-card {
    transform: scale(1);
}

.receipt-lightbox-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-secondary);
    font-size: 1.3rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.receipt-lightbox-close:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    transform: rotate(90deg);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

/* Insignias e Indicador Pendiente */
.status-badge-pending-auth {
    animation: glowWarning 1.5s infinite alternate;
}

@keyframes glowWarning {
    from {
        box-shadow: 0 0 5px rgba(255, 149, 0, 0.2);
    }
    to {
        box-shadow: 0 0 12px rgba(255, 149, 0, 0.4);
    }
}

.pending-banner-content {
    transition: all 0.3s ease;
}
.pending-banner-content:hover {
    box-shadow: 0 0 15px rgba(255, 149, 0, 0.1) !important;
}

.btn-whatsapp-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: bold;
    padding: 6px 12px;
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 8px rgba(37, 211, 102, 0.15);
}

.btn-whatsapp-small:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.35) !important;
    background: linear-gradient(135deg, #2ae771, #159b8c) !important;
}

.spinner-slow {
    animation: spin 3s linear infinite;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ESTILOS DE LA BARRA DE NAVEGACIÓN MÓVIL INFERIOR */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(10, 12, 16, 0.85);
    backdrop-filter: blur(15px);
    border-top: 1.5px solid rgba(0, 240, 255, 0.2);
    box-shadow: 0 -5px 25px rgba(0, 240, 255, 0.1);
    z-index: 2000;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    justify-items: center;
    box-sizing: border-box;
}

.mobile-nav-item {
    background: transparent;
    border: none;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 0.58rem;
    height: 100%;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-nav-item i {
    width: 18px;
    height: 18px;
    transition: all 0.3s ease;
}

.mobile-nav-item.active {
    color: var(--cyan);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.mobile-nav-item.active i {
    filter: drop-shadow(0 0 5px rgba(0, 240, 255, 0.6));
    transform: scale(1.15);
}

/* Responsividad para Smartphones y Tablets */
@media (max-width: 1100px) {
    .mobile-bottom-nav {
        display: grid !important;
    }
    
    /* Agregar margen inferior a las vistas para que el contenido no quede tapado */
    .main-content {
        padding-bottom: 75px !important;
    }

    /* Ajustes responsivos para la vista del radar de calor */
    .heatmap-layout {
        grid-template-columns: 1fr !important;
        height: auto !important;
        gap: 16px !important;
    }
    
    .map-wrapper {
        height: 480px !important; /* Altura fija para interactuar correctamente en móvil/tablet */
    }
    
    .heatmap-sidebar {
        height: auto !important;
        overflow-y: visible !important;
        padding-right: 0 !important;
        gap: 16px !important;
    }
    
    .investor-alerts-card {
        height: auto !important; /* Deja que crezca naturalmente según las señales en móvil */
        min-height: 280px !important;
    }
}

@media (max-width: 480px) {
    .map-wrapper {
        height: 380px !important; /* Altura optimizada para pantallas muy pequeñas */
    }
}
