/**
 * Polizasura Core - estilos adicionales de formulario y comparador.
 * Los estilos base estan en el tema hijo (style.css).
 * v1.4.0 - Nuevos estilos: form v2 (12 campos), hub 3 categorias,
 * landing hero por categoria, Plan Vive grid.
 */

.polizasura-tabs {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 51, 160, 0.08);
    overflow: hidden;
    margin: 32px 0;
}

.polizasura-tab-buttons {
    display: flex;
    background: #f4f5f7;
    border-bottom: 1px solid #e1e4e8;
}

.polizasura-tab-btn {
    flex: 1;
    padding: 18px 24px;
    background: transparent;
    border: none;
    font-weight: 700;
    color: #58595B;
    cursor: pointer;
    font-size: 1rem;
    transition: all .2s ease;
    border-bottom: 3px solid transparent;
}

.polizasura-tab-btn:hover { color: #0033A0; }

.polizasura-tab-btn.is-active {
    color: #0033A0;
    background: #fff;
    border-bottom-color: #FFD100;
}

.polizasura-tab-panel {
    display: none;
    padding: 32px;
}
.polizasura-tab-panel.is-active { display: block; }

.polizasalud.coparador-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.polizasalud.coparador-grid h4 {
    color: #0033A0;
    font-size: 1.1rem;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .polizasalud.coparador-grid { grid-template-columns: 1fr; gap: 24px; }
    .polizasura-tab-btn { padding: 14px 8px; font-size: 0.85rem; }
    .polizasura-tab-panel { padding: 20px; }
}

.polizasura-coberturas-lista {
    list-style: none;
    padding: 0;
}
.polizasura-coberturas-lista li {
    padding: 10px 0 10px 32px;
    position: relative;
    border-bottom: 1px solid #eef0f2;
    color: #333;
}
.polizasura-coberturas-lista li:last-child { border-bottom: none; }
.polizasura-coberturas-lista li::before {
    content: '';
    position: absolute;
    left: 0; top: 12px;
    width: 20px; height: 20px;
    background: #00A758;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3E%3Cpath d='M6.5 11L3 7.5l1.4-1.4L6.5 8.2l5.1-5.1L13 4.5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px;
}

/* ==========================================================================
   v1.4.0 - FORMULARIO V2 (cotizador de 12 campos, 3 categorias)
   ========================================================================== */
.polizasura-form--v2 { display: block; }

.polizasura-form--v2 .form-group { margin-bottom: 16px; }

.polizasura-form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 640px) {
    .polizasura-form-row-2 { grid-template-columns: 1fr; gap: 0; }
}

.form-group-label {
    font-weight: 700;
    color: #001D5C;
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.polizasura-radio-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.polizasura-radio {
    flex: 1 1 120px;
    position: relative;
    cursor: pointer;
    border: 2px solid #E1E4E8;
    border-radius: 10px;
    padding: 10px 14px;
    background: #fff;
    text-align: center;
    font-weight: 600;
    color: #58595B;
    transition: all .18s ease;
    display: block;
    font-size: 0.95rem;
}
.polizasura-radio input {
    position: absolute;
    opacity: 0;
    inset: 0;
    cursor: pointer;
}
.polizasura-radio:hover {
    border-color: #0033A0;
    color: #0033A0;
}
.polizasura-radio:has(input:checked) {
    border-color: #0033A0;
    background: #E8EEFA;
    color: #0033A0;
    box-shadow: 0 0 0 3px rgba(0, 51, 160, 0.12);
}

.polizasura-conditional {
    margin-top: 10px;
    padding: 12px 14px;
    background: #F4F5F7;
    border-left: 3px solid #0033A0;
    border-radius: 6px;
    display: none;
}
.polizasura-conditional.is-visible { display: block; }

.form-hint {
    font-size: 0.82rem;
    color: #58595B;
    margin-top: 4px;
    display: block;
}
.form-hint--warning {
    color: #B8550B;
    font-weight: 600;
    background: #FFF4E5;
    padding: 8px 10px;
    border-radius: 6px;
    border-left: 3px solid #E68A00;
    margin-top: 8px;
}

.form-footer-note {
    font-size: 0.78rem;
    color: #8A8C91;
    line-height: 1.5;
    margin-top: 12px;
}

.polizasura-embarazo-section { display: none; }
.polizasura-embarazo-section.is-visible { display: block; }

/* ==========================================================================
   v1.4.0 - HUB 3 CATEGORIAS (home_simple)
   ========================================================================== */
/* Hub hero hereda el fondo azul oscuro del .polizasura-hero base y solo
   ajusta el layout (centrado, max-width) y asegura que no haya el SVG
   de familia del v2 (que es el layout de 2 columnas). */
.polizasura-hero--hub {
    padding: 70px 20px 50px;
    text-align: center;
}
.polizasura-hero-hub-container {
    max-width: 820px;
    margin: 0 auto;
    display: block;
    position: relative;
    z-index: 1;
}
.polizasura-hero--hub h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #fff;
    line-height: 1.15;
    margin: 16px 0;
}
/* Highlight subtil estilo "marker": solo subraya, no tapa el texto.
   Usamos background-size/position + box-decoration-break para que
   funcione bien en saltos de linea. color !important para vencer
   la regla heredada .polizasura-hero h1 .highlight { color: amarillo }
   que es la que hacia que texto + fondo fueran amarillos (ilegible). */
.polizasura-hero--hub h1 .highlight,
.polizasura-hero--categoria h1 .highlight {
    color: #fff !important;
    background-image: linear-gradient(120deg, rgba(255, 209, 0, 0.7) 0%, rgba(255, 209, 0, 0.7) 100%);
    background-size: 100% 30%;
    background-position: 0 90%;
    background-repeat: no-repeat;
    padding: 0 4px;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    display: inline;
}
.polizasura-hero-hub-container p.lead,
.polizasura-hero--categoria .polizasura-hero-copy p.lead {
    color: rgba(255, 255, 255, 0.95);
}
.polizasura-hero-hub-container .polizasura-hero-tag,
.polizasura-hero--categoria .polizasura-hero-tag {
    color: #FFD100;
}

.polizasura-hub .polizasura-hub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 900px) {
    .polizasura-hub .polizasura-hub-grid { grid-template-columns: 1fr; }
}

.polizasura-hub-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fff;
    border: 2px solid #E1E4E8;
    border-radius: 18px;
    padding: 28px;
    text-decoration: none;
    color: #001D5C;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
    position: relative;
    overflow: hidden;
}
.polizasura-hub-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 51, 160, 0.12);
    border-color: #0033A0;
    color: #001D5C;
}
.polizasura-hub-card h3 {
    color: #001D5C;
    font-size: 1.35rem;
    margin: 4px 0 6px;
}
.polizasura-hub-card p {
    color: #58595B;
    font-size: 0.97rem;
    line-height: 1.5;
    margin: 0;
    flex: 1;
}
.polizasura-hub-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #0033A0;
}
.polizasura-hub-eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #0033A0;
}
.polizasura-hub-cta {
    margin-top: 12px;
    font-weight: 700;
    color: #0033A0;
    display: inline-block;
}

.polizasura-hub-card--complementario .polizasura-hub-icon { background: #00A19A; }
.polizasura-hub-card--complementario .polizasura-hub-eyebrow,
.polizasura-hub-card--complementario .polizasura-hub-cta { color: #00A19A; }
.polizasura-hub-card--complementario:hover { border-color: #00A19A; }

.polizasura-hub-card--vida .polizasura-hub-icon { background: #7E5BEF; }
.polizasura-hub-card--vida .polizasura-hub-eyebrow,
.polizasura-hub-card--vida .polizasura-hub-cta { color: #7E5BEF; }
.polizasura-hub-card--vida:hover { border-color: #7E5BEF; }

/* ==========================================================================
   v1.4.0 - HERO CATEGORIA (landing salud/complementario/vida)
   ========================================================================== */
.polizasura-hero--categoria {
    padding: 64px 20px 40px;
    background: linear-gradient(135deg, #E8EEFA 0%, #FFF 55%);
}
.polizasura-hero--categoria .polizasura-hero-container {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    align-items: start;
}
@media (max-width: 960px) {
    .polizasura-hero--categoria .polizasura-hero-container { grid-template-columns: 1fr; gap: 24px; }
}
.polizasura-hero--categoria h1 {
    font-size: clamp(1.9rem, 3.6vw, 2.8rem);
    line-height: 1.15;
    color: #001D5C;
    margin: 12px 0 16px;
}
.polizasura-hero--categoria h1 .highlight {
    background: linear-gradient(180deg, transparent 60%, #FFD100 60%);
    padding: 0 6px;
}
.polizasura-hero--complementario {
    background: linear-gradient(135deg, #E5F5F3 0%, #FFF 60%);
}
.polizasura-hero--vida {
    background: linear-gradient(135deg, #F0EBFC 0%, #FFF 60%);
}
.polizasura-hero-form {
    background: #fff;
    padding: 24px;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 29, 92, 0.10);
    border: 1px solid #E1E4E8;
}

.polizasura-hero-tag--teal { color: #00A19A; }

/* ==========================================================================
   v1.4.0 - ALERTS
   ========================================================================== */
.polizasura-alert {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: #FFF9E6;
    border-left: 4px solid #FFD100;
    padding: 12px 14px;
    border-radius: 8px;
    margin: 16px 0;
    font-size: 0.94rem;
    color: #001D5C;
}
.polizasura-alert--teal {
    background: #E5F5F3;
    border-left-color: #00A19A;
    color: #004D49;
}
.polizasura-alert svg { flex-shrink: 0; margin-top: 2px; }
.polizasura-alert a { color: inherit; text-decoration: underline; font-weight: 700; }

/* ==========================================================================
   v1.4.0 - PLAN VIDA GRID
   ========================================================================== */
.polizasura-vida-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}
.polizasura-vida-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #E1E4E8;
    padding: 22px;
    box-shadow: 0 4px 24px rgba(0, 29, 92, 0.06);
}
.polizasura-vida-card h4 {
    color: #7E5BEF;
    font-size: 1rem;
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 700;
}
.polizasura-vida-card p {
    color: #58595B;
    font-size: 0.96rem;
    line-height: 1.55;
    margin: 0;
}
.polizasura-vida-card strong { color: #001D5C; }

/* =========================================================================
   WIZARD MODAL - COTIZADOR ESTILO NUBANK (v1.5.0)
   ========================================================================= */

/* CTA trigger box ------------------------------------------------------- */
.polizasura-cta-box {
    background: #fff;
    border-radius: 24px;
    padding: 32px 28px;
    box-shadow: 0 20px 60px -20px rgba(0, 29, 92, 0.25), 0 8px 20px -12px rgba(0, 29, 92, 0.15);
    text-align: center;
    max-width: 440px;
    margin: 0 auto;
}
.polizasura-cta-box__title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #001D5C;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}
.polizasura-cta-box__sub {
    color: #58595B;
    font-size: 1rem;
    margin: 0 0 24px;
    line-height: 1.5;
}
.polizasura-cta-box__note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #8A8A8A;
    margin: 18px 0 0;
    letter-spacing: 0.01em;
}
.polizasura-cta-trigger {
    width: 100%;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 999px !important;
    padding: 18px 28px !important;
    font-size: 1.05rem !important;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 30px -10px rgba(255, 209, 0, 0.7);
}
.polizasura-cta-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px -10px rgba(255, 209, 0, 0.9);
}
.polizasura-cta-trigger:active { transform: translateY(0); }
.polizasura-cta-trigger__arrow {
    display: inline-block;
    transition: transform 0.2s ease;
    font-size: 1.2em;
}
.polizasura-cta-trigger:hover .polizasura-cta-trigger__arrow { transform: translateX(4px); }

/* WIZARD overlay -------------------------------------------------------- */
html.polizasura-wizard-open,
body.polizasura-wizard-open { overflow: hidden !important; }

.polizasura-wizard {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    -webkit-font-smoothing: antialiased;
}
.polizasura-wizard.is-open { display: flex; }
.polizasura-wizard__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 15, 45, 0.65);
    backdrop-filter: blur(8px) saturate(140%);
    -webkit-backdrop-filter: blur(8px) saturate(140%);
    animation: polizasuraFadeIn 0.25s ease;
}
@keyframes polizasuraFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Card principal -------------------------------------------------------- */
.polizasura-wizard__card {
    position: relative;
    background: #fff;
    border-radius: 28px;
    width: 100%;
    max-width: 540px;
    max-height: calc(100vh - 32px);
    display: flex;
    flex-direction: column;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: polizasuraCardIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
@keyframes polizasuraCardIn {
    from { opacity: 0; transform: translateY(24px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Header --------------------------------------------------------------- */
.polizasura-wizard__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    flex-shrink: 0;
}
.polizasura-wizard__brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #001D5C;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}
.polizasura-wizard__logo-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #FFD100;
    box-shadow: 0 0 0 3px rgba(255, 209, 0, 0.25);
}
.polizasura-wizard__brand-text { color: #001D5C; }
.polizasura-wizard__close {
    background: #F2F4F8;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #5A6578;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.polizasura-wizard__close:hover {
    background: #E8ECF3;
    color: #001D5C;
    transform: rotate(90deg);
}

/* Progress bar --------------------------------------------------------- */
.polizasura-wizard__progress {
    height: 3px;
    background: #EEF1F7;
    margin: 0 24px;
    border-radius: 999px;
    overflow: hidden;
    flex-shrink: 0;
}
.polizasura-wizard__progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #001D5C 0%, #0066CC 100%);
    border-radius: 999px;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Form / Body ---------------------------------------------------------- */
.polizasura-wizard__form {
    padding: 32px 32px 16px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    position: relative;
}
.polizasura-wizard__message {
    background: #FFF4E5;
    color: #8A4B00;
    border-radius: 14px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 0.92rem;
    border-left: 3px solid #FFA500;
}
.polizasura-wizard__message--success {
    background: #E7F7EE;
    color: #0B6B3D;
    border-left-color: #1EB76B;
}

/* Step base ----------------------------------------------------------- */
.polizasura-wiz-step {
    animation: polizasuraStepIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.polizasura-wizard__card.is-anim-back .polizasura-wiz-step {
    animation-name: polizasuraStepInBack;
}
@keyframes polizasuraStepIn {
    from { opacity: 0; transform: translateX(16px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes polizasuraStepInBack {
    from { opacity: 0; transform: translateX(-16px); }
    to   { opacity: 1; transform: translateX(0); }
}
.polizasura-wiz-step[hidden] { display: none !important; }

.polizasura-wiz-step__icon--emoji {
    font-size: 2.8rem;
    line-height: 1;
    margin-bottom: 16px;
}
.polizasura-wiz-step__title {
    color: #001D5C;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 10px;
    letter-spacing: -0.02em;
}
.polizasura-wiz-highlight {
    background: linear-gradient(120deg, rgba(255, 209, 0, 0.35) 0%, rgba(255, 209, 0, 0.35) 100%);
    background-size: 100% 38%;
    background-position: 0 82%;
    background-repeat: no-repeat;
    padding: 0 2px;
}
.polizasura-wiz-step__sub {
    color: #5A6578;
    font-size: 0.98rem;
    line-height: 1.55;
    margin: 0 0 28px;
}
.polizasura-wiz-step__sub--warn {
    background: #FFF8E5;
    border-radius: 12px;
    padding: 12px 14px;
    color: #7A5200;
    font-size: 0.88rem;
    line-height: 1.5;
}
.polizasura-wiz-step__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 12px;
}
.polizasura-wiz-step__trust span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #1EB76B;
    font-weight: 600;
}

/* Inputs -------------------------------------------------------------- */
.polizasura-wiz-field {
    margin-bottom: 8px;
}
.polizasura-wiz-field--row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.polizasura-wiz-field--1-2 {
    grid-template-columns: 1fr 2fr;
}
.polizasura-wiz-label {
    display: block;
    color: #5A6578;
    font-size: 0.82rem;
    font-weight: 600;
    margin: 0 0 6px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.polizasura-wiz-input,
.polizasura-wiz-input--big {
    width: 100%;
    background: #F7F8FB;
    border: 2px solid transparent;
    border-radius: 14px;
    padding: 16px 18px;
    font-size: 1rem;
    font-family: inherit;
    color: #0A1130;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
}
.polizasura-wiz-input--big {
    font-size: 1.25rem;
    padding: 20px 22px;
    font-weight: 600;
}
.polizasura-wiz-input:focus,
.polizasura-wiz-input:focus-visible {
    outline: none;
    background: #fff;
    border-color: #001D5C;
    box-shadow: 0 0 0 4px rgba(0, 29, 92, 0.1);
}
.polizasura-wiz-input::placeholder { color: #A0A6B5; font-weight: 400; }

/* Select = mismo look que input */
select.polizasura-wiz-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A6578' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 16px;
    padding-right: 48px;
}

/* Sufijo tipo cm/kg */
.polizasura-wiz-suffix-wrap {
    position: relative;
}
.polizasura-wiz-suffix {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #A0A6B5;
    font-size: 0.9rem;
    font-weight: 600;
    pointer-events: none;
}
.polizasura-wiz-suffix-wrap .polizasura-wiz-input { padding-right: 48px; }

/* Telefono con bandera */
.polizasura-wiz-phone-wrap {
    display: flex;
    align-items: center;
    background: #F7F8FB;
    border: 2px solid transparent;
    border-radius: 14px;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease;
}
.polizasura-wiz-phone-wrap:focus-within {
    background: #fff;
    border-color: #001D5C;
    box-shadow: 0 0 0 4px rgba(0, 29, 92, 0.1);
}
.polizasura-wiz-phone-flag {
    padding: 0 14px 0 20px;
    font-weight: 700;
    color: #001D5C;
    font-size: 1rem;
    white-space: nowrap;
    border-right: 1px solid #E8ECF3;
    line-height: 1;
}
.polizasura-wiz-input--phone {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding-left: 14px !important;
}
.polizasura-wiz-input--phone:focus {
    background: transparent !important;
    box-shadow: none !important;
    border-color: transparent !important;
}

/* Radio cards --------------------------------------------------------- */
.polizasura-wiz-choices {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
.polizasura-wiz-choices--2 {
    grid-template-columns: 1fr 1fr;
}
.polizasura-wiz-choices--grid {
    grid-template-columns: 1fr 1fr 1fr;
}
.polizasura-wiz-choice {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #F7F8FB;
    border: 2px solid transparent;
    border-radius: 18px;
    padding: 20px 12px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    text-align: center;
    min-height: 90px;
}
.polizasura-wiz-choice:hover {
    background: #EEF1F7;
    transform: translateY(-1px);
}
.polizasura-wiz-choice--wide {
    grid-column: 1 / -1;
    flex-direction: row;
    min-height: 60px;
}
.polizasura-wiz-choice input[type=radio] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.polizasura-wiz-choice:has(input[type=radio]:checked) {
    background: #EDF2FC;
    border-color: #001D5C;
}
/* Fallback para navegadores sin :has */
.polizasura-wiz-choice input[type=radio]:checked ~ .polizasura-wiz-choice__label {
    color: #001D5C;
    font-weight: 700;
}
.polizasura-wiz-choice__icon {
    font-size: 1.8rem;
    line-height: 1;
}
.polizasura-wiz-choice__label {
    font-size: 0.98rem;
    font-weight: 600;
    color: #1A2240;
    line-height: 1.3;
}

/* Checkbox (acepta) -------------------------------------------------- */
.polizasura-wiz-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: #F7F8FB;
    border-radius: 14px;
    cursor: pointer;
    margin-top: 8px;
}
.polizasura-wiz-check input[type=checkbox] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.polizasura-wiz-check__box {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: #fff;
    border: 2px solid #D0D6E0;
    transition: background 0.15s ease, border-color 0.15s ease;
    position: relative;
    margin-top: 1px;
}
.polizasura-wiz-check input[type=checkbox]:checked + .polizasura-wiz-check__box {
    background: #001D5C;
    border-color: #001D5C;
}
.polizasura-wiz-check input[type=checkbox]:checked + .polizasura-wiz-check__box::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 12px;
    border: solid #fff;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}
.polizasura-wiz-check__label {
    font-size: 0.88rem;
    color: #5A6578;
    line-height: 1.5;
}
.polizasura-wiz-check__label a {
    color: #001D5C;
    font-weight: 600;
    text-decoration: underline;
}

/* Summary de confirmacion ------------------------------------------- */
.polizasura-wiz-summary {
    background: #F7F8FB;
    border-radius: 16px;
    padding: 8px 18px;
    margin: 16px 0 20px;
}
.polizasura-wiz-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #E8ECF3;
    font-size: 0.92rem;
}
.polizasura-wiz-summary__row:last-child { border-bottom: none; }
.polizasura-wiz-summary__k {
    color: #8A8A8A;
    font-weight: 500;
    flex-shrink: 0;
}
.polizasura-wiz-summary__v {
    color: #001D5C;
    font-weight: 700;
    text-align: right;
    word-break: break-word;
}

/* Success screen ---------------------------------------------------- */
.polizasura-wiz-step--success {
    text-align: center;
    padding: 20px 0;
}
.polizasura-wiz-success__check {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1EB76B 0%, #0A9D58 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 16px 40px -12px rgba(30, 183, 107, 0.5);
    animation: polizasuraCheckIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes polizasuraCheckIn {
    from { opacity: 0; transform: scale(0.5); }
    to   { opacity: 1; transform: scale(1); }
}

/* Footer (nav buttons) --------------------------------------------- */
.polizasura-wizard__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 32px 12px;
    border-top: 1px solid #EEF1F7;
    flex-shrink: 0;
}
.polizasura-wizard__back {
    background: transparent;
    border: none;
    color: #5A6578;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    padding: 10px 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s ease, color 0.15s ease;
}
.polizasura-wizard__back:hover {
    background: #F2F4F8;
    color: #001D5C;
}
.polizasura-wizard__next {
    flex: 1;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 999px !important;
    padding: 16px 28px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em;
    background: #001D5C !important;
    color: #fff !important;
    border: none;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}
.polizasura-wizard__next:hover:not(:disabled) {
    background: #00195A !important;
    transform: translateY(-1px);
}
.polizasura-wizard__next:disabled {
    opacity: 0.7;
    cursor: wait;
}
.polizasura-wizard__next-spin.is-spinning {
    animation: polizasuraSpin 0.8s linear infinite;
}
@keyframes polizasuraSpin {
    to { transform: rotate(360deg); }
}
.polizasura-wizard__footnote {
    text-align: center;
    font-size: 0.78rem;
    color: #A0A6B5;
    margin: 0 0 16px;
    padding: 0 20px;
}

/* Botones suplementarios ------------------------------------------- */
.polizasura-btn--success {
    background: #1EB76B !important;
    color: #fff !important;
    border-radius: 999px !important;
    padding: 16px 28px !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}
.polizasura-btn--success:hover { background: #0A9D58 !important; }
.polizasura-btn--dark {
    background: #001D5C !important;
    color: #fff !important;
}

/* Responsive -------------------------------------------------------- */
@media (max-width: 560px) {
    .polizasura-wizard { padding: 0; align-items: flex-end; }
    .polizasura-wizard__card {
        max-height: 100vh;
        max-width: 100%;
        border-radius: 24px 24px 0 0;
        animation: polizasuraCardUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    }
    @keyframes polizasuraCardUp {
        from { transform: translateY(100%); }
        to   { transform: translateY(0); }
    }
    .polizasura-wizard__form { padding: 24px 20px 12px; }
    .polizasura-wizard__footer { padding: 14px 20px 10px; }
    .polizasura-wiz-step__title { font-size: 1.5rem; }
    .polizasura-wiz-field--row { grid-template-columns: 1fr; }
    .polizasura-wiz-choices--grid { grid-template-columns: 1fr 1fr; }
    .polizasura-cta-box { padding: 24px 20px; border-radius: 20px; }
    .polizasura-cta-box__title { font-size: 1.3rem; }
}
