/* ============================================================
   Widget Calculadora de Retiro — Estilos
   Prefijo: wc- (widget-calculo) para no colisionar con el tema
   ============================================================ */

.wc-widget {
    max-width: 820px;
    margin: 0 auto;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 14px;
    color: #333;
}

/* ---------- Encabezado ---------- */
.wc-header {
    text-align: center;
    margin-bottom: 24px;
}

.wc-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1E334F;
    margin: 0 0 6px;
}

.wc-header p {
    color: #888;
    margin: 0;
}

/* ---------- Errores ---------- */
.wc-errors {
    background: #fff5f5;
    border-left: 4px solid #e74c3c;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #c0392b;
}

.wc-errors ul {
    margin: 0;
    padding-left: 18px;
}

/* ---------- Card ---------- */
.wc-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
    overflow: hidden;
}

.wc-card-header {
    background-color: #1E334F;
    color: #fff;
    padding: 13px 22px;
    font-size: 15px;
    font-weight: 600;
}

.wc-card-body {
    padding: 24px 28px;
}

/* ---------- Formulario ---------- */
.wc-form {
    width: 100%;
}

.wc-field {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.wc-field label {
    font-weight: 600;
    margin-bottom: 5px;
    color: #444;
}

.wc-field input {
    padding: 8px 12px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.wc-field input:focus {
    outline: none;
    border-color: #1E334F;
    box-shadow: 0 0 0 3px rgba(30, 51, 79, 0.1);
}

/* Fila de campos (2 o 3 columnas) */
.wc-field-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.wc-field-row--three .wc-field {
    flex: 1;
}

/* Campo de nombre (fila completa) */
.wc-field:not(.wc-field-row .wc-field) {
    margin-bottom: 16px;
}

.wc-divider {
    border: none;
    border-top: 1px solid #eee;
    margin: 20px 0;
}

.wc-required {
    color: #e74c3c;
}

/* ---------- Botones ---------- */
.wc-actions {
    margin-top: 24px;
    display: flex;
    gap: 10px;
}

.wc-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 22px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.wc-btn--primary {
    background-color: #1E334F;
    color: #fff;
}

.wc-btn--primary:hover {
    background-color: #15263a;
    color: #fff;
}

/* ---------- Stats ---------- */
.wc-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.wc-stat {
    flex: 1;
    background: #f5f7fa;
    border-radius: 8px;
    padding: 14px 12px;
    text-align: center;
}

.wc-stat-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 4px;
}

.wc-stat-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #1E334F;
}

.wc-factores {
    font-size: 13px;
    color: #888;
    margin-bottom: 16px;
}

/* ---------- Tabla ---------- */
.wc-table-wrap {
    overflow-x: auto;
}

.wc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.wc-table thead tr {
    background-color: #1E334F;
    color: #fff;
}

.wc-table th,
.wc-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.wc-table td:nth-child(3),
.wc-table td:nth-child(4),
.wc-table td:nth-child(5),
.wc-table th:nth-child(3),
.wc-table th:nth-child(4),
.wc-table th:nth-child(5) {
    text-align: right;
}

.wc-table tbody tr:hover {
    background-color: #f0f4f8;
}

.wc-badge {
    display: inline-block;
    background: #e8edf3;
    color: #1E334F;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 13px;
    font-weight: 600;
}

/* ---------- Nota ---------- */
.wc-nota {
    font-size: 12px;
    color: #2980b9;
    background: #eaf4fb;
    border-left: 4px solid #3498db;
    border-radius: 6px;
    padding: 10px 14px;
    margin-top: 16px;
    margin-bottom: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
    .wc-field-row,
    .wc-stats {
        flex-direction: column;
    }

    .wc-card-body {
        padding: 16px;
    }
}
