/* Estilos base para Historias de Resiliencia */

.hr-form-container:before,
.hr-form-container:after,
.hr-form-container *,
.hr-list-section:before,
.hr-list-section:after,
.hr-list-section *{
  box-sizing: border-box;
} 

.hr-form-container {
  max-width: 900px;
  margin: 40px auto;
  border-radius: 16px;
  background: #F3F5F7;
  padding: 32px;
  font-family: "Helvetica Rounded LT Std", Sans-serif;
}


.hr-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hr-form-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hr-form-group, .hr-form-group-full {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.hr-form-group-full {
  min-width: 100%;
}
.hr-form label {
  color: #4A586E;
  font-family: "Helvetica Rounded LT Std", Sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
}
.hr-form input[type="text"],
.hr-form input[type="email"],
.hr-form textarea {
  padding:0px 16px;
  font-size: 1em;
  background: #FFF;
  transition: border 0.2s;
  border-radius: 4px;
  border: 1px solid #9DAABD;
  display: block;
  height: 48px;
  color: #6D809D;
  font-family: "Helvetica Rounded LT Std", Sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
}

.hr-form input:focus,
.hr-form textarea:focus {
  border-color: #01C5C6;
  outline: none;
}

.hr-form textarea {
  resize: vertical;
  height: 120px;
  padding: 16px;
}

.hr-form input::placeholder,
.hr-form textarea::placeholder {
  color: #6D809D;
}

.hr-char-count {
  position: absolute;
  bottom: 6px;
  right: 6px;
  text-align: right;
  color: #9DAABD;
  font-family: "Helvetica Rounded LT Std", Sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  z-index: 10;
}

.hr-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4A586E;
  font-family: "Helvetica Rounded LT Std", Sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
  margin-bottom: 6px;
}
.hr-checkbox:hover {
  cursor: pointer;
}
.hr-checkbox a {
  color: #01C5C6;
  text-decoration: none;
}
.hr-btn, .hr-form button[type="submit"] {
  color: #fff;
  border: none;
  border-radius: 24px;
  background: #01C5C6;
  padding: 12px 16px;
  color: #FFF;
  text-align: center;
  font-family: "Helvetica Rounded LT Std", Sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 24px;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 10px;
  border: 1px solid #01C5C6;
}

.hr-btn:hover, .hr-form button[type="submit"]:hover {
  background: #fff;
  color: #01C5C6;
}
.hr-form .g-recaptcha {
  margin: 16px 0 0 0;
}
.hr-form-msg {
  margin-top: 10px;
  font-size: 1.05em;
}



/* Grilla de historias */
.hr-list-title {
  text-align: center;
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 32px;
  color: #002b5c;
}

.hr-list-section {
  display: block;
  max-width: 100%;
  background: #FFF;
  padding: 32px 0 48px 0;
  font-family: "Helvetica Rounded LT Std", Sans-serif; 
}
         
.hr-list-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(234px, 250fr));
  gap: 40px 16px;
  margin-bottom: 32px;
  justify-content: center;
  width: 90vw;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.hr-card {
  border-radius: 0px 8px 8px 8px;
  background: #F3F5F7;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  min-height: 184px;
  position: relative;
  border: 1.5px solid #eaf6fa;
  transition: box-shadow 0.2s, border 0.2s;
  position: relative;
  overflow: hidden;
}
.hr-card:hover {
  box-shadow: 0 4px 24px #00bcd422;
  border-color: #01C5C6;
}
.hr-card .hr-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
  gap: 8px;
}
.hr-card .hr-card-badge {
  border-radius: 50%;
  background: #01C5C6;
  color: #E6F0FF;
  font-family: "Helvetica Rounded LT Std", Sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 20px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;

}
.hr-card:after {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  width: 15px;
  height: 15px;
  background: #01C5C6;
  z-index: 5;
}

.hr-card .hr-card-votos {
  display: flex;
  align-items: center;
  gap: 4px;
}
.hr-card .hr-votar-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #bbb;
  padding: 0;
  outline: none;
  transition: color 0.2s;
}
.hr-card .hr-votar-btn svg {
  fill: #F3F5F7;
  stroke: #EDADA7;
}
.hr-card .hr-votar-btn.votado svg {
  fill: #CF3A2A;
  stroke: #CF3A2A;
}

.hr-card-title {
  color: #002559;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 24px;
  margin: 0;
}
.hr-card .hr-votar-btn[data-votado="1"],
.hr-card .hr-votar-btn.votado {
  color: #e74c3c;
}
.hr-card .hr-votos-num {
  color: #6D809D;
  font-family: "Helvetica Rounded LT Std", Sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
}
.hr-card .hr-card-business {
  color: #6D809D;
  font-family: "Helvetica Rounded LT Std", Sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  margin-bottom: 16px;
}


.hr-card .hr-card-message {
  color: #4A586E;
  font-family: "Helvetica Rounded LT Std", Sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  margin-bottom: 24px;
}
.hr-card .hr-card-footer {
  margin-top: auto;
  color: #6D809D;
  font-family: "Helvetica Rounded LT Std", Sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  display: flex;
  align-items: center;
  justify-content:flex-start;
  gap: 8px;
}
.hr-card-footer svg {
  fill: none;
}

.hr-pagination {
  margin: 32px 0 0 0;
  text-align: center;
}
.hr-pagination-container {
  margin-bottom: 16px;
}

.hr-pagination a, .hr-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 4px;
  border-radius: 4px;
  width: 32px;
  height: 32px;
  color: var(--Texto-1, #4A586E);
  text-align: center;
  font-family: "Helvetica Rounded LT Std", Sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 24px;
  text-decoration: none;
  background: transparent;
  transition: background 0.2s;
}
.hr-pagination span {
  border-radius: 4px;
  background: var(--Turquesa, #01C5C6);
  color: #fff;
}
.hr-pagination a:hover {
  background: #01C5C6;
  color: #fff;
}
.hr-pagination-info {
  color: #6D809D;
  font-family: "Helvetica Rounded LT Std", Sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
}
/* Responsive */
@media (max-width: 900px) {
  .hr-list-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    width: 98vw;
    max-width: 100vw;
  }
  .hr-card {
    padding: 18px 10px 16px 10px;
  }
}
@media (max-width: 600px) {
  .hr-form-container {
    padding: 18px 4vw;
  }
  .hr-list-section {
    padding: 12px 0 24px 0;
  }
  .hr-list-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100vw;
    max-width: 100vw;
    padding: 0;
  }
  .hr-form-row {
    flex-direction: column;
    gap: 8px;
  }
  .hr-card {
    min-width: 0;
    padding: 14px 4vw 12px 4vw;
  }
} 

.hr-select-filtro {
  padding: 14px 18px;
  font-size: 1.1em;
  border-radius: 14px;
  border: 1.5px solid #b5c2d6;
  background: #fff;
  color: #223;
  box-shadow: 0 2px 8px #0001;
  margin-top: 2px;
  margin-bottom: 2px;
  transition: border 0.2s, box-shadow 0.2s;
}
.hr-select-filtro:focus {
  border-color: #00bcd4;
  outline: none;
  box-shadow: 0 2px 12px #00bcd422;
}
.hr-list-filtro-form {
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.hr-list-filtro-form label {
  color: #4A586E;
  font-family: "Helvetica Rounded LT Std", Sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  margin-bottom: 0;
} 
.hr-select-filtro {
  border-radius: 4px;
  border: 1px solid #9DAABD;
  background: #FFF;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #4A586E;
  margin-top: 0;
  margin-bottom: 0;
  background-image: url(../images/arrow_drop_down.svg);
  background-repeat: no-repeat;
  background-position: right 6px center;
  background-size: auto;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  -ms-appearance: none;
  appearance: none;
  width: 100%;
  max-width: 296px;
}

.hr-select-filtro:hover {
  cursor: pointer;
}
.hr-select-filtro option {
  color: #4A586E;
  font-family: "Helvetica Rounded LT Std", Sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
}
