/* ==========================================================================
   Landing flow pages (compra, cotizacion, registro).
   Loaded after landing.css by front/layout/landing-flow.blade.php; reuses its
   tokens (navy #0D1B3E, accent #4CC1F9, muted #6B7A99, bg #F5F5F5).
   ========================================================================== */

/* ============ Layout ============ */
.flow-body { background: #F5F5F5; }
.flow-page { padding-top: 68px; min-height: 100vh; }
.flow-back-link { color: #0D1B3E; }
.flow-back-link:hover { color: #4CC1F9; }

.flow-container { max-width: 1280px; margin: 0 auto; padding: 3rem 1.5rem 5rem; }
.flow-intro { max-width: 46rem; margin-bottom: 2.5rem; }
.flow-eyebrow {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #4CC1F9;
}
.flow-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(76,193,249,0.3);
    background: rgba(76,193,249,0.1);
    color: #4CC1F9;
    font-size: 0.75rem;
    font-weight: 600;
}
.flow-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: clamp(1.875rem, 4vw, 2.25rem);
    letter-spacing: -0.025em;
    line-height: 1.2;
    color: #0D1B3E;
    margin-top: 0.75rem;
}
.flow-lead { margin-top: 0.75rem; color: #6B7A99; line-height: 1.65; }
.flow-lead--lg { font-size: 1.125rem; }

.flow-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24rem;
    align-items: start;
    gap: 2rem;
}
.flow-stack { display: grid; gap: 1.5rem; min-width: 0; }

/* ============ Cards ============ */
.flow-card {
    background: #fff;
    border: 1px solid rgba(13,27,62,0.08);
    border-radius: 0.875rem;
    min-width: 0;
}
.flow-card-head { padding: 1.5rem 1.5rem 0; }
.flow-card-body { padding: 1.5rem; }
.flow-card-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: #0D1B3E;
}
.flow-card-title .fa { color: #4CC1F9; font-size: 1.1rem; }
.flow-card-desc { margin-top: 0.375rem; font-size: 0.95rem; color: #6B7A99; line-height: 1.6; }

.flow-summary {
    position: sticky;
    top: 92px;
    border-color: rgba(76,193,249,0.3);
    box-shadow: 0 20px 40px -12px rgba(13,27,62,0.08);
}
.flow-summary-head { padding: 1.5rem; border-bottom: 1px solid rgba(13,27,62,0.08); }
.flow-summary-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #4CC1F9;
}
.flow-summary-title {
    margin-top: 0.25rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #0D1B3E;
}
.flow-summary-body { padding: 1.5rem; display: grid; gap: 1.25rem; }

.flow-price {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 2.25rem;
    letter-spacing: -0.025em;
    color: #0D1B3E;
    line-height: 1.1;
}
.flow-price-suffix {
    margin-left: 0.5rem;
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 0.875rem;
    letter-spacing: normal;
    color: #6B7A99;
}

/* ============ Form controls ============ */
.flow-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.flow-field { display: grid; gap: 0.5rem; align-content: start; min-width: 0; }
.flow-field--full { grid-column: 1 / -1; }
.flow-field--hidden { display: none; }
.flow-label { font-size: 0.875rem; font-weight: 500; color: #0D1B3E; }
.flow-optional { font-weight: 400; color: #6B7A99; }
.flow-input {
    width: 100%;
    height: 2.5rem;
    padding: 0 0.875rem;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    background: #EEF2F8;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    color: #0D1B3E;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.flow-input::placeholder { color: #8A96B0; }
.flow-input:focus {
    outline: none;
    background: #fff;
    border-color: #4CC1F9;
    box-shadow: 0 0 0 3px rgba(76,193,249,0.25);
}
select.flow-input {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 2.25rem;
    background-image: linear-gradient(45deg, transparent 50%, #6B7A99 50%), linear-gradient(135deg, #6B7A99 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
    background-size: 5px 5px;
    background-repeat: no-repeat;
}
textarea.flow-input { height: auto; min-height: 5rem; padding: 0.75rem 0.875rem; resize: vertical; }

.flow-segmented {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.25rem;
    padding: 0.25rem;
    border-radius: 0.625rem;
    background: #EEF2F8;
}
.flow-segmented-btn {
    height: 2.25rem;
    border: 0;
    border-radius: 0.5rem;
    background: transparent;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #0D1B3E;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
}
.flow-segmented-btn:hover { background: rgba(255,255,255,0.6); }
.flow-segmented-btn.is-active { background: #fff; box-shadow: 0 1px 3px rgba(13,27,62,0.12); }
.flow-segmented-btn:focus-visible { outline: 2px solid #4CC1F9; outline-offset: 2px; }

.flow-check { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.875rem; line-height: 1.6; color: #6B7A99; }
.flow-check input { width: 1rem; height: 1rem; margin-top: 0.2rem; flex-shrink: 0; accent-color: #4CC1F9; }
.flow-link { font-weight: 600; color: #4CC1F9; text-decoration: none; }
.flow-link:hover { text-decoration: underline; }
.flow-muted-link { font-size: 0.875rem; color: #6B7A99; }

.flow-recaptcha { display: flex; justify-content: flex-start; overflow: hidden; margin-top: 1.5rem; }

/* ============ Buttons ============ */
.flow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    height: 2.75rem;
    border: 0;
    border-radius: 0.5rem;
    background: #4CC1F9;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0D1B3E;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s;
}
.flow-btn:hover { background: #6FCEFA; }
.flow-btn:focus-visible { outline: 2px solid #0D1B3E; outline-offset: 2px; }
.flow-btn--auto { width: auto; padding: 0 1.75rem; }

.flow-secure { display: flex; align-items: center; justify-content: center; gap: 0.5rem; font-size: 0.75rem; color: #6B7A99; }
.flow-note {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background: #EEF2F8;
    font-size: 0.75rem;
    line-height: 1.6;
    color: #6B7A99;
}
.flow-note .fa { margin-top: 0.15rem; color: #4CC1F9; }
.flow-fineprint { text-align: center; font-size: 0.75rem; line-height: 1.6; color: #6B7A99; }
.flow-cancel { text-align: center; }

/* ============ Compra: account tabs + plan steppers ============ */
.flow-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.25rem;
    list-style: none;
    padding: 0.25rem;
    margin: 0 0 1.5rem;
    border-radius: 0.625rem;
    background: #EEF2F8;
}
.flow-tabs a {
    display: block;
    padding: 0.55rem 0.75rem;
    border-radius: 0.5rem;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #6B7A99;
    text-decoration: none;
}
.flow-tabs li.active a { background: #fff; color: #0D1B3E; box-shadow: 0 1px 3px rgba(13,27,62,0.12); }
.flow-tabs a:focus-visible { outline: 2px solid #4CC1F9; outline-offset: 2px; }
.flow-pane-head { margin-bottom: 1.5rem; }
.flow-pane-stack { display: grid; gap: 1.5rem; }

.flow-steppers { display: grid; gap: 0.875rem; }
.flow-stepper { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; font-size: 0.875rem; color: #6B7A99; }
.flow-stepper-label { display: flex; align-items: center; gap: 0.75rem; }
.flow-stepper-label .fa { color: #4CC1F9; }
.flow-stepper-ctrl { display: flex; align-items: center; gap: 0.25rem; }
.flow-stepper-btn {
    width: 1.75rem;
    height: 1.75rem;
    border: 1px solid rgba(13,27,62,0.12);
    border-radius: 0.375rem;
    background: #fff;
    color: #0D1B3E;
    font-size: 0.7rem;
    cursor: pointer;
}
.flow-stepper-btn:hover:not([disabled]) { border-color: #4CC1F9; color: #4CC1F9; }
.flow-stepper-btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.flow-stepper-input {
    width: 4.75rem;
    height: 1.75rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
    background: #EEF2F8;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    color: #0D1B3E;
}
.flow-features { display: grid; gap: 0.75rem; list-style: none; }
.flow-features li { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; color: #6B7A99; }
.flow-features .fa { color: #4CC1F9; }

/* ============ Cotizacion: sliders + estimate ============ */
.flow-sliders { display: grid; gap: 2rem; }
.flow-slider-row { display: grid; gap: 0.75rem; }
.flow-slider-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.flow-slider-value { font-family: 'Poppins', sans-serif; font-weight: 700; color: #0D1B3E; }
.flow-slider-line { display: flex; align-items: center; gap: 0.75rem; }
.flow-range {
    --flow-fill: 0%;
    flex: 1;
    min-width: 0;
    height: 1.25rem;
    margin: 0;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}
.flow-range::-webkit-slider-runnable-track {
    height: 0.5rem;
    border-radius: 999px;
    background: linear-gradient(to right, #4CC1F9 var(--flow-fill), #EEF2F8 var(--flow-fill));
}
.flow-range::-moz-range-track { height: 0.5rem; border-radius: 999px; background: #EEF2F8; }
.flow-range::-moz-range-progress { height: 0.5rem; border-radius: 999px; background: #4CC1F9; }
.flow-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 1.1rem;
    height: 1.1rem;
    margin-top: -0.3rem;
    border: 2px solid #4CC1F9;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(13,27,62,0.2);
}
.flow-range::-moz-range-thumb {
    width: 1rem;
    height: 1rem;
    border: 2px solid #4CC1F9;
    border-radius: 50%;
    background: #fff;
}
.flow-range:focus-visible { outline: none; }
.flow-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(76,193,249,0.35); }
.flow-range-hint { display: flex; justify-content: space-between; font-size: 0.75rem; color: #8A96B0; }

/* premium.js rebuilds this block on every change: <h2><sup>$</sup>N <sup>MXN +IVA</sup></h2> */
.js-precio_cotizacion h2 {
    text-align: left;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 2.25rem;
    letter-spacing: -0.025em;
    line-height: 1.1;
    color: #0D1B3E;
}
.js-precio_cotizacion sup { position: static; vertical-align: baseline; font-size: inherit; }
.js-precio_cotizacion sup:last-child {
    margin-left: 0.5rem;
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 0.875rem;
    letter-spacing: normal;
    color: #6B7A99;
}

.flow-table { border: 1px solid rgba(13,27,62,0.08); border-radius: 0.75rem; background: rgba(238,242,248,0.5); }
.flow-table-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem; font-size: 0.875rem; }
.flow-table-row + .flow-table-row { border-top: 1px solid rgba(13,27,62,0.08); }
.flow-table-row span { color: #6B7A99; }
.flow-table-row strong { color: #0D1B3E; }

.flow-alert {
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(220,38,38,0.25);
    background: #FEF2F2;
    color: #991B1B;
    font-size: 0.875rem;
}

/* ============ Legacy JS hooks (no Bootstrap CSS on these pages) ============ */
.ocultar, .hidden { display: none !important; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}
.tab-content > .tab-pane { display: none; }
.tab-content > .active { display: block; }
.collapse { display: none; }
.collapse.in { display: block; }
.fade { opacity: 0; transition: opacity 0.15s linear; }
.fade.in { opacity: 1; }

/* Bootstrap 3 modal, restyled. bootstrap.min.js toggles display/.in. */
.modal-open { overflow: hidden; }
.modal {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: none;
    overflow: hidden;
    outline: 0;
}
.modal-open .modal { overflow-x: hidden; overflow-y: auto; }
.modal-dialog { position: relative; width: auto; margin: 1rem; }
.modal.fade .modal-dialog { transform: translate(0, -10%); transition: transform 0.25s ease-out; }
.modal.in .modal-dialog { transform: none; }
.modal-content {
    position: relative;
    border-radius: 0.875rem;
    background: #fff;
    box-shadow: 0 24px 60px -12px rgba(13,27,62,0.35);
    outline: 0;
}
.modal-backdrop { position: fixed; inset: 0; z-index: 1040; background: #0D1B3E; }
.modal-backdrop.fade { opacity: 0; }
.modal-backdrop.in { opacity: 0.5; }
.modal-body { padding: 2rem 1.5rem; }
.text-center { text-align: center; }
/* front/compra/modalCargaInfo.blade.php (shared partial, legacy markup) */
#modalCargaInfo .modal-body img { display: inline-block; }
#modalCargaInfo .modal-body h4 { margin-top: 1rem; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.1rem; color: #0D1B3E; }
#modalCargaInfo .modal-body span { display: block; margin-top: 0.5rem; font-size: 0.875rem; color: #6B7A99; }
@media (min-width: 768px) { .modal-dialog { width: 32rem; margin: 4rem auto; } }

.flow-modal { padding: 2.25rem 1.75rem 1.75rem; text-align: center; }
.flow-modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: #D1FAE5;
}
.flow-modal-title { margin-top: 1.25rem; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.5rem; color: #0D1B3E; }
.flow-modal-text { margin-top: 0.75rem; font-size: 0.95rem; line-height: 1.65; color: #6B7A99; }
.flow-modal-text strong { color: #0D1B3E; }
.flow-modal-actions { display: grid; gap: 1rem; justify-items: center; margin-top: 1.75rem; }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
    .flow-grid { grid-template-columns: minmax(0, 1fr); }
    .flow-summary { position: static; }
}
@media (max-width: 640px) {
    .flow-container { padding: 2rem 1rem 6rem; }
    .flow-fields { grid-template-columns: minmax(0, 1fr); }
    .flow-card-head { padding: 1.25rem 1.25rem 0; }
    .flow-card-body, .flow-summary-head, .flow-summary-body { padding: 1.25rem; }
    .flow-price, .js-precio_cotizacion h2 { font-size: 2rem; }
}
@media (max-width: 360px) {
    /* reCAPTCHA is a fixed 304px iframe: scale it down on very narrow phones. */
    .flow-recaptcha .g-recaptcha { transform: scale(0.88); transform-origin: 0 0; }
}
