/* Contenedor de servicios */
.servicios-flex {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

/* Tarjeta de servicio restaurada */
.servicio-card {
    position: relative;
    width: 100%;
    height: 250px;
    min-height: 0;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* Imagen dentro de la tarjeta */
.servicio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

/* Oscurecer al pasar el mouse */
.servicio-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
    z-index: 1;
}

/* Hover rojo */
.servicio-card:hover::after {
    background: rgba(255, 0, 0, 0.4);
}

/* Texto encima (Overlay) */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

/* Texto h3 */
.overlay h3 {
    font-family:'bitter', Sans-serif !important;
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    letter-spacing: 1px;
}

/* Responsive ajustes */
@media (max-width: 768px) {
    .servicio-card {
        height: 200px;
    }
    .overlay h3 {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .servicio-card {
        height: 150px;
    }
    .overlay h3 {
        font-size: 24px;
    }
}
/* === HOVER EFECTOS EXCLUSIVOS === */

/* Tarjeta con leve elevación */
.servicio-card:hover {
    transform: scale(1.02);
    z-index: 2;
}

/* Imagen hace zoom leve */
.servicio-card:hover img {
    transform: scale(1.1);
}

/* Overlay rojo con blur sutil */
.servicio-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.4s ease, backdrop-filter 0.4s ease;
    z-index: 1;
}

.servicio-card:hover::after {
    background: rgba(220, 0, 0, 0.35);
    backdrop-filter: blur(2px);
}

/* Texto encima (Overlay) - SIEMPRE visible */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: rgba(0, 0, 0, 0); /* Fondo transparente siempre activo */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    transition: background 0.3s ease;
}


.servicio-card:hover .overlay h3 {
    opacity: 1;
    transform: translateY(0);
}
/* Animación de aparición del modal */
@keyframes fadeZoomIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.info-hidden {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: #ffffff;
    color: #fff;
    margin-top: -10px;
    border-left: 3px solid red;
}

.info-hidden.active {
    max-height: 500px;
    padding: 20px;
}

/* Contenido interno */
.info-content {
    max-width: 900px;
}

/* Título */
.info-content h4 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #ff2a2a;
    font-weight: bold;
}

/* Descripción justificada */
.descripcion {
    text-align: justify;
    line-height: 1.6;
    font-size: 15px;
    margin-bottom: 15px;
    color: #000000;
}

/* Lista de servicios */
.servicios {
    text-align: justify;
    font-size: 14px;
    line-height: 1.5;
    color: #000000;
}
