/* ESTILOS COMPARTIDOS PARA HERRAMIENTAS */

.tool-form { background: white; border-radius: 16px; padding: 32px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); margin-bottom: 32px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-bottom: 24px; }
.form-field label { display: block; font-size: 14px; font-weight: 600; color: #374151; margin-bottom: 8px; }
.form-field input, .form-field select { width: 100%; padding: 12px 16px; font-size: 16px; border: 1px solid #e5e7eb; border-radius: 8px; font-family: 'Inter', sans-serif; transition: all 0.2s; }
.form-field input:focus, .form-field select:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }
.submit-btn { width: 100%; padding: 16px 32px; font-size: 18px; font-weight: 600; color: white; background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); border: none; border-radius: 12px; cursor: pointer; transition: all 0.3s; }
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(59,130,246,0.3); }

#loading { display: none; flex-direction: column; align-items: center; padding: 60px; background: white; border-radius: 16px; margin-bottom: 32px; }
.spinner { width: 50px; height: 50px; border: 4px solid #e5e7eb; border-top-color: #3b82f6; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.results-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-bottom: 32px; }
.result-card { background: white; border-radius: 16px; padding: 24px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); border: 1px solid #e5e7eb; }
.result-card h3 { font-size: 14px; font-weight: 600; color: #6b7280; margin: 0 0 12px 0; text-transform: uppercase; letter-spacing: 0.5px; }
.result-value { font-size: 32px; font-weight: 700; color: #111827; margin: 0; }
.result-subtitle { font-size: 13px; color: #9ca3af; margin: 8px 0 0 0; }

.comparison-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; background: white; border-radius: 16px; padding: 32px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); margin-bottom: 32px; }
.comparison-col h3 { font-size: 18px; font-weight: 700; margin: 0 0 20px 0; }
.comparison-item { padding: 16px; background: #f9fafb; border-radius: 8px; margin-bottom: 12px; }
.comparison-label { font-size: 13px; color: #6b7280; margin-bottom: 4px; }
.comparison-value { font-size: 24px; font-weight: 700; color: #111827; }

.channel-bar { margin-bottom: 16px; }
.channel-name { font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 6px; }
.channel-progress { height: 30px; background: #e5e7eb; border-radius: 8px; overflow: hidden; }
.channel-fill { height: 100%; background: linear-gradient(90deg, #3b82f6, #8b5cf6); transition: width 0.5s; }
.channel-values { display: flex; justify-content: space-between; margin-top: 4px; font-size: 12px; color: #6b7280; }

.quarter-card { background: #f9fafb; border-radius: 12px; padding: 20px; text-align: center; border: 2px solid #e5e7eb; }
.quarter-card h4 { font-size: 18px; font-weight: 700; margin: 0 0 12px 0; color: #3b82f6; }
.quarter-budget { font-size: 24px; font-weight: 700; color: #111827; margin: 0 0 8px 0; }
.quarter-focus { font-size: 13px; color: #6b7280; margin: 0; }

.rec-item { display: flex; align-items: start; gap: 12px; padding: 12px; background: #f9fafb; border-radius: 8px; margin-bottom: 8px; }
.rec-icon { font-size: 20px; }

.cta-section { background: linear-gradient(135deg, #1f2937 0%, #111827 100%); border-radius: 20px; padding: 48px; text-align: center; color: white; margin-top: 32px; }
.cta-section h3 { font-size: 28px; font-weight: 700; margin: 0 0 12px 0; }
.cta-section p { font-size: 16px; color: #d1d5db; margin: 0 0 24px 0; }
.cta-btn { display: inline-flex; align-items: center; padding: 16px 32px; font-size: 18px; font-weight: 600; color: #111827; background: white; border-radius: 12px; text-decoration: none; transition: all 0.3s; }
.cta-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(255,255,255,0.3); }

/* ESTILOS ESPECÍFICOS CALCULADORA CRO */
.form-label { display: flex; align-items: center; gap: 8px; }
.form-hint { display: block; font-size: 12px; color: #9ca3af; margin-top: 4px; }
.form-input { width: 100%; }
.form-select { width: 100%; }
.btn-calculate { width: 100%; padding: 16px 32px; font-size: 18px; font-weight: 600; color: white; background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); border: none; border-radius: 12px; cursor: pointer; transition: all 0.3s; }
.btn-calculate:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(59,130,246,0.3); }

/* Checkboxes de áreas */
.areas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 12px; }
.area-checkbox { display: flex; align-items: center; gap: 8px; padding: 12px; background: #f9fafb; border: 2px solid #e5e7eb; border-radius: 8px; cursor: pointer; transition: all 0.2s; }
.area-checkbox:hover { background: #f3f4f6; border-color: #3b82f6; }
.area-checkbox input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; }
.area-checkbox.checked { background: #eff6ff; border-color: #3b82f6; }
.area-label { font-size: 13px; font-weight: 500; color: #374151; cursor: pointer; }
.area-count { font-size: 12px; color: #6b7280; margin-top: 8px; }

/* Loading CRO */
.loading-state { display: none; flex-direction: column; align-items: center; justify-content: center; padding: 60px; background: white; border-radius: 16px; margin-bottom: 32px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.loading-state p { margin-top: 16px; font-size: 16px; color: #6b7280; }

/* Results CRO */
.results-section { display: none; }
.result-icon { font-size: 36px; margin-bottom: 8px; }
.result-content h3 { font-size: 14px; font-weight: 600; color: #6b7280; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.result-card.highlight { background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); border-color: #3b82f6; }
.result-card.highlight-green { background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%); border-color: #22c55e; }

/* Escenarios */
.section-divider { margin: 40px 0 24px 0; padding-bottom: 16px; border-bottom: 2px solid #e5e7eb; }
.section-divider h3 { font-size: 22px; font-weight: 700; color: #111827; margin: 0; }
.scenarios-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-bottom: 32px; }
.scenario-card { background: white; border-radius: 16px; padding: 0; box-shadow: 0 1px 3px rgba(0,0,0,0.1); border: 1px solid #e5e7eb; overflow: hidden; }
.scenario-header { padding: 16px; display: flex; justify-content: space-between; align-items: center; }
.scenario-header.conservador { background: #fef3c7; }
.scenario-header.esperado { background: #dbeafe; }
.scenario-header.optimista { background: #dcfce7; }
.scenario-header h4 { margin: 0; font-size: 16px; font-weight: 700; }
.scenario-badge { padding: 4px 12px; background: white; border-radius: 20px; font-size: 14px; font-weight: 600; }
.scenario-content { padding: 20px; }
.scenario-metric { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #f3f4f6; }
.scenario-metric:last-child { border-bottom: none; }
.metric-label { font-size: 13px; color: #6b7280; font-weight: 500; }
.metric-value { font-size: 16px; font-weight: 700; color: #111827; }

/* Proyección anual */
.annual-projection-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-bottom: 32px; }
.projection-card { background: white; border-radius: 16px; padding: 24px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); border: 1px solid #e5e7eb; text-align: center; }
.projection-icon { font-size: 48px; margin-bottom: 12px; }
.projection-card h4 { font-size: 14px; font-weight: 600; color: #6b7280; margin: 0 0 12px 0; text-transform: uppercase; }
.projection-value { font-size: 32px; font-weight: 700; color: #111827; margin: 8px 0; }
.projection-subtitle { font-size: 13px; color: #9ca3af; margin: 8px 0 0 0; }

/* Inversión */
.investment-section { background: #f9fafb; border-radius: 16px; padding: 32px; margin-bottom: 32px; }
.investment-section h3 { font-size: 20px; font-weight: 700; margin: 0 0 20px 0; }
.investment-details { display: grid; gap: 12px; }
.investment-item { display: flex; justify-content: space-between; align-items: center; padding: 16px; background: white; border-radius: 8px; }
.investment-label { font-size: 14px; font-weight: 500; color: #6b7280; }
.investment-value { font-size: 16px; font-weight: 700; color: #111827; }
.investment-value.highlighted { color: #22c55e; font-size: 18px; }

/* Recomendaciones */
.recommendations-grid { display: grid; gap: 16px; margin-bottom: 32px; }
.recommendation-item { display: flex; align-items: start; gap: 16px; padding: 20px; background: white; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); border-left: 4px solid #e5e7eb; }
.recommendation-item.success { border-left-color: #22c55e; background: #f0fdf4; }
.recommendation-item.warning { border-left-color: #f59e0b; background: #fffbeb; }
.recommendation-item.info { border-left-color: #3b82f6; background: #eff6ff; }
.recommendation-icon { font-size: 24px; flex-shrink: 0; }
.recommendation-content h4 { margin: 0 0 8px 0; font-size: 16px; font-weight: 700; color: #111827; }
.recommendation-content p { margin: 0; font-size: 14px; color: #6b7280; line-height: 1.5; }

/* CTA CRO */
.cta-card { background: linear-gradient(135deg, #1f2937 0%, #111827 100%); border-radius: 20px; padding: 48px; text-align: center; color: white; }
.cta-title { font-size: 28px; font-weight: 700; margin: 0 0 12px 0; }
.cta-subtitle { font-size: 16px; color: #d1d5db; margin: 0 0 24px 0; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-button { display: inline-flex; align-items: center; padding: 16px 32px; font-size: 18px; font-weight: 600; color: #111827; background: white; border-radius: 12px; text-decoration: none; transition: all 0.3s; }
.cta-button:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(255,255,255,0.3); }

/* ESTILOS EVALUACIÓN DEL PROYECTO */
.progress-container { background: white; border-radius: 12px; padding: 20px; margin-bottom: 32px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.progress-bar-bg { height: 8px; background: #e5e7eb; border-radius: 4px; overflow: hidden; margin-bottom: 12px; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, #3b82f6, #8b5cf6); transition: width 0.3s ease; }
.progress-text { text-align: center; font-size: 14px; color: #6b7280; font-weight: 600; }

.step-content { background: white; border-radius: 16px; padding: 40px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); margin-bottom: 32px; }
.step-title { font-size: 24px; font-weight: 700; color: #111827; margin: 0 0 8px 0; }
.step-subtitle { font-size: 16px; color: #6b7280; margin: 0 0 32px 0; }

.option-grid { display: grid; gap: 12px; margin-bottom: 24px; }
.option-item { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: #f9fafb; border: 2px solid #e5e7eb; border-radius: 12px; cursor: pointer; transition: all 0.2s; }
.option-item:hover { background: #f3f4f6; border-color: #3b82f6; }
.option-item input[type="checkbox"], .option-item input[type="radio"] { width: 20px; height: 20px; cursor: pointer; }
.option-item.checked { background: #eff6ff; border-color: #3b82f6; }
.option-label { font-size: 15px; font-weight: 500; color: #374151; flex: 1; cursor: pointer; }

.textarea-field { width: 100%; padding: 16px; font-size: 16px; font-family: 'Inter', sans-serif; border: 2px solid #e5e7eb; border-radius: 12px; resize: vertical; min-height: 120px; transition: border-color 0.2s; }
.textarea-field:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }

.step-buttons { display: flex; gap: 12px; justify-content: space-between; margin-top: 32px; }
.btn-prev, .btn-next { padding: 14px 28px; font-size: 16px; font-weight: 600; border-radius: 10px; cursor: pointer; transition: all 0.2s; border: none; }
.btn-prev { background: #f3f4f6; color: #374151; }
.btn-prev:hover { background: #e5e7eb; }
.btn-next { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); color: white; }
.btn-next:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(59,130,246,0.3); }

.urgency-card { background: white; border-radius: 16px; padding: 32px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); margin-bottom: 32px; display: flex; align-items: center; gap: 24px; }
.urgency-card.urgency-high { border-left: 6px solid #ef4444; background: #fef2f2; }
.urgency-card.urgency-medium { border-left: 6px solid #f59e0b; background: #fffbeb; }
.urgency-card.urgency-low { border-left: 6px solid #22c55e; background: #f0fdf4; }
.urgency-icon { font-size: 64px; }
.urgency-content h3 { font-size: 16px; color: #6b7280; margin: 0 0 8px 0; text-transform: uppercase; letter-spacing: 0.5px; }
.urgency-score { font-size: 48px; font-weight: 700; color: #111827; margin: 8px 0; }
.urgency-content p { font-size: 14px; color: #6b7280; margin: 0; }

.results-header { text-align: center; margin-bottom: 40px; }
.results-header h2 { font-size: 32px; font-weight: 700; color: #111827; margin: 0 0 12px 0; }
.results-subtitle { font-size: 16px; color: #6b7280; }

.diagnostico-section { background: white; border-radius: 16px; padding: 32px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); margin-bottom: 32px; }
.diagnostico-section h3 { font-size: 22px; font-weight: 700; margin: 0 0 20px 0; }
.diagnostico-card { background: #f9fafb; border-left: 4px solid #3b82f6; padding: 24px; border-radius: 8px; }
.diagnostico-card h4 { font-size: 18px; font-weight: 700; color: #111827; margin: 0 0 12px 0; }
.diagnostico-desc { font-size: 15px; color: #374151; line-height: 1.6; margin: 0; }
.accion-inmediata { background: #eff6ff; padding: 16px; border-radius: 8px; margin-top: 16px; font-size: 14px; color: #1e40af; }

.context-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-bottom: 32px; }
.context-card { background: white; border-radius: 16px; padding: 24px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); text-align: center; }
.context-icon { font-size: 40px; margin-bottom: 12px; }
.context-card h4 { font-size: 14px; color: #6b7280; text-transform: uppercase; letter-spacing: 0.5px; margin: 0 0 8px 0; }
.context-card p { font-size: 16px; font-weight: 600; color: #111827; margin: 0 0 8px 0; }
.context-badge { display: inline-block; padding: 4px 12px; background: #eff6ff; color: #3b82f6; border-radius: 20px; font-size: 12px; font-weight: 600; }
.context-badge-sm { display: inline-block; padding: 2px 8px; background: #f3f4f6; color: #6b7280; border-radius: 12px; font-size: 11px; }

.recomendaciones-section { background: white; border-radius: 16px; padding: 32px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); margin-bottom: 32px; }
.recomendaciones-section h3 { font-size: 22px; font-weight: 700; margin: 0 0 20px 0; }
.recomendaciones-grid { display: grid; gap: 16px; }
.rec-card { display: flex; align-items: start; gap: 16px; padding: 20px; background: #f9fafb; border-radius: 12px; border-left: 4px solid #3b82f6; }
.rec-number { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: #3b82f6; color: white; border-radius: 50%; font-weight: 700; flex-shrink: 0; }
.rec-card p { margin: 4px 0 0 0; font-size: 15px; color: #374151; line-height: 1.5; }

.plan-section { background: white; border-radius: 16px; padding: 32px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); margin-bottom: 32px; }
.plan-section h3 { font-size: 22px; font-weight: 700; margin: 0 0 32px 0; }
.timeline-item { display: flex; gap: 20px; margin-bottom: 32px; }
.timeline-marker { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; color: white; flex-shrink: 0; }
.timeline-marker.week-1-2 { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.timeline-marker.week-3-6 { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.timeline-marker.week-7-12 { background: linear-gradient(135deg, #22c55e, #16a34a); }
.timeline-content { flex: 1; }
.timeline-content h4 { font-size: 18px; font-weight: 700; margin: 0 0 12px 0; color: #111827; }
.timeline-content ul { margin: 0; padding-left: 20px; }
.timeline-content li { font-size: 15px; color: #374151; line-height: 1.8; }

.tools-section { background: white; border-radius: 16px; padding: 32px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); margin-bottom: 32px; }
.tools-section h3 { font-size: 22px; font-weight: 700; margin: 0 0 8px 0; }
.tools-subtitle { font-size: 14px; color: #6b7280; margin: 0 0 24px 0; }
.tools-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.tool-card-link { display: flex; align-items: center; gap: 12px; padding: 20px; background: #f9fafb; border: 2px solid #e5e7eb; border-radius: 12px; text-decoration: none; color: #374151; transition: all 0.2s; }
.tool-card-link:hover { background: #eff6ff; border-color: #3b82f6; transform: translateY(-2px); }
.tool-icon { font-size: 32px; }
.tool-card-link span { flex: 1; font-weight: 600; }

.final-cta { background: linear-gradient(135deg, #1f2937 0%, #111827 100%); border-radius: 20px; padding: 48px; text-align: center; color: white; }
.final-cta h3 { font-size: 28px; font-weight: 700; margin: 0 0 12px 0; }
.final-cta p { font-size: 16px; color: #d1d5db; margin: 0 0 24px 0; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-button-final { display: inline-flex; align-items: center; padding: 16px 32px; font-size: 18px; font-weight: 600; color: #111827; background: white; border-radius: 12px; text-decoration: none; transition: all 0.3s; }
.cta-button-final:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(255,255,255,0.3); }

@media (max-width: 768px) {
  .form-grid { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr; }
  .comparison-grid { grid-template-columns: 1fr; }
  .scenarios-grid { grid-template-columns: 1fr; }
  .annual-projection-grid { grid-template-columns: 1fr; }
  .areas-grid { grid-template-columns: 1fr; }
  .context-grid { grid-template-columns: 1fr; }
  .tools-list { grid-template-columns: 1fr; }
  .step-content { padding: 24px; }
  .urgency-card { flex-direction: column; text-align: center; }
}
