.reporte-container {
  flex: 1;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.meta-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.meta-row .field { display: flex; flex-direction: column; }
.meta-row label {
  font-size: 0.82rem; color: #374151;
  font-weight: 600; margin-bottom: 0.3rem;
}
.meta-row input {
  padding: 0.6rem 0.75rem; border: 1px solid #D1D5DB;
  border-radius: 8px; font-size: 0.95rem; font-family: inherit; background: white;
}
.meta-row input:focus { outline: none; border-color: #2563EB; box-shadow: 0 0 0 3px rgba(37,99,235,0.15); }

.tipo-selector {
  background: white;
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.tipo-selector h2 {
  font-size: 1rem;
  color: #0A1D3D;
  margin-bottom: 1rem;
  font-weight: 700;
}
.tipo-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.tipo-card {
  position: relative;
  border: 2px solid #E5E7EB;
  border-radius: 12px;
  padding: 1.25rem 1rem;
  cursor: pointer;
  background: #F9FAFB;
  transition: all 0.15s;
}
.tipo-card input[type=radio] {
  position: absolute; opacity: 0; pointer-events: none;
}
.tipo-inner {
  display: flex; flex-direction: column;
  align-items: center; text-align: center; gap: 0.4rem;
}
.tipo-icon { font-size: 2rem; }
.tipo-title { font-weight: 800; font-size: 1rem; letter-spacing: 0.03em; color: #0A1D3D; }
.tipo-desc { font-size: 0.78rem; color: #6B7280; }

.tipo-card.tipo-frio.selected {
  border-color: #2563EB;
  background: #EFF6FF;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.tipo-card.tipo-frio.selected .tipo-title { color: #2563EB; }
.tipo-card.tipo-caliente.selected {
  border-color: #EA580C;
  background: #FFF7ED;
  box-shadow: 0 0 0 3px rgba(234,88,12,0.15);
}
.tipo-card.tipo-caliente.selected .tipo-title { color: #EA580C; }

.card-section {
  background: white;
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border-left: 4px solid #2563EB;
}
.card-section.frio { border-left-color: #2563EB; }
.card-section.caliente { border-left-color: #EA580C; }
.card-section h2 {
  font-size: 1.05rem;
  color: #0A1D3D;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem 1rem;
}
.grid-span-2 { grid-column: span 2; }
.field { display: flex; flex-direction: column; }
.field label { font-size: 0.82rem; color: #374151; font-weight: 600; margin-bottom: 0.3rem; }
.field input, .field textarea {
  padding: 0.6rem 0.75rem; border: 1px solid #D1D5DB;
  border-radius: 8px; font-size: 0.95rem; font-family: inherit; background: white;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: #2563EB; box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.card-section.caliente .field input:focus,
.card-section.caliente .field textarea:focus {
  border-color: #EA580C; box-shadow: 0 0 0 3px rgba(234,88,12,0.15);
}
.field input:invalid:not(:placeholder-shown) { border-color: #EF4444; }

.sub-form { animation: fadeIn 0.2s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

.actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.btn-primary, .btn-secondary {
  padding: 0.75rem 1.5rem; border-radius: 10px;
  font-size: 0.95rem; font-weight: 700; cursor: pointer;
  border: none; display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: inherit;
}
.btn-primary { background: #2563EB; color: white; }
.btn-primary:hover { background: #1D4ED8; }
.btn-primary:disabled { background: #9CA3AF; cursor: not-allowed; }
.btn-secondary { background: #E5E7EB; color: #374151; }
.btn-secondary:hover { background: #D1D5DB; }
.spinner {
  width: 14px; height: 14px; border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white; border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.toast {
  position: fixed; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  padding: 1rem 1.5rem; border-radius: 10px;
  color: white; font-weight: 600;
  box-shadow: 0 10px 24px rgba(0,0,0,0.2);
  z-index: 999; max-width: 90%;
}
.toast.success { background: #22C55E; }
.toast.error { background: #EF4444; }

@media (max-width: 720px) {
  .meta-row { grid-template-columns: 1fr; }
  .tipo-cards { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-span-2 { grid-column: span 1; }
  .actions { flex-direction: column-reverse; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
}
