/************************************************/
/* SUBCATÁLOGO                                  */
/************************************************/

/*==============================================
HERO INTERNO
==============================================*/

.hero-interno {
  position: relative;
  display: flex;
  height: var(--hero-height);
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-interno > img,
.hero-interno .hero-banner-img {
  position: absolute;
  inset: 0;

  display: block;
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.hero-interno .overlay {
  position: absolute;
  z-index: 1;
  inset: 0;

  background: var(--hero-overlay);
}

.hero-contenido {
  position: relative;
  z-index: 2;

  color: var(--text-light);
  text-align: center;
}

.hero-contenido .subtitulo {
  color: var(--verde-claro);
}

.hero-contenido h1 {
  margin: 10px 0 0;

  color: var(--text-light);
  font-family: var(--font-title);
  font-size: var(--hero-title);
  font-weight: 800;
}

.hero-contenido p {
  max-width: 760px;
  margin: auto;

  color: var(--text-light-soft);
  font-size: var(--hero-text);
  line-height: var(--hero-line);
}


/*==============================================
DIVISORES
==============================================*/

.section-divider {
    width: var(--divider-width);
    height: var(--divider-height);
    margin: 0 auto 28px;
    border-radius: 50px;
    background: var(--verde-claro);
}

.section-divider-1 {
    width: var(--divider-width);
    height: var(--divider-height);
    margin: 0 0 28px;
    border-radius: 50px;
    background: var(--verde-claro);
}


/*==============================================
GRID DE PRODUCTOS
==============================================*/

.categorias-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}


/*==============================================
TARJETAS DE PRODUCTO
==============================================*/

.categoria-card {
    position: relative;
    display: flex;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--blanco);
    box-shadow: var(--shadow);
    text-decoration: none;
    transition: var(--transition);
}

.categoria-img {
    height: 240px;
    overflow: hidden;
}

.categoria-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.categoria-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 30px;
}

.categoria-content h3 {
    margin-bottom: 15px;
    color: var(--verde);
    font-family: var(--font-title);
    font-size: var(--title-card);
}

.categoria-content p {
    flex: 1;
    margin-bottom: 25px;
    color: var(--texto);
    font-family: var(--font-text);
    line-height: var(--line-md);
    text-align: left;
}

.categoria-content .btn-verde {
    align-self: flex-start;
    margin-top: auto;
}


/* HOVER TARJETA */

.categoria-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.categoria-card:hover .categoria-img img {
    transform: scale(1.08);
}

.categorias-grid--single {
  grid-template-columns: minmax(0, 360px);
  justify-content: center;
}

.categorias-grid--single {
  grid-template-columns: minmax(0, 360px);
  justify-content: center;
}
