/* =========================================
   1. VARIABLES Y FUENTES (INSTITUCIONAL)
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Source+Sans+3:wght@300;400;600;700&display=swap');

:root {
    --ub-blue: #0061F0;
    --ub-blue-dark: #06038D;
    --ub-cyan: #00D1FF;
    --ub-gray: #888B8D;
    --ub-white: #FFFFFF;
    --ub-light: #F8F9FA;
    --fac-posgrado: #D000D6;

    --bs-primary: var(--ub-blue);
    --bs-body-font-family: 'Source Sans 3', sans-serif;
    --bs-heading-font-family: 'Montserrat', sans-serif;
}

/* =========================
   SCROLLBAR BARCELÓ
========================= */

/* CHROME / EDGE / SAFARI */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f4f9;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 97, 240, 0.4);
    backdrop-filter: blur(6px);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--ub-cyan);
}

/* FIREFOX */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--ub-gray) #f1f4f9;
}

::-webkit-scrollbar {
    width: 6px;
}

/* =========================================
   2. ESTRUCTURA GLOBAL
   ========================================= */
body,
html {
    background-color: var(--ub-light);
    font-family: var(--bs-body-font-family);
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

/* El Footer se queda siempre al final */
footer {
    flex-shrink: 0;
    padding: 15px 0;
    font-size: 0.8rem;
    background: white;
}

/* --- SOLO PARA LA LANDING INDEX --- */
.layout-centered-landing {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--bs-heading-font-family);
    font-weight: 700;
    color: var(--ub-blue-dark);
}

a {
    text-decoration: none;
}

/* Layout para pantallas grandes (Evita scroll innecesario) */
@media (min-width: 992px) {
    .main-viewport {
        height: 100vh;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .content-grow {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* =========================================
   3. NAVBAR (TRAMA BARCELÓ)
   ========================================= */
.navbar-barcelo {
    position: sticky;
    /* O 'fixed' si prefieres, pero sticky respeta el flujo */
    top: 0;
    width: 100%;
    height: 80px;
    background-color: var(--ub-cyan);
    display: flex;
    align-items: center;
    overflow: hidden;
    border: none;
    z-index: 1050;
    /* Mayor que el contenido para que siempre esté arriba */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    /* Sombra para que se note el despegue al scrollear */
}

/* Ajuste para mobile para que no ocupe tanto espacio */
@media (max-width: 768px) {
    .navbar-barcelo {
        height: 70px;
    }
}

.nav-bg-pattern {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.layer-blue {
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    background-color: var(--ub-blue);
    border-radius: 100px 0 0 0;
    z-index: 2;
}

.layer-white {
    position: absolute;
    top: 0;
    left: -10px;
    width: 25%;
    height: 100%;
    background-color: white;
    border-radius: 0 100px 100px 0;
    z-index: 3;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.05);
}

.nav-container {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-title {
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    font-weight: 700;
}

/* =========================================
   4. COMPONENTES COMUNES (CARDS Y BOTONES)
   ========================================= */
.card-barcelo,
.card-form {
    border: none;
    border-top-left-radius: 43px;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 43px;
    background: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.card-barcelo:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 97, 240, 0.12);
}

.link-form {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--ub-blue);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 1.5rem;
    text-decoration: none;
}

.btn {
    border-radius: 10px !important;
    padding: 12px 35px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.btn-primary {
    background-color: var(--ub-blue);
    box-shadow: 0 4px 15px rgba(0, 97, 240, 0.2);
}

.btn-primary:hover {
    background-color: var(--ub-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 97, 240, 0.3);
}

/*
   INPUTS NUMBER FLECHA
*/
.inputSinArrows::-webkit-outer-spin-button,
.inputSinArrows::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
    -moz-appearance: textfield;
}

.alert-barcelo {
    border: none;
    border-left: 5px solid var(--ub-blue);
    border-radius: 10px;
    background: #f0f7ff;
}

/* =========================
   SWEET ALERT BARCELO
========================= */

/* =========================================
   SWEET ALERT BARCELÓ (DISEÑO UNIFICADO)
   ========================================= */

/* Contenedor Principal */
.swal-barcelo {
    border-top-left-radius: 43px !important;
    border-top-right-radius: 10px !important;
    border-bottom-left-radius: 10px !important;
    border-bottom-right-radius: 43px !important;
    padding: 2rem !important;
    font-family: var(--bs-body-font-family) !important;
}

/* Título */
.swal2-title {
    font-family: var(--bs-heading-font-family) !important;
    color: var(--ub-blue-dark) !important;
    font-weight: 700 !important;
}

/* Botón de Confirmación (Verde Institucional) */
.swal-confirm-btn {
    background-color: #198754 !important;
    /* Verde */
    border-radius: 10px !important;
    padding: 12px 30px !important;
    font-family: var(--bs-heading-font-family) !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 10px rgba(25, 135, 84, 0.2) !important;
}

/* Botón de Cancelar/Revisar (Rojo) */
.swal-cancel-btn {
    background-color: #dc3545 !important;
    /* Rojo */
    border-radius: 10px !important;
    padding: 12px 30px !important;
    font-family: var(--bs-heading-font-family) !important;
    font-weight: 600 !important;
}

/* Icono Info en Cyan */
.swal2-icon.swal2-info {
    border-color: var(--ub-cyan) !important;
    color: var(--ub-cyan) !important;
}



/* =========================
   SELECT2 - BARCELO STYLE
========================= */


/* CONTENEDOR */
.select2-container {
    font-family: var(--bs-body-font-family);
}

/* CAJA PRINCIPAL */
.select2-container--default .select2-selection--single {
    height: 48.8px;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    background-color: white;
}



.select2-selection__rendered {
    color: #1a1a1a !important;
    font-size: 0.95rem;
    padding-left: 0 !important;
}

/* PLACEHOLDER */
.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #999;
}

/* FLECHA */
.select2-selection__arrow {
    height: 100% !important;
    right: 15px !important;
}

/* FOCUS (CLAVE para consistencia) */
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--ub-blue);
    box-shadow: 0 0 0 4px rgba(0, 97, 240, 0.1);
}

/* DROPDOWN */
.select2-dropdown {
    border-radius: 10px;
    border: 1px solid #E2E8F0;
    overflow: hidden;
}

/* OPCIONES */
.select2-results__option {
    padding: 10px 15px;
    font-size: 0.9rem;
    color: #1a1a1a;
}

/* HOVER OPCIÓN */
.select2-results__option--highlighted {
    background-color: rgba(0, 97, 240, 0.08) !important;
    color: var(--ub-blue-dark);
}

/* OPCIÓN SELECCIONADA */
.select2-results__option--selected {
    background-color: var(--ub-blue) !important;
    color: white;
}


/* SEARCH INPUT */
.select2-search__field {
    border-radius: 8px;
    border: 1px solid #E2E8F0;
    padding: 8px 10px;
}

/* MULTIPLE SELECT */
.select2-container--default .select2-selection--multiple {
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 8px;
}

/* TAGS */
.select2-selection__choice {
    background-color: rgba(0, 97, 240, 0.1) !important;
    border: none !important;
    color: var(--ub-blue-dark) !important;
    border-radius: 8px !important;
    padding: 4px 8px !important;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    color: #1a1a1a;
}

.select2-container--default .select2-results__option--highlighted[aria-selected="true"] {
    color: #fff !important;
}

.select2-container--default .select2-results__option.select2-results__option--highlighted {
    background-color: #f8f9fa !important;
    color: #212529 !important;
}

/* Hover normal (NO seleccionado) */
.select2-container--open .select2-results__option.select2-results__option--highlighted {
    background-color: #f8f9fa !important;
    color: #212529 !important;
}

/* 🔥 Seleccionado + hover (más específico, va después) */
.select2-container--open .select2-results__option.select2-results__option--highlighted.select2-results__option--selected {
    background-color: #0d6efd !important;
    color: #fff !important;
}

/* =========================================
   5. LANDING PAGE (HERO Y PASOS MINI)
   ========================================= */
.hero-title {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.steps-container-mini {
    display: flex;
    gap: 20px;
    margin-bottom: 2rem;
}

.step-mini-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ub-blue-dark);
}

.step-number {
    width: 26px;
    height: 26px;
    background: var(--ub-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.hero-img-mask {
    background-image: url(../img/banner-admision.webp);
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 3rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* =========================================
   6. FORMULARIO (STEPPER Y CAMPOS)
   ========================================= */
.stepper-barcelo {
    display: flex;
    background: #e9ecef;
    border-top-left-radius: 43px;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 43px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.step-barcelo {
    flex: 1;
    padding: 15px;
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    color: #6c757d;
    position: relative;
    background: #e9ecef;
}

.step-barcelo:not(:last-child) {
    border-top-right-radius: 50px;
    border-bottom-right-radius: 50px;
    margin-right: -25px;
    z-index: 1;
}

.step-barcelo.active {
    background: var(--ub-blue);
    color: white;
    z-index: 5 !important;
}

.form-section-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--ub-blue);
    font-weight: 700;
    border-bottom: 2px solid var(--ub-cyan);
    padding-bottom: 5px;
    margin: 30px 0 20px;
}

.form-control,
.form-select {
    border-radius: 10px;
    padding: 12px 18px;
    border: 1px solid #E2E8F0;
    font-size: 0.95rem;
}

.form-control:focus {
    border-color: var(--ub-blue);
    box-shadow: 0 0 0 4px rgba(0, 97, 240, 0.1);
}

.form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--ub-blue-dark);
}

/* Radio Cards (Pregunta Secundario) */
.radio-group {
    display: flex;
    gap: 15px;
}

.radio-card-input {
    display: none;
}

.radio-card-label {
    flex: 1;
    padding: 15px;
    border: 2px solid #f1f1f1;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

.radio-card-input:checked+.radio-card-label {
    border-color: var(--ub-blue);
    background: rgba(0, 97, 240, 0.05);
    color: var(--ub-blue);
}

/* Caja de Pago (Price Box) */
/*
.price-box {
    background: var(--ub-blue-dark);
    color: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
}*/

/* =========================
   SUCCESS STATE BARCELO
========================= */

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgb(25 135 84 / 43%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon i {
    font-size: 4rem;
    color: white;
}

/* Variante más “éxito real” (verde sutil institucionalizado) */
.success-icon.success-green {
    background: rgba(25, 135, 84, 0.1);
}

.success-icon.success-green i {
    color: #198754;
}

.form-check-pago {
    padding: 5px 5px 5px 35px;
    border-radius: 8px;
    transition: 0.3s;
}

/* Clase que aplicaremos con JS */
.form-check-pago.selected {
    background-color: var(--ub-blue);
    color: white;
}

input[readonly],
select[readonly],
.select-readonly .select2-selection {
    background-color: #e9ecef;
    cursor: not-allowed;
}

#checkTerminos,
#checkCartaCompromiso {
    border: 3px solid var(--ub-blue);
}

input#checkTerminos:checked,
input#checkCartaCompromiso:checked {
    border: none;
}

/* Para que los Select2 se pongan rojos al fallar */
.is-invalid-select2 {
    border-color: #dc3545 !important;
    padding-right: calc(1.5em + 0.75rem) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right calc(0.375em + 0.1875rem) center !important;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem) !important;
}

/* 1. Forzar color rojo en inputs normales con is-invalid */
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545 !important;
    padding-right: calc(1.5em + 0.75rem) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right calc(0.375em + 0.1875rem) center !important;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem) !important;
}

/* 3. Estilo para Select2 inválido */
.select2-container--default .is-invalid-select2 {
    border-color: #dc3545 !important;
}

/* 4. Mostrar el texto de error de Bootstrap aunque no usemos el form-submit tradicional */
.is-invalid~.invalid-feedback {
    display: block !important;
}


/* 3. Estilo para el label general de la pregunta (opcional) */
.is-invalid-label {
    color: #dc3545 !important;
    font-weight: bold;
}

/* Si el radio oculto es inválido, pintamos su label asociado */
/*.radio-card-input.is-invalid+.radio-card-label {
    border-color: #dc3545 !important;
    background-color: rgba(220, 53, 69, 0.02);
}*/

/* Clase para el contenedor padre (Card o grupo) */
/* Estilo para el contenedor del grupo cuando falla la validación */
.parent-is-invalid {
    border: 1px solid #dc3545 !important;
    border-radius: 12px;
    padding: 10px;
    /*margin: -10px;*/
    /* Evita que el borde mueva el layout */
    background-color: rgba(220, 53, 69, 0.01);
}

/* También pintamos el label principal del grupo en rojo */
.parent-is-invalid .form-label {
    color: #dc3545 !important;
}

/* =========================================
   7. FOOTER Y FRANJAS
   ========================================= */
footer {
    padding: 15px 0;
    font-size: 0.8rem;
}

.franja-barcelo {
    height: 8px;
    display: flex;
    width: 100%;
}

.f-blue {
    background: var(--ub-blue-dark);
    flex: 1;
}

.f-white {
    background: var(--ub-white);
    flex: 1;
}

.f-cyan {
    background: var(--ub-cyan);
    flex: 1;
}

.f-gray {
    background: var(--ub-gray);
    flex: 1;
}

/* =========================================
   8. UTILIDADES Y RESPONSIVE
   ========================================= */
.es-obligatorio::after {
    content: " *";
    color: #dc3545;
    font-weight: bold;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

@media (max-width: 768px) {
    .navbar-barcelo {
        height: 70px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .layer-white {
        width: 40%;
    }

    .steps-container-mini,
    .radio-group {
        flex-direction: column;
    }

    .card-form {
        padding: 20px;
    }
}

/* =========================================
   MODAL BOOTSTRAP BARCELÓ
   ========================================= */

.modal-content {
    border: none !important;
    border-top-left-radius: 43px !important;
    border-top-right-radius: 10px !important;
    border-bottom-left-radius: 10px !important;
    border-bottom-right-radius: 43px !important;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.modal-header {
    border-bottom: 2px solid var(--ub-cyan);
    padding: 1.5rem 2rem;
}

.modal-header .modal-title {
    color: var(--ub-blue-dark);
    font-weight: 700;
}

.modal-body {
    padding: 2rem;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
}

/* Personalización del Scroll dentro del Modal */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--ub-cyan);
    border-radius: 10px;
}

.modal-footer {
    border-top: 1px solid #eee;
    padding: 1.5rem 2rem;
    background-color: #fcfcfc;
}

/* Botones del footer del modal */
.modal-footer .btn-secondary {
    background-color: var(--ub-gray);
    border-radius: 10px;
}

.modal-footer .btn-primary {
    border-radius: 10px;
    background-color: var(--ub-blue);
}

/* --- ACORDEÓN BARCELÓ --- */
.accordion-barcelo .accordion-item {
    border: none;
    border-top-left-radius: 43px !important;
    border-top-right-radius: 10px !important;
    border-bottom-left-radius: 10px !important;
    border-bottom-right-radius: 43px !important;
    overflow: hidden;
    margin-bottom: 20px;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.accordion-barcelo .accordion-button {
    padding: 20px 30px;
    font-family: var(--bs-heading-font-family);
    font-weight: 700;
    color: var(--ub-blue-dark);
    background: white;
    box-shadow: none;
}

.accordion-barcelo .accordion-button:not(.collapsed) {
    background: var(--ub-blue);
    color: white;
}

.accordion-barcelo .accordion-button:not(.collapsed) i {
    color: #fff !important;
}

.accordion-barcelo .accordion-button:not(.collapsed) .btn-icon-bg {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.accordion-button:not(.collapsed)::after {
    filter: invert(1);
}

.status-section {
    transform: scale(1.5);
}

.btn-icon-bg {
    width: 40px;
    height: 40px;
    background: var(--ub-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ub-blue);
    font-size: 1.2rem;
    transition: 0.3s;
}

/* --- RADIOS ESTILO MINI-CARD --- */
.radio-group-barcelo {
    display: flex;
    gap: 10px;
}

.radio-card-mini {
    flex: 1;
    padding: 10px;
    text-align: center;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
    color: var(--ub-gray);
}

input[type="radio"]:checked+.radio-card-mini {
    border-color: var(--ub-blue);
    background: rgba(0, 97, 240, 0.05);
    color: var(--ub-blue);
}

/* Títulos de sección dentro del formulario */
.form-section-title {
    font-family: var(--bs-heading-font-family);
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--ub-blue);
    font-weight: 700;
    border-bottom: 2px solid var(--ub-cyan);
    padding-bottom: 5px;
    margin: 35px 0 20px;
}

/* Ajuste del botón de agregar contacto */
.agregar-contacto {
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    color: var(--ub-blue);
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.agregar-contacto:hover {
    background: rgba(0, 97, 240, 0.05);
    border-color: var(--ub-blue);
}


/* Bloque de pasos siguientes */
.next-steps-box {
    background-color: #f0f7ff;
    /* Azul muy suave */
    border-radius: 15px;
    border-left: 5px solid var(--ub-blue);
}

.next-steps-box ul li {
    font-size: 0.95rem;
    color: var(--ub-blue-dark);
}

.next-steps-box ul li i {
    color: var(--ub-blue);
}

/* Alerta personalizada con estilo Barceló */
.alert-barcelo-custom {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--ub-cyan);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

/* Ajuste del ícono de éxito para que sea más imponente */
.success-icon {
    width: 100px;
    height: 100px;
    font-size: 3rem;
    box-shadow: 0 10px 20px rgba(25, 135, 84, 0.15);
}

/* Alineación vertical si la pantalla no tiene scroll */
.flex-grow-1 {
    min-height: calc(100vh - 160px);
    /* Ajustar según altura de header+footer */
}


/* --- RADIO CARDS CONSISTENTES --- */

.radio-card-input {
    display: none;
    /* Ocultamos el radio */
}

.radio-card-label {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Misma altura y estilos que tus .form-control / .form-select */
    height: 48.8px;
    padding: 12px 18px;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    font-size: 15.2px;
    /* Igual que tus inputs */
    background-color: white;
    cursor: pointer;
    font-weight: 400;
    color: var(--ub-gray);
    transition: all 0.2s ease;
    width: 100%;
}

/* Efecto al seleccionar: Igualamos al color institucional */
.radio-card-input:checked+.radio-card-label {
    background-color: var(--ub-blue);
    border-color: var(--ub-blue);
    color: white;
}

/* Ajuste de iconos dentro del botón */
.radio-card-label i {
    font-size: 1.1rem;
    margin-right: 8px;
}

/* --- CORRECCIÓN DEL ESPACIO GIGANTE (VIEWPORT) --- */

@media (min-width: 992px) {

    /* Cambiamos space-evenly por flex-start para que no se estire */
    .content-grow {
        justify-content: flex-start !important;
        padding-top: 2rem;
        flex: 1;
    }
}


/* --- RADIO CARDS PARA FORMAS DE PAGO (LARGAS) --- */

.radio-card-label-pago {
    display: flex;
    align-items: center;
    padding: 20px;
    background-color: white;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.radio-card-label-pago:hover {
    border-color: var(--ub-cyan);
    background-color: rgba(0, 209, 255, 0.02);
}

.radio-card-input:checked+.radio-card-label-pago {
    border-color: var(--ub-blue);
    background-color: rgba(0, 97, 240, 0.05);
    border-width: 2px;
}

/* El precio dentro de la tarjeta de pago */
.price-tag {
    font-size: 1.1rem;
    padding: 4px 12px;
    background: #f0f7ff;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.radio-card-input:checked+.radio-card-label-pago .price-tag {
    background: var(--ub-blue);
    color: white !important;
}

/* --- ESTILO PARA CHECKBOX CARDS --- */
.checkbox-card-input {
    display: none;
}

.selectable-card-label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 48px;
    padding: 0 15px;
    background-color: white;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--ub-gray);
    transition: all 0.2s ease;
    width: 100%;
}

.checkbox-card-input:checked+.selectable-card-label {
    background-color: var(--ub-blue);
    border-color: var(--ub-blue);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 97, 240, 0.15);
}

/* Alineación de radios cuando están en columna */
.radio-card-label.justify-content-start {
    justify-content: flex-start !important;
    padding-left: 15px !important;
    font-size: 0.85rem;
}

/* Caja de importe final corregida */
.price-box {
    background: var(--ub-blue-dark);
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    border-top-left-radius: 43px;
    /* Siguiendo tu identidad visual */
    border-bottom-right-radius: 43px;
}

.price-box h2 {
    color: var(--ub-cyan);
    /* El precio resalta en Cyan sobre el azul oscuro */
    font-size: 2.5rem;
}

.no-interaction {
    pointer-events: none;
    background-color: #e9ecef;
    cursor: not-allowed;
}

.form-switch .form-check-input {
    width: 3em;
    height: 1.5em;
}

.form-switch .form-check-label {
    margin-left: .5em;
    vertical-align: sub;
}

/* =========================================
   EDADES A CARGO (TAGS INPUT)
   ========================================= */

.edades-control {
    min-height: 48.8px;
    width: 100%;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 6px 12px;
    background: #fff;

    display: flex;
    align-items: center;
    gap: 6px;

    transition: all .2s ease;
}

.edades-control:focus-within {
    border-color: var(--ub-blue);
    box-shadow: 0 0 0 4px rgba(0, 97, 240, 0.1);
}

#edadInput {
    border: none;
    background: transparent;
    outline: none;
    box-shadow: none;

    width: auto;

    padding: 4px 0;

    font-size: 0.95rem;
    color: var(--ub-blue-dark);

    flex: 0 0 auto;
}

#edadInput::placeholder {
    color: #94A3B8;
}

#edadInput:focus {
    border: none;
    outline: none;
    box-shadow: none;
}

#edadesTags {
    display: contents;
}

/* TAG */
.edad-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    background: rgba(0, 97, 240, 0.08);
    border: 1px solid rgba(0, 97, 240, 0.15);

    color: var(--ub-blue-dark);

    border-radius: 50px;

    padding: 5px 12px;

    font-size: .85rem;
    font-weight: 600;

    transition: .2s;
}

.edad-tag:hover {
    background: rgba(0, 97, 240, 0.12);
}

/* BOTÓN ELIMINAR */
.edad-tag button {
    border: none;
    background: transparent;

    width: 18px;
    height: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    margin: 0;

    border-radius: 50%;

    cursor: pointer;

    color: var(--ub-blue);

    font-size: 14px;
    font-weight: bold;

    transition: .2s;
}

.edad-tag button:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.data-view {
    min-height: 48.8px;
    padding: 12px 18px;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
}

@keyframes latido {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.latido {
    animation: latido 1s infinite;
}