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

:root {
  --bg:      #111118;
  --bg2:     #16161f;
  --surface: #1e1e30;
  --text:    #f5f3ff;
  --muted:   rgba(245,243,255,0.85);
  --dim:     rgba(232,230,240,0.15);
  --accent:  #6c3fff;
  --accent2: #00f0ff;
  --glow:    rgba(108,63,255,0.35);
  --glow2:   rgba(0,240,255,0.25);
  --warm:    #ff6b35;
  --ff:      'Space Grotesk', sans-serif;
  --ff-m:    'Space Mono', monospace;
  --ff-s:    'Playfair Display', Georgia, serif;
}

html { scroll-behavior: auto; overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff);
  font-weight: 500;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* Cursor custom solo en dispositivos con raton */
@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
}

/* ── CURSOR ── */
#cursor {
  position: fixed; width: 16px; height: 16px;
  border: 2px solid var(--accent2);
  border-radius: 50%; pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width .3s, height .3s, border-color .3s, background .3s;
  mix-blend-mode: difference;
}
#cursor-dot {
  position: fixed; width: 4px; height: 4px;
  background: var(--accent2); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
}
#cursor.hover { width: 48px; height: 48px; border-color: var(--accent); background: rgba(108,63,255,0.1); }

/* ── GRAIN (desactivado — mejora legibilidad) ── */

/* ── PROGRESS ── */
#progress {
  position: fixed; top: 0; left: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  z-index: 9997; width: 0; transition: width .1s linear;
}

/* ── GLOW ORBS ── */
.glow-orb { position: absolute; border-radius: 50%; filter: blur(120px); pointer-events: none; z-index: 0; }
.glow-orb-1 { width: 600px; height: 600px; background: var(--glow); top: -200px; left: -200px; }
.glow-orb-2 { width: 500px; height: 500px; background: var(--glow2); bottom: -150px; right: -200px; }
.glow-orb-3 { width: 400px; height: 400px; background: rgba(255,107,53,0.15); top: 50%; left: 50%; transform: translate(-50%,-50%); }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 48px;
  background: rgba(17,17,24,0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--dim);
}
.logo {
  font-family: var(--ff); font-weight: 700; font-size: 18px;
  letter-spacing: -0.02em; text-transform: uppercase;
  text-decoration: none; color: var(--text);
  display: flex; align-items: center; gap: 4px;
}
.logo .la { color: var(--accent); }
.logo .tag {
  font-family: var(--ff-m); font-size: 8px; color: var(--muted);
  border: 1px solid var(--dim); padding: 2px 8px;
  border-radius: 2px; margin-left: 12px; letter-spacing: .1em;
}
.nav-links { display: flex; gap: 36px; }
.nav-links a {
  font-size: 12px; color: var(--muted); text-decoration: none;
  letter-spacing: .1em; text-transform: uppercase; transition: color .3s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px;
  background: var(--accent); transition: width .3s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { width: 100%; }
.nav-cta {
  background: var(--accent); color: #fff; border: none;
  padding: 12px 28px; font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; cursor: none; font-family: var(--ff); font-weight: 600;
  transition: all .3s; position: relative; overflow: hidden;
}
.nav-cta::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.15));
  opacity: 0; transition: opacity .3s;
}
.nav-cta:hover::before { opacity: 1; }
.nav-cta:hover { box-shadow: 0 0 30px var(--glow); transform: translateY(-1px); }

/* ── NAV TOGGLE (hamburguesa movil) ── */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 8px; cursor: pointer; z-index: 1001;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--text);
  transition: transform .3s, opacity .3s;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MAGNETIC ── */
.magnetic { transition: transform .3s cubic-bezier(.25,.46,.45,.94); }

/* ── HERO ── */
.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  justify-content: center; position: relative; overflow: hidden;
  padding: 140px 48px 80px;
}
.hero-line { overflow: hidden; display: block; }
.hero h1 {
  font-family: var(--ff); font-weight: 700;
  font-size: clamp(48px, 7.5vw, 110px); line-height: 1;
  letter-spacing: -0.04em; text-transform: uppercase; max-width: 1000px;
}
/* Visible por defecto para crawlers y sin JS. GSAP anima solo cuando js-ready */
.hero h1 .word { display: inline-block; }
html.js-ready .hero h1 .word { transform: translateY(120%); opacity: 0; }
.hero h1 .italic {
  font-family: var(--ff-s); font-style: italic; font-weight: 400; color: var(--accent2);
}
.hero h1 .glow-text {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub { margin-top: 40px; max-width: 520px; }
html.js-ready .hero-sub { opacity: 0; transform: translateY(30px); }
.hero-sub p { font-family: var(--ff-s); font-style: italic; font-size: 20px; color: var(--muted); line-height: 1.7; }
.hero-ctas { display: flex; gap: 16px; margin-top: 48px; flex-wrap: wrap; }
html.js-ready .hero-ctas { opacity: 0; transform: translateY(30px); }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--accent); color: #fff; border: none;
  padding: 18px 36px; font-family: var(--ff); font-weight: 600;
  font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  cursor: none; position: relative; overflow: hidden; transition: all .3s;
  text-decoration: none; display: inline-block;
}
.btn-primary::before {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 0; height: 0; background: rgba(255,255,255,0.15);
  border-radius: 50%; transform: translate(-50%,-50%);
  transition: width .5s, height .5s;
}
.btn-primary:hover::before { width: 300px; height: 300px; }
.btn-primary:hover { box-shadow: 0 0 40px var(--glow); transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: var(--text); border: 1px solid var(--dim);
  padding: 18px 36px; font-family: var(--ff); font-weight: 500;
  font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  cursor: none; transition: all .3s; text-decoration: none; display: inline-block;
}
.btn-ghost:hover { border-color: var(--accent2); color: var(--accent2); box-shadow: 0 0 30px var(--glow2); }

/* Hero stats */
.hero-stats {
  display: flex; gap: 48px; margin-top: 64px; padding-top: 32px;
  border-top: 1px solid var(--dim);
}
html.js-ready .hero-stats { opacity: 0; transform: translateY(30px); }
.stat-n {
  font-family: var(--ff); font-weight: 700; font-size: 48px;
  letter-spacing: -0.04em; line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-l { font-family: var(--ff-m); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

/* ── TICKER ── */
.ticker {
  overflow: hidden; border-top: 1px solid var(--dim); border-bottom: 1px solid var(--dim);
  padding: 16px 0; background: var(--bg2);
}
.ticker-track { display: flex; white-space: nowrap; animation: ticker-scroll 30s linear infinite; }
.ticker-item { font-family: var(--ff-m); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 0 40px; }
.ticker-item b { color: var(--accent); font-weight: 400; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── SECTION HEADERS ── */
section { position: relative; }
.section-header { padding: 80px 48px 48px; border-bottom: 1px solid var(--dim); }
.section-tag {
  font-family: var(--ff-m); font-size: 13px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.section-tag::before { content: ''; width: 40px; height: 1px; background: var(--accent); }
.section-h, h2.section-h {
  font-family: var(--ff); font-weight: 700;
  font-size: clamp(32px, 4.5vw, 64px); letter-spacing: -0.03em;
  text-transform: uppercase; line-height: .95;
  margin: 0;
}
.section-h em {
  font-family: var(--ff-s); font-style: italic; font-weight: 400;
  color: var(--muted); font-size: .75em; display: block;
  letter-spacing: 0; margin-top: 8px; text-transform: none;
}

/* ── PROBLEM ── */
.prob-grid { display: grid; grid-template-columns: 380px 1fr; border-bottom: 1px solid var(--dim); }
.prob-left {
  padding: 56px 40px; border-right: 1px solid var(--dim);
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
}
.prob-left-h {
  font-family: var(--ff); font-weight: 700;
  font-size: clamp(24px, 2.5vw, 36px); letter-spacing: -0.03em;
  text-transform: uppercase; line-height: 1;
}
.prob-left-h em {
  font-family: var(--ff-s); font-style: italic; font-weight: 400;
  font-size: clamp(20px, 2vw, 28px); color: var(--accent2);
  display: block; letter-spacing: 0; margin-top: 8px; text-transform: none;
}
.prob-manifesto {
  font-family: var(--ff); font-size: 17px;
  color: var(--muted); line-height: 1.7; font-weight: 400;
  border-left: 2px solid var(--accent); padding-left: 16px;
}
.prob-right { display: flex; flex-direction: column; }
.prob-cell {
  padding: 36px 48px; border-bottom: 1px solid var(--dim);
  display: grid; grid-template-columns: 56px 1fr; gap: 24px; align-items: start;
  transition: background .3s;
}
.prob-cell:last-child { border-bottom: none; }
.prob-cell:hover { background: rgba(108,63,255,0.03); }
.pc-num { font-family: var(--ff-m); font-size: 11px; letter-spacing: .1em; color: var(--accent); padding-top: 4px; }
.pc-title { font-family: var(--ff); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; text-transform: uppercase; margin-bottom: 8px; }
.pc-desc { font-family: var(--ff); font-size: 17px; color: var(--muted); line-height: 1.65; font-weight: 400; }

/* ── SERVICES ── */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.svc-card {
  padding: 48px 36px; border-right: 1px solid var(--dim);
  border-bottom: 1px solid var(--dim);
  display: flex; flex-direction: column; position: relative;
  overflow: hidden; transition: all .4s; text-decoration: none; color: inherit;
}
.svc-card:last-child { border-right: none; }
.svc-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(108,63,255,0.08), transparent);
  opacity: 0; transition: opacity .4s;
}
.svc-card:hover::before { opacity: 1; }
.svc-card:hover { transform: translateY(-4px); }
.svc-card.featured { background: var(--surface); }
.svc-num {
  position: absolute; top: -20px; right: 16px;
  font-family: var(--ff); font-weight: 700; font-size: 120px;
  line-height: 1; color: rgba(232,230,240,0.03); pointer-events: none;
}
.svc-label { font-family: var(--ff-m); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 28px; position: relative; }
.svc-icon { font-family: var(--ff-m); font-size: 12px; letter-spacing: .08em; color: var(--accent2); margin-bottom: 12px; position: relative; }
.svc-h3, h3.svc-h3 {
  font-family: var(--ff); font-weight: 700;
  font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.02em;
  text-transform: uppercase; line-height: 1.05; margin: 0 0 18px; position: relative;
}
.svc-p { font-family: var(--ff); font-size: 17px; line-height: 1.65; color: var(--muted); margin-bottom: 28px; flex: 1; position: relative; font-weight: 400; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; position: relative; }
.svc-tag {
  font-family: var(--ff-m); font-size: 9px; letter-spacing: .06em;
  text-transform: uppercase; padding: 5px 12px;
  border: 1px solid var(--dim); color: var(--muted); transition: all .3s;
}
.svc-card:hover .svc-tag { border-color: var(--accent); color: var(--accent); }
.svc-price-block { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--dim); position: relative; }
.svc-price {
  font-family: var(--ff); font-weight: 700; font-size: 24px; letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.svc-price-sub { font-family: var(--ff-m); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

/* ── PROCESS ── */
.proc-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--dim); }
.proc-col {
  padding: 48px 32px; border-right: 1px solid var(--dim);
  transition: all .3s; position: relative;
}
.proc-col:last-child { border-right: none; }
.proc-col::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width .5s ease;
}
.proc-col:hover::after { width: 100%; }
.proc-col:hover { background: rgba(108,63,255,0.03); }
.proc-n { font-family: var(--ff-m); font-size: 13px; letter-spacing: .18em; color: var(--accent); margin-bottom: 28px; }
.proc-title { font-family: var(--ff); font-weight: 600; font-size: 16px; text-transform: uppercase; margin-bottom: 12px; }
.proc-desc { font-family: var(--ff); font-size: 17px; color: var(--muted); line-height: 1.65; font-weight: 400; }

/* ── TESTIMONIALS ── */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--dim); }
.tc {
  padding: 48px 36px; border-right: 1px solid var(--dim);
  display: flex; flex-direction: column; transition: all .3s;
}
.tc:last-child { border-right: none; }
.tc:hover { background: rgba(108,63,255,0.03); }
.tc-quote {
  font-family: var(--ff-s); font-size: 48px; line-height: .5;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  display: block; margin-bottom: 16px;
}
.tc-text { font-family: var(--ff); font-size: 17px; line-height: 1.65; color: var(--muted); flex: 1; margin-bottom: 28px; font-weight: 400; }
.tc-foot { display: flex; align-items: center; gap: 14px; padding-top: 22px; border-top: 1px solid var(--dim); }
.tc-av {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-m); font-size: 10px; flex-shrink: 0;
}
.tc-name { font-family: var(--ff); font-weight: 600; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.tc-role { font-family: var(--ff-m); font-size: 12px; color: var(--muted); letter-spacing: .08em; margin-top: 2px; }

/* ── CTA ── */
.cta-section { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--dim); }
.cta-left {
  background: var(--surface); padding: 80px 56px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.cta-bg-word {
  position: absolute; bottom: -30px; left: -10px;
  font-family: var(--ff); font-weight: 700; font-size: 140px;
  letter-spacing: -0.05em; color: rgba(108,63,255,0.04);
  text-transform: uppercase; pointer-events: none; white-space: nowrap;
}
.cta-left h2 {
  font-family: var(--ff); font-weight: 700;
  font-size: clamp(32px, 3.8vw, 52px); letter-spacing: -0.03em;
  text-transform: uppercase; line-height: .95; position: relative;
}
.cta-left h2 span {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.cta-left p {
  font-family: var(--ff); font-size: 17px;
  color: var(--muted); line-height: 1.65; max-width: 400px;
  margin-top: 20px; position: relative; font-weight: 400;
}
.cta-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; border: none; padding: 18px 36px;
  font-family: var(--ff); font-weight: 600; font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase; cursor: none;
  width: fit-content; position: relative; margin-top: 40px;
  transition: all .3s; text-decoration: none; display: inline-block;
}
.cta-btn:hover { box-shadow: 0 0 50px var(--glow); transform: translateY(-2px); }
.cta-right { padding: 80px 56px; display: flex; flex-direction: column; justify-content: center; gap: 36px; }
.cta-detail { display: flex; align-items: flex-start; gap: 18px; }
.cd-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 5px; box-shadow: 0 0 10px var(--glow); }
.cd-title { font-family: var(--ff); font-weight: 600; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 6px; }
.cd-text { font-family: var(--ff); font-size: 17px; color: var(--muted); line-height: 1.65; font-weight: 400; }

/* ── ABOUT SECTION ── */
.about-section { border-bottom: 1px solid var(--dim); }
.about-card {
  display: flex; gap: 40px; align-items: flex-start;
  padding: 48px; padding-left: 3rem;
}
.about-photo { flex-shrink: 0; }
.about-photo img {
  width: 200px; max-width: 250px; height: auto;
  border-radius: 16px; object-fit: cover;
  border: 1px solid var(--dim);
}
.about-body { flex: 1; min-width: 0; }
.about-name {
  font-family: var(--ff); font-weight: 700;
  font-size: clamp(18px, 2vw, 24px); letter-spacing: -0.02em;
  text-transform: uppercase; line-height: 1.1; margin: 0 0 6px;
  color: #fff;
}
.about-role {
  font-family: var(--ff-m); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 20px;
}
.about-body .svc-p {
  font-size: 15px; line-height: 1.6; color: #d4d4d8; margin-bottom: 16px;
}
.about-links {
  display: flex; gap: 20px; margin-top: 20px; padding-top: 16px;
  border-top: 1px solid var(--dim);
}
.about-links a {
  font-family: var(--ff-m); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent2); text-decoration: none;
  transition: color .2s;
}
.about-links a:hover { color: var(--accent); }
@media (max-width: 768px) {
  .about-card { flex-direction: column; gap: 24px; padding: 36px 20px; }
  .about-photo img { width: 180px; }
}

/* ── PAGE SECTIONS (internal pages) ── */
.page-section { border-bottom: 1px solid var(--dim); padding: 64px 48px; }
.page-section.dark { background: var(--surface); }
.page-section-h {
  font-family: var(--ff); font-weight: 700;
  font-size: clamp(28px, 3vw, 44px); letter-spacing: -0.03em;
  text-transform: uppercase; line-height: .95; margin-bottom: 32px;
}
.page-section-h em {
  font-family: var(--ff-s); font-style: italic; font-weight: 400;
  color: var(--accent2); font-size: .75em; display: block;
  letter-spacing: 0; margin-top: 8px; text-transform: none;
}
.page-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.page-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.page-card {
  padding: 48px; border: 1px solid var(--dim); transition: all .3s;
  position: relative; overflow: hidden;
  text-decoration: none; color: inherit; display: block;
  cursor: pointer;
}
.page-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(108,63,255,0.06), transparent);
  opacity: 0; transition: opacity .3s;
}
.page-card:hover::before { opacity: 1; }
.page-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.page-card-n { font-family: var(--ff-m); font-size: 13px; letter-spacing: .18em; color: var(--accent); margin-bottom: 16px; position: relative; }
.page-card-h { font-family: var(--ff); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; text-transform: uppercase; margin-bottom: 10px; position: relative; }
.page-card-p { font-family: var(--ff); font-size: 17px; color: var(--muted); line-height: 1.65; position: relative; font-weight: 400; margin-bottom: 24px; }
.page-card-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff); font-weight: 600; font-size: 13px;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent2); position: relative;
  transition: gap .3s;
}
.page-card:hover .page-card-cta { gap: 12px; }
.page-card-cta::after {
  content: '→'; transition: transform .3s;
}
.page-card:hover .page-card-cta::after { transform: translateX(4px); }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--dim); padding: 24px 0; }
.faq-q {
  font-family: var(--ff); font-weight: 600; font-size: 15px;
  text-transform: uppercase; letter-spacing: -0.01em; cursor: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-q::after { content: '+'; font-family: var(--ff-m); font-size: 18px; color: var(--accent); transition: transform .3s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  font-family: var(--ff); font-size: 17px;
  color: var(--muted); line-height: 1.65; font-weight: 400;
  max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease;
  padding-top: 0;
}
.faq-item.open .faq-a { max-height: 200px; padding-top: 14px; }

/* Portfolio */
.portfolio-card {
  border: 1px solid var(--dim); padding: 36px;
  display: flex; flex-direction: column; transition: all .3s;
  position: relative; overflow: hidden;
}
.portfolio-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(108,63,255,0.06), transparent);
  opacity: 0; transition: opacity .3s;
}
.portfolio-card:hover::before { opacity: 1; }
.portfolio-card:hover { transform: translateY(-2px); }
.portfolio-tag { font-family: var(--ff-m); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; position: relative; }
.portfolio-h { font-family: var(--ff); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; text-transform: uppercase; margin-bottom: 10px; position: relative; }
.portfolio-p { font-family: var(--ff); font-size: 17px; color: var(--muted); line-height: 1.65; flex: 1; margin-bottom: 18px; position: relative; font-weight: 400; }
.portfolio-result {
  font-family: var(--ff); font-weight: 600; font-size: 13px; letter-spacing: .04em;
  text-transform: uppercase; padding-top: 14px; border-top: 1px solid var(--dim); position: relative;
}
.portfolio-result span {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  font-family: var(--ff-m); font-size: 11px; letter-spacing: .06em; margin-left: 8px;
}

/* Pricing */
.pricing-card { border: 1px solid var(--dim); padding: 44px 36px; display: flex; flex-direction: column; transition: all .3s; }
.pricing-card:hover { transform: translateY(-2px); }
.pricing-card.featured { background: var(--surface); border-color: var(--accent); }
.pricing-label { font-family: var(--ff-m); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.pricing-price {
  font-family: var(--ff); font-weight: 700; font-size: 36px; letter-spacing: -0.03em; margin-bottom: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.pricing-sub { font-family: var(--ff-m); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 28px; }
.pricing-list { list-style: none; flex: 1; margin-bottom: 28px; }
.pricing-list li {
  font-family: var(--ff); font-size: 15px; line-height: 1.65; font-weight: 400;
  color: var(--muted); padding: 6px 0; border-bottom: 1px solid var(--dim);
  display: flex; align-items: baseline; gap: 10px;
}
.pricing-list li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* Contact */
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-row { display: flex; align-items: center; gap: 14px; }
.contact-icon {
  width: 40px; height: 40px; border: 1px solid var(--dim);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-m); font-size: 11px; flex-shrink: 0; color: var(--accent);
}
.contact-label { font-family: var(--ff-m); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-value { font-family: var(--ff); font-weight: 600; font-size: 14px; }
.contact-value a { color: var(--text); text-decoration: none; transition: color .3s; }
.contact-value a:hover { color: var(--accent2); }

/* ── FOOTER ── */
footer {
  padding: 32px 48px; display: flex; align-items: center;
  justify-content: space-between; border-top: 1px solid var(--dim);
}
.f-logo { font-family: var(--ff); font-weight: 700; font-size: 13px; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.f-logo b { color: var(--accent); }
.f-links { display: flex; gap: 28px; }
.f-links a { font-family: var(--ff-m); font-size: 9px; color: var(--muted); text-decoration: none; letter-spacing: .1em; text-transform: uppercase; transition: color .3s; }
.f-links a:hover { color: var(--accent2); }
.f-copy { font-family: var(--ff-m); font-size: 9px; color: rgba(232,230,240,.2); letter-spacing: .08em; }

/* ── BOOKING PANEL ── */
#booking-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.7); opacity: 0; pointer-events: none; transition: opacity .35s; z-index: 500; backdrop-filter: blur(8px); }
#booking-overlay.show { opacity: 1; pointer-events: all; }
#booking-panel {
  position: fixed; top: 0; right: 0; bottom: 0; width: 460px;
  background: var(--bg2); border-left: 1px solid var(--dim);
  transform: translateX(100%); transition: transform .4s cubic-bezier(.16,1,.3,1);
  z-index: 501; display: flex; flex-direction: column; overflow: hidden;
}
#booking-panel.open { transform: translateX(0); }
.bp-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--dim); }
.bp-logo { font-family: var(--ff); font-weight: 700; font-size: 14px; text-transform: uppercase; }
.bp-logo b { color: var(--accent); }
.bp-close { width: 32px; height: 32px; border: 1px solid var(--dim); background: transparent; cursor: none; font-size: 16px; display: flex; align-items: center; justify-content: center; transition: all .2s; color: var(--muted); }
.bp-close:hover { border-color: var(--accent); color: var(--accent); }
.bp-type-selector { padding: 24px; border-bottom: 1px solid var(--dim); }
.meet-opt { border: 1px solid var(--dim); padding: 16px; cursor: none; display: flex; align-items: center; gap: 14px; margin-bottom: 8px; transition: all .2s; background: transparent; }
.meet-opt:hover { border-color: var(--accent); }
.meet-opt.sel { border-color: var(--accent); background: rgba(108,63,255,0.06); }
.mo-icon { width: 40px; height: 40px; border: 1px solid var(--dim); display: flex; align-items: center; justify-content: center; font-family: var(--ff-m); font-size: 11px; flex-shrink: 0; transition: all .2s; }
.meet-opt.sel .mo-icon { background: var(--accent); color: #fff; border-color: var(--accent); }
.mo-title { font-family: var(--ff); font-weight: 600; font-size: 13px; text-transform: uppercase; margin-bottom: 2px; }
.mo-desc { font-family: var(--ff); font-size: 14px; color: var(--muted); line-height: 1.5; font-weight: 400; }
.mo-dur { font-family: var(--ff-m); font-size: 9px; color: var(--muted); letter-spacing: .08em; margin-left: auto; flex-shrink: 0; }

/* ── CHAT ── */
#chat-bubble {
  position: fixed; bottom: 28px; right: 28px; z-index: 600;
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none; cursor: none;
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s, box-shadow .3s;
  box-shadow: 0 0 30px var(--glow);
}
#chat-bubble:hover { transform: scale(1.1); box-shadow: 0 0 50px var(--glow); }
#chat-bubble svg { width: 22px; height: 22px; fill: #fff; }
#chat-badge {
  position: absolute; top: -2px; right: -2px; width: 16px; height: 16px;
  background: var(--warm); border-radius: 50%; border: 2px solid var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-m); font-size: 8px; color: #fff; font-weight: 700;
  animation: badge-pulse 2s infinite;
}
@keyframes badge-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.2); } }
#chat-panel {
  position: fixed; bottom: 96px; right: 28px; z-index: 600;
  width: 380px; background: var(--bg2); border: 1px solid var(--dim);
  display: flex; flex-direction: column; overflow: hidden;
  transform: scale(.92) translateY(12px); opacity: 0; pointer-events: none;
  transition: transform .3s cubic-bezier(.16,1,.3,1), opacity .3s;
  transform-origin: bottom right;
}
#chat-panel.open { transform: scale(1) translateY(0); opacity: 1; pointer-events: all; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 16px; background: var(--surface); border-bottom: 1px solid var(--dim); }
.chat-av { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg,var(--accent),var(--accent2)); display: flex; align-items: center; justify-content: center; font-family: var(--ff-m); font-size: 10px; color: #fff; font-weight: 700; flex-shrink: 0; }
.chat-head-name { font-family: var(--ff); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.chat-head-status { font-family: var(--ff-m); font-size: 9px; color: var(--accent2); letter-spacing: .08em; }
.chat-close { background: transparent; border: none; color: var(--muted); cursor: none; font-size: 16px; padding: 0 4px; transition: color .2s; }
.chat-close:hover { color: var(--text); }
.chat-head-info { flex: 1; }
.chat-msgs { height: 280px; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; }
.msg { max-width: 82%; } .msg-agent { align-self: flex-start; } .msg-user { align-self: flex-end; }
.msg-bubble { padding: 10px 14px; font-family: var(--ff-s); font-size: 14px; line-height: 1.55; }
.msg-agent .msg-bubble { background: var(--surface); color: var(--text); border-radius: 2px 14px 14px 14px; }
.msg-user .msg-bubble { background: linear-gradient(135deg,var(--accent),var(--accent2)); color: #fff; border-radius: 14px 2px 14px 14px; }
.msg-time { font-family: var(--ff-m); font-size: 8px; color: var(--muted); margin-top: 4px; }
.msg-user .msg-time { text-align: right; }
.chat-typing { display: flex; gap: 4px; align-items: center; padding: 10px 14px; background: var(--surface); border-radius: 2px 14px 14px 14px; width: fit-content; }
.chat-typing span { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); animation: typing .9s infinite; }
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%,60%,100% { transform: translateY(0); } 30% { transform: translateY(-4px); } }
.chat-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px; }
.quick-btn { font-family: var(--ff-m); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--dim); background: transparent; padding: 6px 12px; cursor: none; color: var(--muted); transition: all .2s; }
.quick-btn:hover { border-color: var(--accent); color: var(--accent); }
.chat-input-row { display: flex; border-top: 1px solid var(--dim); }
.chat-input { flex: 1; border: none; background: transparent; padding: 14px 16px; font-family: var(--ff-s); font-size: 14px; color: var(--text); outline: none; }
.chat-input::placeholder { color: var(--muted); font-style: italic; }
.chat-send { background: var(--accent); border: none; padding: 14px 18px; cursor: none; color: #fff; font-family: var(--ff-m); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; transition: background .2s; }
.chat-send:hover { background: var(--accent2); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 16px 20px; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: fixed; top: 0; left: 0;
    width: 100%; height: 100vh; background: var(--bg);
    flex-direction: column; align-items: center; justify-content: center;
    gap: 2rem; z-index: 1000;
  }
  .nav-links a { font-size: 18px; }
  .nav-open .nav-links { display: flex; }
  .hero { padding: 120px 20px 60px; }
  .hero h1 { font-size: clamp(36px, 10vw, 56px); }
  .hero-stats { flex-wrap: wrap; gap: 32px; }
  .stat-n { font-size: 36px; }
  .prob-grid { grid-template-columns: 1fr; }
  .prob-left { border-right: none; border-bottom: 1px solid var(--dim); }
  .prob-cell { padding: 28px 20px; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc-card { border-right: none; }
  .proc-grid { grid-template-columns: 1fr 1fr; }
  .proc-col:nth-child(2), .proc-col:nth-child(4) { border-right: none; }
  .testi-grid { grid-template-columns: 1fr; }
  .tc { border-right: none; border-bottom: 1px solid var(--dim); }
  .cta-section { grid-template-columns: 1fr; }
  .cta-left, .cta-right { padding: 48px 20px; }
  footer { flex-direction: column; gap: 20px; text-align: center; }
  .btn-primary, .btn-ghost, .cta-btn, .nav-cta { width: 100%; text-align: center; }
  .hero-ctas { flex-direction: column; }
  #booking-panel { width: 100%; border-left: none; }
  #chat-panel { width: calc(100vw - 32px); right: 16px; }
  .section-header { padding: 48px 20px 36px; }
  .page-section { padding: 48px 20px; }
  .page-grid-3 { grid-template-columns: 1fr; }
  .page-grid-2 { grid-template-columns: 1fr; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .svc-grid, .page-grid-3 { grid-template-columns: 1fr; }
  .svc-card { border-right: none; }
  .proc-grid { grid-template-columns: 1fr 1fr; }
  .proc-col:nth-child(2), .proc-col:nth-child(4) { border-right: none; }
  .testi-grid { grid-template-columns: 1fr; }
  .tc { border-right: none; border-bottom: 1px solid var(--dim); }
}

/* ── LEGAL PAGES ── */
.legal-page {
  padding: 140px 24px 80px;
  max-width: 800px;
  margin: 0 auto;
}
.legal-content h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 40px;
  background: linear-gradient(135deg, var(--text) 60%, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--text);
}
.legal-content p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 0.95rem;
}
.legal-content ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 16px;
}
.legal-content li {
  color: var(--muted);
  line-height: 1.8;
  padding-left: 20px;
  position: relative;
  font-size: 0.95rem;
  margin-bottom: 6px;
}
.legal-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.legal-content a {
  color: var(--accent2);
  text-decoration: none;
  transition: opacity 0.2s;
}
.legal-content a:hover {
  opacity: 0.8;
}
.legal-content strong {
  color: var(--text);
}
.legal-update {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--dim);
  color: rgba(232,230,240,0.4);
  font-size: 0.85rem;
}

/* ── SEO fix: ocultar CTA del nav en móviles pequeños (no cabe en 375px) ── */
@media (max-width: 414px) {
  nav .nav-cta,
  header .btn-primary,
  nav .btn-primary {
    display: none;
  }
}

