/* =========================================================
   VALENTINO PANTANALI — Estudio web
   Paleta "Bordeaux Noir": lujo (champagne + noir) y carisma (rubí + blush)
   ========================================================= */

:root {
  /* Paleta */
  --noir: #0E0508;
  --burgundy: #1A0A0F;
  --vino: #3D0B18;
  --granate: #6E1228;
  --rubi: #B3203F;
  --rose: #C96B78;
  --blush: #F2C4C9;
  --champagne: #E2C48E;
  --cream: #F7EDE6;

  /* Semánticos */
  --bg: var(--noir);
  --ink: var(--cream);
  --muted: rgba(247, 237, 230, 0.64);
  --faint: rgba(247, 237, 230, 0.38);
  --line: rgba(247, 237, 230, 0.12);

  /* Movimiento */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  /* Tipografía */
  --serif: "Fraunces", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --gutter: clamp(16px, 4vw, 56px);
  --wrap: min(1320px, calc(100vw - 2 * var(--gutter)));
  --r-lg: 28px;
  --r-md: 18px;
  --r-pill: 999px;
}

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

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--rubi); color: var(--cream); }

.wrap { width: var(--wrap); margin-inline: auto; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Fondo: orbes líquidos + grano ---------- */
/* Fondo estático (se pinta una sola vez: no cuesta rendimiento) */
.bg-orbs {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60vw 60vw at 6% 0%, rgba(110, 18, 40, 0.6), transparent 64%),
    radial-gradient(52vw 52vw at 100% 55%, rgba(179, 32, 63, 0.2), transparent 62%),
    radial-gradient(46vw 46vw at 38% 108%, rgba(201, 107, 120, 0.13), transparent 62%),
    var(--noir);
}
.bg-orbs::after {
  content: ""; position: absolute; inset: 0; opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Vidrio ----------
   .glass: vidrio "liviano" (sin desenfoque en vivo, que es lo que frena la página)
   .glass--blur: desenfoque real, solo en piezas chicas como el menú */
.glass {
  background:
    linear-gradient(135deg, rgba(255, 228, 234, 0.1), rgba(255, 228, 234, 0.025)),
    rgba(34, 12, 19, 0.62);
  border: 1px solid rgba(255, 226, 232, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25),
    0 20px 50px -24px rgba(0, 0, 0, 0.7);
}
.glass--blur {
  background: linear-gradient(135deg, rgba(255, 228, 234, 0.1), rgba(255, 228, 234, 0.03)), rgba(26, 10, 15, 0.55);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

/* ---------- Tipografía ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--champagne);
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.7;
}
.h-display {
  font-family: var(--serif);
  font-weight: 380;
  font-variation-settings: "opsz" 144, "SOFT" 60, "WONK" 0;
  line-height: 0.98;
  letter-spacing: -0.022em;
  margin: 0;
}
.h-display em, .h2 em {
  font-style: italic;
  font-weight: 300;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  background: linear-gradient(100deg, var(--champagne) 0%, var(--blush) 45%, var(--rose) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  padding-right: 0.06em;
}
/* Cuando SplitText divide el texto, cada palabra lleva su propio degradé */
.h-display em .w, .h2 em .w {
  background: linear-gradient(100deg, var(--champagne) 0%, var(--blush) 45%, var(--rose) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  padding-right: 0.08em;
}
/* La máscara de SplitText recorta lo que sobresale de la línea (la cola de la "y", la "g", la "p"): se le da aire abajo y se compensa con margen negativo para que el espaciado no cambie */
.ln { padding-bottom: 0.18em; margin-bottom: -0.18em; }

.h2 {
  font-family: var(--serif);
  font-weight: 380;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  font-size: clamp(40px, 6vw, 92px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 18px 0 0;
}
.lead { font-size: clamp(17px, 1.35vw, 20px); color: var(--muted); max-width: 54ch; margin: 22px 0 0; }

/* ---------- Botones ---------- */
.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 56px; padding: 0 28px; border-radius: var(--r-pill);
  font-weight: 700; font-size: 15px; letter-spacing: 0.01em;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn .arrow { transition: transform 260ms var(--ease-out); }

.btn--primary { color: var(--noir); }
.btn--primary .btn-goo {
  position: absolute; inset: 0; z-index: -1; filter: url(#goo);
}
.btn--primary .btn-goo span {
  position: absolute; background: var(--cream); border-radius: var(--r-pill);
}
.btn--primary .btn-goo .b-main { inset: 0; }
.btn--primary .btn-goo .b-drop {
  width: 26px; height: 26px; border-radius: 50%; top: 50%; left: 50%;
  margin: -13px 0 0 -13px; background: var(--cream);
  transition: transform 520ms var(--ease-out);
}
.btn--ghost {
  color: var(--cream); border: 1px solid rgba(247, 237, 230, 0.22);
  background: rgba(40, 16, 23, 0.7);
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover .arrow { transform: translateX(4px); }
  .btn--ghost:hover { border-color: var(--champagne); background: rgba(226, 196, 142, 0.08); }
  .btn--primary:hover .b-drop.d1 { transform: translate(-70px, -26px); }
  .btn--primary:hover .b-drop.d2 { transform: translate(64px, 24px); }
  .btn--primary:hover .b-drop.d3 { transform: translate(84px, -22px) scale(0.7); }
}

/* ---------- Cursor ---------- */
.cursor, .cursor-dot { display: none; }
@media (hover: hover) and (pointer: fine) {
  html.has-cursor, html.has-cursor * { cursor: none !important; }
  .cursor, .cursor-dot {
    display: block; position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none;
    border-radius: 50%;
  }
  .cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--cream); }
  .cursor {
    width: 44px; height: 44px; margin: -22px 0 0 -22px;
    border: 1px solid rgba(247, 237, 230, 0.5);
    display: grid; place-items: center;
    transition: width 300ms var(--ease-out), height 300ms var(--ease-out), margin 300ms var(--ease-out),
      background-color 300ms ease, border-color 300ms ease;
  }
  .cursor span {
    font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--noir); opacity: 0; transform: scale(0.6);
    transition: opacity 200ms ease, transform 300ms var(--ease-out);
  }
  .cursor.is-link { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(226, 196, 142, 0.12); border-color: var(--champagne); }
  .cursor.is-label { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--blush); border-color: var(--blush); }
  .cursor.is-label span { opacity: 1; transform: none; }
  .cursor.is-grab { width: 80px; height: 80px; margin: -40px 0 0 -40px; background: rgba(179, 32, 63, 0.25); border-color: var(--rubi); }
  .cursor.is-hidden { opacity: 0; }
}

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center;
  pointer-events: none;
}
html.js .loader { pointer-events: auto; }
html:not(.js) .loader { display: none; }
.loader-curtain { position: absolute; inset: 0; width: 100%; height: 100%; }
.loader-inner { position: relative; display: grid; justify-items: center; gap: 22px; }
.loader-mark { width: 96px; height: 96px; animation: markIn 0.9s var(--ease-out) both; }
@keyframes markIn { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: none; } }
.loader-count {
  font-family: var(--serif); font-size: 15px; letter-spacing: 0.3em; color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 18px; left: 50%; z-index: 90;
  width: var(--wrap); transform: translateX(-50%);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 64px; padding: 0 10px 0 20px; border-radius: var(--r-pill);
  transition: transform 500ms var(--ease-out);
}
.nav.is-hidden { transform: translate(-50%, -140%); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: 0.02em; }
.brand svg { width: 34px; height: 34px; }
.brand-name { font-family: var(--serif); font-weight: 500; font-size: 20px; font-variation-settings: "opsz" 40, "SOFT" 100; letter-spacing: -0.01em; white-space: nowrap; }
.brand-name em { font-style: italic; font-weight: 300; color: var(--blush); font-variation-settings: "opsz" 40, "SOFT" 100, "WONK" 1; }
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  position: relative; display: inline-block; padding: 8px 14px; font-size: 14px; font-weight: 600; color: var(--muted);
  transition: color 200ms ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px; background: var(--champagne);
  transform: scaleX(0); transform-origin: right; transition: transform 400ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover { color: var(--cream); }
  .nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
}
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav .btn { height: 46px; padding: 0 20px; font-size: 14px; }
.status {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); padding-right: 6px;
}
.status i {
  width: 8px; height: 8px; border-radius: 50%; background: #5fd38d; position: relative;
}
.status i::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid #5fd38d;
  animation: ping 2.4s var(--ease-out) infinite;
}
@keyframes ping { from { transform: scale(0.6); opacity: 1; } to { transform: scale(2); opacity: 0; } }

.menu-btn { display: none; width: 46px; height: 46px; border-radius: 50%; flex-direction: column; align-items: center; justify-content: center; background: rgba(247, 237, 230, 0.08); }
.menu-btn span { display: block; width: 18px; height: 1.5px; background: var(--cream); transition: transform 300ms var(--ease-out); }
.menu-btn span + span { margin-top: 5px; }
.menu-open .menu-btn span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-open .menu-btn span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; justify-content: center;
  padding: 100px var(--gutter) 40px; gap: 6px;
  background: rgba(26, 10, 15, 0.82);
  -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px);
  clip-path: circle(0% at calc(100% - 50px) 50px);
  transition: clip-path 700ms var(--ease-in-out);
  visibility: hidden;
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 50px) 50px); visibility: visible; }
.mobile-menu a { font-family: var(--serif); font-size: clamp(40px, 11vw, 64px); line-height: 1.15; letter-spacing: -0.02em; }
.mobile-menu .mm-contact { margin-top: 30px; font-size: 15px; color: var(--muted); font-family: var(--sans); line-height: 1.8; }

/* ---------- Secciones ---------- */
section { position: relative; }
.section { padding: clamp(56px, 6vw, 96px) 0; }
.section-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px; }
.section-head .lead { margin-top: 0; max-width: 40ch; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh; display: flex; align-items: center;
  padding: 120px 0 80px; overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1.08fr 0.92fr; align-items: center; gap: clamp(24px, 4vw, 64px); }
.hero h1 { font-size: clamp(50px, 7.4vw, 124px); margin-top: 26px; }
.hero .lead { margin-top: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero-meta {
  display: flex; gap: clamp(20px, 3vw, 44px); margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 14px;
}
.hero-meta strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 26px; color: var(--cream); line-height: 1.1; letter-spacing: -0.01em; }

/* La gota viva con el monograma VP */
.hero-visual { position: relative; aspect-ratio: 1; width: 100%; max-width: 620px; margin-left: auto; container-type: inline-size; }
.liquid { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hero-ring {
  position: absolute; inset: -4%; width: 108%; height: 108%;
  animation: spin 60s linear infinite; will-change: transform;
}
.hero-ring text { font-family: var(--sans); font-weight: 700; font-size: 13px; fill: rgba(226, 196, 142, 0.75); }
@keyframes spin { to { transform: rotate(360deg); } }
/* Órbita: el contenedor gira en sentido antihorario (al revés del anillo de texto)
   y cada etiqueta gira al revés con la misma duración, así se mantiene derecha */
.orbit { position: absolute; inset: 0; z-index: 2; pointer-events: none; animation: spin 46s linear infinite reverse; will-change: transform; }
.orbit-slot { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(var(--a)) translateX(var(--r, 47cqw)) rotate(calc(var(--a) * -1)); }
.float-tag {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); transform-origin: 0 0;
  display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 700; white-space: nowrap;
  background: rgba(30, 11, 17, 0.86); border: 1px solid rgba(255, 226, 232, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 14px 30px -14px rgba(0, 0, 0, 0.8);
  animation: counterSpin 46s linear infinite, floaty 6s var(--ease-in-out) infinite alternate;
  will-change: transform;
}
.float-tag svg { width: 12px; height: 12px; color: var(--champagne); }
.float-tag.t2 { animation-delay: 0s, -2s; }
.float-tag.t3 { animation-delay: 0s, -1s; background: var(--cream); color: var(--noir); border-color: var(--cream); }
.float-tag.t3 svg { color: var(--rubi); }
/* Shopify en rubí (la opción destacada); Mantenimiento en oscuro */
.float-tag.t1 { background: linear-gradient(135deg, #c8284a, var(--granate)); border-color: rgba(255, 255, 255, 0.18); }
.float-tag.t1 svg { color: var(--blush); }
.float-tag.t4 { animation-delay: 0s, -3.5s; }
@keyframes counterSpin { from { rotate: 0deg; } to { rotate: 360deg; } }
@keyframes floaty { from { translate: 0 -6px; } to { translate: 0 7px; } }

/* ---------- Línea de progreso de scroll ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 150; pointer-events: none; background: rgba(247, 237, 230, 0.06); }
.scroll-progress i {
  display: block; height: 100%; transform: scaleX(0); transform-origin: left; will-change: transform;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.55), #fff);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.55);
}

/* ---------- Acceso flotante al contacto ---------- */
.contact-dock {
  position: fixed; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); z-index: 70;
  display: flex; align-items: center; gap: 14px;
  padding: 8px 8px 8px 20px; border-radius: var(--r-pill);
  font-size: 14.5px; color: var(--cream); white-space: nowrap;
  transform: translate(-50%, 160%); opacity: 0; pointer-events: none;
  transition: transform 600ms var(--ease-drawer), opacity 300ms ease;
}
.contact-dock.is-visible { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.cd-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--rubi); flex: none; }
.cd-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--blush); animation: ping 2.4s var(--ease-out) infinite; }
.cd-text { color: var(--muted); }
.cd-text b { color: var(--cream); font-weight: 700; }
.cd-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: var(--r-pill);
  background: var(--cream); color: var(--noir); font-weight: 700; font-size: 14px;
  transition: transform 160ms var(--ease-out);
}
.cd-btn svg { transition: transform 260ms var(--ease-out); }
.contact-dock:active .cd-btn { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .contact-dock:hover .cd-btn svg { transform: translateX(4px); }
}

/* ---------- Marquee ---------- */
.marquee { padding: 30px 0; border-block: 1px solid var(--line); overflow: hidden; position: relative; }
.marquee-row { display: flex; width: max-content; will-change: transform; }
.marquee-row + .marquee-row { margin-top: 10px; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 36px; padding-right: 36px;
  font-family: var(--serif); font-size: clamp(38px, 6vw, 88px); line-height: 1.1; letter-spacing: -0.02em; white-space: nowrap;
}
.marquee-item .alt { font-style: italic; font-weight: 300; color: transparent; -webkit-text-stroke: 1px rgba(242, 196, 201, 0.65); font-variation-settings: "SOFT" 100, "WONK" 1; }
.marquee-item .star { width: 0.5em; height: 0.5em; color: var(--champagne); flex: none; }

/* ---------- Servicios ---------- */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 72px; }
.s-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.s-badge {
  font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--noir); background: linear-gradient(135deg, #f0d7a8, #c9a465); padding: 7px 12px; border-radius: var(--r-pill);
  position: relative; z-index: 1;
}
.s-badge--soft { background: none; color: var(--blush); border: 1px solid rgba(242, 196, 201, 0.4); }
.service p strong { color: var(--cream); font-weight: 700; }
.service {
  position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 36px 36px 34px;
  min-height: 430px; display: flex; flex-direction: column;
  transition: transform 400ms var(--ease-out), border-color 300ms ease;
  --mx: 50%; --my: 50%;
}
.service::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 400ms ease;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(179, 32, 63, 0.45), rgba(110, 18, 40, 0.15) 40%, transparent 70%);
}
.service .s-blob {
  position: absolute; width: 260px; height: 260px; right: -90px; top: -90px; z-index: -1;
  opacity: 0.55; transition: transform 900ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .service:hover { transform: translateY(-6px); border-color: rgba(226, 196, 142, 0.35); }
  .service:hover::before { opacity: 1; }
  .service:hover .s-blob { transform: scale(1.25) rotate(40deg); }
}
.s-num { font-family: var(--serif); font-size: 15px; color: var(--champagne); letter-spacing: 0.1em; }
.s-icon { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; margin-top: 40px; background: rgba(247, 237, 230, 0.06); border: 1px solid var(--line); }
.s-icon svg { width: 28px; height: 28px; stroke: var(--blush); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { font-family: var(--serif); font-weight: 420; font-size: clamp(28px, 2.4vw, 36px); line-height: 1.08; letter-spacing: -0.02em; margin: 26px 0 0; font-variation-settings: "opsz" 72, "SOFT" 60; }
.service p { color: var(--muted); margin: 14px 0 0; font-size: 16px; }
.service ul { list-style: none; margin: auto 0 0; padding: 26px 0 0; display: grid; gap: 10px; font-size: 14.5px; }
.service li { display: flex; gap: 12px; align-items: center; padding-top: 10px; border-top: 1px solid var(--line); }
.service li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--champagne); flex: none; }

/* ---------- Física ---------- */
.physics-section .wrap { display: grid; gap: 40px; }
.physics-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; }
.physics-actions { display: flex; gap: 10px; }
.physics-box {
  position: relative; height: min(54vh, 480px); min-height: 400px; border-radius: 36px; overflow: hidden;
  touch-action: pan-y;
}
.physics-box::after {
  content: attr(data-hint); position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%);
  font-family: var(--serif); font-style: italic; font-size: clamp(30px, 4vw, 60px); color: rgba(247, 237, 230, 0.08);
  pointer-events: none; white-space: nowrap; font-variation-settings: "SOFT" 100, "WONK" 1;
}
.chip {
  position: absolute; left: 0; top: 0; z-index: 1;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0 26px; height: 64px; border-radius: var(--r-pill);
  font-weight: 700; font-size: 18px; white-space: nowrap;
  user-select: none; -webkit-user-select: none;
  transform: translate(-999px, -999px);
  will-change: transform;
}
.chip svg { width: 18px; height: 18px; }
.chip--cream { background: var(--cream); color: var(--noir); }
.chip--rubi { background: linear-gradient(135deg, #c8284a, var(--granate)); color: var(--cream); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.chip--champagne { background: linear-gradient(135deg, #f0d7a8, #c9a465); color: var(--noir); }
.chip--glass {
  background: linear-gradient(135deg, #5a2a36, #3a1620); border: 1px solid rgba(255, 228, 234, 0.25); color: var(--cream);
}
.chip--outline { border: 1.5px solid var(--blush); color: var(--blush); background: rgba(14, 5, 8, 0.6); }
.chip--serif { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 24px; font-variation-settings: "SOFT" 100, "WONK" 1; }
.chip.is-circle { padding: 0; justify-content: center; border-radius: 50%; }
.chip.c-1 { width: 110px; height: 110px; background: radial-gradient(circle at 30% 30%, #4a1222, var(--burgundy)); border: 1px solid rgba(247, 237, 230, 0.25); }
.chip.c-2 { width: 92px; height: 92px; background: radial-gradient(circle at 30% 30%, #9a2340, var(--granate)); }
.chip.c-3 { width: 80px; height: 80px; background: radial-gradient(circle at 30% 30%, #e08a96, var(--rose)); }
.chip.c-4 { width: 100px; height: 100px; background: radial-gradient(circle at 30% 30%, #fff, var(--blush)); }
.chip.c-5 { width: 70px; height: 70px; background: radial-gradient(circle at 30% 30%, #f6e2bb, var(--champagne)); }
.chip.c-6 { width: 120px; height: 120px; background: radial-gradient(circle at 30% 30%, #d23a5c, var(--rubi)); color: var(--cream); font-family: var(--serif); font-style: italic; font-size: 26px; }

@media (min-width: 1081px) {
  .chip { height: 76px; padding: 0 32px; font-size: 21px; }
  .chip--serif { font-size: 28px; }
  .chip.c-1 { width: 140px; height: 140px; } .chip.c-2 { width: 116px; height: 116px; } .chip.c-3 { width: 100px; height: 100px; }
  .chip.c-4 { width: 126px; height: 126px; } .chip.c-5 { width: 88px; height: 88px; } .chip.c-6 { width: 150px; height: 150px; font-size: 32px; }
}

/* ---------- Proceso (horizontal) ---------- */
.process { overflow: hidden; }
.process-pin { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 100px 0 60px; }
.process-track { display: flex; gap: 20px; padding-left: max(var(--gutter), calc((100vw - 1320px) / 2)); margin-top: 60px; width: max-content; will-change: transform; }
.step {
  width: min(440px, 80vw); min-height: 420px; border-radius: var(--r-lg); padding: 34px;
  display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.step-num {
  font-family: var(--serif); font-weight: 300; font-size: 150px; line-height: 0.8; letter-spacing: -0.05em;
  color: transparent; -webkit-text-stroke: 1px rgba(242, 196, 201, 0.5);
}
.step h3 { font-family: var(--serif); font-weight: 420; font-size: 34px; letter-spacing: -0.02em; margin: auto 0 0; line-height: 1.1; }
.step p { color: var(--muted); margin: 12px 0 0; font-size: 16px; }
.step-tag { position: absolute; top: 34px; right: 34px; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--champagne); font-weight: 700; }
.step--end {
  background: linear-gradient(145deg, var(--rubi), var(--granate) 60%, var(--vino));
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.step--end .step-num { -webkit-text-stroke: 1px rgba(247, 237, 230, 0.6); }
.step--end p { color: rgba(247, 237, 230, 0.8); }
.process-progress { width: var(--wrap); margin: 50px auto 0; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.process-progress i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--champagne), var(--rubi)); transform: scaleX(0); transform-origin: left; }

/* ---------- Proyectos ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; margin-top: 72px; }
.project { grid-column: span 6; display: block; }
.project:nth-child(1) { grid-column: span 7; }
.project:nth-child(2) { grid-column: span 5; margin-top: 70px; }
.project:nth-child(3) { grid-column: 3 / span 8; }
.browser {
  border-radius: 22px; overflow: hidden; position: relative;
  transition: transform 500ms var(--ease-out);
}
.browser-bar { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(247, 237, 230, 0.2); }
.browser-bar i:first-child { background: var(--rubi); }
.browser-bar i:nth-child(2) { background: var(--champagne); }
.browser-url { margin-left: 14px; flex: 1; height: 24px; border-radius: 8px; background: rgba(247, 237, 230, 0.06); font-size: 11px; color: var(--faint); display: flex; align-items: center; padding: 0 12px; }
.browser-view { aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.mock { will-change: transform; transition: transform 3.2s var(--ease-in-out); }
@media (hover: hover) and (pointer: fine) {
  .project:hover .browser { transform: translateY(-6px); }
  .project:hover .mock { transform: translateY(calc(-100% + var(--view-h, 300px))); }
}
.project-info { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 18px; }
.project-info h3 { font-family: var(--serif); font-weight: 420; font-size: 26px; margin: 0; letter-spacing: -0.015em; }
.project-info span { color: var(--muted); font-size: 14px; }
.project-info .tag-soon { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--noir); background: var(--champagne); padding: 5px 10px; border-radius: var(--r-pill); margin-left: 10px; vertical-align: middle; }

/* Cintas de obra: dos cintas cruzadas en X sobre la tarjeta de la web que todavía está en construcción */
.project--wip { cursor: default; }
.tapes { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; border-radius: inherit; container-type: size; }
.tape {
  position: absolute; left: 50%; top: 50%; width: 160%; height: 46px;
  display: flex; align-items: center; justify-content: center; gap: 22px; white-space: nowrap; overflow: hidden;
  font: 800 13.5px/1 var(--sans); letter-spacing: 0.24em; color: #17110a;
  background:
    repeating-linear-gradient(-45deg, #17110a 0 7px, transparent 7px 14px) top / 100% 6px no-repeat,
    repeating-linear-gradient(-45deg, #17110a 0 7px, transparent 7px 14px) bottom / 100% 6px no-repeat,
    linear-gradient(#f6c514, #e6b30a);
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.65);
  translate: -50% -50%;
}
.tape i { flex: none; width: 7px; height: 7px; background: currentColor; transform: rotate(45deg); }
.tape--a { rotate: 32deg; }
.tape--b { rotate: -32deg; }
/* Si el navegador sabe trigonometría en CSS, las cintas van justo de esquina a esquina sea cual sea el tamaño de la tarjeta */
@supports (width: hypot(1px, 1px)) and (rotate: atan2(1px, 1px)) {
  .tape { width: calc(hypot(100cqw, 100cqh) + 40px); }
  .tape--a { rotate: atan2(100cqh, 100cqw); }
  .tape--b { rotate: calc(atan2(100cqh, 100cqw) * -1); }
}
@media (max-width: 760px) {
  .tape { height: 34px; font-size: 10.5px; gap: 16px; letter-spacing: 0.2em; background-size: 100% 5px, 100% 5px, auto; }
}

/* Capturas reales: se apilan y, al pasar el mouse, la tarjeta recorre la página */
.mock--shots img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: center top; background: #1a0a0f; }

/* Mockups de tienda (se reemplazan por capturas reales) */
.mock { padding: 0; }
.mk-hero { height: 260px; display: grid; place-items: center; text-align: center; position: relative; overflow: hidden; }
.mk-hero b { font-family: var(--serif); font-weight: 400; font-size: 46px; letter-spacing: -0.02em; display: block; line-height: 1; }
.mk-hero small { display: block; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; margin-top: 12px; opacity: 0.75; }
.mk-nav { display: flex; justify-content: space-between; padding: 14px 20px; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.8; position: absolute; top: 0; left: 0; right: 0; }
.mk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 18px; }
.mk-card { aspect-ratio: 3/4; border-radius: 10px; }
.mk-line { height: 8px; border-radius: 4px; margin: 0 18px 10px; opacity: 0.35; }
.mk-band { height: 140px; margin: 18px; border-radius: 14px; }
.mock--a { background: #f5ece6; color: var(--noir); }
.mock--a .mk-hero { background: linear-gradient(160deg, #2b0f17, #6e1228); color: var(--cream); }
.mock--a .mk-card { background: linear-gradient(160deg, #e9d6cf, #d7b6ad); }
.mock--a .mk-line { background: var(--noir); }
.mock--a .mk-band { background: linear-gradient(90deg, #e2c48e, #f2c4c9); }
.mock--b { background: #1d0b11; color: var(--cream); }
.mock--b .mk-hero { background: radial-gradient(circle at 70% 40%, #c96b78, #3d0b18 70%); }
.mock--b .mk-card { background: linear-gradient(160deg, #3d0b18, #b3203f); }
.mock--b .mk-line { background: var(--cream); }
.mock--b .mk-band { background: linear-gradient(90deg, #6e1228, #b3203f); }
.mock--c { background: #f7ede6; color: var(--noir); }
.mock--c .mk-hero { background: linear-gradient(120deg, #f2c4c9, #e2c48e); }
.mock--c .mk-card { background: linear-gradient(160deg, #1a0a0f, #6e1228); }
.mock--c .mk-line { background: var(--noir); }
.mock--c .mk-band { background: #1a0a0f; }

/* ---------- Por qué ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 72px; border-top: 1px solid var(--line); }
.why { padding: 34px 28px 10px 0; position: relative; }
.why + .why { padding-left: 28px; border-left: 1px solid var(--line); }
.why b { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 64px; line-height: 1; color: var(--champagne); display: block; font-variation-settings: "SOFT" 100, "WONK" 1; }
.why h3 { font-size: 20px; font-weight: 800; margin: 26px 0 0; letter-spacing: -0.01em; }
.why p { color: var(--muted); margin: 10px 0 0; font-size: 15.5px; }

/* ---------- Contacto ---------- */
.contact { padding-bottom: 60px; overflow: hidden; }
.contact .wrap { position: relative; }
.contact-liquid {
  position: absolute; width: 900px; height: 900px; right: -260px; top: -200px; z-index: -1; opacity: 0.9; pointer-events: none;
  animation: spin 70s linear infinite; will-change: transform;
}
.contact-big {
  font-family: var(--serif); font-weight: 340; font-size: clamp(64px, 13vw, 220px); line-height: 0.9; letter-spacing: -0.05em;
  margin: 26px 0 0; font-variation-settings: "opsz" 144, "SOFT" 80;
}
.contact-big .ch, .contact-big .chi { display: inline-block; }
.contact-big .chi { transition: color 300ms ease; }
.contact-big .chi.is-lit { color: var(--blush); }
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 20px; margin-top: 64px; align-items: stretch; }
.contact-card { border-radius: var(--r-lg); padding: 36px; display: flex; flex-direction: column; gap: 26px; }
.contact-card p { margin: 0; color: var(--muted); max-width: 44ch; }
.brief { display: grid; gap: 18px; }
.q { border: 0; padding: 0; margin: 0; min-width: 0; }
.q legend { padding: 0; margin-bottom: 10px; font-size: 13px; font-weight: 800; letter-spacing: 0.04em; color: var(--cream); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opt span {
  display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border-radius: var(--r-pill);
  border: 1px solid rgba(247, 237, 230, 0.22); background: rgba(247, 237, 230, 0.04);
  font-size: 14px; font-weight: 600; color: var(--muted);
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out);
}
.opt:active span { transform: scale(0.97); }
.opt input:checked + span { background: var(--cream); color: var(--noir); border-color: var(--cream); }
.opt input:focus-visible + span { outline: 2px solid var(--champagne); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .opt:hover input:not(:checked) + span { border-color: var(--champagne); color: var(--cream); }
}
.name-field { display: grid; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: 0.04em; }
.name-field small { font-weight: 500; color: var(--faint); letter-spacing: 0; }
.name-field input {
  height: 46px; border-radius: 14px; padding: 0 16px; font: inherit; font-size: 15px; font-weight: 500; letter-spacing: 0;
  color: var(--cream); background: rgba(247, 237, 230, 0.05); border: 1px solid rgba(247, 237, 230, 0.2);
  transition: border-color 200ms ease;
}
.name-field input::placeholder { color: var(--faint); }
.name-field input:focus { outline: none; border-color: var(--champagne); }
.brief-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px) { .brief-actions .btn { width: 100%; } }
.contact-links { display: grid; gap: 0; }
.contact-links a {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 4px;
  border-top: 1px solid var(--line); font-size: clamp(17px, 1.6vw, 22px); font-weight: 600;
  transition: padding 400ms var(--ease-out), color 200ms ease;
}
.contact-links a:last-child { border-bottom: 1px solid var(--line); }
.contact-links a small { display: block; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--champagne); font-weight: 700; margin-bottom: 4px; }
.contact-links a .arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; flex: none; transition: background-color 300ms ease, transform 400ms var(--ease-out), border-color 300ms ease; }
@media (hover: hover) and (pointer: fine) {
  .contact-links a:hover { padding-left: 14px; }
  .contact-links a:hover .arrow { background: var(--cream); color: var(--noir); border-color: var(--cream); transform: rotate(-45deg); }
}

/* ---------- Footer con letras que caen ---------- */
.footer { padding: 30px 0 30px; }
/* --fs: tamaño de las letras, calculado para que "Pantanali." entre siempre en una línea */
.footer-drop { --fs: clamp(44px, 14vw, 200px); position: relative; height: calc(var(--fs) * 1.65); overflow: hidden; border-radius: clamp(20px, 2.4vw, 32px); touch-action: pan-y; }
.drop-letter {
  position: absolute; left: 0; top: 0; z-index: 1;
  font-family: var(--serif); font-weight: 600; font-size: var(--fs); line-height: 0.82;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  user-select: none; -webkit-user-select: none; padding: 0 0.04em;
  transform: translate(-999px, -999px); will-change: transform;
  background: linear-gradient(180deg, var(--cream), var(--blush) 60%, var(--rose));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.drop-letter.is-accent { background: linear-gradient(180deg, var(--champagne), #b08a4a); -webkit-background-clip: text; background-clip: text; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 26px; color: var(--faint); font-size: 13.5px; }
.footer-bottom a { color: var(--muted); transition: color 200ms ease; }
.footer-bottom a:hover { color: var(--champagne); }

/* ---------- Estados iniciales de animación (solo con JS) ---------- */
html.js .reveal-up { opacity: 0; transform: translateY(40px); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .status { display: none; }
  .menu-btn { display: flex; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; width: 100%; margin: 20px auto 0; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .why:nth-child(3) { border-left: 0; padding-left: 0; }
  .why:nth-child(n+3) { border-top: 1px solid var(--line); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { top: 12px; height: 58px; }
  .nav .btn { display: none; }
  .section-head { grid-template-columns: 1fr; }
  .hero { padding-top: 110px; }
  .hero-meta { flex-wrap: wrap; gap: 16px 26px; font-size: 12.5px; margin-top: 40px; }
  .hero-meta strong { font-size: 20px; }
  .hero-actions .btn { width: 100%; }
  .scroll-hint { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .service { min-height: 0; padding: 28px 24px; }
  .float-tag { height: 34px; padding: 0 12px; font-size: 12px; gap: 6px; }
  .orbit-slot { --r: 38cqw; }
  .contact-dock { left: 12px; right: 12px; justify-content: space-between; transform: translateY(160%); }
  .contact-dock.is-visible { transform: none; }
  .cd-long { display: none; }
  .s-icon { margin-top: 32px; }
  .chip { height: 50px; font-size: 15px; padding: 0 18px; }
  .chip--serif { font-size: 19px; }
  .chip.c-1 { width: 80px; height: 80px; } .chip.c-2 { width: 68px; height: 68px; } .chip.c-3 { width: 58px; height: 58px; }
  .chip.c-4 { width: 72px; height: 72px; } .chip.c-5 { width: 52px; height: 52px; } .chip.c-6 { width: 86px; height: 86px; font-size: 19px; }
  .physics-box { height: 500px; min-height: 0; border-radius: 26px; }
  .section { padding: 52px 0; }
  .hero { padding-bottom: 32px; }
  .section-head, .physics-head { gap: 18px; }
  .services-grid, .projects-grid, .why-grid { margin-top: 40px; }
  .contact-grid { margin-top: 36px; }
  .chip--xl { display: none; }
  .projects-grid { grid-template-columns: 1fr; }
  .project, .project:nth-child(n) { grid-column: auto; margin-top: 0; }
  .why-grid { grid-template-columns: 1fr; }
  .why, .why + .why { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .contact-card { padding: 26px; }
  .contact-liquid { width: 560px; height: 560px; right: -240px; top: -80px; }
}
@media (max-width: 900px) {
  .process-pin { min-height: 0; padding: 52px 0; }
  .process-track { margin-top: 36px; }
  .process-track { flex-direction: column; width: auto; padding: 0; margin-inline: auto; max-width: var(--wrap); }
  .step { width: 100%; min-height: 320px; }
  .process-progress { display: none; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  .status i::after, .hero-ring, .orbit, .float-tag, .contact-liquid, .cd-dot::after { animation: none !important; }
  .contact-dock { transition: opacity 200ms ease; }
  .mock { transition: none; }
  html.js .reveal-up { opacity: 1; transform: none; }
}
