/* ============================================================
   familia.css — BEM styles for landing de familia veterinaria
   Namespace: lp-vet-fam-*
   Colores: rojo #eb5659 · degradado oscuro (135deg #1a1a2e→#0f3460→#eb5659)
   ============================================================ */

:root {
  --fam-grad: linear-gradient(135deg, #1a1a2e 0%, #0f3460 50%, #eb5659 100%);
}

/* ─── HERO ─────────────────────────────────────────────────── */
.lp-vet-fam-hero {
  background: var(--fam-grad);
  position: relative;
  overflow: hidden;
  padding: 3rem 0 2.5rem;
}

@media (min-width: 992px) {
  .lp-vet-fam-hero {
    padding: 4rem 0 3.5rem;
  }
}

/* Badge familia */
.lp-vet-fam-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(235, 86, 89, 0.15);
  color: #eb5659;
  border: 1px solid rgba(235, 86, 89, 0.3);
  border-radius: 50px;
  padding: 0.3rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* H1 */
.lp-vet-fam-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.15;
  color: #fff;
  margin-bottom: 0.75rem;
}

/* Subtitle */
.lp-vet-fam-hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
  max-width: 540px;
}

@media (max-width: 991.98px) {
  .lp-vet-fam-hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }
}

/* CTA button hero */
.lp-vet-fam-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: #eb5659;
  color: #fff;
  font-weight: 700;
  padding: 0.875rem 1.75rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background var(--vet-transition, 0.3s ease);
  width: 100%;
  line-height: 1;
  position: relative;
  overflow: hidden;
}

@media (min-width: 576px) {
  .lp-vet-fam-hero__cta {
    width: auto;
  }
}

.lp-vet-fam-hero__cta:hover {
  background: #d94044;
  color: #fff;
}

/* Media (video / imagen) */
.lp-vet-fam-hero__media {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.lp-vet-fam-hero__img {
  width: 100%;
  height: auto;
  display: block;
}

/* Trust bar */
.lp-vet-fam-hero__trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

@media (min-width: 992px) {
  .lp-vet-fam-hero__trust-bar {
    justify-content: flex-start;
    gap: 2rem 3rem;
  }
}

.lp-vet-fam-hero__trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.88rem;
  font-weight: 500;
}

.lp-vet-fam-hero__trust-item .bi {
  font-size: 1.25rem;
  color: #eb5659;
}

/* ─── STATS / PILLS ────────────────────────────────────────── */
.lp-vet-fam-stats {
  padding: 3rem 0;
  background: #1a2332;
}

.lp-vet-fam-stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .lp-vet-fam-stats__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.lp-vet-fam-stats__item {
  text-align: center;
  padding: 1.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

.lp-vet-fam-stats__number {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #eb5659;
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.lp-vet-fam-stats__label {
  display: block;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.3;
}

/* ─── COURSES SECTION ──────────────────────────────────────── */
.lp-vet-fam-courses {
  padding: 4rem 0;
  background: #f8f9fa;
}

.lp-vet-fam-courses__label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(235, 86, 89, 0.1);
  color: #eb5659;
  border-radius: 50px;
  padding: 0.3rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.lp-vet-fam-courses__heading {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #1a2332;
  margin-bottom: 0.5rem;
}

.lp-vet-fam-courses__subheading {
  color: #6c757d;
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ─── COURSE CARD ──────────────────────────────────────────── */
.lp-vet-fam-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform var(--vet-transition, 0.3s ease),
              box-shadow var(--vet-transition, 0.3s ease);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.lp-vet-fam-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* Image wrapper */
.lp-vet-fam-card__img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.lp-vet-fam-card__img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.45) 100%);
  transition: opacity var(--vet-transition, 0.3s ease);
}

.lp-vet-fam-card:hover .lp-vet-fam-card__img-wrap::after {
  opacity: 0.7;
}

.lp-vet-fam-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--vet-transition, 0.3s ease);
}

.lp-vet-fam-card:hover .lp-vet-fam-card__img {
  transform: scale(1.05);
}

/* Badge on image */
.lp-vet-fam-card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #eb5659;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Card body */
.lp-vet-fam-card__body {
  padding: 1.25rem 1.25rem 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.lp-vet-fam-card__title {
  font-size: 1.05rem;
  color: #1a2332;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.lp-vet-fam-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--vet-transition, 0.3s ease);
}

.lp-vet-fam-card__title a:hover {
  color: #eb5659;
}

/* Stars */
.lp-vet-fam-card__stars {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-bottom: 0.75rem;
}

.lp-vet-fam-card__stars .bi {
  color: #ffc107;
  font-size: 0.85rem;
}

.lp-vet-fam-card__stars-text {
  font-size: 0.78rem;
  color: #6c757d;
  margin-left: 0.4rem;
}

/* Features grid */
.lp-vet-fam-card__features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid #f0f0f0;
}

.lp-vet-fam-card__feature {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 1 1 calc(50% - 0.5rem);
  min-width: 0;
}

.lp-vet-fam-card__feature-icon {
  font-size: 1.1rem;
  color: #eb5659;
  flex-shrink: 0;
  width: 1.5rem;
  text-align: center;
}

.lp-vet-fam-card__feature-data {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.lp-vet-fam-card__feature-val {
  font-size: 0.8rem;
  font-weight: 600;
  color: #1a2332;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lp-vet-fam-card__feature-label {
  font-size: 0.7rem;
  color: #6c757d;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Card footer */
.lp-vet-fam-card__footer {
  padding: 1rem 1.25rem 1.25rem;
}

.lp-vet-fam-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  background: var(--fam-grad);
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  border: none;
  font-size: 0.88rem;
  text-decoration: none;
  text-align: center;
  transition: filter var(--vet-transition, 0.3s ease);
  min-height: 44px;
}

.lp-vet-fam-card__btn:hover {
  filter: brightness(0.88);
  color: #fff;
}

/* ─── CTA BANNER ───────────────────────────────────────────── */
.lp-vet-fam-cta {
  background: var(--fam-grad);
  padding: 3.5rem 0;
}

.lp-vet-fam-cta__inner {
  max-width: 680px;
  margin: 0 auto;
}

.lp-vet-fam-cta__title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: #fff;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.lp-vet-fam-cta__subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.lp-vet-fam-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: #fff;
  color: #1a2332;
  font-weight: 700;
  padding: 0.875rem 2rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background var(--vet-transition, 0.3s ease);
  width: 100%;
  position: relative;
  overflow: hidden;
  min-height: 48px;
}

@media (min-width: 576px) {
  .lp-vet-fam-cta__btn {
    width: auto;
  }
}

.lp-vet-fam-cta__btn:hover {
  background: #f4f4f4;
  color: #1a2332;
}

.lp-vet-fam-cta__trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  margin-top: 1.25rem;
}

.lp-vet-fam-cta__trust span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
}

.lp-vet-fam-cta__trust .bi {
  color: #4bb989;
}

/* ─── WHATSAPP FLOTANTE ─────────────────────────────────────── */
.lp-vet-fam-whatsapp {
  position: fixed;
  bottom: 90px;
  right: 20px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s ease;
  text-decoration: none;
}

.lp-vet-fam-whatsapp:hover {
  transform: scale(1.1);
  color: #fff;
}

.lp-vet-fam-whatsapp__tooltip {
  position: absolute;
  right: 64px;
  background: #1a2332;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.lp-vet-fam-whatsapp:hover .lp-vet-fam-whatsapp__tooltip {
  opacity: 1;
}

@media (max-width: 991px) {
  .lp-vet-fam-whatsapp { bottom: 80px; }
}

/* Ocultar botón llamanos global en familia (solo móvil) */
@media (max-width: 991.98px) {
  body:has(.lp-vet-fam-hero) .llamanos {
    display: none !important;
  }
}

/* ─── STICKY CTA MÓVIL ──────────────────────────────────────── */
.lp-vet-fam-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.15);
  padding-bottom: env(safe-area-inset-bottom);
  transition: transform 0.3s ease;
}

.lp-vet-fam-sticky-cta.hidden {
  transform: translateY(100%);
}

.lp-vet-fam-sticky-cta__tel {
  flex: 0 0 30%;
  background: #1a2332;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.875rem 0.5rem;
  font-size: 0.9rem;
}

.lp-vet-fam-sticky-cta__tel:hover {
  background: #121a27;
  color: #fff;
}

.lp-vet-fam-sticky-cta__btn {
  flex: 1;
  background: #eb5659;
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.875rem 1rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.lp-vet-fam-sticky-cta__btn:hover {
  background: #d44446;
}
