/* ==========================================================================
   Calculadora de toxicidad de alimentos para perros y gatos - Urgencias en casa
   Fijate Tools - Estilos corporativos y sistema de triaje clínico
   ========================================================================== */

:root {
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Paleta base en tema oscuro (Midnight Slate) */
  --bg-page: #0b0f17;
  --bg-card: #131b2a;
  --bg-card-hover: #192336;
  --bg-surface: #1e293b;
  --border-color: #27354a;
  --border-focus: #3b82f6;

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-glow: rgba(59, 130, 246, 0.25);

  /* Colores de triaje clínico */
  --risk-green: #10b981;
  --risk-green-bg: rgba(16, 185, 129, 0.12);
  --risk-green-border: rgba(16, 185, 129, 0.4);

  --risk-yellow: #f59e0b;
  --risk-yellow-bg: rgba(245, 158, 11, 0.12);
  --risk-yellow-border: rgba(245, 158, 11, 0.4);

  --risk-red: #ef4444;
  --risk-red-bg: rgba(239, 68, 68, 0.14);
  --risk-red-border: rgba(239, 68, 68, 0.45);

  --risk-critical: #dc2626;
  --risk-critical-bg: rgba(220, 38, 38, 0.22);
  --risk-critical-border: rgba(239, 68, 68, 0.8);
  --risk-critical-pulse: rgba(220, 38, 38, 0.4);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
}

/* Modo claro automático o forzado */
body.theme-light,
:root[data-theme="light"] {
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-surface: #e2e8f0;
  --border-color: #cbd5e1;
  --border-focus: #2563eb;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;

  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-glow: rgba(37, 99, 235, 0.18);

  --risk-green: #059669;
  --risk-green-bg: rgba(16, 185, 129, 0.14);
  --risk-green-border: #10b981;

  --risk-yellow: #d97706;
  --risk-yellow-bg: rgba(245, 158, 11, 0.15);
  --risk-yellow-border: #f59e0b;

  --risk-red: #dc2626;
  --risk-red-bg: rgba(239, 68, 68, 0.14);
  --risk-red-border: #ef4444;

  --risk-critical: #b91c1c;
  --risk-critical-bg: rgba(220, 38, 38, 0.18);
  --risk-critical-border: #dc2626;
  --risk-critical-pulse: rgba(220, 38, 38, 0.25);

  --shadow-card: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
}

/* Reset y estructura básica */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Tipografía de títulos */
h1, h2, h3, h4, h5, h6,
.brand-title,
.hero-title,
.section-title,
.triage-title,
.faq-question {
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
}

/* Tipografía mono para números y medidas */
.mono,
.kpi-value,
.code-num,
.formula-tag {
  font-family: var(--font-mono);
}

/* Enlaces limpios */
a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  text-decoration: underline;
}

/* Layout canónico */
.main-wrapper.tool-layout {
  flex: 1 0 auto;
  max-width: 1200px;
  width: 100%;
  margin: 1.25rem auto 3rem;
  padding: 0 1rem;
}

.tool-with-sidebar {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.tool-main-content {
  flex: 1 1 0%;
  min-width: 0;
  width: 100%;
}

/* Sidebar AdSense */
.tool-ad-sidebar {
  width: 300px;
  flex-shrink: 0;
  display: none;
}

@media (min-width: 1536px) {
  .tool-ad-sidebar {
    display: block;
  }
}

.ad-sticky-box {
  position: sticky;
  top: 80px;
}

/* Tarjeta principal */
.card-main {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  margin-bottom: 2rem;
  transition: border-color 0.2s ease;
}

@media (min-width: 768px) {
  .card-main {
    padding: 2.25rem;
  }
}

/* Hero informativo y cabecera de urgencia */
.urgency-badge-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.emergency-phone-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--risk-red-bg);
  border: 1px solid var(--risk-red-border);
  color: var(--risk-red);
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
}

.emergency-phone-tag a {
  color: inherit;
  font-family: var(--font-mono);
  text-decoration: underline;
}

.vet-verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 500;
}

.hero-header {
  margin-bottom: 1.75rem;
}

.hero-title {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.6rem;
  color: var(--text-main);
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 2.25rem;
  }
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 850px;
}

/* Grid de formulario de triaje */
.triage-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .triage-form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.label-hint {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* Selector de especie (Perro / Gato) */
.species-selector {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
}

.species-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 48px;
  width: 100%;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.species-btn:hover {
  border-color: var(--primary);
  color: var(--text-main);
  background: var(--bg-card-hover);
}

.species-btn.active {
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.15);
  color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

.species-btn svg {
  flex-shrink: 0;
}

/* Controles de formulario (inputs y selects) */
.input-field,
.select-field {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 46px;
  min-height: 46px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.9rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-main);
  transition: border-color 0.2s, box-shadow 0.2s;
}

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

.select-field {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 42px;
}

.select-field option {
  background-color: var(--bg-card);
  color: var(--text-main);
}

/* Wrapper flexbox para input con sufijo/unidad */
.input-with-unit {
  display: flex;
  align-items: stretch;
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-with-unit:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.input-with-unit input {
  flex: 1 1 0%;
  width: 0;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0.6rem 0.9rem;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
  height: 46px;
}

.input-with-unit input:focus {
  outline: none;
}

.input-with-unit .input-unit-label {
  display: flex;
  align-items: center;
  padding: 0 1rem;
  background: rgba(0, 0, 0, 0.15);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  border-left: 1px solid var(--border-color);
  user-select: none;
}

/* Fila de presets de peso por razas */
.presets-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.preset-chip {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.preset-chip:hover {
  border-color: var(--primary);
  color: var(--text-main);
}

.preset-chip.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* Control deslizante de peso (slider) */
.weight-slider-wrapper {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.weight-range-slider {
  flex: 1 1 0%;
  width: 100%;
  height: 6px;
  background: var(--bg-surface);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  accent-color: var(--primary);
}

/* Selector de unidades de cantidad (gramos, onzas, chicles, etc.) */
.unit-toggle-group {
  display: flex;
  gap: 0.4rem;
  background: var(--bg-surface);
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  margin-top: 0.35rem;
}

.unit-toggle-btn {
  flex: 1 1 0%;
  min-height: 36px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: calc(var(--radius-sm) - 2px);
  cursor: pointer;
  transition: all 0.15s ease;
}

.unit-toggle-btn.active {
  background: var(--bg-card);
  color: var(--text-main);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Tarjeta informativa dinámica del tóxico seleccionado */
.toxic-info-banner {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 2rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.toxic-info-banner svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.toxic-info-banner strong {
  color: var(--text-main);
}

/* ==========================================================================
   PANEL DE RESULTADOS DE TRIAJE INMEDIATO
   ========================================================================== */

.triage-result-card {
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 2px solid var(--border-color);
}

@media (min-width: 768px) {
  .triage-result-card {
    padding: 2.25rem;
  }
}

/* Estados cromáticos del semáforo */
.triage-result-card.risk-green {
  background: var(--risk-green-bg);
  border-color: var(--risk-green-border);
}

.triage-result-card.risk-yellow {
  background: var(--risk-yellow-bg);
  border-color: var(--risk-yellow-border);
}

.triage-result-card.risk-red {
  background: var(--risk-red-bg);
  border-color: var(--risk-red-border);
}

.triage-result-card.risk-critical {
  background: var(--risk-critical-bg);
  border-color: var(--risk-critical-border);
  box-shadow: 0 0 35px var(--risk-critical-pulse);
  animation: pulseCritical 2.5s infinite ease-in-out;
}

@keyframes pulseCritical {
  0%, 100% {
    box-shadow: 0 0 25px var(--risk-critical-pulse);
  }
  50% {
    box-shadow: 0 0 50px rgba(220, 38, 38, 0.6);
  }
}

/* Cabecera del resultado */
.triage-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .triage-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.triage-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.risk-green .triage-badge {
  background: var(--risk-green);
  color: #ffffff;
}

.risk-yellow .triage-badge {
  background: var(--risk-yellow);
  color: #0f172a;
}

.risk-red .triage-badge {
  background: var(--risk-red);
  color: #ffffff;
}

.risk-critical .triage-badge {
  background: var(--risk-critical);
  color: #ffffff;
  animation: bounceBadge 1.5s infinite;
}

@keyframes bounceBadge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.triage-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
}

@media (min-width: 768px) {
  .triage-title {
    font-size: 1.85rem;
  }
}

.triage-summary-text {
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--text-main);
  margin-bottom: 1.75rem;
}

/* Grid de métricas cuantitativas (KPIs) */
.kpi-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.kpi-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.kpi-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.kpi-subtext {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
}

/* Barra de progreso de toxicidad */
.toxicity-bar-wrapper {
  margin-bottom: 1.75rem;
}

.toxicity-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.toxicity-bar-track {
  width: 100%;
  height: 10px;
  background: var(--bg-surface);
  border-radius: 9999px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  position: relative;
}

.toxicity-bar-fill {
  height: 100%;
  width: 0%;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 9999px;
}

.risk-green .toxicity-bar-fill { background: var(--risk-green); }
.risk-yellow .toxicity-bar-fill { background: var(--risk-yellow); }
.risk-red .toxicity-bar-fill { background: var(--risk-red); }
.risk-critical .toxicity-bar-fill { background: var(--risk-critical); }

/* Bloque de ventana de tiempo y primeros auxilios */
.action-protocol-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.75rem;
}

.protocol-section-heading {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.protocol-text {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.protocol-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-left: 0;
}

.protocol-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--text-main);
}

.protocol-list li svg {
  flex-shrink: 0;
  margin-top: 3px;
}

.protocol-list li strong {
  color: var(--text-main);
}

/* Alerta de NO provocar el vómito con sal */
.warning-salt-box {
  background: rgba(239, 68, 68, 0.12);
  border-left: 4px solid var(--risk-red);
  padding: 0.9rem 1.15rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-main);
}

.warning-salt-box strong {
  color: var(--risk-red);
}

/* Botones de acción rápida (Copiar informe, Llamar urgencias) */
.action-buttons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn-primary-action,
.btn-secondary-action,
.btn-emergency-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  height: 48px;
  min-height: 48px;
  padding: 0 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

@media (min-width: 640px) {
  .btn-primary-action,
  .btn-secondary-action,
  .btn-emergency-call {
    width: auto;
    flex: 1 1 0%;
  }
}

.btn-primary-action {
  background: var(--primary);
  color: #ffffff;
  border: none;
}

.btn-primary-action:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 15px var(--primary-glow);
  text-decoration: none;
}

.btn-secondary-action {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary-action:hover {
  background: var(--bg-card-hover);
  border-color: var(--text-muted);
  text-decoration: none;
}

.btn-emergency-call {
  background: var(--risk-red);
  color: #ffffff;
  border: none;
}

.btn-emergency-call:hover {
  background: #dc2626;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
  text-decoration: none;
}

/* ==========================================================================
   GUÍA EDUCATIVA Y TABLAS TOXICOLÓGICAS (SEO)
   ========================================================================== */

.educational-guide-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .educational-guide-section {
    padding: 2.5rem;
  }
}

.guide-section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.guide-lead {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Tabla comparativa de chocolates */
.table-responsive-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 2.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.clinical-data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.clinical-data-table th,
.clinical-data-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.clinical-data-table th {
  background: var(--bg-surface);
  font-weight: 700;
  color: var(--text-main);
  font-family: var(--font-heading);
}

.clinical-data-table tr:last-child td {
  border-bottom: none;
}

.clinical-data-table tr:hover td {
  background: var(--bg-card-hover);
}

.badge-risk-sm {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-risk-sm.green { background: var(--risk-green-bg); color: var(--risk-green); }
.badge-risk-sm.yellow { background: var(--risk-yellow-bg); color: var(--risk-yellow); }
.badge-risk-sm.red { background: var(--risk-red-bg); color: var(--risk-red); }

/* Acordeones FAQ accesibles */
.faq-accordion-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item[open] {
  border-color: var(--primary);
  background: var(--bg-card);
}

.faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.25rem;
  cursor: pointer;
  user-select: none;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-main);
  font-family: var(--font-heading);
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary svg {
  transition: transform 0.2s ease;
  flex-shrink: 0;
  color: var(--text-muted);
}

.faq-item[open] .faq-summary svg {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-content {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  border-top: 1px solid transparent;
}

.faq-item[open] .faq-content {
  border-top-color: var(--border-color);
  padding-top: 1rem;
}

.faq-content p + p {
  margin-top: 0.75rem;
}

/* Modal accesible corporativo (sin alerts) */
.custom-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.custom-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.custom-modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  max-width: 580px;
  width: 100%;
  padding: 1.75rem;
  transform: translateY(20px) scale(0.96);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.custom-modal-backdrop.open .custom-modal-box {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.35rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  color: var(--text-main);
  background: var(--bg-surface);
}

.modal-body {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.report-preview-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 240px;
  overflow-y: auto;
  color: var(--text-main);
  margin-top: 0.75rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Toast de notificación rápida */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-card);
  border: 1px solid var(--primary);
  color: var(--text-main);
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  font-size: 0.92rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 10001;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-notification svg {
  color: var(--primary);
  flex-shrink: 0;
}
