:root {
  --primary-red: #d32f2f;
  --dark-red: #b71c1c;
  --white: #ffffff;
  --text-dark: #333333;
  --ligth-gray: #f2f2f2;
  --om-bg-gray: #f8f9fa;
  --om-border: #e0e0e0;
  --om-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Base */
body {
  font-family: "Inter", sans-serif;
  margin: 0;
  color: var(--text-dark);
  background-color: #f8f9fa;
}

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

/* --- HEADER --- */
.site-header {
  background-color: #ffffff;
  padding: 10px 0;
  border-bottom: 1px solid #e0e0e0;
  position: relative;
  z-index: 999;
}

/* Contenedor Flex que agrupa los 3 elementos */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 20px;
}

/* 1. Logo */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.logo .custom-logo {
  max-height: 45px;
  width: auto;
}

.site-title {
  font-weight: bold;
  margin-left: 10px;
  color: var(--text-dark);
  font-size: 1rem;
  text-transform: none;
}

/* 2. Navegación (Centrada) */
.main-navigation {
  flex-grow: 1;
  display: flex;
  justify-content: center;
}

.main-navigation ul.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.main-navigation ul.nav-list li {
  position: relative;
  white-space: nowrap;
}

.main-navigation ul.nav-list li a {
  text-decoration: none;
  color: #444;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 12px;
  display: block;
  text-transform: uppercase;
  transition: color 0.2s;
}

.main-navigation ul.nav-list li a:hover {
  color: var(--primary-red);
}

/* --- SUBMENÚS (Información Institucional) --- */
.main-navigation ul.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 220px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  list-style: none;
  padding: 10px 0;
  margin: 0;
  border-radius: 0 0 4px 4px;
  border-top: 3px solid var(--accent-red);

  /* Estado inicial oculto */
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.main-navigation ul.nav-list li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-navigation ul.sub-menu li a {
  padding: 10px 20px;
  font-size: 13px;
  text-transform: none; /* No queremos mayúsculas en submenús */
  color: #555 !important;
  background: transparent !important;
  border-bottom: 1px solid #f5f5f5;
}

.main-navigation ul.sub-menu li a:hover {
  background-color: #f9f9f9 !important;
  color: var(--accent-red) !important;
}

/* 3. Botón Convocatorias (Independiente) */
.header-actions {
  flex-shrink: 0;
}

.btn-convocatorias {
  background-color: var(--primary-red) !important;
  color: #fff !important;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 13px;
  white-space: nowrap;
  transition: background 0.3s;
  text-transform: uppercase;
  display: inline-block;
}

.btn-convocatorias:hover {
  background-color: var(--dark-red) !important;
}

/* --- SECCIONES FRONTPAGE --- */
.hero-red {
  position: relative;
  min-height: 250px;
  display: flex;
  align-items: center;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background: var(--primary-red);
  color: var(--white);
  padding: 60px 0 120px;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    rgba(211, 47, 47, 0.9) 30%,
    rgba(211, 47, 47, 0.4) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-image {
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
}

.hero-inner {
  position: relative;
  min-height: 250px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  color: #ffffff;
  overflow: hidden;
}

.hero-inner .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background:
    90deg,
    rgba(211, 47, 47, 0.9) 30%,
    rgba(211, 47, 47, 0.4) 100%;
  z-index: 1;
  display: block !important;
}

.hero-inner .hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-inner h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-inner .post-meta {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-top: 10px;
}
/* Títulos */

.gray-stripe {
  position: relative;
  padding: 80px 0;
  background-color: var(--ligth-gray);
  background-size: cover;
  background-position: center;
}

.stripe-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.85);
  z-index: 1;
}

.stripe-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.85);
  z-index: 1;
}

.gray-stripe .container {
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.hero-text h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

/* === Cards y Qyuick access === */
.quick-access {
  position: relative;
  z-index: 10;
  margin-top: -60px;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.card {
  background: white;
  padding: 35px 25px;
  border-radius: 10px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  text-align: center;
}

/* Top bar */
.top-bar {
  background-color: black;
  color: var(--white);
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-container {
  display: flex;
  justify-content: center;
  gap: 25px;
}

.contact-item span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

/* News */
.latest-news {
  background-color: var(--ligth-gray);
  padding: 80px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  border-left: 5px solid var(--primary-red);
  padding-left: 20px;
}

.section-header h2 {
  font-size: 1.8rem;
  margin: 0;
  color: var(--text-dark);
}

.view-all {
  color: var(--primary-red);
  text-decoration: none;
  font-weight: 600;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.news-card {
  background: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
  border: 1px solid #eee;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.news-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-content {
  padding: 20px;
}

.news-date {
  font-size: 0.85rem;
  color: #888;
  display: block;
  margin-bottom: 10px;
}

.news-content h3 {
  font-size: 1.2rem;
  margin: 0 0 10px 0;
  line-height: 1.2;
}

.news-content h3 a {
  text-decoration: none;
  color: var(--text-dark);
  transition: color 0.2s;
}

.news-content h3 a:hover {
  color: var(--primary-red);
}

.read-more {
  display: inline-block;
  margin-top: 10px;
  color: var(--primary-red);
  font-weight: bold;
  text-decoration: none;
  font-size: 0.9rem;
}

/* Interest links */
.interest-links {
  padding: 60px 0;
  background-color: var(--ligth-gray);
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.interest-item {
  background: #f9f9f9;
  padding: 30px 20px;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  border-bottom: 4px solid #ddd;
  transition: all 0.3s ease;
}

.interest-item:hover {
  border-bottom-color: var(--primary-red);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.icon-box {
  width: 60px;
  height: 60px;
  background: #fdf2d2;
  border-radius: 50%;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.interest-item .dashicons {
  font-size: 30px;
  width: 30px;
  height: 30px;
  color: var(--primary-red);
}

.interest-item h3 {
  font-size: 1rem;
  color: var(--text-dark);
  margin: 0;
  font-weight: 600;
}

/* Footer */
.site-footer {
  background-color: #1a1a1a;
  color: #ffffff;
  padding: 70px 0 0;
  border-top: 4px solid #d32f2f;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 50px;
  padding-bottom: 50px;
  align-items: start;
}

.footer-logo-container img {
  max-height: 70px;
  width: auto;
  margin-bottom: 20px;
}

.footer-info p {
  color: #b0b0b0;
  line-height: 1.7;
  font-size: 0.9rem;
  margin: 0;
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 30px;
  text-transform: uppercase;
  color: #ffffff;
}

.footer-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background-color: #d32f2f;
  margin-top: 10px;
}

/* Enlaces */
.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links li a {
  color: #b0b0b0;
  text-decoration: none;
  font-size: 0.95rem;
  transition: 0.3s;
}

.footer-links li a:hover {
  color: #ffffff;
  padding-left: 5px;
}

/* Contacto con Iconos Circulares */
.footer-contact-v2 {
  list-style: none;
  padding: 0;
}

.footer-contact-v2 li {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.c-icon {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.c-icon .dashicons {
  color: #ffffff;
  font-size: 18px;
  width: 18px;
  height: 18px;
}

.c-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #d32f2f;
  font-weight: 700;
  margin-bottom: 2px;
}

.c-info a,
.c-text {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
}

/* Barra Copyright */
.footer-bottom {
  background-color: #111111;
  padding: 25px 0;
  border-top: 1px solid #2a2a2a;
  text-align: center;
}

.footer-bottom p {
  color: #666;
  font-size: 0.85rem;
  margin: 0;
}
/* Listado de documentos */
.legal-docs-search-container {
  padding: 20px 0;
}

.legal-docs-filter-box {
  background-color: #fdfdfd;
  padding: 30px;
  border-radius: 4px;
  margin-bottom: 40px;
  border: 1px solid #eee;
}

.legal-docs-search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  align-items: flex-end;
}

.search-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.search-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-field input,
.search-field select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.9rem;
  box-sizing: border-box;
  height: 42px;
}

.search-submit {
  min-width: 150px;
}
.input-with-icon {
  position: relative;
}

.input-with-icon .dashicons {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
}

.btn-buscar-docs {
  background-color: var(--primary-red);
  color: #fff;
  border: none;
  padding: 0 25px;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  height: 42px;
  transition: background 0.3s;
}

.legal-docs-results-list {
  margin-top: 20px;
}

.legal-doc-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 0;
  border-bottom: 1px solid #ddd;
}

.legal-doc-info {
  flex: 1;
  padding-right: 20px;
}

.legal-doc-title {
  color: #000;
  font-size: 1.1rem;
  font-weight: 700;
}

.legal-doc-excerpt {
  margin: 10px 0 5px;
  color: #555;
  font-size: 0.95rem;
}

.legal-doc-date {
  color: #999;
  font-size: 0.85rem;
}

.btn-doc-download {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border: 1px solid #d32f2f;
  color: #d32f2f;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.btn-doc-download .dashicons {
  color: #d32f2f;
}

.btn-doc-download:hover {
  background-color: #d32f2f;
  color: #fff;
}

.btn-doc-download:hover .dashicons {
  color: #fff;
}

.ldm-pagination {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ldm-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 15px;
  border-radius: 4px;
  text-decoration: none;
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  background-color: var(--primary-red);
}

.ldm-pagination .page-numbers.current {
  background-color: gray;
  color: var(--text-dark);
  border-color: var(--light-gray);
}

.ldm-pagination .page-numbers:not(.current):hover {
  background: var(--dark-red);
  border-color: var(--dark-red);
  color: var(--white);
}

.ldm-pagination .page-numbers.prev,
.ldm-pagination .page-numbers.next {
  font-weight: 700;
  text-transform: uppercase;
  cursor: default;
}

.ldm-empty-state {
  text-align: center;
  padding: 60px 20px;
  background: #f9f9f9;
  border-radius: 8px;
  border: 2px dashed #e0e0e0;
  margin-top: 28px;
}

.ldm-empty-state .dashicons {
  font-size: 50px;
  width: 50px;
  height: 50px;
  color: #ccc;
  margin-bottom: 15px;
}

.ldm-empty-state p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 20px;
  font-weight: 500;
}

.btn-clear-filters {
  background-color: transparent;
  color: var(--primary-red);
  border: 1px solid var(--primary-red);
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-clear-filters:hover {
  background-color: var(--primary-red);
  color: var(--white);
}
/* ONG's */
.om-wrapper,
.om-wrapper *,
.om-wrapper *::before,
.om-wrapper *::after {
  box-sizing: border-box !important;
}

.om-wrapper,
.om-wrapper button,
.om-wrapper input,
.om-wrapper select,
.om-wrapper textarea,
.om-card h3,
.om-filter-box,
.om-org-body,
.om-card-footer,
.om-card p {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.om-wrapper {
  font-variant-ligatures: normal;
  text-transform: none;
}
.om-wrapper {
  margin: 20px 0;
}

.om-filter-box {
  background: #ffffff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
  border: 1px solid var(--om-border);
}

.om-filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 15px;
  align-items: flex-end;
}

.om-field {
  width: 100%;
}
.om-field label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark);
  font-size: 0.9rem;
  text-transform: uppercase;
}

.om-input-icon {
  position: relative;
  width: 100%;
}

.om-input-icon input,
.om-field select {
  width: 100% !important;
  height: 45px !important;
  padding: 0 15px !important;
  border: 1px solid #ccc !important;
  border-radius: 4px !important;
  font-size: 14px !important;
  background-color: #fff !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

.om-field select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 40px !important  ;
}

.om-input-icon .dashicons {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  pointer-events: none;
}

.om-submit {
  display: flex;
  gap: 10px;
}

.om-submit-group {
  display: flex;
  gap: 10px;
}

.om-btn-seach {
  background-color: var(--primary-red);
  color: #fff;
  border: none;
  padding: 11px 20px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.om-btn-seach:hover {
  background-color: var(--dark-red);
}

.om-btn-reset {
  background-color: #eee;
  color: #333;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.3s;
}

.om-btn-reset:hover {
  background-color: #ddd;
}

.om-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 25px;
}

.om-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--om-border);
  border-top: 4px solid var(--primary-red);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.om-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--om-shadow);
}

.om-card-header {
  padding: 20px 20px 10px;
}

.om-org-badge {
  display: inline-block;
  background-color: #f1f1f1;
  color: #666;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.om-org-title {
  margin: 0;
  font-size: 1.2rem;
  color: var(--primary-red);
  line-height: 1.3;
}

.om-org-body {
  margin: 0 20px 20px;
  flex-grow: 1;
}

.om-org-info p {
  margin: 8px 0;
  font-size: 0.9rem;
  color: #444;
  display: flex;
  align-items: flex-start;
}

.om-org-info .dashicons {
  font-size: 18px;
  margin-right: 10px;
  color: var(--primary-red);
  margin-top: 2px;
}

.om-org-description {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #f0f0f0;
  font-size: 0.85rem;
  color: #666;
  line-height: 1.5;
  font-style: italic;
}

.om-card-footer {
  background-color: #f9f9f9;
  padding: 15px 20px;
  border-top: 1px solid #eee;
  text-align: right;
}

.om-btn-link {
  color: var(--primary-red);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.om-btn-link:hover {
  text-decoration: underline;
}
/* Projects */
.om-project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
  justify-content: center;
}

.om-filter-btn {
  padding: 8px 18px;
  background: var(--white);
  border: 1px solid var(--primary-red);
  border-radius: 5px;
  text-decoration: none;
  color: var(--primary-red);
  font-size: 14px;
  transition: 0.3s;
}

.om-filter-btn:hover {
  background: var(--primary-red);
  color: var(--white);
}

.om-filter-btn.is-active {
  background: var(--primary-red);
  color: var(--white);
  border-color: var(--primary-red);
}

.om-projects-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.om-project-card {
  background: var(--white);
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.om-project-card:hover {
  transform: translateY(-5px);
}

.om-project-thumb img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.om-project-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.om-project-title {
  font-size: 16px;
  font-weight: bold;
  margin: 0 0 8px 0;
  color: var(--primary-red);
  line-height: 1.3;
  text-transform: uppercase;
}

.om-project-cats {
  font-size: 12px;
  color: #666;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.om-project-description {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

.om-btn-view {
  display: block;
  text-align: center;
  background-color: var(--primary-red);
  color: #fff !important;
  text-decoration: none;
  padding: 10px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.3s;
}

.om-btn-view:hover {
  background-color: var(--dark-red);
}

.om-project-info h4 {
  margin: 0 0 10px 0;
  font-size: 15px;
  line-height: 1.3;
}
/* Proyecto detalles */
.om-project-detail-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  font-family: "Inter", sans-serif;
}

.project-header h1 {
  font-size: 32px;
  margin-bottom: 10px;
  color: #222;
}

.project-meta-top {
  color: #888;
  font-size: 14px;
  margin-bottom: 30px;
}

/* Layout de dos columnas */
.project-main-layout {
  display: grid;
  grid-template-columns: 2fr 1fr; /* 2 partes contenido, 1 parte sidebar */
  gap: 40px;
}

.project-featured-image img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 25px;
}

.project-description h3 {
  border-bottom: 2px solid var(--primary-red);
  display: inline-block;
  padding-bottom: 5px;
  margin-bottom: 20px;
}

/* Sidebar */
.project-sidebar {
  background: #f9f9f9;
  padding: 25px;
  border-radius: 12px;
  height: fit-content;
  border: 1px solid #eee;
}

.sidebar-block {
  margin-bottom: 25px;
}

.sidebar-block h4 {
  font-size: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #444;
}

.sidebar-block h4 .dashicons {
  color: var(--primary-red);
}

.project-tags .tag {
  display: inline-block;
  background: #fff;
  border: 1px solid #ddd;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  margin: 0 5px 5px 0;
}

.share-icons {
  display: flex;
  gap: 15px;
  font-size: 20px;
  color: #666;
}

/* Estilos para el Detalle (Single) */
.scholarship-detail-container {
  background: #f4f4f4;
  padding-bottom: 50px;
}

.detail-header-banner {
  padding: 60px 0;
  color: white;
  margin-bottom: 30px;
}

.detail-blue {
  background-color: #1a73a8;
}
.detail-olive {
  background-color: #a2a305;
}

.detail-category-tag {
  background: rgba(255, 255, 255, 0.2);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: bold;
}

.detail-title {
  font-size: 2.5rem;
  margin-top: 15px;
  color: white;
}

.detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

.detail-card-info {
  background: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.detail-card-info h3 {
  border-bottom: 2px solid #b10e24; /* Rojo institucional */
  padding-bottom: 10px;
  margin-bottom: 20px;
  color: #333;
}

.btn-apply {
  display: block;
  background: #b10e24;
  color: white;
  text-align: center;
  padding: 12px;
  border-radius: 4px;
  text-decoration: none;
  margin-top: 20px;
  font-weight: bold;
}
/* Responsive */
@media (max-width: 768px) {
  .project-main-layout {
    grid-template-columns: 1fr;
  }
}
/* Responsive */
@media (max-width: 992px) {
  .links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .links-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
    padding: 15px;
  }

  .logo .custom-logo {
    max-height: 40px;
  }

  .logo {
    order: 1;
  }

  .main-navigation {
    display: none !important;
    width: 100%;
    order: 4;
    background: #fff;
    margin-top: 15px;
  }

  .main-navigation.active {
    display: block !important;
  }

  .nav-list {
    flex-direction: column !important;
    gap: 0;
    padding: 10px 0;
  }

  .nav-list li {
    width: 100%;
    border-bottom: 1px solid #f5f5f5;
  }

  .nav-list li a {
    padding: 12px 0;
    text-align: left;
  }

  .nav-list li .sub-menu {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    transform: none !important;
    box-shadow: none !important;
    background: #f9f9f9 !important;
    padding-left: 20px !important;
    border-top: none !important;
    border-left: 3px solid var(--accent-red);
  }

  .header-actions {
    width: 100%;
    order: 5;
    margin-top: 10px;
    display: none;
  }

  .main-navigation.active + .header-actions {
    display: block;
  }

  .header-actions,
  .btn-convocatorias {
    width: 100%;
    text-align: center;
  }

  .menu-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    order: 2;
    margin-left: auto;
  }

  .menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--primary-blue);
    border-radius: 2px;
    transition: 0.3s;
  }

  .top-bar-container {
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-align: center;
  }

  .top-bar {
    font-size: 11px;
    padding: 10px 0;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-column h3::after {
    margin: 8px auto 0;
  }
  .footer-contact li {
    justify-content: center;
  }
}

@media (min-width: 769px) {
  .menu-toggle {
    display: none;
  }
}
