:root {
  --primary: #4B463E;
  --secondary: #C6C1B8;
  --soft: #ffffff;
  --ink: #000000;
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #000000;
  --muted: #C6C1B8;
  --line: #e9ecef;
  --font-main: -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(28, 34, 39, 0.08);
  --container: 1120px;
}

/* Estilos propios del sitio JDN (el tema visual lo aporta theme.css). */

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.news-card {
  background: #fff;
  border: 1px solid #e9ecef;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.news-card-body {
  padding: 1.25rem 1.35rem;
}

.news-card-media {
  display: block;
  background: #f5f5f5;
  overflow: hidden;
}

.news-card-media img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: contain;
  padding: 1rem;
  transition: transform 0.3s ease;
}

.news-card-media:hover img {
  transform: scale(1.03);
}

.news-card.featured {
  grid-column: 1 / -1;
  background: #f5f5f5;
}

@media (min-width: 640px) {
  .news-card.featured {
    flex-direction: row;
  }

  .news-card.featured .news-card-media {
    flex: 0 0 40%;
    background: #ececec;
  }

  .news-card.featured .news-card-media img {
    height: 100%;
    min-height: 240px;
  }

  .news-card.featured .news-card-body {
    flex: 1;
    padding: 2rem;
  }
}

.news-card .meta {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b6560;
  margin-bottom: 0.5rem;
}

.news-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}

.news-card h3 a {
  color: inherit;
  text-decoration: none;
}

.news-card h3 a:hover {
  text-decoration: underline;
}

.news-card p {
  margin: 0;
  color: #4b463e;
}

.jdn-contact-form .uk-button-primary {
  background-color: #4b463e;
  color: #fff;
}

.jdn-contact-form .uk-button-primary:hover {
  background-color: #3a352f;
  color: #fff;
}

.jdn-contact-form .uk-checkbox {
  border: 1px solid #4b463e;
  background-color: #fff;
}

.jdn-contact-form .uk-checkbox:checked,
.jdn-contact-form .uk-checkbox:indeterminate {
  background-color: #4b463e;
  border-color: #4b463e;
}

/* Menú desplegable de Servicios: texto en negro en vez de blanco */
.tm-header .uk-navbar-dropdown,
.tm-header .uk-navbar-dropdown .uk-h4,
.tm-header .uk-navbar-dropdown a {
  color: #1a1a1a;
}

.tm-header .uk-navbar-dropdown a:hover {
  color: #4b463e;
}

.form-notice {
  margin-bottom: 1rem;
}

.form-notice.is-success {
  background: #e8f7ef;
  color: #1f6b45;
}

.form-notice.is-error {
  background: #fdecec;
  color: #8a1f1f;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.article-content p {
  margin-top: 0;
}

.article-content p + p {
  margin-top: 1rem;
}

.article-hero img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  background: #f5f5f5;
  padding: 1.5rem;
}

.article-hero:empty {
  display: none;
}

.jdn-legal-content h2 {
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.jdn-legal-content p,
.jdn-legal-content ul {
  margin-top: 0;
}

.jdn-legal-content p + p,
.jdn-legal-content ul {
  margin-top: 1rem;
}

/* Sección de asociaciones con fondo diferenciado */
.jdn-asociaciones-section {
  background: #ebe8e2;
  border-top: 1px solid #ded9d0;
  border-bottom: 1px solid #ded9d0;
}

.jdn-asociaciones-nav {
  justify-content: flex-start;
}

.jdn-asociacion-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 120px;
  padding: 1.25rem;
  background: #fff;
  box-shadow: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.jdn-asociacion-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.jdn-asociacion-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
}

.jdn-asociacion-card .el-image {
  width: 100%;
  height: auto;
  max-height: 90px;
  object-fit: contain;
}

.jdn-asociacion-desc {
  margin: 0.85rem 0 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: #8a8a8a;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Bloque de contacto con fondo gris */
.jdn-contact-block {
  background: #f5f5f5;
  padding: 2rem;
}

@media (min-width: 960px) {
  .jdn-contact-block {
    padding: 2.5rem;
  }
}

/* Footer: en hover mantener el color y aumentar el peso de la fuente */
.uk-section-primary .el-link.uk-link-text:hover,
.uk-section-primary .el-link.uk-link-text:focus {
  color: inherit;
  font-weight: 700;
}
