/*======================
  FUENTES
======================*/
@font-face {
  font-family: "Campton";
  src: url("../assets/fonts/CamptonThin.otf") format("opentype");
  font-weight: 100;
  font-style: normal;
}

@font-face {
  font-family: "Campton";
  src: url("../assets/fonts/CamptonExtraLight.otf") format("opentype");
  font-weight: 200;
  font-style: normal;
}

@font-face {
  font-family: "Campton";
  src: url("../assets/fonts/CamptonLight.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Campton";
  src: url("../assets/fonts/CamptonBook.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Campton";
  src: url("../assets/fonts/CamptonMedium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Campton";
  src: url("../assets/fonts/CamptonSemiBold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "Campton";
  src: url("../assets/fonts/CamptonBold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Campton";
  src: url("../assets/fonts/CamptonExtraBold.otf") format("opentype");
  font-weight: 800;
  font-style: normal;
}

@font-face {
  font-family: "Campton";
  src: url("../assets/fonts/CamptonBlack.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
}

/* =========================
   FUENTE DISPLAY – SHRIMP
========================= */
@font-face {
  font-family: "Shrimp";
  src: url("../assets/fonts/SHRIMP.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

/* =========================
   VARIABLES + LAYOUT SYSTEM
========================= */
:root {
  --color-bg: #000;
  --color-text: #fff;
  --font-main: 'MiFuente', system-ui, sans-serif;
  --radius-pill: 999rem;

  --container: 128rem;
  --container-wide: 168rem;

  --gutter: clamp(2rem, 4vw, 7rem);
  --section-y: 10rem;

  --top-font: 1.4rem;
  --top-gap: 1.6rem;
  --top-bottom: clamp(4.5rem, 6vw, 7rem);
  --top-gutter: clamp(2rem, 3.2vw, 6rem);

  --services-list-shift: clamp(0rem, 1vw, 2.5rem);
}

/* =========================
   BASE + CURSOR GLOBAL
========================= */
html {
  font-size: 62.5%;
  box-sizing: border-box;
  cursor: none;
  /* Cursor oculto globalmente */
}

*,
*::before,
*::after {
  box-sizing: inherit;
  cursor: none;
  /* Aplanamos cursor pointer/default */
}

/* Asegura que elementos interactivos NO muestren cursor */
a,
button,
input,
textarea,
select,
label,
summary,
[role="button"],
[tabindex] {
  cursor: none !important;
}

body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: "Campton", system-ui, sans-serif;
  /* Unificada */
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  cursor: none;
}

/* =========================
   CONTAINERS + SECTION
========================= */
.container {
  width: min(var(--container), 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

.container-wide {
  width: min(var(--container-wide), 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

.container-fluid {
  width: 100%;
  padding-inline: var(--gutter);
  margin-inline: auto;
  max-width: var(--container-wide);
}

.section {
  padding: var(--section-y) 0;
}

/* =========================
   TOP SYSTEM (headers)
========================= */
[class$="-top"] {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  padding-inline: var(--top-gutter);

  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--top-gap);

  margin: 0 auto var(--top-bottom);

  font-size: var(--top-font);
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (min-width: 1800px) {
  [class$="-top"] {
    padding-inline: clamp(2rem, 2vw, 5rem);
  }
}

/* =======================
   CURSOR ELEMENT
========================*/
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: white;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 99999;
  transition: transform .08s linear;
  mix-blend-mode: difference;
}

.cursor-dot.is-view {
  width: 7.6rem;
  height: 7.6rem;
  border-radius: 999rem;
  background: #fff;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  mix-blend-mode: normal;
  /* Usualmente 'view' se ve mejor normal si tiene texto */
}

.cursor-dot.is-view::after {
  content: "VIEW";
}

/* =========================
   TOP BAR 
========================= */
.topbar {
  /* FUSIONADO: Cambiado de fixed a absolute según parche */
  position: absolute;
  top: 2.5rem;
  left: 0;
  right: 0;
  z-index: 200;
}

.topbar-inner {
  position: relative;
  height: 7rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 1.6rem;
}

.topbar-left,
.topbar-right {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.topbar-left {
  justify-self: start;
}

.topbar-right {
  justify-self: end;
}

#openMenu {
  justify-self: center;
}

.brand-logo {
  height: 3.4rem;
  width: auto;
  display: block;
}

/* Animación topbar */
.enter-top {
  opacity: 0;
  transform: translateY(-1.8rem);
  animation: topbarIn .7s cubic-bezier(.22, 1, .36, 1) forwards;
  animation-delay: 500ms;
}

@keyframes topbarIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   BOTÓN CONTACT
========================= */
.btn-contact {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.2rem;
  /* Ajustado del segundo bloque */
  border-radius: var(--radius-pill);
  background: transparent;
  border: .2rem solid #fff;
  color: #fff;
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  font-family: var(--font-main);
  cursor: pointer;

  overflow: hidden;
  transition: color .35s ease;
  white-space: nowrap;
}

.btn-contact .btn-text {
  position: relative;
  z-index: 1;
}

.btn-contact::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0%;
  background: #fff;
  z-index: 0;
  transition: height .35s ease;
}

.btn-contact:hover::before {
  height: 100%;
}

.btn-contact:hover {
  color: #000;
}

.btn-contact:hover,
.btn-contact:visited,
.btn-contact:active {
  text-decoration: none;
}

/* =========================
   BOTÓN MENÚ
========================= */
.btn-menu {
  width: 4.6rem;
  height: 4.6rem;
  border: none;
  background: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  line-height: 0;
}

.menu-icon {
  position: relative;
  width: 1.8rem;
  height: 1.8rem;
  transition: transform .5s cubic-bezier(.22, 1, .36, 1);
  display: block;
}

/* .menu-icon .dot {
  position: absolute;
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: #fff;
}

.menu-icon .d1 {
  top: 0;
  left: 0;
}

.menu-icon .d2 {
  top: 0;
  right: 0;
}

.menu-icon .d3 {
  bottom: 0;
  left: 0;
}

.menu-icon .d4 {
  bottom: 0;
  right: 0;
} */

.menu-icon {
  position: relative;
  width: 2.2rem;
  height: 1.6rem;
  display: block;
  transition: transform .5s cubic-bezier(.22, 1, .36, 1);
  color: #fff;
}


/* .menu-icon.menu-burguer .bar{
  position: absolute;
  left: 0;
  width: 100%;
  height: .2rem;
  background: #fff;
  border-radius: 999rem;
  transform-origin: center;
  transition: transform .45s cubic-bezier(.22, 1, .36, 1 opacity .3s ease);
} */

/* .menu-icon.menu-burguer .b1{ top: 0;}
.menu-icon.menu-burguer .b2{ top: 50%; transform: translateY(-50%);}
.menu-icon.menu-burguer .b3{ bottom: 0;} */

/* .btn-menu:hover .menu-icon.menu-burguer {
  transform: rotate(12deg);
} */

/* =========================
   HAMBURGER ICON (base)
========================= */

/* Por defecto (desktop): muestra texto y oculta hamburguesa */
.btn-menu-pill .menu-icon.menu-burguer {
  display: none;
}

/* Barras del icono */
.menu-icon.menu-burguer {
  position: relative;
  width: 2.2rem;
  height: 1.6rem;
  pointer-events: none;
}

.menu-icon.menu-burguer .bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: .2rem;
  background: #fff;
  border-radius: 999rem;
  transform-origin: center;
  transition: transform .45s cubic-bezier(.22, 1, .36, 1), opacity .3s ease;
}

.menu-icon.menu-burguer .b1 {
  top: 0;
}

.menu-icon.menu-burguer .b2 {
  top: 50%;
  transform: translateY(-50%);
}

.menu-icon.menu-burguer .b3 {
  bottom: 0;
}

/* Hover sutil en desktop (si quieres el “se mueve un poco”) */
@media (hover: hover) and (pointer: fine) {
  #openMenu:hover .menu-icon.menu-burguer {
    transform: rotate(12deg);
    transition: transform .5s cubic-bezier(.22, 1, .36, 1);
  }
}

.btn-menu-pill {
  padding: .9rem 1.6rem;
  font-size: 1.05rem;
  letter-spacing: .12em;
  border-width: .15rem;
}

.btn-menu-pill::before {
  transition: height .28s ease;
}

/* =========================
   MENÚ: texto -> hamburguesa en móvil
========================= */
@media (max-width: 768px){
  #openMenu .btn-text{
    display: none;
  }

  /* Muestra el icono hamburguesa */
  #openMenu .menu-icon.menu-burguer{
    display: block;
  }

  /* Ajusta el botón para que sea más “botón-icono” */
  #openMenu.btn-menu-pill{
    padding: 0;
    width: 4.2rem;
    height: 4.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  #openMenu.btn-menu-pill::before{
    height: 0% !important;
  }
}



/* =========================
   HERO
========================= */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-enter {
  opacity: 0;
  transform: translateY(10rem);
  animation: heroIn 900ms cubic-bezier(.22, 1, .36, 1) forwards;
  animation-delay: 500ms;
}

@keyframes heroIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .35);
}

.hero-shape {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateX(4%);
  width: clamp(24rem, 28vw, 40rem);
  z-index: 1;
  pointer-events: none;
}

.draw-shape {
  opacity: 0;
  transform: translate(-50%, -50%) translateX(4%) scale(.96);
  animation: shapeIn .9s cubic-bezier(.22, 1, .36, 1) forwards;
  animation-delay: 650ms;
}

@keyframes shapeIn {
  to {
    opacity: 1;
    transform: translate(-50%, -50%) translateX(4%) scale(1);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
  transform: translateX(2%);
}

.hero-title {
  font-size: clamp(2.1rem, 4.2vw, 7.6rem);
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 950;
  font-family: 'Shrimp';
  font-size: 900;
}

/* Reveal por palabras */
.hero-reveal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hero-reveal .line {
  display: flex;
  justify-content: center;
  width: fit-content;
  gap: 1.4rem;
  overflow: hidden;
}

.hero-reveal .w {
  display: inline-block;
  transform: translateY(120%);
  opacity: 0;
  animation: wordUp 700ms cubic-bezier(.22, 1, .36, 1) forwards;
  animation-delay: calc(350ms + var(--d));
}

@keyframes wordUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* =========================================
   MENÚ
========================================= */
.menu {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  /* Estado inicial: un poco abajo */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(1.6rem);
  transition:
    opacity .35s ease,
    transform .45s cubic-bezier(.22, 1, .36, 1),
    visibility 0s linear .45s;
}

.menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity .35s ease, transform .45s cubic-bezier(.22, 1, .36, 1), visibility 0s;
}

/* Cabecera del Menú */
.menu-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  padding: 3rem var(--gutter);
  width: 100%;
  box-sizing: border-box;
  gap: 1rem;
  opacity: 0;
  transform: translateY(-1.4rem);
}

.menu.is-open .menu-header {
  animation: menuTopDown .55s cubic-bezier(.22, 1, .36, 1) forwards;
  animation-delay: .12s;
}

@keyframes menuTopDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header-col.left {
  justify-self: start;
}

.header-col.center {
  justify-self: center;
}

.header-col.right {
  justify-self: end;
}

.menu-loc {
  color: #fff;
  font-size: 1.2rem;
  text-transform: uppercase;
  margin: 0;
  white-space: nowrap;
}

.menu-close {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-close:hover {
  background: #fff;
  color: #000;
}

/* Navegación del Menú */
.menu-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.menu-nav a {
  color: #fff !important;
  text-decoration: none;
  font-family: 'CamptonBlack', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(3.5rem, 8vw, 9.6rem);
  line-height: 0.85;
  transition: opacity 0.3s ease, color 0.3s ease;
  opacity: 0;
  transform: translateY(2.2rem);
}

.menu-nav a:hover {
  opacity: 0.45;
}

.menu-nav a.is-active {
  color: rgba(255, 255, 255, 0.45) !important;
}

/* Animación por links */
.menu.is-open .menu-nav a {
  animation: menuLinkUp .65s cubic-bezier(.22, 1, .36, 1) forwards;
}

.menu.is-open .menu-nav a:nth-child(1) {
  animation-delay: .20s;
}

.menu.is-open .menu-nav a:nth-child(2) {
  animation-delay: .28s;
}

.menu.is-open .menu-nav a:nth-child(3) {
  animation-delay: .36s;
}

.menu.is-open .menu-nav a:nth-child(4) {
  animation-delay: .44s;
}

.menu.is-open .menu-nav a:nth-child(5) {
  animation-delay: .52s;
}

@keyframes menuLinkUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer del Menú */
.menu-footer {
  padding: 3rem var(--gutter);
  opacity: 0;
  transform: translateY(1.6rem);
}

.menu.is-open .menu-footer {
  animation: menuBottomUp .55s cubic-bezier(.22, 1, .36, 1) forwards;
  animation-delay: .18s;
}

@keyframes menuBottomUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  font-size: 1.2rem;
  opacity: 0.6;
}

.footer-inner .ig {
  color: #fff;
  text-decoration: none;
}

/* Responsive del Menú */
@media (max-width: 650px) {
  .menu-header {
    padding: 1.5rem;
    gap: 0.5rem;
  }

  .menu-loc {
    font-size: 0.7rem;
  }

  .menu-close {
    width: 4rem;
    height: 4rem;
    font-size: 1.4rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/*========================
  APPROACH
=========================*/
.approach {
  position: relative;
  background: #000;
  color: #fff;
  overflow: hidden;
  padding: 0;
  padding-block: clamp(6rem, 8vw, 12rem);
}

.approach-content {
  text-align: center;
}

.approach-tittle {
  margin: 0 0 1.8rem;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(3.8rem, 5.2vw, 8.4rem);
  line-height: .95;
  letter-spacing: .02em;
  width: fit-content;
  margin-inline: auto;
  text-align: center;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  max-width: none;
}

.approach-text {
  margin: 0 auto;
  max-width: 98rem;
  font-size: 1.25rem;
  line-height: 1.55;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .65);
}

.approach-text .red {
  color: #ff2b2b;
}

/*=================
  BRANDS
=================*/
.brands {
  position: relative;
  margin-top: 4.6rem;
  padding-bottom: 2rem;
}

.brands-inner {
  padding: 1rem 0;
}

.brands-marquee {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 2.6rem;
  padding: 1.4rem 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.brands-track {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex: none;
  animation: brandsScroll 35s linear infinite;
  will-change: transform;
}

.brand-card {
  flex: none;
  height: 20rem;
  min-width: 25rem;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .01);
  border: 1px solid rgba(255, 255, 255, .01);
}

.brand-card img {
  max-height: 15rem;
  max-width: 14rem;
  width: auto;
  height: auto;
  opacity: .9;
  filter: brightness(1.05);
}

@keyframes brandsScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

/* =========================
   PORTFOLIO
=========================== */
.portfolio {
  position: relative;
  background: #000;
  color: #fff;
  overflow: hidden;
  padding: 0;
  padding-block: clamp(6rem, 8vw, 12rem);
}

.portfolio-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 3.2rem;
  margin: 0 0 6rem;
}

.portfolio-tittle {
  margin: 0;
  font-size: clamp(3.8rem, 6.2vw, 9.2rem);
  text-transform: uppercase;
  line-height: .9;
}

.portfolio-text {
  margin: 0;
  font-size: 1.4rem;
  letter-spacing: .08em;
  line-height: 1.6;
  opacity: .9;
  text-align: right;
  text-transform: uppercase;
}

.pages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(3rem, 4vw, 7rem);
  align-items: start;
}

.card {
  position: relative;
  display: block;
  text-decoration: none;
  color: #fff;
}

.card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2.4rem;
}

.pages .card {
  overflow: hidden;
}

.pages .card img {
  transition: transform .8s cubic-bezier(.22, 1, .36, 1), filter .6s ease;
}

.pages .card:hover img {
  transform: scale(1.08);
  filter: grayscale(20%) brightness(.8);
}

.card-title {
  margin: 1.6rem 0 0;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 1.4rem;
  line-height: 1.6;
}

.card-title span {
  opacity: .6;
}

.card-arrow {
  position: absolute;
  right: 0;
  bottom: 0;
  transform: translateY(.5rem);
  font-size: 2.2rem;
  opacity: .9;
}

.card-wide {
  grid-column: 1 / -1;
  max-width: 86rem;
  justify-self: center;
}

/* =========================
   ABOUT (AXIS LOCKUP + BLINDAJE)
========================= */
.about-us {
  position: relative;
  min-height: 120vh;
  background: #000;
  padding-top: 10vh;
  padding-bottom: 14vh;
  overflow: visible;
}

.about-title-wrap {
  position: sticky;
  top: 15vh;
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  height: 38vh;
  overflow: hidden;
}

.about-title {
  margin: 0;
  font-size: clamp(3.2rem, 7.5vw, 9.6rem);
  line-height: .85;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  will-change: transform, opacity;
  transform-origin: center;
  transform: translateY(-12%);
}

/* AXIS LOCKUP ESTILOS FUSIONADOS */
.axis-lockup {
  display: inline-flex;
  align-items: baseline;
  gap: 0.16em;
  font: inherit;
  line-height: 0.85;
  vertical-align: baseline;
  letter-spacing: inherit;
}

.axis-lockup .ax,
.axis-lockup .is {
  display: inline-block;
}

/* FUSIONADO: Dot estilo final (cuadrado, sin transform) */
.axis-lockup .axis-dot {
  width: 0.17em;
  height: 0.17em;
  background: #E3134A;
  border-radius: 0;
  /* Override aplicado */
  flex: none;
  transform: none;
  /* Override aplicado */
}

/* CUADRADO BLINDADO (Conservado) */
.axis-lockup .axis-square {
  display: inline-block;
  width: 0.18em;
  height: 0.18em;
  background: #E3134A;
  /* blindaje total */
  border-radius: 0 !important;
  clip-path: inset(0);
  mask: none !important;
  -webkit-mask: none !important;
  transform: translateY(0.12em);
  flex: none;
}

.about-card {
  position: relative;
  z-index: 10;
  width: min(52rem, 78%);
  margin: 6vh auto 0;
  display: flex;
  flex-direction: column;
}

.about-card-img {
  width: 100%;
  height: 55rem;
  object-fit: cover;
  display: block;
  transform-origin: center;
  border-radius: 2.4rem;
}

.about-copy-wide {
  margin-top: 3rem;
}

.about-text {
  max-width: 108rem;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(1.6rem, 1.1vw, 2.1rem);
  line-height: 1.75;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .95;
  text-wrap: balance;
}

.about-text2 {
  max-width: 92rem;
  margin: 3rem auto 0;
  text-align: center;
  font-size: clamp(1.4rem, 1vw, 1.9rem);
  line-height: 1.6;
  opacity: .55;
}

/*===================
  SERVICES
===================*/
.services {
  position: relative;
  background: #000;
  color: #fff;
  overflow: hidden;
  padding-block: clamp(6rem, 10vw, 15rem);
}

.services-content {
  display: grid;
  max-width: var(--container-wide);
  margin-inline: auto;
  grid-template-columns: minmax(30rem, 1fr) minmax(52rem, 68rem) 1fr;
  grid-template-areas:
    "title .    ."
    ".     list ."
    "img   img  img";
  column-gap: clamp(4rem, 5vw, 10rem);
  row-gap: clamp(6rem, 10vw, 14rem);
}

.services-title {
  grid-area: title;
  margin: 0;
  font-family: 'CamptonBlack', sans-serif;
  font-size: clamp(5rem, 8vw, 12rem);
  line-height: .82;
  text-transform: uppercase;
  white-space: nowrap;
  justify-self: start;
}

.services-list {
  grid-area: list;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.service-text {
  position: relative;
  padding-right: 4rem;
}

.service-text::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  opacity: .7;
  transform: translateY(.2rem);
  transition: transform .25s ease, opacity .25s ease;
}

.service-item.is-active .service-text::after {
  content: "—";
  opacity: 1;
}


/* --- ESTILOS DEL ITEM FUSIONADOS --- */
.service-item {
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease;
  cursor: pointer;
}

.service-header {
  display: grid;
  grid-template-columns: 8rem 1fr;
  column-gap: 2rem;
  align-items: center;
  padding-block: 3rem;
  cursor: pointer;
}

.dots {
  width: 8rem;
  display: flex;
  justify-content: flex-start;
  gap: .6rem;
}

.dots span {
  width: .7rem;
  height: .7rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
}

.dots span.active {
  background: #fff;
}

.service-text h3 {
  margin: 0;
  font-family: 'CamptonBold', sans-serif;
  font-size: clamp(2.4rem, 2.8vw, 3.4rem);
  font-weight: 900;
  text-transform: uppercase;
}

.service-text p {
  margin: .8rem 0 0;
  font-size: 1.4rem;
  text-transform: uppercase;
  opacity: .5;
}

/* --- DETALLE EXPANDIBLE FUSIONADO --- */
.service-detail {
  display: grid;
  /* La versión más completa del override: */
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s, padding 0.5s ease;
  overflow: hidden;
  opacity: 0;
}

.service-item.is-active .service-detail {
  grid-template-rows: 1fr;
  opacity: 1;
  padding-bottom: 4rem;
}

.detail-container {
  min-height: 0;
  display: flex;
  gap: 4rem;
  padding-left: 10rem;
  align-items: center;
}

.detail-media img {
  width: 28rem;
  /* Valor del override */
  height: 18rem;
  object-fit: cover;
  border-radius: 1rem;
}

.detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.detail-list li {
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

.detail-list li span {
  color: #fff;
  font-size: 1.4rem;
}

/* Imagen principal de fondo de la sección */
.services-img {
  grid-area: img;
  margin-top: 10rem;
  width: min(150rem, 100%);
  border-radius: 2.4rem;
  object-fit: cover;
  outline: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 30px 80px rgba(255, 40, 0, .22);
}

/*===================
  THE TEAM
===================*/
.team {
  background: #000;
  color: #fff;
  padding-block: clamp(8rem, 12vw, 18rem);
  overflow: hidden;
}

.team-statement {
  margin: 0;
  text-align: center;
  text-transform: uppercase;
  font-family: 'CamptonBold', sans-serif;
  font-weight: normal;
  letter-spacing: .015em;
  line-height: 1.08;
  font-size: clamp(2.6rem, 3.8vw, 7.2rem);
  max-width: 180rem;
  margin-inline: auto;
}

#team h2 {
  font-family: 'CamptonBold', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(3.2rem, 4.2vw, 5rem);
  line-height: 1.05;
  letter-spacing: .02em;
  max-width: min(150rem, 92vw);
  margin-inline: auto;
  text-align: center;
  text-wrap: balance;
  margin-top: clamp(6rem, 10vw, 20rem);
}

/* Wave reveal */
.wave-lines {
  display: inline;
}

.wave-lines .w {
  display: inline-block;
  white-space: pre;
  will-change: transform, opacity;
  opacity: 0;
  transform: translateY(120%);
}

.wave-lines.is-in .w {
  animation: waveUp 650ms cubic-bezier(.22, 1, .36, 1) forwards;
  animation-delay: var(--d);
}

@keyframes waveUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Grid imágenes */
.images-block {
  display: grid;
  padding-top: clamp(5rem, 7vw, 10rem);
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: minmax(10rem, auto);
  gap: clamp(1.2rem, 1.8vw, 2.6rem);
  align-items: stretch;
}

.images-block>div {
  margin: 0;
  padding: 0;
  border-radius: 2rem;
  overflow: hidden;
  align-self: center;
  justify-self: center;
}

.images-block img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image1,
.image2,
.image3,
.image4,
.image5,
.image6 {
  outline: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 30px 80px rgba(255, 40, 0, .22), 0 0 0 1px rgba(255, 255, 255, .04);
}

.image1 {
  grid-column-start: 2;
}

.image2 {
  grid-column-start: 4;
}

.image3 {
  grid-column-start: 3;
  grid-row-start: 2;
}

.image4 {
  grid-column-start: 2;
  grid-row-start: 3;
}

.image5 {
  grid-column-start: 4;
  grid-row-start: 3;
}

.image6 {
  grid-column-start: 3;
  grid-row-start: 4;
}

/*=====================
  STATS
=====================*/
.units {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.units>div {
  font-size: 5rem;
  margin: 0 auto;
  letter-spacing: .08rem;
  line-height: 1.05;
}

.units span {
  font-size: 2rem;
  color: rgba(255, 255, 255, .7);
  text-transform: uppercase;
}

.text-stats p {
  font-size: inherit;
}

.text-stats .counter {
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  display: inline-block;
  color: #fff;
}

#funfacts>.container>div:last-child {
  display: flex;
  justify-content: center;
  margin-top: 6rem;
}

#funfacts img {
  max-width: 100%;
  height: auto;
}

/* =========================
   GLOBAL CTA
========================= */
.global-cta {
  padding: 12rem 0;
  background: #000;
  color: #fff;
  text-align: center;
}

.global-cta-title {
  font-size: clamp(5rem, 8vw, 11rem);
  line-height: .9;
  text-transform: uppercase;
}

.global-cta-btn {
  display: inline-block;
  margin: 3rem 0 6rem;
  padding: 1.2rem 3rem;
  border-radius: 999rem;
  border: 1px solid #fff;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.global-cta-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 6rem;
}

.global-cta-center,
.global-cta-image {
  display: flex;
  justify-content: center;
}

.global-cta-image img {
  width: 32rem;
  max-width: min(42rem, 86vw);
  height: auto;
  border-radius: 2rem;
  display: block;
  margin-inline: auto;
}

.global-cta-side {
  font-size: 1.2rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .7;
}

.global-cta-side.right {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  justify-content: center;
}

.global-cta-side .dot {
  width: .6rem;
  height: .6rem;
  background: #fff;
  border-radius: 50%;
  flex: none;
}

.global-cta-copy {
  max-width: 90rem;
  margin: 6rem auto 3rem;
  font-size: 1.2rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .7;
}

.global-cta-links {
  display: flex;
  justify-content: center;
  gap: 4rem;
  font-size: 1.2rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.global-cta-links a {
  color: #fff;
  text-decoration: none;
  opacity: .8;
}

.global-cta-links a:hover {
  opacity: 1;
}

/* =========================
   CONTACT FORM
========================= */
.contact-form {
  background: #000;
  color: #fff;
  padding: 14rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8rem;
  align-items: center;
}

.contact-left h2 {
  font-size: clamp(3.6rem, 4.2vw, 6.2rem);
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.contact-left p {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .7;
}

.contact-left form {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  margin-top: 3rem;
}

.contact-left input,
.contact-left textarea {
  background: #111;
  border: 1px solid rgba(255, 255, 255, .08);
  padding: 1.4rem;
  color: #fff;
  font-size: 1.4rem;
}

.contact-left textarea {
  min-height: 12rem;
  resize: vertical;
}

.contact-left button {
  margin-top: 2rem;
  padding: 1.4rem;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 999rem;
  cursor: pointer;
  font-weight: 800;
}

.contact-right img {
  width: 100%;
  height: auto;
  border-radius: 2rem;
  display: block;
  object-fit: cover;
}

#contact-form {
  display: none;
}

#contact-form.is-open {
  display: block;
}

/* =========================
   PAGE TRANSITION OVERLAY
========================= */
.page-transition {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
}

/* =========================
   FOOTER
========================= */
.site-footer {
  background: #000;
  color: #fff;
  padding: clamp(7rem, 10vw, 12rem) 0 clamp(5rem, 7vw, 8rem);
}

.site-footer-inner {
  width: min(var(--container-wide), 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

/* Marca grande */
.footer-brand {
  display: flex;
  align-items: baseline;
  /* Ajustado del patch final */
  justify-content: center;
  gap: clamp(2.4rem, 5vw, 10rem);
  padding-block: clamp(2.2rem, 4vw, 6rem);
  max-width: 160rem;
  margin-inline: auto;
}

.footer-brand .brand-ax,
.footer-brand .brand-is {
  font-family: 'CamptonBlack', sans-serif;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: .85;
  text-transform: uppercase;
  font-size: clamp(10rem, 20vw, 34rem);
}

/* FUSIONADO: Dot del footer alineado */
.footer-brand .brand-dot {
  width: clamp(3.2rem, 4.8vw, 8rem);
  height: clamp(3.2rem, 4.8vw, 8rem);
  background: #E3134A;
  border-radius: .6rem;
  transform: none;
  /* Ajustado del patch final */
  flex: none;
}

/* Parte inferior */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin-top: clamp(2.5rem, 3vw, 4rem);
  padding-top: 2.2rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 1.3rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .9;
}

.footer-copy {
  white-space: nowrap;
}

.footer-toplink {
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  opacity: .85;
}

.footer-toplink:hover {
  opacity: 1;
}

/* Reveal scroll */
.reveal-up {
  opacity: 0;
  transform: translateY(2.2rem);
  transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .9s cubic-bezier(.22, 1, .36, 1);
  will-change: transform, opacity;
}

.reveal-up.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   MEDIA QUERIES (INTEGRADAS Y ORDENADAS)
========================================================= */

/* Pantallas tipo laptop */
@media (min-width: 1024px) and (max-height: 920px) {
  .menu-top {
    top: calc(3rem + env(safe-area-inset-top));
  }

  .menu-close {
    top: calc(3rem + env(safe-area-inset-top));
  }
}

/* 1024px */
@media (max-width: 1024px) {
  .services-content {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "list"
      "img";
    column-gap: 0;
  }

  .services-title {
    white-space: normal;
  }

  .services-list {
    padding-left: 0;
    transform: none;
    justify-self: center;
    width: min(65rem, 100%);
    margin-top: 5rem;
  }

  /* FUSIONADO: Ajuste de detalles de servicio en tablet */
  .detail-media {
    width: 100%;
  }

  .detail-media img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }
}

/* 900px */
@media (max-width: 900px) {
  .global-cta-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .global-cta-side.right {
    justify-content: center;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}

/* 820px */
@media (max-width: 820px) {
  .units {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2.2rem, 6vw, 4.2rem);
    align-items: start;
    justify-items: center;
    text-align: center;
  }

  .units>div {
    margin: 0;
    font-size: clamp(3.2rem, 8.5vw, 5rem);
    line-height: 1.05;
  }

  .units span {
    display: inline-block;
    margin-top: .8rem;
    font-size: clamp(1.2rem, 3.2vw, 1.8rem);
    line-height: 1.25;
  }

  .text-stats .counter {
    white-space: nowrap;
  }
}

/* 780px */
@media (max-width: 780px) {
  .footer-bottom {
    flex-direction: column;
    gap: 1.2rem;
  }

  .footer-brand .brand-ax,
  .footer-brand .brand-is {
    font-size: clamp(8rem, 22vw, 18rem);
    line-height: .9;
  }

  .footer-brand .brand-dot {
    width: clamp(3rem, 7vw, 5rem);
    height: clamp(3rem, 7vw, 5rem);
    transform: none;
  }
}

/* 768px (Ajustes de detalles y headers) */
@media (max-width: 768px) {
  .detail-container {
    flex-direction: column;
    padding-left: 2rem;
    align-items: flex-start;
  }

  .detail-media img {
    width: 100%;
  }

  /* FUSIONADO */
  main [class$="-top"]> :first-child {
    display: none;
  }

  main [class$="-top"] {
    justify-content: space-between;
    gap: 0;
  }
}

/* 680px */
@media (max-width: 680px) {
  .portfolio-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .portfolio-text {
    text-align: left;
  }

  .pages {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .card-wide {
    max-width: none;
    justify-self: stretch;
  }

  .about-title-wrap {
    top: 10vh;
    height: 28vh;
    padding-top: 0;
    overflow: hidden;
  }

  .about-title {
    transform: translateY(0);
    white-space: normal;
    line-height: .95;
  }

  .team-statement {
    letter-spacing: .02em;
    line-height: 1.12;
  }
}

/* 480px */
@media (max-width: 480px) {
  .approach-tittle {
    white-space: normal;
    text-wrap: balance;
    max-width: 22ch;
    line-height: .95;
    font-size: clamp(3.2rem, 10vw, 5.4rem);
    margin-inline: auto;
  }

  .images-block {
    display: flex;
    flex-direction: column;
  }
}

/* 420px */
@media (max-width: 420px) {
  .topbar {
    top: 1.8rem;
  }

  .topbar-inner {
    height: 6.4rem;
    column-gap: 1rem;
  }

  .brand-logo {
    height: 2.6rem;
  }

  .btn-menu {
    width: 4.2rem;
    height: 4.2rem;
  }

  .btn-contact {
    padding: .9rem 1rem;
    font-size: 1.1rem;
    letter-spacing: .10em;
  }

  /* menú top en columna en móviles */
  .menu-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    top: calc(2.6rem + env(safe-area-inset-top));
  }
}

/* 390px */
@media (max-width: 768px) {
  .btn-contact .btn-text {
    font-size: 0;
  }

  .btn-contact .btn-text::before {
    content: "CONTACT";
    font-size: 1rem;
    margin-left: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-up {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .menu,
  .menu * {
    transition: none !important;
    animation: none !important;
  }

  .menu {
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
}

@media (hover: none) and (pointer: coarse) {

  html,
  body {
    cursor: auto;
  }

  * {
    cursor: auto;
  }

  .cursor-dot {
    display: none !important;
  }
}


@media (max-width: 820px){
  #funfacts img{
    width: min(92vw, 52rem);
    height: auto;
  }
}

@media (max-width: 480px){
  #funfacts img{
    width: 96vw;
    max-width: none;
  }

  #funfacts > .container > div:last-child{
    margin-top: 3.5rem;
  }
}

