/* =============================================
   SMILEY ROI CALCULATOR v1.5.0
   Calculadora comprador — sin bloque de planes
   ============================================= */

.sroi-outer {
    max-width: 728px;
    margin: 0 auto;
    padding: 24px;
}

.sroi-frame {
    background: #fff;
    border: 20px solid #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,.13);
    overflow: hidden;
}

.sroi-wrap {
    max-width: 100%;
    margin: 0;
    padding: 24px 24px 32px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Encabezado ── */
.sroi-header {
    text-align: center;
    margin-bottom: 24px;
    padding: 0 8px;
}
.sroi-titulo {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 10px;
    line-height: 1.25;
}
.sroi-subtitulo {
    font-size: clamp(14px, 1.8vw, 16px);
    color: #4a5568;
    margin: 0;
    line-height: 1.6;
}

/* ── Card principal ── */
.sroi-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px 28px 24px;
    box-shadow: 0 2px 16px rgba(0,0,0,.06);
}

/* ── Badge comprador ── */
.sroi-comprador-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 10px;
    border: 1.5px solid #33cc33;
    background: #f0fff0;
    color: #1a6b1a;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
}
.sroi-tog-icon { font-size: 16px; }

.sroi-rol-desc {
    font-size: 13px;
    color: #718096;
    margin: 0 0 20px;
    line-height: 1.5;
}

/* ── Inputs ── */
.sroi-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 20px;
}
.sroi-field-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.sroi-input-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color .2s;
}
.sroi-input-wrap:focus-within {
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49,130,206,.1);
}
.sroi-prefix {
    padding: 0 10px;
    background: #f7fafc;
    color: #4a5568;
    font-size: 15px;
    font-weight: 600;
    border-right: 1.5px solid #e2e8f0;
    height: 40px;
    display: flex;
    align-items: center;
}
.sroi-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0 12px;
    font-size: 15px;
    font-weight: 500;
    color: #1a202c;
    background: #fff;
    height: 40px;
    font-family: inherit;
    width: 100%;
}
.sroi-select {
    width: 100%;
    height: 40px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 0 12px;
    font-size: 14px;
    color: #1a202c;
    background: #fff;
    font-family: inherit;
    cursor: pointer;
    transition: border-color .2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23718096' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}
.sroi-select:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49,130,206,.1);
}

/* ── Slider ── */
.sroi-slider-block { margin-bottom: 20px; }
.sroi-slider-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    color: #4a5568;
}
.sroi-slider-val {
    font-size: 16px;
    font-weight: 700;
    color: #ff0000;
    background: #fff0f0;
    padding: 2px 10px;
    border-radius: 20px;
}
.sroi-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    accent-color: #ff0000;
    cursor: pointer;
}
.sroi-slider-ticks {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #a0aec0;
    margin-top: 4px;
}

/* ── Divider ── */
.sroi-divider {
    border: none;
    border-top: 1px solid #edf2f7;
    margin: 0 0 18px;
}

/* ── Resultados ── */
.sroi-results { margin-bottom: 20px; }
.sroi-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 14px;
    border-radius: 10px;
    margin-bottom: 8px;
    font-size: 14px;
}
.sroi-row-corredor { background: #fff5f5; }
.sroi-row-directo  { background: #f0fff4; }
.sroi-result-label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #4a5568;
}
.sroi-icon-label  { font-size: 16px; }
.sroi-result-val  { font-weight: 600; font-size: 15px; }
.sroi-negativo    { color: #c53030; }
.sroi-costo       { color: #276749; }

/* ── Fila ahorro ── */
.sroi-ahorro-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    background: #f0fff0;
    border: 2px solid #33cc33;
    border-radius: 12px;
    margin-top: 4px;
}
.sroi-ahorro-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #1a6b1a;
}
.sroi-ahorro-val {
    font-size: 26px;
    font-weight: 800;
    color: #33cc33;
    letter-spacing: -.5px;
}

/* ── CTA ── */
.sroi-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 15px 22px;
    background: #ff0000;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    transition: background .2s ease, transform .2s ease;
    box-sizing: border-box;
}
.sroi-cta:hover {
    background: #cc0000;
    transform: translateY(-2px);
    color: #fff !important;
}
.sroi-cta-arrow { font-size: 18px; }

/* ── Responsive ── */
@media (max-width: 600px) {
    .sroi-outer   { padding: 16px; }
    .sroi-frame   { border-width: 14px; border-radius: 16px; }
    .sroi-wrap    { padding: 18px 14px 24px; }
    .sroi-card    { padding: 18px 14px; }
    .sroi-inputs  { grid-template-columns: 1fr; }
    .sroi-ahorro-val { font-size: 22px; }
    .sroi-cta     { font-size: 13px; }
}
@media (max-width: 380px) {
    .sroi-outer       { padding: 10px; }
    .sroi-frame       { border-width: 10px; border-radius: 12px; }
    .sroi-ahorro-row  { flex-direction: column; gap: 6px; text-align: center; }
}
