/* ============================================================
   Calculadora de Pérdidas — estilos específicos de la herramienta.
   Base y tokens: ../shared/design-system.css
   ============================================================ */
@import "../shared/design-system.css";

/* ---- LAYOUT ---- */
.main-content {
  flex: 1;
  max-width: 760px;
  padding-top: 32px;
  padding-bottom: 64px;
}

/* ---- HERO ---- */
.hero { padding: 56px 0 48px; }

.hero-label { margin-bottom: 20px; }

.hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--color-text-muted);
  max-width: 480px;
  line-height: 1.6;
  margin-bottom: 32px;
}

/* ---- CARDS ---- */
.card { margin-bottom: 20px; }

.card-label { margin-bottom: 10px; }

.card h2 {
  font-size: 26px;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.card-desc {
  font-size: 15px;
  color: var(--color-text-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

.card-lead {
  border-color: rgba(0, 178, 184, 0.25);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(29, 74, 92, 0.4) 100%);
}

/* ---- FORM ---- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  color: rgba(246, 245, 241, 0.75);
  display: flex;
  align-items: center;
  gap: 8px;
}

.field-optional {
  font-size: 11px;
  font-weight: 400;
  color: var(--color-text-muted);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select {
  font-family: var(--font-ui);
  font-size: 15px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  color: var(--text);
  padding: 12px 14px;
  height: 48px;
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
  -moz-appearance: textfield;
  appearance: none;
  -webkit-appearance: none;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

input:focus, select:focus {
  outline: none;
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px var(--teal-glow);
}

input.input-error {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237B8794' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.input-group { display: flex; gap: 8px; }
.input-group select { width: auto; min-width: 100px; flex-shrink: 0; }
.input-group input  { flex: 1; }

.field-hint  { font-size: 12px; color: var(--color-text-muted); }
.field-error { font-size: 12px; color: var(--color-error); min-height: 1.1em; }

.form-disclaimer {
  font-size: 12px;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 12px;
}

#lead-form .btn-primary { width: 100%; margin-top: 16px; }
#calc-form .btn-primary { width: 100%; }

/* ---- RESULTS ---- */
.results {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  animation: fadeUp 0.35s ease both;
}

.results-header { margin-bottom: 16px; }

.results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.result-card {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.result-main {
  border-color: rgba(0, 178, 184, 0.40);
  background: rgba(0, 178, 184, 0.07);
}

.result-label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.result-metric {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--color-teal);
}

.result-metric-sm { font-size: 32px; color: var(--color-warm-white); }

.result-context {
  font-size: 14px;
  color: var(--color-text-muted);
  padding: 14px 16px;
  background: var(--bg-input);
  border-radius: var(--radius-input);
  line-height: 1.55;
}

.result-context strong { color: var(--color-teal-medium); font-weight: 500; }

/* ---- LEAD SUCCESS ---- */
.lead-success {
  padding: 16px 0;
  text-align: center;
  animation: fadeUp 0.35s ease both;
}

.success-mark { display: flex; justify-content: center; margin-bottom: 20px; }

.lead-success h2   { font-size: 32px; margin-bottom: 12px; }
.lead-success p    { font-size: 15px; color: var(--color-text-muted); max-width: 420px; margin: 0 auto 8px; line-height: 1.6; }
.success-detail    { font-size: 13px !important; margin-top: 16px !important; }

/* ---- PROCESS STEPS ---- */
.process-steps { display: flex; flex-direction: column; margin-top: 8px; }

.process-step {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.process-step:last-child { border-bottom: none; }

.step-bar { width: 4px; min-height: 80px; border-radius: var(--radius-pill); flex-shrink: 0; }
.step-bar-1 { background: var(--color-teal); }
.step-bar-2 { background: var(--color-teal-medium); }
.step-bar-3 { background: rgba(246,245,241,0.25); }

.step-content { flex: 1; }

.step-tag { font-size: 10px; letter-spacing: 0.20em; color: var(--color-teal); margin-bottom: 6px; }

.step-content h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
}

.step-content p { font-size: 14px; color: var(--color-text-muted); line-height: 1.6; }

/* ---- RESPONSIVE ---- */
@media (min-width: 600px) {
  .form-grid            { grid-template-columns: repeat(3, 1fr); }
  .results-grid         { grid-template-columns: 1fr 1fr 1fr; }
  .result-metric        { font-size: 36px; }
  .result-metric-sm     { font-size: 26px; }
  .result-main .result-metric { font-size: 44px; }
}

@media (min-width: 768px) {
  .hero  { padding: 72px 0 56px; }
  .card  { padding: 40px; }
}

@media (max-width: 480px) {
  .hero            { padding: 40px 0 32px; }
  .card            { padding: 24px 20px; }
  .result-metric   { font-size: 36px; }
  .result-metric-sm { font-size: 26px; }
}
