
.cap-container { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; max-width: 1200px; margin: 0 auto; color: #1e293b; box-sizing: border-box; }
.cap-container * { box-sizing: border-box; }

.cap-layout { display: flex; flex-direction: column; gap: 32px; align-items: center; justify-content: center; }
.cap-main-form { width: 100%; max-width: 700px; }
.cap-sidebar { width: 100%; flex-shrink: 0; max-width: 700px; }

.cap-instruction-box { background: #0f172a; color: #f1f5f9; border-radius: 16px; padding: 24px 32px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.cap-inst-title { color: #F26522; font-size: 1.25rem; font-weight: 700; margin: 0 0 24px 0; display: flex; align-items: center; gap: 8px; line-height: 1.2; }
.cap-inst-icon-wrap { display: inline-flex; align-items: center; justify-content: center; border: 2px solid #F26522; border-radius: 4px; width: 24px; height: 40px; }
.cap-inst-dot { width: 6px; height: 6px; background-color: #F26522; border-radius: 50%; margin-top: auto; margin-bottom: 4px; }
.cap-inst-p { color: #e2e8f0; margin-bottom: 24px; font-weight: 500; font-size: 1rem; }
.cap-inst-step { display: flex; gap: 16px; margin-bottom: 24px; }
.cap-inst-step:last-child { margin-bottom: 0; }
.cap-inst-num { font-weight: 700; color: #F26522; font-size: 1.125rem; }
.cap-inst-text { color: #cbd5e1; font-weight: 500; line-height: 1.6; }

.cap-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.cap-card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.cap-card-title { font-size: 1.1rem; font-weight: 700; margin: 0; color: #0f172a; }
.cap-label { display: block; font-size: 0.75rem; font-weight: 700; color: #475569; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }

.cap-gender-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.cap-gender-btn { padding: 12px; border: 1px solid #cbd5e1; border-radius: 6px; cursor: pointer; font-weight: 500; background: #fff; color: #334155; transition: all 0.2s; }
.cap-gender-btn.active { background: #eff6ff; border-color: #3b82f6; color: #1d4ed8; }

.cap-row-2 { display: flex; gap: 16px; margin-bottom: 8px; }
.cap-col { flex: 1; }
.cap-input { width: 100%; padding: 12px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 1rem; outline: none; }
.cap-input:focus { border-color: #3b82f6; }
.bg-gray { background-color: #f1f5f9; color: #64748b; }

.cap-time-inputs { display: flex; gap: 16px; margin-bottom: 24px; }
.cap-input-wrapper { flex: 1; position: relative; }
.cap-input-wrapper .cap-input { padding-right: 60px; }
.cap-input-suffix { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 0.9rem; pointer-events: none; }

.cap-inner-card { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 20px; margin-bottom: 8px; }
.cap-divider { border-bottom: 1px dashed #cbd5e1; margin: 20px 0; }
.cap-checkbox-container { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.cap-checkbox-container input { margin-top: 4px; width: 16px; height: 16px; accent-color: #F26522; }
.cap-checkbox-text strong { display: block; color: #0f172a; font-size: 0.95rem; margin-bottom: 2px; }
.cap-checkbox-text span { color: #d97706; font-size: 0.85rem; }

.cap-toggle-card { display: flex; justify-content: space-between; align-items: center; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 16px 20px; margin-bottom: 12px; }
.cap-toggle-title { font-size: 0.85rem; font-weight: 700; color: #334155; margin-bottom: 4px; text-transform: uppercase; }
.cap-toggle-sub { font-size: 0.85rem; color: #64748b; }

.cap-switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.cap-switch input { opacity: 0; width: 0; height: 0; }
.cap-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #cbd5e1; transition: .4s; border-radius: 34px; }
.cap-slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .cap-slider { background-color: #F26522; }
input:checked + .cap-slider:before { transform: translateX(20px); }

.cap-calc-btn { width: 100%; padding: 14px; background: #F26522; color: #fff; border: none; border-radius: 8px; font-size: 1.05rem; font-weight: 600; cursor: pointer; margin-top: 10px; transition: background 0.2s; }
.cap-calc-btn:hover { background: #D95A1E; }

/* Grid de Resultados */
.cap-results-title { font-size: 1.5rem; font-weight: 800; color: #0f172a; margin-bottom: 20px; }
.cap-scenarios-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; align-items: stretch; }

.cap-scenario-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; display: flex; flex-direction: column; overflow: hidden; position: relative; transition: transform 0.2s; }
.cap-scenario-card.available { border-color: #3b82f6; }
.cap-scenario-card.highlight { border-color: #1e3a8a; border-width: 2px; }
.cap-scenario-card.disabled { opacity: 0.6; background: #f8fafc; }

.cap-scenario-content { padding: 20px; flex: 1; display:flex; flex-direction:column; }
.cap-badge { display: inline-block; padding: 4px 8px; font-size: 0.7rem; font-weight: 700; border-radius: 4px; margin-bottom: 12px; align-self: flex-start; }
.cap-badge.light { background: #eff6ff; color: #2563eb; }
.cap-badge.dark { background: #1e40af; color: #fff; }

.cap-scenario-name { font-size: 0.9rem; font-weight: 700; color: #475569; margin: 0 0 16px 0; text-transform: uppercase; }
.cap-scenario-date { font-size: 0.85rem; font-weight: 700; color: #2563eb; margin-bottom: 4px; }
.cap-scenario-card.disabled .cap-scenario-date { color: #94a3b8; }

.cap-scenario-value { font-size: 1.35rem; font-weight: 800; color: #0f172a; margin-bottom: 4px; }
.cap-scenario-sub { font-size: 0.8rem; color: #64748b; margin-bottom: 20px; flex: 1; }

.cap-accordion-btn { background: #f8fafc; border: 1px solid #e2e8f0; width: 100%; border-radius: 6px; padding: 10px; font-size: 0.75rem; font-weight: 700; color: #475569; display: flex; justify-content: space-between; align-items: center; cursor: pointer; transition: background 0.2s; }
.cap-accordion-btn:hover { background: #f1f5f9; }
.cap-accordion-icon { font-size: 0.6rem; }
.cap-accordion-content { display: none; padding: 12px; background: #f8fafc; border: 1px solid #e2e8f0; border-top: none; border-bottom-left-radius: 6px; border-bottom-right-radius: 6px; font-size: 0.8rem; color: #64748b; margin-top: -4px; }

.cap-scenario-status { text-align: center; font-size: 0.75rem; font-weight: 700; padding: 12px; text-transform: uppercase; border-top: 1px solid #e2e8f0; border-radius: 0 0 12px 12px;}
.cap-scenario-status.green { color: #16a34a; }
.cap-scenario-status.orange { color: #ea580c; }
.cap-scenario-status.gray { color: #94a3b8; }

.cap-analysis-box { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 24px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.cap-analysis-title { font-size: 1.25rem; font-weight: 700; color: #0f172a; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.cap-analysis-text { font-size: 0.95rem; color: #475569; line-height: 1.6; margin-bottom: 16px; }
.cap-analysis-alert { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; font-weight: 700; padding: 16px; border-radius: 8px; text-align: center; font-size: 1rem; }

@media (max-width: 640px) {
    .cap-row-2, .cap-time-inputs { flex-direction: column; gap: 12px; }
    .cap-scenarios-grid { grid-template-columns: 1fr; }
}
    