/**
 * Grupo FAM - Elementor Hero Widget Styles
 */

.fam-hero,
.hero {
  padding-top: 70px;
  position: relative;
  box-sizing: border-box;
}

.fam-hero-eyebrow,
.hero-eyebrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 35px;
}

.fam-eyebrow,
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--fam-accent, #212c5d);
}

.fam-concept-label,
.concept-label {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--fam-muted, #62625d);
  text-align: right;
  text-transform: uppercase;
}

.fam-hero h1,
.hero h1 {
  font-size: clamp(3.4rem, 6.8vw, 7.4rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
  font-weight: 550;
  margin: 0;
  max-width: 1450px;
  color: var(--fam-ink);
}

.fam-hero-last,
.home-last {
  display: flex;
  align-items: center;
  gap: 20px;
}

.fam-hero-spark,
.hero-spark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--fam-accent, #212c5d);
  color: #ffffff;
  font-size: 0.68em;
  width: 1.1em;
  height: 1.1em;
  border-radius: 4px;
  transform: rotate(-7deg);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
  flex-shrink: 0;
}

.fam-hero-spark svg {
  width: 0.7em;
  height: 0.7em;
}

.fam-hero:hover .fam-hero-spark,
.fam-hero:hover .hero-spark {
  transform: rotate(0deg) scale(1.05);
}

.fam-hero-bottom,
.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  padding-top: 36px;
  padding-bottom: 36px;
}

.fam-hero-description,
.hero-description {
  max-width: 560px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fam-ink);
  margin: 0;
}

.fam-hero-actions,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

/* Multimedia Media Box (Image or Video) */
.fam-hero-media,
.hero-media {
  position: relative;
  width: 100%;
  height: clamp(440px, 44vw, 720px);
  overflow: hidden;
  background: #151825;
  color: #ffffff;
  border-radius: 4px;
}

.fam-hero-media img,
.fam-hero-media video,
.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  filter: saturate(1.08) contrast(1.04) brightness(0.96);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}

.fam-hero-media:hover img,
.fam-hero-media:hover video,
.hero-media:hover img,
.hero-media:hover video {
  filter: saturate(1.15) contrast(1.08) brightness(1);
  transform: scale(1.025);
}

.fam-media-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(15, 20, 45, 0.4) 0%, rgba(15, 20, 45, 0.1) 40%, rgba(15, 20, 45, 0.7) 100%);
  pointer-events: none;
}

.fam-media-top,
.media-top {
  position: absolute;
  top: 24px;
  left: 28px;
  right: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 600;
  z-index: 2;
}

.fam-media-top span,
.media-top span {
  background: rgba(15, 20, 40, 0.75);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 6px 10px;
  border-radius: 3px;
}

.fam-media-bottom,
.media-bottom {
  position: absolute;
  bottom: 50px;
  left: 28px;
  right: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  z-index: 2;
}

.fam-media-bottom > span,
.media-bottom > span {
  font-size: clamp(2rem, 3.8vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-weight: 500;
  background: rgba(15, 20, 40, 0.8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 10px 16px;
  border-radius: 4px;
}

.fam-media-scroll,
.media-scroll {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  background: rgba(15, 20, 40, 0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: all 0.25s ease;
}

.fam-media-scroll svg,
.media-scroll svg {
  width: 22px;
  height: 22px;
  transition: transform 0.25s ease;
}

.fam-media-scroll:hover,
.media-scroll:hover {
  background: var(--fam-accent, #212c5d);
  border-color: var(--fam-accent, #212c5d);
  color: #fff;
}

.fam-media-scroll:hover svg,
.media-scroll:hover svg {
  transform: translateY(4px);
}

.fam-photo-note,
.photo-note {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 18px;
  background: rgba(15, 20, 40, 0.92);
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  z-index: 2;
}

/* Responsive */
@media (max-width: 1000px) {
  .fam-hero,
  .hero {
    padding-top: 110px;
  }
  .fam-hero-bottom,
  .hero-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .fam-hero-actions,
  .hero-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {
  .fam-hero,
  .hero {
    padding-top: 95px;
  }
  .fam-hero-eyebrow,
  .hero-eyebrow {
    margin-bottom: 24px;
    gap: 12px;
  }
  .fam-eyebrow,
  .eyebrow {
    font-size: 11px;
    max-width: 180px;
  }
  .fam-concept-label,
  .concept-label {
    font-size: 11px;
    max-width: 140px;
  }
  .fam-hero h1,
  .hero h1 {
    font-size: clamp(2.3rem, 6.7vw, 3.8rem);
    line-height: 1.08;
    letter-spacing: -0.05em;
  }
  .fam-hero-spark,
  .hero-spark {
    font-size: 0.58em;
  }
  .fam-hero-media,
  .hero-media {
    height: 380px;
  }
  .fam-media-bottom,
  .media-bottom {
    bottom: 60px;
  }
  .fam-media-bottom > span,
  .media-bottom > span {
    font-size: 26px;
    padding: 6px 10px;
  }
  .fam-media-scroll,
  .media-scroll {
    width: 46px;
    height: 46px;
  }
}

/* ==========================================================================
   HERO STATS & COUNTERS STRIP (MÉTRICAS Y ÉNFASIS)
   ========================================================================== */
.hero-stats-strip,
.fam-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 40px 0 50px;
  padding: 28px 32px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(33, 44, 93, 0.1);
  box-shadow: 0 16px 40px -12px rgba(23, 28, 54, 0.08);
  position: relative;
  z-index: 3;
}

.stat-card,
.fam-stat-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px;
  border-left: 2px solid rgba(33, 44, 93, 0.12);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-card:first-child,
.fam-stat-item:first-child {
  border-left: none;
}

.stat-card:hover,
.fam-stat-item:hover {
  transform: translateY(-3px);
  border-left-color: var(--fam-accent, #212c5d);
}

.stat-value,
.fam-stat-num-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.stat-number,
.fam-counter {
  font-size: clamp(34px, 3.6vw, 48px);
  font-weight: 800;
  color: var(--fam-accent, #212c5d);
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.stat-symbol,
.fam-stat-plus {
  font-size: 24px;
  font-weight: 700;
  color: #00aa66;
  line-height: 1;
}

.stat-info,
.fam-stat-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-title,
.fam-stat-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--fam-ink, #171717);
  letter-spacing: -0.01em;
}

.stat-desc,
.fam-stat-label {
  font-size: 12px;
  line-height: 1.45;
  color: var(--fam-muted, #62625d);
  margin: 0;
}

/* Énfasis Visual y Micro-interacciones */
.hero-actions .button,
.hero-actions .fam-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-actions .button:hover,
.hero-actions .fam-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -6px rgba(33, 44, 93, 0.35);
}

.hero-actions .button svg,
.hero-actions .fam-btn svg {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-actions .button:hover svg,
.hero-actions .fam-btn:hover svg {
  transform: translate(3px, -3px);
}

/* Responsivo para Móviles y Tablets */
@media (max-width: 1000px) {
  .hero-stats-strip,
  .fam-hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 24px;
  }
  .stat-card:nth-child(2n+1),
  .fam-stat-item:nth-child(2n+1) {
    border-left: none;
  }
}

@media (max-width: 600px) {
  .hero-stats-strip,
  .fam-hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 16px 12px;
    padding: 18px 14px;
    margin: 28px 0 36px;
    border-radius: 12px;
  }
  .stat-card,
  .fam-stat-item {
    padding: 8px 10px;
    border-left: none;
    background: rgba(248, 248, 246, 0.6);
    border-radius: 8px;
  }
  .stat-number,
  .fam-counter {
    font-size: 28px;
  }
  .stat-symbol,
  .fam-stat-plus {
    font-size: 18px;
  }
  .stat-title,
  .fam-stat-title {
    font-size: 12px;
  }
  .stat-desc,
  .fam-stat-label {
    font-size: 11px;
    line-height: 1.35;
  }
  .hero-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .hero-actions .button,
  .hero-actions .text-link,
  .hero-actions .fam-btn,
  .hero-actions .fam-text-link {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

