/* ----------- PORTADA (estilo ALA Labs) ----------- */

@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;700&display=swap');

/* HERO con imagen a todo el ancho */

.hero-container {
  overflow: hidden;
  position: relative;
  min-height: 41.6vh;
  margin-top: -1rem;
  background-image: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.35)), url(images/hero.jpg);
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  background-color: #141c25;
}

.hero-image {
  position: relative;
  min-height: 41.6vh;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10.6vh 8vw;
}

.title-top {
  position: relative;
  text-align: left;
  font-family: 'Ubuntu', sans-serif;
  font-size: 2.7rem;
  line-height: 1.25;
  color: #ffffff;
  margin: 0;
  padding: 0;
  font-weight: 400;
  text-shadow: 0 2px 8px rgba(0,0,0,.55);
}

.title-byline {
  font-size: 1.35rem;
  font-weight: 700;
  text-align: left;
  color: #ffffff;
  padding-top: 12px;
  text-shadow: 0 2px 8px rgba(0,0,0,.55);
}

.title-subbyline {
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 600;
  text-align: left;
  color: #ffffff;
  padding-top: 4px;
  text-shadow: 0 2px 8px rgba(0,0,0,.55);
}

.hero-cta {
  display: block;
  width: fit-content;
  margin: 1.8rem 0 0 0;
  padding: .7rem 1.8rem;
  background-color: #6f5499;
  color: #fff !important;
  font-family: 'Ubuntu', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none !important;
  border-radius: 6px;
  transition: background-color .15s;
}

.hero-cta:hover {
  background-color: #5a4380;
}

.hero-logo {
  display: block;
  flex-shrink: 0;
  margin: 0 0 0 2rem;
  height: 160px;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.6));
}

.credit-text {
  position: absolute;
  text-align: left;
  left: 2%;
  bottom: 5%;
  font-size: 12px;
  color: #fff;
  opacity: .85;
}

@media screen and (max-width: 952px) {
  .hero-container { margin-top: -1.5rem; }
  .hero-image {
    display: block;
    min-height: 0;
    padding: 8vh 0;
  }
  .title-top { font-size: 2.2rem; text-align: center; padding: 0; margin: 0; }
  .title-byline { font-size: 1.1rem; text-align: center; padding: 8px 14px 0 14px; }
  .title-subbyline { font-size: .95rem; text-align: center; padding: 4px 14px 0 14px; }
  .hero-cta { margin: 1.2rem auto 0 auto; }
  .hero-logo { margin: 1rem auto 0 auto; height: 60px; }
  .category-image { height: 3.4rem; }
  .category-row { margin-top: 0; }
}

/* Bandas alternas con imagen + texto */

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

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

.col-left  { float: left;  margin-left: 14%; }
.col-right { float: right; margin-right: 14%; }

img.home-img {
  width: 100%;
  height: auto;
  border-radius: 30px;
  background-color: #fff;
  box-shadow: rgba(17,17,26,.05) 0 1px 0, rgba(184,87,62,.15) 0 0 8px;
}

.heading-home {
  font-size: 3rem;
  font-family: 'Lato', sans-serif;
  border: none;
  margin-top: 0;
}

.band { padding: 3.5rem 0; overflow: auto; }
.band.rust     { background-color: #B8573E; }
.band.charcoal { background-color: #222322; }
.band.purple   { background-color: #6f5499; }
.band .white, .band .white a { color: #fff; }

/* El listado de posts de la banda de Blog trae de Quarto un
   margin-right: 2em pero no su equivalente a la izquierda */
#listing-home-blog { margin-left: 2em; }

/* Mismo margen izq/dcha que la banda de Blog para las tarjetas de Proyectos */
#listing-home-projects { margin-left: 2em; margin-right: 2em; }

/* Círculos de categorías con iconos SVG */

.category-row { margin-top: 3%; overflow: auto; }

.category-column {
  float: left;
  width: 33%;
  text-align: center;
}

/* Variante para caber 6 iconos en una sola fila (banda de Docencia) */
.category-row-6 .category-column {
  width: 16.666%;
}

@media screen and (max-width: 952px) {
  .category-row-6 .category-column { width: 33%; }
}

.category-image {
  display: block;
  margin: auto;
  height: 4.4rem;
  transition: filter .1s;
}

.category-column h4 { text-align: center; margin-top: .6rem; font-size: 1.05rem; }
.category-column a { text-decoration: none; }

/* filtro "honey": teja en reposo, miel al pasar el ratón (como ALA) */
.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%); }

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

.category-column a.white,
.category-column a.dark { color: #F5A05A; }
.category-column a.white:hover,
.category-column a.dark:hover { color: #FFC557; }

@media (max-width: 1200px) {
  .col-left, .col-right { margin: 0 auto; float: none; }
  .home-column-image, .home-column-text {
    width: 82%;
    margin: 0 auto;
    display: block;
    float: none;
  }
  .heading-home { text-align: center; }
}

/* Sección "Nuestros valores" (estilo ALA Labs) */

.values-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.6rem;
  margin: 2rem 0 1rem 0;
}

.value-card {
  background: #EEECEA;
  border-radius: 26px;
  padding: 2.2rem 2rem;
  flex: 1 1 280px;
  max-width: 340px;
}

.value-title {
  font-family: 'Lato', sans-serif;
  font-size: 1.2rem;
  color: #6f5499;
  margin-top: 0;
  margin-bottom: .6rem;
}

.value-title i { margin-right: .5rem; }

.value-card p { color: #222322; margin: 0; font-size: .95rem; }

@media (max-width: 952px) {
  .values-row { flex-direction: column; align-items: center; }
  .value-card { max-width: 90%; }
}
