/* Contenedor principal */
.navegador-provincias-container {
    width: 100%;
    max-width: 1400px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    padding: 0 15px;
}

/* Fila de navegación */
.navegador-fila {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

/* Columnas */
.navegador-columna {
    flex: 1;
    min-width: 280px;
    position: relative;
}

/* Botones principales - Celeste oscuro con letras blancas */
.navegador-boton-principal {
    width: 100%;
    padding: 18px 25px;
    background: linear-gradient(135deg, #0288d1 0%, #01579b 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(2, 136, 209, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    font-family: inherit;
}

.navegador-boton-principal:hover {
    background: linear-gradient(135deg, #0277bd 0%, #014377 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 136, 209, 0.4);
}

.navegador-boton-principal:active {
    transform: translateY(0);
}

.navegador-boton-principal::after {
    content: '▼';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    transition: transform 0.3s ease;
}

.navegador-boton-principal.activo::after {
    transform: translateY(-50%) rotate(180deg);
}

/* Desplegables */
.navegador-desplegable {
    margin-top: 10px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: slideDown 0.3s ease;
    border: 1px solid #e0e0e0;
    max-height: 400px;
    overflow-y: auto;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Lista de items */
.navegador-lista {
    list-style: none;
    margin: 0;
    padding: 0;
}

.navegador-lista li {
    border-bottom: 1px solid #f0f0f0;
}

.navegador-lista li:last-child {
    border-bottom: none;
}

/* Items individuales */
.navegador-item {
    display: block;
    padding: 16px 20px;
    color: #212121;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.navegador-item:hover {
    background: #f5f5f5;
    color: #01579b;
    padding-left: 25px;
}

.navegador-item::before {
    content: '›';
    position: absolute;
    left: 10px;
    opacity: 0;
    transition: all 0.2s ease;
    color: #0288d1;
}

.navegador-item:hover::before {
    opacity: 1;
    left: 15px;
}

.navegador-item.seleccionado {
    background: #e3f2fd;
    color: #01579b;
    font-weight: 600;
    border-left: 4px solid #0288d1;
}

/* ===== SECCIÓN DE TIPOS DE VENDEDOR ===== */
.navegador-tipos-container {
    margin-top: 40px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navegador-seccion-titulo {
    text-align: center;
    color: #01579b;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    padding-bottom: 15px;
    position: relative;
}

.navegador-seccion-titulo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #0288d1, #01579b);
    border-radius: 2px;
}

.navegador-tipos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

/* Caja de cada tipo */
.navegador-tipo-box {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.navegador-tipo-box:hover {
    border-color: #0288d1;
    box-shadow: 0 8px 30px rgba(2, 136, 209, 0.15);
}

/* Botón de tipo (Concesionaria / Particulares) */
.navegador-boton-tipo {
    width: 100%;
    padding: 30px 20px;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
    font-family: inherit;
}

.navegador-boton-tipo:hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.navegador-boton-tipo.activo {
    background: linear-gradient(135deg, #0288d1 0%, #01579b 100%);
}

.navegador-boton-tipo.activo .navegador-tipo-texto {
    color: #ffffff;
}

.navegador-boton-tipo.activo .navegador-tipo-icono {
    filter: brightness(0) invert(1);
}

.navegador-tipo-icono {
    font-size: 48px;
    line-height: 1;
}

.navegador-tipo-texto {
    font-size: 20px;
    font-weight: 700;
    color: #01579b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.navegador-tipo-flecha {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #0288d1;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.navegador-boton-tipo.activo .navegador-tipo-flecha {
    color: #ffffff;
    transform: translateY(-50%) rotate(180deg);
}

/* ===== SUBCATEGORÍAS DE CONCESIONARIA ===== */
.navegador-subcategorias-desplegable {
    background: #f8f9fa;
    border-top: 2px solid #e0e0e0;
    padding: 20px;
    animation: slideDown 0.3s ease;
    order: 2;
}

.navegador-subcategorias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.navegador-boton-subcategoria {
    padding: 15px 20px;
    background: #ffffff;
    border: 2px solid #0288d1;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #01579b;
    transition: all 0.3s ease;
    text-align: center;
    font-family: inherit;
}

.navegador-boton-subcategoria:hover {
    background: #0288d1;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 136, 209, 0.3);
}

.navegador-boton-subcategoria.seleccionado {
    background: linear-gradient(135deg, #0288d1 0%, #01579b 100%);
    color: #ffffff;
    border-color: #01579b;
    box-shadow: 0 4px 12px rgba(2, 136, 209, 0.3);
}

/* Desplegable de productos */
.navegador-productos-desplegable {
    background: #ffffff;
    border-top: 2px solid #e0e0e0;
    padding: 20px;
    animation: slideDown 0.3s ease;
    order: 3;
}

/* Grid de productos */
.navegador-productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

/* Card de producto individual */
.navegador-producto-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    border: 1px solid #e0e0e0;
}

.navegador-producto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(2, 136, 209, 0.15);
    border-color: #0288d1;
}

.navegador-producto-imagen {
    width: 100%;
    height: 160px;
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
}

.navegador-producto-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.navegador-producto-card:hover .navegador-producto-imagen img {
    transform: scale(1.05);
}

.navegador-producto-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.navegador-producto-titulo {
    color: #212121;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    transition: color 0.3s ease;
}

.navegador-producto-card:hover .navegador-producto-titulo {
    color: #01579b;
}

.navegador-producto-precio {
    margin-top: 8px;
    font-size: 15px;
    color: #0288d1;
    font-weight: 700;
}

.navegador-producto-precio del {
    color: #999;
    font-size: 13px;
    margin-right: 6px;
}

.navegador-producto-precio ins {
    text-decoration: none;
}

/* Mensaje sin productos */
.navegador-sin-productos {
    text-align: center;
    padding: 40px 20px;
    color: #757575;
    grid-column: 1 / -1;
}

.navegador-sin-productos-icono {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.3;
}

.navegador-sin-productos-texto {
    font-size: 16px;
    font-weight: 500;
}

/* Mensajes de error/vacío */
.navegador-error,
.navegador-vacio {
    padding: 20px;
    text-align: center;
    color: #757575;
    font-size: 14px;
}

.navegador-error {
    color: #d32f2f;
}

/* Loading state */
.navegador-cargando {
    padding: 40px;
    text-align: center;
    color: #0288d1;
    font-size: 16px;
    grid-column: 1 / -1;
}

.navegador-cargando::after {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid #e3f2fd;
    border-top: 3px solid #0288d1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .navegador-fila {
        flex-direction: column;
        gap: 15px;
    }
    
    .navegador-columna {
        width: 100%;
        min-width: auto;
    }
    
    .navegador-tipos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .navegador-seccion-titulo {
        font-size: 20px;
    }
    
    .navegador-boton-tipo {
        padding: 20px 15px;
    }
    
    .navegador-tipo-icono {
        font-size: 36px;
    }
    
    .navegador-tipo-texto {
        font-size: 18px;
    }
    
    .navegador-productos-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .navegador-subcategorias-grid {
        grid-template-columns: 1fr;
    }
    
    .navegador-boton-subcategoria {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .navegador-provincias-container {
        padding: 0 10px;
    }
    
    .navegador-boton-principal {
        padding: 16px 20px;
        font-size: 14px;
    }
    
    .navegador-productos-grid {
        grid-template-columns: 1fr;
    }
    
    .navegador-producto-imagen {
        height: 200px;
    }
    
    .navegador-subcategorias-desplegable,
    .navegador-productos-desplegable {
        padding: 15px;
    }
}