/* ----------- INDEX PAGE -----------*/

/* HERO IMAGE AT TOP OF PAGE*/

.hero-container {
  overflow: hidden;
  position: relative;
  max-height: 52vh;
  height: 52vh;
}

.hero-image {
  position: relative; /* ← cambia de absolute a relative */
  background-image: linear-gradient(rgba(0,0,0,.3), rgba(0,0,0,.3)), url(images/multitud.png);
  background-size: cover;
  background-position: center; /* ← opcional pero recomendado */
  height: 52vh;               /* ← altura explícita en vez de auto */
  width: 100vw;
  background-color: #141c25;
  display: flex;
  justify-content: center;
  align-items: center;        /* ← esto ya centra el contenido verticalmente */
  background-repeat: no-repeat;
  /* padding: 21vh 0  ← eliminar, ya no es necesario con height + align-items */
}

.ALA-top {
  position: relative;
  text-align: center;
  font-size: 100px;
  color: #ffffff;
  padding-right: 133px;
  margin-bottom: -4.7rem;
  font-weight: bold;
}

.ALA-bottom {
  position: relative;
  text-align: center;
  font-size: 100px;
  color: #EEECEA;
  padding-left: 105px;
  font-weight: bold;
}

.ALA-byline {
  font-size: 20px;
  text-align: center;
  color: #ffffff;
  padding-top: 0px;
  font-weight: bold;
}

.credit-text {
  position: absolute;
  text-align: left;
  left: 2%;
  bottom: 5%;
}

.ALA-species-credit {
  font-size: 11px;
  color: white;
}

.ALA-image-credit {
  text-align: left;
  font-size: 14px;
  color: white;
}

@media (min-width: 992px){
  .credit-text {
    position: absolute;
    bottom: 3%;
  }
}

@media (max-height: 876px) {
  .hero-container {
    max-height: 75vh;
    height: 66vh;
    display: flex;
  }
}

@media screen and (max-width: 952px){
  /*--    --*/
  .hero-container {
    max-height: 40vh;
    height: 40vh;
    display: flex;
  }
  .hero-image {
    position: relative;
    background-attachment: scroll;
    background-position: 84% center;
    display: block;
    padding: none;
    align-content: center;
    object-fit: cover;
    padding: 3vh 0;
  }
  .hero-logo {
    width: 160px;
  }

}

/*----------------------------------------------*/

/*-- Our values --*/

.px-0 {
    padding-left: 0!important;
    padding-right: 0!important;
}

.values-row {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

@media (min-width: 992px){
  .col-lg-4 {
    float:left;
    width: 33%;
    flex: 1;
    max-width: 33.3333333%;
    position: relative;
    width: 100%;
    min-height: 1px;
    display:flex;
  }
}

.value-feature {
  background: #DBD7D2;
  margin-left: 40px;
  margin-right: 40px;
  margin-bottom:40px;
  border-radius: 26px;
}

.value-text {
  color: #222322;
}

.value-block {
    color: #222322;
    padding: 50px 40px;
    float: left;
    display: block;
}

@media screen and (max-width: 952) {
  .value-block {
    padding: 20px 40px;
  }
}

/*----------------------------------------------*/

/*-- Categories of posts buttons --*/

.category-row {
  margin-top:10%;
}

.category-column {
  float: left;
  width: 33%;
  padding: 0 0px;
  flex-direction: column
}

.category-image {
  display: block;
  margin: auto;
  width: auto;
  height: 4.4rem;
  width: 100%;
  text-align: center;
  backface-visibility: hidden;
  transform: perspective(1px) translate3d(0, 15px, 0);
  transition: all .1ms;
}

@media screen and (max-width: 952px) {
  .category-image {
    height: 75px;
  }
  .category-row {
    margin-top: 0%;
  }
}

.honey {
  filter: invert(40%) sepia(35%) saturate(984%) hue-rotate(325deg) brightness(93%) contrast(87%);
}

.honey:hover {
  filter: invert(95%) sepia(43%) saturate(3246%) hue-rotate(313deg) brightness(100%) contrast(102%);
  color: #FFC557;
}

.honey-white {
  filter: invert(100%) brightness(100%);
}

.honey-white:hover {
  filter: invert(95%) sepia(43%) saturate(3246%) hue-rotate(313deg) brightness(100%) contrast(102%);
  color: #FFC557;
}


.home-column-image {
  width: 30%;
  padding: 20px 20px;
  flex-direction: column;
}

.home-column-text {
  width: 30%;
  padding: 20px 20px;
  flex-direction: column;
}

/* Desktop: columnas en su posición original */
.col-left {
  float: left;
  margin-left: 20%;
  width: 30%;
}

.col-right {
  float: right;
  margin-right: 20%;
  width: 30%;
}

img.home-img {
  width: 100%;
  border-style: none;
  height: auto;
  border-radius: 30px;
  color: black;
  background-color: white;
  box-shadow: rgba(17, 17, 26, 0.05) 0px 1px 0px, rgba(184, 87, 62, 0.1) 0px 0px 8px;
}

img.home-img-transparent {
  width: 95%;
  margin-left: 10%;
  border-style: none;
  height: auto;
}

img.home-img-lens {
  width: 100%;
  border-style: none;
  height: auto;
}

img.lens-logo {
  max-width:2.8rem!important;
}

.vertical-center {
  position: relative;
  top: 50%;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
}

.heading-home {
  font-size: 3rem;
}

/* Display the columns below each other instead of side by side on small screens */

@media (max-width: 952px) {
  .col-left {
    margin-left: auto;
    margin-right: auto;
    width: 50%;
  }

  .col-right {
    margin-left: auto;
    margin-right: auto;
    width: 50%;
  }

  img.home-img {
    margin-left: auto
    margin-right: auto;
  }
}

/* Móvil: apiladas y centradas */
@media screen and (max-width: 952px) {
  .col-left {
    float: none;
    margin-left: auto;
    margin-right: auto;
    width: 80%;
  }

  .col-right {
    float: none;
    margin-left: auto;
    margin-right: auto;
    width: 80%;
  }

  .home-column-image,
  .home-column-text {
    width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
}

  img.home-img {
  width: 100%;
  margin-left: auto;
  }

  img.home-img-lens {
  width: 100%;
  margin-left: auto;
  }

  img.home-img-transparent {
  width: 100%;
  margin-left: auto;
  }
}

/* possible hex badge code */
.hexBadges img.r1.c0, .hexBadges img.r3.c0, .hexBadges img.r5.c0 {
    left: 323px;
}

.hexBadges img.r0.c1, .hexBadges img.r2.c1, .hexBadges img.r4.c1 {
    left: 438px;
}

/*.hexBadges img.r0.c2, .hexBadges img.r2.c2, .hexBadges img.r4.c2 {
    left: 250px;
}*/

.hexBadges img.r1 {
    top: 50px;
}
.hexBadges img.r2 {
    top: 258px;
}

.hexBadges {
    position: relative;
    width: 500px;
    margin-top: -130px;
    height: 600px;
}

.hexBadges img {
    width: 236px;
    height: auto;
    position: absolute;
    -webkit-transition-property: opacity;
    -moz-transition-property: opacity;
    -o-transition-property: opacity;
    transition-property: opacity;
    -webkit-transition-duration: .25s;
    -moz-transition-duration: .25s;
    -o-transition-duration: .25s;
    transition-duration: .25s;
}
img {
    max-width: 100%;
}


/* === Márgenes consistentes para todas las secciones del home === */

/* Fuerza que .column-screen-inset y .column-body tengan el mismo ancho máximo */
.column-screen-inset {
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.column-body {
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.column-page {
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

@media screen and (max-width: 952px) {
  .column-screen-inset,
  .column-body,
  .column-page {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Homepage only: remove Quarto's injected title block and top spacer under navbar */
#title-block-header {
  display: none !important;
}

#quarto-content > * {
  padding-top: 0 !important;
}

main#quarto-document-content {
  margin-top: 0 !important;
}

/* Defensive rule: hide stale injected hero block if Quarto cache adds it */
body > .hero-container {
  display: none !important;
}

/* Publications listing: first row Author | Title, second row Description */
#listing-publications .quarto-listing-table thead th:nth-child(3) {
  display: none;
}

#listing-publications .quarto-listing-table thead th:nth-child(4),
#listing-publications .quarto-listing-table tbody td:nth-child(4) {
  display: none;
}

#listing-publications .quarto-listing-table thead tr {
  display: flex;
  flex-wrap: wrap;
}

#listing-publications .quarto-listing-table thead th:nth-child(1) {
  order: 2;
  flex: 0 0 66.6667%;
  max-width: 66.6667%;
  padding-left: 1.1rem;
}

#listing-publications .quarto-listing-table thead th:nth-child(2) {
  order: 1;
  flex: 0 0 33.3333%;
  max-width: 33.3333%;
  padding-right: 1.1rem;
}

#listing-publications .quarto-listing-table tbody tr {
  display: flex;
  flex-wrap: wrap;
  padding: 1.1rem 0;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

#listing-publications .quarto-listing-table tbody td {
  display: block;
  vertical-align: top;
  border: 0;
  padding: 0 0.5rem 0 0;
}

#listing-publications .quarto-listing-table tbody td:nth-child(1) {
  order: 2;
  flex: 0 0 66.6667%;
  max-width: 66.6667%;
  padding-left: 1.1rem;
}

#listing-publications .quarto-listing-table tbody td:nth-child(2) {
  order: 1;
  flex: 0 0 33.3333%;
  max-width: 33.3333%;
  padding-right: 1.1rem;
}

#listing-publications .quarto-listing-table tbody td:nth-child(3) {
  order: 3;
  flex: 0 0 100%;
  max-width: 100%;
  margin-top: 0.35rem;
  opacity: 0.95;
}

#listing-publications .quarto-listing-table tbody td:nth-child(3)::before {
  content: "Abstract: ";
  font-weight: 700;
}

#listing-publications .pub-read-more {
  font-weight: 700;
  text-decoration: underline;
}

#listing-publications .listing-title {
  font-weight: 600;
}

#listing-publications .listing-author {
  font-weight: 700;
}

@media (max-width: 767.98px) {
  #listing-publications .quarto-listing-table tbody td:nth-child(1),
  #listing-publications .quarto-listing-table tbody td:nth-child(2),
  #listing-publications .quarto-listing-table tbody td:nth-child(3),
  #listing-publications .quarto-listing-table tbody td:nth-child(4) {
    display: block;
    width: 100%;
  }
}

/* Grey separator between presentation items */
#listing-presentations .quarto-post + .quarto-post {
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  margin-top: 0.9rem;
  padding-top: 0.9rem;
}

/* Equipo: 2x2 grid, equal-size cards */
.team-grid-4 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 0;
}
.team-grid-4 .card-column {
  float: none;
  width: calc(50% - 1rem);
  flex: 0 0 calc(50% - 1rem);
  max-width: calc(50% - 1rem);
  padding: 0;
  margin-bottom: 0;
}
.team-grid-4 .team-card {
  max-width: 100%;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.team-grid-4 .team-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: top;
}
@media screen and (max-width: 767.98px) {
  .team-grid-4 .card-column {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
  }
}

/* Presentations block: white text on navbar-red background */
#listing-presentations .quarto-listing-table {
  background: transparent;
}
#listing-presentations .quarto-listing-table thead th,
#listing-presentations .quarto-listing-table thead th a {
  color: rgba(255, 255, 255, 0.75);
  border-bottom-color: rgba(255, 255, 255, 0.35);
}
#listing-presentations .quarto-listing-table tbody tr {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}
#listing-presentations .quarto-listing-table tbody td {
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}
#listing-presentations .listing-title a,
#listing-presentations .listing-title {
  color: #fff !important;
}
#listing-presentations .listing-author {
  color: rgba(255, 255, 255, 0.85);
}