/* Base visual compartida por el landing y las páginas legales de BERNORIX. */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
@media (pointer: coarse) {
  html {
    scroll-behavior: auto;
  }
}

.skip-link {
  position: fixed;
  left: max(0.75rem, env(safe-area-inset-left, 0px));
  top: -6rem;
  z-index: 9999;
  padding: 0.65rem 1.15rem;
  border-radius: 0.5rem;
  background: #0069c9;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.18);
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: max(0.75rem, env(safe-area-inset-top, 0px));
  outline: 2px solid #fff;
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .skip-link {
    transition: none;
  }
}

.bernorix-brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.bernorix-brand-lockup img {
  display: block;
  width: auto;
  max-width: none;
  filter: drop-shadow(0 2px 8px rgb(59 130 246 / 0.14));
}
.bernorix-brand-lockup__glow {
  display: block;
  filter: drop-shadow(0 1px 6px rgb(30 58 138 / 0.2)) drop-shadow(0 2px 12px rgb(59 130 246 / 0.16));
}
.bernorix-brand-lockup__text {
  display: block;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
  background-image: linear-gradient(135deg, #1e3a8a 0%, #007a6a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
html.dark .bernorix-brand-lockup img {
  filter: drop-shadow(0 2px 10px rgb(59 130 246 / 0.22));
}
html.dark .bernorix-brand-lockup__glow {
  filter: drop-shadow(0 1px 8px rgb(59 130 246 / 0.24)) drop-shadow(0 2px 14px rgb(30 58 138 / 0.2));
}
html.dark .bernorix-brand-lockup__text {
  background-image: linear-gradient(135deg, #60a5fa 0%, #00a384 100%);
}
header .bernorix-brand-lockup__text {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
@media (max-width: 389px) {
  header .bernorix-brand-lockup__text {
    font-size: 1.5rem;
  }
}
@media (min-width: 640px) {
  header .bernorix-brand-lockup__text {
    font-size: 2.25rem;
    letter-spacing: -0.015em;
  }
}

.bernorix-grad-radial {
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(12, 135, 235, 0.12), transparent);
}
.bernorix-grad-fade {
  background: linear-gradient(to bottom, transparent, rgba(248, 250, 252, 0.9));
}
html.dark .bernorix-grad-radial {
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(12, 135, 235, 0.22), transparent);
}
html.dark .bernorix-grad-fade {
  background: linear-gradient(to bottom, transparent, rgba(2, 6, 23, 0.94));
}

/* Modo claro: texto gris → negro para mejor legibilidad */
html:not(.dark) body {
  color: #000;
}
html:not(.dark) .text-slate-400,
html:not(.dark) .text-slate-500,
html:not(.dark) .text-slate-600,
html:not(.dark) .text-slate-700,
html:not(.dark) .text-slate-800,
html:not(.dark) .text-slate-900,
html:not(.dark) .text-brand-700 {
  color: #000;
}
/* Modo claro: acentos verdes visibles (gestión hospitalaria) */
html:not(.dark) .text-emerald-600,
html:not(.dark) .text-emerald-400 {
  color: #059669;
}
html:not(.dark) .text-emerald-700 {
  color: #047857;
}
html:not(.dark) .border-emerald-500 {
  border-color: #10b981;
}
html:not(.dark) .border-emerald-600 {
  border-color: #059669;
}
html:not(.dark) .hover\:text-slate-700:hover {
  color: #000;
}

/* Modo claro: bordes más visibles sobre fondos blancos */
html:not(.dark) .border-slate-100 {
  border-color: rgb(203 213 225);
}
html:not(.dark) .border-slate-200 {
  border-color: rgb(148 163 184);
}
html:not(.dark) .border-slate-200\/80 {
  border-color: rgb(148 163 184 / 0.82);
}
html:not(.dark) .border-slate-200\/90 {
  border-color: rgb(148 163 184 / 0.88);
}
html:not(.dark) .ring-slate-100\/80 {
  --tw-ring-color: rgb(148 163 184 / 0.45);
}

html.dark {
  color-scheme: dark;
}
html.dark body {
  background-color: rgb(2 6 23) !important;
  color: rgb(226 232 240);
}
html.dark .text-slate-900 {
  color: rgb(248 250 252);
}
html.dark .text-slate-800 {
  color: rgb(241 245 249);
}
html.dark .text-slate-700 {
  color: rgb(226 232 240);
}
html.dark .text-slate-600 {
  color: rgb(203 213 225);
}
html.dark .text-slate-500 {
  color: rgb(148 163 184);
}
html.dark .text-slate-400 {
  color: rgb(148 163 184);
}
html.dark .text-brand-700 {
  color: rgb(147 197 253);
}
html.dark .border-slate-200,
html.dark .border-slate-200\/80,
html.dark .border-slate-200\/90 {
  border-color: rgb(51 65 85);
}
html.dark .border-slate-100 {
  border-color: rgb(51 65 85);
}
html.dark .bg-white {
  background-color: rgb(30 41 59);
}
html.dark .bg-white\/70 {
  background-color: rgb(30 41 59 / 0.88);
}
html.dark .bg-slate-50 {
  background-color: rgb(15 23 42);
}
html.dark .bg-slate-50\/80 {
  background-color: rgb(30 41 59 / 0.88);
}
html.dark .bg-slate-50\/60 {
  background-color: rgb(30 41 59 / 0.78);
}
html.dark .ring-slate-100\/80 {
  --tw-ring-color: rgb(51 65 85 / 0.55);
}
html.dark .bg-brand-50 {
  background-color: rgb(30 58 138 / 0.35);
}
html.dark .border-emerald-100 {
  border-color: rgb(6 78 59 / 0.55);
}
html.dark .bg-emerald-50\/40 {
  background-color: rgb(6 78 59 / 0.28);
}
html.dark .bg-emerald-50\/80 {
  background-color: rgb(6 78 59 / 0.4);
}
html.dark .hover\:bg-emerald-50\/80:hover {
  background-color: rgb(6 78 59 / 0.45);
}
html.dark .hover\:border-slate-300:hover {
  border-color: rgb(100 116 139);
}
html.dark .hover\:bg-slate-50:hover {
  background-color: rgb(51 65 85);
}
html.dark .hover\:bg-slate-100:hover {
  background-color: rgb(51 65 85);
}
html.dark .hover\:text-slate-700:hover {
  color: rgb(241 245 249);
}
html.dark .hover\:border-emerald-300:hover {
  border-color: rgb(52 211 153 / 0.55);
}
html.dark .focus-visible\:ring-offset-2:focus-visible {
  --tw-ring-offset-color: rgb(2 6 23);
}
