/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

/* =========================================================
   Familias capilares con identidad propia (Sección inferior)
   ========================================================= */
#brxe-lpszti #brxe-hhpfyo {
  max-width: 100%;
  box-sizing: border-box;
}

#brxe-lpszti #brxe-iiykjs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  align-items: stretch;
}

@media (max-width: 1200px) {
  #brxe-lpszti #brxe-iiykjs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (max-width: 900px) {
  #brxe-lpszti #brxe-iiykjs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 560px) {
  #brxe-lpszti #brxe-iiykjs {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.ot-family-card {
  --family-color: #4f9101;
  --family-btn-hover-text: #ffffff;
  display: flex;
  flex-direction: column;
  width: 100%;
  background-color: #ffffff;
  border: 1px solid #d9d9d9;
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.ot-family-card:hover {
  transform: translateY(-6px);
  border-color: var(--family-color);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.1);
}

/* Animación de entrada elegante al entrar en pantalla */
.ot-family-card.ot-reveal-init {
  opacity: 0;
  transform: translateY(38px) scale(0.985);
  will-change: opacity, transform;
}

.ot-family-card.ot-reveal-in {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.ot-family-card.ot-reveal-done {
  will-change: auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.ot-family-card.ot-reveal-done:hover {
  transform: translateY(-6px);
}

@media (prefers-reduced-motion: reduce) {
  .ot-family-card.ot-reveal-init,
  .ot-family-card.ot-reveal-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.ot-family-card__media {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 20px;
  background-color: #f5f5f5;
  flex-shrink: 0;
}

.ot-family-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.ot-family-card:hover .ot-family-card__img {
  transform: scale(1.03);
}

.ot-family-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 20px 24px;
  flex: 1;
}

.ot-family-card__badge {
  width: 62px;
  height: 62px;
  object-fit: contain;
  display: block;
  margin-bottom: 14px;
}

.ot-family-card__line {
  width: 100%;
  height: 2px;
  background-color: var(--family-color);
  border-radius: 2px;
  margin-bottom: 16px;
}

.ot-family-card__title {
  font-family: "Libre Caslon Text", "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  color: #0a0a0a;
  margin: 0;
  letter-spacing: 0.01em;
}

.ot-family-card__subtitle {
  font-family: "Inter", "Roboto", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--family-color);
  margin: 8px 0 0;
}

.ot-family-card__btn-wrap {
  margin-top: auto;
  padding-top: 20px;
}

.ot-family-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px 26px;
  border: 1.5px solid #1a1a1a;
  border-radius: 9999px;
  background-color: #ffffff;
  color: #0a0a0a;
  font-family: "Inter", "Roboto", sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  transition: background-color 0.28s ease, border-color 0.28s ease, color 0.28s ease;
}

.ot-family-card__arrow {
  width: 16px;
  height: 16px;
  display: block;
  transition: transform 0.28s ease;
}

.ot-family-card:hover .ot-family-card__btn {
  background-color: var(--family-color);
  border-color: var(--family-color);
  color: var(--family-btn-hover-text);
}

.ot-family-card:hover .ot-family-card__arrow {
  transform: translateX(4px);
}

@media (max-width: 478px) {
  .ot-family-card__body {
    padding: 18px 20px 24px;
  }
  .ot-family-card__badge {
    width: 64px;
    height: 64px;
  }
  .ot-family-card__title {
    font-size: 2.1rem;
  }
  .ot-family-card__subtitle {
    font-size: 1.35rem;
  }
}
