/* El Gualato – Entradas del Blog v1.0.3 */
body.eg-blog-activo {
  --eg-blog-green: #477765;
  --eg-blog-green-dark: #155b43;
  --eg-blog-brown: #6b4441;
  --eg-blog-text: #45403c;
  --eg-blog-muted: #66706a;
  --eg-blog-border: #e7dfd6;
  --eg-blog-soft: #f7f3ed;
  --eg-blog-soft-green: #eef4f0;
  --eg-blog-heading-font: "Amatic SC", "Arial Narrow", sans-serif;
}

body.eg-blog-activo:is(.single-post) .entry-title,
body.eg-blog-activo:is(.single-post) article.post > header h1,
body.eg-blog-activo:is(.single-post) main h1.entry-title {
  color: var(--eg-blog-green) !important;
  font-family: var(--eg-blog-heading-font) !important;
  font-size: clamp(3rem, 6vw, 4.6rem) !important;
  font-weight: 700 !important;
  letter-spacing: .015em !important;
  line-height: .98 !important;
  text-transform: none !important;
}

body.eg-blog-activo .entry-meta,
body.eg-blog-activo .posted-on,
body.eg-blog-activo .byline {
  color: var(--eg-blog-muted);
  font-size: .88rem;
}

body.eg-blog-activo .eg-blog-entry {
  width: min(100%, 880px);
  margin: 1.4rem auto 3rem;
  color: var(--eg-blog-text);
  font-family: Arial, sans-serif;
  font-size: 17px;
  line-height: 1.78;
}

body.eg-blog-activo .eg-blog-entry > :first-child { margin-top: 0; }
body.eg-blog-activo .eg-blog-entry > :last-child { margin-bottom: 0; }
body.eg-blog-activo .eg-blog-entry p { margin: 0 0 1.15rem; }

body.eg-blog-activo .eg-blog-entry > h2,
body.eg-blog-activo .eg-blog-entry > h3,
body.eg-blog-activo .eg-blog-entry > h4 {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 2.35rem 0 1rem;
  padding: 0 0 .42rem;
  border: 0;
  color: var(--eg-blog-green) !important;
  font-family: var(--eg-blog-heading-font) !important;
  font-weight: 700 !important;
  letter-spacing: .02em !important;
  line-height: 1.02 !important;
  text-transform: none !important;
}

body.eg-blog-activo .eg-blog-entry > h2::after,
body.eg-blog-activo .eg-blog-entry > h3::after,
body.eg-blog-activo .eg-blog-entry > h4::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: min(100%, 180px);
  height: 2px;
  background: var(--eg-blog-brown);
  content: "";
}

body.eg-blog-activo .eg-blog-entry > h2 { font-size: clamp(2.35rem, 4.5vw, 3.25rem) !important; }
body.eg-blog-activo .eg-blog-entry > h3 { font-size: clamp(1.95rem, 3.7vw, 2.6rem) !important; }
body.eg-blog-activo .eg-blog-entry > h4 { font-size: clamp(1.65rem, 3vw, 2.15rem) !important; }

body.eg-blog-activo .eg-blog-entry strong { color: var(--eg-blog-green-dark); }
body.eg-blog-activo .eg-blog-entry a {
  color: var(--eg-blog-green-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
body.eg-blog-activo .eg-blog-entry a:hover { text-decoration-thickness: 2px; }

body.eg-blog-activo .eg-blog-entry ul,
body.eg-blog-activo .eg-blog-entry ol {
  margin: .7rem 0 1.55rem;
  padding-left: 1.45rem;
}
body.eg-blog-activo .eg-blog-entry li {
  margin-bottom: .5rem;
  padding-left: .2rem;
}
body.eg-blog-activo .eg-blog-entry li::marker {
  color: var(--eg-blog-brown);
  font-weight: 700;
}

/* Bloques de mayor valor: ordenados al inicio por el plugin. */
body.eg-blog-activo .eg-blog-feature {
  margin: 1.25rem 0;
  padding: 1.15rem 1.3rem 1.25rem;
  border: 1px solid var(--eg-blog-border);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(66, 55, 45, .045);
}
body.eg-blog-activo .eg-blog-feature--summary { background: var(--eg-blog-soft); }
body.eg-blog-activo .eg-blog-feature--mistakes { background: #fbf8f3; }
body.eg-blog-activo .eg-blog-feature--advice { background: var(--eg-blog-soft-green); }

body.eg-blog-activo .eg-blog-feature__title {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 .9rem;
  padding: 0 0 .4rem;
  color: var(--eg-blog-green) !important;
  font-family: var(--eg-blog-heading-font) !important;
  font-size: clamp(2rem, 4vw, 2.85rem) !important;
  font-weight: 700 !important;
  letter-spacing: .02em !important;
  line-height: 1 !important;
  text-transform: none !important;
}
body.eg-blog-activo .eg-blog-feature__title::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: min(100%, 160px);
  height: 2px;
  background: var(--eg-blog-brown);
  content: "";
}
body.eg-blog-activo .eg-blog-feature > :last-child { margin-bottom: 0; }
body.eg-blog-activo .eg-blog-feature ul,
body.eg-blog-activo .eg-blog-feature ol {
  margin-bottom: 0;
}
body.eg-blog-activo .eg-blog-feature--summary a {
  color: var(--eg-blog-text);
  text-decoration: none;
}
body.eg-blog-activo .eg-blog-feature--summary a:hover {
  color: var(--eg-blog-green-dark);
  text-decoration: underline;
}

body.eg-blog-activo .eg-blog-entry img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
body.eg-blog-activo .eg-blog-entry figure { margin: 1.7rem 0 2rem; }
body.eg-blog-activo .eg-blog-entry figcaption {
  margin-top: .55rem;
  color: var(--eg-blog-muted);
  font-size: .84rem;
  line-height: 1.5;
  text-align: center;
}

body.eg-blog-activo .eg-blog-entry blockquote {
  margin: 1.8rem 0;
  padding: 1.1rem 1.3rem;
  border: 1px solid #dfe9e1;
  border-left: 4px solid var(--eg-blog-green);
  border-radius: 10px;
  background: var(--eg-blog-soft-green);
  color: var(--eg-blog-text);
  font-style: normal;
}
body.eg-blog-activo .eg-blog-entry blockquote p:last-child { margin-bottom: 0; }

body.eg-blog-activo .eg-blog-entry table {
  width: 100%;
  margin: 1.25rem 0 1.9rem;
  border: 1px solid var(--eg-blog-border);
  border-collapse: collapse;
  background: #fff;
  font-size: .94rem;
}
body.eg-blog-activo .eg-blog-entry th,
body.eg-blog-activo .eg-blog-entry td {
  padding: .78rem .9rem;
  border: 1px solid var(--eg-blog-border);
  text-align: left;
  vertical-align: top;
}
body.eg-blog-activo .eg-blog-entry th {
  color: var(--eg-blog-green-dark);
  background: var(--eg-blog-soft);
  font-weight: 700;
}

body.eg-blog-activo .eg-blog-entry h2[id],
body.eg-blog-activo .eg-blog-entry h3[id],
body.eg-blog-activo .eg-blog-entry h4[id] {
  scroll-margin-top: 110px;
}
body.eg-blog-activo .eg-blog-entry hr {
  margin: 2.2rem 0;
  border: 0;
  border-top: 1px solid var(--eg-blog-border);
}

body.eg-blog-activo .post-navigation,
body.eg-blog-activo .comments-area {
  max-width: 880px;
  margin-right: auto;
  margin-left: auto;
}
body.eg-blog-activo .post-navigation {
  padding-top: 1.2rem;
  border-top: 1px solid var(--eg-blog-border);
}

@media (max-width: 920px) {
  body.eg-blog-activo .eg-blog-entry,
  body.eg-blog-activo .post-navigation,
  body.eg-blog-activo .comments-area {
    width: calc(100% - 32px);
  }
}

@media (max-width: 640px) {
  body.eg-blog-activo .eg-blog-entry {
    width: calc(100% - 24px);
    font-size: 16px;
    line-height: 1.72;
  }
  body.eg-blog-activo .eg-blog-entry > h2 { margin-top: 2rem; }
  body.eg-blog-activo .eg-blog-feature {
    padding: 1rem .95rem 1.05rem;
  }
  body.eg-blog-activo .eg-blog-entry table {
    display: block;
    overflow-x: auto;
  }
  body.eg-blog-activo .eg-blog-entry th,
  body.eg-blog-activo .eg-blog-entry td {
    min-width: 140px;
    padding: .68rem .72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.eg-blog-activo * { scroll-behavior: auto !important; }
}


/* El Gualato – Productos Relacionados v1.1.0 */
.eg-related-products {
  --eg-rp-green: #477765;
  --eg-rp-green-dark: #155b43;
  --eg-rp-brown: #6b4441;
  --eg-rp-text: #45403c;
  --eg-rp-border: #e7dfd6;
  --eg-rp-soft: #f7f3ed;
  width: min(100%, 880px);
  margin: 3rem auto 1.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--eg-rp-border);
  color: var(--eg-rp-text);
  font-family: Arial, sans-serif;
}
.eg-related-products__header h2 {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 .65rem;
  padding: 0 0 .42rem;
  color: var(--eg-rp-green);
  font-family: "Amatic SC", "Arial Narrow", sans-serif;
  font-size: clamp(2.35rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.02;
}
.eg-related-products__header h2::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: min(100%, 180px);
  height: 2px;
  background: var(--eg-rp-brown);
  content: "";
}
.eg-related-products__header p {
  margin: 0 0 1.3rem;
  color: #66706a;
  font-size: .96rem;
}
.eg-related-products__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.eg-related-product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--eg-rp-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(66, 55, 45, .045);
}
.eg-related-product-card__image {
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--eg-rp-soft);
}
.eg-related-product-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .2s ease;
}
.eg-related-product-card__image:hover img { transform: scale(1.025); }
.eg-related-product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: .9rem;
}
.eg-related-product-card h3 {
  margin: 0 0 .55rem;
  font-family: Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}
.eg-related-product-card h3 a {
  color: var(--eg-rp-text);
  text-decoration: none;
}
.eg-related-product-card h3 a:hover { color: var(--eg-rp-green-dark); }
.eg-related-product-card__price {
  margin: auto 0 .75rem;
  color: var(--eg-rp-green-dark);
  font-size: .98rem;
  font-weight: 700;
}
.eg-related-product-card__price del {
  margin-right: .25rem;
  color: #777;
  font-weight: 400;
}
.eg-related-product-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: .65rem .8rem;
  border: 1px solid var(--eg-rp-green);
  border-radius: 999px;
  color: var(--eg-rp-green-dark);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}
.eg-related-product-card__button:hover {
  background: var(--eg-rp-green);
  color: #fff;
}
@media (max-width: 900px) {
  .eg-related-products { width: calc(100% - 32px); }
  .eg-related-products__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .eg-related-products { width: calc(100% - 24px); }
  .eg-related-products__grid { grid-template-columns: 1fr; }
  .eg-related-product-card { flex-direction: row; }
  .eg-related-product-card__image { width: 38%; min-width: 120px; aspect-ratio: 1 / 1; }
  .eg-related-product-card__body { padding: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .eg-related-product-card__image img { transition: none; }
}
