/* Incluir estilos del multi-step form */
.juma-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: hsla(0, 0%, 0%, 0.350);
}

.juma-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 1200px;
}

.juma-form-container {
    display: flex;
}

.juma-form-left {
    flex: 2;
    padding-right: 20px;
}

.juma-form-left::-webkit-scrollbar {
    width: 8px;
}

.juma-form-left::-webkit-scrollbar-track {
    background: #c5c2c2;
    border-radius: 4px;
}

.juma-form-left::-webkit-scrollbar-thumb {
    background: #30b8f5;
    border-radius: 4px;
}

.juma-form-left::-webkit-scrollbar-thumb:hover {
    background: #191920a2;
}

div#participantes-container {
    height: 45vh;
    overflow-y: auto;
    padding-right: 20px;
}

.juma-form-right {
    font-size: 20px;
    flex: 1;
    border-left: 1px solid #ccc;
    padding-left: 20px;
    color: #fff;
    max-height: 60vh;
    overflow-y: auto;
}

.juma-form-right::-webkit-scrollbar {
    width: 8px;
}

.juma-form-right::-webkit-scrollbar-track {
    background: #c5c2c2;
    border-radius: 4px;
}

.juma-form-right::-webkit-scrollbar-thumb {
    background: #30b8f5;
    border-radius: 4px;
}

.juma-form-right::-webkit-scrollbar-thumb:hover {
    background: #191920a2;
}

.juma-form-right h3 {
    border: 1px solid #fff;
    padding: 10px;
    width: 100%;
    margin: 0PX;
}

.resumen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

#total-costo {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    text-align: left;
}

.event-cover {
    text-align: center;
    margin-bottom: 15px;
}

.event-cover img {
    max-width: 100%;
    height: auto;
}

/* ==== ESTILO TIPO BANNER ==== */
.event-info {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 20px;
    border-radius: 12px;
    color: #fff;
}

.event-info .event-thumb img {
    width: 70px;
    height: 70px;
    border-radius: 6px;
    object-fit: cover;
}

.event-info .event-texts {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.event-info h3 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    text-align: left;
}

.event-info p {
    margin: 2px 0;
    font-size: 20px;
    opacity: 0.9;
}

.event-info .fecha{
    display: block;
    text-align: left;
}


.intro-text {
    font-size: 18px;
    font-weight: normal;
    margin: 20px 0;
    color: #fff;
    text-align: left;
}

.user-row {
    display: flex;
    align-items: center;
    background: #ffffff00;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #ffffff;
}

.user-row i {
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
}

.user-row .status {
    font-size: 25px;
    font-weight: 600;
    margin-left: auto;
    color: #ffffff;
}

.accordion-item {
    margin: 10px 0;
}

.single-product .product-carrera .cart .juma-modal .accordion-item .accordion-header {
    font-size: 15px !important;
    width: 100% !important;
    text-align: left;
    background: #ffffff09 !important;
    color: #fff;
    border: solid 1px #fff;
    padding: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Accordion headers en participantes-container - contenido alineado a la izquierda */
.juma-modal #juma-tickets-wrapper .juma-form-container #participantes-container .accordion-item .accordion-header,
.juma-modal #juma-tickets-wrapper #participantes-container .accordion-item .accordion-header,
#juma-tickets-wrapper #participantes-container .accordion-item .accordion-header,
#participantes-container .accordion-item .accordion-header {
    justify-content: flex-start !important;
    text-align: left !important;
}

/* ========================================
   STEP NUMBER BADGE
   ======================================== */
.juma-modal #juma-tickets-wrapper .juma-form-container .accordion-item .accordion-header .step-number,
.juma-modal #juma-tickets-wrapper .accordion-item .accordion-header .step-number,
#juma-tickets-wrapper .accordion-item .accordion-header .step-number,
.juma-modal .accordion-item .accordion-header .step-number,
.accordion-header .step-number {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #FFFFFF 0% 0% no-repeat padding-box !important;
    border: 1px solid #FFFFFF !important;
    border-radius: 3px !important;
    color: #333 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    min-width: 24px !important;
    height: 24px !important;
    padding: 0 6px !important;
    margin-right: 10px !important;
    line-height: 1 !important;
}

.accordion-header:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.accordion-content {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-height: 0;
    overflow: hidden;
    padding: 0 10px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-content.open {
    max-height: 1000px;
    padding: 10px;
    border: solid 1px white;
}

/* Estilo general de inputs/selects */
.accordion-content.open input,
.accordion-content.open select {
    flex: 1 1 calc(25% - 16px); /* 4 columnas */
    height: 44px;
    padding: 0 14px;
    font-size: 14px;
    color: #333;
    background: #ffffff;
    border: 1px solid #d0d5dd;
    border-radius: 8px;          /* borde suave */
    box-sizing: border-box;
    transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

/* Inputs hover */
.accordion-content.open input:hover,
.accordion-content.open select:hover {
    border-color: #3c64dd;
}

/* Focus muy claro, estilo moderno */
.accordion-content.open input:focus,
.accordion-content.open select:focus {
    outline: none;
    border-color: #3b64dd;
    box-shadow: 0 0 0 3px rgba(59, 100, 221, 0.25);
}

/* Etiquetas (si las usas dentro del acordeón) */
.accordion-content label {
    width: 100%;
    font-size: 15px;
    font-weight: 600;
    color: #444;
    margin-bottom: 10px;
    text-align: left;
}

/* Ajuste para selects para que el "caret" no se vea cortado */
.accordion-content.open select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23999' height='18' viewBox='0 0 20 20' width='18' xmlns='http://www.w3.org/2000/svg'><polygon points='0,0 20,0 10,10'/></svg>");
    background-repeat: no-repeat;
    background-position: calc(100% - 12px) center;
    background-size: 12px;
}

/* Inputs inválidos */
.accordion-content.open input:invalid,
.accordion-content.open select:invalid {
    border-color: #e74c3c;
}


.accordion-content.open input, .accordion-content.open select {
    flex: 1 1 calc(25% - 10px);
    margin: 5px 0;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.accordion-content.open button {
    margin: 10px 0;
    padding: 10px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.accordion-item.completed .accordion-header {
    background: #d4edda;
}

/* Estilos para paso inactivo */
.accordion-item[data-bloque="2"] {
    transition: opacity 0.3s ease;
}

.accordion-item[data-bloque="2"].step-inactive {
    opacity: 0.5;
    pointer-events: none;
}

/* Botón Siguiente Paso */
.btn-siguiente-paso {
    font-size: 18px !important;
    width: 100% !important;
    text-align: center !important;
    background: #ffffff09 !important;
    color: #fff !important;
    border: solid 1px #fff !important;
    padding: 10px 0px !important;
    cursor: pointer;
    margin: 10px 0px !important;
    transition: all 0.3s ease;
}

.btn-siguiente-paso:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: #fff !important;
    transform: scale(1.01);
}

/* Icono Dropdown en Accordion Header */
.accordion-header .icon-icon-Dropdown {
    margin-left: auto;
    transition: transform 0.3s ease;
    font-size: 12px;
}

.accordion-content.open + .accordion-header .icon-icon-Dropdown,
.accordion-header[aria-expanded="true"] .icon-icon-Dropdown {
    transform: rotate(180deg);
}

/* Botón Guardar Participante - Estado Inactivo */
.btn-guardar-participante {
    transition: opacity 0.3s ease;
}

.btn-guardar-participante.btn-disabled {
    opacity: 0.5;
    pointer-events: none;
}

#btn-agregar-participante {
    font-size: 18px !important;
    width: 100% !important;
    text-align: left !important;
    background: #ffffff09 !important;
    color: #fff !important;
    border: solid 1px #fff !important;
    padding: 10px 0px !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    margin: 0px !important;
    opacity: 1;
    transition: opacity 0.3s ease, cursor 0.3s ease;
}

#btn-agregar-participante:disabled,
#btn-agregar-participante.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.juma-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.juma-close:hover {
    color: black;
}
    
/* Estilos adicionales para el formulario de tickets */
.juma-tickets-inputs {
    margin: 20px 0;
}
    
.juma-tickets-input {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    margin: 10px 0;
}
    
.juma-participante-title {
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}
    
.input-carrera {
    display: block;
    width: 100%;
    margin: 8px 0;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}
    
.fechanacimiento {
    display: block;
    margin: 10px 0 5px 0;
    font-weight: bold;
}
    
.submit-tickets {
    text-align: center;
    margin-top: 30px;
}
    
.submit-tickets button {
    background: #007cba;
    color: white;
    padding: 15px 30px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
    
.add-participante {
    margin: 10px 0;
}
    
/* HEADER DEL MODAL - barra azul tipo screenshot 2 */
.header-ticket {
    background-color: #3c64dd;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); 
}



/* Contenedor del botón de cerrar */
#close_modal_tickets {
    order: 2;
    margin: 0;
}

/* Icono de cerrar (X) */
#close_modal_tickets span {
    cursor: pointer;
    font-size: 18px;
    color: #ffffff;
    opacity: 0.85;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

#close_modal_tickets span:hover {
    opacity: 1;
    transform: scale(1.05);
}

.participante-block {
    margin: 20px 0;
    border-radius: 0px;
    overflow: hidden;
    padding-bottom: 20px;
    border-bottom: 1px solid white;
}
    
.participante-block.active {
    border-color: #007cba;
    box-shadow: 0 0 10px rgba(0,124,186,0.3);
}
    
.resumen-participante {
    padding: 10px;
    border-radius: 5px;
}

.resumen-participante p {
    text-align: left;
    margin: 0px;
    line-height: 1.5;
    font-size: 15px;
}
    
.resumen-total {
    padding: 20px 0;
    text-align: left;
    border-top: 1px solid #ddd;
}

.resumen-total p {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    margin: 0;
}


/* Estilos para el resumen de participantes */
.summary-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-user-info .icon-icon-user {
    font-size: 24px;
}

.juma-precio-participante .icon-icon-Dropdown {
    font-size: 12px;
    margin-left: 8px;
}

/* ESTILO PREMIUM SOLO PARA EL BOTÓN DENTRO DE submit-tickets */
.submit-tickets .button.product_type_variable.add_to_cart_button {
    font-size: 18px !important;
    color: #ffffff !important;
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    padding: 10px 20px !important;
    border-radius: 0px !important;
    font-weight: normal !important;
    backdrop-filter: blur(4px);
    transition: all 0.25s ease !important;
    width: 80%;
}

/* Hover solo afecta ese botón */
.submit-tickets .button.product_type_variable.add_to_cart_button:hover {
    border-color: #ffffff !important;
    background: rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Active */
.submit-tickets .button.product_type_variable.add_to_cart_button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.btn-guardar-participante{
    font-size: 18px !important;
    width: 100% !important;
    text-align: center !important;
    background: #ffffff09 !important;
    color: #fff !important;
    border: solid 1px #fff !important;
    padding: 10px 0px !important;
    cursor: pointer;
    margin: 0px !important;
}




/* Pegamos el modal al borde superior, sin margen interno global */
#juma-tickets-wrapper {
    padding: 0;
}

/* Header tipo barra superior */
#juma-tickets-wrapper .header-ticket {
    background-color: #3c64dd;
    padding: 10px 9%;              
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
}

/* Título dentro del header, sin fondo extra */
#juma-tickets-wrapper .header-ticket .juma-tickets-title {
    margin: 0;
    padding: 0;
    background: none;
    display: flex;
    align-items: center;
}

#juma-tickets-wrapper .header-ticket .juma-tickets-title h3 {
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
}

/* El resto del contenido del modal ya lleva su propio padding */
#juma-tickets-wrapper .juma-form-container {
    padding: 24px 9% 4%;
    display: flex;
    height: 90vh;
    overflow: auto;
}

/* Override de estilos del close dentro del header */
#juma-tickets-wrapper .header-ticket #close_modal_tickets {
    position: static;
    padding: 0;
    margin: 0;
}

#juma-tickets-wrapper .header-ticket #close_modal_tickets span {
    font-size: 18px;
    cursor: pointer;
    color: #ffffff;
    opacity: 0.85;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

#juma-tickets-wrapper .header-ticket #close_modal_tickets span:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* ========================================
   BOTÓN ELIMINAR PARTICIPANTE
   ======================================== */
/* Selectores con alta especificidad para sobrescribir Elementor */
/* Botón Eliminar Participante - Alta especificidad */
.juma-modal #juma-tickets-wrapper .juma-form-container .participante-block .user-row button.btn-eliminar-participante,
.juma-modal #juma-tickets-wrapper .participante-block .user-row button.btn-eliminar-participante,
#juma-tickets-wrapper .participante-block .user-row button.btn-eliminar-participante,
.juma-modal .participante-block .user-row button.btn-eliminar-participante,
.juma-modal .user-row button.btn-eliminar-participante {
    background: transparent !important;
    border: 1px solid #ffffff !important;
    color: #fff !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: 10px !important;
    padding: 0 !important;
    transition: all 0.2s ease !important;
    font-size: 12px !important;
    font-family: inherit !important;
    text-transform: none !important;
    font-weight: normal !important;
    line-height: 1 !important;
    flex-basis: auto !important;
    z-index: 10;
    box-shadow: none !important;
}

.juma-modal #juma-tickets-wrapper .juma-form-container .participante-block .user-row button.btn-eliminar-participante:hover,
.juma-modal #juma-tickets-wrapper .participante-block .user-row button.btn-eliminar-participante:hover,
#juma-tickets-wrapper .participante-block .user-row button.btn-eliminar-participante:hover,
.juma-modal .participante-block .user-row button.btn-eliminar-participante:hover,
.juma-modal .user-row button.btn-eliminar-participante:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: #fff !important;
    transform: scale(1.1) !important;
}

/* Botón Editar Participante - Alta especificidad para vencer a Elementor */
.juma-modal #juma-tickets-wrapper .juma-form-container .participante-block .user-row button.btn-editar-participante,
#juma-tickets-wrapper .participante-block .user-row button.btn-editar-participante,
.btn-editar-participante {
    background: transparent !important;
    border: 1px solid #ffffff !important;
    color: #fff !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important; /* Sobrescribir Elementor */
    min-height: 32px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: none; /* Se controla por JS */
    align-items: center !important;
    justify-content: center !important;
    margin-left: 10px !important;
    padding: 0 !important;
    transition: all 0.2s ease !important;
    z-index: 10;
    box-shadow: none !important;
    flex-basis: auto !important;
}

.juma-modal #juma-tickets-wrapper .juma-form-container .participante-block .user-row button.btn-editar-participante svg,
.btn-editar-participante svg {
    width: 16px !important;
    height: 16px !important;
    display: block !important;
    fill: none !important;
    stroke: currentColor !important;
}

.juma-modal #juma-tickets-wrapper .juma-form-container .participante-block .user-row button.btn-editar-participante:hover,
.btn-editar-participante:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: #fff !important;
    transform: scale(1.1) !important;
}

.juma-modal #juma-tickets-wrapper .juma-form-container .participante-block .user-row button.btn-eliminar-participante span,
.juma-modal #juma-tickets-wrapper .participante-block .user-row button.btn-eliminar-participante span,
#juma-tickets-wrapper .participante-block .user-row button.btn-eliminar-participante span,
.juma-modal .participante-block .user-row button.btn-eliminar-participante span,
.juma-modal .user-row button.btn-eliminar-participante span {
    font-size: 12px !important;
    line-height: 1 !important;
}

/* Ocultar botón eliminar cuando es el único participante */
.juma-modal #juma-tickets-wrapper .juma-form-container #participantes-container .participante-block:only-child .user-row button.btn-eliminar-participante,
#participantes-container .participante-block:only-child .user-row button.btn-eliminar-participante,
.participante-block:only-child .btn-eliminar-participante {
    display: none !important;
}

/* ========================================
   BOTONES FILL (SELECCIÓN TIPO TOGGLE)
   ======================================== */
.btn-group-fill-wrapper {
    width: 100%;
    margin: 10px 0;
}

.btn-group-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.btn-group-fill {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Selectores con alta especificidad para sobrescribir Elementor */
.juma-modal #juma-tickets-wrapper .juma-form-container .accordion-content .btn-group-fill button.btn-fill,
.juma-modal #juma-tickets-wrapper .juma-form-container .btn-group-fill-wrapper .btn-group-fill button.btn-fill,
#juma-tickets-wrapper .accordion-content .btn-group-fill button.btn-fill,
.juma-modal .btn-group-fill button.btn-fill {
    background: transparent;
    border: 1px solid #FFFFFF;
    border-radius: 3px !important;
    color: #fff;
    padding: 8px 14px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    min-width: 40px !important;
    text-align: center !important;
    font-family: inherit !important;
    text-transform: none !important;
    line-height: 1.2 !important;
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
}

.juma-modal #juma-tickets-wrapper .juma-form-container .accordion-content .btn-group-fill button.btn-fill:hover,
.juma-modal #juma-tickets-wrapper .juma-form-container .btn-group-fill-wrapper .btn-group-fill button.btn-fill:hover,
#juma-tickets-wrapper .accordion-content .btn-group-fill button.btn-fill:hover,
.juma-modal .btn-group-fill button.btn-fill:hover {
    border-color: #fff !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.juma-modal #juma-tickets-wrapper .juma-form-container .accordion-content .btn-group-fill button.btn-fill.btn-fill-active,
.juma-modal #juma-tickets-wrapper .juma-form-container .btn-group-fill-wrapper .btn-group-fill button.btn-fill.btn-fill-active,
#juma-tickets-wrapper .accordion-content .btn-group-fill button.btn-fill.btn-fill-active,
.juma-modal .btn-group-fill button.btn-fill.btn-fill-active {
    background: #fff;
    color: #333 !important;
    border-color: #fff;
    font-weight: 600 !important;
}

.juma-modal #juma-tickets-wrapper .juma-form-container .accordion-content .btn-group-fill button.btn-fill.btn-fill-active:hover,
.juma-modal #juma-tickets-wrapper .juma-form-container .btn-group-fill-wrapper .btn-group-fill button.btn-fill.btn-fill-active:hover,
#juma-tickets-wrapper .accordion-content .btn-group-fill button.btn-fill.btn-fill-active:hover,
.juma-modal .btn-group-fill button.btn-fill.btn-fill-active:hover {
    background: #f0f0f0 !important;
}

/* Estilo para input hidden de validación */
.btn-fill-value:invalid ~ .btn-group-fill .btn-fill {
    border-color: rgba(231, 76, 60, 0.6);
}

.elementor-3564 .elementor-element.elementor-element-9fdbec4 {
    cursor: pointer;
}

/* ========================================
   ESTILOS RESPONSIVE
   ======================================== */

/* ========================================
   TABLET (max-width: 992px)
   ======================================== */
@media (max-width: 992px) {
    /* Modal content */
    .juma-modal-content {
        width: 95%;
        margin: 3% auto;
        padding: 15px;
    }

    /* Layout principal - mantener flex pero ajustar proporciones */
    .juma-form-container {
        display: flex;
        gap: 15px;
    }

    #juma-tickets-wrapper .juma-form-container {
        padding: 20px 5% 4%;
    }

    /* Columnas */
    .juma-form-left {
        flex: 1.5;
    }

    .juma-form-right {
        flex: 1;
        padding-left: 15px;
        max-height: 55vh;
        font-size: 18px;
    }

    /* Header del modal */
    .header-ticket {
        padding: 8px 15px;
    }

    #juma-tickets-wrapper .header-ticket {
        padding: 10px 5%;
    }

    #juma-tickets-wrapper .header-ticket .juma-tickets-title h3 {
        font-size: 1.6rem;
    }

    /* Event info */
    .event-info {
        padding: 12px 15px;
        gap: 12px;
    }

    .event-info h3 {
        font-size: 1.6rem;
    }

    .event-info p {
        font-size: 16px;
    }

    .event-info .event-thumb img {
        width: 60px;
        height: 60px;
    }

    /* User row */
    .user-row .status {
        font-size: 20px;
    }

    /* Accordion headers */
    .single-product .product-carrera .cart .juma-modal .accordion-item .accordion-header {
        font-size: 14px !important;
        padding: 8px;
    }

    /* Inputs/selects - 2 columnas en tablet */
    .accordion-content.open input,
    .accordion-content.open select {
        flex: 1 1 calc(50% - 10px);
    }

    /* Intro text */
    .intro-text {
        font-size: 16px;
    }

    /* Resumen */
    .resumen-participante p {
        font-size: 14px;
    }

    #total-costo {
        font-size: 16px;
    }
}

/* ========================================
   MOBILE (max-width: 768px)
   ======================================== */
@media (max-width: 768px) {
    /* Modal content */
    .juma-modal-content {
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
        border: none;
        border-radius: 0;
        max-height: 100%; /* Cambiar 100vh a 100% para evitar problemas con barras de navegador */
        overflow-y: scroll; /* Forzar scroll */
        -webkit-overflow-scrolling: touch; /* Scroll suave en iOS */
        position: absolute; /* Cambiar comportamiento de posicionamiento */
        top: 0;
        left: 0;
    }

    /* Asegurar que el wrapper permita expansión */
    #juma-tickets-wrapper {
        min-height: 100%;
        overflow: auto;
    }

    /* Layout principal - una sola columna */
    .juma-form-container {
        flex-direction: column;
        gap: 0;
    }

    #juma-tickets-wrapper .juma-form-container {
        padding: 15px 4%;
    }

    /* Columnas - 100% de ancho */
    .juma-form-left {
        flex: none;
        width: 100%;
        padding-right: 0;
        max-height: none;
        overflow-y: visible;
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .juma-form-right {
        flex: none;
        width: 100%;
        padding-left: 0;
        border-left: none;
        max-height: none;
        overflow-y: visible;
        font-size: 16px;
    }

    /* Header del modal */
    .header-ticket {
        padding: 10px 15px;
    }

    #juma-tickets-wrapper .header-ticket {
        padding: 10px 4%;
    }

    #juma-tickets-wrapper .header-ticket .juma-tickets-title h3 {
        font-size: 1.3rem;
    }

    /* Event info */
    .event-info {
        padding: 10px 12px;
        gap: 10px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .event-info .event-thumb {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 10px;
    }

    .event-info h3 {
        font-size: 1.3rem;
    }

    .event-info p {
        font-size: 14px;
    }

    .event-info .event-thumb img {
        height: auto;
        border-radius: 8px;
    }

    .event-info .event-texts {
        width: 100%;
        text-align: center;
    }

    .event-info .fecha {
        text-align: center;
    }

    /* User row */
    .user-row {
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px 0;
    }

    .user-row i {
        font-size: 18px;
    }

    .user-row .status {
        font-size: 16px;
        margin-left: 0;
        text-align: right;
        margin-top: 5px;
    }

    /* Accordion headers */
    .single-product .product-carrera .cart .juma-modal .accordion-item .accordion-header {
        font-size: 13px !important;
        padding: 10px 8px;
    }

    /* Step number badge */
    .juma-modal #juma-tickets-wrapper .juma-form-container .accordion-item .accordion-header .step-number,
    .juma-modal #juma-tickets-wrapper .accordion-item .accordion-header .step-number,
    #juma-tickets-wrapper .accordion-item .accordion-header .step-number,
    .juma-modal .accordion-item .accordion-header .step-number,
    .accordion-header .step-number {
        min-width: 22px !important;
        height: 22px !important;
        font-size: 12px !important;
        margin-right: 8px !important;
    }

    /* Inputs/selects - 2 columnas en mobile */
    .accordion-content.open input,
    .accordion-content.open select {
        flex: 1 1 calc(50% - 8px);
        height: 42px;
        font-size: 14px;
        padding: 0 12px;
    }

    .accordion-content.open {
        padding: 8px;
        gap: 8px;
        height: 250px;
        overflow: scroll;
    }

    /* Botones fill */
    .juma-modal #juma-tickets-wrapper .juma-form-container .accordion-content .btn-group-fill button.btn-fill,
    .juma-modal #juma-tickets-wrapper .juma-form-container .btn-group-fill-wrapper .btn-group-fill button.btn-fill,
    #juma-tickets-wrapper .accordion-content .btn-group-fill button.btn-fill,
    .juma-modal .btn-group-fill button.btn-fill {
        padding: 8px 12px !important;
        font-size: 13px !important;
        min-width: 45px !important;
    }

    .btn-group-fill {
        gap: 6px;
    }

    /* Botón eliminar participante */
    .juma-modal #juma-tickets-wrapper .juma-form-container .participante-block .user-row button.btn-eliminar-participante,
    .juma-modal #juma-tickets-wrapper .participante-block .user-row button.btn-eliminar-participante,
    #juma-tickets-wrapper .participante-block .user-row button.btn-eliminar-participante,
    .juma-modal .participante-block .user-row button.btn-eliminar-participante,
    .juma-modal .user-row button.btn-eliminar-participante {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        max-width: 28px !important;
        font-size: 11px !important;
        margin-left: 0px !important;
    }

    /* Intro text */
    .intro-text {
        font-size: 15px;
        margin: 15px 0;
    }

    /* Resumen */
    .resumen-header {
        margin-bottom: 15px;
    }

    .resumen-participante p {
        font-size: 13px;
    }

    #total-costo {
        font-size: 15px;
    }

    .resumen-total p {
        font-size: 16px;
    }

    /* Botón agregar participante */
    #btn-agregar-participante {
        font-size: 15px !important;
        padding: 12px 0px !important;
    }

    /* Botón guardar participante */
    .btn-guardar-participante {
        font-size: 15px !important;
        padding: 12px 0px !important;
    }

    /* Submit tickets button */
    .submit-tickets .button.product_type_variable.add_to_cart_button {
        font-size: 16px !important;
        padding: 12px 18px !important;
        width: 100%;
    }

    /* Participante block */
    .participante-block {
        margin: 15px 0;
        padding-bottom: 15px;
    }

    /* Juma form right h3 */
    .juma-form-right h3 {
        padding: 8px;
        font-size: 16px;
    }
}

/* ========================================
   MOBILE PEQUEÑO (max-width: 480px)
   ======================================== */
@media (max-width: 480px) {
    /* Header del modal */
    #juma-tickets-wrapper .header-ticket .juma-tickets-title h3 {
        font-size: 1.1rem;
    }

    #juma-tickets-wrapper .header-ticket {
        padding: 8px 3%;
    }

    #juma-tickets-wrapper .juma-form-container {
        padding: 12px 3%;
    }

    /* Event info - stack vertical en pantallas muy pequeñas */
    .event-info {
        padding: 10px;
        gap: 8px;
        /* Hereda flex-direction: column y align-items: center de 768px */
    }

    .event-info .event-thumb {
        display: flex; /* Restaurar visibilidad */
    }

    .event-info h3 {
        font-size: 1.1rem;
    }

    .event-info p {
        font-size: 13px;
    }

    /* User row */
    .user-row {
        padding: 8px 0;
    }

    .user-row i {
        font-size: 16px;
    }

    .user-row .status {
        font-size: 14px;
    }

    /* Accordion headers */
    .single-product .product-carrera .cart .juma-modal .accordion-item .accordion-header {
        font-size: 12px !important;
        padding: 8px 6px;
    }

    /* Step number badge - más pequeño */
    .juma-modal #juma-tickets-wrapper .juma-form-container .accordion-item .accordion-header .step-number,
    .juma-modal #juma-tickets-wrapper .accordion-item .accordion-header .step-number,
    #juma-tickets-wrapper .accordion-item .accordion-header .step-number,
    .juma-modal .accordion-item .accordion-header .step-number,
    .accordion-header .step-number {
        min-width: 20px !important;
        height: 20px !important;
        font-size: 11px !important;
        margin-right: 6px !important;
        padding: 0 4px !important;
    }

    /* Inputs/selects - 1 columna en mobile pequeño */
    .accordion-content.open input,
    .accordion-content.open select {
        flex: 1 1 100%;
        height: 40px;
        font-size: 13px;
        padding: 0 10px;
    }

    .accordion-content.open {
        padding: 6px;
        gap: 6px;
    }

    /* Botones fill - más compactos */
    .juma-modal #juma-tickets-wrapper .juma-form-container .accordion-content .btn-group-fill button.btn-fill,
    .juma-modal #juma-tickets-wrapper .juma-form-container .btn-group-fill-wrapper .btn-group-fill button.btn-fill,
    #juma-tickets-wrapper .accordion-content .btn-group-fill button.btn-fill,
    .juma-modal .btn-group-fill button.btn-fill {
        padding: 6px 10px !important;
        font-size: 12px !important;
        min-width: 40px !important;
    }

    .btn-group-fill {
        gap: 5px;
    }

    .btn-group-label {
        font-size: 12px;
        margin-bottom: 6px;
    }

    /* Botón eliminar participante - más pequeño */
    .juma-modal #juma-tickets-wrapper .juma-form-container .participante-block .user-row button.btn-eliminar-participante,
    .juma-modal #juma-tickets-wrapper .participante-block .user-row button.btn-eliminar-participante,
    #juma-tickets-wrapper .participante-block .user-row button.btn-eliminar-participante,
    .juma-modal .participante-block .user-row button.btn-eliminar-participante,
    .juma-modal .user-row button.btn-eliminar-participante {
        width: 26px !important;
        height: 26px !important;
        min-width: 26px !important;
        max-width: 26px !important;
        font-size: 10px !important;
        margin-left: 0px !important;
    }

    /* Intro text */
    .intro-text {
        font-size: 14px;
        margin: 12px 0;
    }

    /* Resumen */
    .resumen-participante p {
        font-size: 12px;
        line-height: 1.4;
    }

    #total-costo {
        font-size: 14px;
    }

    .resumen-total p {
        font-size: 15px;
    }

    /* Botón agregar participante */
    #btn-agregar-participante {
        font-size: 14px !important;
        padding: 10px 0px !important;
    }

    /* Botón guardar participante */
    .btn-guardar-participante {
        font-size: 14px !important;
        padding: 10px 0px !important;
    }

    /* Submit tickets button */
    .submit-tickets .button.product_type_variable.add_to_cart_button {
        font-size: 14px !important;
        padding: 10px 15px !important;
    }

    /* Participante block */
    .participante-block {
        margin: 12px 0;
        padding-bottom: 12px;
    }

    /* Juma form right h3 */
    .juma-form-right h3 {
        padding: 6px;
        font-size: 14px;
    }

    /* Accordion content buttons */
    .accordion-content.open button {
        padding: 8px;
        font-size: 13px;
    }

    /* Close modal button */
    #close_modal_tickets span {
        font-size: 16px;
    }

    #juma-tickets-wrapper .header-ticket #close_modal_tickets span {
        font-size: 16px;
    }
}

/* ========================================
   MEJORAS DE ACCESIBILIDAD TÁCTIL
   ======================================== */
@media (max-width: 768px) {
    /* Asegurar áreas táctiles mínimas de 44px */
    .accordion-header {
        min-height: 44px;
    }

    .accordion-content.open button {
        min-height: 44px;
    }

    #btn-agregar-participante {
        min-height: 48px !important;
    }

    .btn-guardar-participante {
        min-height: 48px !important;
    }

    .submit-tickets .button.product_type_variable.add_to_cart_button {
        min-height: 48px !important;
    }
}

