@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
}

/* ==================== MODALES ==================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 500ms ease;
    z-index: 9999;
}

/* Activar modales específicos */
#btn-modal-tarifas:checked ~ .modal-tarifas,
#btn-modal-inscripcion:checked ~ .modal-inscripcion {
    opacity: 1;
    visibility: visible;
}

.contenedor {
    width: 700px;
    max-width: 95%;
    min-height: 380px;
    background: #fff;
    box-shadow: 1px 7px 25px rgba(0,0,0,0.6);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transform: translateY(-40px);
    transition: all 500ms ease;
}

#btn-modal-tarifas:checked ~ .modal-tarifas .contenedor,
#btn-modal-inscripcion:checked ~ .modal-inscripcion .contenedor {
    transform: translateY(0);
}

.contenedor header {
    padding: 15px;
    background: #0e1644;
    color: #fff;
    text-align: center;
    font-size: 1.4rem;
    font-weight: bold;
}

.contenedor label {
    position: absolute;
    top: 12px;
    right: 18px;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
}

.contenido {
    padding: 30px 25px;
    text-align: center;
}

.contenido h4 {
    margin: 18px 0 8px;
    color: #0e1644;
}

.contenido p {
    margin-bottom: 12px;
    font-size: 1.1rem;
}

/* Estilo de los botones con imágenes */
.lbl-modal {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.lbl-modal:hover {
    transform: scale(1.08);
}

@media (max-width: 768px) {
    .contenedor {
        width: 95%;
        min-height: auto;
    }
}