/* ========================= */
/* 🔥 FIX AGRESIVO ELEMENTOR (SOLO TU BLOQUE) */
@media (max-width: 768px) {

    .elementor-element-3576a7 {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        margin: 0 !important;
    }

    .elementor-element-3576a7.e-con-boxed {
        max-width: 100% !important;
    }

    .elementor-element-3576a7 .e-con-inner {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* ========================= */
/* WRAPPER */
.rt-form-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 30px 15px;
}

/* ========================= */
/* FORMULARIO STEP 1 */
.rt-form {
    background: #fff;
    padding: 30px;
    border-radius: 14px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;

    flex-wrap: nowrap;

    max-width: 1200px;
    width: 100%;

    margin: 0 auto;

    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* ========================= */
/* CAMPOS */
.rt-field {
    display: flex;
    flex-direction: column;
    min-width: 160px;
}

.rt-field.small {
    min-width: 70px;
    width: 70px;
}

.rt-field.small select {
    width: 70px;
    text-align: center;
}

/* DESKTOP */
@media (min-width: 1025px) {

    .rt-field.small {
        min-width: 100px;
        width: 100px;
    }

    .rt-field.small select {
        width: 100px;
        font-size: 15px;
    }
}

/* LABEL */
.rt-field label {
    font-size: 16px;
    margin-bottom: 6px;
    color: #333;
    font-weight: 600;
}

/* INPUTS */
.rt-field input,
.rt-field select {
    height: 50px;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 15px;
}

/* BOTONES */
.rt-actions {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.rt-btn {
    height: 50px;
    padding: 0 22px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
}

.rt-btn.cotizar {
    background: #00b5ad;
    color: #fff;
}

.rt-btn.reservar {
    background: #0073aa;
    color: #fff;
}

/* ========================= */
/* TABLET */
@media (max-width: 1024px) {

    .rt-form {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .rt-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* ========================= */
/* MOBILE */
@media (max-width: 768px) {

    .rt-form-wrapper {
        display: block;
        padding: 10px;
    }

    .rt-form {
        flex-direction: column;
        gap: 12px;

        width: 100%;
        max-width: 100%;

        margin: 0;
        padding: 15px;

        border-radius: 12px;
        box-shadow: none;
    }

    .rt-field,
    .rt-field.small {
        width: 100%;
        min-width: 100%;
    }

    .rt-field.small select {
        width: 100%;
    }

    .rt-actions {
        flex-direction: column;
        width: 100%;
        margin-left: 0;
        gap: 10px;
    }

    .rt-btn {
        width: 100%;
    }
}

/* ========================= */
/* 🔥 STEP 2 */
.rt-step2-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;

    max-width: 1200px;
    margin: 40px auto;
    padding: 0 15px;

    align-items: start;
}

/* RESUMEN */
.rt-resumen-box {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);

    position: sticky;
    top: 120px;
    height: fit-content;
}

.rt-resumen-box p {
    margin: 8px 0;
    font-size: 15px;
}

/* FORMULARIO */
.rt-form-box {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.rt-form-box input,
.rt-form-box textarea {
    width: 100%;
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.rt-form-box textarea {
    min-height: 100px;
}

.rt-form-box .rt-btn {
    width: 100%;
    margin-top: 10px;
}


/* ========================= */
/* 🔥 HEADERS CON ICONOS (PRO) */

/* ========================= */
/* 🔥 HEADER PREMIUM (ESTILO BOOKING) */

.rt-resumen-box h3,
.rt-form-box h3 {
    position: relative;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 18px 22px;

    margin: -20px -20px 20px -20px;

    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;

    background: linear-gradient(180deg, #f8fafc, #eef2f6);
    border-bottom: 1px solid #e1e6eb;
    border-radius: 12px 12px 0 0;
}

/* 🔵 Línea lateral tipo Booking */
.rt-resumen-box h3::after,
.rt-form-box h3::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #0073aa;
    border-radius: 12px 0 0 0;
}

/* ========================= */
/* 🔹 ICONOS PRO (SIN EMOJIS) */

/* CONTENEDOR DEL ICONO */
.rt-resumen-box h3::before,
.rt-form-box h3::before {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    border-radius: 8px;

    background: #0073aa;
    color: #fff;

    font-size: 14px;
    font-weight: bold;
}

/* ICONO RESUMEN */
.rt-resumen-box h3::before {
    content: "✓";
}

/* ICONO FORMULARIO */
.rt-form-box h3::before {
    content: "✎";
}

/* ========================= */
/* ✨ HOVER SUTIL (PRO) */
.rt-resumen-box,
.rt-form-box {
    transition: all 0.25s ease;
}

.rt-resumen-box:hover,
.rt-form-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.08);
}

/* ========================= */
/* 🔥 STEPS BOOKING */
.rt-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 1000px;
    margin: 30px auto 10px;
}

.rt-step {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #888;
    font-size: 14px;
}

.rt-step .circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rt-steps .line {
    height: 2px;
    width: 60px;
    background: #ddd;
}

.rt-step.completed .circle {
    background: #0073aa;
    position: relative;
}

.rt-step.completed .circle::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 18px;
    border: solid #fff;
    border-width: 0 3px 3px 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%) rotate(45deg);
}

.rt-step.completed span {
    color: #0073aa;
}

.rt-step.active .circle {
    background: #0073aa;
    color: #fff;
}

.rt-step.active span {
    color: #000;
    font-weight: 600;
}

/* ========================= */
/* MOBILE STEP 2 */
@media (max-width: 768px) {

    .rt-step2-container {
        grid-template-columns: 1fr;
    }

    .rt-resumen-box {
        position: relative;
        top: 0;
    }

    .rt-steps {
        flex-direction: column;
        gap: 15px;
    }

    .rt-steps .line {
        width: 2px;
        height: 20px;
    }
}

/* ========================= */
/* HEADER CON BOTÓN */

.rt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 18px 22px;
    margin: -20px -20px 20px -20px;

    background: linear-gradient(180deg, #f8fafc, #eef2f6);
    border-bottom: 1px solid #e1e6eb;
    border-radius: 12px 12px 0 0;
}




/* ========================= */
/* LINK MODIFICAR */

.rt-modificar {
    margin-top: 5px;
    padding-top: 1px;
    border-top: 2px solid #d4d7db;
    text-align: center;
}

.rt-modificar a {
    font-size: 14px;
    color: #0073aa !important;
    text-decoration: none;
    font-weight: 500;
}

.rt-modificar a:hover {
    text-decoration: underline;
    color: #005f8d !important;
}


/* ========================= */
/* LINEA DIVISORA */
.rt-divider {
    margin: 5px 0;
    height: 1px;
    background: #d4d7db;
    width: 100%;
}

/* ========================= */
/* 🔥 MODO COTIZACIÓN (VERDE) */

.rt-cotizacion .rt-resumen-box h3::before,
.rt-cotizacion .rt-form-box h3::before {
    background: #00b5ad;
}

.rt-cotizacion .rt-resumen-box h3::after,
.rt-cotizacion .rt-form-box h3::after {
    background: #00b5ad;
}

/* ========================= */
/* 🔥 GRUPO DE SELECTS */
.rt-select-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px; /* 👈 ESTE ES EL ESPACIO CLAVE */
}

/* 🔥 TEXTAREA */
#observaciones {
    margin-top: 5px;
}

/* ========================= */
/* ORIGEN INLINE */
.rt-origen-group {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.rt-origen-group select {
    flex: 1;
}

.rt-origen-group input {
    flex: 1;
    display: none; /* se oculta por defecto */
}

/* ========================= */
/* FILA DOBLE */
.rt-fila-doble {
    display: grid;
    grid-template-columns: 40% 60%; /* 👈 AQUÍ ESTÁ LA MAGIA */
    gap: 10px;
    margin-bottom: 12px;
}

/* ORIGEN */
.rt-origen-group {
    display: flex;
    gap: 10px;
}

.rt-origen-group input {
    display: none;
    flex: 1;
}

/* CUANDO ESTÁ ACTIVO "OTRO" */
.rt-fila-doble.activo {
    grid-template-columns: 1fr; /* 👈 rompe la fila */
}

.rt-fila-doble.activo .rt-doc-group {
    grid-column: 1 / -1; /* 👈 baja el documento */
}


/* ========================= */
/* SOLO CUANDO ESTÁ ACTIVO (OTRO) */
.rt-fila-doble.activo .rt-origen-group select {
    flex: 0 0 30%;
    max-width: 30%;
}

.rt-fila-doble.activo .rt-origen-group input {
    flex: 0 0 70%;
    max-width: 70%;
}


/* ========================= */
/*  FIX MOBILE ORIGEN + DOCUMENTO */

@media (max-width: 768px) {

    .rt-fila-doble {
        grid-template-columns: 1fr !important; /* 👈 todo en 1 columna */
    }

    .rt-origen-group {
        flex-direction: column; /* 👈 select arriba, input abajo */
    }

    .rt-origen-group select,
    .rt-origen-group input {
        width: 100% !important;
        max-width: 100% !important;
    }

}

/* ========================= */
.rt-resumen-box {
    background: #f0f4f7; /* gris  */
    border: 1px solid #eee;
}



/* ========================= */
/* 📱 STEPS EN HORIZONTAL MOBILE */
@media (max-width: 768px) {

    .rt-steps {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
        margin: 15px auto;
    }

    .rt-step {
        flex-direction: column;
        align-items: center;
        gap: 4px;
        font-size: 12px;
        text-align: center;
        flex: 1;
    }

    .rt-step span {
        font-size: 13px;
    }

    .rt-steps .line {
        height: 2px;
        width: 100%;
        flex: 1;
    }

    .rt-step .circle {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }

}

/* ========================= */
/* 📱 FORM MÁS ANCHO EN MOBILE */
@media (max-width: 768px) {

    .rt-form-box {
        margin-left: -35px;
        margin-right: -35px;
        border-radius: 0;
    }

}

@media (max-width: 768px) {

    .rt-form-box input,
    .rt-form-box select,
    .rt-form-box textarea {
        font-size: 16px; /* evita zoom en iPhone */
    }

}

/* ========================= */
/* 📱 ESPACIADO REAL ENTRE SELECTS */
@media (max-width: 768px) {

    .rt-select-group {
        display: flex !important;
        flex-direction: column !important;
    }

    .rt-select-group > * {
        margin-bottom: 12px !important;
    }

    .rt-select-group > *:last-child {
        margin-bottom: 0 !important;
    }

}

/* ========================= */
/* 📱 FIX SELECTS MOBILE REAL */
@media (max-width: 768px) {

    .rt-select-group {
        display: block !important;
    }

    .rt-select-group select {
        width: 100% !important;
        display: block !important;
        margin-bottom: 12px !important;
    }

    .rt-select-group select:last-child {
        margin-bottom: 0 !important;
    }

}