/* 1. Preparar el contenedor del idioma */
.single_service_text {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* 2. Estilo de la capa que aparece (Overlay) */
.overlay-precios {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    /* Fondo blanco casi sólido */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    /* Invisible por defecto */
    transition: opacity 0.3s ease;
    padding: 20px;
    text-align: center;
}

/* 3. Mostrar al hacer hover */
.single_service_text:hover .overlay-precios {
    opacity: 1;
}

/* 4. Estilo de los textos de precio */
.precio-item {
    margin-bottom: 15px;
}

.precio-item span {
    display: block;
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
}

.precio-item strong {
    display: block;
    font-size: 22px;
    color: #004175;
    /* Puedes usar el color de tu marca */
}

/* --- Ajustes del Carrusel --- */
.custom-carousel {
    padding: 0 15px;
}

.custom-nav {
    width: 45px;
    height: 45px;
    background: #333;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    position: absolute;
    border: none;
    color: white;
    z-index: 5;
}

@media (min-width: 992px) {
    .carousel-control-prev.custom-nav {
        left: -50px;
    }

    .carousel-control-next.custom-nav {
        right: -50px;
    }
}

@media (max-width: 991px) {
    .custom-nav {
        width: 35px;
        height: 35px;
    }

    .carousel-control-prev.custom-nav {
        left: 5px;
    }

    .carousel-control-next.custom-nav {
        right: 5px;
    }
}

/* --- Estilo de Tarjeta (Solo lo necesario) --- */
.card-header-gradient.header-with-image {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 15px 15px 0 0;
    overflow: hidden;
    /* Ajuste de altura: padding controla el espacio y min-height asegura el tamaño */
    padding: 2rem 1rem;
    min-height: 120px;
}

/* Capa de oscurecimiento para legibilidad */
.card-header-gradient.header-with-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Badge de PROMO */
.promo-header-text {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff2d78;
    color: white;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    z-index: 3;
}

/* Ajustes para pantallas pequeñas (móviles) */
@media (max-width: 576px) {
    .modal-body {
        padding: 1.5rem !important;
    }

    .modal-title {
        font-size: 1.1rem;
    }

    .info-section h6 {
        font-size: 0.75rem;
    }
}

/* Efecto suave al abrir */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
}