body { font-family: -apple-system, system-ui, sans-serif; background-color: #f8fafc; color: #1e293b; margin: 0; padding: 20px; display: flex; justify-content: center; }
.main-container { width: 100%; max-width: 450px; }

.header-main { text-align: center; margin-bottom: 25px; }
.header-main h1 { font-size: 24px; font-weight: 800; color: #000; margin-bottom: 10px; line-height: 1.2; }
.divider { width: 100%; height: 1px; background-color: #e2e8f0; margin: 12px 0; }
.subtitle { font-size: 15px; font-weight: 600; color: #475569; }
.desc-small { font-size: 13px; color: #94a3b8; }

.card { background: white; border-radius: 12px; padding: 20px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); margin-bottom: 20px; border: 1px solid #f1f5f9; }
.input-group { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid #f8fafc; gap: 8px; }
.input-group label { font-size: 14px; font-weight: 500; color: #475569; flex: 1; min-width: 0; }

.field-container { display: flex; align-items: center; justify-content: flex-end; flex-shrink: 0; }
.field-container input { border: none; outline: none; width: 90px; text-align: right; font-size: 15px; font-weight: 700; color: #1e293b; background: transparent; min-width: 0; }
.field-container span { color: #94a3b8; font-size: 14px; margin-left: 4px; flex-shrink: 0; }

/* DISEÑO DEL MENÚ CON FLECHA */
.select-wrapper {
    position: relative;
    border: 1px solid #e2e8f0;
    padding: 6px 28px 6px 10px;
    border-radius: 6px;
    background: #f8fafc;
    flex-shrink: 0;
    max-width: 180px;
}
.select-wrapper::after {
    content: '\f0d7';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #2563eb;
    pointer-events: none;
    font-size: 14px;
}
select {
    border: none;
    outline: none;
    text-align: right;
    color: #2563eb;
    font-weight: 700;
    font-size: 14px;
    background: transparent;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    max-width: 100%;
}

.btn-primary { width: 100%; background: #1e40af; color: white; border: none; padding: 16px; border-radius: 8px; font-weight: 700; font-size: 16px; cursor: pointer; margin-top: 10px; }

.result-box-center { text-align: center; margin-bottom: 20px; }
#utilidad { font-size: 42px; font-weight: 800; display: block; margin: 5px 0; }
.badge { display: inline-block; padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 700; }

.proyeccion-box { background: #f8fafc; padding: 12px; border-radius: 10px; margin: 15px 0; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 14px; border: 1px solid #e2e8f0; text-align: center; }

.status-msg-aligned { display: flex; align-items: center; justify-content: center; gap: 15px; padding: 15px; border-radius: 12px; margin-top: 10px; }
.status-icon { font-size: 24px; flex-shrink: 0; }
.status-text-content { text-align: left; }
.status-title { font-weight: 800; margin: 0; font-size: 15px; }
.status-desc { margin: 0; font-size: 13px; line-height: 1.3; }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 15px; box-sizing: border-box; }
.modal-content { background: white; padding: 30px; border-radius: 24px; width: 100%; max-width: 380px; text-align: center; box-sizing: border-box; }
.modal-lock-icon { font-size: 30px; color: #ef4444; background: #fee2e2; padding: 20px; border-radius: 50%; margin-bottom: 15px; }
.btn-unlock { display: block; background: #16a34a; color: white; text-decoration: none; padding: 18px; border-radius: 12px; font-weight: 800; margin: 20px 0; line-height: 1.4; }
.warning-tag { font-weight: 800; color: #b91c1c; font-size: 14px; }
.modal-desc-footer { font-size: 13px; color: #64748b; }
.hidden { display: none !important; }

/* ── Responsivo móvil ── */
@media (max-width: 400px) {
    body { padding: 12px; }
    .header-main h1 { font-size: 20px; }
    .subtitle { font-size: 14px; }
    .desc-small { font-size: 12px; }
    .card { padding: 16px 14px; }
    .input-group label { font-size: 13px; }
    .field-container input { width: 75px; font-size: 14px; }
    .select-wrapper { max-width: 145px; padding: 5px 24px 5px 8px; }
    select { font-size: 12px; }
    #utilidad { font-size: 34px; }
    .status-msg-aligned { flex-direction: column; text-align: center; gap: 8px; }
    .status-text-content { text-align: center; }
    .modal-content { padding: 22px 16px; }
    .btn-unlock { font-size: 14px; padding: 14px 10px; }
    .modal-urgent { font-size: 13px; }
}