/* =========================
   category.css
   ========================= */

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root{
  --blue: #2B5E8F;
  --text: #4D4C4C;
  --card-bg: #F8FBFF;
  --card-border: #D9D9D9;
}

/* =========================
   HERO
   ========================= */
.cat-hero{
  width: 100%;
  height: 491px;
  top: 47px;
  position: relative;
  overflow: hidden;
}

.cat-hero__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95);
}

.cat-hero__title{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cardo", serif;
  font-weight: 700;
  font-size: 64px;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}

/* =========================
   CONTENEDOR
   ========================= */
.cat-main{
  width: 1220px;
  margin: 0 auto;
  padding-top: 48px;
  padding-bottom: 70px;
}

.cat-container{
  width: 100%;
}

.cat-h2{
  text-align: center;
  font-family: "Cardo", serif;
  font-weight: 400;
  font-size: 48px;
  color: var(--blue);
  margin-bottom: 30px;
  margin-top: 46px;
}

/* =========================
   SUBNAV
   ========================= */
.cat-subnav{
  text-align: center;
  margin-bottom: 42px;
  font-family: "Montserrat", sans-serif;
  font-size: 26px;
  color: var(--blue);
}

.cat-subnav a{
  color: var(--blue);
  text-decoration: none;
  margin: 0 12px;
}

.cat-subnav a.is-active{
  font-weight: 600;
  text-decoration: underline;
}

.cat-subnav span{
  color: var(--blue);
}

/* =========================
   LISTADO
   ========================= */
.cat-list{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 35px;
}

.cat-card{
  width: 1175px;
  min-height: 360px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  box-shadow: 0 1px 6px rgba(0,0,0,.10);
  display: flex;
  align-items: center;
  padding: 24px 36px;
  gap: 28px;
}

.cat-card__img{
  width: 320px;
  height: 260px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  flex-shrink: 0;
}

.cat-card__content{
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 260px;
}

.cat-card__title{
  font-family: "Cardo", serif;
  font-weight: 700;
  font-size: 38px;
  color: var(--blue);
  line-height: 1.1;
}

.cat-card__subtitle{
  margin-top: 26px;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 24px;
  color: var(--text);
  line-height: 1.35;
}

.cat-card__btn{
  margin-top: auto;
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 18px;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: var(--blue);
  background: transparent;
  border: 1px solid var(--blue);
  border-radius: 999px;
  text-decoration: none;
}

.cat-card__btn:hover{
  background: rgba(43, 94, 143, 0.08);
}

.cat-list p{
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  color: var(--text);
  text-align: center;
}

/* =========================
   PAGINACIÓN
   ========================= */
.cat-pagination{
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.cat-pagination nav{
  display: flex;
  justify-content: center;
}

.cat-pagination svg{
  width: 16px;
  height: 16px;
}

/* =========================
   MOBILE
   ========================= */
@media (max-width: 700px){

  .cat-hero{
    top: 0;
    height: 268px;
  }

  .cat-hero__title{
    font-size: 36px;
    padding: 0 16px;
    text-align: center;
  }

  .cat-main{
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding: 24px 16px 40px;
  }

  .cat-h2{
    font-size: 32px;
    margin: 18px 0 18px;
  }

  .cat-subnav{
    font-size: 20px;
    margin-bottom: 22px;
  }

  .cat-list{
    align-items: stretch;
    gap: 18px;
  }

  .cat-card{
    width: 100%;
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    gap: 12px;
  }

  .cat-card__img{
    width: 100%;
    height: auto;
    max-height: 240px;
    object-fit: cover;
    border-radius: 10px;
  }

  .cat-card__content{
    min-height: auto;
  }

  .cat-card__title{
    font-size: 26px;
    line-height: 1.15;
  }

  .cat-card__subtitle{
    margin-top: 10px;
    font-size: 16px;
    line-height: 1.55;
  }

  .cat-card__btn{
    margin-top: 14px;
    width: 100%;
    height: 40px;
    font-size: 14px;
    align-self: stretch;
    justify-content: center;
  }

  .cat-pagination{
    margin-top: 24px;
  }
}