/* ===== ESTILOS PARA MAPA DE SITIO ===== */

.mapa-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 60px 20px;
}

.mapa-titulo {
    font-size: 2.5em;
    color: #333;
    display: inline-block;
    padding-bottom: 5px;
}

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    justify-items: center;
}

.sitemap-card {
    width: 100%;
    max-width: 400px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sitemap-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.card-header {
    background-color: #085E63;
    color: white;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
}

.card-body {
    padding: 0;
}

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

.card-body li {
    border-bottom: 1px solid #e0e0e0;
}

.card-body li:last-child {
    border-bottom: none;
}

.card-body a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease, padding-left 0.3s ease;
    position: relative;
}

.card-body a:before {
    content: "•";
    color: #085E63;
    font-weight: bold;
    margin-right: 10px;
}

.card-body a:hover {
    background-color: #E9F2FB;
    padding-left: 30px;
    color: #085E63;
}

/* Centrar las últimas cards si son 1 o 2 */
.sitemap-grid .sitemap-card:last-child:nth-child(3n - 1) {
    grid-column: 2 / 3;
}

.sitemap-grid .sitemap-card:last-child:nth-child(3n - 2) {
    grid-column: 2 / 3;
}

/* Responsive */
@media (max-width: 1024px) {
    .sitemap-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sitemap-grid .sitemap-card:last-child:nth-child(2n - 1) {
        grid-column: span 1;
    }
    
    .sitemap-grid .sitemap-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .sitemap-grid {
        grid-template-columns: 1fr;
    }
    
    .mapa-titulo {
        font-size: 2em;
    }
    
    .sitemap-grid .sitemap-card:last-child {
        grid-column: 1;
    }
}