/* ==========================================================================
   Novux — Design tokens
   ========================================================================== */
:root {
  --bg: #070707;
  --surface: #121212;
  --surface-2: #181818;
  --white: #ffffff;
  --text: #f5f5f3;
  --muted: rgba(245, 245, 243, 0.56);
  --muted-strong: rgba(245, 245, 243, 0.78);
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.22);

  --font-display: 'Clash Display', 'Satoshi', sans-serif;
  --font-body: 'Satoshi', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', monospace;
  /* Decorative/editorial numerals only (step markers, counters) — not for
     prices or data that needs tabular scanability. Use --font-mono or
     --font-display for those. */
  --font-numeral: 'Fraunces', 'Clash Display', serif;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.65, 0, .35, 1);

  --container: 1240px;
}

/* ==========================================================================
   Reset
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: auto;
  scrollbar-color: rgba(255, 255, 255, .18) var(--bg);
  overflow-x: hidden;
  touch-action: pan-x pan-y;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  touch-action: pan-x pan-y;
}

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

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

ul { list-style: none; }

button {
  font-family: inherit;
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
}

svg use { fill: inherit; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

::selection {
  background: var(--white);
  color: var(--bg);
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .16);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .3); }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Base icon style */
.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: inline-block;
  flex-shrink: 0;
}

/* ==========================================================================
   Smooth scroll wrapper (GSAP ScrollSmoother)
   ========================================================================== */
#smooth-wrapper {
  position: relative;
  width: 100%;
}

#smooth-content {
  width: 100%;
}

/* ==========================================================================
   Custom cursor — auto-inverts via mix-blend-mode: difference
   ========================================================================== */
.has-custom-cursor,
.has-custom-cursor a,
.has-custom-cursor button {
  cursor: none;
}

.cursor-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99998;
  opacity: 0;
  transition: opacity .4s ease;
}

.cursor-glow.is-active { opacity: 1; }

.cursor-glow__blob {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  will-change: transform;
}

.cursor-glow__blob--1 {
  width: 10px;
  height: 10px;
  background: radial-gradient(circle, rgba(255,255,255,1), rgba(255,255,255,0) 72%);
  filter: blur(1px);
}

.cursor-glow__blob--2 {
  width: 64px;
  height: 64px;
  background: radial-gradient(circle, rgba(255,255,255,.85), rgba(255,255,255,0) 72%);
  filter: blur(14px);
  opacity: .8;
  transition: width .4s var(--ease-out), height .4s var(--ease-out);
}

.cursor-glow__blob--3 {
  width: 130px;
  height: 130px;
  background: radial-gradient(circle, rgba(255,255,255,.6), rgba(255,255,255,0) 72%);
  filter: blur(36px);
  opacity: .5;
  transition: width .5s var(--ease-out), height .5s var(--ease-out);
}

.cursor-glow.is-hover .cursor-glow__blob--2 { width: 100px; height: 100px; }
.cursor-glow.is-hover .cursor-glow__blob--3 { width: 200px; height: 200px; }

@media (pointer: coarse) {
  .cursor-glow { display: none; }
  body, a, button { cursor: auto; }
}

.grain {
  position: fixed;
  inset: -20% 0;
  width: 100%;
  height: 140%;
  z-index: 1;
  pointer-events: none;
  opacity: .035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}

@keyframes grain {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-2%, 2%); }
  40%  { transform: translate(2%, -1%); }
  60%  { transform: translate(-1%, -2%); }
  80%  { transform: translate(2%, 1%); }
  100% { transform: translate(0, 0); }
}

/* ==========================================================================
   Intro — circle reveal
   ========================================================================== */
.intro {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg);
  clip-path: circle(150% at 50% 50%);
  animation: introReveal 1.1s var(--ease-soft) forwards;
  pointer-events: none;
}

@keyframes introReveal {
  0%   { clip-path: circle(150% at 50% 50%); }
  30%  { clip-path: circle(150% at 50% 50%); }
  100% { clip-path: circle(0% at 50% 50%); }
}

.intro.is-done { display: none; }

@media (prefers-reduced-motion: reduce) {
  .intro { animation: introFade .5s ease forwards; }
  @keyframes introFade {
    from { opacity: 1; }
    to { opacity: 0; visibility: hidden; }
  }
}

/* ==========================================================================
   Flying logo — shared element animated from hero to navbar on scroll
   ========================================================================== */
.logo-flight {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 600;
  pointer-events: none;
  mix-blend-mode: screen;
  transform-origin: 50% 50%;
  will-change: transform;
  opacity: 0;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  /* Degradado sutil arriba para que logo y enlaces se lean sobre cualquier fondo */
  background: linear-gradient(to bottom, rgba(7, 7, 7, .72) 0%, rgba(7, 7, 7, .3) 55%, transparent 100%);
  border-bottom: 1px solid transparent;
  transition: background .5s var(--ease-out), border-color .5s var(--ease-out), backdrop-filter .5s var(--ease-out);
}

.navbar.is-scrolled {
  background: rgba(7, 7, 7, .7);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-color: var(--line);
}

.navbar__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem clamp(1.25rem, 5vw, 3rem);
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: .65rem;
}

.navbar__mark-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.navbar__word {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  font-size: .92rem;
}

.navbar__nav a:not(.navbar__cta) {
  position: relative;
  padding: .25rem 0;
  transition: opacity .3s, letter-spacing .3s;
}

.navbar__nav a:not(.navbar__cta)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease-out);
}

.navbar__nav a:not(.navbar__cta):hover {
  letter-spacing: .03em;
}

.navbar__nav a:not(.navbar__cta):hover::after {
  transform: scaleX(1);
}

.navbar__cta {
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: .55rem 1.25rem;
  transition: background .3s, color .3s, border-color .3s;
}

.navbar__cta:hover {
  background: var(--white);
  color: var(--bg);
  border-color: var(--white);
}

.navbar__cta:active {
  transform: scale(.95);
  transition-duration: .1s;
}

.navbar__toggle {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  /* Larger invisible tap zone so user doesn't need two fingers */
  position: relative;
}
.navbar__toggle::before {
  content: '';
  position: absolute;
  inset: -10px;
}

/* Hamburger: both icons stacked, animated via opacity+rotate */
.navbar__toggle {
  position: relative;
}
.navbar__toggle svg {
  position: absolute;
  top: 50%; left: 50%;
  transform-origin: center;
}
.navbar__toggle .i-menu {
  display: block;
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0deg) scale(1);
  transition: opacity .18s, transform .3s cubic-bezier(.16,1,.3,1);
}
.navbar__toggle .i-close {
  display: block;
  opacity: 0;
  transform: translate(-50%, -50%) rotate(45deg) scale(0.7);
  transition: opacity .18s, transform .3s cubic-bezier(.16,1,.3,1);
}
.navbar__toggle[aria-expanded="true"] .i-menu {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-45deg) scale(0.7);
}
.navbar__toggle[aria-expanded="true"] .i-close {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0deg) scale(1);
}

/* ── Mobile overlay menu ─────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: #070707;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  /* Closing: overlay fades after links are gone (.22s max link delay + brief) */
  transition: opacity .28s cubic-bezier(.16,1,.3,1) .1s,
              visibility .28s .1s;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity .28s cubic-bezier(.16,1,.3,1),
              visibility .28s;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0 2rem;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 7vw, 2rem);
  font-weight: 600;
  letter-spacing: .04em;
  text-align: center;
  width: 100%;
  padding: 1.1rem 0;
  opacity: 0;
  transform: translateY(20px);
  /* Closing stagger: reverse order (link 8 → link 1) */
  transition: opacity .22s cubic-bezier(.16,1,.3,1),
              transform .28s cubic-bezier(.16,1,.3,1);
}
.mobile-menu a:not(:last-child) {
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.mobile-menu a:active {
  transform: translateY(0) scale(.97) !important;
  opacity: .7 !important;
  transition-duration: .08s !important;
}

/* Closing delays: last link fades first */
.mobile-menu a:nth-child(8) { transition-delay: 0s; }
.mobile-menu a:nth-child(7) { transition-delay: .03s; }
.mobile-menu a:nth-child(6) { transition-delay: .06s; }
.mobile-menu a:nth-child(5) { transition-delay: .09s; }
.mobile-menu a:nth-child(4) { transition-delay: .12s; }
.mobile-menu a:nth-child(3) { transition-delay: .15s; }
.mobile-menu a:nth-child(2) { transition-delay: .18s; }
.mobile-menu a:nth-child(1) { transition-delay: .21s; }

.mobile-menu.is-open a {
  opacity: 1;
  transform: translateY(0);
}
/* Opening stagger: first link comes in first */
.mobile-menu.is-open a:nth-child(1) { transition-delay: .06s; }
.mobile-menu.is-open a:nth-child(2) { transition-delay: .10s; }
.mobile-menu.is-open a:nth-child(3) { transition-delay: .14s; }
.mobile-menu.is-open a:nth-child(4) { transition-delay: .18s; }
.mobile-menu.is-open a:nth-child(5) { transition-delay: .22s; }
.mobile-menu.is-open a:nth-child(6) { transition-delay: .26s; }
.mobile-menu.is-open a:nth-child(7) { transition-delay: .30s; }
.mobile-menu.is-open a:nth-child(8) { transition-delay: .34s; }

@media (max-width: 860px) {
  .navbar__nav { display: none; }
  .navbar__toggle { display: flex; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  isolation: isolate;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

@keyframes codeCursorBlink {
  0%, 49% { opacity: .26; }
  50%, 100% { opacity: 0; }
}

.hero__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, transparent 22%, var(--bg) 90%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1.5rem;
  will-change: transform;
}

.hero__mark-slot {
  display: block;
  width: clamp(64px, 9vw, 110px);
  aspect-ratio: 1 / 1;
  margin-bottom: 1.5rem;
}

.hero__word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.5rem, 16vw, 9.5rem);
  letter-spacing: -.01em;
  line-height: .95;
  margin-bottom: 1.5rem;
  opacity: 0;
}

.hero__slogan {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 3.4vw, 2.25rem);
  letter-spacing: .02em;
  margin-bottom: 1.25rem;
  max-width: 24ch;
  margin-inline: auto;
  text-wrap: balance;
}

.hero__subtitle {
  font-family: var(--font-mono);
  font-size: clamp(.8rem, 1.4vw, .95rem);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted-strong);
  margin-bottom: 2.75rem;
  opacity: 0;
}

.hero__content .btn {
  opacity: 0;
}

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 60px;
  background: var(--line);
  z-index: 2;
  overflow: hidden;
}

.hero__scroll span {
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  animation: scrollCue 2.4s ease-in-out infinite;
  animation-delay: 3.4s;
}

@keyframes scrollCue {
  0%   { top: -100%; }
  50%  { top: 100%; }
  50.01% { top: -100%; }
  100% { top: -100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__word, .hero__subtitle, .hero__content .btn {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero__scroll span { animation: none; display: none; }
}

@media (pointer: coarse), (max-width: 768px) {
  .hero__word, .hero__subtitle, .hero__content .btn {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero__scroll { display: none; }
  .logo-flight { display: none; }
  .hero__mark-slot { width: 56px; margin-bottom: 1rem; }
  .hero__word { margin-bottom: 1rem; }
  .hero__slogan { margin-bottom: .75rem; }
  .hero__subtitle { margin-bottom: 2rem; }
  .hero__content .btn { width: 100%; max-width: 280px; justify-content: center; }
}

/* ==========================================================================
   Section shells
   ========================================================================== */
.section {
  padding: clamp(5rem, 11vw, 9rem) 0;
  position: relative;
  max-width: 100vw;
  overflow-x: clip;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
  max-width: min(var(--container), 100%);
}

.container--narrow { max-width: 800px; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 6vw, 4.25rem);
  letter-spacing: -.01em;
  line-height: 1.08;
  margin-bottom: 1.5rem;
  max-width: 16ch;
}

.section__text {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--muted-strong);
  max-width: 68ch;
  margin-bottom: 1.4rem;
}

.section__text--emphasis {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.55;
  color: var(--text);
  max-width: 50ch;
}

.section__lead {
  color: var(--muted-strong);
  font-size: 1.05rem;
  max-width: 56ch;
  margin-bottom: 2.5rem;
}

/* ==========================================================================
   Scroll fade reveal (driven by GSAP)
   ========================================================================== */
[data-fade] {
  opacity: 0;
  transform: translateY(32px);
}

[data-bespoke="eyebrow"] { opacity: 0; transform: translateY(-10px); }
[data-bespoke="title"] .word { opacity: 0; transform: translateY(28px); }
[data-bespoke="copy"] { opacity: 0; transform: translateY(20px); }
[data-bespoke="cta"] { opacity: 0; transform: translateY(20px); }
[data-bespoke="code"] { opacity: 0; transform: translateX(60px); }

@media (prefers-reduced-motion: reduce) {
  [data-fade], [data-addon-anim], [data-bespoke], [data-bespoke="title"] .word, .fs-target, .why-item, .valor-item__desc,
  .porque-explosion-line__track {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .porque-explosion-line { display: none; }
}

/* ==========================================================================
   Grid + cards
   ========================================================================== */
.grid { display: grid; gap: 1.5rem; margin-top: 3rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 2.5rem 2.25rem;
  transition: transform .4s var(--ease-out), border-color .4s, box-shadow .4s;
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--line-strong);
  box-shadow: 0 24px 60px -28px rgba(255, 255, 255, .18);
}

/* ==========================================================================
   Valores — snake line reveal
   ========================================================================== */
.valores-wrap {
  position: relative;
  margin-top: 0;
  padding-bottom: 1rem;
}

.valores-line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

.valores-line path {
  fill: none;
  stroke: url(#snakeGrad);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 5px rgba(255,255,255,.7)) drop-shadow(0 0 18px rgba(255,255,255,.28));
}

.valores-list {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  gap: 2rem clamp(2.5rem, 6vw, 6rem);
}

.valor-item__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  letter-spacing: -.01em;
  margin-bottom: .65rem;
  color: var(--muted-strong);
  transition: color .5s ease, text-shadow .5s ease;
}

.valor-item.is-lit .valor-item__title {
  color: var(--white);
  text-shadow: 0 0 18px rgba(255,255,255,.85), 0 0 46px rgba(255,255,255,.35);
}

.valor-item__desc {
  color: var(--muted-strong);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 38ch;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}

@media (max-width: 760px) {
  .valores-list {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-flow: row;
    gap: 2.5rem;
  }
  .valores-line { display: none; }
  .valor-item__title { font-size: 1.3rem; }
  .valor-item__desc { opacity: 1; transform: none; }
  .valor-item.is-lit .valor-item__title,
  .valor-item .valor-item__title { color: var(--white); }
  /* Snake JS returns early on mobile — collapse the 300vh scroll container */
  .valores-snake-zone { min-height: auto !important; }
  .valores-sticky     { min-height: auto !important; padding: 1.5rem 0 2.5rem; }
  /* Why items are not pinned on mobile — remove the desktop spacer margin */
  .section--porque    { margin-top: 0 !important; }
}

/* Valores: title intro + 300vh snake zone */
.section--valores {
  padding-top: 0;
  padding-bottom: 0;
}
.valores-intro {
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: clamp(3rem, 6vh, 5rem) 0;
}
.valores-snake-zone {
  min-height: 300vh;
}
.valores-sticky {
  min-height: 100vh;
  display: flex;
  align-items: center;
  z-index: 10;
}
.valores-sticky > .container {
  width: 100%;
  padding-top: clamp(2.5rem, 4vh, 4rem);
  padding-bottom: clamp(2.5rem, 4vh, 4rem);
}

/* ==========================================================================
   Vertical scroll line (Valores → Por qué) + Por qué elegirnos
   ========================================================================== */
.line-sections-wrap {
  position: relative;
}
.scroll-line {
  position: fixed;
  left: clamp(.5rem, 2vw, 1.5rem);
  top: 0;
  height: 100vh;
  width: 1.5px;
  background: rgba(255,255,255,.42);
  transform-origin: top center;
  transform: scaleY(0);
  pointer-events: none;
  z-index: 50;
  opacity: 0;
  box-shadow: 0 0 10px rgba(255,255,255,.2), 0 0 2px rgba(255,255,255,.5);
}

.section--porque {
  position: relative;
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
  margin-top: 100vh;
}

.porque-explosion-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 45%;
  pointer-events: none;
  z-index: 0;
}

.porque-explosion-line__track {
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 0%, var(--white) 100%);
  transform-origin: top center;
  transform: scaleY(0);
  filter: drop-shadow(0 0 6px rgba(255,255,255,.9)) drop-shadow(0 0 20px rgba(255,255,255,.4));
}

.porque-explosion-line__burst {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(255,255,255,.6) 40%, transparent 75%);
  transform: translate(-50%, 50%) scale(0);
  opacity: 0;
  filter: blur(1px);
}

.porque-wrap {
  position: relative;
  z-index: 1;
}

.grid--why {
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 2;
  margin-top: 3rem;
}

.why-list {
  margin-top: 2.25rem;
}

.why-item {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0 2.5rem;
  align-items: center;
  padding: 1.6rem 0;
  opacity: 1;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.why-item:last-child { border-bottom: none; }

.why-item__num {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: clamp(1.7rem, 2.3vw, 2.3rem);
  font-weight: 700;
  color: #404040;
  line-height: 1;
  letter-spacing: .04em;
  text-align: right;
  transform-origin: right center;
  transition: transform .55s cubic-bezier(.16,1,.3,1), color .55s ease;
}

.why-item__body h4 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.9vw, 1.7rem);
  font-weight: 600;
  color: #404040;
  letter-spacing: -.01em;
  margin-bottom: .35rem;
  line-height: 1.3;
  transition: color .55s ease;
}

.why-item__body p {
  font-size: .88rem;
  color: #404040;
  line-height: 1.6;
  max-width: 60ch;
  opacity: 0;
  transition: color .55s ease, opacity .55s ease;
}

.why-item.is-active .why-item__num {
  color: var(--white);
  transform: scale(2.6);
}

/* Static fallback (mobile / reduced motion): readable, no scroll-driven scale */
.why-item.is-static .why-item__num {
  color: var(--white);
  transform: none;
}

.why-item.is-active .why-item__body h4,
.why-item.is-static .why-item__body h4 {
  color: var(--white);
}

.why-item.is-active .why-item__body p,
.why-item.is-static .why-item__body p {
  color: var(--muted-strong);
  opacity: 1;
}

@media (max-width: 1024px) {
  .grid--why { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet: keep the scroll-driven focus effect, but tame the scale so the
   number never crowds the body copy at narrower column widths */
@media (min-width: 769px) and (max-width: 1024px) {
  .why-item { grid-template-columns: 3.5rem 1fr; gap: 0 1.75rem; }
  .why-item__num { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
  .why-item.is-active .why-item__num { transform: scale(2); }
}

@media (max-width: 720px) {
  .grid--why { grid-template-columns: 1fr; gap: 1.25rem; }
  .porque-explosion-line { display: none; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 1rem 1.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .4s cubic-bezier(.34,1.4,.64,1), background .35s, color .35s, border-color .35s;
}

.btn--primary {
  background: var(--white);
  color: var(--bg);
  border-color: var(--white);
}

.btn--primary:hover {
  background: transparent;
  color: var(--white);
  transform: translateY(-3px);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}

.btn--outline:hover {
  background: var(--white);
  color: var(--bg);
  border-color: var(--white);
  transform: translateY(-3px);
}

.btn .icon {
  width: 16px;
  height: 16px;
  transition: transform .35s var(--ease-out);
}

.btn:hover .icon { transform: translateX(5px); }

.btn:active {
  transform: scale(.97);
  transition-duration: .1s;
}

/* ==========================================================================
   Fullscreen text intros (Planes, Complementos, Contacto)
   ========================================================================== */
.fs-intro {
  position: relative;
  width: 100%;
}

.fs-intro__inner {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fs-intro__text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 8.5vw, 6.25rem);
  line-height: 1.08;
  letter-spacing: -.01em;
  padding: 0 1.25rem;
  gap: 0.15em 0.35em;
}

.fs-target {
  opacity: 0;
}

/* ==========================================================================
   Servicios — tabs + plan cards
   ========================================================================== */
.tabs {
  display: flex;
  gap: .25rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 3rem;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  max-width: 100%;
  width: 100%;
}

.tabs::-webkit-scrollbar { display: none; }

.tab {
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-strong);
  padding: 1rem 1.5rem;
  position: relative;
  white-space: nowrap;
  transition: color .3s;
}

.tab::after {
  content: '';
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: -1px;
  height: 2px;
  background: var(--white);
  transform: scaleX(0);
  transition: transform .35s var(--ease-out);
}

.tab.is-active { color: var(--white); }
.tab.is-active::after { transform: scaleX(1); }

.tab-panel[hidden] { display: none; }

.tab-panel.is-active {
  animation: panelIn .5s var(--ease-out);
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.plans {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.plans--4 {
  grid-template-columns: repeat(4, 1fr);
}

.plan-card__price {
  font-family: var(--font-mono);
  font-size: .82rem;
  line-height: 1.6;
  letter-spacing: .01em;
  color: var(--muted-strong);
}

.plan-card--featured .plan-card__price { color: rgba(7,7,7,.62); }

.recepcionista-desc {
  color: var(--muted-strong);
  font-size: 1.05rem;
  max-width: 62ch;
  margin-bottom: 2.5rem;
}

.plan-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 1px solid var(--line-strong);
  border-radius: 22px;
  padding: 2.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  position: relative;
  transition: transform .4s var(--ease-out), border-color .4s, box-shadow .4s;
}

.plan-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: 0 30px 70px -32px rgba(255, 255, 255, .16),
    inset 0 1px 0 rgba(255, 255, 255, .06);
}

.plan-card--featured {
  background: var(--white);
  color: var(--bg);
  border-color: var(--white);
  border-top: 1px solid rgba(7, 7, 7, .18);
}

.plan-card__badge {
  position: absolute;
  top: -13px;
  right: 2rem;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  padding: .45rem 1rem;
  border-radius: 999px;
}

.plan-card__head h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -.01em;
  margin-bottom: .5rem;
}

.plan-card__includes {
  font-family: var(--font-mono);
  font-size: .82rem;
  line-height: 1.6;
  letter-spacing: .01em;
  color: var(--muted-strong);
}

.plan-card--featured .plan-card__includes { color: rgba(7,7,7,.62); }

.plan-card__monthly {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.plan-card__monthly strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -.01em;
  color: var(--text);
  margin-bottom: .4rem;
}

.plan-card__monthly span {
  display: block;
  font-family: var(--font-mono);
  font-size: .82rem;
  line-height: 1.6;
  color: var(--muted-strong);
}

.plan-card--featured .plan-card__monthly {
  border-top-color: rgba(7, 7, 7, .18);
}

.plan-card--featured .plan-card__monthly strong { color: var(--bg); }
.plan-card--featured .plan-card__monthly span { color: rgba(7,7,7,.62); }

.plan-card__list {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  flex: 1;
}

.plan-card__list li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  font-size: .92rem;
  line-height: 1.5;
}

.plan-card__list li.is-no { color: var(--muted-strong); }
.plan-card--featured .plan-card__list li.is-no { color: rgba(7,7,7,.5); }

.icon--yes, .icon--no {
  width: 18px;
  height: 18px;
  margin-top: .1em;
  stroke-width: 1.4;
}

.icon--yes { color: var(--text); }
.icon--no { color: var(--muted-strong); }

.plan-card--featured .icon--yes { color: var(--bg); }
.plan-card--featured .icon--no { color: rgba(7,7,7,.45); }

.plan-card--featured .btn--primary {
  background: var(--bg);
  color: var(--white);
  border-color: var(--bg);
}

.plan-card--featured .btn--primary:hover {
  background: transparent;
  color: var(--bg);
}

.plan-card--featured .btn--outline {
  color: var(--bg);
  border-color: rgba(7,7,7,.3);
}

.plan-card--featured .btn--outline:hover {
  background: var(--bg);
  color: var(--white);
  border-color: var(--bg);
}

/* ==========================================================================
   Complementos
   ========================================================================== */
.grid--addons { grid-template-columns: repeat(3, 1fr); }

.addon {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 1.85rem;
  display: flex;
  flex-direction: column;
  gap: .9rem;
  transition: transform .35s var(--ease-out), border-color .35s;
}

.addon:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: 0 16px 40px -20px rgba(255, 255, 255, .12);
}

.addon p { font-size: 1rem; font-weight: 500; color: var(--text); line-height: 1.45; }

.icon--addon {
  width: 20px;
  height: 20px;
  padding: .65rem;
  box-sizing: content-box;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--text);
  stroke-width: 1.4;
}

.addons-group {
  margin-top: 3rem;
}

.addons-group__title {
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--muted-strong);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.addons-note {
  margin-top: 2rem;
  color: var(--muted);
  font-size: .8rem;
  font-family: var(--font-mono);
}

.cta-banner {
  margin-top: 4rem;
  padding: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
}

.cta-banner p {
  max-width: 46ch;
  font-size: 1.05rem;
  color: var(--text);
}

.bespoke {
  position: relative;
  margin-top: 4rem;
  padding: 5.5rem 3rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}

/* Technical grid background + cursor-tracked light reveal */
.bespoke__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 42px 42px;
  --mx: 50%;
  --my: 50%;
}

.bespoke__grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 320px at var(--mx) var(--my), rgba(255,255,255,.08), transparent 70%);
  opacity: 0;
  transition: opacity .4s ease;
}

.bespoke.is-grid-active .bespoke__grid::after {
  opacity: 1;
}

.bespoke__grid--pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 260px at 50% 40%, rgba(255,255,255,.07), transparent 70%);
  animation: bespokeGridPulse 5s ease-in-out infinite;
}

@keyframes bespokeGridPulse {
  0%, 100% { opacity: .35; }
  50%      { opacity: .9; }
}

@media (prefers-reduced-motion: reduce) {
  .bespoke__grid--pulse::after { animation: none; opacity: .5; }
}

.bespoke__body {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 2rem;
  align-items: center;
}

.bespoke__copy-col {
  max-width: 30rem;
}

.bespoke__eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted-strong);
  margin-bottom: 1.5rem;
}

.bespoke__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  color: var(--white);
  margin: 0 0 -1rem 0;
}

.bespoke__title .word {
  display: inline-block;
}

.bespoke__copy-col > .bespoke__copy {
  color: var(--muted-strong);
  line-height: 1.65;
  font-size: 1.05rem;
  margin: 2rem 0 2.25rem;
  max-width: 40ch;
}

/* Editorial break: title overlaps the code column slightly on wide screens */
@media (min-width: 1100px) {
  .bespoke__copy-col { margin-right: -2.5rem; }
}

.code-window {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
  overflow: hidden;
  animation: codeFloat 6s ease-in-out infinite;
}

@keyframes codeFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.code-window__bar {
  display: flex;
  gap: .45rem;
  padding: .85rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.code-window__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  opacity: .55;
}

.code-window__dot--red    { background: #ff5f57; }
.code-window__dot--yellow { background: #febc2e; }
.code-window__dot--green  { background: #28c840; }

.code-window__body {
  margin: 0;
  padding: 1.5rem 1.4rem;
  font-family: var(--font-mono);
  font-size: .82rem;
  line-height: 1.7;
  color: var(--muted-strong);
  overflow-x: auto;
  white-space: pre;
}

.code-window__body .tok-kw     { color: #fff; font-weight: 600; }
.code-window__body .tok-str    { color: #b8f2c9; }
.code-window__body .tok-fn     { color: #fff; }
.code-window__body .tok-comment{ color: rgba(255,255,255,.35); font-style: italic; }
.code-window__body .caret {
  display: inline-block;
  width: 7px;
  height: 1em;
  background: rgba(255,255,255,.7);
  vertical-align: text-bottom;
  animation: caretBlink .9s step-end infinite;
}

@keyframes caretBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

@media (max-width: 900px) {
  .bespoke__body {
    grid-template-columns: 1fr;
  }
  .bespoke__copy-col { max-width: 100%; margin-right: 0; }
  .code-window { animation: none; }
}

@media (max-width: 720px) {
  .bespoke { padding: 4rem 1.5rem; }
  .bespoke__title { font-size: clamp(2rem, 8vw, 2.8rem); }
  .btn--bespoke { width: 100%; justify-content: center; text-align: center; }
  .code-window__body { font-size: .74rem; }
}

@media (prefers-reduced-motion: reduce) {
  .code-window { animation: none; }
  .caret { animation: none; }
}

.btn--bespoke {
  background: var(--white);
  color: var(--bg);
  font-weight: 700;
  font-size: .95rem;
  padding: 1.15rem 2.1rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  transition: gap .35s cubic-bezier(0.16,1,0.3,1), padding .35s cubic-bezier(0.16,1,0.3,1), transform .35s cubic-bezier(0.16,1,0.3,1);
}

.btn--bespoke .icon {
  width: 18px;
  height: 18px;
  transition: transform .35s cubic-bezier(0.16,1,0.3,1);
}

.btn--bespoke:hover {
  gap: 1.1rem;
  padding-right: 1.7rem;
  transform: translateY(-2px);
}

.btn--bespoke:hover .icon {
  transform: translateX(4px);
}

@media (max-width: 900px) {
  .bespoke__glass { display: none; }
}

@media (max-width: 720px) {
  .bespoke { padding: 4rem 1.5rem; }
  .bespoke__title { font-size: clamp(2rem, 9vw, 3rem); max-width: 100%; }
  .bespoke__cols { grid-template-columns: 1fr; gap: 1.75rem; max-width: 100%; }
  .bespoke__cols::before { display: none; }
  .btn--bespoke { width: 100%; justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  .bespoke { padding: 3.25rem 1.25rem; }
  .bespoke__eyebrow { margin-bottom: 1.25rem; font-size: .64rem; letter-spacing: .22em; }
  .bespoke__title { font-size: clamp(1.7rem, 9.5vw, 2.4rem); }
  .bespoke__cols { margin-top: 2rem; padding-top: 1.75rem; }
  .bespoke__foot { margin-top: 2rem; }
  .btn--bespoke { padding: 1rem 1.6rem; font-size: .85rem; }
}

@media (prefers-reduced-motion: reduce) {
  .bespoke__glass-mark,
  .bespoke__glass-layer--1,
  .bespoke__glass-layer--2 {
    animation: none;
  }
}

/* Symmetric left/right entrance for addon cards */
.grid--addons [data-addon-anim] {
  opacity: 0;
}

.grid--addons [data-addon-anim]:nth-child(odd) {
  transform: translateX(-70px);
}

.grid--addons [data-addon-anim]:nth-child(even) {
  transform: translateX(70px);
}

/* ==========================================================================
   Portafolio — 3D carousel + ambient logo
   ========================================================================== */
.portafolio__bg-logo {
  position: absolute;
  top: 50%;
  right: -8%;
  transform: translateY(-50%);
  width: min(46vw, 620px);
  max-width: none;
  opacity: .05;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
  animation: bgLogoSpin 80s linear infinite;
}

@keyframes bgLogoSpin {
  to { transform: translateY(-50%) rotate(360deg); }
}

@media (max-width: 900px) {
  .portafolio__bg-logo { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .portafolio__bg-logo { animation: none; }
}

/* ==========================================================================
   Project detail overlay
   ========================================================================== */
.project-detail {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
}

.project-detail[hidden] { display: none; }

.project-detail__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 7, 7, .92);
  backdrop-filter: blur(10px);
  animation: fadeIn .3s ease;
}

.project-detail__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  max-height: 88vh;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: minmax(0, 1fr);
  animation: modalIn .4s var(--ease-out);
}

.project-detail__gallery {
  position: relative;
  min-height: 0;
  background: #000;
  border-radius: 24px 0 0 24px;
  overflow: hidden;
}

.project-detail__info {
  border-radius: 0 24px 24px 0;
  min-height: 0;
  overflow-y: auto;
}

.project-detail__media {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-detail__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.project-detail__img[hidden] { display: none; }

.project-detail__soon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 26px),
    var(--bg);
}

.project-detail__soon[hidden] { display: none; }

.project-detail__hex {
  width: 72px;
  height: 72px;
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.project-detail__gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(7, 7, 7, .55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s, color .3s;
}

.project-detail__gallery-arrow:hover { background: var(--white); color: var(--bg); }
.project-detail__gallery-arrow--prev { left: 1rem; }
.project-detail__gallery-arrow--prev .icon { transform: scaleX(-1); }
.project-detail__gallery-arrow--next { right: 1rem; }

.project-detail__gallery[data-single="true"] .project-detail__gallery-arrow,
.project-detail__gallery[data-single="true"] .project-detail__counter {
  display: none;
}

.project-detail__counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-numeral);
  font-style: italic;
  font-weight: 500;
  font-size: .85rem;
  letter-spacing: -.01em;
  color: var(--muted-strong);
  background: rgba(7,7,7,.55);
  padding: .35rem .85rem;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.project-detail__info {
  padding: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
}

.project-detail__info .project-detail__tag {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--muted-strong);
}

.project-detail__info h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  letter-spacing: -.01em;
}

.project-detail__info p {
  color: var(--muted-strong);
  line-height: 1.75;
}

.project-detail__features {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin: .5rem 0;
}

.project-detail__features li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: .92rem;
  color: var(--text);
}

.project-detail__features li::before {
  content: '';
  width: 6px;
  height: 6px;
  margin-top: .55em;
  border-radius: 50%;
  background: var(--white);
  flex-shrink: 0;
}

.project-detail__info .btn { align-self: flex-start; margin-top: .5rem; }
.project-detail__info .btn[hidden] { display: none; }

.project-detail__cta {
  margin-top: .25rem !important;
}

.project-detail__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(7,7,7,.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s, color .3s;
}

.project-detail__close:hover { background: var(--white); color: var(--bg); }

.project-detail__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s, color .3s;
}

.project-detail__nav:hover { background: var(--white); color: var(--bg); }
.project-detail__nav--prev { left: -70px; }
.project-detail__nav--prev .icon { transform: scaleX(-1); }
.project-detail__nav--next { right: -70px; }

@media (max-width: 900px) {
  .project-detail { padding: 0; }
  .project-detail__panel {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    max-height: 100vh;
    max-height: 100dvh;
    height: 100%;
    border-radius: 0;
    overflow-y: auto;
  }
  .project-detail__gallery { border-radius: 0; }
  .project-detail__info { border-radius: 0; overflow-y: auto; padding: 1.5rem; }
  .project-detail__media { min-height: 35vh; max-height: 40vh; }
  .project-detail__nav--prev { left: .5rem; }
  .project-detail__nav--next { right: .5rem; }
  .project-detail__nav { width: 38px; height: 38px; }
  .project-detail__info h3 { font-size: 1.4rem; }
  .project-detail__features li { font-size: .88rem; }
}

/* ==========================================================================
   Contacto
   ========================================================================== */
.contacto-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  margin-top: 3rem;
}

.contacto-logo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contacto-logo-wrap::before,
.contacto-logo-wrap::after {
  content: '';
  position: absolute;
  width: clamp(110px, 16vw, 220px);
  height: clamp(110px, 16vw, 220px);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  animation: contactoRipple 2.6s ease-out infinite;
  pointer-events: none;
}

.contacto-logo-wrap::after {
  animation-delay: 1.3s;
}

@keyframes contactoRipple {
  0%   { transform: scale(1); opacity: .6; }
  100% { transform: scale(1.7); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .contacto-logo-wrap::before,
  .contacto-logo-wrap::after { animation: none; }
}

.contacto-logo {
  width: clamp(110px, 16vw, 220px);
  height: auto;
  mix-blend-mode: screen;
  opacity: 0;
}

.contacto-info {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: 1.15rem 1.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .92rem;
  transition: background .35s, color .35s, transform .35s var(--ease-out), border-color .35s;
}

.contact-link:hover {
  background: var(--white);
  color: var(--bg);
  border-color: var(--white);
  transform: translateY(-3px);
}

.contact-link:active {
  transform: scale(.97);
  transition-duration: .1s;
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 760px) {
  .contacto-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }
  .contacto-info { align-items: center; }
  .contact-actions, .contact-buttons { justify-content: center; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  position: relative;
  padding: 6rem 0 2.5rem;
  border-top: 1px solid var(--line);
  overflow: hidden;
  text-align: center;
  background: var(--bg);
}

.footer__mark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -42%);
  width: min(85vw, 900px);
  max-width: none;
  opacity: .04;
  mix-blend-mode: screen;
  pointer-events: none;
}

.footer__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.footer__brand .footer__word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 7vw, 4rem);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.footer__brand p {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: .8rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  margin-top: .75rem;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.25rem;
  justify-content: center;
  font-size: .9rem;
  color: var(--muted-strong);
}

.footer__nav a { transition: color .3s; }
.footer__nav a:hover { color: var(--white); }

.footer__legal {
  position: relative;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .08em;
}

/* ==========================================================================
   Quote / customization modal
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 7, 7, .8);
  backdrop-filter: blur(8px);
  animation: fadeIn .35s ease;
}

.modal__panel {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  padding: 2.75rem;
  max-width: 580px;
  width: 100%;
  max-height: 85vh;
  overflow-y: scroll;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  animation: modalIn .4s var(--ease-out);
}

.modal__plan-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--muted-strong);
  margin-bottom: .75rem;
}

.modal__panel h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.65rem;
  letter-spacing: -.01em;
  line-height: 1.25;
  margin-bottom: 1.5rem;
  padding-right: 2rem;
}

.modal__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s, color .3s;
}

.modal__close:hover {
  background: var(--white);
  color: var(--bg);
}

#modalExtrasWrap { margin-top: .5rem; }


.modal__extras {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.modal__extras li {
  border-bottom: 1px solid var(--line);
}

.modal__extras label {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .75rem 0;
  font-size: .9rem;
  line-height: 1.45;
  cursor: pointer;
}

.modal__extras input[type="checkbox"] {
  margin-top: .2em;
  width: 16px;
  height: 16px;
  accent-color: var(--white);
  flex-shrink: 0;
}

.modal__form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: .5rem;
}

.modal__field {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.modal__field[hidden] {
  display: none;
}

.modal__field label,
.modal__field-label {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted-strong);
}

.modal__field input[type="text"] {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: .85rem 1rem;
  color: var(--text);
  font-size: .95rem;
  font-family: var(--font-body);
  transition: border-color .3s;
}

.modal__field input[type="text"]:focus {
  outline: none;
  border-color: var(--white);
}

.modal__field input::placeholder {
  color: var(--muted);
  font-size: .88rem;
}

.modal__radios {
  display: flex;
  gap: 1.5rem;
}

.modal__radio {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .92rem;
  cursor: pointer;
}

.modal__radio input {
  width: 16px;
  height: 16px;
  accent-color: var(--white);
}

.modal__submit {
  width: 100%;
  justify-content: center;
  margin-top: .25rem;
}

.modal__checkboxes {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.modal__checkbox {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  padding: .6rem 0;
  font-size: .9rem;
  line-height: 1.45;
  cursor: pointer;
}

.modal__checkbox input[type="checkbox"] {
  margin-top: .2em;
  width: 16px;
  height: 16px;
  accent-color: var(--white);
  flex-shrink: 0;
}

.modal__custom-text {
  width: 100%;
  margin-top: .5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .85rem 1rem;
  color: var(--white);
  font-size: .9rem;
  font-family: var(--font-body);
  min-height: 80px;
  resize: vertical;
}

.modal__readonly {
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  border-radius: 10px;
  padding: .85rem 1rem;
  color: var(--muted-strong);
  font-size: .95rem;
  font-family: var(--font-body);
  cursor: default;
}

.modal__note {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: .78rem;
  font-family: var(--font-mono);
}

.modal__note[hidden] { display: none; }

.modal__guide {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: .78rem;
  font-family: var(--font-mono);
  color: var(--muted);
}
.modal__guide[hidden] { display: none; }

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(24px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ==========================================================================
   WhatsApp floating button
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--white);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  box-shadow: 0 12px 36px -12px rgba(255,255,255,.35);
  transition: transform .35s var(--ease-out);
}

.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  animation: pulse 2.6s ease-out infinite;
}

.whatsapp-float:hover { transform: scale(1.08) translateY(-2px); }

.whatsapp-float .icon {
  width: 28px;
  height: 28px;
  stroke-width: 1.4;
}

@keyframes pulse {
  0%   { transform: scale(1); opacity: .6; }
  100% { transform: scale(1.45); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float::before { animation: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1280px) {
  .plans--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .grid--addons { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; }
  .plans--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .plans--4 { grid-template-columns: 1fr; }
}

@media (pointer: coarse) and (max-width: 1024px) {
  .fs-intro { display: none; }
  .fs-target { opacity: 1 !important; transform: none !important; }
}

@media (max-width: 720px) {
  .grid--addons { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; align-items: flex-start; }
  .footer__nav { gap: 1rem 1.5rem; font-size: .85rem; }

  .grid--addons [data-addon-anim]:nth-child(odd) { transform: translateY(40px); }
  .grid--addons [data-addon-anim]:nth-child(even) { transform: translateY(40px); }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .section { padding: 3.5rem 0; }
  .cta-banner { padding: 1.5rem; }
  .hero__subtitle, .footer__brand p { letter-spacing: .06em; }

  /* Modal fullscreen on mobile */
  .modal { padding: 0; }
  .modal__panel {
    max-height: 100vh;
    max-height: 100dvh;
    height: 100%;
    border-radius: 0;
    padding: 1.5rem;
    padding-top: 3.5rem;
  }
  .modal__close { top: 1rem; right: 1rem; }

  .section__title { font-size: 2rem; }
  .section__text, .section__lead, .recepcionista-desc { font-size: 1rem; }
  .hero__vignette { background: radial-gradient(ellipse 80% 60% at 50% 50%, transparent 10%, var(--bg) 70%); }

  /* Contact stacked */
  .contact-link { padding: .9rem 1.2rem; font-size: .875rem; }
  .contact-actions { flex-direction: column; }
  .contact-buttons { flex-direction: column; width: 100%; }
  .contact-buttons .btn { width: 100%; justify-content: center; font-size: .75rem; }

  /* Tabs scrollable */
  .tabs { gap: 0; -webkit-overflow-scrolling: touch; }
  .tab { padding: .75rem .85rem; font-size: .75rem; letter-spacing: .06em; }

  /* Plan cards */
  .plan-card__head h3 { font-size: 1.3rem; }
  .plan-card__list li { font-size: .875rem; line-height: 1.5; }
  .plan-card__monthly strong { font-size: 1.1rem; }
  .plan-card__includes, .plan-card__price { font-size: .8rem; }

  /* Why items */
  .why-item { grid-template-columns: 2.5rem 1fr; gap: 0 1.25rem; padding: 1.5rem 0; }
  .why-item__num { font-size: clamp(1.5rem, 5vw, 2rem); }
  .why-item__body h4 { font-size: 1rem; }
  .why-item__body p { font-size: .875rem; }

  /* Valores */
  .valor-item__title { font-size: 1.2rem; }
  .valor-item__desc { font-size: .875rem; }

  /* Addons */
  .addon { padding: 1.25rem; }
  .addon p { font-size: .875rem; }

  /* Misc */
  .eyebrow { font-size: .7rem; margin-bottom: 1rem; }
  .fs-intro__text { font-size: 1.75rem; padding: 0 1rem; }
  .footer__brand .footer__word { font-size: 2rem; }
  .footer__legal { font-size: .7rem; }

  .whatsapp-float { width: 48px; height: 48px; bottom: 1.25rem; right: 1.25rem; }
  .whatsapp-float .icon { width: 22px; height: 22px; }
  /* Pulse ::before overflow fix — scale(1.45) goes past 390px, causes Android auto-shrink */
  .whatsapp-float::before { animation: none; opacity: 0; }

  .btn { padding: .85rem 1.5rem; font-size: .75rem; }
}

@media (pointer: coarse) {
  .grain { animation: none; opacity: .02; }
}

@media (pointer: coarse) and (prefers-reduced-motion: no-preference) {
  .portafolio__bg-logo { animation: none; }
}

/* ==========================================================================
   MOBILE + SECURITY FIXES — comprehensive overhaul
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero: logo image in mark slot (mobile only)
   -------------------------------------------------------------------------- */
.hero__mark-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: screen;
  display: none;
}

@media (pointer: coarse), (max-width: 768px) {
  .hero__mark-img { display: block; animation: mobileLogoIn .85s cubic-bezier(.16,1,.3,1) .35s both; }
}

@keyframes mobileLogoIn {
  from { opacity: 0; transform: scale(.76); }
  to   { opacity: 1; transform: scale(1); }
}

/* --------------------------------------------------------------------------
   Hero: performance-aware mobile background
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .hero { background: linear-gradient(160deg,#000 0%,#080808 55%,#050505 100%); }
}

@media (max-width: 768px) {
  body.hero-animated .hero {
    background: linear-gradient(135deg,#000,#070707,#0e0e0e,#000);
    background-size: 300% 300%;
    animation: heroGrad 18s ease infinite;
  }
}

@keyframes heroGrad {
  0%,100% { background-position: 0 50%; }
  50%     { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  body.hero-animated .hero { animation: none; }
}

/* --------------------------------------------------------------------------
   Mobile IntersectionObserver reveal (replaces GSAP ScrollTrigger)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  [data-fade] {
    transition: opacity .45s cubic-bezier(.16,1,.3,1),
                transform .45s cubic-bezier(.16,1,.3,1);
  }
  [data-fade].mob-visible {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  [data-bespoke] {
    transition: opacity .5s cubic-bezier(.16,1,.3,1),
                transform .5s cubic-bezier(.16,1,.3,1);
  }
  [data-bespoke].mob-visible {
    opacity: 1 !important;
    transform: none !important;
  }
  [data-bespoke="title"] .word {
    transition: opacity .5s cubic-bezier(.16,1,.3,1),
                transform .5s cubic-bezier(.16,1,.3,1);
  }
  [data-bespoke="title"].mob-visible .word {
    opacity: 1 !important;
    transform: none !important;
  }

  .why-item {
    transition: opacity .45s cubic-bezier(.16,1,.3,1),
                transform .45s cubic-bezier(.16,1,.3,1);
  }
  .why-item.mob-visible,
  .why-item.why-visible {
    opacity: 1 !important;
    transform: none !important;
  }
  .scroll-line { display: none; }

  [data-addon-anim] {
    transition: opacity .4s cubic-bezier(.16,1,.3,1),
                transform .4s cubic-bezier(.16,1,.3,1);
  }
  [data-addon-anim].mob-visible {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* --------------------------------------------------------------------------
   Valores mobile: separator lines + left accent + staggered IO reveal
   -------------------------------------------------------------------------- */
@media (max-width: 760px) {
  .valor-item {
    padding: 1.5rem 0 1.5rem 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,.09);
    border-left: 2px solid rgba(255,255,255,.16);
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .42s cubic-bezier(.16,1,.3,1),
                transform .42s cubic-bezier(.16,1,.3,1),
                border-left-color .4s ease;
  }
  .valor-item:last-child { border-bottom: none; }
  .valor-item.mob-visible { opacity: 1; transform: none; border-left-color: rgba(255,255,255,.5); }

  .valor-item:nth-child(1) { transition-delay: 0s; }
  .valor-item:nth-child(2) { transition-delay: .06s; }
  .valor-item:nth-child(3) { transition-delay: .12s; }
  .valor-item:nth-child(4) { transition-delay: .18s; }
  .valor-item:nth-child(5) { transition-delay: .24s; }
  .valor-item:nth-child(6) { transition-delay: .30s; }
}

/* --------------------------------------------------------------------------
   Touch press feedback — zero performance cost
   -------------------------------------------------------------------------- */
@media (pointer: coarse) {
  .btn:active            { transform: scale(.97) !important; transition-duration: .08s !important; }
  .contact-link:active   { transform: scale(.97) !important; transition-duration: .08s !important; }
  .tab:active            { transform: scale(.95) !important; transition-duration: .08s !important; }
  .navbar__toggle:active { transform: scale(.90) !important; transition-duration: .07s !important; }
  .addon:active          { transform: scale(.98) !important; transition-duration: .08s !important; }
  .plan-card:active      { transform: scale(.99) !important; transition-duration: .08s !important; }
  .whatsapp-float:active { transform: scale(.93) !important; transition-duration: .07s !important; }
}

/* --------------------------------------------------------------------------
   Contact links: stack and full-width on small mobile
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .contact-link { width: 100%; justify-content: center; }
}

/* --------------------------------------------------------------------------
   Security: key headings non-selectable
   -------------------------------------------------------------------------- */
.hero__word,
.hero__slogan,
.section__title,
.navbar__word,
.footer__word,
.plan-card__badge,
.footer__legal,
.eyebrow {
  -webkit-user-select: none;
  user-select: none;
}

/* --------------------------------------------------------------------------
   Honeypot field (invisible to humans, bots fill it)
   -------------------------------------------------------------------------- */
.form__honeypot {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Rate-limit error message
   -------------------------------------------------------------------------- */
.modal__rate-error {
  display: none;
  margin-top: .75rem;
  padding: .65rem 1rem;
  background: rgba(255,80,80,.08);
  border: 1px solid rgba(255,80,80,.22);
  border-radius: 8px;
  font-size: .8rem;
  font-family: var(--font-mono);
  color: #ff9090;
  text-align: center;
}
.modal__rate-error.is-shown { display: block; }

/* --------------------------------------------------------------------------
   Protection toast (right-click message)
   -------------------------------------------------------------------------- */
.protect-toast {
  position: fixed;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(18,18,18,.92);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: .78rem;
  padding: .55rem 1.25rem;
  border-radius: 999px;
  z-index: 99999;
  pointer-events: none;
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity .3s ease;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Navbar: slide-down entrance (all devices)
   -------------------------------------------------------------------------- */
.navbar {
  animation: navbarSlideIn .65s cubic-bezier(.16,1,.3,1) both;
}
@keyframes navbarSlideIn {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .navbar { animation: none; } }

/* --------------------------------------------------------------------------
   Hero slogan: CSS entrance on mobile (GSAP handles desktop)
   -------------------------------------------------------------------------- */
@media (pointer: coarse), (max-width: 768px) {
  .hero__slogan {
    animation: heroSloganIn .65s cubic-bezier(.16,1,.3,1) .8s both;
  }
}
@keyframes heroSloganIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__slogan { animation: none; opacity: 1; }
}

/* --------------------------------------------------------------------------
   Section titles: blur-to-sharp on mobile
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  h2.section__title[data-fade],
  h3.section__title[data-fade] {
    filter: blur(5px);
    transition: opacity .6s cubic-bezier(.16,1,.3,1),
                transform .6s cubic-bezier(.16,1,.3,1),
                filter .5s ease-out;
  }
  h2.section__title.mob-visible,
  h3.section__title.mob-visible {
    opacity: 1 !important;
    transform: none !important;
    filter: blur(0) !important;
  }
}

/* --------------------------------------------------------------------------
   Why-item: mobile layout
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Plan cards: stagger
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .plans .plan-card:nth-child(2)[data-fade]       { transition-delay: .09s; }
  .plans--4 .plan-card:nth-child(2)[data-fade]    { transition-delay: .07s; }
  .plans--4 .plan-card:nth-child(3)[data-fade]    { transition-delay: .14s; }
  .plans--4 .plan-card:nth-child(4)[data-fade]    { transition-delay: .21s; }
}

/* --------------------------------------------------------------------------
   Addon cards: stagger
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .grid--addons [data-addon-anim]:nth-child(2) { transition-delay: .07s; }
  .grid--addons [data-addon-anim]:nth-child(3) { transition-delay: .14s; }
  .grid--addons [data-addon-anim]:nth-child(4) { transition-delay: .21s; }
  .grid--addons [data-addon-anim]:nth-child(5) { transition-delay: .28s; }
  .grid--addons [data-addon-anim]:nth-child(6) { transition-delay: .35s; }
  .grid--addons [data-addon-anim]:nth-child(7) { transition-delay: .42s; }
}

/* --------------------------------------------------------------------------
   Featured plan card: subtle ambient pulse (all devices)
   -------------------------------------------------------------------------- */
.plan-card--featured {
  animation: featuredPulse 5s ease-in-out infinite;
}
@keyframes featuredPulse {
  0%, 100% { box-shadow: 0 20px 48px -24px rgba(0,0,0,.1); }
  50%       { box-shadow: 0 28px 60px -20px rgba(0,0,0,.18); }
}
@media (prefers-reduced-motion: reduce) {
  .plan-card--featured { animation: none; }
}

/* --------------------------------------------------------------------------
   WhatsApp float: entrance animation
   -------------------------------------------------------------------------- */
.whatsapp-float {
  animation: waBounceIn .7s cubic-bezier(.34,1.56,.64,1) 1.2s both;
}
@keyframes waBounceIn {
  from { opacity: 0; transform: scale(.4) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float { animation: none; }
}

/* Zoom badge: hide on touch */
@media (pointer: coarse) {
}

/* ==========================================================================
   MOBILE FIXES — viewport containment + element positioning
   ========================================================================== */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  /* Navbar: always visible, standard space-between layout */
  .navbar {
    background: rgba(7,7,7,.92) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid rgba(255,255,255,.1) !important;
  }
  .navbar__inner {
    justify-content: space-between !important;
    padding: 1rem 1rem !important;
  }

  /* Hamburger: fixed top-right, circle bg, above mobile overlay */
  .navbar__toggle {
    position: fixed !important;
    right: 16px !important;
    top: 16px !important;
    width: 44px !important;
    height: 44px !important;
    z-index: 10000 !important;
    background: rgba(7,7,7,.88) !important;
    border-radius: 50% !important;
    border: 1px solid rgba(255,255,255,.2) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
  }

  /* WhatsApp: circle fixed inside viewport right:16px bottom:24px */
  .whatsapp-float {
    position: fixed !important;
    right: 16px !important;
    bottom: 24px !important;
    left: auto !important;
    width: 52px !important;
    height: 52px !important;
    border-radius: 50% !important;
    font-size: 0 !important;
  }
  .whatsapp-float::after { content: none !important; }
  .whatsapp-float::before { display: none !important; }
  .whatsapp-float .icon { width: 24px !important; height: 24px !important; font-size: 0; }

  /* Hero: remove empty space from ScrollTrigger pin spacers */
  .pin-spacer { height: auto !important; padding-bottom: 0 !important; padding-top: 0 !important; }
  .hero {
    min-height: 100svh;
    align-items: center;
    justify-content: center;
  }

  /* Hero isotipo: force visible on mobile */
  .hero__mark-img {
    display: block !important;
    opacity: 1 !important;
    width: 64px !important;
    height: 64px !important;
    margin: 0 auto 1rem !important;
  }
}

/* ==========================================================================
   Servicios — sections with plan boxes
   ========================================================================== */
.servicios-sections {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 3rem;
}

/* Options grid — asymmetric 5:7 */
.servicio-opciones {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: .9rem;
  align-items: stretch;
}

@media (max-width: 680px) {
  .servicio-opciones { grid-template-columns: 1fr; }
}


/* ─── Section keyline (pull quote / emphasis phrase) ─────────────── */
.section__keyline {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.45;
  letter-spacing: -.02em;
  border-left: 2px solid rgba(255,255,255,.22);
  padding-left: 1.1rem;
  margin: 1.6rem 0 1.75rem;
  max-width: 44ch;
}

/* ─── Services Tabs ───────────────────────────────────────────────── */
.servicios-tabs {
  margin-top: 2rem;
}

.servicios-tabs__nav {
  display: flex;
  border-bottom: 1px solid rgba(255,255,255,.08);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.servicios-tabs__nav::-webkit-scrollbar { display: none; }

.servicios-tab {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  padding: .7rem 1.1rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  margin-bottom: -1px;
  transition: color .2s cubic-bezier(0.23,1,.32,1),
              border-color .2s cubic-bezier(0.23,1,.32,1);
}
.servicios-tab:hover { color: rgba(255,255,255,.72); }
.servicios-tab.is-active {
  color: var(--white);
  border-bottom-color: var(--white);
}

/* Panels */
.servicios-panels { padding-top: 2rem; }

.servicios-panel { display: none; }
.servicios-panel.is-active {
  display: block;
  animation: panelFadeUp .3s cubic-bezier(0.23,1,.32,1) both;
}
@keyframes panelFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .servicios-panel.is-active { animation: none; }
}

/* Panel info */
.panel-info { margin-bottom: 1.65rem; }
.panel-info__sub {
  font-size: .9rem;
  color: var(--muted-strong);
  line-height: 1.55;
  margin-bottom: .85rem;
  max-width: 60ch;
}

/* ─── Plan Cards ──────────────────────────────────────────────────── */
.plan-cards {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: .9rem;
  align-items: stretch;
}
.plan-cards--single {
  grid-template-columns: 1fr;
  max-width: 620px;
}

.plan-card {
  background: rgba(255,255,255,.018);
  border: 1px solid rgba(255,255,255,.1);
  border-top: 2px solid rgba(255,255,255,.18);
  border-radius: 16px;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  transition:
    border-color .35s cubic-bezier(0.25,.46,.45,.94),
    box-shadow   .35s cubic-bezier(0.25,.46,.45,.94),
    transform    .35s cubic-bezier(0.25,.46,.45,.94),
    opacity      .35s cubic-bezier(0.25,.46,.45,.94),
    filter       .35s cubic-bezier(0.25,.46,.45,.94);
}
.plan-card--pro {
  background: #161616;
  border-color: rgba(255,255,255,.2);
  border-top-color: rgba(255,255,255,.5);
  box-shadow: 0 4px 28px rgba(0,0,0,.42);
}

/* Sibling dimming — only on pointer devices */
@media (hover: hover) and (pointer: fine) {
  .plan-cards:has(.plan-card:hover) .plan-card:not(:hover) {
    opacity: .5;
    transform: scale(0.97);
    filter: blur(1px);
  }
  .plan-cards .plan-card--esencial:hover {
    transform: scale(1.04);
    border-color: rgba(255,255,255,.55);
    box-shadow: 0 0 25px rgba(255,255,255,.15), 0 12px 36px rgba(0,0,0,.5);
    z-index: 2;
  }
  .plan-cards .plan-card--pro:hover {
    transform: scale(1.04);
    border-color: rgba(255,255,255,.82);
    box-shadow: 0 0 36px rgba(255,255,255,.25), 0 16px 48px rgba(0,0,0,.6);
    z-index: 2;
  }
}
@media (hover: none) {
  .plan-card:active { transform: scale(0.97); transition-duration: .12s; }
}

/* Card elements */
.plan-card__badge {
  position: absolute;
  top: -18px;
  right: 1.6rem;
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--white);
  border-radius: 999px;
  padding: .7rem 1.5rem;
  box-shadow: 0 8px 26px rgba(0,0,0,.4), 0 0 0 4px rgba(0,0,0,.4);
  animation: badgePulse 3.2s cubic-bezier(0.45,0,0.55,1) infinite;
  z-index: 3;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  .plan-card__badge { animation: none; }
}
.plan-card__top {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  flex-wrap: wrap;
}
.plan-card__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--white);
}
.plan-card--pro .plan-card__name { font-size: 1.2rem; }
.plan-card__mode {
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Price block */
.plan-card__price {
  padding: .85rem 0;
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.plan-card__price--dual {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.plan-card__price-divider {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: rgba(255,255,255,.28);
  padding-top: .1rem;
}
.plan-card__amount {
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -.025em;
  color: var(--white);
  line-height: 1;
}
.plan-card--pro .plan-card__amount { font-size: clamp(2rem, 3.8vw, 2.85rem); }
.plan-card__amount--sec { font-size: clamp(1.5rem, 2.8vw, 2.1rem) !important; }
.plan-card__plus {
  font-size: .55em;
  font-weight: 400;
  color: rgba(255,255,255,.35);
}
.plan-card__mensualidad {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-weight: 600;
  color: var(--white);
  letter-spacing: -.015em;
  line-height: 1.2;
  margin-top: .28rem;
}
.plan-card--pro .plan-card__mensualidad { font-size: clamp(1.15rem, 2.2vw, 1.55rem); }
.plan-card__mes {
  font-size: .72em;
  font-weight: 400;
  color: rgba(255,255,255,.42);
}
.plan-card__unit {
  font-family: var(--font-mono);
  font-size: .54rem;
  letter-spacing: .09em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: .45rem;
}

/* Diffs list */
.plan-card__diffs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .48rem;
  flex: 1;
}
.plan-card__diffs--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .48rem .75rem;
}
.plan-card__diffs li {
  font-size: .8rem;
  color: var(--muted-strong);
  line-height: 1.45;
  padding-left: 1rem;
  position: relative;
}
.plan-card__diffs li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
}
.plan-card__diffs li.is-inc::before  { background: rgba(255,255,255,.55); }
.plan-card__diffs li.is-client::before { background: rgba(255,255,255,.18); }
.plan-card__diffs li.is-client { color: var(--muted); }
.plan-card__note { font-size: .7rem !important; }

.plan-card__diffs li.is-check::before {
  content: '✓';
  background: none; width: auto; height: auto;
  border-radius: 0; top: 0;
  color: rgba(255,255,255,.65);
  font-size: .75rem; line-height: 1.45;
}
.plan-card__diffs li.is-cross {
  color: var(--muted);
}
.plan-card__diffs li.is-cross::before {
  content: '✕';
  background: none; width: auto; height: auto;
  border-radius: 0; top: 0;
  color: rgba(255,255,255,.2);
  font-size: .75rem; line-height: 1.45;
}
.plan-card__diffs li.is-star {
  color: rgba(255,255,255,.75);
  font-style: italic;
}
.plan-card__diffs li.is-star::before {
  content: '★';
  background: none; width: auto; height: auto;
  border-radius: 0; top: 0;
  color: rgba(255,255,255,.48);
  font-size: .7rem; line-height: 1.45;
  font-style: normal;
}
.plan-card__diffs li.is-api {
  color: rgba(255,255,255,.78);
}
.plan-card__diffs li.is-api::before {
  content: '✓';
  background: none; width: auto; height: auto;
  border-radius: 0; top: 0;
  color: rgba(110,220,90,.78);
  font-size: .75rem; line-height: 1.45;
}

/* CTA */
.plan-card__cta {
  margin-top: auto;
  align-self: stretch;
  justify-content: center;
  width: 100%;
}

@media (max-width: 680px) {
  .plan-cards { grid-template-columns: 1fr; }
  .plan-card  { padding: 1.3rem; }
  .plan-card__price--dual { flex-direction: column; gap: .65rem; }
  .plan-card__diffs--grid { grid-template-columns: 1fr; }
}

/* Portfolio coming-soon text */
.portfolio-coming {
  text-align: center;
  margin-top: 2.5rem;
  font-size: .95rem;
  color: var(--muted-strong);
  letter-spacing: .02em;
}

/* Footer policy block */
.footer__policy {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 5vw, 3rem);
  padding-right: clamp(1.25rem, 5vw, 3rem);
}

.footer__policy-title {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .75rem;
}

.footer__policy-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .5rem .75rem;
  list-style: disc;
  padding-left: 1.1rem;
}

.footer__policy-list li {
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.5;
  list-style: disc;
}

@media (max-width: 600px) {
  .footer__policy-list { grid-template-columns: 1fr; }
}

/* Footer policy link */
.footer__policy-link {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .25s;
  margin-left: .5rem;
}
.footer__policy-link:hover { color: var(--white); }

/* Portfolio coming text */
.portfolio-coming {
  text-align: center;
  margin-top: 2rem;
  font-size: .95rem;
  color: var(--muted-strong);
  letter-spacing: .02em;
}

/* ==========================================================================
   MOBILE: Enhanced reveal animations + ambient backgrounds
   ========================================================================== */

/* Scale + translate initial state — more impactful than plain translateY */
@media (max-width: 768px) {
  [data-fade] {
    transform: translateY(22px) scale(0.97);
  }

  /* Eyebrows: slide from left for directional variety */
  .eyebrow[data-fade] {
    transform: translateX(-20px);
  }

  /* Cascade: eyebrow fires first, title 70ms later, body text 130–220ms */
  .section__title[data-fade]   { transition-delay: .07s; }
  .section__lead[data-fade]    { transition-delay: .18s; }
  .section__text[data-fade]    { transition-delay: .13s; }
  .section__keyline[data-fade] { transition-delay: .24s; }

  /* CTA button: scale up from slightly smaller */
  .btn[data-fade] {
    transform: translateY(10px) scale(0.94);
    transition-duration: .55s;
    transition-delay: .22s;
  }

  /* Grain: bump visibility on mobile — was .02, too faint on OLED */
  .grain { opacity: .055 !important; }
}

/* Ambient radial glows — break the flat #070707 between sections */
@media (max-width: 768px) {
  .hero {
    background: radial-gradient(ellipse 110% 65% at 50% 54%, rgba(255,255,255,.055) 0%, rgba(255,255,255,.01) 44%, transparent 70%);
  }
  .section--nosotros {
    background: radial-gradient(ellipse 140% 55% at 68% 48%, rgba(255,255,255,.032) 0%, transparent 62%);
  }
  .section--porque {
    background: radial-gradient(ellipse 130% 50% at 38% 55%, rgba(255,255,255,.025) 0%, transparent 58%);
  }
  .section--portafolio {
    background: radial-gradient(ellipse 140% 55% at 58% 45%, rgba(255,255,255,.028) 0%, transparent 60%);
  }
  .section--contacto {
    background: radial-gradient(ellipse 140% 60% at 50% 42%, rgba(255,255,255,.04) 0%, transparent 65%);
  }
}

/* Featured plan: one-time shimmer on first reveal, then pulse resumes */
@media (max-width: 768px) {
  .plan-card--featured.mob-visible {
    animation: mobileShimmer .9s .25s ease-out both,
                featuredPulse 5s 1.15s ease-in-out infinite;
  }
  @keyframes mobileShimmer {
    0%   { box-shadow: 0 0  0  0 rgba(255,255,255,.00); }
    50%  { box-shadow: 0 0 28px 6px rgba(255,255,255,.055); }
    100% { box-shadow: 0 0  0  0 rgba(255,255,255,.00); }
  }
}
@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  .plan-card--featured.mob-visible { animation: none; }
  [data-fade]          { transform: none !important; }
  .eyebrow[data-fade]  { transform: none !important; }
  .btn[data-fade]      { transform: none !important; }
}

/* --------------------------------------------------------------------------
   Nota de pago 50/50 en Servicios
   -------------------------------------------------------------------------- */
.pago-nota {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: .55rem 1.1rem;
  margin-bottom: 2.25rem;
  background: rgba(255,255,255,.04);
}

/* ==========================================================================
   Auditoría CRO — nuevos bloques
   ========================================================================== */

/* Feedback táctil en todos los botones */
.btn {
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1),
              background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.btn:active { transform: scale(0.97); }

/* Micro-prueba bajo CTA del hero */
.hero__proof {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-strong);
  margin-top: 1.1rem;
}

/* Precio en tabs de servicios */
.servicios-tab__price {
  display: block;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .08em;
  opacity: .55;
  margin-top: .25rem;
}

/* Cómo trabajamos */
.proceso-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 2.5rem;
}
.proceso-step {
  border-top: 1px solid rgba(255,255,255,.14);
  padding-top: 1.5rem;
}
.proceso-step__num {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--muted-strong);
  letter-spacing: .18em;
}
.proceso-step h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: .8rem 0 .6rem;
}
.proceso-step p {
  color: var(--muted-strong);
  font-size: .95rem;
  line-height: 1.6;
}
@media (max-width: 760px) {
  .proceso-steps { grid-template-columns: 1fr; gap: 2rem; }
}

/* Portafolio: cierre con CTA */
.portfolio-coming {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  margin-top: 3rem;
  text-align: center;
}
.portfolio-coming p { color: var(--muted-strong); }

/* Banda de transparencia */
.transparencia-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  padding: 2rem 2.25rem;
  background: rgba(255,255,255,.03);
}
.transparencia-banner__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: .5rem;
}
.transparencia-banner__text {
  color: var(--muted-strong);
  font-size: .95rem;
  line-height: 1.6;
  max-width: 46ch;
}
.transparencia-banner .btn { flex-shrink: 0; }
@media (max-width: 760px) {
  .transparencia-banner { flex-direction: column; align-items: flex-start; padding: 1.5rem; }
}

/* Mini-form de contacto */
.contacto-form {
  display: grid;
  gap: 1.1rem;
  margin-bottom: 2rem;
  text-align: left;
}
.contacto-form__row { display: grid; gap: .4rem; }
.contacto-form label {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-strong);
}
.contacto-form input,
.contacto-form textarea {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;
  padding: .8rem 1rem;
  color: var(--white);
  font: inherit;
  min-height: 44px;
  transition: border-color 160ms ease;
}
.contacto-form input:focus-visible,
.contacto-form textarea:focus-visible {
  outline: none;
  border-color: rgba(255,255,255,.5);
}
.contacto-form .btn { justify-self: start; }

/* Etiqueta del botón flotante de WhatsApp */
.whatsapp-float { overflow: visible; }
.whatsapp-float__label {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(0,0,0,.8);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  padding: .5rem .9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease, transform 250ms cubic-bezier(0.23, 1, 0.32, 1);
}
.whatsapp-float.show-label .whatsapp-float__label,
.whatsapp-float:hover .whatsapp-float__label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ==========================================================================
   Bono de lanzamiento en Plan Pro
   ========================================================================== */
.plan-card__bono {
  display: grid;
  gap: .35rem;
  margin: .9rem 0 1.1rem;
  padding: .85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.22);
  background: linear-gradient(135deg, rgba(255,255,255,.1), rgba(255,255,255,.03));
}
.plan-card__bono-badge {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--white);
}
.plan-card__bono-note {
  font-size: .78rem;
  line-height: 1.45;
  color: var(--muted-strong);
}

/* ==========================================================================
   Portafolio — carrusel Novux (pcar)
   ========================================================================== */
.pcar {
  position: relative;
  margin-top: 2.5rem;
}
.pcar__viewport { overflow: hidden; }
.pcar__track {
  display: flex;
  gap: 2rem;
  will-change: transform;
}
.pcar__card {
  flex: 0 0 min(720px, 78%);
  border-radius: 20px;
  position: relative;
  background: rgba(10, 12, 16, .85);
  cursor: pointer;
  overflow: hidden;
  transition: transform 650ms cubic-bezier(0.23, 1, 0.32, 1), filter 650ms ease;
}
/* Borde gradiente cyan->azul */
.pcar__card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,.35), rgba(255,255,255,.08));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}
@media (hover: hover) and (pointer: fine) {
  .pcar__card.is-active:hover { transform: scale(1.05); }
  .pcar__img { filter: grayscale(1) brightness(.92); }
  .pcar__card:hover .pcar__img { filter: grayscale(0) brightness(1.05); }
}
.pcar__card:active { transform: scale(1.02); }
.pcar__media {
  aspect-ratio: 16 / 9;
  background: radial-gradient(120% 120% at 50% 0%, rgba(255,255,255,.05), transparent 60%), #0a0c10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pcar__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: filter 320ms ease;
}
/* Info con glassmorphism suave */
.pcar__info {
  padding: 1.5rem 1.75rem 1.8rem;
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255,255,255,.08);
}
.pcar__tag {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-strong);
}
.pcar__name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin: .5rem 0 .35rem;
}
.pcar__metric {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .06em;
  color: var(--white);
  opacity: .9;
  margin-bottom: .6rem;
}
.pcar__desc {
  color: var(--muted-strong);
  font-size: .92rem;
  line-height: 1.6;
  max-width: 60ch;
}
.pcar__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.75rem;
}
.pcar__arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.04);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}
.pcar__arrow:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.08); }
.pcar__arrow:active { transform: scale(0.94); }
.pcar__arrow .icon { width: 16px; height: 16px; }
.pcar__arrow:not(.pcar__arrow--next) .icon { transform: rotate(180deg); }
.pcar__dots { display: flex; gap: .6rem; }
.pcar__dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.25);
  cursor: pointer;
  padding: 0;
  transition: background-color 200ms ease, transform 200ms ease;
}
.pcar__dots button.is-active {
  background: var(--white);
  transform: scale(1.3);
}
@media (max-width: 760px) {
  .pcar__track { gap: 1rem; }
  .pcar__card { flex: 0 0 88%; }
  .pcar__info { padding: 1.2rem 1.25rem 1.4rem; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  .pcar__img { filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pcar__card, .pcar__img, .pcar__arrow, .pcar__dots button { transition: none; }
}

/* ==========================================================================
   Portafolio — coverflow 3D (sobre pcar)
   ========================================================================== */
.pcar__viewport { perspective: 1400px; padding: 1.25rem 0; }
.pcar__track { transform-style: preserve-3d; }
.pcar__card {
  transform-style: preserve-3d;
  transition: transform .6s var(--ease-out), opacity .3s ease, filter .35s ease;
}
.pcar__card[data-side="-1"] { transform: rotateY(26deg) scale(.88); filter: brightness(.5); }
.pcar__card[data-side="1"]  { transform: rotateY(-26deg) scale(.88); filter: brightness(.5); }
.pcar__card.is-active { transform: none; filter: none; }
@media (hover: hover) and (pointer: fine) {
  .pcar__card.is-active:hover { transform: scale(1.05); }
  .pcar__card[data-side="-1"]:hover { transform: rotateY(26deg) scale(.9); }
  .pcar__card[data-side="1"]:hover  { transform: rotateY(-26deg) scale(.9); }
}
@media (prefers-reduced-motion: reduce) {
  .pcar__card[data-side="-1"], .pcar__card[data-side="1"] { transform: none; filter: brightness(.6); }
}

/* Complementos: bento grid */
.grid--addons {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}
.grid--addons .addon {
  grid-column: span 2;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.4rem;
  min-height: 128px;
  padding: 1.4rem 1.5rem;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border: 1px solid rgba(255,255,255,.09);
}
.grid--addons .addon:first-child { grid-column: span 4; }
.grid--addons .addon:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.28);
  box-shadow: 0 20px 50px -25px rgba(255,255,255,.15);
}
.grid--addons .icon--addon {
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  box-sizing: border-box;
}
.grid--addons .addon p { font-size: .95rem; }
@media (max-width: 1024px) {
  .grid--addons { grid-template-columns: repeat(4, 1fr); }
  .grid--addons .addon,
  .grid--addons .addon:first-child { grid-column: span 2; }
}
@media (max-width: 640px) {
  .grid--addons { grid-template-columns: 1fr; }
  .grid--addons .addon,
  .grid--addons .addon:first-child { grid-column: auto; min-height: 0; gap: 1rem; }
}

/* Fix: imagen del modal de proyecto no debe desbordarse */
.project-detail__panel { overflow: hidden; }
.project-detail__media { max-height: 72vh; }
.project-detail__img { max-height: 100%; }

/* ==========================================================================
   Cotizador — resumen, 2 pasos, precio dinámico, checkboxes custom, éxito
   ========================================================================== */

/* Indicador de paso */
.modal__steps {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: .35rem 0 1.1rem;
}

/* Resumen del plan */
.modal__plan-summary {
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.4rem;
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.015));
}
.modal__plan-summary-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: .6rem;
}
.modal__plan-summary-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}
.modal__plan-summary-price {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--white);
}
.modal__plan-summary-perks {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .9rem;
}
.modal__plan-summary-perks li {
  font-size: .8rem;
  color: var(--muted-strong);
  display: flex;
  align-items: center;
  gap: .35rem;
}
.modal__plan-summary-perks li::before {
  content: '✓';
  font-size: .75rem;
  color: var(--white);
}

/* Labels legibles, no de sistema */
.modal__field label,
.modal__field-label {
  font-family: var(--font-body) !important;
  font-size: .9rem !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  font-weight: 500;
  color: var(--muted-strong);
}

/* Pasos */
.modal__step[hidden] { display: none; }
.modal__step-actions {
  display: flex;
  gap: .75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}
.modal__step-actions .modal__submit { flex: 1; justify-content: center; }
.modal__back { flex-shrink: 0; }
.modal__response-note {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-top: .7rem;
}

/* Checkboxes custom */
.modal__checkbox input[type="checkbox"],
.modal__extras input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(255,255,255,.04);
  cursor: pointer;
  display: inline-grid;
  place-content: center;
  transition: background-color 150ms ease, border-color 150ms ease;
}
.modal__checkbox input[type="checkbox"]::before,
.modal__extras input[type="checkbox"]::before {
  content: '';
  width: 10px;
  height: 10px;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  background: var(--bg);
  transform: scale(0);
  transition: transform 150ms cubic-bezier(0.23, 1, 0.32, 1);
}
.modal__checkbox input[type="checkbox"]:checked,
.modal__extras input[type="checkbox"]:checked {
  background: var(--white);
  border-color: var(--white);
}
.modal__checkbox input[type="checkbox"]:checked::before,
.modal__extras input[type="checkbox"]:checked::before {
  transform: scale(1);
}
.modal__checkbox input[type="checkbox"]:focus-visible,
.modal__extras input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

/* Barra de precio dinámica */
.modal__price-bar {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.25rem -1px -1px;
  padding: .85rem 1.25rem;
  border-top: 1px solid var(--line-strong);
  background: rgba(10, 10, 10, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 0 0 16px 16px;
}
.modal__price-label {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.modal__price-value {
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 600;
  color: var(--white);
  text-align: right;
}

/* Estado de éxito */
.modal__success {
  display: grid;
  justify-items: center;
  gap: .6rem;
  text-align: center;
  padding: 2.5rem 1rem;
}
.modal__success[hidden] { display: none; }
.modal__success-icon {
  width: 44px;
  height: 44px;
  color: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  padding: 10px;
  box-sizing: content-box;
}
.modal__success h4 {
  font-family: var(--font-display);
  font-size: 1.4rem;
}
.modal__success p {
  color: var(--muted-strong);
  font-size: .92rem;
}

/* ==========================================================================
   Complementos v2 — beneficio, destacado, "¿otra idea?"
   ========================================================================== */
.addon__txt { display: grid; gap: .3rem; }
.addon__name {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.addon__ben {
  font-size: .82rem !important;
  font-weight: 400 !important;
  color: var(--muted) !important;
  line-height: 1.5 !important;
}
.addon__api {
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .18rem .5rem;
  white-space: nowrap;
}
/* Destacada */
.addon--featured { position: relative; }
.addon__flag {
  position: absolute;
  top: 1.1rem;
  right: 1.2rem;
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--white);
  border-radius: 999px;
  padding: .25rem .6rem;
}
.addon--featured .addon__name { font-size: 1.1rem; }
.addon--featured .addon__ben { font-size: .9rem !important; }
/* "¿Tienes otra idea?" */
.addon--more {
  border-style: dashed;
  border-color: var(--line-strong);
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .35s var(--ease-out), border-color .35s, background-color .35s;
}
.addon--more:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.03);
  transform: translateY(-4px);
}
.addon--more .icon--addon { border-style: dashed; }

/* Captura móvil de Casa Azteca: llenar el marco recortando desde arriba */
.pcar__card[data-project="menu"] .pcar__img { object-fit: cover; object-position: top; }

/* ==========================================================================
   Footer — redes sociales
   ========================================================================== */
.footer__social {
  display: flex;
  justify-content: center;
  gap: .85rem;
  margin-top: 1.5rem;
}
.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--muted-strong);
  transition: color .3s, border-color .3s, background-color .3s, transform .3s var(--ease-out);
}
.footer__social a:hover {
  color: var(--bg);
  background: var(--white);
  border-color: var(--white);
  transform: translateY(-3px);
}
.footer__social a:active { transform: scale(.94); }
.footer__social svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: currentColor;
}
.footer__social svg[fill="none"] { fill: none; }
@media (prefers-reduced-motion: reduce) {
  .footer__social a { transition: color .3s, border-color .3s, background-color .3s; }
}
