/* ============================================================
   AFRONANDO — Portfolio editorial
   Paleta: crema + tinta + acento cian (identidad Afronando)
   ============================================================ */

:root {
  --bg: #efece4;
  --ink: #161512;
  --accent: #0091c2;      /* uso: texto grande, fondos oscuros, decorativo — no cumple 4.5:1 en texto pequeño sobre --bg */
  --accent-text: #006a8a; /* uso: cualquier texto pequeño en mono sobre --bg — pasa WCAG AA (5.7:1) */
  --line: rgba(22, 21, 18, 0.18);
  --font-display: "Archivo", sans-serif;
  --font-serif: "Instrument Serif", serif;
  --font-mono: "IBM Plex Mono", monospace;
  --pad: clamp(1.25rem, 4vw, 4rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
button { font: inherit; color: inherit; }

/* ===================== 404 ===================== */
.error-404 {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: var(--pad);
}
.error-404__code { color: var(--accent-text); margin-bottom: 1.5rem; }
.error-404__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 7vw, 5rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.error-404__title span { color: var(--accent); }
.error-404__link { border: 1px solid var(--line); border-radius: 999px; padding: 0.9rem 1.6rem; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  opacity: 0;
  transition: opacity 0.35s ease;
}
body.is-ready { opacity: 1; }
body.is-leaving { opacity: 0; }

/* ---------- barra de progreso de scroll ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent);
  z-index: 200;
  pointer-events: none;
}

/* ---------- cursor personalizado (solo con mouse) ---------- */
body.has-custom-cursor,
body.has-custom-cursor a,
body.has-custom-cursor button {
  cursor: none;
}
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  z-index: 999;
  opacity: 0;
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), height 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.25s, border-color 0.25s, opacity 0.25s;
}
.cursor-dot.is-active { opacity: 1; }
.cursor-dot.is-hover {
  width: 2.75rem;
  height: 2.75rem;
  background: rgba(0, 145, 194, 0.15);
  border: 1px solid var(--accent);
}

/* textura de grano sutil */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

em { font-family: var(--font-serif); font-style: italic; font-weight: 400; }

a { color: inherit; text-decoration: none; }

/* ---------- accesibilidad: solo lectores de pantalla ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  top: -4rem;
  left: 1rem;
  z-index: 1000;
  background: var(--ink);
  color: var(--bg);
  padding: 0.85rem 1.4rem;
  border-radius: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: top 0.25s ease;
}
.skip-link:focus { top: 1rem; }

/* ---------- foco visible (teclado) ---------- */
a:focus-visible,
input:focus-visible,
.project__media:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- animación de entrada ---------- */
.reveal {
  opacity: 0;
  transform: translateY(2.5rem);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================ NAV ============================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem var(--pad);
  mix-blend-mode: difference;
  color: #efece4;
}
.nav__logo {
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 0.95rem;
}
.nav__logo span { color: var(--accent); }
.nav__links { display: flex; gap: 1.75rem; }
.nav__links a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- menú móvil ---------- */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
  width: 1.6rem;
  height: 1.4rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;
  z-index: 2;
}
.nav__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.75rem;
  padding: var(--pad);
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  visibility: hidden;
}
.mobile-menu.is-open { transform: translateX(0); visibility: visible; }
.mobile-menu a {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 9vw, 2.75rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--bg);
  transition: color 0.3s;
}
.mobile-menu a:hover,
.mobile-menu a:active { color: var(--accent); }

/* ============================ HERO ============================ */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--pad);
  padding-top: 7rem;
  color: var(--bg);
}

/* ---------- fondo: carrusel de fotos horizontales ---------- */
.hero__slideshow { position: absolute; inset: 0; z-index: 0; }
.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.8s ease;
}
.hero__slide.is-active { opacity: 1; }
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 10, 8, 0.4) 0%, rgba(11, 10, 8, 0.15) 35%, rgba(11, 10, 8, 0.65) 100%);
}

.hero__eyebrow {
  position: relative;
  z-index: 2;
  margin-bottom: auto;
  padding-top: 4rem;
  color: var(--bg);
  opacity: 0.9;
}

/* ---------- titular: nombre → texto original, en la misma celda ---------- */
.hero__headline {
  position: relative;
  z-index: 2;
  display: grid;
  margin: 2rem 0 3rem;
}
.hero__headline > * { grid-area: 1 / 1; }

.hero__name {
  font-size: clamp(2.4rem, 8.5vw, 7.5rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--bg);
  opacity: 1;
  transition: opacity 1.1s ease;
}
.hero__name.is-hidden { opacity: 0; }
.hero__name .dot { color: var(--accent); }

.hero__title {
  font-size: clamp(2.4rem, 8.5vw, 7.5rem);
  font-weight: 780;
  font-stretch: 92%;
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--bg);
  opacity: 0;
  transition: opacity 1.1s ease;
}
.hero__title.is-visible { opacity: 1; }
.hero__line { display: block; overflow: hidden; }
.hero__title em { text-transform: none; letter-spacing: -0.01em; }

/* palabra rotatoria */
.rotator { position: relative; display: inline-block; min-width: 60%; color: var(--accent); }
.rotator__word {
  position: absolute;
  left: 0; top: 0;
  opacity: 0;
  transform: translateY(0.4em);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}
.rotator__word.is-active { position: relative; opacity: 1; transform: none; }

/* ---------- puntos de navegación del carrusel ---------- */
.hero__dots {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.hero__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  border: none;
  padding: 0;
  cursor: pointer;
  background: rgba(239, 236, 228, 0.4);
  transition: background 0.3s, transform 0.3s;
}
.hero__dot.is-active { background: var(--bg); transform: scale(1.4); }
.hero__dot:hover { background: var(--accent); }

.hero__foot {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  border-top: 1px solid rgba(239, 236, 228, 0.3);
  padding-top: 1.25rem;
  color: var(--bg);
}
.hero__scroll { color: var(--bg); transition: color 0.3s; }
.hero__scroll:hover { color: var(--accent); }

/* ============================ ENCABEZADO DE PÁGINA (páginas internas) ============================ */
.page-header {
  padding: var(--pad);
  padding-top: 8.5rem;
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}
.page-header__eyebrow { color: var(--accent-text); margin-bottom: 1.5rem; }
.page-header__title {
  font-size: clamp(2.6rem, 8vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.98;
  text-transform: uppercase;
}
.page-header__title .dot { color: var(--accent); }

/* ============================ PIE DE PÁGINA GLOBAL ============================ */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.5rem var(--pad);
  border-top: 1px solid var(--line);
}
.site-footer a:hover { color: var(--accent); }
.site-footer__social { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* ============================ MARQUEE ============================ */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  padding: 0.8rem 0;
}
.marquee__track {
  display: flex;
  white-space: nowrap;
  animation: marquee 22s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================ PILARES ============================ */
.pillars {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  padding: clamp(5rem, 12vw, 10rem) var(--pad);
  align-items: start;
  border-top: 1px solid var(--line);
}
.pillars__title {
  font-size: clamp(2.2rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.pillars__list { list-style: none; }
.pillars__list li {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  font-size: clamp(1.3rem, 3.4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s;
}
.pillars__list li:first-child { border-top: 1px solid var(--line); }
.pillars__list li:hover { padding-left: 1.5rem; color: var(--accent); }
.pillars__list .mono { color: var(--accent-text); }

/* ============================ SOBRE MÍ ============================ */
.about {
  padding: clamp(2rem, 6vw, 4rem) var(--pad) clamp(4rem, 10vw, 8rem);
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.about__media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.75rem;
}
.about__labels { margin-bottom: 2.5rem; color: var(--accent-text); }
.about__text {
  font-size: clamp(1.1rem, 2.4vw, 1.85rem);
  font-weight: 640;
  line-height: 1.4;
  letter-spacing: -0.01em;
  max-width: 62ch;
  margin-bottom: 2.5rem;
}
.about__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
}
.about__tags li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
}

/* ============================ TRABAJO ============================ */
.work { padding: clamp(4rem, 10vw, 8rem) var(--pad); }
.work__heading { margin-bottom: 3rem; color: var(--accent-text); }

/* ---------- caso de estudio por marca ---------- */
.case {
  border-top: 1px solid var(--ink);
  padding: 3rem 0 4rem;
}
.case:last-child { border-bottom: 1px solid var(--ink); }
.case__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}
.case__head h3 {
  font-size: clamp(2rem, 6.5vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  transition: color 0.4s;
}
.case:hover .case__head h3 { color: var(--accent); }
.case__head .dot { color: var(--accent); }
.case__tag { color: var(--accent-text); white-space: nowrap; }
.case__desc {
  max-width: 62ch;
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  font-weight: 560;
  line-height: 1.55;
  margin-top: 1.25rem;
  color: rgba(22, 21, 18, 0.75);
}
.case__credits {
  max-width: 62ch;
  margin-top: 1rem;
  line-height: 1.6;
  color: var(--accent-text);
}

/* ---------- pieza destacada: la foto/video más fuerte del caso, en grande y sin recortar ---------- */
.case__featured {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 2.25rem;
  max-height: 75vh;
  overflow: hidden;
  border: none;
  padding: 0;
  border-radius: 0.75rem;
  cursor: pointer;
  background: rgba(22, 21, 18, 0.04);
  position: relative;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.case__featured:hover { transform: scale(0.99); }
.case__featured img,
.case__featured video {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
  display: block;
}

/* video grabado en vertical, mostrado y reproducido en horizontal (rotado 90°, sin recodificar el archivo) */
.case__featured--rotated { aspect-ratio: 16 / 9; container-type: size; }
.case__featured--rotated video {
  position: absolute;
  top: 50%;
  left: 50%;
  height: 100cqw;
  width: auto;
  max-height: none;
  object-fit: unset;
  transform: translate(-50%, -50%) rotate(-90deg);
}

/* ---------- tira horizontal: el resto del caso, se desliza (no se apila en cuadrícula) ---------- */
.case__strip-hint {
  color: var(--accent-text);
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
}
.case__strip {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 0.85rem;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.case__strip::-webkit-scrollbar { height: 5px; }
.case__strip::-webkit-scrollbar-track { background: transparent; }
.case__strip::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }

.case__item {
  flex: 0 0 auto;
  height: clamp(13rem, 26vw, 20rem);
  scroll-snap-align: start;
  border: none;
  padding: 0;
  overflow: hidden;
  border-radius: 0.5rem;
  cursor: pointer;
  background: rgba(22, 21, 18, 0.04);
  position: relative;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.case__item:hover { transform: translateY(-4px); }
.case__item img,
.case__item video {
  height: 100%;
  width: auto;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s;
}
.case__item:hover img { transform: scale(1.045); filter: saturate(1.08); }

/* tiles de video en la tira: proporción vertical + botón de reproducir */
.case__item--video video { aspect-ratio: 3 / 4; object-fit: cover; }
.case__featured.case__item--video video { aspect-ratio: 16 / 9; object-fit: contain; }
.case__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 16, 14, 0.22);
  transition: background 0.3s;
}
.case__play::before {
  content: "";
  position: absolute;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0.75rem 2rem rgba(17, 16, 14, 0.4);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.case__play::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0.85rem 0 0.85rem 1.4rem;
  border-color: transparent transparent transparent var(--ink);
  transform: translateX(0.28rem);
}
.case__item--video:hover .case__play { background: rgba(17, 16, 14, 0.34); }
.case__item--video:hover .case__play::before { transform: scale(1.08); }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(11, 10, 8, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 5vw, 4rem);
}
.lightbox[hidden] { display: none; }
.lightbox__stage { max-width: 100%; max-height: 100%; }
.lightbox__stage img,
.lightbox__stage video {
  max-width: 100%;
  max-height: 90vh;
  display: block;
  border-radius: 0.35rem;
}

/* video vertical ampliado y reproducido en horizontal */
.lightbox__rotated-wrap {
  position: relative;
  container-type: size;
  overflow: hidden;
  border-radius: 0.35rem;
  aspect-ratio: 16 / 9;
  width: min(92vw, calc(90vh * 16 / 9));
}
.lightbox__rotated-wrap video {
  position: absolute;
  top: 50%;
  left: 50%;
  height: 100cqw;
  width: auto;
  max-height: none;
  max-width: none;
  transform: translate(-50%, -50%) rotate(-90deg);
  border-radius: 0;
}
.lightbox__close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--bg);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}
.lightbox__close:hover { color: var(--accent); }

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: none;
  background: rgba(239, 236, 228, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}
.lightbox__nav:hover { background: rgba(239, 236, 228, 0.22); }
.lightbox__nav::before {
  content: "";
  width: 0.65rem;
  height: 0.65rem;
  border-style: solid;
  border-color: var(--bg);
  border-width: 0.15rem 0.15rem 0 0;
}
.lightbox__nav--prev { left: clamp(0.75rem, 3vw, 1.75rem); }
.lightbox__nav--prev::before { transform: rotate(-135deg) translate(-2px, -2px); }
.lightbox__nav--next { right: clamp(0.75rem, 3vw, 1.75rem); }
.lightbox__nav--next::before { transform: rotate(45deg); }

/* ============================ SERVICIOS ============================ */
.services {
  background: var(--ink);
  color: var(--bg);
  padding: clamp(4rem, 10vw, 8rem) var(--pad);
}
.services__intro { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; margin-bottom: 4rem; }
.services__intro h2 { color: var(--accent); }
.services__intro p {
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 560;
  line-height: 1.45;
  max-width: 55ch;
}
.services__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.services__col h3 {
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  font-weight: 400;
  margin-bottom: 1.5rem;
}
.services__col ul { list-style: none; }
.services__col li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(239, 236, 228, 0.2);
  transition: padding-left 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.services__col li:hover { padding-left: 1rem; }
.services__item-title {
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-weight: 600;
  transition: color 0.3s;
}
.services__col li:hover .services__item-title { color: var(--accent); }
.services__item-desc {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(239, 236, 228, 0.55);
  max-width: 34ch;
}
.services__col .num { color: var(--accent); flex-shrink: 0; padding-top: 0.2rem; }

.services__brands { margin-top: 4rem; border-top: 1px solid rgba(239, 236, 228, 0.2); padding-top: 2rem; }
.services__pills { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }
.services__pills span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(239, 236, 228, 0.3);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  color: rgba(239, 236, 228, 0.7);
}

.services__cta {
  margin-top: clamp(4rem, 10vw, 7rem);
  padding-top: 2.5rem;
  border-top: 1px solid rgba(239, 236, 228, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.services__cta p {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(239, 236, 228, 0.6);
}
.services__cta a {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  transition: color 0.3s;
}
.services__cta a em { color: var(--accent); margin-left: 0.5rem; transition: transform 0.3s; display: inline-block; }
.services__cta a:hover { color: var(--accent); }
.services__cta a:hover em { transform: translateX(0.35rem); }

/* ============================ CONTACTO ============================ */
.contact {
  padding: clamp(5rem, 12vw, 10rem) var(--pad) 2rem;
  text-align: center;
}
.contact--page { padding-top: clamp(8rem, 16vw, 12rem); min-height: 100svh; }
.contact > .mono { color: var(--accent-text); }
.contact__email {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: clamp(3rem, 13vw, 12rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  text-transform: uppercase;
  transition: color 0.3s, letter-spacing 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.contact__email em { color: var(--accent); }
.contact__email:hover { color: var(--accent); letter-spacing: -0.02em; }
.contact__sub { margin-top: 1rem; color: rgba(22,21,18,0.6); }
.contact__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: clamp(4rem, 10vw, 8rem);
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}
.contact__social { display: flex; gap: 1.5rem; }
.contact__social a:hover, .contact__foot > a:hover { color: var(--accent); }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .pillars { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .services__intro { grid-template-columns: 1fr; }
  .services__cols { grid-template-columns: 1fr; }
  .hero__foot { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .case__item { height: clamp(10rem, 60vw, 16rem); }
  .case__featured { max-height: 50vh; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  .marquee__track { animation: none; }
  html { scroll-behavior: auto; }
  body { opacity: 1 !important; transition: none; }
  .cursor-dot { display: none; }
  body.has-custom-cursor,
  body.has-custom-cursor a,
  body.has-custom-cursor button { cursor: auto; }
}
