:root {
  --primary: #0056b3;
  /* Color más oscuro para mejor contraste */
  --primary-foreground: #ffffff;
  --secondary: #f3f4f6;
  --secondary-foreground: #1f2937;
  --muted: #f3f4f6;
  --muted-foreground: #4b5563;
  /* Más oscuro para mejor contraste */
  --accent: #f3f4f6;
  --accent-foreground: #1f2937;
  --destructive: #dc2626;
  /* Más oscuro para mejor contraste */
  --destructive-foreground: #ffffff;
  --border: #d1d5db;
  --input: #d1d5db;
  --ring: #0056b3;
  --radius: 0.5rem;
  --background: #ffffff;
  --foreground: #1f2937;
  --card: #ffffff;
  --card-foreground: #1f2937;
  --popover: #ffffff;
  --popover-foreground: #1f2937;
}

/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  /* Añadido para mejorar la navegación con anclajes */
}

body {
  font-family: "Inter", sans-serif;
  color: var(--foreground);
  background-color: var(--background);
  line-height: 1.5;
  font-size: 16px;
  /* Base font size para mejor legibilidad */
}

/* Estilos de accesibilidad */
:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.sr-only.focus:not-sr-only {
  position: fixed;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: normal;
  z-index: 9999;
}

/* Layout */
.flex {
  display: flex;
}

.grid {
  display: grid;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-between: space-between;
}

.gap-1 {
  gap: 0.25rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

.gap-12 {
  gap: 3rem;
}

.space-y-1>*+* {
  margin-top: 0.25rem;
}

.space-y-2>*+* {
  margin-top: 0.5rem;
}

.space-y-4>*+* {
  margin-top: 1rem;
}

.space-x-4>*+* {
  margin-left: 1rem;
}

.min-h-screen {
  min-height: 100vh;
}

.flex-1 {
  flex: 1 1 0%;
}

.w-full {
  width: 100%;
}

.h-4 {
  height: 1rem;
}

.w-4 {
  width: 1rem;
}

.h-6 {
  height: 1.5rem;
}

.w-6 {
  width: 1.5rem;
}

.h-8 {
  height: 2rem;
}

.w-8 {
  width: 2rem;
}

.h-10 {
  height: 2.5rem;
}

.h-16 {
  height: 4rem;
}

.min-h-\[100px\] {
  min-height: 100px;
}

.max-w-\[600px\] {
  max-width: 600px;
}

.max-w-\[700px\] {
  max-width: 700px;
}

.max-w-3xl {
  max-width: 48rem;
}

.max-w-5xl {
  max-width: 64rem;
}

.rounded-md {
  border-radius: var(--radius);
}

.rounded-lg {
  border-radius: calc(var(--radius) + 0.125rem);
}

.rounded-xl {
  border-radius: calc(var(--radius) + 0.25rem);
}

.rounded-full {
  border-radius: 9999px;
}

.border {
  border: 1px solid var(--border);
}

.border-t {
  border-top: 1px solid var(--border);
}

.border-b {
  border-bottom: 1px solid var(--border);
}

.border-white\/20 {
  border-color: rgba(255, 255, 255, 0.2);
}

.bg-white {
  background-color: var(--background);
}

.bg-white\/5 {
  background-color: rgba(255, 255, 255, 0.05);
}

.bg-white\/10 {
  background-color: rgba(255, 255, 255, 0.1);
}

.bg-white\/95 {
  background-color: rgba(255, 255, 255, 0.95);
}

.bg-primary {
  background-color: var(--primary);
}

.bg-primary\/10 {
  background-color: rgba(0, 86, 179, 0.1);
}

.bg-slate-50 {
  background-color: #f8fafc;
}

.bg-gradient-to-b {
  background-image: linear-gradient(to bottom, var(--tw-gradient-stops));
}

.from-slate-50 {
  --tw-gradient-from: #f8fafc;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(248, 250, 252, 0));
}

.to-white {
  --tw-gradient-to: #ffffff;
}

.text-white {
  color: var(--primary-foreground);
}

.text-primary {
  color: var(--primary);
}

.text-gray-700 {
  color: #374151;
  /* Más oscuro para mejor contraste */
}

.text-gray-500 {
  color: #4b5563;
  /* Más oscuro para mejor contraste */
}

.text-primary-foreground\/80 {
  color: rgba(255, 255, 255, 0.8);
}

.text-sm {
  font-size: 0.875rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-3xl {
  font-size: 1.875rem;
}

.font-medium {
  font-weight: 500;
}

.font-bold {
  font-weight: 700;
}

.tracking-tighter {
  letter-spacing: -0.05em;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.py-10 {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.py-20 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.p-6 {
  padding: 1.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.sticky {
  position: sticky;
}

.fixed {
  position: fixed;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.top-0 {
  top: 0;
}

.z-50 {
  z-index: 50;
}

.hidden {
  display: none;
}

.object-cover {
  object-fit: cover;
}

.object-center {
  object-position: center;
}

.aspect-video {
  aspect-ratio: 16 / 9;
}

.backdrop-blur {
  backdrop-filter: blur(8px);
}

/* Componentes con mejoras de accesibilidad */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  max-width: 80rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.875rem;
  height: 2.5rem;
  padding-left: 1rem;
  padding-right: 1rem;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-lg {
  height: 3rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border: none;
}

.btn-primary:hover {
  background-color: rgba(0, 86, 179, 0.9);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  border: none;
}

.btn-secondary:hover {
  background-color: rgba(243, 244, 246, 0.8);
}

.btn-outline {
  background-color: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background-color: var(--accent);
  color: var(--accent-foreground);
}

.btn-ghost {
  background-color: transparent;
  color: var(--foreground);
  border: none;
}

.btn-ghost:hover {
  background-color: rgba(243, 244, 246, 0.8);
}

.btn-icon {
  height: 2.5rem;
  width: 2.5rem;
  padding: 0;
}

.card {
  background-color: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.accordion-item {
  border-bottom: 1px solid var(--border);
}

.accordion-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1rem 0;
  text-align: left;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
}

.accordion-content {
  padding-bottom: 1rem;
  color: var(--muted-foreground);
}

.accordion-icon {
  transition: transform 0.2s;
}

.accordion-trigger[aria-expanded="true"] .accordion-icon {
  transform: rotate(180deg);
}

/* Mejoras de accesibilidad para enlaces y botones */
a,
button {
  transition: color 0.2s, background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.focus\:outline-none:focus {
  outline: none;
}

.focus\:ring-2:focus {
  box-shadow: 0 0 0 2px var(--ring);
}

.focus\:ring-primary:focus {
  --ring: var(--primary);
}

.focus\:ring-white:focus {
  --ring: white;
}

.focus\:ring-offset-2:focus {
  box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--ring);
}

.focus\:ring-offset-primary:focus {
  --ring-offset-color: var(--primary);
}

.hover\:underline:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Estilos para formularios accesibles */
input,
textarea,
select {
  font-size: 1rem;
}

input[type="checkbox"],
input[type="radio"] {
  width: 1.25rem;
  height: 1.25rem;
}

/* Responsive */
@media (min-width: 400px) {
  .min-\[400px\]\:flex-row {
    flex-direction: row;
  }
}

@media (min-width: 640px) {
  .sm\:text-5xl {
    font-size: 3rem;
  }

  .sm\:w-full {
    width: 100%;
  }
}

@media (min-width: 768px) {
  .md\:flex {
    display: flex;
  }

  .md\:flex-row {
    flex-direction: row;
  }

  .md\:items-center {
    align-items: center;
  }

  .md\:justify-between {
    justify-content: space-between;
  }

  .md\:text-left {
    text-align: left;
  }

  .md\:text-xl {
    font-size: 1.25rem;
  }

  .md\:text-4xl {
    font-size: 2.25rem;
  }

  .md\:text-5xl {
    font-size: 3rem;
  }

  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .md\:gap-6 {
    gap: 1.5rem;
  }

  .md\:gap-8 {
    gap: 2rem;
  }

  .md\:px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .md\:py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .md\:py-24 {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

  .md\:py-28 {
    padding-top: 7rem;
    padding-bottom: 7rem;
  }

  .md\:ml-auto {
    margin-left: auto;
  }

  .md\:mt-0 {
    margin-top: 0;
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lg\:gap-12 {
    gap: 3rem;
  }

  .lg\:order-last {
    order: 9999;
  }
}

@media (min-width: 1280px) {
  .xl\:text-6xl\/none {
    font-size: 3.75rem;
    line-height: 1;
  }

  .xl\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Estilos para alto contraste */
@media (prefers-contrast: more) {
  :root {
    --primary: #003d80;
    --border: #000000;
  }

  .text-gray-500,
  .text-gray-700 {
    color: #000000;
  }

  .bg-primary\/10 {
    background-color: rgba(0, 61, 128, 0.2);
  }
}

/* Reducción de movimiento */
@media (prefers-reduced-motion: reduce) {

  *,
  ::before,
  ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.card ul li a {
  text-decoration: none;
  color: inherit;
}

.card ul li a:hover {
  color: var(--primary-color);
}