/*
  ZEM Abogadas — Homepage styles (V2)
  Shared components (header, hero primitives, methodology track, instagram
  scroller, consult CTA, area navigator, avatar frames) live in base.css.
  This file holds only homepage-specific layout: hero sizing, "Quiénes
  somos" editorial split + principles, and the Derecho Deportivo launch.
*/

/* ---------- Hero ---------- */
.hero {
  overflow: hidden;
  background: linear-gradient(160deg, var(--zem-navy) 0%, var(--zem-teal-dark) 65%, var(--zem-teal) 100%);
  padding-block: calc(var(--space-10) + 2rem) var(--space-9);
}

.hero__mark {
  right: -8%;
  top: 50%;
  transform: translateY(-50%);
  width: 42rem;
  max-width: 65vw;
  opacity: 0.16;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}

.hero__title {
  color: var(--zem-white);
  font-size: var(--fs-3xl);
  margin-bottom: var(--space-5);
}

.hero__subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--fs-md);
  max-width: 32rem;
  margin-bottom: var(--space-6);
}

/* ---------- Quiénes somos: editorial statement ---------- */
.firm-statement {
  max-width: 42rem;
  margin-bottom: var(--space-9);
}

.firm-statement h2 {
  font-size: var(--fs-2xl);
}

.firm-statement__lede {
  font-size: var(--fs-md);
  color: var(--zem-teal-soft);
  margin-bottom: 0;
}

/* ---------- Principles (4 interactive typographic elements) ---------- */
.principles {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.principles__line {
  position: absolute;
  top: 0.55rem;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--zem-lavender) 0%, var(--zem-teal-soft) 50%, var(--zem-lavender) 100%);
}

.principles__item {
  position: relative;
  padding-top: var(--space-6);
  cursor: default;
}

.principles__item::before {
  content: "";
  position: absolute;
  top: 0.15rem;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--zem-teal-soft);
  transition: background var(--transition-base), transform var(--transition-base);
}

.principles__item:hover::before,
.principles__item:focus-within::before {
  background: var(--zem-navy);
  transform: scale(1.3);
}

.principles__index {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--zem-teal-soft);
  margin-bottom: var(--space-2);
}

.principles__word {
  display: block;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: var(--fs-lg);
  color: var(--zem-ink);
  margin-bottom: var(--space-2);
  transition: color var(--transition-base);
}

.principles__item:hover .principles__word,
.principles__item:focus-within .principles__word {
  color: var(--zem-teal-dark);
}

.principles__detail {
  display: block;
  font-size: var(--fs-sm);
  color: var(--zem-teal-soft);
  max-width: 16rem;
}

@media (max-width: 860px) {
  .principles {
    grid-template-columns: 1fr 1fr;
    row-gap: var(--space-8);
  }
}

@media (max-width: 560px) {
  .principles {
    grid-template-columns: 1fr;
  }

  .principles__line {
    top: 0;
    bottom: 0;
    left: 0.15rem;
    right: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, var(--zem-lavender), var(--zem-teal-soft), var(--zem-lavender));
  }

  .principles__item {
    padding-top: 0;
    padding-left: var(--space-6);
  }

  .principles__item::before {
    top: 0.3rem;
    left: 0;
  }
}

/* ---------- Derecho Deportivo homepage launch ---------- */
.deportivo-launch {
  overflow: hidden;
  background: radial-gradient(120% 140% at 15% 0%, var(--zem-teal-dark) 0%, var(--zem-navy) 45%, #081020 100%);
  padding-block: var(--space-10);
}

.deportivo-launch__fade {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8rem;
  background: linear-gradient(180deg, var(--zem-lavender-light), transparent);
  z-index: 0;
  opacity: 0.5;
}

.deportivo-launch__inner {
  position: relative;
  z-index: 1;
  max-width: 44rem;
}

.deportivo-launch__title {
  margin-bottom: var(--space-5);
}

.deportivo-launch__title .reveal-line > span {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: var(--fs-3xl);
  line-height: 1;
  color: var(--zem-white);
}

.deportivo-launch__body {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--fs-md);
  margin-bottom: var(--space-6);
  max-width: 36rem;
}

.deportivo-launch__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-7);
}

.deportivo-launch__tags span {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: var(--space-2) var(--space-4);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--zem-logo-ice);
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

@media (max-width: 700px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

.team-card {
  background: var(--zem-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.team-card__body {
  padding: var(--space-6);
}

.team-card__role {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--zem-teal);
  margin-bottom: var(--space-3);
}

.team-card__link {
  display: inline-block;
  margin-top: var(--space-2);
  font-weight: 700;
  color: var(--zem-navy);
  border-bottom: 2px solid var(--zem-logo-ice);
}
