/* 1. IMPORTAMOS AMBAS FUENTES: Roboto y DM Serif Display */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Roboto:wght@300;400;500;700&display=swap');

/* 2. REGLA GENERAL: Todo en Roboto por defecto */
.sbs-sv-wrapper,
.sbs-sv-wrapper * {
    font-family: 'Roboto', Helvetica, Arial, sans-serif !important;
    letter-spacing: normal !important;
}

/* Contenedor Principal */
.sbs-sv-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.sbs-sv-container {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 800px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Grid System */
.sbs-sv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

@media (max-width: 600px) {
    .sbs-sv-grid {
        grid-template-columns: 1fr;
    }
}

/* LABELS */
.sbs-sv-input-group label {
    display: block !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    color: #242424 !important; /* Negro Corporativo */
    margin-bottom: 8px !important;
    text-transform: none !important;
}

.sbs-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* INPUTS */
.sbs-sv-input-group input {
    width: 100%;
    padding: 12px 15px;
    padding-right: 40px;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    font-size: 1.1rem !important;
    color: #242424 !important; /* Negro Corporativo */
    background: #f9f9f9 !important;
    font-weight: 400 !important;
}

.sbs-sv-input-group input:focus {
    background: #fff !important;
    border-color: #e93030 !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(233, 48, 48, 0.1);
}

/* Iconos */
.sbs-icon {
    position: absolute;
    right: 15px;
    color: #999;
    font-weight: 700;
    font-size: 0.9rem;
    pointer-events: none;
}

/* Texto pequeño */
.sbs-sv-input-group small {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem !important;
    color: #777 !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    font-style: normal !important;
}

/* BOTÓN */
.sbs-sv-action {
    text-align: center;
}

#sbs-calculate-btn {
    background-color: #e93030 !important;
    color: #ffffff !important;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    border-radius: 6px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 4px 15px rgba(233, 48, 48, 0.3);
}

#sbs-calculate-btn:hover {
    background-color: #c92222 !important;
    transform: translateY(-2px);
}

/* CAJA DE RESULTADOS */
.sbs-sv-result-box {
    margin-top: 30px;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 8px;
    text-align: center;
    border-top: 0px solid #e93030;
    display: none;
}

.sbs-result-header {
    font-size: 1rem !important;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500 !important;
    margin-bottom: 10px;
}

/* 3. EXCEPCIÓN: EL NÚMERO GRANDE EN DM DISPLAY */
.sbs-result-number {
    /* Aquí anulamos Roboto y ponemos la Serif */
    font-family: 'DM Serif Display', 'Times New Roman', serif !important;
    font-size: 4.5rem !important; 
    font-weight: 400 !important; 
    color: #242424 !important; /* Negro Corporativo */
    line-height: 1.1;
    margin: 15px 0;
}

.sbs-result-period {
    color: #e93030;
    font-weight: 500 !important;
    font-size: 1.2rem !important;
    margin-bottom: 20px;
}

.sbs-sv-result-box hr {
    margin: 20px 0;
    border: 0;
    border-top: 1px solid #e0e0e0;
}

.sbs-result-projection {
    font-size: 1rem !important;
    color: #666;
    font-weight: 400 !important;
}

.sbs-result-projection strong {
    font-weight: 700 !important;
    color: #242424 !important; /* Negro Corporativo */
}