/* ============================================================
   GOOD CLEAN PRO — BLOG.CSS
   Estilos compartidos por todas las páginas del blog:
   header, nav, hamburguesa, footer, botón WhatsApp + estilos
   propios del blog (listado y artículos).
   ============================================================ */

:root{
  --green-mid:#3CB878;
  --green-dark:#2E7D4F;
  --green-deep:#153D28;
  --header-bg:#FFFFFF;
  --link-rest:#2E7D4F;
  --link-active:#3CB878;
  --pro-yellow:#FFC933;
  --ink:#1B2B22;
  --paper:#F7FAF8;
  --header-h:72px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
picture{display:contents;}
body{
  margin:0;
  font-family:"Inter","Helvetica Neue",Arial,sans-serif;
  color:var(--ink);
  background:var(--paper);
}
img{max-width:100%;display:block;}
a{color:inherit;}

/* ---------- HEADER (igual que el resto del sitio) ---------- */
.site-header{
  position:sticky;
  top:0;
  z-index:100;
  background:var(--header-bg);
  height:var(--header-h);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 32px;
  transition:box-shadow .25s ease;
}
.site-header.is-scrolled{
  box-shadow:0 2px 14px rgba(20,40,30,0.08);
}
.logo{
  display:flex;
  align-items:center;
  gap:8px;
  height:44px;
  flex-shrink:0;
  text-decoration:none;
  line-height:1;
}
.logo-icon{
  height:115%;
  width:auto;
  display:block;
}
.logo-text{
  font-family:"Poppins",Arial,sans-serif;
  font-weight:700;
  font-size:22px;
  letter-spacing:-0.01em;
}
.logo-text .lt-goodclean{color:var(--green-mid);}
.logo-text .lt-pro{color:var(--green-dark);}

/* ---------- NAV DESKTOP ---------- */
.main-nav{display:flex;align-items:center;}
.nav-list{
  list-style:none;
  display:flex;
  align-items:center;
  gap:26px;
  margin:0;
  padding:0;
}
.nav-list a{
  text-decoration:none;
  color:var(--link-rest);
  font-weight:600;
  font-size:15px;
  padding:8px 2px;
  position:relative;
  transition:color .2s ease;
  white-space:nowrap;
}
.nav-list a::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height:2px;
  background:var(--link-active);
  transform:scaleX(0);
  transform-origin:left;
  transition:transform .2s ease;
}
.nav-list a:hover,
.nav-list a.is-active{
  color:var(--link-active);
}
.nav-list a:hover::after,
.nav-list a.is-active::after{
  transform:scaleX(1);
}
.nav-cta{
  background:var(--green-mid);
  color:#FFFFFF !important;
  border-radius:6px;
  padding:8px 20px !important;
  font-weight:600;
}
.nav-cta::after{display:none;}
.nav-cta:hover{
  background:var(--green-dark);
  color:#FFFFFF !important;
}

/* ---------- HAMBURGUESA ---------- */
.nav-toggle{
  display:none;
  background:none;
  border:none;
  cursor:pointer;
  width:40px;
  height:40px;
  padding:8px;
  flex-direction:column;
  justify-content:center;
  gap:5px;
}
.nav-toggle span{
  display:block;
  height:2px;
  width:100%;
  background:var(--green-dark);
  border-radius:2px;
  transition:transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1){
  transform:translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2){
  opacity:0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3){
  transform:translateY(-7px) rotate(-45deg);
}

@media (max-width:1300px){
  .nav-toggle{display:flex;}
  .main-nav{
    position:fixed;
    top:var(--header-h);
    right:0;
    width:min(78vw,320px);
    height:calc(100vh - var(--header-h));
    background:var(--header-bg);
    box-shadow:-6px 0 24px rgba(20,40,30,0.12);
    transform:translateX(100%);
    transition:transform .28s ease;
    overflow-y:auto;
  }
  .main-nav.is-open{
    transform:translateX(0);
  }
  .nav-list{
    flex-direction:column;
    align-items:stretch;
    gap:0;
    padding:16px 0;
  }
  .nav-list li{
    border-bottom:1px solid #EDF3EF;
  }
  .nav-list a{
    display:block;
    padding:16px 28px;
  }
  .nav-list a::after{display:none;}
  .nav-cta-item{
    padding:16px 28px;
  }
  .nav-cta{
    display:inline-block;
    text-align:center;
  }
}

/* ---------- BOTÓN VOLVER ARRIBA ---------- */
.back-to-top{
  position:fixed;
  left:20px;
  bottom:calc(20px + var(--cookie-banner-h, 0px));
  z-index:200;
  width:44px;
  height:44px;
  border-radius:50%;
  background:var(--green-dark);
  color:#FFFFFF;
  border:none;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow:0 4px 14px rgba(20,50,35,0.25);
  opacity:0;
  transform:translateY(10px);
  pointer-events:none;
  transition:opacity .25s ease, transform .25s ease, background .2s ease;
}
.back-to-top.is-visible{
  opacity:1;
  transform:translateY(0);
  pointer-events:auto;
}
.back-to-top:hover{ background:var(--green-mid); }
@media (max-width:600px){
  .back-to-top{ left:16px; bottom:calc(16px + var(--cookie-banner-h, 0px)); width:40px; height:40px; }
}

/* ---------- BOTÓN WHATSAPP FLOTANTE ---------- */
.whatsapp-float{
  position:fixed;
  right:20px;
  bottom:calc(20px + var(--cookie-banner-h, 0px));
  z-index:200;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  text-decoration:none;
  opacity:1;
  transform:none;
}
.whatsapp-float .wa-circle{
  width:72px;
  height:72px;
  border-radius:50%;
  background:#25D366;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 6px 18px rgba(0,0,0,0.28);
  transition:background .2s ease, transform .2s ease;
}
.whatsapp-float:hover .wa-circle{
  background:#1EBE5A;
  transform:scale(1.05);
}
.whatsapp-float svg{
  width:38px;
  height:38px;
  fill:#FFFFFF;
}
.whatsapp-float .wa-label{
  font-family:"Inter","Helvetica Neue",Arial,sans-serif;
  font-size:13px;
  font-weight:700;
  color:#FFFFFF;
  background:rgba(0,0,0,0.55);
  padding:4px 12px;
  border-radius:999px;
  letter-spacing:0.01em;
  white-space:nowrap;
}
@media (max-width:600px){
  .whatsapp-float{
    right:16px;
    bottom:calc(16px + var(--cookie-banner-h, 0px));
  }
  .whatsapp-float .wa-circle{
    width:64px;
    height:64px;
  }
  .whatsapp-float svg{
    width:34px;
    height:34px;
  }
  .whatsapp-float .wa-label{
    font-size:12px;
  }
}

/* ---------- FOOTER DE CRÉDITO ---------- */
.site-credit{
  background:var(--green-dark);
  padding:24px 6vw;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  text-align:center;
}
.site-credit .credit-line{
  color:rgba(255,255,255,0.85);
  font-size:13px;
  letter-spacing:0.01em;
  margin:0;
}
.site-credit .credit-line strong{
  color:#FFFFFF;
  font-weight:700;
}
.site-credit .credit-line a{
  color:var(--pro-yellow);
  text-decoration:underline;
}
.site-credit .credit-line a:hover{
  color:#FFFFFF;
}
.site-credit a.credit-dev{
  color:rgba(255,255,255,0.85);
  font-size:12.5px;
  text-decoration:none;
  transition:color .2s ease;
}
.site-credit a.credit-dev strong{
  color:#FFFFFF;
  font-weight:700;
}
.site-credit a.credit-dev:hover{
  color:#FFFFFF;
}

/* ============================================================
   BLOG — estilos propios
   ============================================================ */

.blog-shell{
  max-width:1080px;
  margin:0 auto;
  padding:0 8vw;
}

/* ---- Encabezado de sección del blog (listado) ---- */
.blog-hero{
  background:linear-gradient(160deg, var(--green-mid) 0%, var(--green-dark) 55%, var(--green-deep) 100%);
  padding:56px 8vw 48px;
  text-align:center;
}
.blog-hero .eyebrow{
  color:var(--pro-yellow);
  font-weight:700;
  font-size:13px;
  letter-spacing:0.14em;
  text-transform:uppercase;
  margin:0 0 10px;
}
.blog-hero h1{
  font-family:"Castoro",Georgia,serif;
  font-weight:400;
  color:#FFFFFF;
  font-size:clamp(30px,4.5vw,46px);
  margin:0 0 14px;
}
.blog-hero p{
  color:rgba(255,255,255,0.85);
  max-width:56ch;
  margin:0 auto;
  font-size:16.5px;
  line-height:1.6;
}

/* ---- Grid de artículos ---- */
.blog-grid{
  padding:48px 8vw 64px;
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));
  gap:28px;
  max-width:1160px;
  margin:0 auto;
}
.post-card{
  background:#FFFFFF;
  border-radius:16px;
  overflow:hidden;
  text-decoration:none;
  color:inherit;
  box-shadow:0 6px 20px rgba(20,50,35,0.08);
  border:1px solid #E7EFE9;
  display:flex;
  flex-direction:column;
  transition:transform .2s ease, box-shadow .2s ease;
}
.post-card:hover{
  transform:translateY(-4px);
  box-shadow:0 14px 30px rgba(20,50,35,0.14);
}
.post-card .post-thumb{
  width:100%;
  height:190px;
  object-fit:cover;
}
.post-card .post-card-body{
  padding:20px 22px 24px;
  display:flex;
  flex-direction:column;
  flex:1;
}
.post-card .post-tag{
  display:inline-block;
  align-self:flex-start;
  background:#EAF7EF;
  color:var(--green-dark);
  font-size:11.5px;
  font-weight:700;
  letter-spacing:0.04em;
  text-transform:uppercase;
  padding:4px 10px;
  border-radius:999px;
  margin-bottom:12px;
}
.post-card h2{
  font-size:19px;
  color:var(--ink);
  margin:0 0 10px;
  line-height:1.32;
}
.post-card p.post-excerpt{
  font-size:14.5px;
  color:#556459;
  line-height:1.6;
  margin:0 0 16px;
  flex:1;
}
.post-card .post-meta{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12.5px;
  color:#7C8B81;
  margin-top:auto;
}
.post-card .post-read{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:var(--green-mid);
  font-weight:700;
  font-size:14px;
  margin-top:14px;
}
.post-card .post-read svg{
  width:15px; height:15px;
  fill:none; stroke:var(--green-mid);
  stroke-width:2.4; stroke-linecap:round; stroke-linejoin:round;
  transition:transform .2s ease;
}
.post-card:hover .post-read svg{
  transform:translateX(3px);
}

/* ---- Artículo individual ---- */
.post-header{
  background:linear-gradient(160deg, var(--green-mid) 0%, var(--green-dark) 55%, var(--green-deep) 100%);
  padding:40px 8vw 40px;
}
.post-header .breadcrumb{
  max-width:760px;
  margin:0 auto 20px;
  display:flex;
  align-items:center;
  gap:8px;
  font-size:13px;
}
.post-header .breadcrumb a{
  color:rgba(255,255,255,0.75);
  text-decoration:none;
}
.post-header .breadcrumb a:hover{ color:#FFFFFF; }
.post-header .breadcrumb span{ color:rgba(255,255,255,0.5); }
.post-header .post-tag{
  display:inline-block;
  background:rgba(255,255,255,0.14);
  color:var(--pro-yellow);
  font-size:11.5px;
  font-weight:700;
  letter-spacing:0.04em;
  text-transform:uppercase;
  padding:4px 10px;
  border-radius:999px;
  margin:0 auto 16px;
  max-width:760px;
}
.post-header-inner{
  max-width:760px;
  margin:0 auto;
}
.post-header h1{
  font-family:"Castoro",Georgia,serif;
  font-weight:400;
  color:#FFFFFF;
  font-size:clamp(28px,4.2vw,42px);
  line-height:1.25;
  margin:0 0 16px;
}
.post-header .post-meta{
  display:flex;
  align-items:center;
  gap:10px;
  color:rgba(255,255,255,0.8);
  font-size:13.5px;
}

.post-cover{
  max-width:900px;
  margin:-28px auto 0;
  padding:0 8vw;
}
.post-cover img{
  width:100%;
  height:auto;
  max-height:420px;
  object-fit:cover;
  border-radius:16px;
  box-shadow:0 16px 40px rgba(20,50,35,0.18);
}

.post-body{
  max-width:720px;
  margin:0 auto;
  padding:44px 8vw 20px;
  font-size:17px;
  line-height:1.8;
  color:#2B3A31;
  text-align:justify;
}
.post-body h2{
  font-family:"Castoro",Georgia,serif;
  font-weight:400;
  color:var(--green-dark);
  font-size:clamp(22px,3vw,28px);
  margin:38px 0 14px;
}
.post-body h3{
  color:var(--green-dark);
  font-size:19px;
  margin:28px 0 10px;
}
.post-body p{ margin:0 0 18px; }
.post-body ul, .post-body ol{
  margin:0 0 18px;
  padding-left:22px;
}
.post-body li{ margin-bottom:8px; }
.post-body strong{ color:var(--ink); }
.post-body blockquote{
  margin:24px 0;
  padding:16px 22px;
  border-left:4px solid var(--green-mid);
  background:#EAF7EF;
  border-radius:0 10px 10px 0;
  font-style:italic;
  color:#2E4A3A;
}
.post-body img{
  border-radius:12px;
  margin:8px 0 22px;
}

.post-share{
  max-width:720px;
  margin:8px auto 0;
  padding:0 8vw;
  display:flex;
  align-items:center;
  gap:12px;
}
.post-share .share-label{
  font-size:13px;
  font-weight:700;
  color:#556459;
  margin-right:2px;
}
.post-share a,
.post-share button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  border-radius:50%;
  background:#EAF7EF;
  color:var(--green-dark);
  text-decoration:none;
  border:none;
  cursor:pointer;
  transition:background .2s ease, color .2s ease, transform .2s ease;
}
.post-share a:hover,
.post-share button:hover{
  background:var(--green-mid);
  color:#FFFFFF;
  transform:translateY(-2px);
}
.post-share svg{
  width:18px;
  height:18px;
  fill:currentColor;
}
.post-share .share-copied{
  font-size:12.5px;
  color:var(--green-dark);
  font-weight:700;
  opacity:0;
  transition:opacity .25s ease;
}
.post-share .share-copied.is-visible{
  opacity:1;
}
@media (max-width:640px){
  .post-share{ flex-wrap:wrap; }
}

.post-cta{
  max-width:720px;
  margin:20px auto 56px;
  padding:0 8vw;
}
.post-cta-box{
  background:linear-gradient(120deg, var(--green-mid) 0%, var(--green-dark) 100%);
  border-radius:16px;
  padding:28px 30px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap;
}
.post-cta-box p{
  color:#FFFFFF;
  font-weight:700;
  font-size:17px;
  margin:0;
  max-width:36ch;
}
.post-cta-box a{
  flex-shrink:0;
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:#FFFFFF;
  color:var(--green-dark);
  font-weight:700;
  font-size:14.5px;
  text-decoration:none;
  padding:12px 22px;
  border-radius:999px;
  transition:transform .2s ease;
}
.post-cta-box a:hover{
  transform:translateY(-2px);
}

.post-related{
  max-width:1080px;
  margin:0 auto;
  padding:8px 8vw 56px;
}
.post-related h2{
  font-size:22px;
  color:var(--green-dark);
  margin:0 0 22px;
  text-align:center;
}
.post-related-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
  gap:22px;
}

@media (max-width:640px){
  .post-cta-box{
    flex-direction:column;
    align-items:flex-start;
  }
  .post-cover{ margin-top:-16px; }
  .post-body{ font-size:16px; }
}
