/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #374151;
    background-color: #f8f8f8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Utility Classes */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: #2563eb;
    color: white;
}

.btn-primary:hover {
    background-color: #1d4ed8;
}

.btn-large {
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: white;
}

.section-title2 {
    font-size: 2rem;
    font-weight: 700;
    color: #00356f;
    margin-bottom: 1rem;
}

.section-subtitle2 {
    font-size: 1.125rem;
    color: #00356f;
}

.section-footer {
    text-align: center;
    margin-top: 3rem;
}

/* Top Bar */
.top-bar {
    background-color: #1e40af;
    color: white;
    padding: 0.5rem 0;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.language-selector {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.top-bar-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    transition: color 0.2s ease;
}

.top-bar-btn:hover {
    color: #bfdbfe;
}

/* Header */
.header {
    background-color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}
/*Official Header*/

.official-header {
  background-color: #f9f9f9;
  padding: 8px 0;
  font-family: Arial, sans-serif;
  font-size: 13px;
}

.official-container {
  display: flex;
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
  gap: 10px;
  padding: 0 20px;
  flex-wrap: wrap;
}

.official-flag {
  width: 16px;
  height: auto;
}

.official-text {
  margin: 0;
  color: #003670;
  white-space: nowrap;
}

.official-toggle {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #003670;
  font-weight: bold;
  cursor: pointer;
  text-decoration: underline;
  white-space: nowrap;
  font-size: 13px;
}

.official-chevron {
  width: 12px;
  height: 12px;
}

.chevron {
  width: 16px;
  height: 16px;
}

/* .official-proves {
  display: none;
  background-color: #f2f6fa;
  padding: 16px 20px;
  font-size: 13px; 
  line-height: 1.5;
  color: #003670;
  font-family: Arial, sans-serif;
  justify-content: center;
  gap: 60px;
  border-top: 1px solid #d3dbe4;
}

.official-proves > div {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 520px;
}

#toggle:checked + .official-proves {
  display: flex;
}

.official-prove-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 48%;
} */

.official-proves {
  display: none;
  background-color: #f2f6fa;
  padding: 16px 20px;
  font-size: 13px;
  line-height: 1.5;
  color: #003670;
  font-family: Arial, sans-serif;
  border-top: 1px solid #d3dbe4;

  /* FLEX CONFIG */
  flex-direction: row;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

#toggle:checked + .official-proves {
  display: flex;
}

.official-prove-item {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: flex-start;
  width: 45%;
  min-width: 300px;
  max-width: 500px;
}


.icon {
  background-color: #003670;
  border-radius: 50%;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon img {
  width: 20px;
  height: 20px;
}

.title {
  font-weight: bold;
  color: #003670;
  margin-bottom: 6px;
}

.subtitle{
  margin: 0;
  font-weight: normal; /* Esto quita el bold de los textos debajo */
}

.official-toggle::after {
  content: none;
}

.official-proves::after {
  content: none;
}

/*Custom Header*/

.dob-header-top {
  background-color: #00366f;
  color: white;
  padding: 10px 0;

}

.dob-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dob-logo img {
  height: 50px;
}

.dob-title {
  color: white;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.dob-container {
  max-width: 1320px; /* o el ancho deseado */
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dob-search-container {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dob-search-form {
  display: flex;
  background: white;
  border-radius: 30px;
  overflow: hidden;
  width: 320px; /* más ancho */
  max-width: 100%;
}

.dob-search-input {
  border: none;
  padding: 10px 16px;
  flex: 1;
  border-radius: 30px 0 0 30px;
  outline: none;
  font-size: 15px;
}

.dob-search-btn {
  background: #d0021b;
  color: white;
  border: none;
  padding: 0 16px;
  border-radius: 0 30px 30px 0;
  cursor: pointer;
  font-size: 16px;
}

.dob-app-icon {
  color: white;
  font-size: 22px;
}


.dob-navbar {
  background-color: #ffffff;
  border-top: 1px solid #e0e0e0;
  padding: 0.5rem 0;
  border-bottom: 1px solid #fff2;
}

.dob-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  position: relative;
}

.nav-link {
  text-decoration: none;
  color: #00366f;
  font-weight: 500;
  font-size: 16px;
  position: relative;
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  display: none;
  top: 100%;
  left: 0;
  background-color: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  padding: 0.5rem 0;
  z-index: 10;
  min-width: 200px;
}

.dropdown-item {
  display: block;
  padding: 0.5rem 1rem;
  color: #333;
  text-decoration: none;
}

.dropdown-item:hover {
  background-color: #f0f0f0;
}

.nav-dropdown:hover .dropdown-menu {
  display: block;
}

/*About*/

.dob-about-section {
  background-color: #f8f8f8;
  padding: 40px 0;
  color: #003670;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.dob-about-header {
  width: 80%;
}

.dob-about-bar {
  width: 63px;
  height: 17px;
  background-color: #003670;
  margin-bottom: 10px;
}

.dob-about-header h2 {
  font-size: 50px;
  margin: 0;
}

.dob-about-header h2 strong {
  display: block;
  font-size: 60px;
  font-weight: bold;
}

.dob-about-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  margin-top: 50px;
  gap: 50px;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
}

.dob-about-images {
  flex: 1;
  min-width: 320px;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dob-about-images img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.dob-about-text {
  flex: 1;
  min-width: 320px;
  max-width: 600px;
  text-align: justify;
  line-height: 1.6em;
  font-size: 16px;
  margin-top: 160px;
  margin-left: 50px;
}

.dob-about-text strong {
  color: #003670;
}


/* Logo */
.logo-section {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: #2563eb;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
}

.logo-text {
    margin-left: 0.75rem;
}

.logo-text h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
}

.logo-text p {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Navigation */
.nav-desktop {
    display: none;
    gap: 2rem;
}

.nav-link {
    color: #374151;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #2563eb;
}

.dob-header-top .nav-link {
  color: white !important;
}


/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-toggle,
.mobile-menu-toggle {
    background: none;
    border: none;
    color: #374151;
    cursor: pointer;
    transition: color 0.2s ease;
}

.dob-menu-toggle i {
  font-size: 1.25rem; /* puedes ajustar a 1.75rem o 2rem si lo quieres más grande */
}

.search-toggle:hover,
.mobile-menu-toggle:hover {
    color: #2563eb;
}

.mobile-menu-toggle {
    display: block;
}

/* Search Bar */
.search-bar {
    padding-bottom: 1rem;
}

.search-container {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.search-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

/* Mobile Menu */
.mobile-menu {
    border-top: 1px solid #e5e7eb;
    padding: 1rem 0;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-link {
    color: #374151;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%);
    color: white;
    padding: 4rem 0;
}

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

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #bfdbfe;
    margin-bottom: 2rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Search */
.hero-search {
  max-width: 42rem; /* Aumentado */
  margin: 0 auto 3rem auto;
}

.search-box {
  position: relative;
  border-radius: 9999px;
  overflow: hidden;
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
}

.hero-search-input {
  width: 100%;
  padding: 1rem 3rem 1rem 1.5rem;
  color: #1f2937;
  font-size: 1.25rem;
  border: none;
  border-radius: 9999px;
  background-color: #fff;
}

.hero-search-input:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(214, 11, 82, 0.3); /* tono rojo como el botón */
}

.hero-search-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background-color: #d60b52; /* rojo igual al header */
  color: white;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-size: 1rem;
}

.hero-search-btn:hover {
  background-color: #ad0042;
}


/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 64rem;
    margin: 0 auto;
}

.stat-card {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: #bfdbfe;
    font-size: 2rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #FFFFFF;
}

.stat-label {
    color: #bfdbfe;
}

/* Categories Section */
.categories {
    padding: 4rem 0;
    width: 100%;
    overflow: hidden;
    background-color: #f9fafb;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.category-card {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: box-shadow 0.2s ease;
}

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

.category-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.category-icon {
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    color: white;
    font-size: 1.5rem;
    transition: transform 0.2s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
}

.category-icon-red { background-color: #ef4444; }
.category-icon-blue { background-color: #3b82f6; }
.category-icon-green { background-color: #10b981; }
.category-icon-emerald { background-color: #059669; }
.category-icon-orange { background-color: #f97316; }
.category-icon-purple { background-color: #8b5cf6; }
.category-icon-teal { background-color: #14b8a6; }
.category-icon-indigo { background-color: #6366f1; }
.category-icon-cyan { background-color: #06b6d4; }
.category-icon-pink { background-color: #ec4899; }
.category-icon-yellow { background-color: #eab308; }
.category-icon-gray { background-color: #6b7280; }

.category-name {
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.category-count {
    font-size: 0.875rem;
    color: #6b7280;
}

.categories-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 2.5rem;
    padding: 1rem 0;
    text-align: center;
}


.category-item {
    flex: 0 1 6rem; /* ancho mínimo, pero se adapta */
    max-width: 7rem;
    text-decoration: none;
    color: #1e3a8a;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.875rem;
    white-space: normal;
    word-wrap: break-word;
}



.category-item i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #2563eb;
}

.category-item:hover {
    color: #1d4ed8;
}

.category-label {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.category-count {
    font-size: 0.75rem;
    color: #6b7280;
}


/* Featured Datasets Section */
.featured-datasets {
    padding: 4rem 0;
    background-color: #00366f;
}

.datasets-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.dataset-card {
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: box-shadow 0.2s ease;
}

.dataset-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.dataset-header {
    margin-bottom: 1rem;
}

.dataset-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.dataset-title:hover {
    color: #2563eb;
}

.dataset-description {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.dataset-organization {
    font-size: 0.875rem;
    color: #2563eb;
    font-weight: 500;
}

.dataset-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    background-color: #dbeafe;
    color: #1e40af;
    border-radius: 9999px;
    gap: 0.25rem;
}

.dataset-meta {
    margin-bottom: 1rem;
}

.meta-items {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #6b7280;
    gap: 0.25rem;
}

.dataset-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dataset-format {
    font-size: 0.875rem;
    color: #6b7280;
}

/* News Section */
.news {
    padding: 4rem 0;
    background-color: #eff6ff;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.news-card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

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

.news-content {
    padding: 1.5rem;
}

.news-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.news-category {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    background-color: #dbeafe;
    color: #1e40af;
    border-radius: 9999px;
}

.news-date {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #6b7280;
    gap: 0.25rem;
}

.news-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.news-excerpt {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.news-link {
    display: inline-flex;
    align-items: center;
    color: #2563eb;
    font-size: 0.875rem;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    gap: 0.25rem;
    transition: color 0.2s ease;
}

.news-link:hover {
    color: #1d4ed8;
}

/* Footer */
.footer {
  background-color: #00366f;
  color: white;
  width: 100%;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 columnas en desktop */
  gap: 2rem;
  padding: 1rem 2rem;
  box-sizing: border-box;
  align-items: flex-start;
}

.footer-section {
  font-size: 0.875rem;
}

.footer-logo-section {
  border-right: 1px solid #ffffff50;
  padding-right: 2rem;
}

.footer-logo-img {
  max-width: 200px;
  height: auto;
}

.footer-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-section a:hover {
  color: white;
}

.footer-section hr {
  border: none;
  border-top: 1px solid #ffffff50;
  margin: 1rem 0;
}

/* Preguntas Frecuentes*/

.dob-faq-section {
  max-width: 1300px;
  margin: 2rem auto;
  padding: 1rem;
}

.dob-faq-section p{
    font-size: 14px;
}

.dob-pida-section {
  max-width: 1300px;
  margin: 2rem auto;
  padding: 1rem;
}

.dob-faq-section p{
    font-size: 15px;
    color: #003366;
}

.dob-faq-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #003366;
  border-bottom: 2px solid #003366;
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
}

.dob-faq-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dob-faq-item {
  border-radius: 6px;
  overflow: hidden;
  border: none;
  font-family: inherit;
}

.dob-faq-item summary {
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-weight: bold;
  color: #1a1a1a;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  background-color: #e5e6e7; /* gris claro */
  font-size: 15px;

}

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

.dob-faq-item[open] summary::after {
  content: "▲";
  float: right;
}

.dob-faq-item summary::after {
  content: "▼";
  float: right;
}

.dob-faq-item p {
  background-color: #ffffff;
  color: #1a1a1a;
  padding: 1rem 1.25rem;
  font-weight: 500;
  margin: 0;
  border-radius: 0 0 6px 6px;
  line-height: 1.6;
}

/* ✅ RESPONSIVE: columnas en vertical en pantallas pequeñas */
/* @media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-logo-section {
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid #ffffff30;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
  }
} */

/* PIDA */

.dob-priorizacion {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.dob-priorizacion > div {
  flex: 1 1 50%;
  padding: 2rem;
}

.dob-priorizacion-box {
  background-color: #fddede;
  margin-bottom: 1.5rem;
  padding: 1rem;
}

.dob-priorizacion-title {
  color: #b91c1c;
  text-align: center;
  font-size: 1.25rem;
  font-weight: bold;
}

.dob-priorizado,
.dob-no-priorizado {
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 1.5rem;
}

.dob-priorizado {
  background-color: #002576;
  color: white;
}

.dob-priorizado h3 {
  color: #6A95FB;
  font-size: 18px;
  margin-bottom: 0.5rem;
}

.dob-no-priorizado {
  background-color: #dbeafe;
  color: #002576;
}

.dob-no-priorizado h3 {
  color: #6A95FB;
  font-size: 18px;
  margin-bottom: 0.5rem;
}

.dob-conformacion {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.dob-conformacion > div {
  flex: 1 1 50%;
}

.dob-integrantes {
  background-color: #002576;
  color: white;
  text-align: center;
  padding: 1rem;
}

.dob-integrantes-lista {
  background-color: #dbeafe;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem;
  padding: 1rem;
  border-radius: 0 0 8px 8px;
}

.dob-integrantes-lista > div {
  background-color: white;
  color: #002576;
  padding: 0.75rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  font-weight: 500;
}

.dob-integrante-doble {
  grid-column: span 2;
}

.dob-compromisos {
  background-color: white;
  padding: 4rem 2rem;
}

.dob-compromisos h2 {
  font-size: 2rem;
  text-align: center;
  color: #003670;
  font-weight: bold;
  margin-bottom: 2rem;
}

.dob-compromisos-grid {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.dob-compromiso-obox {
  background-color: #dbeafe;
  flex: 1 1 45%;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.dob-compromiso-ibox {
  background-color: white;
  padding: 1rem;
  font-weight: bold;
  color: #003670;
}

.dob-compromisos-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dob-compromisos-text h3 {
  color: #003670;
  font-weight: bold;
}

.dob-compromisos p{
    font-size: 15px;
    color: #003366;
}

.dob-pida-section img {
  max-width: 65%;
  height: auto;
  display: block;
  margin: 1rem 0;
}

/* Dataset */

.dob-search-wrapper {
  padding: 1rem;
}

.dob-show-wrapper {
  max-width: 1320px; /* Puedes ajustar esto a 1140px, 960px, etc. */
  margin: 0 auto;
  padding: 1rem 2rem;
}

.dob-card-header {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  padding: 10px;
}

.dob-search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  justify-content: center;
}

.dob-dataset-card {
  background-color: #fff;
  border: 1px solid #d9e2ef;
  border-top: 5px solid #002576;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  max-width: 330px;  /* o el tamaño que prefieras */
  min-height: 420px;
}



.dob-card-header img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.dob-card-body h2 {
  font-size: 1rem;
  font-weight: bold;
  margin: 0.5rem 0;
  color: #003670;
}

.dob-card-body p {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  font-size: 0.875rem;
  height: 100%;
}

.dob-formats {
  color: #555;
  font-size: 0.8rem;
}

.dob-topic {
  color: #002576;
  font-weight: bold;
}

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

.dob-dataset-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.dob-card-content {
  margin-top: 1rem;
}

.dob-search-header-bar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.dob-search-header-left {
  flex: 0 0 auto;
}


.dob-search-header-right {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.dob-search-header-left h1 {
  margin: 0;
  font-size: 1.5rem;
  color: #003670;
}

.dob-search-header-left p {
  margin: 0;
  color: #333;
  font-size: 0.95rem;
}

.dob-search-toolbar {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Barra de búsqueda */
.dob-search-bar {
  display: flex;
  flex: 1;
  gap: 0.5rem;
  min-width: 0;
}

.dob-search-input {
  flex: 1;
  padding: 0.5rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
}

/* .dob-search-button {
  background-color: #14375a;
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 0 30px 30px 0;
  cursor: pointer;
  white-space: nowrap;
} */

/* .dob-clear-button {
  background-color: #14375a;
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 30px 0 0 30px;
  cursor: pointer;
  white-space: nowrap;
} */

/* .dob-add-button {
  display: flex;
  align-items: center;
  background-color: #14375a;
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 30px 30px 30px 30px;
  cursor: pointer;
  white-space: nowrap;
  margin-right: 10px;
} */

.dob-add-button {
  background-color: #14375a;
  color: white;
  padding: 0.6rem 1rem;
  border-radius: 30px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.dob-clear-button,
.dob-search-button {
  background-color: #14375a;
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.dob-clear-button {
  border-radius: 30px 0 0 30px;
}

.dob-search-button {
  border-radius: 0 30px 30px 0;
}

.dob-clear-button:hover {
  background-color: #001a55;
  color: white;
}

.dob-add-button:hover {
  background-color: #001a55;
  color: white;
}

.dob-search-button:hover {
  background-color: #001a55;
}

.dob-search-columns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.dob-search-column {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}

.dob-search-column:first-child {
  flex: 0 0 auto; /* Fija el tamaño del botón Agregar */
}

.dob-search-column:last-child {
  flex: 1 1 auto; /* El input de búsqueda ocupa el espacio restante */
}

.dob-add-button .label,
.dob-clear-button .label {
  margin-left: 0.5rem;
}

.dob-search-button i,
.dob-clear-button i {
  font-size: 1rem;
}

/* Organization */

.dob-org-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;
}

.dob-org-card-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.dob-org-card-body {
  padding: 1.5rem;
}

.dob-org-card-body h1 {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.dob-org-card-body p {
  margin: 0.5rem 0;
  font-size: 1rem;
  line-height: 1.6;
}

.package-list-custom {
      display: flex;
      flex-direction: column;
      gap: 2rem;
    }
    .package-item {
      display: flex;
      gap: 1.5rem;
      border-bottom: 1px solid #ddd;
      padding-bottom: 1.5rem;
    }
    .package-image img {
      width: 100px;
      height: 100px;
      object-fit: cover;
      border-radius: 8px;
    }
    .package-info h3 {
      margin: 0 0 0.5rem 0;
      font-size: 1.2rem;
    }
    .package-info p {
      margin: 0 0 0.5rem 0;
    }
    .format-label {
      display: inline-block;
      background-color: #f0f0f0;
      color: #000;
      border-radius: 4px;
      padding: 2px 8px;
      font-size: 0.75rem;
      margin-right: 4px;
      font-weight: 600;
    }

.dob-tabs {
  display: flex;
  flex-wrap: wrap; /* permite que se ajusten en pantallas pequeñas */
}

.dob-tabs a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
/*  border-radius: 8px; */
  text-decoration: none;
  font-weight: 500;
  color: #0056b3;
  background-color: #f7f9fc;
  transition: all 0.2s ease-in-out;
}

.dob-tabs a:hover {
  background-color: #e0ebf7;
  color: #003f7f;
}

.dob-tabs a.active {
  background-color: #0056b3;
  color: #fff;
  font-weight: 600;
}

.dob-tabs a i {
  font-size: 1rem;
}


/* Layout de filtros + resultados */
.dob-search-layout {
  display: flex;
  flex-direction: row;
  gap: 2rem;
}

/* Filtros laterales */
.dob-search-filters {
  width: 240px;
  border: 1px solid #d9e2ef;
  padding: 1rem;
  background-color: #f7f9fc;
  border-radius: 6px;
}

.dob-search-filters h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #003670;
}

.filter-group {
  margin-bottom: 1rem;
}

.dob-search-filters ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dob-search-filters li {
  margin-bottom: 0.3rem;
}

.dob-search-filters a {
  text-decoration: none;
  color: #003670;
  font-size: 0.9rem;
  display: inline-block;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.dob-search-filters a:hover {
  background-color: #e1e9f5;
}

.dob-search-filters a.active {
  font-weight: bold;
  background-color: #002576;
  color: #fff;
}

/* Estilo para filtros activos */
.dob-search-filters a.active {
  font-weight: bold;
  color: #002576;
  text-decoration: underline;
}

/* Read Package */

  .dataset-detail {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
  .dataset-meta {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  }
  .dataset-meta h1 {
    margin-top: 0;
  }
  .dataset-extra table {
    width: 100%;
    margin-top: 1rem;
    border-collapse: collapse;
  }
  .dataset-extra th, .dataset-extra td {
    text-align: left;
    padding: 8px;
    border-bottom: 1px solid #ddd;
  }
  .dataset-resources table {
    width: 100%;
    border-collapse: collapse;
  }
  .dataset-resources th, .dataset-resources td {
    padding: 12px;
    border-bottom: 1px solid #eee;
  }
  .dataset-resources .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background-color: #003366;
    color: #fff;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 0.875rem;
  }
  .dataset-resources .btn i {
    font-size: 1rem;
  }

/* Package */

.dataset-read {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.dataset-read-body {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.dataset-info {
  flex: 1 1 60%;
  min-width: 280px;
}

.dataset-meta {
  flex: 1 1 35%;
  min-width: 280px;
}

.dataset-meta table,
.dataset-resources table {
  width: 100%;
  table-layout: fixed;
  word-wrap: break-word;
}

.dataset-follow {
  margin-bottom: 1rem;
}

.dataset-image {
  max-width: 100%;
  height: auto;
  margin: 1rem 0;
}




/* Resultados */
.dob-search-results {
  flex: 1;
}

/* Paginación */
.dob-search-pagination {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.dob-pagination-nav .pagination {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1rem 0;
}

.dob-pagination-nav .pagination li {
  list-style: none;
}

.dob-pagination-nav .pagination a,
.dob-pagination-nav .pagination span {
  padding: 0.4rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  color: #002576;
  transition: background-color 0.2s;
}

.dob-pagination-nav .pagination .current,
.dob-pagination-nav .pagination a:hover {
  background-color: #002576;
  color: white;
  border-color: #002576;
}


/* Override del estilo heredado de CKAN core */
.site-footer,
.site-footer .footer {
    background-color: #00356f !important;
    color: white !important;
}

/* Refuerza enlaces y textos internos */
.site-footer a,
.site-footer p,
.site-footer span,
.site-footer li {
    color: white !important;
}

.site-footer hr {
    border-color: #ffffff55;
}

/* Grid Menu */
/* contenedor */
#gridmenu-root { position: relative; }

/* panel */
.gridmenu-panel {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 360px;
  max-width: 92vw;
  z-index: 1051;
  padding: 0;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  display: none;                 /* oculto por defecto */
}
#gridmenu-root.is-open .gridmenu-panel { display: block; }  /* mostramos cuando root tiene is-open */

/* cabecera del panel */
.gridmenu-head {
  display:flex; justify-content:space-between; align-items:center;
  padding:12px 16px; font-weight:700; color:#003876;
  background:#f8f8f8; border-bottom:1px solid #e9ecef;
  border-top-left-radius:10px; border-top-right-radius:10px;
}

/* cuerpo */
.gridmenu-body { max-height: 420px; overflow-y: auto; padding: 10px 12px; }

/* acordeón */
.gridmenu-group { border: 1px solid #eee; border-radius: 6px; margin-bottom: 10px; }
.gridmenu-group-head { padding: 8px 10px; background:#fafafa; }
.gridmenu-group-head .gm-toggle {
  background:none; border:0; padding:0; font-weight:700; color:#003876; cursor:pointer;
}

/* grilla */
.gridmenu-grid {
  margin: 0; padding: 10px; list-style: none;
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px;
}
.gridmenu-cell { text-align: center; }

.gridmenu-avatar {
  width:64px; height:64px; border-radius:50%; border:2px solid #e5e7eb;
  display:flex; align-items:center; justify-content:center; overflow:hidden; background:#fff;
  transition:border-color .2s, background-color .2s; margin:0 auto 6px;
}
.gridmenu-avatar img { width:100%; height:100%; object-fit:contain; padding:6px; }
.gridmenu-cell a { text-decoration:none; }
.gridmenu-label { display:block; font-size:12px; font-weight:600; color:#003876; }
.gridmenu-cell a:hover .gridmenu-label { color:#1e95ff; }
.gridmenu-cell a:hover .gridmenu-avatar { border-color:#4baaff; background:#e6f2ff; }

/* Botón “sin fondo” y con icono blanco */
.dob-app-trigger{
  -webkit-appearance:none; appearance:none;
  background:transparent; border:0; margin:0;
  padding:6px; line-height:1; cursor:pointer;
  border-radius:8px; color:#fff; /* <- icono blanco por herencia */
}
.dob-app-trigger .fa{ font-size:20px; color:inherit; }

/* Hover/Focus accesibles, sin fondo */
.dob-app-trigger:hover{ opacity:.9; }
.dob-app-trigger:focus{
  outline:2px solid #fff;
  outline-offset:2px;
}

/* Botón sin fondo; el SVG hereda este color */
.gridbtn{
  appearance:none; background:transparent; border:0; padding:6px;
  color:#fff; cursor:pointer; line-height:1; border-radius:8px;
}
.gridbtn:focus{ outline:2px solid #fff; outline-offset:2px; }
.gridbtn:hover{ opacity:.9; }

/* Tamaño del icono */
.icon-grid{ width:22px; height:22px; display:block; }

/* Close sin borde, redondo y sin fondo */
.gridmenu-close{
  -webkit-appearance:none; appearance:none;
  background:transparent;
  border:0 !important;
  box-shadow:none !important;
  outline:0;                     /* quita el borde cuadrado por defecto */
  width:28px; height:28px;
  border-radius:9999px;          /* hace el área circular */
  display:inline-flex; align-items:center; justify-content:center;
  color:#6b7a90;                 /* color del icono “×” */
  padding:0; margin:0;
  line-height:1;
  text-shadow:none;              /* override de .close de Bootstrap */
}

/* hover (opcional) */
.gridmenu-close:hover{
  background:rgba(0,0,0,.06);
  color:#003876;
}

/* foco accesible pero redondo (si lo quieres totalmente sin foco, quita este bloque) */
.gridmenu-close:focus-visible{
  outline:2px solid #1e95ff;
  outline-offset:2px;
}

/* evita que padres lo recorten */
.dob-app-icon, .dob-search-container { overflow: visible; }


/* Botón de volver arriba */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background-color: #14375a;
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 9999;
}

.back-to-top:hover {
  background-color: #001a55;
}

/* Mostrar botón cuando se hace scroll */
.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

/* ---- Formularios: layout base ---- */
.form-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.form-card {
  background: #fff;
  border: 1px solid #d9e2ef;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,.03);
}

.form-title {
  font-size: 1.5rem;
  color: #003670;
  margin-bottom: .25rem;
  font-weight: 700;
}
.form-subtitle {
  color: #475569;
  margin-bottom: 1.25rem;
}

/* ---- Campos ---- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
}

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

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

.form-label {
  font-weight: 600;
  color: #0f172a;
}

.form-input,
.form-textarea,
.form-select {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: .65rem .8rem;
  font-size: 1rem;
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease;
  background-color: #fff;
}

.form-textarea { min-height: 140px; resize: vertical; }

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

/* ---- Ayudas, errores y éxito ---- */
.form-help {
  font-size: .875rem;
  color: #64748b;
}
.form-error {
  color: #b91c1c;
  font-size: .875rem;
}
.form-success {
  background: #ecfdf5;
  border: 1px solid #86efac;
  color: #065f46;
  border-radius: 10px;
  padding: .75rem 1rem;
  margin-bottom: 1rem;
}

/* ---- Acciones ---- */
.form-actions {
  display: flex;
  gap: .75rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

.btn-primary.form-submit {
  background-color: #14375a;
  border-radius: 30px;
  padding: .7rem 1.25rem;
}
.btn-primary.form-submit:hover { background-color: #0b2541; }


/* Responsive Design */
@media (min-width: 768px) {
    .language-selector {
        display: flex;
    }
    
    .nav-desktop {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .datasets-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .footer-bottom-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (min-width: 1024px) {
  .about-section img {
    border-radius: 0.5rem;
    object-fit: cover;
    height: auto;
    max-height: 400px;
  }

  .about-section .prose {
    max-width: 100%;
    font-size: 1.125rem;
  }
}

body {
  overflow-x: hidden;
}

/* --------------------- */
/* MENÚ MÓVIL ESTILIZADO */
/* --------------------- */

.dob-mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 320px;
  height: 100vh;
  background-color: #fff;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease-in-out;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

.dob-mobile-nav.active {
  right: 0;
}

.dob-mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.5rem;
}

.dob-mobile-logo {
  height: 32px;
}

.dob-close-toggle {
  font-size: 1.5rem;
  cursor: pointer;
  color: #333;
}

.dob-user-section {
  font-weight: bold;
  margin-bottom: 1rem;
}

.dob-nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 1rem;
}

.dob-nav-links > li {
  margin-bottom: 0.75rem;
}

.dob-nav-links a {
  color: #003366;
  text-decoration: none;
  font-weight: 500;
}

.dob-nav-links details {
  border-left: 3px solid #c8102e;
  padding-left: 0.5rem;
}

.dob-nav-links summary {
  cursor: pointer;
  list-style: none;
  font-weight: bold;
}

.dob-nav-links ul {
  padding-left: 1rem;
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

.dob-nav-links ul li {
  margin-bottom: 0.5rem;
}

/* Mejora visual en pantallas pequeñas */
@media (max-width: 480px) {
  .dob-mobile-nav {
    width: 100%;
  }
}

/* Quitar scroll lateral blanco en mobile */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

/* Encabezado oficial responsive */
.official-header {
  font-size: 0.8rem;
  padding: 0.5rem;
  border-bottom: 1px solid #ccc;
}

.official-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.official-text {
  flex: 1 1 auto;
  font-weight: 500;
  color: #003366;
  font-size: 10px;
}

.official-chevron {
  width: 14px;
  height: 14px;
  margin-left: 4px;
}



/* Ocultar nav y contenedor de búsqueda en móviles */
@media (max-width: 991px) {
  .dob-navbar,
  .dob-search-container {
    display: none;
  }
}

/* Estilos solo para escritorio (>= 992px) */
@media (min-width: 992px) {
  .dob-menu-toggle {
    display: none !important;
  }

  .official-header {
    font-size: 1rem !important;
  }

  .official-text,
  .official-toggle {
    font-size: 0.9rem !important;
  }

  .official-chevron {
    width: 18px;
    height: 18px;
  }
}

/* =============================== */
/* RESPONSIVE MEJORADO PARA MÓVIL */
/* =============================== */
@media (max-width: 768px) {
  /* Header oficial */
  .official-header {
    padding: 0.4rem;
    font-size: 0.75rem;
    text-align: center;
  }

  /* .official-container {
    flex-direction: column;
    align-items: flex-start;
  } */

  .official-container {
  display: flex;
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
  gap: 10px;
  padding: 0 20px;
  flex-wrap: wrap;
  }

  /* Header institucional */
  .dob-header-top {
    flex-direction: column;
    text-align: center;
  }

  .dob-logo img {
    height: 40px;
  }

  .dob-title {
    font-size: 12px;
    align-items: center;
  }

  /* Ocultar búsqueda y menú superior para usar el menú móvil */
  .dob-search-container,
  .dob-navbar {
    display: none;
  }

  /* About section */
  .dob-about-header h2 {
    font-size: 32px;
  }

  .dob-about-header h2 strong {
    font-size: 36px;
  }

  .dob-about-text {
    margin-left: 0;
    margin-top: 20px;
    text-align: left;
    font-size: 14px;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-logo-section {
    border-right: none;
    border-bottom: 1px solid #ffffff30;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    align-items: center;
    text-align: center;
  }

  /* FAQ */
  .dob-faq-item summary {
    font-size: 14px;
    padding: 0.75rem 1rem;
  }

  .dob-faq-item p {
    font-size: 13px;
    padding: 0.75rem 1rem;
  }

  /* Botones */
  .btn,
  .btn-primary,
  .dob-add-button {
    margin-bottom: 0.5rem;
  }

  .dob-clear-button,
  .dob-search-button {
    flex: 0 0 auto;
    padding: 0.6rem 0.75rem;
  }

  /* Ocultar tabs si ocupan mucho */
  .dob-tabs {
    flex-direction: column;
  }

  /* Dataset cards */
  .dob-dataset-card {
    max-width: 100%;
    min-height: auto;
  }

  .dob-search-header-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .official-prove-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 48%;
    font-size: 9px;
    margin-top: 1rem;
  }

  .official-toggle-text {
    display: none;
  }

  .official-toggle {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }

  .official-chevron {
    display: block;
    margin: 0 auto;
  }

  #toggle:checked + .official-proves {
  display: block;
  }

  .extra-images img {
    width: 40%;
  }

  .dob-search-header-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .dob-search-header-right {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-top: 1rem;
  }

  .dob-search-header-right a,
  .dob-search-header-right input,
  .dob-search-header-right button {
    margin-bottom: 0;
    width: auto;
  }

  .dob-search-column {
    flex: 1 1 100%;
  }

  .dob-search-bar {
    flex-wrap: nowrap;
  }

  .dob-search-input {
    flex: 1 1 auto;
    min-width: 0;
  }

.dob-clear-button span {
  display: none;
}

form.dob-search-bar {
    flex-wrap: nowrap;
  }

  .dob-search-layout {
    display: flex;
    flex-direction: column;
  }

  .dob-search-filters {
    order: -1;
    margin-bottom: 1.5rem;
  }

  .dob-search-grid {
  display: grid;
  grid-gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

  .dob-dataset-card {
    max-width: 100%;
    min-height: 300px;
  }

  .dob-search-filters {
  display: none;
  }
}

@media (max-width: 991px) {
  .dataset-read-body {
    flex-direction: column;
  }

  .dataset-info,
  .dataset-meta {
    flex: 1 1 100%;
    margin-right: 0 !important;
  }

  .dataset-follow {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .dob-responsive-table {
    font-size: 14px;
    table-layout: fixed;
    width: 100%;
  }

  .dob-responsive-table td,
  .dob-responsive-table th {
    word-wrap: break-word;
    white-space: normal;
    vertical-align: middle;
    text-align: left;
  }

  .dob-responsive-table td:nth-child(1) {
    width: 50%;
  }

  .dob-responsive-table td:nth-child(2),
  .dob-responsive-table td:nth-child(3) {
    width: 25%;
    text-align: center;
  }

  .dob-responsive-table i.fa-download {
    font-size: 1rem;
  }

  .dataset-resources .btn {
    padding: 6px 10px;
    font-size: 0.9rem;
  }
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-actions { justify-content: stretch; }
  .form-actions .btn { width: 100%; }
}

/* ---- Acciones rápidas en dataset ---- */
.dataset-quick-actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin: 1rem 0 1.25rem 0;
}
.dataset-quick-actions .btn {
  border-radius: 9999px;
  padding: .5rem .9rem;
  font-size: .95rem;
}


