:root {
    --primary-color: #0d6efd;
    --secondary-color: #198754;
    --text-color: #222;
    --light-gray: #f8f9fa;
    --border-color: #dee2e6;
    --focus-color: #ff9800;
    --high-contrast-bg: #fff;
    --high-contrast-text: #111;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-gray);
    /* Mejor contraste para accesibilidad */
    background: var(--high-contrast-bg);
    color: var(--high-contrast-text);
}

/* Header Styles */
h1 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

h2 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* Button Styles */
.btn-lg {
    padding: 1rem 2rem;
    font-weight: 500;
    transition: transform 0.2s ease;
    outline: none;
}

.btn-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    outline: 2px solid var(--focus-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 2px var(--focus-color);
}

/* Search Sections */
.search-section {
    background: var(--high-contrast-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.search-container {
    margin-bottom: 1.5rem;
}

/* Typeahead Styles */
.typeahead {
    border: 2px solid var(--border-color);
    border-radius: 4px;
    padding: 0.75rem;
    font-size: 1rem;
}

.tt-menu {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 4px;
    max-height: 300px;
    overflow-y: auto;
}

.tt-suggestion {
    padding: 0.75rem 1rem;
    cursor: pointer;
}

.tt-suggestion:hover {
    background-color: var(--light-gray);
}

/* Results Container */
.results-container {
    background: white;
    border-radius: 4px;
    padding: 1rem;
}

.results-container table {
    width: 100%;
    border-collapse: collapse;
}

.results-container th,
.results-container td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    /* Mejor contraste en tablas */
    color: var(--high-contrast-text);
}

.results-container th {
    background-color: var(--light-gray);
    font-weight: 700;
}

/* Services Section */
.services-section {
    background: var(--high-contrast-bg);
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.services-section ul {
    list-style-type: none;
    padding-left: 0;
}

.services-section li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.services-section li:before {
    content: "✓";
    color: var(--secondary-color);
    position: absolute;
    left: 0;
}


/* Header, Logo, and Title Block Styles */
.header-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: #fff;
  padding: 32px 40px 32px 40px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  border-radius: 18px;
  gap: 36px;
  max-width: 700px;
  margin: 0 auto 48px auto; /* Centrado y más espacio abajo */
  min-width: 0;
}

.logo-block {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 110px;
  width: 110px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  margin-right: 0;
}

.logo-img {
  max-height: 95px;
  max-width: 95px;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
}

.title-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  max-width: 520px;
}

.main-title {
  font-size: clamp(1.2rem, 3vw, 2.2rem);
  font-weight: 700;
  margin: 0 0 6px 0;
  color: #1a237e;
  line-height: 1.1;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.nowrap {
  white-space: nowrap;
}

.subtitle {
  font-size: 1.1rem;
  color: #444;
  margin: 0;
  font-weight: 400;
}

@media (max-width: 900px) {
  .header-container {
    max-width: 98vw;
    padding: 18px 8px 18px 8px;
    gap: 18px;
  }
  .logo-block {
    height: 70px;
    width: 70px;
  }
  .logo-img {
    max-height: 60px;
    max-width: 60px;
  }
  .title-block {
    max-width: 100%;
  }
  .main-title {
    font-size: 1.3rem;
  }
  /* Mejor contraste en móviles */
  body {
    background: #fff;
    color: #111;
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .search-section {
        padding: 1rem;
    }
    .btn-lg {
        padding: 0.75rem 1.5rem;
    }
    /* Mejor contraste en móviles */
    body {
        background: #fff;
        color: #111;
    }
}

/* Loading States */
.loading {
    text-align: center;
    padding: 2rem;
}
.loading:after {
    content: "";
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 3px solid var(--focus-color);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
/* Mejoras de accesibilidad: focus visible, contraste, comentarios */
