/* ─── CONTACT PAGE ────────────────────────────────────────────────────────── */

@media (min-width: 768px) {
  html, body { overflow: hidden; }
}

.contact-page {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.contact-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  display: block;
}

.contact-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    100deg,
    rgba(8,8,8,.97)  0%,
    rgba(8,8,8,.90) 38%,
    rgba(8,8,8,.55) 62%,
    rgba(8,8,8,.15) 100%
  );
  z-index: 1;
}


/* ─── CONTENIDO ───────────────────────────────────────────────────────────── */

.contact-content {
  position: relative;
  z-index: 2;
  padding: 120px 40px 80px;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}


/* ─── ENCABEZADO ──────────────────────────────────────────────────────────── */

.contact-heading {
  display: flex;
  align-items: center;
  gap: 20px;
}

.contact-heading-line {
  display: block;
  width: 40px;
  height: var(--line-weight);
  background: var(--color-white-dim);
  flex-shrink: 0;
}

.contact-heading-line:last-child {
  width: auto;
  flex: 1;
}

.contact-heading-label {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: 22px;
  letter-spacing: .02em;
  color: #fff;
  white-space: nowrap;
}


/* ─── TAGLINE ─────────────────────────────────────────────────────────────── */

.contact-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(14px, 1.4vw, 17px);
  color: var(--color-white-dim);
  line-height: 1.5;
  margin-top: -16px; /* reduce gap with heading */
}


/* ─── LOGO ANIMADO ────────────────────────────────────────────────────────── */

.contact-logo-wrap {
  width: 260px;
  height: 126px;          /* ← alto del área visible: ajustar */
  overflow: hidden;
  margin-left: -8px;
}

.contact-logo {
  display: block;
  width: 260px;
  background: transparent;
  pointer-events: none;
  transform: scale(1.8);         /* ← zoom: ajustar */
  transform-origin: 62% 68%;    /* ← qué parte del frame mostrar: ajustar */
}


/* ─── IDENTIDAD ───────────────────────────────────────────────────────────── */

.contact-identity {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-name {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: #fff;
}

.contact-location {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--color-white-dim);
  margin-top: 4px;
}

.contact-email {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .25em;
  text-transform: lowercase;
  color: var(--color-white-dim);
  text-decoration: none;
  position: relative;
  display: inline-block;
  transition: color .3s;
}

.contact-email::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: var(--line-weight);
  background: #fff;
  transition: width .4s var(--ease-out);
}

.contact-email:hover { color: #fff; }
.contact-email:hover::after { width: 100%; }


/* ─── SERVICIOS ───────────────────────────────────────────────────────────── */

.contact-services {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-services li a {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--color-white-dim);
  text-decoration: none;
  transition: color .3s, letter-spacing .4s var(--ease-out);
  display: inline-block;
}

.contact-services li a:hover {
  color: #fff;
  letter-spacing: .45em;
}


/* ─── DESCRIPCIÓN ─────────────────────────────────────────────────────────── */

.contact-desc {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 4px;
  border-top: var(--line-weight) solid var(--color-white-faint);
}

.contact-desc-role {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--color-white-dim);
}

.contact-desc-text {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(14px, 1.3vw, 16px);
  color: var(--color-white-dim);
  line-height: 1.6;
}


/* ─── EQUIPO ──────────────────────────────────────────────────────────────── */

.contact-team {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: var(--line-weight) solid var(--color-white-faint);
  padding-top: 20px;
  margin-top: -8px;
}

.contact-team-item {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-items: baseline;
  gap: 2px 16px;
  padding: 12px 0;
  border-bottom: var(--line-weight) solid var(--color-white-faint);
}

.contact-team-name {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(16px, 1.6vw, 20px);
  color: rgba(255,255,255,0.55);
  grid-column: 1;
  grid-row: 1;
}

.contact-team-role {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  grid-column: 1;
  grid-row: 2;
}

.contact-team-email {
  color: rgba(255,255,255,0.30);
  text-decoration: none;
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  justify-self: end;
  display: flex; align-items: center; justify-content: center;
  padding: 4px;
  transition: color .3s;
}

.contact-team-email svg {
  display: block;
  width: 16px; height: 16px;
  fill: none; stroke: currentColor;
  stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round;
}

.contact-team-email:hover { color: rgba(255,255,255,0.7); }


/* ─── CTA EXPLORE ─────────────────────────────────────────────────────────── */

.contact-explore {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--color-white-dim);
  transition: color .3s, gap .4s var(--ease-out);
  cursor: none;
  margin-top: auto;
  background: none; border: none; padding: 0; font-family: inherit;
}

.contact-explore-line {
  display: block;
  width: 32px;
  height: var(--line-weight);
  background: currentColor;
  flex-shrink: 0;
  transition: width .4s var(--ease-out);
}

.contact-explore-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .35em;
  text-transform: uppercase;
}

.contact-explore svg {
  width: 16px; height: 16px;
  display: block;
  flex-shrink: 0;
  /* rotar 90° → apunta a la derecha como flecha */
  transform: rotate(-90deg);
  transition: transform .4s var(--ease-out);
}

.contact-explore:hover {
  color: #fff;
  gap: 24px;
}

.contact-explore:hover .contact-explore-line { width: 48px; }
.contact-explore:hover svg { transform: rotate(-90deg) translateX(4px); }


/* ─── RESPONSIVE — TABLET (≤ 1024px) ────────────────────────────────────── */

@media (max-width: 1024px) {
  .contact-content { max-width: 480px; padding: 100px 32px 64px; }
  .contact-overlay {
    background: linear-gradient(
      100deg,
      rgba(8,8,8,.97) 0%,
      rgba(8,8,8,.92) 50%,
      rgba(8,8,8,.6)  100%
    );
  }
}


/* ─── RESPONSIVE — MOBILE (≤ 767px) ─────────────────────────────────────── */

@media (max-width: 767px) {
  .contact-page { align-items: flex-start; }

  .contact-bg { object-position: 50% center; }

  .contact-overlay {
    background: linear-gradient(
      180deg,
      rgba(8,8,8,.82) 0%,
      rgba(8,8,8,.6) 55%,
      rgba(8,8,8,1) 100%
    );
  }

  .contact-content {
    padding: 32px 24px 60px;
    max-width: 100%;
    gap: 32px;
  }

  .contact-name { font-size: clamp(36px, 12vw, 52px); }

  .contact-explore { cursor: pointer; }
}
