/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0066cc;
    --secondary-color: #004080;
    --accent-color: #00a8e8;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --border-color: #ddd;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 5px 25px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    /* Imagen optimizada: reducida calidad a 60, ancho 1200px, formato webp */
    background-image: url('https://images.unsplash.com/photo-1539037116277-4db20889f2d4?q=60&w=1200&auto=format&fit=crop&fm=webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.85) 0%, rgba(118, 75, 162, 0.85) 100%);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

main {
    padding: 2rem 1rem;
}

/* Secciones */
section {
    margin-bottom: 4rem;
}

section h2 {
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-color);
}

.section-intro {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

/* SEO Intro */
.seo-section {
    background: #f8fbff;
    padding: 3rem 1rem;
    border-bottom: 1px solid var(--medium-gray);
}

.seo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.seo-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.seo-card h3 {
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
}

.seo-card p {
    color: #555;
}

.seo-keywords {
    background: white;
    border: 1px dashed var(--primary-color);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow);
}

.seo-keywords h4 {
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
}

.seo-keywords ul {
    list-style: disc;
    padding-left: 1.2rem;
    color: #555;
    margin-bottom: 1rem;
}

.cta-inline {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
}

.cta-inline:hover {
    text-decoration: underline;
}

/* Quick help */
.quick-help {
    background: #fff7f0;
    border-bottom: 1px solid var(--medium-gray);
    padding: 2.5rem 1rem;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.quick-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: var(--shadow);
}

.quick-card h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.quick-card p {
    color: #555;
    margin-bottom: 0.5rem;
}

/* Guía rápida */
.guide-hero {
    background: linear-gradient(135deg, #004080, #0066cc);
    color: white;
    padding: 3rem 1rem 2.5rem;
}

.guide-hero h1 {
    font-size: 2.6rem;
    margin: 0.5rem 0 1rem;
}

.hero-lead {
    font-size: 1.2rem;
    max-width: 900px;
    color: #e8f1ff;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.breadcrumb {
    font-size: 0.95rem;
    color: #d4e6ff;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.guide-content {
    padding: 3rem 1rem;
}

.guide-section {
    margin-bottom: 3rem;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 1.25rem;
}

.guide-flex {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.guide-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.guide-card h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stat-chip {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    background: #eef5ff;
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 0.9rem;
}

.checklist {
    list-style: none;
    padding-left: 0;
    color: #555;
}

.checklist li {
    margin-bottom: 0.6rem;
    padding-left: 1.2rem;
    position: relative;
}

.checklist li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.callout {
    background: #f8fbff;
    border: 1px solid var(--medium-gray);
    border-radius: 12px;
    padding: 1.75rem 1.5rem;
    box-shadow: var(--shadow);
}

.steps {
    margin: 1rem 0 1.5rem;
    padding-left: 1.2rem;
    color: #444;
}

/* Cómo Funciona */
.como-funciona {
    background: linear-gradient(to bottom, var(--light-gray) 0%, white 100%);
    padding: 4rem 1rem;
    margin-bottom: 0;
}

.funciona-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.funciona-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

.funciona-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.funciona-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.funciona-card h3 {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.funciona-card p {
    margin-bottom: 1rem;
    color: #666;
}

.funciona-card ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    text-align: left;
}

.funciona-card ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #555;
}

.funciona-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.link-mas-info {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.link-mas-info:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

/* Barrios */
.barrios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.barrio-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    font-size: 14px;
}

.barrio-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.barrio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.barrio-header h3 {
    font-size: 1.15rem;
    color: var(--secondary-color);
    margin: 0;
}

.badge {
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.7rem;
}

.dificultad-alta {
    background-color: #ffebee;
    color: var(--danger-color);
}

.dificultad-media {
    background-color: #fff8e1;
    color: #f57c00;
}

.dificultad-baja {
    background-color: #e8f5e9;
    color: var(--success-color);
}

.barrio-descripcion {
    font-size: 14px;
    line-height: 1.4;
    color: #555;
    margin-bottom: 0.75rem;
    padding: 0.6rem;
    background: var(--light-gray);
    border-left: 3px solid var(--accent-color);
    border-radius: 4px;
}

.opciones-aparcamiento {
    margin-top: 0.75rem;
}

.opcion {
    background: #fafafa;
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 0.6rem;
}

.opcion h4 {
    display: inline-block;
    font-size: 14px;
    color: var(--primary-color);
    margin-bottom: 0;
    margin-right: 0.3rem;
    font-weight: bold;
}

.precio-opcion {
    display: inline;
    font-size: 14px;
    color: var(--secondary-color);
    margin: 0;
    margin-left: 0.5rem;
}

.disponibilidad {
    color: #777;
    font-style: italic;
    font-size: 14px;
    margin-bottom: 0.3rem;
    display: block;
    margin-top: 0.2rem;
}

.parking-list {
    list-style: none;
    padding: 0;
    margin-top: 0.5rem;
}

.parking-list li {
    padding: 0.4rem 0;
    padding-left: 1.3rem;
    position: relative;
    border-bottom: 1px solid var(--medium-gray);
    font-size: 14px;
    line-height: 1.4;
}

.parking-list li:last-child {
    border-bottom: none;
}

.parking-list li::before {
    content: "🅿️";
    position: absolute;
    left: 0;
}

.parking-list a {
    color: var(--primary-color);
    text-decoration: none;
    margin-left: 0.4rem;
    font-size: 13px;
}

.parking-list a:hover {
    text-decoration: underline;
}

.recomendacion {
    background: #fffbf0;
    border-left: 3px solid var(--warning-color);
    padding: 0.6rem;
    margin-top: 0.6rem;
    border-radius: 4px;
    font-style: italic;
    font-size: 14px;
    line-height: 1.4;
}

/* Buscador de Parkings */
.buscador-parkings {
    background: var(--light-gray);
    padding: 3rem 2rem;
    border-radius: 20px;
}

.buscador-controles {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.filtros {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.filtros label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    cursor: pointer;
}

.filtros input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.busqueda {
    display: flex;
    gap: 0.5rem;
}

#search-parking {
    padding: 0.7rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 1rem;
    min-width: 250px;
    outline: none;
    transition: all 0.3s ease;
}

#search-parking:focus {
    border-color: var(--primary-color);
}

#btn-buscar {
    padding: 0.7rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#btn-buscar:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.mapa-interactivo {
    width: 100%;
    height: 650px;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
    position: relative;
}

/* Placeholder mientras carga el mapa */
.map-loading-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border-radius: 15px;
    color: #666;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

.map-loading-placeholder p {
    font-size: 1.1rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.map-loading-placeholder small {
    color: #888;
}

/* Parkings Destacados */
.parkings-destacados h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.parkings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.parking-destacado {
    background: white;
    border-radius: 10px;
    padding: 0.8rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-left: 5px solid var(--accent-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.parking-destacado:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.parking-info h4 {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.ubicacion {
    color: #666;
    font-style: italic;
    margin: 0.3rem 0;
}

.capacidad {
    color: #555;
    margin: 0.3rem 0;
}

.tarifa {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin: 0.5rem 0 1rem 0;
}

.parking-acciones {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.btn-como-llegar,
.btn-reservar {
    flex: 1;
    padding: 0.6rem 1rem;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-como-llegar {
    background: var(--primary-color);
    color: white;
}

.btn-como-llegar:hover {
    background: var(--secondary-color);
}

.btn-reservar {
    background: var(--success-color);
    color: white;
}

.btn-reservar:hover {
    background: #218838;
}

/* Información Adicional */
.info-adicional h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border-top: 5px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.info-card h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.info-card ul,
.info-card ol {
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.info-card li {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.btn-info {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.6rem 1.2rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-info:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 2rem 1rem;
    text-align: center;
    margin-top: 4rem;
}

footer p {
    margin: 0.5rem 0;
}

.disclaimer {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .barrios-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .hero {
        /* Imagen mediana para tablets (900px width, calidad 55) */
        background-image: url('https://images.unsplash.com/photo-1539037116277-4db20889f2d4?q=55&w=900&auto=format&fit=crop&fm=webp');
    }
    
    .barrios-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        height: 400px;
        background-attachment: scroll;
        /* Imagen más pequeña para móviles (600px width, calidad 50) */
        background-image: url('https://images.unsplash.com/photo-1539037116277-4db20889f2d4?q=50&w=600&auto=format&fit=crop&fm=webp');
    }
    
    /* Optimizar video en móviles */
    .hero-video {
        display: none; /* Ocultar video en móviles para mejorar rendimiento */
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    section h2 {
        font-size: 1.8rem;
    }

    .funciona-grid {
        grid-template-columns: 1fr;
    }

    .barrios-grid {
        grid-template-columns: 1fr;
    }

    .buscador-controles {
        flex-direction: column;
        align-items: stretch;
    }

    .busqueda {
        flex-direction: column;
    }

    #search-parking {
        min-width: 100%;
    }

    .mapa-interactivo {
        height: 500px;
    }

    .parkings-grid {
        grid-template-columns: 1fr;
    }

    .parking-acciones {
        flex-direction: column;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 350px;
        padding: 1rem;
        background-attachment: scroll;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    main {
        padding: 1rem;
    }

    .barrio-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .barrios-grid {
        gap: 1rem;
    }

    .filtros {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* Leaflet popup custom styles */
.leaflet-popup-content-wrapper {
    border-radius: 8px !important;
    padding: 8px !important;
}

.leaflet-popup-content {
    margin: 5px !important;
    font-size: 0.9rem !important;
    font-family: inherit;
}

.popup-parking h4 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.popup-parking p {
    margin: 0.3rem 0;
    color: #555;
}

.popup-parking .popup-actions {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.5rem;
}

.popup-parking .popup-btn {
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

.popup-parking .btn-directions {
    background: var(--primary-color);
    color: white;
}

.popup-parking .btn-reserve {
    background: var(--success-color);
    color: white;
}

/* Filtro Zonas SER */
.filter-ser {
    background: linear-gradient(135deg, #007bff 0%, #28a745 100%);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: white !important;
}

.filter-ser input[type="checkbox"] {
    accent-color: white;
}

.filter-ser span {
    color: white !important;
    font-weight: 600;
}

/* Popup SER en mapa */
.popup-ser {
    min-width: 250px;
}

.popup-ser h4 {
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.popup-ser p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.popup-ser .zona-tarifa {
    background: #f8f9fa;
    padding: 0.5rem;
    border-radius: 5px;
    margin-top: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
}

.popup-ser .zona-horario {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

/* Popup parking en mapa */
.popup-parking {
    min-width: 250px;
}

.popup-parking h4 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
    line-height: 1.2;
}

.popup-parking p {
    margin: 0.25rem 0 !important;
    font-size: 0.85rem !important;
    line-height: 1.3 !important;
}

/* Estilos para popup de recomendaciones */
.popup-recomendaciones .leaflet-popup-content {
    margin: 0;
}

.popup-recomendaciones .leaflet-popup-content-wrapper {
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Marcador de ubicación personalizado */
.custom-marker-ubicacion {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.popup-actions {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.7rem;
}

.popup-btn {
    flex: 1;
    padding: 0.4rem 0.3rem;
    text-align: center;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-directions {
    background: var(--primary-color);
    color: white;
}

.btn-directions:hover {
    background: var(--secondary-color);
}

.btn-reserve {
    background: var(--success-color);
    color: white;
}

.btn-reserve:hover {
    background: #1e7e34;
}

/* Icono parquímetro en mapa */
.parquimetro-marker-wrapper {
    /* sin estilos extra para no interferir con Leaflet */
}

.marker-parquimetro {
    width: 18px;
    height: 28px;
    border-radius: 4px 4px 6px 6px;
    background: #ffffff;
    border: 2px solid #555;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
}

.marker-parquimetro-top {
    width: 60%;
    height: 4px;
    margin-top: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #0066cc, #00a8e8);
}

.marker-parquimetro-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-parquimetro-p {
    font-size: 11px;
    font-weight: 700;
    color: #0066cc;
}

/* Popup calles SER individuales */
.popup-ser-calle {
    min-width: 220px;
}

.popup-ser-calle h4 {
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    font-size: 1rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.popup-ser-calle p {
    margin: 0.4rem 0;
    font-size: 0.9rem;
}

.popup-ser-calle .zona-tarifa {
    background: #f8f9fa;
    padding: 0.4rem;
    border-radius: 5px;
    margin-top: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.85rem;
}

.popup-ser-calle .zona-horario {
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
    margin-top: 0.3rem;
}

/* Sección Intro SEO */
.intro-seo {
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
    padding: 3rem 1rem;
    border-bottom: 3px solid var(--primary-color);
}

.intro-seo h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.intro-content {
    max-width: 1000px;
    margin: 0 auto;
}

.intro-content > p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.intro-content strong {
    color: var(--primary-color);
    font-weight: 600;
}

.opciones-principales {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.opcion-principal {
    background: white;
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.opcion-principal:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.opcion-principal h3 {
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.opcion-principal p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
}

.dato-importante {
    background: linear-gradient(135deg, #fff4e6 0%, #ffe8cc 100%);
    border: 2px solid var(--warning-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
    box-shadow: 0 3px 15px rgba(255, 193, 7, 0.2);
}

.dato-importante h3 {
    color: #d68600;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.dato-importante p {
    color: #6b4400;
    font-size: 1rem;
    line-height: 1.7;
}

/* Responsive Design para nuevas secciones */
@media (max-width: 768px) {
    .intro-seo h2 {
        font-size: 2rem;
    }
    
    .intro-content > p {
        font-size: 1rem;
        text-align: left;
    }
    
    .opciones-principales {
        grid-template-columns: 1fr;
    }
    
    .opcion-principal {
        padding: 1.25rem;
    }
}

/* ============================================
   ESTILOS PARA PÁGINAS DE DETALLE
   ============================================ */

/* Navbar */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 1rem 0;
    box-shadow: var(--shadow);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 0.8;
    text-decoration: underline;
}

/* Breadcrumb */
.breadcrumb {
    padding: 1rem 0;
    color: #666;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Detail Page */
.detail-page {
    padding: 2rem 1rem 4rem;
    max-width: 900px;
}

.detail-page h1 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    border-bottom: 4px solid var(--primary-color);
    padding-bottom: 0.75rem;
}

.intro-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-left: 5px solid var(--primary-color);
    padding: 1.5rem;
    margin-bottom: 2.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.intro-box p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.content-section {
    margin-bottom: 3rem;
}

.content-section h2 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 1.25rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

/* Price Highlight */
.price-highlight {
    background: white;
    border: 3px solid var(--primary-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.price-main {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.price-details p {
    font-size: 1.1rem;
    margin: 0.5rem 0;
    color: #555;
}

/* Price Grid */
.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.price-card {
    background: white;
    border: 2px solid var(--success-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.price-card.alert {
    border-color: var(--danger-color);
}

.price-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Horarios Grid */
.horarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.horario-card {
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.horario-card.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-color: var(--success-color);
}

.horario-time {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1rem 0;
}

.horario-desc {
    color: #666;
    font-size: 0.95rem;
}

/* Métodos de Pago */
.metodos-pago {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.metodo-card {
    background: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.metodo-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.metodo-card ul {
    list-style: none;
    padding-left: 0;
}

.metodo-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.metodo-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: 700;
}

/* Distritos */
.distritos-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.distrito-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: var(--shadow);
}

.distrito-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.distrito-item p {
    color: #666;
    font-size: 0.9rem;
}

.distritos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.distrito-verde {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid var(--success-color);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    color: #155724;
}

/* Multas Info */
.multas-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.multa-item {
    background: #fff3cd;
    border: 2px solid var(--warning-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.multa-item h4 {
    color: #856404;
    margin-bottom: 1rem;
}

.multa-precio {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--danger-color);
    margin: 1rem 0;
}

/* Consejos Box */
.consejos-box {
    background: #e7f3ff;
    border-left: 5px solid var(--primary-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.consejos-box ul {
    list-style: none;
    padding-left: 0;
}

.consejos-box li {
    padding: 0.75rem 0;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Ventajas */
.ventajas-box {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-left: 5px solid var(--success-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.ventajas-box ul {
    list-style: none;
    padding-left: 0;
}

.ventajas-box li {
    padding: 0.75rem 0;
    font-size: 1.05rem;
    line-height: 1.6;
}

.ventajas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.ventaja-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.ventaja-card:hover {
    transform: translateY(-5px);
}

.ventaja-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Requisitos */
.requisitos-list {
    margin: 1.5rem 0;
}

.requisito-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.requisito-item .check {
    font-size: 1.5rem;
    color: var(--success-color);
    font-weight: 700;
}

.requisito-item h4 {
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}

/* Método Solicitud */
.metodo-solicitud {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: var(--shadow);
}

.metodo-solicitud h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.pasos-list {
    padding-left: 1.5rem;
}

.pasos-list li {
    padding: 0.5rem 0;
    font-size: 1.05rem;
    line-height: 1.7;
}

.pasos-list ul {
    margin-top: 0.5rem;
    margin-left: 1rem;
}

/* Coste Tarjeta */
.coste-tarjeta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.coste-item {
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.precio-grande {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--success-color);
    margin: 1rem 0;
}

.nota-pequena {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

/* Pago Residente */
.pago-residente {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.pago-residente h3 {
    color: var(--primary-color);
    margin: 1.5rem 0 1rem;
}

.pago-residente ul {
    list-style: none;
    padding-left: 0;
}

.pago-residente li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.pago-residente li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
}

/* FAQ */
.faq {
    margin: 1.5rem 0;
}

.faq-item {
    background: white;
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.faq-item h4 {
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.faq-item p {
    color: #555;
    line-height: 1.7;
}

/* Parking Disuasorio */
.parking-disuasorio {
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
}

.parking-disuasorio h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.parking-info {
    margin: 1rem 0;
}

.info-row {
    display: flex;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--medium-gray);
}

.info-row:last-child {
    border-bottom: none;
}

.info-row strong {
    min-width: 150px;
    color: var(--secondary-color);
}

.precio-destaque {
    color: var(--success-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.btn-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s;
}

.btn-link:hover {
    background: var(--secondary-color);
}

/* Decision Matrix */
.decision-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.matriz-item {
    background: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    padding: 1rem;
}

.matriz-item h4 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.matriz-item p {
    color: #555;
    font-size: 1.05rem;
}

/* Abonos Grid */
.abonos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.abono-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.abono-card.destacado {
    border-color: var(--success-color);
    background: linear-gradient(135deg, #d4edda 0%, #ffffff 100%);
}

.abono-card h4 {
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
}

.precio-abono {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 1rem 0;
}

/* CTA Footer */
.cta-footer {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--medium-gray);
}

.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.link-externo {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.link-externo:hover {
    text-decoration: underline;
}

.nota {
    background: #fff3cd;
    border-left: 4px solid var(--warning-color);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 4rem;
}

/* Responsive para páginas de detalle */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }
    
    .detail-page h1 {
        font-size: 1.8rem;
    }
    
    .price-main {
        font-size: 2.5rem;
    }
    
    .cta-footer {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}

/* Madrid Central Página Específica */
.explicacion-mc ul.lista-destacada {
    list-style: none;
    padding: 0;
}

.explicacion-mc ul.lista-destacada li {
    padding: 0.75rem 0;
    font-size: 1.05rem;
}

.dato-clave {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1.5rem;
}

.dato-clave h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.dato-clave ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dato-clave ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.dato-clave ul li:last-child {
    border-bottom: none;
}

.zona-mapa {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
}

.distritos-afectados {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.distrito-mc {
    background: white;
    padding: 1.25rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-left: 4px solid #3498db;
}

.distrito-mc h4 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.distrito-mc ul {
    margin: 0;
    padding-left: 1.25rem;
    list-style: none;
}

.distrito-mc ul li {
    padding: 0.35rem 0;
    position: relative;
    padding-left: 1rem;
}

.distrito-mc ul li:before {
    content: "📍";
    position: absolute;
    left: -0.5rem;
}

.nota-mapa {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    margin-top: 1.5rem;
    border-radius: 6px;
    font-size: 0.95rem;
}

.nota-mapa a {
    color: #0066cc;
    font-weight: 600;
}

/* Mapa Interactivo Madrid Central */
.mapa-interactivo-container {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

#mapa-madrid-central {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.leyenda-mapa {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.leyenda-mapa h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    color: #333;
}

.leyenda-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.leyenda-color {
    display: inline-block;
    width: 30px;
    height: 20px;
    border-radius: 3px;
    flex-shrink: 0;
}

.nota-mapa-interactivo {
    background: #e7f3ff;
    border-left: 4px solid #007bff;
    padding: 0.75rem;
    margin-top: 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Etiquetas Ambientales */
.etiquetas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.etiqueta-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-top: 4px solid #ccc;
    transition: transform 0.3s;
}

.etiqueta-card:hover {
    transform: translateY(-5px);
}

.etiqueta-card.cero-emisiones {
    border-top-color: #00bcd4;
    background: linear-gradient(to bottom, rgba(0, 188, 212, 0.05), white);
}

.etiqueta-card.eco {
    border-top-color: #4caf50;
    background: linear-gradient(to bottom, rgba(76, 175, 80, 0.05), white);
}

.etiqueta-card.c {
    border-top-color: #8bc34a;
    background: linear-gradient(to bottom, rgba(139, 195, 74, 0.05), white);
}

.etiqueta-card.b {
    border-top-color: #ff9800;
    background: linear-gradient(to bottom, rgba(255, 152, 0, 0.05), white);
}

.etiqueta-card.sin-etiqueta {
    border-top-color: #f44336;
    background: linear-gradient(to bottom, rgba(244, 67, 54, 0.05), white);
}

.etiqueta-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: #00bcd4;
    color: white;
    font-weight: bold;
    border-radius: 25px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.eco-badge {
    background: #4caf50;
}

.c-badge {
    background: #8bc34a;
}

.b-badge {
    background: #ff9800;
}

.sin-badge {
    background: #f44336;
}

.etiqueta-card h4 {
    margin: 0.75rem 0;
    color: #2c3e50;
}

.etiqueta-card > p:first-of-type {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.etiqueta-card ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.etiqueta-card ul li {
    padding: 0.4rem 0;
    font-size: 0.95rem;
}

.etiqueta-card p.ejemplo {
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.como-saber-etiqueta {
    background: #e8f5e9;
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
    border-left: 4px solid #4caf50;
}

.como-saber-etiqueta h3 {
    margin-top: 0;
    color: #2c3e50;
}

.como-saber-etiqueta ol {
    margin-left: 1.25rem;
}

.como-saber-etiqueta ol li {
    padding: 0.5rem 0;
}

/* Acceso Permitido/Prohibido */
.acceso-comparativa {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.acceso-permitido,
.acceso-prohibido {
    padding: 1.5rem;
    border-radius: 12px;
}

.acceso-permitido {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
}

.acceso-prohibido {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 2px solid #dc3545;
}

.acceso-permitido h3,
.acceso-prohibido h3 {
    margin-top: 0;
    font-size: 1.4rem;
}

.acceso-permitido ul,
.acceso-prohibido ul {
    list-style: none;
    padding: 0;
}

.acceso-permitido ul li,
.acceso-prohibido ul li {
    padding: 0.6rem 0;
    font-size: 1rem;
}

/* Autorizaciones */
.autorizaciones-tipos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.autorizacion-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s;
}

.autorizacion-card:hover {
    border-color: #3498db;
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.2);
}

.autorizacion-card h4 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 1.2rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #3498db;
}

.requisitos,
.proceso {
    margin-top: 1.25rem;
}

.requisitos strong,
.proceso strong {
    color: #3498db;
    display: block;
    margin-bottom: 0.5rem;
}

.requisitos ul,
.proceso ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.requisitos ul li,
.proceso ol li {
    padding: 0.35rem 0;
    font-size: 0.95rem;
}

.proceso p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.nota {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1rem 1.25rem;
    margin-top: 1.5rem;
    border-radius: 6px;
}

/* Multas */
.multas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.multa-tipo {
    background: white;
    border: 2px solid #f44336;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
}

.multa-tipo h4 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.multa-importe {
    font-size: 2.5rem;
    font-weight: bold;
    color: #f44336;
    margin: 0.5rem 0;
}

.multa-tipo p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.multa-tipo .reduccion {
    background: #d4edda;
    padding: 0.5rem;
    border-radius: 6px;
    margin-top: 0.75rem;
    color: #155724;
    font-weight: 600;
}

.multa-tipo .info-adicional {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

.como-pagar-multa {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.como-pagar-multa h3 {
    margin-top: 0;
    color: #2c3e50;
}

.opciones-multa {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.opcion-multa {
    background: white;
    padding: 1.25rem;
    border-radius: 10px;
    border-left: 4px solid #3498db;
}

.opcion-multa h4 {
    margin-top: 0;
    color: #2c3e50;
}

.opcion-multa ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.opcion-multa ul li {
    padding: 0.4rem 0;
    font-size: 0.95rem;
}

/* Alternativas */
.alternativas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.alternativa-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s;
}

.alternativa-card:hover {
    border-color: #4caf50;
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.2);
    transform: translateY(-5px);
}

.alternativa-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

.alternativa-card h3 {
    margin: 0.75rem 0;
    color: #2c3e50;
    font-size: 1.2rem;
    text-align: center;
}

.alternativa-card > p:first-of-type {
    color: #666;
    text-align: center;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.alternativa-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.alternativa-card ul li {
    padding: 0.5rem 0;
    font-size: 0.95rem;
}

.alternativa-card .ahorro,
.alternativa-card .ventaja,
.alternativa-card .precio {
    background: #e8f5e9;
    padding: 0.75rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-weight: 600;
    color: #2e7d32;
    text-align: center;
}

.alternativa-card .btn-link {
    display: inline-block;
    margin-top: 1rem;
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.alternativa-card .btn-link:hover {
    color: #2980b9;
}

/* Recursos Útiles */
.recursos-box {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1rem;
}

.recursos-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recursos-list li {
    background: white;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.recursos-list li:last-child {
    margin-bottom: 0;
}

.recursos-list strong {
    color: #2c3e50;
    display: block;
    margin-bottom: 0.25rem;
}

.recursos-list a {
    color: #0066cc;
    text-decoration: none;
    word-break: break-all;
}

.recursos-list a:hover {
    text-decoration: underline;
}

/* Estilos para página de barrios */
.ver-mas-barrios {
    text-align: center;
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
}

.ver-mas-barrios .btn-secondary {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.ver-mas-barrios .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.ver-mas-barrios-bottom {
    text-align: center;
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 12px;
}

.ver-mas-barrios-bottom .btn-primary {
    background: white;
    color: #f5576c;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.ver-mas-barrios-bottom .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0 3rem;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.header-subtitle {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    opacity: 0.95;
}

.breadcrumb {
    font-size: 0.9rem;
    opacity: 0.9;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.filtros-barrios {
    margin: 3rem 0 2rem;
    text-align: center;
}

.filtros-barrios h3 {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-size: 1.3rem;
}

.filtro-tags {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.tag-filter {
    padding: 0.6rem 1.5rem;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tag-filter:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,102,204,0.3);
}

.tag-filter.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(0,102,204,0.3);
}

.barrios-completo {
    margin: 2rem 0 4rem;
}

.cta-section {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--light-gray);
    border-radius: 12px;
    margin: 4rem 0;
}

.cta-section h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
}

.cta-section p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: #666;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-buttons .btn-primary {
    padding: 0.8rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-buttons .btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,102,204,0.3);
}

/* Responsive para navegación */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .header-subtitle {
        font-size: 1rem;
    }
    
    .filtro-tags {
        gap: 0.5rem;
    }
    
    .tag-filter {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn-primary {
        width: 100%;
        max-width: 300px;
    }
}