.servicios-section {
    padding: 4rem 0;
    background: #f9f9f9;
}

.servicios-section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.servicios-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem;
}

.servicios-container {
    display: flex;
    overflow: hidden;
    scroll-behavior: smooth;
    gap: 2rem;
    padding: 1rem 0;
}

.servicio {
    min-width: calc(33.333% - 1.33rem); /* Para mostrar 3 servicios */
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.servicio:hover {
    transform: translateY(-5px);
}

.servicio i {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 1rem;
}

.servicio h3 {
    margin-bottom: 1rem;
    color: #333;
}

.servicio p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.btn-mas-info {
    background: #007bff;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 0.9rem;
    margin-top: auto;
}

.btn-mas-info:hover {
    background: #0056b3;
    color: white;
}

.servicios-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #007bff;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 1;
    font-size: 1.2rem;
}

.servicios-button:hover {
    background: #0056b3;
}

.servicios-button.prev {
    left: 0;
}

.servicios-button.next {
    right: 0;
}

@media (max-width: 992px) {
    .servicio {
        min-width: calc(50% - 1rem);
    }
}

@media (max-width: 576px) {
    .servicio {
        min-width: calc(100% - 1rem);
    }
}

.modal-lg {
    max-width: 800px;
}

.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem);
}

.modal-dialog-scrollable .modal-content {
    max-height: 80vh;
}

.modal-dialog-scrollable .modal-body {
    overflow-y: auto;
}

/* Estilos para el contenido del modal */
.modal-content {
    border-radius: 10px;
    border: none;
    box-shadow: 0 0 20px rgba(0,0,0,0.15);
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
    background-color: #f8f9fa;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    padding: 1rem 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-title {
    color: #333;
    font-weight: 600;
}

/* Estilos para el spinner de carga */
.spinner-border {
    width: 3rem;
    height: 3rem;
    color: #007bff;
}

/* Estilos para mensajes de error/advertencia */
.alert {
    margin-bottom: 0;
    border-radius: 8px;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeeba;
    color: #856404;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}