@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0&display=block');

/* OrdoHub · tokens del sistema de diseño (tokens.json) */
.ohds {
  --primary: #5f33f4; --on-primary: #ffffff;
  --primary-container: #f5f3fe; --on-primary-container: #5f33f4;
  --secondary: #46bcc3; --secondary-container: #f4fafa;
  --brand-gradient-start: #5f33f4; --brand-gradient-end: #47d6d2;
  --background: #f5f9f9; --surface: #ffffff; --surface-container: #f3f4fa; --surface-container-low: #f8f8fc;
  --text-primary: #000000; --text-secondary: #616161; --text-link: #5f33f4;
  --border-subtle: #e6e8ec; --divider: #f1f5f5; --focus: #5f33f4;
  --error: #dd3333; --success: #2e7d32; --warning: #e65100; --info: #5f33f4;
  --opacity-status: 10%;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px;
  --radius-md: 12px; --radius-lg: 16px; --radius-control: 22px; --radius-full: 999px;
  --elevation-1: 0 4px 8px #90b7b926; --elevation-2: 0 8px 27px #90b7b926;
  --icon-md: 24px; --tile-lg: 54px; --touch-target: 48px; --button-height: 60px;
  --max-form: 560px; --margin: 20px;
  --sans: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
  --text-headline: 700 24px/32px var(--sans);
  --text-title-lg: 700 20px/28px var(--sans);
  --text-title-sm: 600 16px/24px var(--sans);
  --text-body-lg: 500 16px/24px var(--sans);
  --text-body-md: 400 14px/20px var(--sans);
  --text-body-sm: 400 13px/18px var(--sans);
  --text-label-lg: 700 16px/24px var(--sans);
  --text-button-lg: 700 18px/26px var(--sans);
  --text-label-md: 600 14px/20px var(--sans);
  --text-label-sm: 500 12px/16px var(--sans);

  background: var(--background);
  color: var(--text-primary);
  font: var(--text-body-md);
  padding: var(--space-10) var(--margin);
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 600px) { .ohds { --margin: 24px; } }
.ohds * { box-sizing: border-box; }
.ohds :where(h1, h2, h3, p, ul, ol, li, dl, dt, dd) { margin: 0; padding: 0; list-style: none; }
.ohds a:focus-visible, .ohds summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-md); }

.ohds-page { max-width: var(--max-form); margin: 0 auto; display: flex; flex-direction: column; gap: var(--space-6); }
.ohds-head { display: flex; flex-direction: column; gap: var(--space-2); }
.ohds-brand { font: var(--text-label-md); color: var(--primary); }
.ohds-title { font: var(--text-headline); }
.ohds-lead { font: var(--text-body-lg); color: var(--text-secondary); }
.ohds-text { font: var(--text-body-md); }
.ohds-note { font: var(--text-body-sm); color: var(--text-secondary); }
.ohds-steps { display: flex; flex-direction: column; gap: var(--space-2); counter-reset: ohds-step; }
.ohds-steps li { counter-increment: ohds-step; display: flex; gap: var(--space-3); font: var(--text-body-md); }
.ohds-steps li::before { content: counter(ohds-step); flex: none; width: 24px; height: 24px; border-radius: var(--radius-full); background: var(--primary-container); color: var(--on-primary-container); font: var(--text-label-sm); display: inline-flex; align-items: center; justify-content: center; }
.ohds-actions { display: flex; flex-direction: column; gap: var(--space-3); }

/* Icon */
.ohds .oh-icon { font-family: 'Material Symbols Outlined'; font-weight: normal; font-style: normal; font-size: var(--icon-md); width: var(--icon-md); height: var(--icon-md); display: inline-flex; align-items: center; justify-content: center; line-height: 1; white-space: nowrap; direction: ltr; overflow: hidden; font-feature-settings: 'liga'; font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; -webkit-font-smoothing: antialiased; }

/* Surface */
.ohds .oh-surface { background: var(--surface); border-radius: var(--radius-lg); }
.ohds .oh-surface--elevated { box-shadow: var(--elevation-1); }
.ohds .oh-surface--raised { box-shadow: var(--elevation-2); }
.ohds-pad { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-4); }
.ohds-cardhead { display: flex; align-items: center; gap: var(--space-3); }
.ohds-cardhead h3 { font: var(--text-title-sm); }

/* SectionHeader */
.ohds .oh-section { display: flex; align-items: center; min-height: 40px; }
.ohds .oh-section__title { font: var(--text-title-lg); color: var(--primary); }
.ohds-block { display: flex; flex-direction: column; gap: var(--space-3); }

/* IconTile */
.ohds .oh-tile { display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: var(--radius-control); }
.ohds .oh-tile--sm { width: 40px; height: 40px; border-radius: var(--radius-full); }
.ohds .oh-tile--lg { width: var(--tile-lg); height: var(--tile-lg); }
.ohds .oh-tile--primary { background: var(--primary-container); color: var(--primary); }
.ohds .oh-tile--accent { background: var(--secondary-container); color: var(--secondary); }

/* ListTile */
.ohds .oh-list { padding: 0 var(--space-4); }
.ohds .oh-tile-row { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) 0; min-height: 64px; width: 100%; }
.ohds .oh-tile-row + .oh-tile-row { border-top: 1px solid var(--divider); }
.ohds .oh-tile-row__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ohds .oh-tile-row__title { font: var(--text-title-sm); }
.ohds .oh-tile-row__sub { font: var(--text-body-sm); color: var(--text-secondary); }

/* Preguntas frecuentes: ListTile desplegable */
.ohds details + details { border-top: 1px solid var(--divider); }
.ohds summary { list-style: none; cursor: pointer; }
.ohds summary::-webkit-details-marker { display: none; }
.ohds summary .ohds-chev { color: var(--text-primary); transition: transform .2s; }
.ohds details[open] .ohds-chev { transform: rotate(180deg); }
.ohds .ohds-answer { font: var(--text-body-md); color: var(--text-secondary); padding: 0 0 var(--space-4) 52px; }

/* KeyValue */
.ohds .oh-kvgroup { padding: 0 var(--space-4); }
.ohds .oh-kv { display: flex; flex-direction: column; gap: 2px; padding: var(--space-3) 0; }
.ohds .oh-kv + .oh-kv { border-top: 1px solid var(--divider); }
.ohds .oh-kv__label { font: var(--text-label-sm); color: var(--text-secondary); }
.ohds .oh-kv__value { font: var(--text-title-sm); color: var(--text-primary); }
.ohds .oh-kv__note { font: var(--text-body-sm); color: var(--text-secondary); }

/* StatusBanner */
.ohds .oh-banner { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); }
.ohds .oh-banner--warning { background: color-mix(in srgb, var(--warning) var(--opacity-status), var(--surface)); }
.ohds .oh-banner--info { background: color-mix(in srgb, var(--info) var(--opacity-status), var(--surface)); }
.ohds .oh-banner .oh-tile { background: var(--surface); }
.ohds .oh-banner--warning .oh-tile { color: var(--warning); }
.ohds .oh-banner--info .oh-tile { color: var(--info); }
.ohds .oh-banner__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ohds .oh-banner__title { font: var(--text-title-sm); color: var(--text-primary); }
.ohds .oh-banner__desc { font: var(--text-body-sm); color: var(--text-primary); }

/* Button */
.ohds .oh-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: var(--touch-target); padding: 0 var(--space-6); border-radius: var(--radius-control); border: 1px solid transparent; font: var(--text-label-lg); text-decoration: none; text-align: center; }
.ohds .oh-btn--lg { min-height: var(--button-height); font: var(--text-button-lg); padding: 0 var(--space-8); }
.ohds .oh-btn--full { width: 100%; }
.ohds .oh-btn--gradient { background: linear-gradient(135deg, var(--brand-gradient-start), var(--brand-gradient-end)); color: var(--on-primary); }
.ohds .oh-btn--outline { background: var(--surface); color: var(--primary); border-color: var(--primary); }
.ohds .oh-btn--tonal { background: var(--primary-container); color: var(--on-primary-container); }
.ohds .oh-btn--link { background: transparent; color: var(--text-link); min-height: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; font: var(--text-label-md); }
.ohds .oh-btn--outline:hover, .ohds .oh-btn--tonal:hover { background-image: linear-gradient(color-mix(in srgb, var(--primary) 8%, transparent), color-mix(in srgb, var(--primary) 8%, transparent)); }
.ohds .oh-btn--gradient:hover { background-image: linear-gradient(color-mix(in srgb, #ffffff 8%, transparent), color-mix(in srgb, #ffffff 8%, transparent)), linear-gradient(135deg, var(--brand-gradient-start), var(--brand-gradient-end)); }
.ohds .oh-btn:active { transform: scale(.98); }
.ohds .oh-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ohds-mail { font: var(--text-label-md); color: var(--text-link); text-decoration: underline; text-underline-offset: 3px; word-break: break-all; }

@media (prefers-reduced-motion: reduce) { .ohds * { transition: none !important; } }
