:root {
    --primary: #d63384; 
    --bg-dark: #0f0f0f;
    --card-dark: #1a1a1a;
    --text-light: #e0e0e0;
    --accent: #00ff88;
    --whatsapp: #25D366;
    
    /* Colores de Acceso */
    --access-private: #9c27b0;
    --access-shared: #ff9800;
    --access-walk: #00bcd4;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    padding-bottom: 120px;
    overscroll-behavior-y: none;
}

/* Header */
.app-header {
    background: rgba(15, 15, 15, 0.98);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #333;
}

.brand-logo { 
    font-size: 1.4rem; 
    font-weight: 800; 
    color: #fff; 
    letter-spacing: -0.5px; 
}

.brand-logo span { 
    color: var(--primary); 
}

/* Filtros superiores */
.filter-bar {
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar { 
    display: none; 
}

.btn-filter {
    background: #252525;
    color: #aaa;
    border: 1px solid #333;
    border-radius: 20px;
    padding: 6px 15px;
    margin-right: 8px;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.btn-filter.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    font-weight: 600;
}

/* Tarjetas de telos */
.telo-card {
    background-color: var(--card-dark);
    border: 1px solid #333;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.card-header-img { 
    position: relative; 
    height: 160px; 
    background-color: #222; 
}

.card-img-top { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    opacity: 0.85; 
}

.distance-badge {
    position: absolute; 
    bottom: 10px; 
    left: 10px;
    background: rgba(0, 0, 0, 0.8); 
    color: var(--accent);
    padding: 4px 10px; 
    border-radius: 15px;
    font-weight: 700; 
    font-size: 0.75rem;
    backdrop-filter: blur(4px);
}

/* Icono de acceso */
.access-badge {
    position: absolute; 
    top: 10px; 
    right: 10px;
    width: 32px; 
    height: 32px;
    border-radius: 50%;
    display: flex; 
    align-items: center; 
    justify-content: center;
    color: white; 
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

.bg-privada { 
    background-color: var(--access-private); 
}

.bg-compartida { 
    background-color: var(--access-shared); 
}

.bg-peatonal { 
    background-color: var(--access-walk); 
}

.card-body { 
    padding: 15px; 
}

.telo-info h5 { 
    margin: 0; 
    font-weight: 700; 
    font-size: 1.1rem; 
    color: white; 
}

.telo-info p { 
    color: #999; 
    font-size: 0.85rem; 
    margin: 2px 0 12px 0; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}

/* KPIs */
.kpi-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 8px; 
    margin-bottom: 12px; 
}

.kpi-box { 
    background: #252525; 
    padding: 8px 10px; 
    border-radius: 10px; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
}

.kpi-label { 
    font-size: 0.6rem; 
    text-transform: uppercase; 
    color: #777; 
    letter-spacing: 0.5px; 
}

.kpi-value { 
    font-size: 0.95rem; 
    font-weight: 700; 
    color: #fff; 
}

.kpi-value.price { 
    color: var(--accent); 
}

.kpi-value.stars { 
    color: #ffc107; 
    font-size: 0.85rem; 
}

/* Botones */
.btn-reservar {
    width: 100%; 
    background: var(--primary); 
    color: white;
    border: none; 
    padding: 10px; 
    border-radius: 10px;
    font-weight: 600; 
    font-size: 0.9rem;
}

.btn-whatsapp {
    width: 100%; 
    background: transparent; 
    color: var(--whatsapp);
    border: 1px solid var(--whatsapp); 
    padding: 9px; 
    border-radius: 10px;
    font-weight: 600; 
    font-size: 0.9rem;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 6px;
}

/* Panel inferior */
.bottom-filter {
    position: fixed; 
    bottom: 20px; 
    left: 50%; 
    transform: translateX(-50%);
    background: rgba(30,30,30, 0.95); 
    backdrop-filter: blur(10px);
    padding: 12px 20px; 
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6); 
    z-index: 1050;
    display: flex; 
    align-items: center; 
    gap: 15px; 
    border: 1px solid #444;
    width: 90%; 
    max-width: 400px;
}

.range-wrapper { 
    flex-grow: 1; 
}

input[type=range] { 
    width: 100%; 
    accent-color: var(--primary); 
}

/* Estados */
.empty-state { 
    text-align: center; 
    padding: 60px 20px; 
}

.empty-state i { 
    font-size: 3rem; 
    color: #666; 
    margin-bottom: 15px; 
}

/* Skeleton loading */
.skeleton-loading {
    height: 250px;
    background: #222;
    border-radius: 16px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.8; }
}

/* Responsive */
@media (max-width: 576px) {
    .app-header {
        padding: 10px 0;
    }
    
    .brand-logo {
        font-size: 1.2rem;
    }
    
    .bottom-filter {
        padding: 10px 15px;
        width: 95%;
    }
    
    .telo-card {
        margin-bottom: 12px;
    }
    
    .card-header-img {
        height: 140px;
    }
}
/* Estilos para los nuevos modales */
.modal-content {
    border-radius: 16px;
    border-width: 2px;
}

#bienvenidaModal .modal-content {
    border-color: var(--primary);
}

#gpsDenegadoModal .modal-content {
    border-color: #ffc107;
}

.modal-body {
    padding: 2rem !important;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 1.1rem;
    border-radius: 12px;
}

/* Instrucciones dentro de modales */
.alert-dark {
    background-color: rgba(30, 30, 30, 0.8);
    border-left: 4px solid;
}

.border-warning {
    border-color: #ffc107 !important;
}

.border-primary {
    border-color: var(--primary) !important;
}

/* Listas en modales */
ol, ul {
    padding-left: 1.2rem;
}

li {
    margin-bottom: 8px;
}

li:last-child {
    margin-bottom: 0;
}