.cotizador-seguros-wrap {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    max-width: 860px;
    margin: 0 auto;
    background: #f1f4f9;
    border-radius: 16px;
    padding: 44px 36px;
    border: 1px solid rgba(0,82,163,0.06);
}

/* Step indicators */
.cs-step-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
}
.cs-step-dot {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Catamaran', sans-serif;
    transition: all 0.3s;
    background: rgba(0,0,0,0.04);
    color: #64748b;
}
.cs-step-dot.active {
    background: #0052a3;
    color: #fff;
    box-shadow: 0 4px 14px rgba(0,82,163,0.25);
}
.cs-step-dot.completed {
    background: #1a7a4a;
    color: #fff;
}
.cs-step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    background: rgba(255,255,255,0.2);
}
.cs-step-dot.pending .cs-step-num {
    background: rgba(0,0,0,0.06);
}
.cs-step-line {
    width: 30px;
    height: 2px;
    background: #d4d8de;
    border-radius: 1px;
}

/* Steps */
.cs-step { display: none; }
.cs-step.active { display: block; animation: csFadeIn 0.35s ease; }
.cs-step-header {
    text-align: center;
    margin-bottom: 24px;
}
.cs-step-header h3 {
    font-family: 'Catamaran', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #0052a3;
    margin: 0 0 6px;
}
.cs-step-header p {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
}

/* ============================================
   STEP 0: Insurance Type Grid
   ============================================ */
.cs-tipo-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    padding: 4px;
}

.cs-tipo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 10px;
    background: #fff;
    border: 2px solid #e8ecf1;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
    min-height: 110px;
}
.cs-tipo-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,82,163,0.04) 0%, rgba(0,82,163,0) 100%);
    opacity: 0;
    transition: opacity 0.25s;
}
.cs-tipo-card:hover {
    border-color: #0052a3;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,82,163,0.12);
}
.cs-tipo-card:hover::before {
    opacity: 1;
}
.cs-tipo-card:hover .cs-tipo-icon {
    color: #0052a3;
    transform: scale(1.1);
}
.cs-tipo-card.active {
    border-color: #0052a3;
    background: linear-gradient(135deg, #eef4fc 0%, #f0f7ff 100%);
    box-shadow: 0 4px 20px rgba(0,82,163,0.15);
}
.cs-tipo-card.active .cs-tipo-icon {
    color: #0052a3;
}
.cs-tipo-card.active .cs-tipo-label {
    color: #0052a3;
    font-weight: 600;
}
.cs-tipo-card.active::after {
    content: '✓';
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 11px;
    color: #fff;
    background: #0052a3;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.cs-tipo-icon {
    width: 44px;
    height: 44px;
    color: #4a6fa5;
    transition: all 0.25s;
    flex-shrink: 0;
}
.cs-tipo-icon i {
    font-size: 26px;
    line-height: 1;
}

.cs-tipo-label {
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    text-align: center;
    line-height: 1.3;
    word-break: break-word;
}

/* ============================================
   STEP ADVISOR: Simplified Advisor screen
   ============================================ */
.cs-step-advisor {
    text-align: center;
    padding: 24px 12px;
}
.cs-advisor-icon {
    width: 80px;
    height: 80px;
    background: rgba(37, 211, 102, 0.1);
    color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.cs-advisor-icon svg {
    width: 46px;
    height: 46px;
}
.cs-advisor-legend {
    font-family: 'Catamaran', sans-serif;
    font-size: 1.8rem !important;
    font-weight: 800;
    color: #0f1724;
    margin-bottom: 12px !important;
}
.cs-advisor-subtext {
    max-width: 500px;
    margin: 0 auto 30px !important;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #64748b;
}

.cs-badge-large {
    font-size: 14px;
    padding: 8px 24px;
    margin-bottom: 20px;
}

.cs-btn-large {
    font-size: 17px !important;
    padding: 18px 40px !important;
}

/* Selected tipo badge shown on steps 1-2 */
.cs-selected-tipo-badge {
    display: none;
    background: linear-gradient(135deg, #0052a3, #0068cc);
    color: #fff;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.3px;
}

/* Resumen tipo highlight */
.cs-resumen-tipo-highlight {
    background: linear-gradient(135deg, #eef4fc 0%, #f0f7ff 100%);
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(0,82,163,0.12);
}
.cs-resumen-tipo-highlight .cs-resumen-value {
    color: #0052a3;
    font-weight: 700;
    font-size: 16px;
}

/* Shake animation */
@keyframes csShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}
.cs-shake {
    animation: csShake 0.4s ease;
}

/* Fade in animation */
@keyframes csFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Fields */
.cs-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.cs-field.full { grid-column: 1 / -1; }
.cs-field label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    display: block;
    margin-bottom: 6px;
    font-family: 'Poppins', sans-serif;
}
.cs-field input,
.cs-field select,
.cs-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e2e6eb;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    background: #fff;
    transition: border 0.3s, box-shadow 0.3s;
    color: #1e293b;
    outline: none;
    box-sizing: border-box;
}

/* Segmented Control (Toggle Switches) */
.cs-segmented-control {
    display: flex;
    background: #e2e8f0;
    padding: 4px;
    border-radius: 10px;
    width: 100%;
    box-sizing: border-box;
}
.cs-segment-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    color: #475569;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.cs-segment-btn:hover {
    color: #0f172a;
}
.cs-segment-btn.active {
    background: #fff;
    color: #0052a3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cotizador-seguros-wrap .select2-container {
    display: none !important;
}
.cs-field input:focus,
.cs-field select:focus,
.cs-field textarea:focus {
    border-color: #0052a3;
    box-shadow: 0 0 0 3px rgba(0,82,163,0.07);
}
.cs-field textarea { resize: vertical; }

/* Nav buttons */
.cs-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
}
.cs-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}
.cs-btn-primary {
    background: #0052a3;
    color: #fff;
    box-shadow: 0 4px 16px rgba(0,82,163,0.2);
}
.cs-btn-primary:hover {
    background: #003a73;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,82,163,0.3);
}
.cs-btn-ghost {
    background: transparent;
    color: #64748b;
    border: 2px solid #d4d8de;
}
.cs-btn-ghost:hover {
    border-color: #0052a3;
    color: #0052a3;
    transform: translateY(-2px);
}
.cs-btn-wa {
    background: #25D366;
    color: #fff;
    box-shadow: 0 4px 16px rgba(37,211,102,0.35);
    font-size: 15px;
    padding: 16px 34px;
}
.cs-btn-wa:hover {
    background: #1ebe5d;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(37,211,102,0.45);
}
.cs-btn-wa i { font-size: 18px; }
.cs-arrow { font-size: 16px; }

/* Resumen */
.cs-resumen {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e2e6eb;
}
.cs-resumen-item.full { grid-column: 1 / -1; }
.cs-resumen-label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 2px;
}
.cs-resumen-value {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #0f1724;
}

/* Disclaimer */
.cs-disclaimer {
    text-align: center;
    margin-top: 12px;
    font-size: 11px;
    color: #64748b;
}

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

/* Tablet */
@media (max-width: 768px) {
    .cs-tipo-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
    .cs-tipo-card {
        padding: 16px 8px;
        min-height: 100px;
    }
    .cs-tipo-icon {
        width: 38px;
        height: 38px;
    }
    .cs-step-dot .cs-step-label { display: none; }
    .cs-advisor-legend {
        font-size: 1.5rem !important;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .cotizador-seguros-wrap {
        padding: 24px 16px;
        border-radius: 12px;
    }
    .cs-step-indicators {
        gap: 6px;
    }
    .cs-step-dot .cs-step-label { display: none; }
    .cs-step-dot {
        padding: 6px 10px;
    }
    .cs-step-line { width: 16px; }
    .cs-tipo-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .cs-tipo-card {
        padding: 14px 6px;
        min-height: 90px;
        gap: 8px;
        border-radius: 12px;
    }
    .cs-tipo-icon {
        width: 34px;
        height: 34px;
    }
    .cs-tipo-label {
        font-size: 11px;
    }
    .cs-tipo-card.active::after {
        top: 4px;
        right: 5px;
        width: 16px;
        height: 16px;
        font-size: 9px;
    }
    .cs-step-header h3 {
        font-size: 1.15rem;
    }
    .cs-advisor-legend {
        font-size: 1.35rem !important;
    }
    .cs-advisor-subtext {
        font-size: 0.95rem;
        margin-bottom: 20px !important;
    }
    .cs-btn-large {
        font-size: 15px !important;
        padding: 14px 28px !important;
    }
    .cs-fields { grid-template-columns: 1fr; }
    .cs-resumen { grid-template-columns: 1fr; }
}

/* Very small mobile */
@media (max-width: 380px) {
    .cs-tipo-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .cs-tipo-card {
        padding: 12px 4px;
        min-height: 80px;
    }
    .cs-tipo-icon {
        width: 30px;
        height: 30px;
    }
    .cs-tipo-label {
        font-size: 10px;
    }
}
