/* ================= Huella Hídrica – Sí/No compact ================= */
:root {
    --hh-si: #6abf5a;
    --hh-no: #e36461;
    --hh-azul: #02558b;
    --hh-gray: #9a9a9a;
    --hh-bg: #f7f8fa;
    --hh-ring: rgba(2, 85, 139, .12);
}


/* ---------- Contador (personas) ---------- */
.hhcount {
    border-radius: 14px;
    padding: 14px 16px;
    max-width: 820px;
    margin-inline: auto;
}

.hhcount-border {
    border: 2px solid var(--hh-azul);
}

.hhcount-bg-blue {
    background: var(--hh-azul);
}

.hhcount-bg-white {
    background: #FFF;
}

.hhcount__row {
    display: grid;
    gap: 12px;
    align-items: center;
}

@media (min-width:768px) {
    .hhcount__row {
        grid-template-columns: 1fr auto;
    }
}

.hhcount__title {
    margin: 0;
    font-weight: 700;
    color: var(--hh-azul);
    font-size: 1.05rem;
}

.hhcount__title__white {
    margin: 0;
    font-weight: 700;
    color: #FFF;
    font-size: 1.05rem;
    text-align: left;
}

.hhcount__ctrl {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hhcount__btn {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 2px solid var(--hh-azul);
    font-weight: 600;
    color: var(--hh-azul);
    background: #fff;
    font-size: 1.1rem;
    line-height: 1;
    display: grid;
    place-items: center;
    transition: box-shadow .2s, transform .04s;
}

.hhcount__btn:focus {
    outline: none;
    box-shadow: 0 0 0 5px var(--hh-ring);
}

.hhcount__btn:active {
    transform: scale(.98);
}

.hhcount__value {
    min-width: 40px;
    text-align: center;
    font-weight: 800;
    font-size: 1.2rem;
    color:var(--hh-azul);
    padding: 6px 10px;
    border-radius: 8px;
    background: var(--hh-bg);
}

.hhcount__value-border
{
    border: 2px solid var(--hh-azul);
}

.hhcount__btn:disabled{ opacity:.5; cursor:not-allowed; }

.hhq__title
{
  /*max-width: 450px;*/
  white-space: normal;      
  overflow-wrap: break-word; 
  word-break: break-word;
  text-align: left;    
}

/* ===== Centrado en mobile ===== */
@media (max-width: 767.98px) {

    /* filas de pregunta */
    .hhq__row,
    .hhcount__row {
        justify-items: center;
        /* centra los bloques dentro del grid */
        text-align: center;
        /* centra el texto */
    }

    /* títulos/preguntas */
    .hhq__title,
    .hhcount__title {
        text-align: center;
    }

    /* grupos de controles (pills, segment y contador) */
    .hhq__group,
    .hhq__segment,
    .hhcount__ctrl {
        justify-content: center;
        /* centra los botones horizontalmente */
        margin-inline: auto;
        /* y al contenedor */
    }

    /* opcional: un pelín más de aire en mobile */
    .hhq,
    .hhcount {
        padding: 16px 18px;
    }

    .hhcount__title__white {
    text-align: center;
}

}


/* ===== Contador con imagen pegada al borde ===== */
.hhcount--inline{
  display: grid;
  grid-template-columns: 100px 1fr auto; /* imagen | texto | contador */
  align-items: center;
  padding: 0;
  overflow: hidden; /* respeta el borde redondeado del .hhcount */
}

/* Lateral de la imagen */
.hhcount__img-wrap{
  width: 100px;
  height: 100%;
  display: flex; align-items: center; justify-content: center;
  /* estilos por defecto (para fondos claros) */
  background: #f5f7fa;
  border-right: 2px solid #02558b;
}

.hhcount__img{
  width: 70%;
  height: auto;
  max-width: 120px;
  margin: 5px;
  object-fit: contain;
  display: block;
}

/* Cuerpo principal */
.hhcount__body{
  display: flex;
  justify-content: space-between; /* título a la izq, controles a la der */
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 0 16px;
}

/* Variante sobre fondo azul: ajusto separador y fondo del lateral */
.hhcount-bg-blue .hhcount__img-wrap{
  background: rgba(255,255,255,.08);
 /*border-right-color: rgba(255,255,255,.35);*/
}

/* Variante fondo blanco (por si la usás) */
.hhcount-bg-white .hhcount__img-wrap{
  background: #f5f7fa;
  border-right-color: #02558b;
}

/* Responsive */
@media (max-width: 768px){
  .hhcount--inline{ grid-template-columns: 1fr; padding: 12px 16px; text-align: center; }
  .hhcount__img-wrap{
    width: 100%;
    border-right: none;
    border-bottom: 2px solid currentColor; /* mantiene división */
    padding: 12px 0;
  }
  .hhcount__body{ flex-direction: column; gap: 10px; padding: 12px; }
}


/* ===== Versiones invertidas ("negativas") para hhcount ===== */
.hhcount--inline.hhcount--invert {
  background: #fff;
  border: 2px solid #02558b;
}

.hhcount--inline.hhcount--invert .hhcount__img-wrap {
  background: #f5f7fa;
  /*border-right: 2px solid #02558b;*/
}

.hhcount--inline.hhcount--invert .hhcount__title__white {
  color: #02558b;
}

.hhcount--inline.hhcount--invert .hhcount__btn {
  border-color: #02558b;
  color: #02558b;
  background: #fff;
  transition: all .2s ease;
}

.hhcount--inline.hhcount--invert .hhcount__value-border {
  border-color: #02558b;
  color: #02558b;
}

.hhcount--inline.hhcount--invert .hhcount__btn:hover {
  background: #02558b;
  color: #fff;
}


.hhcount-subtittle
{
  color: #fff;
  font-size: 1rem;
  font-weight: 300;
}

.hhcount-subtittle-invert
{
  font-size: 1rem;
  font-weight: 300;
}
