/* Hugo | Proyectos */
.hwhc-projects{--hp-width:100%;--hp-gap:30px;--hp-header-gap:30px;--hp-image-gap:17px;--hp-title-gap:9px;--hp-card-bottom:24px;--hp-radius:6px;--hp-ratio:2.1;--hp-accent:#285f24;padding:40px 0;box-sizing:border-box}
.hwhc-projects *{box-sizing:border-box}
.hwhc-projects__inner{width:100%;max-width:var(--hp-width);margin-inline:auto}
.hwhc-projects__header{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:var(--hp-header-gap)}
.hwhc-projects__eyebrow{font-size:11px;letter-spacing:1.3px;font-weight:600;color:var(--hp-accent);margin:0 0 5px}
.hwhc-projects__title{font-size:clamp(23px,2.4vw,31px);font-weight:750;letter-spacing:-.035em;line-height:1.12;color:#0b1925;margin:0}
.hwhc-projects__archive{font-size:13px;color:var(--hp-accent);font-weight:600;white-space:nowrap;text-decoration:underline;text-underline-offset:3px}
.hwhc-projects__grid{display:grid;grid-template-columns:repeat(var(--hp-cols,4),minmax(0,1fr));gap:var(--hp-gap)}
.hwhc-projects__card{min-width:0;border-bottom:1px solid #edf0ef;padding-bottom:var(--hp-card-bottom)}
.hwhc-projects__link{display:block;text-decoration:none;color:inherit}
.hwhc-projects__media{aspect-ratio:var(--hp-ratio);overflow:hidden;border-radius:var(--hp-radius);background:#f4f6f6;margin-bottom:var(--hp-image-gap)}
.hwhc-projects__image{width:100%;height:100%;display:block;object-fit:cover;transition:transform .25s ease}
a.hwhc-projects__link:hover .hwhc-projects__image{transform:scale(1.025)}
.hwhc-projects__card-title{font-size:15px;line-height:1.3;font-weight:700;color:#101923;margin:0 0 var(--hp-title-gap)}
.hwhc-projects__excerpt{font-size:13px;line-height:1.65;color:#48525a;margin:0}
@media(max-width:1024px){.hwhc-projects__grid{--hp-cols:2}}
@media(max-width:767px){.hwhc-projects__header{align-items:flex-start;flex-direction:column;gap:10px}.hwhc-projects__grid{--hp-cols:1}.hwhc-projects__inner{padding-inline:16px}}

/* Optional portfolio card treatment; existing classic layout preserved. */
.hwhc-projects--elevated .hwhc-projects__card{border:1px solid #e9eef0;border-radius:12px;background:#fff;padding:0 0 18px;overflow:hidden;box-shadow:0 6px 24px rgba(18,39,31,.045);transition:transform .2s ease,box-shadow .2s ease}
.hwhc-projects--elevated .hwhc-projects__card:hover{transform:translateY(-3px);box-shadow:0 12px 30px rgba(18,39,31,.1)}
.hwhc-projects--elevated .hwhc-projects__media{border-radius:0;margin-bottom:16px}
.hwhc-projects--elevated .hwhc-projects__card-title,.hwhc-projects--elevated .hwhc-projects__excerpt,.hwhc-projects--elevated .hwhc-projects__tags{margin-left:16px;margin-right:16px}
.hwhc-projects__tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:13px}
.hwhc-projects__tags span{background:#f0f4f5;color:#263b44;border-radius:20px;padding:5px 9px;font-size:11px;line-height:1.2}

/* Huuguu Projects 0.1.11: consistent portfolio cards */
.hwhc-projects{--hp-title-lines:2;--hp-excerpt-lines:3}
.hwhc-projects__grid{align-items:stretch}
.hwhc-projects__card{display:flex;flex-direction:column;min-height:0}
.hwhc-projects__link{display:flex;flex-direction:column;flex:1;min-height:0}
.hwhc-projects__tags{margin:0 0 10px;gap:6px}
.hwhc-projects__card-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--hp-title-lines);line-clamp:var(--hp-title-lines);overflow:hidden}
.hwhc-projects__excerpt{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--hp-excerpt-lines);line-clamp:var(--hp-excerpt-lines);overflow:hidden}
.hwhc-projects__cta{display:inline-flex;align-items:center;gap:7px;margin-top:auto;padding-top:18px;font-size:13px;font-weight:650;color:var(--hp-accent)}
.hwhc-projects--elevated .hwhc-projects__tags{margin-top:0;margin-bottom:10px}
.hwhc-projects--elevated .hwhc-projects__cta{margin-left:16px;margin-right:16px;padding-bottom:2px}

/* Archive shares the Elementor card design without requiring Elementor. */
.hwhc-projects--archive{padding:0 0 32px;--hp-gap:26px;--hp-accent:#285f24}
.hwhc-projects--archive .hwhc-projects__card{min-width:0}
.hwhc-projects--archive .hwhc-projects__link{height:100%}
.hwhc-projects--archive .hwhc-projects__cta{margin-top:auto}
@media(max-width:1024px){.hwhc-projects--archive .hwhc-projects__grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){.hwhc-projects--archive .hwhc-projects__grid{grid-template-columns:1fr}.hwhc-projects--archive .hwhc-projects__inner{padding-inline:0}}

.huuguu-projects-archive-intro{max-width:850px;margin:12px 0 32px;line-height:1.7}.huuguu-projects-archive-outro{max-width:850px;margin:50px auto 20px;text-align:center;line-height:1.7}.huuguu-projects-more-wrap{text-align:center;margin:8px 0 24px}.huuguu-projects-more{background:#245c2b;color:#fff;border:0;border-radius:7px;padding:13px 25px;font:inherit;font-weight:600;cursor:pointer}.huuguu-projects-more:disabled{opacity:.6;cursor:wait}.huuguu-projects-crawl-pages{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important}

/* Archive editorial framing — 0.1.14 */
.huuguu-projects-archive .huuguu-projects-heading{padding:42px 0 16px}
.huuguu-projects-archive .huuguu-projects-heading h1{margin:0 0 14px;letter-spacing:-.035em}
.huuguu-projects-archive .huuguu-projects-archive-intro{max-width:800px;margin:0 0 28px;color:#4c5964;font-size:clamp(15px,1.25vw,17px);line-height:1.8}
.huuguu-projects-archive .huuguu-projects-archive-intro p{margin:0 0 12px}
.huuguu-projects-archive .huuguu-projects-archive-outro{max-width:none;margin:64px 0 70px;padding:clamp(32px,5vw,66px) 24px;border-radius:18px;background:#f3f7f3;text-align:center;line-height:1.7}
.huuguu-projects-archive-outro__inner{max-width:750px;margin:auto}
.huuguu-projects-archive-outro__eyebrow{font-size:11px;font-weight:750;letter-spacing:.14em;color:#28652f}
.huuguu-projects-archive-outro h2{font-size:clamp(25px,3vw,36px);line-height:1.2;letter-spacing:-.03em;margin:12px 0 18px;color:#12202c}
.huuguu-projects-archive-outro__copy{font-size:15px;color:#4c5964;line-height:1.85}
.huuguu-projects-archive-outro__copy p{margin:0 0 12px}
.huuguu-projects-archive-outro__button{display:inline-flex;align-items:center;gap:12px;margin-top:20px;background:#28652f;color:white!important;padding:13px 23px;border-radius:8px;font-weight:650;text-decoration:none!important;transition:background .2s}
.huuguu-projects-archive-outro__button:hover{background:#194820}
@media(max-width:767px){.huuguu-projects-archive .huuguu-projects-heading{padding-top:25px}.huuguu-projects-archive .huuguu-projects-archive-outro{margin:36px 0 42px;padding:36px 20px}}

/* 0.1.15 configurable editorial block */
.huuguu-projects-archive .huuguu-projects-archive-outro{background:var(--hp-outro-bg);border:1px solid var(--hp-outro-border);border-radius:var(--hp-outro-radius);padding:var(--hp-outro-desktop) 24px;text-align:var(--hp-outro-align)}
.huuguu-projects-archive-outro__inner{max-width:var(--hp-outro-width)}
.huuguu-projects-archive-outro__eyebrow{color:var(--hp-outro-eyebrow)}
.huuguu-projects-archive-outro h2{color:var(--hp-outro-heading)}
.huuguu-projects-archive-outro__copy{color:var(--hp-outro-copy)}
.huuguu-projects-archive-outro__copy a{color:var(--hp-outro-link)}
.huuguu-projects-archive-outro__copy a:hover,.huuguu-projects-archive-outro__copy a:focus-visible{color:var(--hp-outro-link-hover)}
.huuguu-projects-archive-outro__button{background:var(--hp-outro-btn-bg);color:var(--hp-outro-btn-text)!important;border:1px solid var(--hp-outro-btn-border)}
.huuguu-projects-archive-outro__button:hover,.huuguu-projects-archive-outro__button:focus-visible{background:var(--hp-outro-btn-hover-bg);color:var(--hp-outro-btn-hover-text)!important;border-color:var(--hp-outro-btn-hover-border)}
@media(max-width:1024px){.huuguu-projects-archive .huuguu-projects-archive-outro{padding:var(--hp-outro-tablet) 24px}}
@media(max-width:767px){.huuguu-projects-archive .huuguu-projects-archive-outro{padding:var(--hp-outro-mobile) 20px}}

/* Optional testimonial preview in Elementor project cards. */
.hwhc-projects__review{display:flex;align-items:flex-start;gap:10px;min-width:0;margin-top:14px;padding-top:12px;border-top:1px solid #e9eef0}
.hwhc-projects__review-photo{width:var(--hp-review-photo,42px);height:var(--hp-review-photo,42px);border-radius:50%;object-fit:cover;flex:none}
.hwhc-projects__review-body{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
.hwhc-projects__review-stars{color:var(--hp-review-star,#f5a000);font-size:14px;letter-spacing:1px;line-height:1.2}
.hwhc-projects__review-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--hp-review-lines,2);line-clamp:var(--hp-review-lines,2);overflow:hidden;font-size:12px;line-height:1.5;color:#35434a}
.hwhc-projects--elevated .hwhc-projects__review{margin-left:16px;margin-right:16px}

/* 0.1.19: Consistent circular testimonial portraits in project singles and cards. */
.huuguu-projects-testimonial .hp-testimony-photo {
  display:block; width:64px; height:64px; aspect-ratio:1 / 1;
  max-width:none; border-radius:50%; object-fit:cover; object-position:center; flex:0 0 64px;
}
.hwhc-projects__review .hwhc-projects__review-photo {
  display:block; aspect-ratio:1 / 1; border-radius:50%; object-fit:cover; object-position:center;
  max-width:none; flex-shrink:0;
}
