/* Map styles */
.map-section {
    background: white;
    padding: 6rem 2rem;
}

.map-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    margin: 3rem 0;
    position: relative;
}

.map-header {
    background: var(--primary-red);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.map-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.map-controls {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.map-filter {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.map-filter:hover,
.map-filter.active {
    background: white;
    color: var(--primary-red);
}

.map-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    min-height: 400px;
}

#comerciosMap {
    width: 100%;
    height: 100%;
}

.map-legend {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 400;
    max-width: 200px;
}

/* FIX Z-INDEX PER CONTROLS DEL MAPA - MÉS ESPECÍFIC */
.leaflet-top,
.leaflet-bottom {
    z-index: 900 !important;
}

.leaflet-control-zoom {
    z-index: 900 !important;
}

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
    z-index: 900 !important;
}

.map-legend {
    z-index: 400 !important;
}

.navbar {
    z-index: 1100 !important;
}

.back-button {
    z-index: 1100 !important;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.legend-icon {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.map-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px;
    flex-direction: column;
    gap: 1rem;
    color: var(--text-light);
}

.map-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-red);
    border-radius: 50%;
    animation: mapSpin 1s linear infinite;
}

@keyframes mapSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Rest of styles */
.panera-hero {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: white;
    text-align: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.panera-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/Panera.jpg') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.panera-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.panera-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 300;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.panera-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    margin-bottom: 2rem;
    opacity: 0.9;
}

.prize-highlight {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 600;
    margin: 2rem 0;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

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

.info-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border-top: 4px solid var(--primary-red);
}

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

.info-card h3 {
    color: var(--primary-red);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-card i {
    font-size: 1.5rem;
}

.info-card ul {
    margin: 0.5rem 0;
    padding-left: 1.2rem;
}

.info-card li {
    margin: 0.3rem 0;
}

.bases-section {
    background: var(--light-gray);
}

.bases-content {
    max-width: 800px;
    margin: 0 auto;
}

.bases-intro {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.bases-intro p {
    margin-bottom: 1rem;
}

.bases-intro p:last-child {
    margin-bottom: 0;
}

.base-item {
    background: white;
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.base-header {
    background: var(--primary-red);
    color: white;
    padding: 1rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.base-header:hover {
    background: var(--dark-red);
}

.base-content {
    padding: 1.5rem;
    display: none;
    border-top: 1px solid var(--border-color);
}

.base-content.active {
    display: block;
    animation: slideDown 0.3s ease;
}

.base-content ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.base-content li {
    margin: 0.5rem 0;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.comercio-card {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.comercio-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.comercio-number {
    background: var(--primary-red);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.comercio-name {
    font-weight: 500;
    color: var(--text-dark);
}

.back-button {
    position: fixed;
    top: 100px;
    left: 2rem;
    background: var(--primary-red);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-button:hover {
    background: var(--dark-red);
    transform: scale(1.1);
}

.contact-cta {
    background: var(--primary-red);
    color: white;
    text-align: center;
    padding: 4rem 2rem;
}

.contact-cta h2 {
    margin-bottom: 1rem;
    font-size: clamp(1.5rem, 4vw, 2rem);
}

.contact-cta p {
    margin-bottom: 2rem;
    opacity: 0.9;
    font-size: 1.1rem;
}

.contact-button {
    display: inline-block;
    background: white;
    color: var(--primary-red);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 0.5rem;
}

.contact-button:hover {
    background: var(--light-gray);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .map-header {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .map-wrapper {
        height: 400px;
    }

    .map-legend {
        position: relative;
        top: 0;
        right: 0;
        margin: 1rem;
        max-width: none;
    }

    .back-button {
        left: 1rem;
        top: 80px;
        width: 45px;
        height: 45px;
    }

    .panera-hero {
        padding: 6rem 1rem 3rem;
    }

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

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