﻿.cards-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.cards-container h2{
    margin-bottom: 25px;
    text-transform: none;
    color: #000;
    font-size: 25px;
}

.line-cards{
    height: 1px;
    width: 100%;
    background-color: #333;
    margin-top: 20px;
}

.cards{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.card {
    width: 30%;
    justify-content: center;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    display: flex;
}


.card h2 {
    font-weight: 600;
    color: #102F73;
    font-size: 20px;
    text-transform: none;
    margin-bottom: 10px;
}

.card p {
    font-weight: 600;
    color: #000;
    text-align: center;
    padding: 0px 20px;
}

/* Estilo del tooltip */
.tooltipMap {
    position: absolute;
    background-color: #fff;
    border-radius: 12px;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 280px;
    display: none;
    flex-direction: row;
    padding: 16px;
    transform: translate(-45%, -130%);
    z-index: 10;
}

.tooltipMap::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px 10px 0 10px;
    border-style: solid;
    border-color: white transparent transparent transparent;
}

.tooltipMap-content {
    display: flex;
    gap: 12px;
}

.tooltipMap-image {
    width: 60px;
    height: 60px;
    background-color: #ccc;
    border-radius: 8px;
}

.tooltipMap-text {
    flex: 1;
}

.tooltipMap-text h4 {
    margin: 0;
    font-size: 16px;
    color: #0066cc;
}

.tooltipMap-text small {
    color: #888;
    font-size: 12px;
}

.tooltipMap-text p {
    margin: 4px 0 8px 0;
    font-size: 13px;
    color: #444;
}

.tooltipMap-text a {
    font-size: 13px;
    color: #007bff;
    text-decoration: none;
}


.pin:hover .tooltipMap {
    display: block;
}


/* Card única en mobile */
.card-mobile {
    display: none;
    max-width: 320px;
    margin: 40px auto;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 16px;
}

.card a {
    margin-top: 20px;
    border: 2px solid #f7921e;
    padding: 9px 30px;
    border-radius: 49px;
}

.card a img {
    width: 23px;
    margin-right: 10px;
}

@media (max-width: 768px) {
    .mapa-container {
        display: none;
    }

    .card-mobile {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .cards-container{
        display: none;
    }
}