/* AMAD · Qué hacemos — solo estilos específicos de esta página */
:root {
  --qh-oliva:#6D832A;
  --qh-mostaza:#DBA817;
  --qh-verde:#1F400A;
  --qh-gris:#454240;
  --qh-claro:#F7F8F3
}

.qh-intro {
  background:linear-gradient(115deg,#6D832A 0%,#55701C 65%,#1F400A 100%);
  padding:90px 0 96px;
  color:#fff
}

.qh-intro-top {
  max-width:970px
}

.qh-intro h1 {
  font-family:var(--fuente-titulos,'DM Sans',sans-serif);
  font-size:clamp(52px,7vw,90px);
  line-height:1.02;
  letter-spacing:-.035em;
  color:#fff;
  margin-bottom:22px
}

.qh-intro h1 span {
  color:var(--qh-mostaza)
}

.qh-intro p {
  font-size:clamp(16px,2vw,20px);
  line-height:1.65;
  max-width:790px;
  margin:0;
  color:#fff
}

.qh-areas,.qh-projects {
  padding:94px 0
}

.qh-areas {
  background:var(--qh-claro)
}

.qh-heading {
  display:flex;
  align-items:start;
  justify-content:space-between;
  gap:52px;
  margin-bottom:48px
}

.qh-heading h2 {
  color:var(--qh-oliva);
  font-size:clamp(30px,3.5vw,46px);
  max-width:520px;
  line-height:1.15;
  margin:0
}

.qh-heading p {
  font-size:15px;
  line-height:1.8;
  color:var(--qh-gris);
  max-width:560px;
  margin:5px 0 0
}

.qh-area-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0 52px
}

.qh-area {
  display:grid;
  grid-template-columns:72px 1fr;
  gap:18px;
  padding:32px 0;
  border-top:1px solid rgba(109,131,42,.22)
}

.qh-area:nth-last-child(-n+2) {
  border-bottom:1px solid rgba(109,131,42,.22)
}

.qh-area-icon {
  width:58px;
  height:58px;
  border-radius:50%;
  background:#DBA817;
  color:#454240;
  display:grid;
  place-items:center;
  font-size:26px
}

.qh-area h3 {
  font-size:21px;
  font-weight:700;
  color:var(--qh-oliva);
  margin:0 0 12px
}

.qh-area p {
  color:var(--qh-gris);
  font-size:14px;
  line-height:1.8;
  margin:0;
  max-width:490px
}

.qh-resultados {
  background:var(--qh-mostaza)
}

.qh-resultados-left {
  display:flex;
  align-items:center
}

.qh-resultados-inner {
  width:100%;
  max-width:700px;
  padding:85px clamp(26px,5vw,80px)
}

.qh-resultados h2 {
  font-size:clamp(34px,4vw,55px);
  line-height:1.13;
  color:var(--qh-oliva);
  margin:0 0 19px
}

.qh-resultados-inner>p:not(.qh-departments) {
  color:var(--qh-gris);
  font-size:15px;
  line-height:1.75;
  max-width:560px
}

.qh-stats {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:30px 20px;
  margin:40px 0 26px
}

.qh-number {
  display:block;
  color:#fff;
  font-family:var(--fuente-titulos,'DM Sans',sans-serif);
  font-weight:800;
  font-size:clamp(43px,5vw,64px);
  line-height:1
}

.qh-stats span {
  display:block;
  color:var(--qh-gris);
  text-transform:uppercase;
  letter-spacing:.07em;
  font-size:11px;
  font-weight:700;
  line-height:1.6;
  margin-top:9px
}

.qh-departments {
  font-size:13px;
  color:var(--qh-gris);
  border-top:1px solid rgba(69,66,64,.25);
  padding-top:20px;
  margin:0
}

.qh-departments strong {
  color:var(--qh-oliva);
  font-weight:800
}

.qh-results-photo {
  position:relative;
  min-height:620px;
  overflow:hidden;
  background:#869867
}

.qh-results-photo img {
  display:block;
  width:100%;
  height:100%;
  position:absolute;
  inset:0;
  object-fit:cover
}

.qh-results-photo:before {
  content:'';
  position:absolute;
  inset:0;
  z-index:1;
  background:linear-gradient(90deg,rgba(219,168,23,.75) 0%,rgba(219,168,23,0) 45%);
  pointer-events:none
}

.qh-projects {
  background:#fff
}

.qh-project-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:40px 26px
}

.qh-project {
  display:flex;
  flex-direction:column;
  min-width:0;
  background:#fff;
  border:0
}

.qh-project>img {
  display:block;
  width:100%;
  aspect-ratio:1.6/1;
  object-fit:cover
}

.qh-project-body {
  display:flex;
  flex:1;
  flex-direction:column;
  padding:22px 0 0
}

.qh-date {
  font-size:11px;
  color:rgba(69,66,64,.65);
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.08em;
  margin-bottom:12px
}

.qh-project h3 {
  font-size:21px;
  line-height:1.3;
  font-weight:800;
  color:var(--qh-oliva);
  margin-bottom:12px
}

.qh-project p {
  color:var(--qh-gris);
  font-size:14px;
  line-height:1.7;
  margin-bottom:22px
}

.qh-project-detail {
  display:inline-flex;
  align-items:center;
  align-self:flex-start;
  gap:8px;
  margin-top:auto;
  padding:4px 0;
  border:0;
  background:transparent;
  color:var(--qh-gris);
  font-size:13px;
  font-weight:700;
  cursor:pointer;
  transition:color .2s
}

.qh-project-detail i {
  transition:transform .2s
}

.qh-project-detail:hover,.qh-project-detail:focus-visible {
  color:var(--qh-oliva)
}

.qh-project-detail:hover i {
  transform:translateX(4px)
}

.qh-project-note {
  font-size:12px;
  line-height:1.6;
  color:rgba(69,66,64,.75);
  margin:35px 0 0
}

.qh-next {
  background:var(--qh-verde);
  color:#fff;
  padding:64px 0
}

.qh-next-inner {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:30px
}

.qh-next h2 {
  color:#fff;
  font-size:clamp(26px,3vw,40px);
  margin-bottom:10px
}

.qh-next p {
  color:#fff;
  font-size:14px;
  margin:0
}

.qh-action {
  flex-shrink:0;
  display:inline-flex;
  align-items:center;
  gap:17px;
  border-radius:50px;
  padding:5px 5px 5px 21px;
  text-decoration:none;
  font-weight:700;
  font-size:14px;
  background:var(--qh-mostaza);
  border:1px solid var(--qh-mostaza);
  color:var(--qh-gris);
  transition:background .2s,color .2s,border-color .2s
}

.qh-action-icon {
  display:grid;
  place-items:center;
  width:36px;
  height:36px;
  border-radius:50%;
  color:#fff;
  background:var(--qh-oliva);
  transition:background .2s,color .2s,transform .2s
}

.qh-action:hover,.qh-action:focus-visible {
  background:var(--qh-oliva);
  border-color:var(--qh-oliva);
  color:#fff
}

.qh-action:hover .qh-action-icon {
  background:var(--qh-mostaza);
  color:var(--qh-gris);
  transform:translate(2px,-2px)
}

.qh-modal {
  border:0;
  border-radius:18px;
  overflow:hidden
}

.qh-modal .modal-header {
  border:0;
  padding:20px 25px
}

.qh-modal-label {
  color:var(--qh-oliva);
  font-weight:700;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.09em
}

.qh-modal .modal-body {
  padding:0
}

.qh-modal-image {
  display:block;
  width:100%;
  max-height:340px;
  object-fit:cover
}

.qh-modal-copy {
  padding:28px
}

.qh-modal-category {
  display:block;
  color:var(--qh-oliva);
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.08em;
  margin-bottom:12px
}

.qh-modal h2 {
  font-size:clamp(24px,3vw,36px);
  color:var(--qh-oliva);
  margin-bottom:15px
}

.qh-modal p {
  font-size:15px;
  line-height:1.75;
  color:var(--qh-gris)
}

.qh-modal-note {
  font-size:12px!important;
  padding-top:15px;
  border-top:1px solid #e8e8e8
}

.qh-project-detail:focus-visible,.qh-action:focus-visible {
  outline:2px solid var(--qh-verde);
  outline-offset:4px
}

@media(max-width:991px) {
  .qh-intro {
    padding:72px 0
  }

  .qh-areas,.qh-projects {
    padding:70px 0
  }

  .qh-heading {
    gap:24px
  }

  .qh-results-photo {
    min-height:400px
  }

  .qh-project-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }

}

@media(max-width:767px) {
  .qh-intro {
    padding:60px 0 65px
  }

  .qh-heading {
    display:block;
    margin-bottom:30px
  }

  .qh-heading p {
    margin-top:15px
  }

  .qh-area-grid {
    grid-template-columns:1fr
  }

  .qh-area {
    padding:24px 0;
    grid-template-columns:58px 1fr;
    gap:15px
  }

  .qh-area:nth-last-child(2) {
    border-bottom:0
  }

  .qh-area h3 {
    font-size:19px
  }

  .qh-resultados-inner {
    padding:66px 24px
  }

  .qh-results-photo {
    min-height:300px
  }

  .qh-project-grid {
    grid-template-columns:1fr;
    gap:40px
  }

  .qh-next-inner {
    align-items:flex-start;
    flex-direction:column
  }

  .qh-action {
    font-size:13px
  }

}

@media(prefers-reduced-motion:reduce) {
  .qh-action,.qh-action-icon,.qh-project-detail,.qh-project-detail i {
    transition:none
  }

}

.qh-intro,.qh-areas,.qh-projects {
  padding:var(--section-padding) 0
}

.qh-intro h1 {
  font-size:var(--heading-hero);
  margin-bottom:12px
}

.qh-intro p {
  font-size:15px
}

.qh-heading {
  margin-bottom:25px;
  gap:25px
}

.qh-heading h2,.qh-resultados h2 {
  font-size:var(--heading-size)
}

.qh-heading p {
  font-size:var(--text-body)
}

.qh-area {
  padding:21px 0;
  grid-template-columns:50px 1fr;
  gap:12px
}

.qh-area-icon {
  width:46px;
  height:46px;
  font-size:22px
}

.qh-area h3 {
  font-size:18px;
  margin-bottom:7px
}

.qh-area p {
  font-size:13px
}

.qh-resultados-inner {
  padding:var(--section-padding) clamp(22px,4vw,55px)
}

.qh-stats {
  margin:24px 0 18px;
  gap:16px
}

.qh-number {
  font-size:clamp(32px,4vw,48px)
}

.qh-results-photo {
  min-height:450px
}

.qh-project-grid {
  gap:27px 23px
}

.qh-project-body {
  padding-top:12px
}

.qh-project h3 {
  font-size:18px;
  margin-bottom:8px
}

.qh-project p {
  font-size:13px;
  margin-bottom:10px
}

.qh-project-note {
  margin-top:22px
}

@media(max-width:767px) {
  .qh-results-photo {
    min-height:250px
  }

  .qh-project-grid {
    gap:26px
  }

  .qh-area-grid {
    gap:0
  }

}

/* AJUSTES DE DISEÑO V3 */
.qh-intro {
  position:relative;
  isolation:isolate;
  background:#6D832A;
  padding:clamp(65px,7vw,104px) 0;
  min-height:390px;
  display:flex;
  align-items:center
}

.qh-intro::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(90deg,rgba(31,64,10,.94) 0%,rgba(109,131,42,.82) 55%,rgba(109,131,42,.40) 100%),url('../img/que-hacemos-1.jpeg') center/cover no-repeat
}

.qh-intro .container {
  position:relative
}

.qh-intro h1 {
  font-size:var(--title-page)!important;
  margin-bottom:16px
}

.qh-intro p {
  font-size:15px!important;
  max-width:610px
}

.qh-areas,.qh-projects {
  padding:var(--section-padding) 0
}

.qh-heading {
  margin-bottom:27px;
  gap:32px
}

.qh-heading h2,.qh-resultados h2 {
  font-size:var(--title-section)!important;
  line-height:1.17
}

.qh-heading p {
  font-size:13px!important;
  line-height:1.7;
  color:rgba(69,66,64,.60)!important;
  max-width:500px
}

.qh-area-grid {
  column-gap:30px
}

.qh-area {
  padding:22px 0;
  grid-template-columns:60px 1fr;
  gap:12px
}

.qh-area h3 {
  font-size:18px;
  margin-bottom:7px
}

.qh-area p {
  font-size:13px
}

.qh-area-icon {
  width:51px;
  height:51px
}

.qh-resultados .container-fluid {
  padding:0
}

.qh-resultados-inner {
  max-width:710px;
  padding:clamp(42px,5vw,70px) clamp(26px,5vw,70px);
  margin-left:auto
}

.qh-resultados h2 {
  margin-bottom:15px
}

.qh-resultados-inner>p:not(.qh-departments) {
  font-size:14px
}

.qh-stats {
  margin:24px 0 18px;
  gap:23px 15px
}

.qh-number {
  font-size:clamp(38px,4vw,53px)
}

.qh-results-photo {
  min-height:480px
}

.qh-project-grid {
  gap:29px 22px
}

.qh-project-body {
  padding-top:14px
}

.qh-project h3 {
  font-size:18px
}

.qh-project p {
  font-size:13px
}

.qh-project-note {
  margin-top:22px
}

@media(max-width:991px) {
  .qh-intro {
    min-height:340px
  }

  .qh-results-photo {
    min-height:290px
  }

  .qh-resultados-inner {
    margin:0;
    max-width:none
  }

  .qh-project-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }

}

@media(max-width:767px) {
  .qh-heading {
    display:block
  }

  .qh-heading p {
    margin-top:12px
  }

  .qh-project-grid {
    grid-template-columns:1fr
  }

  .qh-intro {
    min-height:310px
  }

  .qh-results-photo {
    min-height:245px
  }

}

/* 20. HERO — FOTO COMPLETA, TÍTULO Y RECUADRO CENTRADOS */
.qh-intro-top  {
  margin:0 auto;
  text-align:center;
}

.qh-intro h1  {
  color:var(--mostaza);
}

.qh-intro p  {
  background:var(--mostaza);
  color:var(--verde-profundo);
  padding:22px 28px;
  margin:0 auto;
  max-width:760px;
  border-radius:0;
}

/* 21. TÍTULOS Y ESPACIOS DE SECCIÓN */
.qh-heading  {
  margin-bottom:38px;
}

/* 22. RESPONSIVE — RECUADRO INTRODUCTORIO */
@media(max-width:767px)  {
  .qh-intro p  {
    padding:20px;
  }

}


/* AJUSTES SOLICITADOS — SOLO TÍTULO Y RECUADRO DEL HERO */
.qh-intro h1,.qh-intro h1 span{color:#fff!important;}
.qh-intro p{border-radius:16px;}

/* ==========================================
   AJUSTE SOLICITADO · QUÉ HACEMOS / RESULTADOS
   Alinear borde izquierdo con la retícula general
========================================== */
@media (min-width: 992px) {
  .qh-resultados .qh-resultados-inner {
    margin-left: 0;
    padding-left: max(32px, calc((100vw - 960px) / 2 + 32px));
  }
}

/* MARGEN · NUESTRO TRABAJO CON LAS COMUNIDADES */
@media (min-width:1200px) {
  .qh-resultados .qh-resultados-inner {padding-left:calc((100vw - 1140px)/2 + 32px);}
}
@media (min-width:1400px) {
  .qh-resultados .qh-resultados-inner {padding-left:calc((100vw - 1320px)/2 + 32px);}
}

/* ============================================================
   07. PROYECTOS E INICIATIVAS · FICHAS AMPLIADAS Y GALERÍA
   Editar únicamente estos estilos para modificar las fichas.
   ============================================================ */
.qh-detail-body p{font-size:14px;line-height:1.8;margin:0 0 14px;color:var(--gris-oscuro,#454240)}
.qh-detail-subheading{font-size:20px;color:var(--oliva,#6D832A);margin:24px 0 12px}
.qh-detail-modules{padding-left:24px;font-size:14px;line-height:1.7}
.qh-detail-modules li{padding:0 0 8px}.qh-detail-modules li p{font-size:13px;margin:5px 0 10px}
.qh-detail-body ul{font-size:14px;line-height:1.8}
.qh-detail-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:20px 0 0}
.qh-detail-gallery img{display:block;width:100%;height:130px;object-fit:cover;border-radius:9px}
@media(max-width:575px){.qh-detail-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.qh-detail-gallery img{height:105px}}

/* 26. ICONOS PERSONALES — QUÉ HACEMOS: ARCHIVOS 02 */
.qh-area {grid-template-columns:76px minmax(0,1fr);}
.qh-area-icon {width:72px;height:72px;background:transparent;border-radius:0;}
.qh-area-icon img {display:block;width:72px;height:72px;object-fit:contain;}
/* 27. RESPONSIVE — ICONOS EN CELULAR */
@media(max-width:767px){.qh-area{grid-template-columns:60px minmax(0,1fr);}.qh-area-icon,.qh-area-icon img{width:56px;height:56px;}}
