/* =============================================================================
   TMS — Trade Marketing Solutions
   Archetype: Editorial Dark Warm (adaptado a marca TMS: negro cálido + ámbar/naranja/rojo)
   ============================================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  /* Fondo cálido casi-negro — NUNCA #000 */
  --bg:        #0d0a08;
  --bg-2:      #140f0c;
  --bg-3:      #1b1511;   /* card */
  --bg-4:      #241b15;   /* card hover / raised */

  /* Texto crema — nunca blanco puro */
  --cream:     #f4ece0;
  --cream-2:   #ddd0bd;
  --cream-3:   #94836c;   /* metadata */

  /* Marca TMS */
  --orange:    #ff7a18;
  --amber:     #ffb020;
  --red:       #e5321c;
  --accent:    var(--orange);
  --accent-2:  var(--amber);
  --grad:      linear-gradient(100deg, var(--amber) 0%, var(--orange) 52%, var(--red) 100%);
  --grad-soft: linear-gradient(100deg, #ffca5e 0%, #ff8a2a 55%, #ef4a30 100%);

  --line:      rgba(244,236,224,.12);
  --line-2:    rgba(244,236,224,.07);

  --maxw:      1240px;
  --gutter:    clamp(20px, 5vw, 64px);

  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:  cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce:cubic-bezier(0.34, 1.56, 0.64, 1);

  --sans:   "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --serif:  "Fraunces", Georgia, "Times New Roman", serif;

  --shadow-1: 0 2px 8px rgba(0,0,0,.25);
  --shadow-2: 0 30px 70px -30px rgba(0,0,0,.7);
  --glow:     0 0 0 1px rgba(255,122,24,.35), 0 24px 60px -24px rgba(255,122,24,.45);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--cream);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
ul { list-style: none; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.04; letter-spacing: -0.02em; font-weight: 600; }
::selection { background: var(--orange); color: #1a0e04; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--cream); color: var(--bg);
  z-index: 9999; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* =============================================================
   3. Utilities
   ============================================================= */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(72px, 10vw, 140px); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.serif { font-family: var(--serif); }
.em { font-family: var(--serif); font-style: italic; font-weight: 400; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: 12.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--cream-3);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 12px rgba(255,140,40,.8); }
.eyebrow.on-accent { color: rgba(26,14,4,.7); }
.eyebrow.on-accent .dot { background: #1a0e04; box-shadow: none; }

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

/* Scroll progress */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: var(--grad); z-index: 200; will-change: transform;
}

/* =============================================================
   4. Typography scale
   ============================================================= */
.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 7.4vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--cream-2);
  line-height: 1.55;
  max-width: 46ch;
}
.kicker-num {
  font-family: var(--serif); font-style: italic;
  color: var(--orange); font-size: 1.1rem;
}

.head { max-width: 60ch; }
.head .h2 { margin: 14px 0 18px; }
.head.center { margin-inline: auto; text-align: center; }
.head.center .lead { margin-inline: auto; }

/* =============================================================
   5. Components — buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: 15px 26px; border-radius: 100px;
  font-weight: 600; font-size: 15px; letter-spacing: .01em;
  transition: transform .35s var(--ease-out), background .35s var(--ease-out), color .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s var(--ease-out);
  white-space: nowrap; will-change: transform;
}
.btn svg { width: 17px; height: 17px; transition: transform .35s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }

.btn-primary { background: var(--grad); color: #1a0e04; box-shadow: 0 14px 34px -14px rgba(255,120,24,.7); }
.btn-primary:hover { box-shadow: 0 20px 46px -14px rgba(255,120,24,.9); transform: translateY(-2px); }

.btn-cream { background: var(--cream); color: #1a0e04; }
.btn-cream:hover { transform: translateY(-2px); background: #fff; }

.btn-ghost { border: 1px solid var(--line); color: var(--cream); }
.btn-ghost:hover { border-color: var(--orange); color: #fff; background: rgba(255,122,24,.07); }

.btn-lg { padding: 17px 32px; font-size: 16px; }

/* =============================================================
   5b. Photo placeholders (marcos editoriales para fotos reales)
   ============================================================= */
.ph {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(255,176,32,.16), transparent 55%),
    radial-gradient(120% 120% at 100% 100%, rgba(229,50,28,.18), transparent 55%),
    linear-gradient(160deg, #241a13 0%, #17110d 100%);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  isolation: isolate;
}
.ph::before { /* grano sutil */
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}
.ph::after { /* marca de agua diagonal TMS */
  content: "TMS"; position: absolute; z-index: 0; right: -6px; bottom: -18px;
  font-family: var(--serif); font-weight: 600; font-size: clamp(52px, 14vw, 150px);
  color: rgba(244,236,224,.05); letter-spacing: -.04em; pointer-events: none; line-height: 1;
}
.ph-label {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: .55em;
  padding: 9px 15px; border-radius: 100px;
  background: rgba(13,10,8,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  font-size: 12.5px; font-weight: 500; color: var(--cream-2); letter-spacing: .01em;
  text-align: center; max-width: 86%;
}
.ph-label svg { width: 15px; height: 15px; flex: none; color: var(--amber); }
@supports not (backdrop-filter: blur(6px)) { .ph-label { background: rgba(13,10,8,.85); } }

/* =============================================================
   6. Splash
   ============================================================= */
.splash {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center; background: var(--bg);
  animation: splashSafety .01s 4.5s forwards; /* red de seguridad si el JS falla */
}
.splash.is-out { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease-out), opacity .8s var(--ease-out); }
.splash-logo { display: flex; flex-direction: column; align-items: center; }
.splash-mark { height: clamp(52px, 10vw, 92px); }
.splash-tag { margin-top: 14px; text-align: center; font-family: var(--sans); font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: var(--cream-3); }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); } }

/* =============================================================
   6b. Logo oficial TMS (isotipo Gotham + barras del isotipo)
   Glifos T/S = vector exacto del manual de marca. Barras: la del
   centro es más alta y flota (no toca la base), como en el oficial.
   Degradado oficial amarillo #FFC500 -> naranja #FF7F00.
   ============================================================= */
.logo { display: inline-flex; flex-direction: column; line-height: 1; }
.tms-mark { display: block; width: auto; overflow: visible; color: var(--cream); }
.tms-mark.logo-main { height: 26px; }
.tms-l { fill: currentColor; }
.tms-b { fill: url(#tms-g); transform-box: fill-box; transform-origin: 50% 100%; will-change: transform; }
/* Reposo = M oficial (barra central alta y flotante). A mitad de ciclo
   late como un ecualizador de data y vuelve a la M. */
.tms-b.b1 { animation: tmsBar1 2.6s var(--ease-soft) infinite; }
.tms-b.b2 { animation: tmsBar2 2.6s var(--ease-soft) infinite; }
.tms-b.b3 { animation: tmsBar3 2.6s var(--ease-soft) infinite; }
@keyframes tmsBar1 { 0%,100% { transform: scaleY(1); } 50% { transform: scaleY(.86); } }
@keyframes tmsBar2 { 0%,100% { transform: scaleY(1); } 50% { transform: scaleY(1.08); } }
@keyframes tmsBar3 { 0%,100% { transform: scaleY(1); } 50% { transform: scaleY(.86); } }
.logo-tag { font-family: var(--sans); font-size: 9.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--cream-3); margin-top: 7px; white-space: nowrap; }

/* =============================================================
   7. Nav
   ============================================================= */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 150;
  transition: background .4s var(--ease-out), border-color .4s var(--ease-out), backdrop-filter .4s var(--ease-out), padding .4s var(--ease-out);
  border-bottom: 1px solid transparent;
  padding-block: 18px;
}
.nav.scrolled {
  background: rgba(13,10,8,.72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line); padding-block: 11px;
}
@supports not (backdrop-filter: blur(10px)) { .nav.scrolled { background: rgba(13,10,8,.95); } }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav-links { display: none; gap: 30px; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--cream-2); position: relative; padding: 4px 0; transition: color .3s var(--ease-out); }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s var(--ease-out); }
.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav .btn { padding: 11px 20px; font-size: 14px; }
.back-link { display: inline-flex; align-items: center; gap: .5em; font-size: 14px; color: var(--cream-2); }
.back-link:hover { color: var(--orange); }
.back-link svg { width: 16px; height: 16px; }
@media (min-width: 960px){ .nav-links { display: flex; } }

/* ---- Botón hamburguesa (solo móvil/tablet) ---- */
.nav-toggle {
  display: none; width: 44px; height: 44px; flex: none;
  border-radius: 50%; border: 1px solid var(--line);
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
  transition: border-color .3s var(--ease-out), background-color .3s var(--ease-out);
}
.nav-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--cream); transition: transform .35s var(--ease-out), opacity .25s var(--ease-out); }
.nav-toggle:hover { border-color: var(--orange); background-color: rgba(255,122,24,.07); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
@media (max-width: 959px) {
  .nav-toggle { display: inline-flex; }
  .nav-inner > .btn, .nav .back-link { display: none; }
}

/* ---- Panel de menú a pantalla completa ---- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 140;
  background:
    radial-gradient(80% 60% at 15% 8%, rgba(255,176,32,.14), transparent 60%),
    radial-gradient(90% 70% at 92% 92%, rgba(229,50,28,.14), transparent 60%),
    var(--bg);
  display: flex; flex-direction: column; justify-content: center; gap: clamp(26px, 6vw, 42px);
  padding: 108px var(--gutter) 40px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-out), visibility .4s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; }
.mm-links { display: flex; flex-direction: column; }
.mm-links a {
  font-family: var(--serif); font-weight: 500; font-size: clamp(1.8rem, 7.5vw, 2.5rem);
  letter-spacing: -.02em; color: var(--cream); padding: 14px 0;
  border-bottom: 1px solid var(--line-2);
  opacity: 0; transform: translateY(14px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out), color .3s var(--ease-out);
}
.mobile-menu.is-open .mm-links a { opacity: 1; transform: none; }
.mobile-menu.is-open .mm-links a:nth-child(1) { transition-delay: .06s; }
.mobile-menu.is-open .mm-links a:nth-child(2) { transition-delay: .12s; }
.mobile-menu.is-open .mm-links a:nth-child(3) { transition-delay: .18s; }
.mobile-menu.is-open .mm-links a:nth-child(4) { transition-delay: .24s; }
.mobile-menu.is-open .mm-links a:nth-child(5) { transition-delay: .30s; }
.mobile-menu.is-open .mm-links a:nth-child(6) { transition-delay: .36s; }
.mm-links a:hover, .mm-links a:active { color: var(--orange); }
.mm-foot { display: grid; gap: 14px; }
.mm-foot .btn { width: 100%; justify-content: center; }
.mm-mail { text-align: center; font-size: 14px; color: var(--cream-3); }
.mm-mail:hover { color: var(--orange); }
body.menu-open { overflow: hidden; }
body.menu-open .wa-fab { opacity: 0; pointer-events: none; }
@media (min-width: 960px) { .mobile-menu { display: none; } }

/* =============================================================
   8. Hero
   ============================================================= */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding-top: 120px; padding-bottom: 60px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-mesh {
  position: absolute; inset: -20%; z-index: 0;
  background:
    radial-gradient(38% 40% at 18% 22%, rgba(255,176,32,.28), transparent 60%),
    radial-gradient(42% 45% at 82% 30%, rgba(229,50,28,.24), transparent 62%),
    radial-gradient(50% 50% at 60% 92%, rgba(255,122,24,.20), transparent 60%);
  filter: blur(30px);
  animation: meshDrift 22s var(--ease-soft) infinite;
}
@keyframes meshDrift {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  33%     { transform: translate3d(2%,-2%,0) scale(1.08); }
  66%     { transform: translate3d(-2%,1%,0) scale(1.04); }
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0; opacity: .5;
  background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 78%);
}
.hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-copy { max-width: 900px; }
.hero .lead { margin-inline: auto; }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.7rem, 7.2vw, 5.8rem); line-height: 0.98; letter-spacing: -0.03em; margin: 24px auto 24px; max-width: 16ch; }
.hero h1 .em { display: inline; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; justify-content: center; }

/* Hero figure (foto principal a sangre) */
.hero-figure { position: relative; }
.hero-figure .ph { aspect-ratio: 4/3.1; border-radius: 20px; box-shadow: var(--shadow-2); }
.hero-figure .float-badge {
  position: absolute; z-index: 3; left: -14px; bottom: 26px;
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 18px; box-shadow: var(--shadow-2); max-width: 230px;
}
.float-badge .fb-num { font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1; }
.float-badge .fb-lab { font-size: 12.5px; color: var(--cream-3); margin-top: 5px; }

/* Cifras clave dentro del hero — visibles siempre, aunque se navegue por el menú */
.hero-stats {
  width: 100%; max-width: 880px;
  margin-top: clamp(24px, 3.4vw, 36px); padding-top: clamp(18px, 2.2vw, 24px);
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 14px;
}
.hero-stat .num { font-family: var(--serif); font-weight: 600; font-size: clamp(1.7rem, 3.6vw, 2.4rem); line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stat .lab { font-size: 12px; color: var(--cream-3); margin-top: 7px; letter-spacing: .02em; line-height: 1.35; }
@media (min-width: 720px) { .hero-stats { grid-template-columns: repeat(4, 1fr); gap: 24px; } }

.hero-scroll { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--cream-3); }
.hero-scroll .line { width: 1px; height: 40px; background: linear-gradient(var(--cream-3), transparent); animation: scrollLine 2s var(--ease-soft) infinite; transform-origin: top; }
@keyframes scrollLine { 0%{ transform: scaleY(0); opacity:0 } 40%{ transform: scaleY(1); opacity:1 } 100%{ transform: scaleY(1) translateY(20px); opacity:0 } }

@media (min-width: 960px) {
  .hero { padding-top: 132px; }
}
/* Pantallas bajas (portátiles): compactar el hero para que las cifras entren sin scroll */
@media (max-height: 820px) and (min-width: 720px) {
  .hero { padding-top: 104px; padding-bottom: 42px; }
  .hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); margin: 16px auto 16px; }
  .hero .lead { font-size: 1.02rem; }
  .hero-stats { margin-top: 22px; padding-top: 18px; }
  .hero-stat .num { font-size: clamp(1.5rem, 2.8vw, 2rem); }
  .hero-scroll { display: none; }
}
/* En móvil el indicador "Scroll" estorba: se oculta */
@media (max-width: 719px) {
  .hero-scroll { display: none; }
}

/* =============================================================
   9. Marquee clientes
   ============================================================= */
.marquee-wrap { border-block: 1px solid var(--line); padding-block: 26px; background: var(--bg-2); overflow: hidden; }
.marquee-label { text-align: center; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--cream-3); margin-bottom: 18px; }
.marquee { display: flex; gap: 56px; width: max-content; animation: marquee 42s linear infinite; }
.marquee-wrap:hover .marquee { animation-play-state: paused; }
.marquee .cli { font-family: var(--serif); font-size: clamp(20px, 2.6vw, 30px); font-weight: 500; color: var(--cream-2); opacity: .55; white-space: nowrap; transition: opacity .3s, color .3s; }
.marquee .cli:hover { opacity: 1; color: var(--cream); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =============================================================
   10. Servicios (editorial rows)
   ============================================================= */
.svc-list { margin-top: 56px; border-top: 1px solid var(--line); }
.svc-row {
  display: grid; gap: 22px; align-items: center;
  grid-template-columns: 1fr; padding-block: 30px; border-bottom: 1px solid var(--line);
  position: relative; transition: background .4s var(--ease-out);
}
.svc-row:hover { background: linear-gradient(90deg, rgba(255,122,24,.05), transparent 60%); }

/* Imagen por servicio (foto real de campo o marco editorial) */
.svc-thumb { position: relative; overflow: hidden; border-radius: 14px; aspect-ratio: 16/10; background: var(--bg-3); border: 1px solid var(--line); }
.svc-thumb > .ph { position: absolute; inset: 0; border: 0; border-radius: 0; }
.svc-thumb > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.svc-thumb:has(> img)::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to top, rgba(13,10,8,.8), rgba(13,10,8,.05) 55%); }
.svc-cap { position: absolute; left: 11px; right: 11px; bottom: 10px; z-index: 2; display: flex; align-items: center; gap: .45em; font-size: 11.5px; font-weight: 500; color: var(--cream); letter-spacing: .01em; line-height: 1.25; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.svc-cap svg { width: 14px; height: 14px; color: var(--amber); flex: none; }
.svc-row:hover .svc-thumb > img { transform: scale(1.05); }
.svc-thumb .ph-label { font-size: 11.5px; padding: 7px 11px; }

.svc-main { display: grid; gap: 12px; }
.svc-head { display: flex; align-items: baseline; gap: 16px; }
.svc-num { font-family: var(--serif); font-style: italic; color: var(--orange); font-size: 1rem; flex: none; width: 3ch; }
.svc-title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 3vw, 2.3rem); letter-spacing: -.02em; transition: color .3s; }
.svc-row:hover .svc-title { color: #fff; }
.svc-body { color: var(--cream-2); max-width: 52ch; }
.svc-arrow { display: none; }

/* Marco de marca editorial cuando aún no hay foto real del servicio */
.svc-thumb--brand { display: grid; place-items: center; background: radial-gradient(120% 120% at 30% 22%, rgba(255,176,32,.18), transparent 62%), var(--bg-3); }
.svc-thumb--brand::after { display: none; }
.svc-bars { display: flex; gap: 6px; align-items: flex-end; height: 40%; opacity: .9; }
.svc-bars i { width: 8px; border-radius: 4px; background: linear-gradient(#FFC500, #FF7F00); }
.svc-bars i:nth-child(1) { height: 62%; }
.svc-bars i:nth-child(2) { height: 100%; }
.svc-bars i:nth-child(3) { height: 78%; }
@media (min-width: 960px) {
  .svc-row { grid-template-columns: clamp(170px, 21vw, 240px) 1fr auto; gap: 40px; }
  .svc-row--more { grid-template-columns: 1fr auto; } /* card catch-all sin foto */
  .svc-thumb { aspect-ratio: 4/3.2; }
  .svc-arrow { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); color: var(--cream-2); transition: all .35s var(--ease-out); flex: none; }
  .svc-row:hover .svc-arrow { background: var(--grad); color: #1a0e04; border-color: transparent; transform: rotate(-45deg); }
  .svc-arrow svg { width: 20px; height: 20px; }
}

/* =============================================================
   11. Por qué TMS (split editorial)
   ============================================================= */
.why { background: var(--bg-2); }
.why-grid { display: grid; gap: 40px; }
.why-cards { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.why-card { background: var(--bg); padding: 30px 26px; transition: background .35s var(--ease-out); }
.why-card:hover { background: var(--bg-3); }
.why-card .wc-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,122,24,.1); color: var(--amber); margin-bottom: 16px; }
.why-card .wc-ic svg { width: 22px; height: 22px; }
.why-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.why-card p { font-size: 14.5px; color: var(--cream-2); }
@media (min-width: 720px) { .why-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .why-grid { grid-template-columns: .8fr 1.2fr; align-items: start; gap: 56px; } .why .head { position: sticky; top: 100px; } }

/* =============================================================
   12. Stats band
   ============================================================= */
.stats-band { background: var(--bg); position: relative; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.stat { background: var(--bg-2); padding: 34px 24px; text-align: center; }
.stat .num { font-family: var(--serif); font-weight: 600; font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .lab { margin-top: 10px; font-size: 13px; color: var(--cream-2); letter-spacing: .02em; }
@media (min-width: 720px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

/* =============================================================
   13. Casos
   ============================================================= */
.cases-grid { display: grid; gap: 24px; margin-top: 48px; }
@media (min-width: 720px) { .cases-grid { grid-template-columns: 1fr 1fr; } }

.case {
  position: relative; border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  background: var(--bg-3); display: flex; flex-direction: column;
  transition: transform .45s var(--ease-out), border-color .45s var(--ease-out), box-shadow .45s var(--ease-out);
  will-change: transform;
}
.case:hover { transform: translateY(-5px); border-color: rgba(255,122,24,.4); box-shadow: var(--shadow-2); }
/* Banda de marca (sin foto — resultado como protagonista) */
.case-band {
  position: relative; overflow: hidden; padding: 24px; min-height: 118px;
  display: flex; flex-direction: column; gap: 12px; justify-content: center;
  background:
    radial-gradient(120% 100% at 12% 0%, rgba(255,176,32,.16), transparent 52%),
    radial-gradient(130% 120% at 100% 100%, rgba(229,50,28,.15), transparent 55%),
    linear-gradient(150deg, #241a13, #17110d);
  border-bottom: 1px solid var(--line);
}
.case-band .case-tag { align-self: flex-start; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #1a0e04; background: var(--grad); padding: 5px 11px; border-radius: 100px; }
.case-band .case-brand { font-family: var(--serif); font-weight: 600; font-size: 1.75rem; letter-spacing: -.01em; color: var(--cream); line-height: 1; }
.case-band .cb-bars { position: absolute; right: 22px; top: 22px; display: flex; gap: 4px; align-items: flex-end; height: 26px; opacity: .5; pointer-events: none; }
.case-band .cb-bars i { width: 5px; border-radius: 2px 2px 0 0; background: var(--grad); }
.case-band .cb-bars i:nth-child(1){ height: 55%; }
.case-band .cb-bars i:nth-child(2){ height: 100%; }
.case-band .cb-bars i:nth-child(3){ height: 72%; }
.case-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.case-body h3 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; margin-bottom: 10px; }
.case-body p { font-size: 14.5px; color: var(--cream-2); }
.case-metrics { display: flex; flex-wrap: wrap; gap: 22px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
.case-metric .mv { font-family: var(--serif); font-weight: 600; font-size: 1.9rem; line-height: 1; color: var(--amber); }
.case-metric .ml { font-size: 11.5px; color: var(--cream-3); margin-top: 5px; max-width: 15ch; letter-spacing: .02em; }
.case-pending { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); display: inline-flex; align-items: center; gap: .55em; font-size: 12.5px; color: var(--cream-3); }
.case-pending .pd { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px rgba(255,176,32,.8); animation: barPulse 1.6s infinite; }

.cases-cta { margin-top: 46px; text-align: center; }

/* Filtros (casos.html) */
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 14px; }
.chip-f { padding: 9px 18px; border-radius: 100px; border: 1px solid var(--line); font-size: 13.5px; font-weight: 500; color: var(--cream-2); transition: all .3s var(--ease-out); }
.chip-f:hover { border-color: var(--orange); color: var(--cream); }
.chip-f.active { background: var(--grad); color: #1a0e04; border-color: transparent; font-weight: 600; }

/* =============================================================
   14. Metodología
   ============================================================= */
.proc-steps { display: grid; gap: 22px; margin-top: 52px; }
.proc-step {
  display: grid; gap: 16px; padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-3);
  position: relative; overflow: hidden; transition: border-color .4s var(--ease-out);
}
.proc-step:hover { border-color: rgba(255,122,24,.35); }
.proc-step .ps-num { font-family: var(--serif); font-weight: 600; font-size: 2.4rem; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.proc-step h3 { font-size: 1.2rem; }
.proc-step p { font-size: 14px; color: var(--cream-2); }
.proc-step .ps-line { position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: 0; transition: transform .6s var(--ease-out); }
.proc-step:hover .ps-line { transform: scaleX(1); }
@media (min-width: 720px) { .proc-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .proc-steps { grid-template-columns: repeat(4, 1fr); } }

/* =============================================================
   15. Aplicativo (dark feature)
   ============================================================= */
.app-sec { position: relative; }
.app-panel {
  position: relative; border-radius: 26px; overflow: hidden; padding: clamp(36px, 6vw, 72px);
  background: linear-gradient(150deg, #1c130d 0%, #120c09 100%); border: 1px solid var(--line);
}
.app-halo { position: absolute; inset: -40% -10% auto -10%; height: 80%; background: radial-gradient(45% 60% at 50% 0%, rgba(255,122,24,.3), transparent 70%); filter: blur(70px); pointer-events: none; }
.app-grid { position: relative; z-index: 2; display: grid; gap: 30px; margin-top: 40px; }
.app-feat { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.03); transition: background .35s, transform .35s var(--ease-out); }
.app-feat:hover { background: rgba(255,255,255,.06); transform: translateY(-3px); }
.app-feat .af-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,176,32,.12); color: var(--amber); margin-bottom: 14px; }
.app-feat .af-ic svg { width: 21px; height: 21px; }
.app-feat h3 { font-size: 1.1rem; margin-bottom: 7px; }
.app-feat p { font-size: 13.5px; color: var(--cream-2); }
@media (min-width: 640px) { .app-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .app-grid { grid-template-columns: repeat(4, 1fr); } }

/* =============================================================
   16. Contacto
   ============================================================= */
.contact-grid { display: grid; gap: 44px; }
.contact-info { margin-top: 30px; display: grid; gap: 18px; }
.ci { display: flex; align-items: center; gap: 14px; }
.ci .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,122,24,.1); color: var(--amber); flex: none; }
.ci .ic svg { width: 21px; height: 21px; }
.ci b { display: block; font-size: 15px; }
.ci small { color: var(--cream-3); font-size: 13px; }

.form { padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg-3); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--cream-2); margin-bottom: 8px; letter-spacing: .02em; }
.field input, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg); color: var(--cream); font: inherit; font-size: 15px; transition: border-color .3s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--cream-3); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--orange); }
.field textarea { resize: vertical; min-height: 110px; }
.form .btn { width: 100%; justify-content: center; }
.form-note { font-size: 12px; color: var(--cream-3); margin-top: 12px; text-align: center; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; } }

/* =============================================================
   17. CTA band
   ============================================================= */
.cta-band {
  position: relative; overflow: hidden; border-radius: 26px; text-align: center;
  padding: clamp(48px, 8vw, 96px) var(--gutter);
  background: var(--grad); color: #1a0e04;
}
.cta-band h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 5vw, 3.6rem); letter-spacing: -.02em; }
.cta-band p { max-width: 48ch; margin: 16px auto 30px; font-size: 1.1rem; color: rgba(26,14,4,.82); }
.cta-band .ring { position: absolute; border-radius: 50%; border: 1.5px solid rgba(26,14,4,.18); pointer-events: none; }
.cta-band .btn-dark { background: #1a0e04; color: var(--cream); }
.cta-band .btn-dark:hover { transform: translateY(-2px); background: #000; }

/* =============================================================
   18. Footer
   ============================================================= */
.footer { background: var(--bg-2); border-top: 1px solid var(--line); padding-block: 70px 40px; position: relative; overflow: hidden; }
.foot-grid { display: grid; gap: 40px; }
.footer .desc { color: var(--cream-2); font-size: 14.5px; max-width: 34ch; margin: 18px 0 24px; }
.foot-col h5 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--cream-3); margin-bottom: 16px; }
.foot-col ul { display: grid; gap: 11px; }
.foot-col a { font-size: 14.5px; color: var(--cream-2); transition: color .3s; }
.foot-col a:hover { color: var(--orange); }
.socials { display: flex; gap: 12px; margin-top: 44px; }
.social-link { display: inline-flex; align-items: center; gap: .5em; padding: 10px 16px; border: 1px solid var(--line); border-radius: 100px; font-size: 13.5px; color: var(--cream-2); transition: all .3s var(--ease-out); }
.social-link:hover { border-color: var(--orange); color: var(--cream); background: rgba(255,122,24,.06); }
.social-link svg.si { width: 16px; height: 16px; }
.social-link svg.ext { width: 12px; height: 12px; opacity: .6; }
.foot-mark { font-family: var(--serif); font-weight: 600; font-size: clamp(60px, 22vw, 260px); line-height: .8; text-align: center; margin-top: 40px; letter-spacing: -.04em; background: linear-gradient(180deg, rgba(244,236,224,.08), transparent); -webkit-background-clip: text; background-clip: text; color: transparent; pointer-events: none; user-select: none; }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding-top: 28px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--cream-3); }
@media (min-width: 720px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; } }

/* =============================================================
   19. WhatsApp FAB
   ============================================================= */
.wa-fab { position: fixed; right: 20px; bottom: 20px; z-index: 160; display: inline-flex; align-items: center; gap: 10px; background: #25d366; color: #05360f; padding: 12px 18px 12px 14px; border-radius: 100px; box-shadow: 0 14px 34px -10px rgba(37,211,102,.6); font-weight: 600; font-size: 14.5px; transition: transform .35s var(--ease-out), box-shadow .35s; }
.wa-fab:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 20px 44px -10px rgba(37,211,102,.75); }
.wa-fab svg { width: 22px; height: 22px; }
.wa-fab .wa-label { display: none; }
@media (min-width: 560px){ .wa-fab .wa-label { display: inline; } }

/* =============================================================
   19b. Cursor personalizado (solo puntero fino; se activa por JS)
   ============================================================= */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 400; pointer-events: none; border-radius: 50%; opacity: 0; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--orange); box-shadow: 0 0 10px rgba(255,122,24,.8); transition: opacity .3s var(--ease-out); }
.cursor-ring {
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 1.5px solid rgba(244,236,224,.55);
  transition: width .28s var(--ease-out), height .28s var(--ease-out), margin .28s var(--ease-out),
              border-color .28s var(--ease-out), background-color .28s var(--ease-out), opacity .3s var(--ease-out);
}
html.cursor-ready .cursor-dot, html.cursor-ready .cursor-ring { opacity: 1; }
.cursor-ring.is-hover {
  width: 58px; height: 58px; margin: -29px 0 0 -29px;
  border-color: rgba(255,122,24,.85); background-color: rgba(255,122,24,.08);
}
.cursor-dot.is-hover { opacity: 0; }
body.has-cursor, body.has-cursor a, body.has-cursor button, body.has-cursor input,
body.has-cursor textarea, body.has-cursor .chip-f, body.has-cursor [data-hover] { cursor: none; }

/* =============================================================
   20. Effects — reveal on scroll
   ============================================================= */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); will-change: opacity, transform; }
.reveal.is-in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
/* Red de seguridad defensiva: split-text nunca invisible */
.reveal[data-split] { opacity: 1; transform: none; }

/* Hero word rise */
.word-rise { display: inline-block; overflow: hidden; vertical-align: bottom; }
.word-rise > span { display: inline-block; transform: translateY(110%); transition: transform .9s var(--ease-out); }
.is-ready .word-rise > span { transform: translateY(0); }

/* View transitions (multipágina) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .5s; animation-timing-function: cubic-bezier(0.16,1,0.3,1); }
::view-transition-old(root) { animation-name: vtOut; }
::view-transition-new(root) { animation-name: vtIn; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(10px); } }

/* =============================================================
   21. Reduced motion — solo lo intrusivo
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-mesh { animation: none; }
  .hero-scroll .line { animation: none; }
  .marquee { animation-duration: 90s; }
  .tms-b { animation: none; }
}
