/* Blog EcoPlagas – estilos compartidos (paleta alineada con home/servicios) */
:root {
  --turf-green: #047835;
  --bright-gold: #F2CB05;
  --gold-soft: #F2CB05;
  --yellow-dark: #c9a804;
  --yellow-darker: #a68503;
  --black: #000000;
  --white: #ffffff;
  --gray: #444;
  --card-radius: 16px;
  --card-shadow: 0 4px 24px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.05);
  --card-border: 1px solid rgba(4, 120, 53, 0.12);
  --section-bg: #fff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Manrope', system-ui, sans-serif; color: var(--black); background: var(--section-bg); line-height: 1.6; }
.container { max-width: 720px; margin: 0 auto; padding: 0 1.25rem; }
a { color: var(--turf-green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header: mismo estilo que home – amarillo, texto blanco */
header {
  background: #F2CB05;
  color: #fff;
  padding: 0.6rem 0;
  border-bottom: 2px solid rgba(0,0,0,0.1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
header .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem; }
header .logo { font-weight: 700; font-size: 1.2rem; color: #fff; display: flex; align-items: center; gap: 0.4rem; text-decoration: none; }
header .logo:hover { color: #fff; text-decoration: none; opacity: 0.9; }
header .logo .logo-flag { font-size: 1.5rem; line-height: 1; display: inline-flex; align-items: center; min-width: 1.5em; }
header .logo img { height: 40px; width: auto; }
header nav a { color: #fff; font-weight: 700; font-size: 0.875rem; padding: 0.5rem 1rem; text-decoration: none; }
header nav a:hover { color: #fff; opacity: 0.9; }
header nav a.cta {
  color: #fff; background: rgba(0,0,0,0.08); padding: 0.5rem 1rem; border-radius: 8px;
  border: 2px solid #fff; font-weight: 700;
}
header nav a.cta:hover { background: rgba(0,0,0,0.12); border-color: #fff; color: #fff; text-decoration: none; }

/* Botón menú móvil */
.header-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  background: rgba(0,0,0,0.1);
  border: 2px solid rgba(255,255,255,0.95);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.header-nav-toggle:hover { background: rgba(0,0,0,0.15); border-color: #fff; }
.header-nav-toggle:active { transform: scale(0.97); }
.header-nav-toggle:focus { outline: none; box-shadow: 0 0 0 3px rgba(255,255,255,0.5); }
.hamburger-bar {
  display: block;
  width: 24px;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.site-header.nav-open .hamburger-bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.site-header.nav-open .hamburger-bar:nth-child(2) { opacity: 0; }
.site-header.nav-open .hamburger-bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 768px) {
  .site-header { position: relative; z-index: 1000; }
  header {
    padding: 0.75rem 0;
    border-bottom-width: 3px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  }
  header .container { flex-wrap: nowrap; gap: 0.75rem; align-items: center; min-height: 52px; }
  header .logo { font-size: 1.15rem; }
  header .logo img { height: 38px; }
  .header-nav-toggle { display: flex; margin-left: auto; }
  .header-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999;
    background: linear-gradient(180deg, #F2CB05 0%, #e6be04 100%);
    border-bottom: 3px solid rgba(0,0,0,0.12);
    box-shadow: 0 12px 32px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 1rem 1.25rem 1.25rem;
    border-radius: 0 0 20px 20px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease, visibility 0.3s, box-shadow 0.3s ease;
  }
  .site-header.nav-open .header-nav {
    max-height: 380px;
    opacity: 1;
    visibility: visible;
    box-shadow: 0 16px 40px rgba(0,0,0,0.2);
  }
  .header-nav a {
    width: 100%;
    padding: 1rem 1.25rem;
    min-height: 52px;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-radius: 12px;
    margin-bottom: 0.35rem;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.35);
    display: inline-flex;
    align-items: center;
    transition: background 0.2s, border-color 0.2s;
    -webkit-tap-highlight-color: transparent;
  }
  .header-nav a:hover { background: rgba(255,255,255,0.35); border-color: rgba(255,255,255,0.5); }
  .header-nav a:last-of-type:not(.cta) { margin-bottom: 0; }
  .header-nav a.cta {
    margin-top: 0.5rem;
    margin-bottom: 0;
    padding: 1rem 1.25rem;
    text-align: center;
    justify-content: center;
    background: rgba(0,0,0,0.2);
    border: 2px solid #fff;
    font-size: 1.05rem;
  }
  .header-nav a.cta:hover { background: rgba(0,0,0,0.28); border-color: #fff; }
}

main { padding: 2rem 0 3rem; }
main .container {
  background: var(--white);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  border: var(--card-border);
  padding: 2rem 1.5rem;
}
.breadcrumb { font-size: 0.85rem; color: var(--gray); margin-bottom: 1rem; }
.breadcrumb a { color: var(--turf-green); }

.blog-intro { margin-bottom: 2rem; }
.blog-intro h1 { font-size: 1.75rem; color: var(--turf-green); margin-bottom: 0.5rem; }
.blog-intro h1 span[aria-hidden="true"] { margin-right: 0.35rem; display: inline-block; font-size: 1.15em; vertical-align: middle; }
.blog-intro p { color: var(--gray); font-size: 1rem; }

.blog-list { list-style: none; margin: 0 0 2.5rem 0; padding: 0; }
.blog-list li { margin-bottom: 0.5rem; }
.blog-list a {
  display: block;
  background: var(--white);
  border-radius: var(--card-radius);
  padding: 1rem 1.25rem;
  border: var(--card-border);
  border-left: 4px solid var(--turf-green);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  color: var(--black);
}
.blog-list a:hover { background: #fafafa; text-decoration: none; border-left-color: #036328; box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.blog-list .tag { font-size: 0.7rem; color: var(--turf-green); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.2rem; }
.blog-list h2 { font-size: 1.05rem; margin-bottom: 0.25rem; font-weight: 700; }
.blog-list .teaser { font-size: 0.9rem; color: var(--gray); line-height: 1.45; }

.article { margin-bottom: 2rem; }
.article .tag { font-size: 0.75rem; color: var(--turf-green); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.25rem; }
.article h1 { font-size: 1.5rem; color: var(--turf-green); margin-bottom: 1rem; line-height: 1.3; }
.article h2 { font-size: 1.35rem; color: var(--turf-green); margin-bottom: 1rem; line-height: 1.3; }
.article p { margin-bottom: 1rem; color: var(--gray); }
.article ul, .article ol { margin: 0 0 1rem 1.5rem; color: var(--gray); }
.article li { margin-bottom: 0.4rem; }
.article .refs { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px dashed #ccc; font-size: 0.85rem; color: #666; }
.article .refs p { margin-bottom: 0.35rem; }
.article .refs a { word-break: break-all; }
.article figure { margin: 1.25rem 0; }
.article figure img { width: 100%; max-width: 100%; height: auto; border-radius: 10px; border: 1px solid #e0e0e0; display: block; }
.article figure figcaption { font-size: 0.85rem; color: var(--gray); margin-top: 0.5rem; font-style: italic; }

.article-header { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; }
.article-icon { flex-shrink: 0; width: 56px; height: 56px; border-radius: 14px; background: rgba(4, 120, 53, 0.12); display: flex; align-items: center; justify-content: center; }
.article-icon svg { width: 28px; height: 28px; stroke: var(--turf-green); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.blog-list .list-icon { width: 36px; height: 36px; border-radius: 10px; background: rgba(4, 120, 53, 0.1); display: flex; align-items: center; justify-content: center; margin-bottom: 0.5rem; }
.blog-list .list-icon svg { width: 18px; height: 18px; stroke: var(--turf-green); fill: none; stroke-width: 2; }

.diagram { margin: 1.5rem 0; padding: 0; }
.diagram-title { font-size: 0.9rem; font-weight: 700; color: var(--turf-green); margin-bottom: 1rem; text-align: center; }
.diagram-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.diagram-box {
  flex: 1; min-width: 140px; max-width: 200px;
  background: linear-gradient(135deg, rgba(4, 120, 53, 0.08) 0%, rgba(4, 120, 53, 0.04) 100%);
  border: 2px solid rgba(4, 120, 53, 0.25);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
}
.diagram-box .d-icon { width: 40px; height: 40px; margin: 0 auto 0.5rem; border-radius: 50%; background: var(--turf-green); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1.1rem; }
.diagram-box .d-icon svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2.5; }
.diagram-box strong { display: block; font-size: 1rem; color: var(--black); margin-bottom: 0.2rem; }
.diagram-box span { font-size: 0.8rem; color: var(--gray); }

.tip {
  display: flex;
  gap: 0.75rem;
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(242, 203, 5, 0.12) 0%, rgba(242, 203, 5, 0.06) 100%);
  border-left: 4px solid var(--gold-soft);
  border-radius: 0 10px 10px 0;
  box-shadow: 0 2px 8px rgba(242, 203, 5, 0.2);
}
.tip .tip-icon { flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; background: rgba(242, 203, 5, 0.25); display: flex; align-items: center; justify-content: center; }
.tip .tip-icon svg { width: 22px; height: 22px; stroke: var(--yellow-dark); fill: none; stroke-width: 2; }
.tip .tip-body strong { display: block; font-size: 0.85rem; color: var(--yellow-darker); margin-bottom: 0.25rem; }
.tip .tip-body p { margin: 0; font-size: 0.95rem; color: #444; line-height: 1.5; }

.destacado {
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  background: rgba(4, 120, 53, 0.08);
  border: 2px solid rgba(4, 120, 53, 0.3);
  border-radius: 12px;
  border-left: 4px solid var(--turf-green);
}
.destacado strong { color: var(--turf-green); font-size: 0.9rem; }
.destacado p { margin: 0.35rem 0 0; color: var(--gray); font-size: 0.95rem; }

.article .en-breve {
  margin: 1rem 0 1.25rem;
  padding: 1rem 1.25rem;
  background: #f8faf8;
  border-radius: 12px;
  border: 1px solid rgba(4, 120, 53, 0.2);
}
.article .en-breve strong { display: block; font-size: 0.85rem; color: var(--turf-green); margin-bottom: 0.5rem; }
.article .en-breve ul { margin: 0; padding-left: 1.25rem; list-style: disc; }
.article .en-breve li { margin-bottom: 0.25rem; }

.article .related-posts { margin: 1.5rem 0; padding-top: 1rem; border-top: 1px solid #e5e5e5; }
.article .related-posts h3 { font-size: 1rem; color: var(--turf-green); margin-bottom: 0.75rem; font-weight: 700; }
.article .related-posts ul { list-style: none; margin: 0; padding: 0; }
.article .related-posts li { margin-bottom: 0.5rem; }
.article .related-posts a { font-size: 0.95rem; }

.article ul.check-list { list-style: none; margin-left: 0; }
.article ul.check-list li { position: relative; padding-left: 1.75rem; margin-bottom: 0.5rem; }
.article ul.check-list li::before {
  content: ''; position: absolute; left: 0; top: 0.35rem;
  width: 20px; height: 20px; border-radius: 50%; background: rgba(4, 120, 53, 0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23047835' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 20px 20px; background-repeat: no-repeat; background-position: center;
}

.blog-seccion-tit {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--turf-green);
  margin: 1.5rem 0 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid rgba(4, 120, 53, 0.25);
}
.article ol.pasos { list-style: none; margin: 0 0 1rem 0; padding: 0; counter-reset: paso; }
.article ol.pasos li { position: relative; padding-left: 2.5rem; margin-bottom: 0.75rem; counter-increment: paso; }
.article ol.pasos li::before {
  content: counter(paso);
  position: absolute; left: 0; top: 0;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--turf-green); color: #fff; font-weight: 700; font-size: 0.9rem;
  display: inline-block; text-align: center; line-height: 28px;
}

/* CTA teléfono: misma paleta que home – caja amarilla, botón blanco */
.blog-cta-phone {
  margin: 1.75rem 0;
  padding: 1.25rem;
  background: var(--gold-soft);
  border-radius: 12px;
  border: var(--card-border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  color: var(--black);
  text-align: center;
}
.blog-cta-phone p { margin: 0 0 1rem; font-size: 0.95rem; color: #333; }
.blog-cta-phone .blog-cta-tit { font-weight: 700; font-size: 1rem; color: var(--turf-green); margin-bottom: 0.5rem; }
.blog-cta-phone .blog-cta-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.blog-cta-phone a.btn-blog-call, .blog-cta-phone a.btn-blog-wa {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.6rem 1rem; border-radius: 8px; font-weight: 600; font-size: 0.9rem;
  text-decoration: none;
}
.blog-cta-phone a.btn-blog-call { background: #fff; color: var(--black); display: inline-flex; align-items: center; gap: 0.35rem; border: 2px solid rgba(0,0,0,0.1); }
.blog-cta-phone a.btn-blog-call svg { width: 18px; height: 18px; flex-shrink: 0; }
.blog-cta-phone a.btn-blog-call:hover { background: #eee; color: var(--black); text-decoration: none; }
.blog-cta-phone a.btn-blog-wa { background: #25D366; color: #fff; }
.blog-cta-phone a.btn-blog-wa:hover { background: #20bd5a; color: #fff; text-decoration: none; }

.back-cta { margin-top: 2rem; text-align: center; }
.back-cta a {
  display: inline-block;
  background: var(--gold-soft);
  color: var(--white);
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}
.back-cta a:hover { background: var(--yellow-dark); color: #fff; text-decoration: none; }

/* Footer: mismo estilo que home – amarillo, texto blanco */
footer { background: #F2CB05; color: #fff; padding: 1.25rem; text-align: center; font-size: 0.9rem; font-weight: 700; }
footer a { color: #fff; font-weight: 700; }
footer a:hover { color: #fff; opacity: 0.9; }
