/* =============================================
   SmartConstructIA — Diseño nuevo
   Estética: anubi.io + terminal-industries.com
   Vanilla CSS, zero dependencies
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Anton&family=Archivo+Black&display=swap');

/* ── TOKENS ─────────────────────────────────── */
:root {
  --ease:    cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);

  --bg:         #f4f3f0;
  --bg-off:     #f9f8f5;
  --bg-white:   #ffffff;
  --bg-dark:    #111110;
  --ink:        #111110;
  --ink-mid:    #58574f;
  --ink-muted:  #9b9890;
  --border:     rgba(17,17,16,0.1);
  --border-d:   rgba(244,243,240,0.09);
  --green:      #10b981;
  --cyan:       #06b6d4;

  --dot: radial-gradient(circle, rgba(17,17,16,0.12) 1px, transparent 1px);
}

/* ── RESET ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  font-family: 'Inter', sans-serif;
  background: #ffffff;
  color: #000000;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ── SCROLLBAR integrada ─────────────────────── */
html { scrollbar-width: thin; scrollbar-color: #000 transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #000; border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: #333; }

/* ── CURSOR custom ───────────────────────────── */
html, body {
  cursor: url('cursor/normal-click-32.png') 4 4, auto;
}
a, a:hover, button, .btn, .nav-btn, .nav-links a,
input[type="submit"], input[type="button"],
[role="button"], [onclick], label.qcheck, summary,
.qbtn, .faq-btn, .marquee-item {
  cursor: url('cursor/select-click-32.png') 10 4, pointer !important;
}
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  cursor: text;
}

/* ── SCROLL REVEAL ───────────────────────────── */
.sr {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.sr.on { opacity: 1; transform: translateY(0); }

.sr-scale {
  opacity: 0;
  transform: scale(.95);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.sr-scale.on { opacity: 1; transform: scale(1); }

.sr-left {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.sr-left.on { opacity: 1; transform: translateX(0); }

/* stagger delays */
.d1 { transition-delay:  60ms; }
.d2 { transition-delay: 130ms; }
.d3 { transition-delay: 200ms; }
.d4 { transition-delay: 270ms; }
.d5 { transition-delay: 340ms; }
.d6 { transition-delay: 410ms; }

/* ── TIPOGRAFÍA ──────────────────────────────── */
.t-display {
  font-size: clamp(3.2rem, 7.5vw, 8rem);
  font-weight: 800;
  line-height: .93;
  letter-spacing: -.04em;
  color: var(--ink);
}
.t-headline {
  font-size: clamp(2rem, 4.5vw, 4.5rem);
  font-weight: 700;
  line-height: .97;
  letter-spacing: -.032em;
  color: var(--ink);
}
.t-title {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.t-body {
  font-size: .95rem;
  font-weight: 400;
  line-height: 1.72;
  color: var(--ink-mid);
}
.t-label {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ── BOTONES ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .01em;
  padding: .82rem 1.8rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: transform 140ms var(--ease), box-shadow 200ms var(--ease);
  text-decoration: none;
}
.btn:active { transform: scale(.97) !important; }

.btn-dark  { background: var(--ink); color: var(--bg); }
.btn-dark:hover  { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(17,17,16,.22); }

.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--ink); }

.btn-light { background: var(--bg); color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(17,17,16,.15); }

/* ── LAYOUT ──────────────────────────────────── */
.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 2.5rem;
}
.section { padding: 7rem 0; }
.dot-grid {
  background-image: var(--dot);
  background-size: 24px 24px;
}

/* ── TARJETAS ────────────────────────────────── */
.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.card:hover {
  box-shadow: 0 8px 32px rgba(17,17,16,.09);
  transform: translateY(-2px);
}
.card-dark {
  background: var(--bg-dark);
  border-radius: 6px;
  color: #f4f3f0;
}

/* =========================================
   NAVBAR
   ========================================= */
/* overlay removed — compact dropdown doesn't need it */

#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 64px;
  display: flex;
  align-items: center;
  transition: background .3s, border-color .3s;
  background: transparent;
  border-bottom: 1px solid transparent;
}
#nav.scrolled {
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.nav-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: #000;
}
.nav-logo-text {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #000;
}
.nav-logo-text span { opacity: .5; margin-left: .35em; }
.nav-links { display: flex; gap: 2.5rem; }
.nav-links a {
  position: relative;
  padding: .4rem 0;
  font-family: 'Inter', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #000;
  transition: opacity .2s;
  opacity: .75;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: #000;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .35s cubic-bezier(0.23, 1, 0.32, 1);
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}
.nav-right { display: flex; align-items: center; gap: 1.2rem; }
.nav-btn {
  padding: .72rem 1.4rem;
  font-family: 'Inter', sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  background: #000000 !important;
  color: #ffffff !important;
  border: 1px solid #000000;
  box-shadow: none !important;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav-btn:hover {
  background: #ffffff !important;
  color: #000000 !important;
  transform: none !important;
}
.nav-btn:hover { transform: translateX(3px); }
.nav-btn:active { transform: scale(.97); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #000;
}
.nav-mobile {
  position: absolute;
  top: calc(100% + 8px);
  right: 1.5rem;
  width: 220px;
  background: #fff;
  border: 1px solid #000;
  z-index: 199;
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0;
  /* collapsed */
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.nav-mobile.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.nav-mobile a {
  display: block;
  padding: .9rem 1.4rem;
  font-family: 'Inter', sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #000;
  border-bottom: 1px solid rgba(0,0,0,.07);
  transition: background .15s, color .15s;
  text-decoration: none;
}
.nav-mobile a:hover { background: #000; color: #fff; }
.nav-mobile a:last-child { border-bottom: none; }

/* ── BACK TO TOP ─────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  background: #000;
  color: #fff;
  border: 1px solid #000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 150;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease), background .2s, color .2s;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover { background: #fff; color: #000; }

/* =========================================
   HERO — Gallery Poster / Swiss Brutalist
   Layout 7: SINGLE GIANT BLOB
   Un blob enorme domina la derecha, sangrando
   por bordes. Tipografía masiva sangra por top-left.
   ========================================= */
#inicio {
  position: sticky;
  top: 0;
  z-index: 0;
  min-height: 100vh;
  background: #ffffff;
  overflow: hidden;
  padding-top: 60px;
}

/* Blobs múltiples — estilo ejemplo, escala humana */
.hero-blob {
  position: absolute;
  height: auto;
  z-index: 2;
  pointer-events: none;
  user-select: none;
  animation: blobIn 1.1s var(--ease-io) both;
}
.hero-blob-1 { width: 28vw; max-width: 380px; top:  18vh; right:  6vw;  animation-delay: .1s; }
.hero-blob-2 { width: 18vw; max-width: 240px; top:  54vh; right: 34vw;  animation-delay: .2s; }
.hero-blob-3 { width: 14vw; max-width: 180px; top:  30vh; right: 40.5vw;  animation-delay: .3s; }
.hero-blob-4 { width: 12vw; max-width: 160px; top:  72vh; right: 10vw;  animation-delay: .4s; }
.hero-blob-5 { width: 10vw; max-width: 140px; top:   8vh; right: 30vw;  animation-delay: .5s; }

/* Texto principal — contenido, sangra solo ligeramente */
.hero-type {
  position: absolute;
  top: 16vh;
  left: 2.5rem;
  right: 2.5rem;
  z-index: 1;
  line-height: .88;
  font-family: 'Anton', 'Archivo Black', sans-serif;
  font-weight: 400;
  letter-spacing: -.02em;
  color: #000000;
  text-transform: uppercase;
  animation: typeIn 1s var(--ease) .3s both;
}
.hero-type-line {
  display: block;
  font-size: clamp(3rem, 8.5vw, 10rem);
  white-space: nowrap;
}
.hero-type-line--bleed-left {
  margin-left: 4vw;
}
.hero-type-line--bleed-right {
  margin-left: 8vw;
}

/* Meta: label superior y body inferior */
.hero-meta-top {
  position: absolute;
  top: 80px;
  left: 2.5rem;
  z-index: 3;
  font-family: 'Inter', sans-serif;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #000;
  animation: typeIn .8s var(--ease) .2s both;
}
.hero-meta-bottom {
  position: absolute;
  bottom: 3rem;
  left: 2.5rem;
  z-index: 3;
  max-width: 360px;
  animation: typeIn .9s var(--ease) .55s both;
}
.hero-meta-bottom p {
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  line-height: 1.5;
  color: #000;
  margin-bottom: 1.3rem;
}
.hero-meta-bottom .btn {
  background: #000;
  color: #fff;
  padding: 1rem 1.6rem;
  font-family: 'Inter', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  transition: transform .2s var(--ease);
}
.hero-meta-bottom .btn:hover { transform: translateX(4px); }
.hero-meta-bottom .btn:active { transform: scale(.97); }

/* Índice numérico top-right — referencia a poster editorial */
.hero-index {
  position: absolute;
  top: 80px;
  right: 2.5rem;
  z-index: 3;
  font-family: 'Inter', sans-serif;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #000;
  text-align: right;
  animation: typeIn .8s var(--ease) .2s both;
}
.hero-index strong {
  display: block;
  font-family: 'Anton', sans-serif;
  font-size: 2.2rem;
  font-weight: 400;
  letter-spacing: -.02em;
  margin-top: .2rem;
  line-height: 1;
}

@keyframes blobIn {
  from { opacity: 0; transform: scale(.9) rotate(-6deg); }
  to   { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes typeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Mobile: blobs más pequeños, tipografía reducida */
@media (max-width: 768px) {
  .hero-blob-1 { width: 50vw; top: 12vh; right: 2vw; }
  .hero-blob-2 { width: 32vw; top: 48vh; right: 50vw; }
  .hero-blob-3 { width: 24vw; top: 26vh; right: 62vw; }
  .hero-blob-4 { width: 22vw; top: 66vh; right: 4vw; }
  .hero-blob-5 { width: 18vw; top:  6vh; right: 55vw; }
  .hero-type { top: 22vh; }
  .hero-type-line { font-size: clamp(2.6rem, 13vw, 5.5rem); }
  .hero-meta-bottom { max-width: 80vw; }
}

/* =========================================
   CONTENT LAYER
   Sube por encima del hero sticky
   ========================================= */
#content-layer {
  position: relative;
  z-index: 1;
  background: #ffffff;
  box-shadow: 0 -12px 48px rgba(0,0,0,.12);
}

/* =========================================
   TECNOLOGÍAS — Layout 2: BLOB CLUSTER LEFT
   Blobs concentrados izquierda, tipografía
   derecha sangrando. Carrusel abajo intacto.
   ========================================= */
#tecnologias {
  position: relative;
  padding: 9rem 0 5rem;
  background: #ffffff;
  overflow: hidden;
}

/* Cluster de blobs a la izquierda (sangran fuera del viewport) */
.tech-blob {
  position: absolute;
  height: auto;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}
.tech-blob-1 { width: 22vw; max-width: 300px; top:   2vh;  left: -6vw; }
.tech-blob-2 { width: 14vw; max-width: 190px; top:  28vh;  left: 10vw; }
.tech-blob-3 { width: 10vw; max-width: 140px; top:  16vh;  left: 20vw; }

/* Header editorial a la derecha, sangra por el borde */
.tech-header {
  position: relative;
  z-index: 2;
  padding: 0 2.5rem 0 38vw;
  margin-bottom: 5rem;
}
.tech-header .t-label {
  font-family: 'Inter', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 1.2rem;
}
.tech-header .t-headline {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(3rem, 7.5vw, 8rem);
  line-height: .88;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 1.6rem;
  margin-right: -8vw;
}
.tech-header .t-body {
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  line-height: 1.5;
  color: #000;
  max-width: 440px;
}

@media (max-width: 768px) {
  #tecnologias { padding: 6rem 0 4rem; }
  .tech-blob-1 { width: 38vw; top:  2vh; left: -10vw; }
  .tech-blob-2 { width: 24vw; top: 20vh; left:  55vw; }
  .tech-blob-3 { width: 18vw; top: 10vh; left:  70vw; }
  .tech-header { padding: 0 1.5rem; margin-bottom: 3rem; }
  .tech-header .t-headline { font-size: clamp(2.5rem, 13vw, 5rem); margin-right: 0; }
}

/* marquee wrapper — ancho completo */
.marquee-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
}
/* fades laterales */
.marquee-fade-l,
.marquee-fade-r {
  position: absolute;
  top: 0; bottom: 0;
  width: 220px;
  z-index: 2;
  pointer-events: none;
}
.marquee-fade-l { left: 0;  background: linear-gradient(to right, var(--bg-white) 30%, transparent); }
.marquee-fade-r { right: 0; background: linear-gradient(to left,  var(--bg-white) 30%, transparent); }

/* track: cada mitad ocupa exactamente el 100% del viewport */
.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 20s linear infinite;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* cada item: 100/6 vw → exactamente 6 por pantalla */
.marquee-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16.666vw;
  height: 170px;
  user-select: none;
  flex-shrink: 0;
}
.marquee-item img {
  height: auto;
  width: 92%;
  max-height: 160px;
  object-fit: contain;
  opacity: .45;
  transition: opacity .25s;
  display: block;
  filter: grayscale(1);
}
/* n8n es muy apaisado, lo limitamos para que no domine */
.marquee-item[title="n8n"] img {
  max-height: 36px;
  width: 55%;
}
.marquee-item:hover img {
  opacity: 1;
  filter: grayscale(0);
}

/* =========================================
   CTA BAND — imagen + título
   ========================================= */
#cta-band {
  position: relative;
  padding: 4rem 0;
  background: #ffffff;
  overflow: hidden;
}
#cta-band .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.cta-band-img {
  width: calc(100% - 70px);
  height: auto;
  display: block;
  filter: grayscale(1) contrast(1.05);
  order: -1; /* image stays left on desktop even though it's second in HTML */
}
.cta-band-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.cta-band-h2 {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 5.5rem);
  line-height: .9;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: #000000;
  margin-bottom: 1.8rem;
  max-width: 600px;
}
.cta-band-p {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: #000000;
  max-width: 420px;
  margin: 0 0 2.2rem;
  line-height: 1.55;
}
#cta-band .btn-light {
  background: #000000 !important;
  color: #ffffff !important;
  border: none;
  padding: 1rem 1.6rem;
  font-family: 'Inter', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  border-radius: 0;
  box-shadow: none;
  transition: transform .2s var(--ease);
}
#cta-band .btn-light:hover {
  transform: translateX(4px);
  box-shadow: none;
}

@media (max-width: 768px) {
  #cta-band { padding: 3rem 0; }
  #cta-band .container { grid-template-columns: 1fr; gap: 2rem; }
  .cta-band-h2 { font-size: clamp(2rem, 10vw, 3.8rem); max-width: 100%; }
  .cta-band-p { max-width: 90%; }
}

/* =========================================
   SERVICIOS — Layout 1: SCATTERED COLLISION
   Blobs distribuidos, título sangrando,
   filas editoriales con hover invertido.
   ========================================= */
#servicios {
  position: relative;
  padding: 8rem 0 6rem;
  background: #ffffff;
  overflow: hidden;
}

/* Blob único — a la derecha del título "Soluciones Inteligentes por Sector" */
.serv-blob {
  position: absolute;
  width: 30vw;
  max-width: 440px;
  height: auto;
  top: 6rem;
  right: 4vw;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  opacity: .95;
  transform: rotate(12deg);
}

.serv-header {
  position: relative;
  z-index: 1;
  margin-bottom: 4rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #000;
  max-width: 1360px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}
.serv-header .t-label {
  font-family: 'Inter', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 1rem;
}
.serv-header .t-headline {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(2.5rem, 7vw, 7.5rem);
  line-height: .88;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 1.2rem;
  /* Sangra ligeramente a la derecha */
  margin-right: -6vw;
}
.serv-header .t-body {
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  line-height: 1.55;
  color: #000;
  max-width: 480px;
}

#serv-list {
  position: relative;
  z-index: 1;
}

.serv-row {
  display: grid;
  grid-template-columns: 120px 1fr 240px;
  align-items: center;
  gap: 2.5rem;
  padding: 2rem 2.5rem;
  border-bottom: 1px solid #000;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.serv-row:first-child { border-top: 1px solid #000; }
.serv-row:hover {
  background: #000;
  color: #fff;
}

.serv-num {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -.02em;
  color: inherit;
}
.serv-title {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  line-height: 1;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: inherit;
  margin-bottom: .7rem;
}
.serv-desc {
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  line-height: 1.55;
  color: inherit;
  opacity: .8;
}
.serv-tag {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: inherit;
  border: 1px solid currentColor;
  padding: .45rem .8rem;
  border-radius: 0;
  opacity: .9;
}

@media (max-width: 768px) {
  #servicios { padding: 5rem 0 4rem; }
  .serv-header { padding: 0 1.5rem 2rem; margin-bottom: 2rem; }
  .serv-header .t-headline { font-size: clamp(2rem, 11vw, 4.5rem); margin-right: 0; }
  .serv-row {
    grid-template-columns: 60px 1fr;
    gap: 1.2rem;
    padding: 1.5rem;
  }
  .serv-num { font-size: 2rem; }
  .serv-title { font-size: 1.2rem; }
  .serv-tag { display: none; }
  .serv-blob { width: 45vw; top: 3rem; right: -4vw; }
}

/* =========================================
   NOSOTROS — Swiss brutalist editorial
   Columna texto con titular Anton, filas numeradas,
   columna imagen B&W.
   ========================================= */
#nosotros {
  position: relative;
  padding: 8rem 0 7rem;
  background: #ffffff;
  overflow: hidden;
}
.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.nosotros-text .t-label {
  font-family: 'Inter', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 1rem;
}
.nosotros-headline {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 5.2vw, 5.5rem);
  line-height: .9;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 1.5rem;
}
.nosotros-lead {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  color: #000;
  max-width: 460px;
  margin-bottom: 2.5rem;
}

.nosotros-feature {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: start;
  gap: 1.5rem;
  padding: 1.6rem 1.2rem;
  border-top: 1px solid #000;
  background: transparent;
  border-radius: 0;
  margin: 0;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.nosotros-feature:last-child { border-bottom: 1px solid #000; }
.nosotros-feature:hover {
  background: #000;
  color: #fff;
}
.nosotros-num {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  line-height: 1;
  letter-spacing: -.02em;
  color: inherit;
}
.nosotros-feature-title {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(1.1rem, 1.6vw, 1.5rem);
  line-height: 1.1;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: inherit;
  margin-bottom: .5rem;
}
.nosotros-feature-desc {
  font-family: 'Inter', sans-serif;
  font-size: .88rem;
  line-height: 1.55;
  color: inherit;
  opacity: .85;
}

.nosotros-media {
  position: relative;
  width: calc(100% - 30px);
  justify-self: end;
}
.nosotros-img {
  display: block;
  width: 100%;
  height: auto;
  filter: grayscale(1) contrast(1.05);
}

@media (max-width: 768px) {
  #nosotros { padding: 5rem 0; }
  .nosotros-grid { gap: 3rem; }
  .nosotros-media { width: 100%; justify-self: stretch; }
  .nosotros-feature { grid-template-columns: 50px 1fr; gap: 1rem; padding: 1.2rem .8rem; }
}

/* =========================================
   DIAGNÓSTICO
   ========================================= */
#diagnostico {
  position: relative;
  padding: 8rem 0;
  background: #000000;
  color: #ffffff;
  overflow: hidden;
}
.diag-blob {
  position: absolute;
  width: 24vw;
  max-width: 340px;
  height: auto;
  top: 3rem;
  left: -6vw;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  opacity: .9;
  transform: rotate(-14deg);
  filter: invert(1);
}
.diag-header {
  position: relative;
  z-index: 1;
  text-align: left;
  max-width: 1360px;
  margin: 0 auto 4rem;
  padding: 0 2.5rem;
  border-bottom: 1px solid #fff;
  padding-bottom: 2.5rem;
}
.diag-label {
  font-family: 'Inter', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
}
.diag-h2 {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(2.5rem, 6.5vw, 7rem);
  line-height: .9;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.2rem;
}
.diag-desc {
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  line-height: 1.55;
  color: #fff;
  max-width: 520px;
  opacity: .85;
}
.diag-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 2.5rem;
  border-top: 1px solid #fff;
  border-bottom: 1px solid #fff;
}
.diag-panel {
  background: transparent;
  border: none;
  border-right: 1px solid #fff;
  border-radius: 0;
  padding: 2.5rem;
}
.diag-panel:last-child { border-right: none; }

/* Quiz */
.quiz-progress-wrap { margin-bottom: 2rem; }
.quiz-progress-top {
  display: flex;
  justify-content: space-between;
  font-family: 'Inter', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #fff;
  opacity: .7;
  margin-bottom: .6rem;
}
.quiz-progress-bg {
  background: rgba(255,255,255,.15);
  border-radius: 0;
  height: 2px;
}
#quiz-progress-bar {
  width: 20%;
  height: 100%;
  background: #ffffff;
  border-radius: 0;
  transition: width .3s var(--ease);
}
.quiz-step-title {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  line-height: 1.1;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.4rem;
}
.quiz-step-hint {
  font-family: 'Inter', sans-serif;
  font-size: .8rem;
  color: #fff;
  opacity: .6;
  margin-bottom: 1rem;
  margin-top: -.6rem;
}
.quiz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.quiz-col  { display: flex; flex-direction: column; gap: .6rem; }

.qbtn {
  font-family: 'Inter', sans-serif;
  font-size: .85rem;
  font-weight: 500;
  color: #fff;
  background: transparent;
  border: 1px solid #fff;
  border-radius: 0;
  padding: .95rem 1.1rem;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
  text-align: left;
}
.qbtn:hover {
  background: #fff;
  color: #000;
}
.qbtn strong { font-weight: 700; }
.qbtn:active { transform: scale(.98); }

.qcheck {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-family: 'Inter', sans-serif;
  font-size: .85rem;
  color: #fff;
  padding: .85rem 1rem;
  background: transparent;
  border: 1px solid #fff;
  border-radius: 0;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.qcheck:hover { background: #fff; color: #000; }
.qcheck input {
  accent-color: #fff;
  pointer-events: auto;
  cursor: pointer;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.quiz-continue-btn {
  font-family: 'Inter', sans-serif;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #000;
  background: #fff;
  border: 1px solid #fff;
  border-radius: 0;
  padding: 1rem 1.4rem;
  width: 100%;
  margin-top: 1.2rem;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.quiz-continue-btn:hover { background: transparent; color: #fff; }

.quiz-success-icon {
  width: 64px;
  height: 64px;
  background: #fff;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.quiz-success-title {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: -.01em;
  color: #fff;
  margin-bottom: .75rem;
}
.quiz-success-desc {
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  color: #fff;
  opacity: .7;
  line-height: 1.55;
}

/* Form fields — variante oscura */
#diagnostico .form-label {
  font-family: 'Inter', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #fff;
  opacity: .7;
  margin-bottom: .4rem;
  display: block;
}
#diagnostico .form-input {
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  color: #fff;
  background: transparent;
  border: 1px solid #fff;
  border-radius: 0;
  padding: .85rem 1rem;
  width: 100%;
  transition: background .2s var(--ease);
}
#diagnostico .form-input::placeholder { color: rgba(255,255,255,.45); }
#diagnostico .form-input:focus { outline: none; background: rgba(255,255,255,.08); }

/* Calendly panel */
.cal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid #fff;
}
.cal-icon {
  width: 44px;
  height: 44px;
  color: #fff;
  background: transparent;
  border: 1px solid #fff;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cal-title {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: -.01em;
  color: #fff;
}
.cal-sub {
  font-family: 'Inter', sans-serif;
  font-size: .78rem;
  color: #fff;
  opacity: .6;
  margin-top: .15rem;
}
.cal-body { text-align: center; padding: 2rem 0; }
.cal-lock-icon,
.cal-unlock-icon {
  width: 56px;
  height: 56px;
  color: #fff;
  background: transparent;
  border: 1px solid #fff;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
}
.cal-lock-title {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: -.01em;
  color: #fff;
  margin-bottom: .6rem;
}
.cal-lock-desc {
  font-family: 'Inter', sans-serif;
  font-size: .85rem;
  color: #fff;
  opacity: .65;
  line-height: 1.55;
  max-width: 320px;
  margin: 0 auto;
}
.cal-unlock-desc { margin-bottom: 1.5rem; }
.cal-btn {
  font-family: 'Inter', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #000;
  background: #fff;
  border: 1px solid #fff;
  border-radius: 0;
  padding: .9rem 1.6rem;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.cal-btn:hover { background: transparent; color: #fff; }
.cal-footer {
  border-top: 1px solid #fff;
  padding-top: 1.3rem;
  margin-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  font-family: 'Inter', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #fff;
  opacity: .7;
}

/* =========================================
   FAQ
   ========================================= */
#faq {
  position: relative;
  padding: 8rem 0 7rem;
  background: #ffffff;
}
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 6rem;
  align-items: start;
}
.faq-intro .t-label {
  font-family: 'Inter', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 1rem;
}
.faq-headline {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(2.8rem, 5vw, 5.5rem);
  line-height: .9;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 1.5rem;
}
.faq-lead {
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  line-height: 1.6;
  color: #000;
  opacity: .75;
}
.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 2px solid #000;
}
.faq-item { overflow: hidden; }
.faq-btn {
  width: 100%;
  display: grid;
  grid-template-columns: 64px 1fr 40px;
  align-items: center;
  gap: 1.2rem;
  padding: 1.6rem 0;
  background: none;
  border: none;
  border-bottom: 1px solid #000;
  cursor: pointer;
  text-align: left;
  color: #000;
  transition: background .22s var(--ease), color .22s var(--ease), padding-left .22s var(--ease);
}
.faq-item.open .faq-btn {
  background: #000;
  color: #fff;
  padding-left: 1.2rem;
  border-bottom-color: #000;
}
.faq-btn:hover:not(.faq-item.open .faq-btn) {
  background: #000;
  color: #fff;
  padding-left: 1.2rem;
}
.faq-item:hover .faq-btn,
.faq-item.open .faq-btn { background: #000; color: #fff; padding-left: 1.2rem; }
.faq-num {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  line-height: 1;
  letter-spacing: -.02em;
  color: inherit;
  flex-shrink: 0;
}
.faq-q {
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.3;
  color: inherit;
}
.faq-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 1px solid currentColor;
  position: relative;
  transition: transform .35s var(--ease);
}
.faq-ico::before,
.faq-ico::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 1px;
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.faq-ico::before { width: 12px; height: 1.5px; }
.faq-ico::after  { width: 1.5px; height: 12px; }
.faq-item.open .faq-ico::after { transform: rotate(90deg); opacity: 0; }

.faq-body {
  max-height: 0;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  font-size: .92rem;
  line-height: 1.7;
  color: #fff;
  background: #000;
  transition: max-height .38s var(--ease), padding .38s var(--ease);
  padding: 0 1.2rem 0 calc(64px + 1.2rem + 1.2rem);
  border-bottom: 1px solid #000;
}
.faq-body.open { max-height: 300px; padding: 1rem 1.2rem 1.8rem calc(64px + 1.2rem + 1.2rem); }

/* =========================================
   BENEFICIOS — sección invertida con ojos
   que siguen el cursor
   ========================================= */
#beneficios {
  position: relative;
  padding: 0 0 7rem;
  background: #000;
  color: #fff;
  overflow: hidden;
}

/* ── Ojos ── */
.benef-eyes-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 2vw;
}
.benef-eye {
  width: clamp(70px, 9vw, 140px);
  height: clamp(70px, 9vw, 140px);
  border-radius: 50%;
  background: #fff;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.benef-pupil {
  width: 42%;
  height: 42%;
  border-radius: 50%;
  background: #000;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform .08s linear;
  will-change: transform;
  pointer-events: none;
}
/* punto reflejo en la pupila */
.benef-pupil::after {
  content: '';
  position: absolute;
  width: 28%;
  height: 28%;
  background: #fff;
  border-radius: 50%;
  top: 18%;
  right: 18%;
}

/* ── Header ── */
.benef-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3rem;
  padding: 4rem 0 3rem;
  border-bottom: 1px solid #fff;
  margin-bottom: 0;
}
.benef-header .t-label {
  font-family: 'Inter', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
}
.benef-headline {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(3rem, 7vw, 8rem);
  line-height: .88;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: #fff;
}

/* ── Filas editoriales ── */
.benef-list {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid #fff;
}
.benef-row {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  align-items: center;
  gap: 2rem;
  padding: 1.6rem 0;
  border-top: 1px solid rgba(255,255,255,.25);
  transition: background .22s var(--ease), color .22s var(--ease), padding-left .22s var(--ease);
}
.benef-row:hover {
  background: #fff;
  color: #000;
  padding-left: 1.2rem;
}
.benef-num {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  line-height: 1;
  letter-spacing: -.02em;
  color: inherit;
}
.benef-title {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(1rem, 1.4vw, 1.35rem);
  line-height: 1.1;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: inherit;
}
.benef-desc {
  font-family: 'Inter', sans-serif;
  font-size: .88rem;
  line-height: 1.6;
  color: inherit;
  opacity: .75;
}
.benef-row:hover .benef-desc { opacity: .9; }

@media (max-width: 768px) {
  .benef-header { grid-template-columns: 1fr; gap: 2rem; }
  .benef-eyes-row { justify-content: flex-start; gap: 4vw; }
  .benef-row {
    grid-template-columns: 50px 1fr;
    gap: 1rem;
    padding: 1.3rem 0;
  }
  .benef-desc { display: none; }
  .benef-row:hover { padding-left: .8rem; }
}

/* =========================================
   CONTACTO
   ========================================= */
#contacto {
  position: relative;
  padding: 8rem 0 7rem;
  background: #ffffff;
  color: #000;
}

/* Cabecera */
.contact-header {
  padding-bottom: 2.5rem;
  border-bottom: 2px solid #000;
  margin-bottom: 0;
}
.contact-header .t-label {
  font-family: 'Inter', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 1rem;
}
.contact-h2 {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(3rem, 7vw, 8rem);
  line-height: .88;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: #000;
}

/* Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0;
  border-bottom: 1px solid #000;
}

/* Info column */
.contact-info {
  border-right: 1px solid #000;
  padding: 3rem 3rem 3rem 0;
}
.contact-desc {
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  line-height: 1.65;
  color: #000;
  opacity: .75;
  margin-bottom: 2.5rem;
}
.contact-items {
  display: flex;
  flex-direction: column;
}
.contact-item {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: 1.2rem 0;
  border-top: 1px solid #000;
  background: transparent;
  border-radius: 0;
  transition: background .22s var(--ease), color .22s var(--ease), padding-left .22s var(--ease);
}
.contact-item:last-child { border-bottom: 1px solid #000; }
a.contact-item:hover {
  background: #000;
  color: #fff;
  padding-left: 1rem;
}
.contact-item-label {
  font-family: 'Inter', sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: inherit;
  opacity: .5;
}
.contact-item-val {
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  font-weight: 500;
  color: inherit;
  line-height: 1.4;
}
.contact-social {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #000;
}
.contact-social-label {
  font-family: 'Inter', sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #000;
  opacity: .5;
  margin-bottom: .9rem;
}
.contact-social-links { display: flex; gap: .6rem; }
.social-btn {
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid #000;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.social-btn:hover { background: #000; color: #fff; }

/* Formulario */
.contact-form-col {
  padding: 3rem 0 3rem 3rem;
}
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.form-label {
  font-family: 'Inter', sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #000;
  opacity: .55;
}
.form-input,
.form-textarea {
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  color: #000;
  background: transparent;
  border: 1px solid #000;
  border-radius: 0;
  padding: .9rem 1rem;
  outline: none;
  width: 100%;
  transition: background .2s var(--ease);
}
.form-input::placeholder,
.form-textarea::placeholder { color: rgba(0,0,0,.35); }
.form-input:focus,
.form-textarea:focus { background: rgba(0,0,0,.04); outline: none; }
.form-textarea { resize: none; }

.contact-submit {
  font-family: 'Inter', sans-serif;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #fff;
  background: #000;
  border: 1px solid #000;
  border-radius: 0;
  padding: 1.1rem 1.4rem;
  width: 100%;
  margin-top: .5rem;
  cursor: pointer;
  transition: background .22s var(--ease), color .22s var(--ease);
}
.contact-submit:hover { background: transparent; color: #000; }

.form-note {
  font-family: 'Inter', sans-serif;
  font-size: .7rem;
  color: #000;
  opacity: .4;
  text-align: center;
  margin-top: .75rem;
}
.msg-ok, .msg-err {
  display: none;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  padding: .9rem 1rem;
  border-radius: 0;
  margin-top: .75rem;
  border: 1px solid #000;
}
.msg-ok  { background: #000; color: #fff; }
.msg-err { background: transparent; color: #000; }

/* =========================================
   FOOTER
   ========================================= */
#footer {
  background: #000;
  color: #fff;
  padding: 5rem 0 0;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* Wordmark grande */
.footer-brand {
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.15);
  margin-bottom: 3rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-wordmark {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(2.5rem, 7vw, 7rem);
  line-height: .88;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: #fff;
}
.footer-tagline {
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  color: #fff;
  opacity: .45;
  max-width: 260px;
  text-align: right;
  line-height: 1.5;
}

/* Columnas */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-bottom: 0;
  border-top: 1px solid rgba(255,255,255,.15);
}
.footer-col {
  padding: 2.5rem 2rem 2.5rem 0;
  border-right: 1px solid rgba(255,255,255,.1);
}
.footer-col:last-child { border-right: none; padding-right: 0; }
.footer-col:not(:first-child) { padding-left: 2rem; }
.footer-col-label {
  font-family: 'Inter', sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #fff;
  opacity: .35;
  margin-bottom: 1.2rem;
}
.footer-link {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: .88rem;
  font-weight: 500;
  color: #fff;
  opacity: .55;
  padding: .4rem 0;
  transition: opacity .2s var(--ease);
  border: none;
  background: none;
}
.footer-link:hover { opacity: 1; }

/* Barra inferior */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.8rem 0;
  border-top: 1px solid rgba(255,255,255,.1);
  flex-wrap: wrap;
}
.footer-copy {
  font-family: 'Inter', sans-serif;
  font-size: .72rem;
  color: #fff;
  opacity: .3;
}
.footer-location {
  font-family: 'Inter', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #fff;
  opacity: .3;
}

/* =========================================
   RESPONSIVE
   =========================================

   Breakpoints:
   ≤1024px  — Tablet landscape / small laptop
   ≤768px   — Tablet portrait / large mobile
   ≤480px   — Mobile
   ========================================= */

/* ── TABLET (≤1024px) ─────────────────────── */
@media (max-width: 1024px) {
  .container { padding: 0 2rem; }

  /* Nav */
  .nav-links { gap: 1.2rem; }

  /* Hero */
  #inicio { min-height: 90vh; }
  .hero-type { padding-right: 2rem; }
  .hero-blob-1 { width: 32vw; right: 2vw; }
  .hero-blob-2 { width: 22vw; right: 28vw; }
  .hero-blob-3 { display: none; }
  .hero-blob-4 { width: 16vw; right: 6vw; }
  .hero-blob-5 { display: none; }

  /* CTA Band */
  #cta-band .container { gap: 2.5rem; }

  /* Servicios */
  .serv-row { grid-template-columns: 80px 1fr 160px; gap: 1.5rem; }

  /* Nosotros */
  .nosotros-grid { gap: 3rem; }

  /* FAQ */
  .faq-grid { gap: 3.5rem; }

  /* Contacto */
  .contact-grid { grid-template-columns: 1fr 1.5fr; }
  .contact-info { padding-right: 2rem; }
  .contact-form-col { padding-left: 2rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col { border-right: none !important; padding: 2rem 0 !important; border-bottom: 1px solid rgba(255,255,255,.1); }
  .footer-col:last-child { border-bottom: none; }
}

/* ── TABLET PORTRAIT / LARGE MOBILE (≤768px) ─ */
@media (max-width: 768px) {
  .container { padding: 0 1.5rem; }

  /* Nav — ocultar desktop links, mostrar hamburguesa */
  .nav-links { display: none; }
  .nav-btn { display: none; }
  .nav-toggle { display: flex; }
  .nav-inner { padding: 0 1.25rem; gap: .75rem; }

  /* Hero — quitar blob en móvil para legibilidad del título */
  .hero-blob-1 { display: none; }

  /* Marquee — 3 logos en pantalla, más grandes */
  .marquee-item { width: 33.333vw; height: 120px; }
  .marquee-item img { max-height: 90px; width: 80%; opacity: .6; }
  .marquee-item[title="n8n"] img { max-height: 28px; width: 50%; }
  .marquee-fade-l, .marquee-fade-r { width: 60px; }

  /* FAQ — forzar color negro en botones (Safari iOS hereda azul) */
  .faq-btn { color: #000 !important; }

  /* Hero — flujo normal en móvil, altura ajustada al contenido (sin huecos) */
  #inicio {
    position: relative;
    display: block;
    min-height: auto;
    padding: 6rem 1.5rem 2rem;
    overflow: hidden;
  }
  .hero-meta-top {
    position: relative;
    top: auto; left: auto;
    margin-bottom: 2rem;
  }
  .hero-type {
    position: relative;
    top: auto; left: auto; right: auto;
    padding: 0;
    margin-bottom: 2rem;
  }
  .hero-type-line { font-size: clamp(2.6rem, 13vw, 5rem); white-space: normal; }
  .hero-type-line--bleed-left { margin-left: 0; }
  .hero-type-line--bleed-right { margin-left: 0; }
  .hero-meta-bottom {
    position: relative;
    bottom: auto; left: auto;
    max-width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .hero-index { display: none; }
  /* Blobs decorativos contenidos dentro del hero */
  .hero-blob { z-index: 0; }
  .hero-blob-1 { width: 45vw; top: 8vh; right: -8vw; opacity: .5; }
  .hero-blob-2 { display: none; }
  .hero-blob-3 { display: none; }
  .hero-blob-4 { display: none; }
  .hero-blob-5 { display: none; }
  /* Asegurar el texto por encima de los blobs */
  .hero-meta-top, .hero-type, .hero-meta-bottom { z-index: 2; }

  /* Content-layer — sin sombra fuerte en móvil para evitar contraste brusco */
  #content-layer { box-shadow: none; }

  /* Tecnologías */
  #tecnologias { padding: 3rem 0 4rem; }
  .tech-section-header { flex-direction: column; gap: 1.5rem; padding: 0 1.5rem 2rem; }
  /* Hide left blob (behind title), keep blobs 2+3 repositioned to the right */
  .tech-blob-1 { display: none; }
  .tech-blob-2 { width: 28vw; top: 10vh; left: 55vw; }
  .tech-blob-3 { width: 20vw; top: 4vh; left: 72vw; }

  /* CTA Band — text a 80% width, imagen debajo más pequeña */
  #cta-band { padding-top: 0; }
  #cta-band .container {
    grid-template-columns: 1fr;
    gap: 0;
    width: 80%;
    max-width: 80%;
    margin: 0 auto;
    padding: 0;
  }
  .cta-band-img {
    display: block;
    width: 70%;
    max-width: 320px;
    margin: 1.5rem auto 0;
    order: 2;
  }
  .cta-band-text {
    text-align: center;
    align-items: center;
    order: 1;
    padding-bottom: 1rem;
  }
  .cta-band-h2 { text-align: center; max-width: 100%; }
  .cta-band-p { text-align: center; margin-left: auto; margin-right: auto; }

  /* Servicios */
  #servicios { padding: 5rem 0 4rem; }
  .serv-header { padding: 0 1.5rem 2rem; margin-bottom: 2rem; }
  .serv-header .t-headline { font-size: clamp(2rem, 11vw, 4.5rem); margin-right: 0; }
  .serv-blob { width: 45vw; top: 3rem; right: -4vw; }
  .serv-row { grid-template-columns: 60px 1fr; gap: 1rem; padding: 1.4rem 1rem; }
  .serv-num { font-size: 2rem; }
  .serv-title { font-size: 1.1rem; }
  .serv-tag { display: none; }

  /* Nosotros */
  #nosotros { padding: 5rem 0; }
  .nosotros-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .nosotros-media { width: 100%; justify-self: stretch; }
  .nosotros-headline { font-size: clamp(2.2rem, 10vw, 4rem); }
  .nosotros-feature { grid-template-columns: 50px 1fr; gap: 1rem; padding: 1.2rem 1rem; }
  .nosotros-feature:hover { padding-left: 1rem; padding-right: 1rem; }

  /* Diagnóstico */
  #diagnostico { padding: 5rem 0; }
  .diag-header { padding: 0 1.5rem 2rem; margin-bottom: 2.5rem; }
  .diag-h2 { font-size: clamp(2.2rem, 9vw, 5rem); }
  .diag-grid { grid-template-columns: 1fr; padding: 0; }
  .diag-panel { border-right: none; border-bottom: 1px solid #fff; padding: 2rem 1.5rem; }
  .diag-panel:last-child { border-bottom: none; }
  .quiz-grid { grid-template-columns: 1fr; }
  .diag-blob { display: none; }

  /* FAQ */
  .faq-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .faq-intro { padding-bottom: 2rem; border-bottom: 1px solid #000; }
  .faq-headline { font-size: clamp(2.4rem, 11vw, 4rem); }
  .faq-btn { grid-template-columns: 48px 1fr 36px; padding: 1.3rem 0; }
  .faq-body { padding: 0 .8rem 0 calc(48px + 1.2rem); }
  .faq-body.open { padding: .8rem .8rem 1.4rem calc(48px + 1.2rem); }

  /* Beneficios */
  #beneficios { padding: 0 0 5rem; }
  .benef-header { grid-template-columns: 1fr; gap: 0; padding: 3rem 0 2rem; }
  .benef-eyes-row { display: none; }
  .benef-headline { font-size: clamp(2.5rem, 11vw, 5rem); }
  .benef-row { grid-template-columns: 50px 1fr; gap: 1rem; padding: 1.3rem 0; }
  .benef-desc { display: none; }
  .benef-row:hover { padding-left: .8rem; }

  /* Contacto */
  #contacto { padding: 5rem 0 4rem; }
  .contact-header { padding-bottom: 2rem; }
  .contact-h2 { font-size: clamp(2.5rem, 11vw, 5rem); }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { border-right: none; border-bottom: 1px solid #000; padding: 2.5rem 0; }
  .contact-form-col { padding: 2.5rem 0 0; }
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer-brand { flex-direction: column; gap: 1rem; }
  .footer-tagline { text-align: left; max-width: 100%; }
  .footer-wordmark { font-size: clamp(2rem, 9vw, 3.5rem); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col { border-right: none !important; padding: 1.8rem 0 !important; border-bottom: 1px solid rgba(255,255,255,.1); }
  .footer-col:last-child { border-bottom: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: .5rem; }
}

/* ── MOBILE (≤480px) ─────────────────────────── */
@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }

  /* Hero */
  .hero-blob-1 { width: 70vw; opacity: .5; }
  .hero-blob-4 { display: none; }

  /* CTA */
  .cta-band-h2 { font-size: clamp(1.8rem, 9vw, 3rem); }

  /* Servicios */
  .serv-row { padding: 1.2rem .75rem; }

  /* Diagnóstico */
  .diag-panel { padding: 1.5rem 1.25rem; }
  .quiz-continue-btn { font-size: .8rem; }

  /* FAQ */
  .faq-btn { grid-template-columns: 40px 1fr 32px; gap: .8rem; }
  .faq-body { padding: 0 .5rem 0 calc(40px + .8rem); }
  .faq-body.open { padding: .8rem .5rem 1.2rem calc(40px + .8rem); }

  /* Beneficios */
  .benef-row { padding: 1.1rem 0; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; }
  .footer-wordmark { font-size: clamp(1.8rem, 10vw, 2.8rem); }
}

/* ── CAL.COM MODAL — responsive fix ─────────── */
/* Cal inyecta un div#cal-embed con iframe dentro.
   Forzamos max-width y centramos en móvil. */
div[id="cal-embed"],
[data-cal-embed],
.cal-embed-container {
  max-width: 100vw !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* El overlay/backdrop que inyecta Cal */
[style*="position: fixed"][style*="z-index: 9999"],
[style*="position:fixed"][style*="z-index:9999"] {
  padding: 0 !important;
}

@media (max-width: 768px) {
  /* Forzar el iframe del modal de Cal a 100% del viewport en móvil */
  div[id="cal-embed"] iframe,
  [data-cal-embed] iframe {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    border-radius: 0 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
  }
}

/* ── REDUCED MOTION ──────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .sr, .sr-scale, .sr-left { opacity: 1; transform: none; transition: none; }
  .hero-label, .hero-h1, .hero-body, .hero-ctas, .hero-right {
    animation: none; opacity: 1; clip-path: none;
  }
}
