/* ==========================================================================
   BURAKKO — hoja de estilos
   Diseño responsive real. Sin `zoom`, sin grilla fija, sin estilos inline.

   Estructura del archivo:
     01. Tokens
     02. Reset y base
     03. Utilidades de layout y tipografía
     04. Header y navegación
     05. Hero
     06. Sobre la agencia
     07. Portfolio
     08. Servicios
     09. IA
     10. Proceso
     11. Números
     12. Equipo
     13. Clientes
     14. Testimonios
     15. CTA final
     16. Footer
     17. Breakpoints
   ========================================================================== */


/* 01. TOKENS ============================================================== */

:root {
  /* Color */
  --bg:            #050505;
  /* Igual que --bg: en monitores anchos el contenido queda centrado sin
     que se vea una "caja" recortada sobre negro puro, como pasaba antes. */
  --bg-page:       #050505;
  --accent:        #1CE8B2;
  --ink:           #fff;
  --ink-70:        rgba(255, 255, 255, .72);
  --ink-60:        rgba(255, 255, 255, .66);
  --ink-50:        rgba(255, 255, 255, .5);
  --line:          rgba(255, 255, 255, .09);
  --line-soft:     rgba(255, 255, 255, .08);
  --surface:       linear-gradient(170deg, #131313, #0A0A0A);
  --surface-alt:   linear-gradient(170deg, #121212, #0A0A0A);
  --grad-brand:    linear-gradient(90deg, #7C5CFF, #A78FFF 22%, #86D6E4 48%, #43E6C6 72%, #1CE8B2);

  /* Layout — el ancho de diseño original (1240px) pasa a ser un MÁXIMO,
     no un ancho fijo. El padding lateral escala con el viewport.

     Para aprovechar más los monitores grandes, subir --maxw (p. ej. 1440px).
     Todo el layout es fluido, así que se adapta solo. */
  --maxw:          1920px;
  --gutter:        clamp(20px, 4.8vw, 60px);
  --section-y:     clamp(48px, 6.5vw, 84px);
  --section-y-top: clamp(44px, 6vw, 76px);

  /* Tipografía fluida: cada tamaño interpola entre mobile y los valores
     originales del diseño de escritorio. */
  --fs-display:  clamp(2.6rem, 8.4vw, 6.5rem);   /* 104px */
  --fs-h2-xl:    clamp(1.95rem, 4.2vw, 3.25rem); /*  52px */
  --fs-h2-lg:    clamp(1.85rem, 3.8vw, 3rem);    /*  48px */
  --fs-h2-md:    clamp(1.75rem, 3.5vw, 2.75rem); /*  44px */
  --fs-h3:       clamp(1.7rem, 3.3vw, 2.625rem); /*  42px */
  --fs-card-t:   clamp(1.25rem, 1.9vw, 1.4375rem); /* 23px */
  --fs-body-lg:  clamp(1rem, 1.5vw, 1.1875rem);  /*  19px */
  --fs-body:     clamp(.95rem, 1.35vw, 1.0625rem); /* 17px */
  --fs-body-sm:  clamp(.9rem, 1.25vw, 1rem);     /*  16px */
  --fs-eyebrow:  clamp(.6875rem, 1vw, .8125rem); /*  13px */

  --radius-lg: 30px;
  --radius:    26px;
  --radius-sm: 22px;
}


/* 02. RESET Y BASE ======================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-page);
}

body {
  font-family: Figtree, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Evita el scroll horizontal si algún elemento decorativo se desborda. */
  overflow-x: hidden;
}

h1, h2, h3, p { margin: 0; }

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { color: var(--ink); }

/* Foco visible para teclado — accesibilidad. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* Sólo para lectores de pantalla. */
.visually-hidden {
  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 {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #050505;
  font-weight: 700;
  transition: top .18s ease;
}
.skip-link:focus { top: 12px; color: #050505; }


/* 03. LAYOUT Y TIPOGRAFÍA ================================================= */

.site {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  background: var(--bg);
}

.section {
  position: relative;
  padding: 0 var(--gutter) var(--section-y);
  overflow: hidden;
}
.section--pt   { padding-top: var(--section-y-top); }
.section--flat { overflow: visible; }

/* Compensa el header fijo al saltar con anclas. */
.section[id] { scroll-margin-top: clamp(80px, 11vw, 108px); }

/* Manchas de color decorativas. */
.blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.section > *:not(.blob) { position: relative; z-index: 1; }

/* Encabezado de sección: título a la izquierda, texto o CTA a la derecha.
   Colapsa a una columna en pantallas chicas. */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 60px);
}
.section-head--start { align-items: flex-start; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "\2731";
  color: var(--accent);
  font-size: 1.15em;
  letter-spacing: 0;
}

.title-xl, .title-lg, .title-md {
  margin-top: clamp(18px, 2vw, 26px);
  font-weight: 300;
  letter-spacing: -.038em;
  text-wrap: pretty;
}
.title-xl { font-size: var(--fs-h2-xl); line-height: 1.06; }
.title-lg { font-size: var(--fs-h2-lg); line-height: 1.08; }
.title-md { font-size: var(--fs-h2-md); line-height: 1.12; }

.title-xl b, .title-lg b, .title-md b { font-weight: 800; }

.accent { color: var(--accent); }

/* Texto con degradé. Se mantiene el color sólido como fallback. */
.grad {
  color: var(--accent);
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Párrafo destacado con barra lateral. */
.lede {
  max-width: 46ch;
  padding-left: 22px;
  padding-bottom: 8px;
  border-left: 2px solid var(--accent);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink-60);
  text-wrap: pretty;
}

.card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}

/* Botones y píldoras. */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 15px 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: var(--ink);
  font-size: var(--fs-body-sm);
  font-weight: 700;
  line-height: 1.2;
}
.pill:hover { background: rgba(255, 255, 255, .14); color: var(--ink); }

.pill--outline {
  background: none;
  border: 1px solid rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .8);
}

.icon-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--accent);
  color: #050505;
  font-size: 21px;
  font-weight: 700;
}
.icon-btn:hover { color: #050505; filter: brightness(1.12); }
.icon-btn--sm { width: 42px; height: 42px; font-size: 19px; }
.icon-btn--lg { width: 54px; height: 54px; font-size: 23px; }

/* Grupo botón + flecha. */
.cta-group {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}


/* 04. HEADER ============================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: clamp(18px, 2.7vw, 34px) var(--gutter);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(5, 5, 5, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: clamp(20px, 2.1vw, 26px);
  font-weight: 800;
  letter-spacing: -.03em;
}
.brand:hover { color: var(--ink); }
.brand__mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent);
}
.brand__mark--sm { width: 26px; height: 26px; border-radius: 8px; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.7vw, 34px);
}
.nav__link {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-70);
}
.nav__link:hover { color: var(--ink); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header__email {
  padding: 11px 22px;
  font-size: 14px;
}

/* Botón hamburguesa — sólo visible en mobile/tablet. */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle span {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: background .18s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .22s ease, top .22s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }

.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* Panel desplegable. */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 2px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.mobile-nav[data-open="true"] { display: flex; }
.mobile-nav a {
  padding: 14px 4px;   /* área táctil cómoda */
  color: var(--ink-70);
  font-size: 17px;
  font-weight: 600;
}
.mobile-nav a:hover { color: var(--ink); }
.mobile-nav .pill {
  margin-top: 10px;
  justify-content: center;
}


/* 05. HERO ================================================================ */

.hero { padding-top: clamp(52px, 7.5vw, 96px); }

.hero__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(28px, 3vw, 40px);
}

.hero__title {
  margin-top: clamp(20px, 2.4vw, 30px);
  font-size: var(--fs-display);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -.045em;
}
.hero__title b { font-weight: 800; color: var(--accent); }

.hero__greet {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: clamp(0px, 2.7vw, 34px);
}

.bubble {
  position: relative;
  padding: 20px 28px;
  border-radius: 44px 44px 12px 44px;
  border: 1.5px solid var(--ink);
  background: linear-gradient(170deg, #151515, #0A0A0A);
}
.bubble__title {
  font-size: clamp(15px, 1.4vw, 17px);
  font-weight: 700;
  letter-spacing: -.01em;
}
.bubble__sub {
  margin-top: 4px;
  font-size: clamp(13px, 1.2vw, 15px);
  font-weight: 400;
  color: rgba(255, 255, 255, .62);
}
.bubble::before,
.bubble::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
}
.bubble::before { right: -13px; bottom: 14px; width: 15px; height: 15px; background: #131313; }
.bubble::after  { right: -25px; bottom: 3px;  width: 9px;  height: 9px;  background: #111; }

.avatar {
  flex: 0 0 auto;
  width: clamp(84px, 9.4vw, 116px);
  height: clamp(84px, 9.4vw, 116px);
  margin-left: 14px;
  padding: 3px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7C5CFF, #A78FFF 30%, #86D6E4 62%, #1CE8B2);
}
.avatar__inner {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  overflow: hidden;
  background: #E9E8ED;
}
.avatar__inner img { width: 100%; height: 100%; object-fit: cover; }

.hero__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(28px, 4vw, 60px);
  margin-top: clamp(36px, 4.5vw, 56px);
}

.flags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.flags img {
  width: 42px;
  height: 28px;
  object-fit: cover;
  border-radius: 8px;
}


/* 06. SOBRE LA AGENCIA ==================================================== */

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.about__intro .title-lg { font-size: clamp(1.9rem, 4vw, 3.125rem); }
.about__text {
  margin-top: 24px;
  font-size: var(--fs-body-lg);
  line-height: 1.6;
  color: var(--ink-60);
}

.about__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.metric {
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 26px 24px 24px;
}
.metric--offset { margin-top: 38px; }
.metric--center { text-align: center; }
.metric--wide {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  padding: 26px 26px 24px;
}
.metric--wide > div { flex: 1 1 220px; }
.metric--wide svg { flex: 0 0 auto; max-width: 100%; height: auto; }

.metric__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.metric__value {
  margin-top: 10px;
  font-size: clamp(34px, 3.6vw, 44px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1;
  color: var(--accent);
}
.metric__chart { margin-top: 18px; width: 100%; height: auto; overflow:visible; }
.metric__chart--donut { margin: 16px auto 0; max-width: 132px; }
.metric__legend {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-50);
}
.metric__legend span { display: flex; align-items: center; gap: 7px; }
.dot { width: 8px; height: 8px; border-radius: 999px; background: var(--accent); }
.dot--muted { background: rgba(255, 255, 255, .3); }
.metric__caption {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-50);
}
.metric__title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.35;
}
.metric__lead {
  margin-top: 10px;
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.28;
}


/* 07. PORTFOLIO =========================================================== */

.portfolio__grid {
  margin-top: clamp(28px, 3.5vw, 44px);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.portfolio__grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 14px;
}


/* 08. SERVICIOS =========================================================== */

.services__grid {
  margin-top: clamp(32px, 4.2vw, 52px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service {
  padding: 30px 28px 34px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}
.service__icon { display: block; }
.service__title {
  margin-top: clamp(28px, 4vw, 52px);
  font-size: var(--fs-card-t);
  font-weight: 700;
  letter-spacing: -.02em;
}
.service__desc {
  margin-top: 12px;
  font-size: var(--fs-body-sm);
  line-height: 1.6;
  color: rgba(255, 255, 255, .6);
}


/* 09. IA ================================================================== */

.ai__grid {
  margin-top: clamp(28px, 3.5vw, 44px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.ai__card {
  padding: 32px 30px 34px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}
.ai__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.ai__num { font-size: 15px; font-weight: 700; color: var(--accent); }
.ai__title { font-size: var(--fs-card-t); font-weight: 700; letter-spacing: -.02em; }
.ai__desc {
  margin-top: 14px;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink-60);
  text-wrap: pretty;
}


/* 10. PROCESO ============================================================= */

.process__flow {
  margin-top: clamp(32px, 4.2vw, 52px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.process__row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.process__step {
  flex: 1;
  padding: 28px 26px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .3);
  background: linear-gradient(170deg, rgba(255, 255, 255, .08), #0A0A0A);
}
.process__num {
  font-size: clamp(30px, 3.1vw, 38px);
  font-weight: 800;
  line-height: 1;
}
.process__label {
  margin-top: 14px;
  font-size: clamp(17px, 1.6vw, 19px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.015em;
}

/* Conectores decorativos: se ocultan cuando el flujo pasa a vertical. */
.process__link { flex: 0 0 auto; }
.process__turn { display: flex; }
.process__turn--right { justify-content: flex-end; padding-right: 76px; }
.process__turn--left  { padding-left: 76px; }


/* 11. NÚMEROS ============================================================= */

.numbers__frame {
  border-radius: var(--radius-lg);
  padding: 2px;
  background: linear-gradient(150deg, #1CE8B2, rgba(28, 232, 178, .08) 45%, rgba(255, 255, 255, .05));
}
.numbers__inner {
  border-radius: 28px;
  background: #080808;
  padding: clamp(32px, 4.5vw, 56px) clamp(24px, 4.2vw, 52px);
}
.numbers__title { font-size: var(--fs-h2-md); line-height: 1.08; letter-spacing: -.035em; }

/* Cada dato es una celda completa (número + etiqueta), así el bloque
   reflowea sin romperse al reducir el número de columnas. */
.numbers__grid {
  margin-top: clamp(32px, 4vw, 48px);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px 0;
}
.number {
  padding: 0 24px;
  border-left: 1px solid rgba(255, 255, 255, .1);
}
.number:nth-child(5n + 1) { border-left: 0; padding-left: 0; }
.number__pre {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.number__value {
  margin-top: 6px;
  font-size: clamp(34px, 4.2vw, 52px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1;
  color: var(--accent);
  white-space: nowrap;
}
.number__label {
  margin-top: 14px;
  font-size: var(--fs-body-sm);
  font-weight: 500;
  line-height: 1.42;
  color: var(--ink-60);
}


/* 12. EQUIPO ============================================================== */

.founder {
  margin-top: clamp(32px, 4vw, 48px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  overflow: hidden;
}
.founder__media {
  flex: 0 0 380px;
  position: relative;
  background: #000;
  overflow: hidden;
}
.founder__media img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  height: 104%;
  width: auto;
  max-width: none;
}
.founder__body {
  flex: 1;
  padding: clamp(30px, 3.8vw, 48px);
}
.founder__name {
  margin-top: 18px;
  font-size: var(--fs-h3);
  font-weight: 300;
  letter-spacing: -.04em;
  line-height: 1;
}
.founder__name b { font-weight: 800; color: var(--accent); }
.founder__bio {
  margin-top: 22px;
  max-width: 62ch;
  font-size: var(--fs-body);
  line-height: 1.62;
  color: var(--ink-60);
  text-wrap: pretty;
}
.founder__label {
  margin-top: 28px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.tags {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.tag {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12);
  font-size: 15px;
  font-weight: 600;
}

.team__grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.member {
  padding: 24px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-alt);
}
.member__name { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.member__role {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.5;
}


/* 13. CLIENTES ============================================================ */

.clients__frame {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(170deg, #111, #080808);
  padding: clamp(32px, 4.2vw, 52px) clamp(24px, 3.8vw, 48px);
}
.clients__title { max-width: 600px; }
.clients__label {
  margin-top: clamp(32px, 3.5vw, 44px);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.clients__grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
}
.logo {
  background: #fff;
  border-radius: 12px;
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.logo img { width: 100%; height: 100%; object-fit: contain; }


/* 14. TESTIMONIOS ========================================================= */

.quotes {
  margin-top: clamp(32px, 4vw, 48px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.quote {
  padding: 34px 30px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.quote__mark {
  color: var(--accent);
  font-size: 34px;
  font-weight: 800;
  line-height: .6;
}
.quote__text {
  margin-top: 18px;
  font-size: var(--fs-body-lg);
  line-height: 1.56;
  text-wrap: pretty;
}
.quote__author {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.quote__avatar {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--accent);
  color: #050505;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 800;
}
.quote__name { font-size: 17px; font-weight: 700; }
.quote__org {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-50);
}


/* 15. CTA FINAL =========================================================== */

.cta {
  padding-top: clamp(48px, 5.6vw, 70px);
  padding-bottom: clamp(52px, 6vw, 76px);
  border-top: 1px solid var(--line-soft);
  text-align: center;
}
.cta__kicker {
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
}
.cta__main {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3.2vw, 40px);
}
.cta__title {
  font-size: var(--fs-display);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: .92;
  text-transform: uppercase;
  text-align: right;
}
.cta__badge {
  flex: 0 0 auto;
  width: clamp(112px, 12.3vw, 152px);
  height: clamp(112px, 12.3vw, 152px);
  border-radius: 999px;
  background: var(--accent);
  color: #050505;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.cta__badge:hover { color: #050505; filter: brightness(1.1); }
.cta__badge span:first-child { font-size: 24px; font-weight: 700; }
.cta__badge span:last-child  { font-size: 15px; font-weight: 700; }
.cta__note {
  margin-top: 34px;
  font-size: var(--fs-body-lg);
  color: var(--ink-60);
}
.cta__contacts {
  margin-top: 26px;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
.cta__contacts .pill { padding: 17px 34px; }


/* 16. FOOTER ============================================================== */

.footer { padding: 0 var(--gutter) clamp(52px, 6vw, 76px); }

.offices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.office {
  padding: 26px 28px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-alt);
}
.office__country {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--accent);
}
.office__address {
  margin-top: 12px;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.45;
}

.footer__bar {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.social {
  position: relative;
  display: flex;
  align-items: center;
  padding-left: 44px;
}
.social__icon {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  width: 88px;
  height: 88px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7C5CFF, #A78FFF 28%, #86D6E4 60%, #1CE8B2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.social__link {
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 22px 26px 22px 74px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16);
  color: var(--ink);
  /* Sin esto el flex item no baja de su ancho de contenido y desborda
     en pantallas de 320px. */
  min-width: 0;
}
.social__link > span { min-width: 0; }
.social__title, .social__handle { overflow-wrap: break-word; }
.social__link:hover { color: var(--ink); border-color: rgba(255, 255, 255, .34); }
.social__title {
  font-size: clamp(20px, 2.1vw, 26px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
}
.social__handle {
  margin-top: 5px;
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 400;
  color: var(--ink-70);
}
.social__arrow {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
}


/* 17. BREAKPOINTS ========================================================= */

/* --- ≤1100px: laptops chicas y tablets apaisadas ------------------------- */
@media (max-width: 1100px) {
  .portfolio__grid { grid-template-columns: repeat(4, 1fr); }
  .clients__grid   { grid-template-columns: repeat(6, 1fr); }
  .founder__media  { flex-basis: 300px; }
}

/* --- ≤1000px: se colapsa la navegación al menú hamburguesa --------------- */
@media (max-width: 1000px) {
  .header .nav,
  .header__email { display: none; }
  .nav-toggle    { display: inline-flex; }

  .about__grid { grid-template-columns: 1fr; }

  .numbers__grid { grid-template-columns: repeat(3, 1fr); }
  .number:nth-child(5n + 1) { border-left: 1px solid rgba(255, 255, 255, .1); padding-left: 24px; }
  .number:nth-child(3n + 1) { border-left: 0; padding-left: 0; }
}

/* --- ≤900px: grillas de 3 pasan a 2 ------------------------------------- */
@media (max-width: 900px) {
  .services__grid,
  .quotes,
  .team__grid { grid-template-columns: repeat(2, 1fr); }

  /* Apilado, el recuadro pasa a ser ancho y bajo. La foto es un óvalo
     vertical, así que se muestra completa (contain) en vez de recortarla. */
  .founder { flex-direction: column; }
  .founder__media {
    flex: 0 0 auto;
    height: clamp(300px, 58vw, 420px);
  }
  .founder__media img {
    position: static;
    transform: none;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }
}

/* --- ≤860px: el flujo del proceso pasa a vertical ------------------------
   Las filas 1 y 3 se apilan en orden normal; la fila 2, que en escritorio
   va de derecha a izquierda (06 · 05 · 04), usa column-reverse para que en
   vertical se lea 04 · 05 · 06. Los conectores se ocultan. */
@media (max-width: 860px) {
  .process__row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .process__row--reverse { flex-direction: column-reverse; }
  .process__link,
  .process__turn { display: none; }

  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head--end { align-items: flex-start; }
  .lede { max-width: none; }
}

/* --- ≤760px: una sola columna en la mayoría de los bloques --------------- */
@media (max-width: 760px) {
  .portfolio__grid { grid-template-columns: repeat(3, 1fr); }
  .clients__grid   { grid-template-columns: repeat(4, 1fr); }
  .ai__grid        { grid-template-columns: 1fr; }
  .offices         { grid-template-columns: 1fr; }

  .hero__top     { flex-direction: column; }
  .hero__greet   { margin-top: 4px; }
  .hero__bottom  { flex-direction: column; align-items: flex-start; }

  .cta__main   { flex-direction: column; }
  .cta__title  { text-align: center; }

  .footer__bar { flex-direction: column; align-items: flex-start; }
  .social      { width: 100%; }
  .social__link {
    flex: 1;
    gap: 16px;
    justify-content: space-between;
    padding: 18px 20px 18px 62px;
  }
  .social__icon { width: 72px; height: 72px; }
  .social__icon svg { width: 38px; height: 38px; }
}

/* --- ≤620px: teléfonos --------------------------------------------------- */
@media (max-width: 620px) {
  .services__grid,
  .quotes,
  .team__grid    { grid-template-columns: 1fr; }
  .clients__grid { grid-template-columns: repeat(3, 1fr); }

  .numbers__grid { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
  .number:nth-child(3n + 1) { border-left: 1px solid rgba(255, 255, 255, .1); padding-left: 20px; }
  .number:nth-child(2n + 1) { border-left: 0; padding-left: 0; }
  .number { padding: 0 20px; }

  .about__cards       { grid-template-columns: 1fr; }
  .metric--offset     { margin-top: 0; }
  .metric--wide       { flex-direction: column; align-items: flex-start; gap: 20px; }

  .quote__text  { margin-top: 14px; }
  .quote__author{ margin-top: 24px; }

  .bubble  { padding: 16px 22px; }
  .avatar  { margin-left: 8px; }

  .cta__contacts { flex-direction: column; align-items: stretch; width: 100%; }
  .cta__contacts .pill { justify-content: center; }

  /* Manchas decorativas más chicas: en mobile sólo aportan peso visual. */
  .blob { opacity: .55; }
}

/* --- ≤430px: pantallas angostas ------------------------------------------ */
@media (max-width: 430px) {
  .portfolio__grid { grid-template-columns: repeat(2, 1fr); }
  /* Las 7 banderas entran en una sola línea. */
  .flags { gap: 8px; }
  .flags img { width: 32px; height: 21px; }
  .tag { padding: 8px 14px; font-size: 14px; }
  .social__link { padding: 14px 14px 14px 34px; gap: 10px; }
  .social__title { font-size: 17px; }
  .social__handle { font-size: 13px; }
  .social__icon { width: 56px; height: 56px; }
  .social__icon svg { width: 32px; height: 32px; }
  .social__arrow { width: 38px; height: 38px; font-size: 17px; }

  /* "10.000" no entra a 2 columnas con el cuerpo original. */
  .numbers__inner { padding-left: 18px; padding-right: 18px; }
  .number { padding: 0 12px; }
  .number__value { font-size: 28px; }
}

@media print {
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .header, .skip-link { display: none; }
}


/* 18. MODAL DE CONTACTO ===================================================

   Se usa el elemento nativo <dialog> con showModal(): el navegador aporta
   gratis el atrapado de foco, el `inert` sobre el resto de la página, el
   cierre con Escape y la devolución del foco al botón que lo abrió.
   Escribir todo eso a mano es donde se rompen la mayoría de los modales.
   ========================================================================== */

.modal {
  width: min(760px, calc(100vw - 2 * var(--gutter)));
  max-height: min(92dvh, 900px);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: visible;
}

.modal::backdrop {
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Borde con degradé: 1.5px de relleno con gradiente y una capa sólida encima. */
.modal__frame {
  border-radius: 32px;
  padding: 1.5px;
  background: linear-gradient(155deg, #7C5CFF, #86D6E4 46%, #1CE8B2);
  max-height: inherit;
}

.modal__inner {
  position: relative;
  border-radius: 30.5px;
  background: #0A0A0A;
  padding: clamp(28px, 4vw, 48px);
  max-height: min(92dvh, 900px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal__close {
  position: absolute;
  top: clamp(18px, 2.4vw, 28px);
  right: clamp(18px, 2.4vw, 28px);
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  color: var(--ink);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease;
}
.modal__close:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .34);
}

.modal__title {
  margin-top: clamp(14px, 1.6vw, 20px);
  font-size: clamp(2rem, 4.4vw, 3.125rem);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -.038em;
}
.modal__title b { font-weight: 800; }


/* --- Formulario ---------------------------------------------------------- */

.form { margin-top: clamp(24px, 3vw, 34px); }

.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}

.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }

.field__label {
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-50);
}

.field__input,
.field__area {
  width: 100%;
  padding: 15px 18px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 14px;
  background: rgba(255, 255, 255, .028);
  color: var(--ink);
  font-family: inherit;
  /* 16px es el mínimo para que iOS no haga zoom al enfocar el campo. */
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  transition: border-color .16s ease, background .16s ease;
}
.field__area {
  min-height: 150px;
  resize: vertical;
}

.field__input::placeholder,
.field__area::placeholder { color: rgba(255, 255, 255, .32); }

.field__input:hover,
.field__area:hover { border-color: rgba(255, 255, 255, .2); }

.field__input:focus,
.field__area:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, .05);
}
/* El foco por teclado sí lleva anillo visible. */
.field__input:focus-visible,
.field__area:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.field__input[aria-invalid="true"],
.field__area[aria-invalid="true"] { border-color: #FF6B6B; }

.field__error {
  margin-top: 7px;
  font-size: 13px;
  font-weight: 500;
  color: #FF8F8F;
}

/* Honeypot: fuera de la vista y del recorrido de foco, pero no
   `display:none` — algunos bots ignoran los campos ocultos así. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__pie {
  margin-top: clamp(22px, 2.6vw, 30px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.form__submit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 17px 34px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(95deg, #A78FFF, #86D6E4 46%, #1CE8B2);
  color: #050505;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: filter .16s ease, opacity .16s ease;
}
.form__submit:hover { filter: brightness(1.08); }
.form__submit:disabled { opacity: .6; cursor: progress; }
.form__submit svg { flex: 0 0 auto; }

.form__estado {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}
.form__estado[data-tipo="error"] { color: #FF8F8F; }
.form__estado[data-tipo="ok"]    { color: var(--accent); }

/* Pantalla de confirmación, reemplaza al formulario tras el envío. */
.form__exito { display: none; }
.form[data-enviado="true"] .form__cuerpo { display: none; }
.form[data-enviado="true"] .form__exito  { display: block; }

.form__exito-icono {
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(28, 232, 178, .14);
  color: var(--accent);
  font-size: 28px;
}
.form__exito-titulo {
  margin-top: 20px;
  font-size: clamp(1.4rem, 2.6vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -.02em;
}
.form__exito-texto {
  margin-top: 10px;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink-60);
}

/* Bloquea el scroll del fondo mientras el modal está abierto. */
body.modal-abierto { overflow: hidden; }

@media (max-width: 620px) {
  .modal { width: calc(100vw - 24px); }
  .form__grid { grid-template-columns: 1fr; }
  .modal__close { width: 42px; height: 42px; }
  /* Con el teclado abierto queda poco alto: el textarea se achica. */
  .field__area { min-height: 118px; }
  .form__submit { width: 100%; justify-content: center; }
}


/* 19. REELS ===============================================================

   Rejilla de videos verticales (9:16). Cada tarjeta arranca como una
   imagen de portada y solo descarga el video cuando alguien hace clic.

   Rendimiento: el <video> lleva preload="none" y NO usa el atributo
   `poster` (que el navegador descarga siempre). La portada es un <img>
   con loading="lazy", así que ni siquiera esa imagen se pide hasta que
   la sección se acerca al viewport. Con la sección fuera de pantalla el
   costo es cero bytes.
   ========================================================================== */

.reels__grid {
  margin-top: clamp(28px, 3.5vw, 44px);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.reel {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  background: #0A0A0A;
  border: 1px solid var(--line);
}

.reel__media,
.reel__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.reel__media {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--ink);
  transition: opacity .25s ease, visibility 0s;
}

.reel__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Velo inferior para que el rótulo se lea sobre cualquier portada. */
.reel__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .1) 40%, rgba(0, 0, 0, .78));
}

.reel__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: clamp(48px, 4.4vw, 62px);
  height: clamp(48px, 4.4vw, 62px);
  border-radius: 999px;
  background: var(--accent);
  color: #050505;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, filter .2s ease;
}
.reel__media:hover .reel__play { transform: translate(-50%, -50%) scale(1.09); }
.reel__media:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.reel__pie {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 15px;
  text-align: left;
}
.reel__titulo {
  display: block;
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.3;
}
.reel__cliente {
  display: block;
  margin-top: 3px;
  font-size: clamp(10px, .85vw, 11px);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}

/* El video vive en el DOM desde el principio pero sin descargar nada.
   Se muestra recién al reproducir. */
/* visibility (y no solo opacity) es lo que saca el elemento del orden de
   tabulación. Con opacity:0 a secas, los 6 videos ocultos y sus controles
   nativos seguirían siendo navegables con Tab. */
.reel__video {
  object-fit: cover;
  background: #000;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility 0s linear .25s;
}

.reel[data-activo="true"] .reel__video {
  opacity: 1;
  visibility: visible;
  transition: opacity .25s ease, visibility 0s;
}
.reel[data-activo="true"] .reel__media {
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility 0s linear .25s;
}

@media (prefers-reduced-motion: reduce) {
  .reel__media, .reel__video, .reel__play { transition: none; }
}

@media (max-width: 1499px) { .reels__grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1099px) { .reels__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width:  699px) { .reels__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

.whatsapp-button {
  width: 48px;
  height: 48px;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 30;
  transition: all .3s ease-in-out; }
.whatsapp-button .icon {
  transition: all 400ms ease;
  transform: scale(1); }
.whatsapp-button:hover .icon {
  transform: scale(1.1); }

@media (min-width: 1024px) {
  .whatsapp-button {
    width: 52px;
    height: 52px;
    bottom: 42px;
    right: 42px; }
  .whatsapp-button .icon {
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.4)); }
}