/* ============================================================
   WhiteFox® — Asesor de tecnologías personales
   Light + Dark "Liquid Glass" · Belleza + Inter
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Belleza&family=Inter:wght@400;500;600;700;800&display=swap');

/* ---------- Tokens (LIGHT default) ---------- */
:root {
  --bg:        #eaeef6;
  --bg-2:      #e2e8f3;
  --ink:       #0f172a;
  --ink-soft:  #475569;
  --ink-mute:  #566170;
  --line:      rgba(15, 23, 42, .08);

  --blue:      #2563eb;
  --blue-2:    #3b82f6;
  --blue-ink:  #1d4ed8;
  --blue-apple:#0071e3;   /* azul Apple intenso */
  --violet:    #7c3aed;
  --cyan:      #06b6d4;
  --wa:        #25d366;
  --wa-ink:    #128c4a;

  --glass:        rgba(255, 255, 255, .52);
  --glass-strong: rgba(255, 255, 255, .80);
  --glass-border: rgba(255, 255, 255, .75);
  --ring:         rgba(15, 23, 42, .06);

  --nav-bg:       rgba(255, 255, 255, .68);
  --nav-bg-strong:rgba(255, 255, 255, .68);

  --radius-sm: 18px;
  --radius:    26px;
  --radius-lg: 36px;
  --radius-xl: 44px;

  --shadow-sm: 0 2px 12px rgba(15, 23, 42, .06);
  --shadow:    0 22px 60px -26px rgba(15, 23, 42, .28);
  --shadow-lg: 0 50px 110px -34px rgba(29, 78, 216, .38);
  --shadow-blue: 0 18px 40px -14px rgba(37, 99, 235, .55);

  --maxw: 1180px;
  --pad:  clamp(20px, 5vw, 40px);
  --gap:  clamp(14px, 1.6vw, 22px);

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Tokens (DARK) ---------- */
html[data-theme="dark"] {
  --bg:        #0a0e15;
  --bg-2:      #0c1119;
  --ink:       #eef2f8;
  --ink-soft:  #aeb9c8;
  --ink-mute:  #7e8b9d;
  --line:      rgba(255, 255, 255, .10);

  --glass:        rgba(24, 30, 42, .55);
  --glass-strong: rgba(26, 32, 44, .82);
  --glass-border: rgba(255, 255, 255, .12);
  --ring:         rgba(0, 0, 0, .45);

  --nav-bg:       rgba(16, 20, 28, .55);
  --nav-bg-strong:rgba(14, 18, 26, .80);

  --shadow:    0 22px 60px -26px rgba(0, 0, 0, .7);
  --shadow-lg: 0 50px 110px -34px rgba(0, 0, 0, .8);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 100px; }
/* Cancel each section's fluid top padding for anchor landing → constant small gap under nav regardless of viewport width */
section[id] { scroll-margin-top: calc(-1 * clamp(40px, 5.5vw, 80px)); }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background .4s var(--ease), color .4s var(--ease);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* ---------- Animated background field ---------- */
.bg-field { position: fixed; inset: 0; z-index: -2; overflow: hidden; background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
html[data-theme="dark"] .blob { opacity: .30; }
.blob-1 { width: 46vw; height: 46vw; left: -10vw; top: -8vw; background: radial-gradient(circle at 30% 30%, #93c5fd, transparent 65%); animation: drift1 26s var(--ease) infinite alternate; }
.blob-2 { width: 40vw; height: 40vw; right: -8vw; top: 12vh; background: radial-gradient(circle at 60% 40%, #c4b5fd, transparent 64%); animation: drift2 32s var(--ease) infinite alternate; }
.blob-3 { width: 38vw; height: 38vw; left: 24vw; top: 64vh; background: radial-gradient(circle at 50% 50%, #a5f3fc, transparent 62%); opacity: .42; animation: drift3 30s var(--ease) infinite alternate; }
.bg-grain { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
html[data-theme="dark"] .bg-grain { opacity: .05; }

@keyframes drift1 { to { transform: translate(8vw, 6vh) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-6vw, 8vh) scale(1.08); } }
@keyframes drift3 { to { transform: translate(-4vw, -7vh) scale(1.14); } }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
section { padding-block: clamp(40px, 5.5vw, 80px); position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(34px, 5vw, 60px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue-ink); padding: 7px 14px; border-radius: 999px;
  background: rgba(37, 99, 235, .10); border: 1px solid rgba(37, 99, 235, .18);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(37,99,235,.18); }

/* ---------- Typography ---------- */
.display { font-family: 'Belleza', serif; font-weight: 400; line-height: 1.02; letter-spacing: -.005em; }
h1.display { font-size: clamp(2.6rem, 4.38vw, 3.5rem); }
.br-m { display: none; }
h2.display { font-size: clamp(2.05rem, 4.4vw, 3.3rem); line-height: 1.05; }
h3.display { font-size: clamp(1.4rem, 2.2vw, 1.85rem); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.28rem); color: var(--ink-soft); max-width: 60ch; }
.muted { color: var(--ink-soft); }
.grad-text { background: linear-gradient(100deg, var(--blue) 10%, var(--violet) 55%, var(--cyan) 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Glass primitive ---------- */
.glass {
  position: relative;
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  backdrop-filter: blur(22px) saturate(165%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.55), 0 0 0 1px var(--ring);
}
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(160deg, rgba(255,255,255,.5), rgba(255,255,255,0) 38%);
  opacity: .9;
}
html[data-theme="dark"] .glass::before { opacity: .35; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 600; font-size: 1rem; padding: 14px 24px; border-radius: 999px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease); white-space: nowrap; }
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: linear-gradient(135deg, var(--blue-2), var(--blue)); color: #fff; box-shadow: var(--shadow-blue); }
.btn-primary:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 24px 50px -14px rgba(37,99,235,.7); }
.btn-blue { background: linear-gradient(135deg, #3b82f6, var(--blue-apple)); color: #fff; box-shadow: var(--shadow-blue); }
.btn-blue:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 24px 50px -14px rgba(0,113,227,.7); }
.btn-wa { background: linear-gradient(135deg, #2fd573, var(--wa)); color: #06371c; box-shadow: 0 16px 36px -12px rgba(37,211,102,.6); }
.btn-wa:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 24px 50px -10px rgba(37,211,102,.85); }
/* WhatsApp outline: white fill, dashed green border, black text, green logo */
.btn-wa-outline { background: #fff; color: #0f172a; border: 2px dashed var(--wa); box-shadow: var(--shadow-sm); }
.btn-wa-outline svg { color: var(--wa); }
.btn-wa-outline:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 20px 44px -14px rgba(37,211,102,.5); background: #fff; }
html[data-theme="dark"] .btn-wa-outline { background: #11161f; color: #fff; }
.btn-ghost { background: var(--glass-strong); color: var(--ink); border: 1px solid var(--glass-border); box-shadow: var(--shadow-sm); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.btn-ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-lg { padding: 17px 30px; font-size: 1.06rem; }

/* ============================================================
   NAVBAR — full width, liquid glass
   ============================================================ */
.nav-shell { position: fixed; inset: 12px 0 auto; z-index: 50; pointer-events: none; }
.nav {
  pointer-events: auto;
  margin-inline: clamp(12px, 3vw, 26px);
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 9px 12px 9px 26px; border-radius: 999px;
  position: relative; overflow: hidden;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(26px) saturate(190%) brightness(1.05);
  backdrop-filter: blur(26px) saturate(190%) brightness(1.05);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,.55);
  transition: background .35s var(--ease), box-shadow .35s var(--ease), color .35s var(--ease);
}
/* liquid sheen sweeping across the bar */
.nav::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.35) 48%, transparent 62%);
  transform: translateX(-120%); animation: nav-sheen 45s var(--ease) infinite;
}
@keyframes nav-sheen { 0%,94% { transform: translateX(-120%); } 98%,100% { transform: translateX(120%); } }
.nav.scrolled { box-shadow: var(--shadow); }
/* Chrome/Edge only (Safari has -webkit-touch-callout; Chrome does not): move blur +
   SVG displacement to .nav-liquid so Chrome sees raw page content for true refraction. */
.nav-liquid { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0; }
@supports not (-webkit-touch-callout: none) {
  .nav { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav-liquid {
    -webkit-backdrop-filter: blur(26px) saturate(190%) brightness(1.05);
    backdrop-filter: blur(26px) saturate(190%) brightness(1.05) url(#wf-liquid);
  }
}
.nav > .brand, .nav > .nav-links, .nav > .nav-cta { position: relative; z-index: 1; }

/* nav on a DARK surface (scrolled past hero in light theme, OR dark theme) */
.nav.past-hero, html[data-theme="dark"] .nav {
  background: rgba(10, 14, 20, .55);
  border-color: rgba(255,255,255,.14);
  box-shadow: 0 18px 50px -22px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.18);
}
.nav.past-hero.scrolled, html[data-theme="dark"] .nav.scrolled { background: rgba(8, 11, 16, .74); }

.brand { display: inline-flex; align-items: center; }
.brand img { display: block; height: 44px; width: auto; }
.brand .logo-w { display: none; }
.nav.past-hero .logo-b, html[data-theme="dark"] .nav .logo-b,
html[data-theme="dark"] .footer .logo-b { display: none; }
.nav.past-hero .logo-w, html[data-theme="dark"] .nav .logo-w,
html[data-theme="dark"] .footer .logo-w { display: block; }

.nav-links { display: flex; align-items: center; gap: 2px; position: relative; z-index: 1; margin-left: auto; margin-right: 6px; }
.nav-links a { font-size: .95rem; font-weight: 500; color: var(--ink-soft); padding: 9px 13px; border-radius: 999px; transition: color .2s, background .2s; white-space: nowrap; }
.nav-links a:hover { color: #fff; background: rgba(0,0,0,.72); }
.nav.past-hero .nav-links a, html[data-theme="dark"] .nav .nav-links a { color: rgba(255,255,255,.82); }
.nav.past-hero .nav-links a:hover, html[data-theme="dark"] .nav .nav-links a:hover { color: #fff; background: rgba(255,255,255,.14); }
.fav-star { font-size: .62em; vertical-align: super; margin-left: 1px; color: currentColor; }

.nav-cta { display: inline-flex; gap: 8px; align-items: center; position: relative; z-index: 1; }
.theme-toggle { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(125,135,150,.14); color: var(--ink); transition: background .2s, color .2s, transform .2s; }
.theme-toggle:hover { transform: scale(1.08); }
.theme-toggle svg { width: 21px; height: 21px; }
.theme-toggle .i-moon { display: none; }
html[data-theme="dark"] .theme-toggle .i-sun { display: none; }
html[data-theme="dark"] .theme-toggle .i-moon { display: block; }
.nav.past-hero .theme-toggle, html[data-theme="dark"] .nav .theme-toggle { background: rgba(255,255,255,.16); color: #fff; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; background: rgba(125,135,150,.14); align-items: center; justify-content: center; color: var(--ink); }
.nav.past-hero .nav-toggle, html[data-theme="dark"] .nav .nav-toggle { background: rgba(255,255,255,.16); color: #fff; }
.nav-toggle svg { width: 24px; height: 24px; }

/* mobile sheet */
.mobile-sheet { position: fixed; inset: 0; z-index: 49; display: none; padding: 84px var(--pad) 32px; }
.mobile-sheet.open { display: block; animation: fade .3s var(--ease); }
.mobile-sheet .panel { padding: 22px; display: grid; gap: 6px; }
.mobile-sheet a { padding: 14px 16px; border-radius: 16px; font-weight: 500; font-size: 1.1rem; color: var(--ink); }
.mobile-sheet a:hover { background: rgba(125,135,150,.12); }
.mobile-sheet .btn { margin-top: 12px; }
.mobile-sheet .panel {
  background: rgba(226, 232, 244, .97);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
html[data-theme="dark"] .mobile-sheet .panel {
  background: rgba(10, 14, 21, .97);
}
@keyframes fade { from { opacity: 0; } }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: clamp(124px, 17vw, 184px); padding-bottom: clamp(56px, 8vw, 100px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 60px); align-items: center; }
.hero-loc { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 500; color: var(--ink-soft); margin: -6px 0 24px; }
.hero-loc svg { width: 16px; height: 16px; color: var(--blue); flex: none; }
.hero h1 { margin: 14px 0 20px; }
.hero .lead { margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-eco { margin-top: 30px; display: flex; align-items: center; gap: 14px 16px; flex-wrap: wrap; color: var(--ink-mute); font-size: .88rem; }
.hero-eco .logos { display: inline-flex; align-items: center; gap: 16px; }
.hero-eco img { height: 22px; width: auto; opacity: .55; filter: grayscale(1); transition: opacity .2s; }
.hero-eco img:hover { opacity: .9; }
html[data-theme="dark"] .hero-eco img { filter: grayscale(1) invert(1); opacity: .7; }
.hero-eco svg { opacity: .55; transition: opacity .2s; }
.hero-eco svg:hover { opacity: .9; }
html[data-theme="dark"] .hero-eco svg { color: #e8ecf4; opacity: .7; }
.hero-web { font-weight: 700; color: var(--blue-apple); white-space: nowrap; font-size: 1rem; }
.loc-m { display: none; }

/* hero visual — floating liquid-glass stack */
.hero-visual { position: relative; min-height: 460px; display: grid; place-items: center; }
.hero-orb { position: absolute; width: 80%; aspect-ratio: 1;
  background: radial-gradient(circle at 52% 48%,
    transparent 35%,
    rgba(96,165,250,.52) 39%,
    rgba(129,140,248,.74) 52%,
    rgba(34,211,238,.44) 64%,
    transparent 68%);
  filter: blur(13px); opacity: .88; border-radius: 50%; }
.hero-orb::after { display: none; }
html[data-theme="dark"] .hero-orb { opacity: .65; }
@keyframes spin { to { transform: rotate(360deg); } }
.chip {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: 20px; background: rgba(255,255,255,.72);
  -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%);
  border: 1px solid var(--glass-border); box-shadow: var(--shadow); font-weight: 600; font-size: .95rem;
  will-change: transform; color: var(--ink);
}
html[data-theme="dark"] .chip { background: rgba(26,32,44,.72); }
.chip .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none; }
.chip .ic svg { width: 20px; height: 20px; }
.chip small { display: block; font-weight: 500; color: var(--ink-mute); font-size: .78rem; }
.chip-1 { top: 4%; left: -2%; animation: float-a 7s ease-in-out -3.5s infinite alternate; }
.chip-2 { top: 42%; right: -6%; animation: float-b 8.5s ease-in-out -4.25s infinite alternate; }
.chip-3 { bottom: 3%; left: 6%; animation: float-c 7.8s ease-in-out -3.9s infinite alternate; }
@keyframes float-a { 0% { transform: translate(0,0) rotate(-1.5deg); } 100% { transform: translate(10px,-20px) rotate(1.5deg); } }
@keyframes float-b { 0% { transform: translate(0,0) rotate(1.5deg); } 100% { transform: translate(-12px,16px) rotate(-1.5deg); } }
@keyframes float-c { 0% { transform: translate(0,0) rotate(1deg); } 100% { transform: translate(14px,-14px) rotate(-2deg); } }

/* ============================================================
   ECOSYSTEM MARQUEE
   ============================================================ */
.marquee { padding-block: clamp(14px, 2vw, 24px); overflow: hidden; }
.marquee-label { text-align: center; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 22px; font-weight: 600; }
.marquee-track { display: flex; gap: 60px; width: max-content; animation: scroll-x 38s linear infinite; align-items: center; }
.marquee-track img { height: 30px; width: auto; opacity: .5; filter: grayscale(1); }
.marquee-track .m-ico { height: 30px; width: auto; opacity: .55; color: var(--ink); }
.marquee:hover .marquee-track { animation-play-state: paused; }
html[data-theme="dark"] .marquee-track img { filter: grayscale(1) invert(1); opacity: .6; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ============================================================
   SERVICES — BENTO
   ============================================================ */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); grid-auto-flow: row; }
.card { padding: clamp(20px, 2vw, 28px); display: flex; flex-direction: column; gap: 12px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease); will-change: transform; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.6); }
.card .ic { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-sm); }
.card .ic svg { width: 25px; height: 25px; }
.card h3 { font-size: 1.18rem; font-weight: 700; letter-spacing: -.01em; }
.card p { color: var(--ink-soft); font-size: .98rem; line-height: 1.55; }
.card .small-note { font-size: .82rem; color: var(--ink-mute); margin-top: 2px; }

/* feature = Proyecto F (star, black) */
.card-feature { grid-column: 1 / 3; grid-row: 1 / 3; padding: clamp(26px, 3vw, 40px); justify-content: space-between; overflow: hidden; }
.card-feature h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-family: 'Belleza', serif; font-weight: 400; }
.card-feature p { font-size: 1.08rem; max-width: 48ch; }
.feature-top { display: flex; flex-direction: column; gap: 14px; }
.feature-dark { background: linear-gradient(165deg, #11161f 0%, #05070b 100%); border-color: rgba(255,255,255,.10); color: #fff; }
.feature-dark::before { background: linear-gradient(160deg, rgba(255,255,255,.14), transparent 40%); opacity: 1; }
.feature-dark h3 { color: #fff; }
.feature-dark p { color: rgba(255,255,255,.82); }
.feature-dark .ic { background: #000; border: 1px solid rgba(255,255,255,.28); box-shadow: 0 0 0 6px rgba(255,255,255,.05), 0 10px 30px -8px rgba(0,0,0,.8); }
.feature-dark .ic.ic-white { background: rgba(255,255,255,.95); border: 1px solid rgba(0,0,0,.08); box-shadow: 0 2px 12px rgba(0,0,0,.3); color: #0f172a; }
.card-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.48) contrast(1.05); z-index: 0; }
.feature-dark::after { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; background: linear-gradient(160deg, rgba(5,7,11,.74), rgba(5,7,11,.44)); }
.feature-dark > :not(.card-bg):not(.star-callout) { position: relative; z-index: 1; }
.star-callout {
  position: absolute; top: 18px; right: 18px; z-index: 3;
  display: inline-flex; align-items: center; gap: 7px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #3b2604;
  padding: 8px 14px; border-radius: 999px; font-size: .82rem; font-weight: 700;
  box-shadow: 0 10px 24px -8px rgba(245,158,11,.6);
}
.star-callout svg { width: 15px; height: 15px; }

/* AI transversal strip (purple, filled) — spans width of feature (2 cols) */
.s-ai {
  grid-column: 1 / 3;
  background: linear-gradient(120deg, #7c3aed, #6d28d9 55%, #4f46e5);
  color: #fff; border: 0; border-radius: var(--radius);
  padding: clamp(20px, 2.2vw, 30px); display: flex; align-items: center; gap: 18px 26px; flex-wrap: wrap;
  box-shadow: 0 26px 60px -28px rgba(124,58,237,.7), inset 0 1px 0 rgba(255,255,255,.25);
  position: relative; overflow: hidden;
}
.s-ai::before { content:""; position:absolute; inset:0; background: radial-gradient(120% 140% at 0% 0%, rgba(255,255,255,.22), transparent 50%); pointer-events:none; }
.s-ai .ai-text { font-weight: 600; font-size: clamp(1rem, 1.4vw, 1.18rem); max-width: 46ch; position: relative; }
.s-ai .ai-master { font-family: 'Belleza', serif; font-weight: 400; font-size: clamp(1.2rem, 1.8vw, 1.5rem); display:block; margin-bottom: 4px; }
.coming-soon { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); color: #fff; font-size: .76rem; font-weight: 600; letter-spacing: .04em; padding: 6px 12px; border-radius: 999px; margin-top: 12px; }
.coming-soon svg { width: 14px; height: 14px; }

/* AI chatbot logos — floating, no box, under reparaciones (col 3) */
.s-ailogos { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; padding: 6px; }
.s-ailogos .lbl { font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }
.s-ailogos .row { display: inline-flex; align-items: center; gap: 30px; }
.s-ailogos img, .s-ailogos svg { height: 46px; width: auto; }
.s-ailogos img { opacity: .85; }
html[data-theme="dark"] .s-ailogos img { filter: invert(1); }
html[data-theme="dark"] .s-ailogos svg { color: #fff !important; }

/* icon color themes */
.t-blue   { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.t-violet { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.t-cyan   { background: linear-gradient(135deg, #22d3ee, #0891b2); }
.t-emerald{ background: linear-gradient(135deg, #34d399, #059669); }
.t-orange { background: linear-gradient(135deg, #fb923c, #ea580c); }
.t-rose   { background: linear-gradient(135deg, #fb7185, #e11d48); }
.t-indigo { background: linear-gradient(135deg, #818cf8, #4f46e5); }
.t-sky    { background: linear-gradient(135deg, #38bdf8, #0284c7); }
.t-slate  { background: linear-gradient(135deg, #64748b, #334155); }
.t-teal   { background: linear-gradient(135deg, #2dd4bf, #0d9488); }
.t-teal-dark { background: linear-gradient(135deg, #0891b2, #134e6d); }

/* ============================================================
   PHOTO BAND
   ============================================================ */
.band { position: relative; min-height: clamp(340px, 46vw, 520px); border-radius: var(--radius-xl); overflow: hidden; display: flex; align-items: center; box-shadow: var(--shadow-lg); }
.band img.band-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.22) contrast(1.08); }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,11,20,.92), rgba(7,11,20,.6) 68%, rgba(7,11,20,.72)); }
.band .band-inner { position: relative; z-index: 2; color: #fff; padding: clamp(28px, 6vw, 72px); max-width: 760px; }
.band h2 { color: #fff; margin-bottom: 14px; }
.band p { color: rgba(255,255,255,.88); font-size: 1.1rem; max-width: 48ch; }
.band .eyebrow { color: #cfe0ff; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.22); }
.band .eyebrow .dot { background: #7fb2ff; box-shadow: 0 0 0 4px rgba(127,178,255,.2); }
html[data-theme="dark"] .eyebrow { color: #93c5fd; background: rgba(147,197,253,.12); border-color: rgba(147,197,253,.28); }
html[data-theme="dark"] .eyebrow .dot { background: #93c5fd; box-shadow: 0 0 0 4px rgba(147,197,253,.22); }
html[data-theme="dark"] .band .eyebrow { color: #cfe0ff; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.22); }
html[data-theme="dark"] .band .eyebrow .dot { background: #7fb2ff; box-shadow: 0 0 0 4px rgba(127,178,255,.2); }
html[data-theme="dark"] .cta-sub a { color: #93c5fd; }
.band-tall { min-height: clamp(520px, 62vw, 700px); }
.band-tall .band-inner { max-width: 680px; }
.nowrap { white-space: nowrap; }

/* Proyecto F: format pills + value tags + video button + partner credit */
.pf-formats { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 18px; }
.pf-formats li { display: inline-flex; align-items: center; gap: 9px; padding: 9px 15px; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); color: #fff; font-size: .9rem; font-weight: 500;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.pf-formats svg { width: 18px; height: 18px; color: #cfe0ff; flex: none; }
.pf-tags { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 26px; }
.pf-tags span { display: inline-flex; align-items: center; gap: 9px; color: rgba(255,255,255,.92); font-size: .94rem; font-weight: 500; }
.pf-tags svg { width: 17px; height: 17px; color: #6ee7a8; flex: none; }
.band-inner .btn-wa { align-self: flex-start; }
.band-video { position: absolute; top: clamp(18px, 3vw, 28px); right: clamp(18px, 3vw, 28px); z-index: 4; }
.band-partner { position: absolute; top: calc(clamp(18px, 3vw, 28px) + 78px); right: clamp(18px, 3vw, 28px); z-index: 4; display: flex; flex-direction: column; align-items: flex-end; gap: 7px; text-align: right; }
.band-partner .pc-label { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.band-partner img { height: 60px; width: auto; opacity: .95; mix-blend-mode: screen; }

/* ============================================================
   MODALIDADES / PRECIOS
   ============================================================ */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: stretch; }
.plan { padding: clamp(26px, 3vw, 40px); display: flex; flex-direction: column; gap: 18px; }
.plan-tag { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-ink); }
html[data-theme="dark"] .plan-tag { color: #93c5fd; }
.plan-tag svg { width: 18px; height: 18px; }
.plan h3 { font-size: 1.5rem; font-weight: 700; }
.plan .price { display: flex; align-items: baseline; gap: 8px; }
.plan .price b { font-family: 'Belleza', serif; font-weight: 400; font-size: clamp(2.6rem, 5vw, 3.4rem); color: var(--ink); line-height: 1; }
.plan .price span { color: var(--ink-mute); font-size: .95rem; }
.plan ul { display: grid; gap: 11px; margin-top: 4px; }
.plan li { display: flex; gap: 11px; align-items: flex-start; color: var(--ink-soft); font-size: .98rem; }
.plan li svg { width: 20px; height: 20px; color: var(--blue); flex: none; margin-top: 1px; }
.plan .btn { margin-top: auto; }
.plan-loc { font-size: .82rem; font-style: italic; color: var(--ink-mute); margin-top: 12px; }
.plan-fee-note { font-size: .82rem; font-style: italic; color: var(--ink-mute); margin-top: 2px; }
.plan-fee-note.spacer { visibility: hidden; }
.plan-featured { box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.6); }
.plan-badge { position: absolute; top: 20px; right: 20px; display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; letter-spacing: .03em; color: #7a3e00; background: linear-gradient(135deg, #fde2b3, #fbc77c); border: 1px solid rgba(245,158,11,.45); padding: 7px 13px; border-radius: 999px; box-shadow: 0 8px 20px -8px rgba(245,158,11,.5); z-index: 3; }
.plan-badge svg { width: 14px; height: 14px; }
.plan-loc.spacer { visibility: hidden; }
.plan-note { text-align: center; margin-top: 26px; color: var(--ink-soft); font-size: .98rem; }
.plan-note b { color: var(--ink); font-weight: 600; }

/* ============================================================
   PROCESS
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.step { padding: 26px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; text-align: left; }
.step .num { font-family: 'Belleza', serif; font-size: 2.8rem; line-height: 1; background-image: linear-gradient(135deg, var(--blue), var(--violet)); color: transparent; -webkit-background-clip: text; background-clip: text; }
.step h3 { font-size: 1.12rem; font-weight: 700; }
.step p { color: var(--ink-soft); font-size: .95rem; }
.steps-note { margin-top: 26px; text-align: center; color: var(--ink-soft); font-size: 1.02rem; }
.steps-note b { color: var(--ink); font-weight: 700; }

/* ============================================================
   VALUES
   ============================================================ */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.value { padding: 26px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.value .ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: #fff; }
.value .ic svg { width: 27px; height: 27px; }
.value h3 { font-size: 1.08rem; font-weight: 700; }
.value p { color: var(--ink-soft); font-size: .92rem; }
.values-note { margin-top: 16px; font-size: .82rem; font-style: italic; color: var(--ink-mute); }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.q { overflow: hidden; }
.q.reveal.in { transition: opacity .25s var(--ease), transform .2s var(--ease), box-shadow .2s; }
.q.reveal.in:hover { transform: translateY(-4px) scale(1.045); box-shadow: var(--shadow); }
.q.reveal.in:active { transform: scale(.985); transition-duration: .08s; }
.q summary { list-style: none; cursor: pointer; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 600; font-size: 1.06rem; }
.q summary::-webkit-details-marker { display: none; }
.q summary .plus { width: 30px; height: 30px; border-radius: 50%; background: rgba(37,99,235,.1); color: var(--blue); display: grid; place-items: center; flex: none; transition: transform .3s var(--ease), background .3s; }
.q summary .plus svg { width: 18px; height: 18px; }
.q[open] summary .plus { transform: rotate(45deg); background: var(--blue); color: #fff; }
.q .a { padding: 0 24px 22px; color: var(--ink-soft); line-height: 1.65; max-width: 64ch; }
.q .a a { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta-final { padding: clamp(32px, 4.5vw, 58px); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; overflow: hidden; }
.cta-final::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 120% at 50% 0%, rgba(59,130,246,.18), transparent 60%); }
.cta-final h2 { max-width: 20ch; }
.cta-final .lead { margin-inline: auto; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cta-form { width: 100%; max-width: 480px; margin-top: 6px; display: flex; flex-direction: column; gap: 12px; }
.cta-form-label { font-size: .98rem; color: var(--ink-soft); font-weight: 500; }
.cta-form-row { display: flex; gap: 10px; }
.cta-input { flex: 1 1 auto; min-width: 0; padding: 14px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass-strong); color: var(--ink); font: inherit; font-size: .95rem; outline: none; transition: border-color .2s, box-shadow .2s; }
.cta-input::placeholder { color: var(--ink-mute); }
.cta-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.cta-form .btn { flex: none; }
.cta-form-msg { font-size: .92rem; min-height: 1.2em; margin: 0; }
.cta-form-msg.ok { color: var(--wa-ink); font-weight: 600; }
.cta-form-msg.err { color: #dc2626; font-weight: 600; }
.hp-check { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
html[data-theme="dark"] .cta-input { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); }
html[data-theme="dark"] .cta-form-msg.err { color: #f87171; }
.cta-sub { font-size: .95rem; color: var(--ink-mute); }
.cta-sub a { color: var(--blue-ink); font-weight: 600; text-decoration: none; }
.cta-sub a:hover { text-decoration: underline; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { padding-block: clamp(40px, 5vw, 64px); font-size: .9rem; color: var(--ink-mute); }
.footer-top { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.footer .brand img { height: 56px; }
.footer-tag { max-width: 36ch; margin-top: 12px; color: var(--ink-soft); }
.footer-col h4 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-bottom: 12px; font-weight: 700; }
.footer-col a, .footer-col p { color: var(--ink-mute); display: block; padding: 4px 0; transition: color .2s; }
.footer-col a:hover { color: var(--blue); }
.footer-cols { display: flex; gap: clamp(32px, 6vw, 80px); flex-wrap: wrap; }
.footer-ig { display: flex !important; flex-direction: row; align-items: center; text-align: left; gap: 8px; margin-top: 4px; padding: 4px 0; }
.footer-ig svg { width: 26px; height: 26px; color: var(--ink-soft); flex: none; }
.footer-ig span { font-size: .86rem; color: var(--ink-mute); }
.footer-ig:hover svg, .footer-ig:hover .ig-top, .footer-ig:hover span { color: var(--blue); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; align-items: center; padding-top: 24px; }
.footer-bottom a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom a:hover { color: var(--blue); }

/* ============================================================
   FLOATING WHATSAPP
   ============================================================ */
.wa-float { position: fixed; right: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px); z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, #2fd573, var(--wa));
  display: grid; place-items: center; box-shadow: 0 16px 40px -8px rgba(37,211,102,.6); color: #fff;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.wa-float:hover { transform: scale(1.12); box-shadow: 0 22px 50px -8px rgba(37,211,102,.85); }
.wa-float svg { width: 32px; height: 32px; }
.to-top { position: fixed; right: calc(clamp(16px, 3vw, 28px) + 16px); bottom: calc(clamp(16px, 3vw, 28px) + 68px); z-index: 60;
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--glass-strong); color: var(--ink); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--shadow);
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .2s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px) scale(1.08); }
.to-top svg { width: 14px; height: 14px; }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(37,211,102,.5); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .07s; }
.reveal.d2 { transition-delay: .14s; }
.reveal.d3 { transition-delay: .21s; }
.reveal.d4 { transition-delay: .28s; }

/* ============================================================
   PRIVACY PAGE
   ============================================================ */
.legal-shell { min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; padding: clamp(20px, 5vw, 60px) var(--pad); }
.legal { width: 100%; max-width: 860px; padding: clamp(28px, 5vw, 60px); }
.legal-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 30px; }
.legal-back { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--blue-apple); padding: 10px 16px; border-radius: 999px; background: rgba(0,113,227,.10); transition: background .2s, transform .2s; }
.legal-back:hover { background: rgba(0,113,227,.18); transform: translateX(-2px); }
.legal-back svg { width: 18px; height: 18px; }
.legal-close { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(125,135,150,.22); color: #fff; transition: transform .2s, background .2s; box-shadow: var(--shadow); }
.legal-close:hover { transform: rotate(90deg) scale(1.05); background: rgba(125,135,150,.4); }
.legal-close svg { width: 24px; height: 24px; }
.legal h1 { font-family: 'Belleza', serif; font-weight: 400; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 6px; }
.legal .updated { color: var(--ink-mute); font-size: .9rem; margin-bottom: 30px; }
.legal h2 { font-size: 1.2rem; font-weight: 700; margin: 30px 0 10px; }
.legal p, .legal li { color: var(--ink-soft); line-height: 1.7; }
.legal p { margin-bottom: 12px; }
.legal ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; margin-bottom: 12px; }
.legal a { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; }
.legal .note { font-size: .85rem; color: var(--ink-mute); background: rgba(37,99,235,.06); border: 1px dashed rgba(37,99,235,.25); border-radius: 14px; padding: 14px 18px; margin-top: 28px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1040px) {
  .nav-links { display: none; }
  .nav-toggle { display: grid; }
  .nav { background: rgba(255,255,255,.54); }
  .nav.past-hero, html[data-theme="dark"] .nav { background: rgba(10,14,20,.40); }
  .nav.past-hero.scrolled, html[data-theme="dark"] .nav.scrolled { background: rgba(8,11,16,.60); }
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 380px; order: -1; margin-bottom: 8px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card-feature { grid-column: 1 / -1; grid-row: auto; }
  .s-ai { grid-column: 1 / -1; }
  .s-ailogos { grid-column: 1 / -1; padding: 14px; }
  .s-ailogos .row { gap: 26px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav-cta .btn span.full { display: none; }
  .nav-cta .btn-wa { padding: 12px; }
  .plans { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 auto; }
  .band-partner img { height: 54px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  h1.display { font-size: clamp(2.2rem, calc((100vw - 40px) * 0.142), 3.4rem); }
  .br-m { display: inline; }
  .br-d { display: none; }
  /* tighten hero so CTA buttons sit above the fold on fresh load */
  .hero .eyebrow { font-size: .66rem; letter-spacing: .06em; display: flex; width: fit-content; margin: 0 auto; }
  .loc-d { display: none; }
  .loc-m { display: inline; }
  .hero-loc { align-items: flex-start; }
  .coming-soon { align-items: flex-start; }
  .hero { padding-top: 84px; }
  .hero h1 { margin: 10px 0 14px; }
  .hero .lead { margin-bottom: 16px; }
  .hero-loc { margin: -6px 0 14px; }
  .hero-actions { gap: 12px; }
  .hero-visual { order: 1; margin-top: 22px; margin-bottom: 0; }
  .bento { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-feature { grid-column: 1 / -1; }
  .card { padding: 16px; }
  .card h3 { font-size: 1.02rem; }
  .card p { font-size: .9rem; }
  .steps, .values { grid-template-columns: 1fr; }
  .chip { padding: 11px 14px; font-size: .85rem; }
  .chip-2 { right: 0; }
  .band { min-height: auto; align-items: stretch; flex-direction: column; }
  .band-tall { min-height: auto; }
  .band .band-inner { max-width: 100%; }
  .band-video { position: static; order: 10; margin-top: 22px; margin-bottom: 14px; align-self: flex-start; margin-left: clamp(28px,6vw,72px); }
  .band-video.btn { padding: 6px 14px; font-size: .74rem; gap: 6px; }
  .band-video.btn svg { width: 13px; height: 13px; }
  .band-partner { position: static; margin-top: 24px; align-items: flex-end; text-align: right; padding-right: clamp(28px,6vw,72px); padding-bottom: 20px; }
  .band-partner img { height: 38px; }
  .card-feature .btn-blue { align-self: flex-start; padding: 8px 14px; font-size: .82rem; border-radius: 999px; }
  .star-callout, .plan-badge { position: static; align-self: flex-start; margin-bottom: 12px; }
}
@media (max-width: 340px) {
  .bento { grid-template-columns: 1fr; }
}

/* ============================================================
   MOTION SAFE
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
