/* ==================== SECCIÓN SERVICIOS INDIVIDUALES ==================== */

/* Títulos de sección */
section h2 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 600;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 10px;
}

section h2+p {
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    text-align: center;
    margin-bottom: 40px;
}

/* Contenedor de servicios individuales (2 columnas) */
.services-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 80px auto;
    padding: 0 30px;
}

/* Tarjeta de servicio individual */
.service-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    background: var(--super-light-color);
    border: 2px solid black;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: scale(1.05);
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

/* Contenedor del contenido */
.service-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 25px;
    flex-grow: 1;
}

/* Icono y título del servicio */
.service-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.service-header svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

.service-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--light-color);
    margin: 0;
    text-align: left;
}

.service-card img {
    max-height: 150px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
    filter: blur(0.2px); 
    image-rendering: high-quality;
}

/* Descripción */
.service-card p {
    font-size: 0.95rem;
    margin-bottom: 10px;
    text-align: left;
}

/* Precio */
.service-card .price {
    font-size: 1.1rem;
    font-weight: 300;
    text-align: center;
    color: var(--light-color);
    margin: 10px 0 15px 0;
}

.btn-service {
    padding: 5px;
    font-size: 1rem;
}

/* ==================== MEDIA QUERIES (Móvil) ==================== */

@media (max-width: 768px) {

    .workspace-container {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    .services-container {
        grid-template-columns: 1fr;
        padding: 0 40px;
    }
}

@media (max-width: 412px) {

    .service-card {
        flex-direction: column;
        text-align: center;
    }

    .service-card img {
        width: 100%;
        max-width: none;
        max-height: 180px;
    }
}

@media (max-width: 850px) {
    .tooltiptext{
        bottom: calc(100% + 8px);
        top: auto;
        left: 50%;
        transform: translateX(-50%);
        max-width: calc(100vw - 40px);
        white-space: normal;
        word-wrap: break-word;
        box-sizing: border-box;
    }

    .tooltiptext.right {
        left: 0;
        right: auto;
        transform: translateX(0);
        max-width: calc(100vw - 24px);
    }

    .tooltiptext.left {
        right: 0;
        left: auto;
        transform: translateX(0);
        max-width: calc(100vw - 24px);
    }

    .tooltiptext::after {
        display: none;
    }
}

@media (max-width: 992px) {
.services-container {
        grid-template-columns: 1fr 1fr; 
        padding: 0 40px;
    }
}