/* ==========================================================================
   mango — Design Tokens & Base
   ========================================================================== */

:root {
  /* Brand color ramps (from Mango brandbook) */
  --mango-red: #dc281d;
  --mango-orange: #ffa100;
  --mango-yellow: #fdd800;
  --ink: #0a0a0a;
  --ink-soft: #171310;
  --paper: #fdfbf8;
  --paper-dim: #f4efe8;
  --muted: #6b6560;

  --gradient-mango: linear-gradient(45deg, var(--mango-red) 0%, var(--mango-orange) 55%, var(--mango-yellow) 100%);
  --gradient-mango-soft: linear-gradient(135deg, rgba(220,40,29,0.12) 0%, rgba(255,161,0,0.12) 55%, rgba(253,216,0,0.12) 100%);
  --gradient-dark: linear-gradient(180deg, #0a0a0a 0%, #1a1210 100%);

  --font-display: 'Cabinet Grotesk', 'Satoshi', system-ui, sans-serif;
  --font-body: 'Satoshi', system-ui, sans-serif;

  --ease-cinema: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--mango-orange); color: var(--ink); }

.font-display { font-family: var(--font-display); }

body.is-loading { overflow: hidden; }

/* ==========================================================================
   Preloader
   ========================================================================== */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  background: var(--ink);
  transition: opacity 0.7s var(--ease-cinema), visibility 0.7s var(--ease-cinema);
}
body:not(.is-loading) #preloader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-orb {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--mango-orange), transparent 70%);
  opacity: 0.25;
  filter: blur(80px);
  animation: preloader-pulse 2.6s ease-in-out infinite;
}

.preloader-logo {
  position: relative;
  height: 56px;
  width: auto;
  animation: preloader-pulse 2.6s ease-in-out infinite;
}

@keyframes preloader-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.07); opacity: 0.75; }
}

.preloader-bar {
  position: relative;
  width: 160px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  overflow: hidden;
}
.preloader-bar span {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 40%;
  border-radius: 999px;
  background: var(--gradient-mango);
  animation: preloader-sweep 1.3s ease-in-out infinite;
}
@keyframes preloader-sweep {
  0% { left: -40%; }
  100% { left: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .preloader-orb, .preloader-logo, .preloader-bar span { animation: none; }
}

/* ==========================================================================
   Utility: grain / noise overlay for cinematic texture
   ========================================================================== */
.grain {
  position: relative;
}
.grain::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  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' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Gradient text
   ========================================================================== */
.text-gradient-mango {
  background: var(--gradient-mango);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* the yellow end of the brand gradient has low contrast on both light and
     dark backgrounds; a soft dark shadow keeps letterforms feeling solid
     without altering the gradient itself */
  filter: drop-shadow(0 1px 1.5px rgba(0,0,0,0.3));
}

/* ==========================================================================
   Grid paper texture (brand motif — echoes brandbook data aesthetic)
   ========================================================================== */
.bg-grid {
  background-image:
    linear-gradient(rgba(10,10,10,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,10,10,0.05) 1px, transparent 1px);
  background-size: 44px 44px;
}
.bg-grid-dark {
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* ==========================================================================
   Pill buttons
   ========================================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  overflow: hidden;
  transition: transform 0.35s var(--ease-cinema), box-shadow 0.45s var(--ease-cinema), background 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn:active {
  transform: scale(0.95) !important;
  transition-duration: 0.15s;
}
.btn svg {
  position: relative;
  z-index: 1;
  transition: transform 0.45s var(--ease-cinema);
}
.btn:hover svg { transform: translateX(5px); }

/* shine sweep — invites the click */
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,0.55) 50%, transparent 65%);
  transform: translateX(-100%);
  transition: transform 0.85s var(--ease-cinema);
  pointer-events: none;
}
.btn:hover::before { transform: translateX(100%); }
.btn > * { position: relative; z-index: 1; }

.btn-primary {
  background: var(--gradient-mango);
  color: var(--ink);
  box-shadow: 0 8px 30px -8px rgba(220,40,29,0.5);
  animation: btn-pulse 2.6s ease-in-out infinite;
}
.btn-primary:hover {
  animation-play-state: paused;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 42px -8px rgba(255,161,0,0.7);
}
@keyframes btn-pulse {
  0%, 100% { box-shadow: 0 8px 30px -8px rgba(220,40,29,0.5); }
  50% { box-shadow: 0 10px 36px -4px rgba(255,161,0,0.7); }
}

.btn-dark {
  background: var(--ink);
  color: var(--paper);
}
.btn-dark:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 36px -10px rgba(0,0,0,0.5);
}
.btn-outline {
  border: 1.5px solid rgba(10,10,10,0.15);
  color: var(--ink);
}
.btn-outline:hover {
  border-color: var(--ink);
  background: rgba(10,10,10,0.04);
  transform: translateY(-3px);
}
.btn-outline-light {
  border: 1.5px solid rgba(255,255,255,0.25);
  color: var(--paper);
}
.btn-outline-light:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.08);
  transform: translateY(-3px);
}

/* ==========================================================================
   Nav
   ========================================================================== */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s ease, border-color 0.4s ease, padding 0.4s ease;
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
  background: rgba(253,251,248,0.85);
  backdrop-filter: blur(16px);
  border-color: rgba(10,10,10,0.08);
}
.site-nav { color: #fff; }
.site-nav.scrolled { color: var(--ink); }
.nav-link {
  position: relative;
  color: currentColor;
  font-size: 0.92rem;
  font-weight: 500;
  opacity: 0.75;
  transition: opacity 0.25s ease, color 0.4s ease;
}
.nav-link:hover { opacity: 1; }
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--gradient-mango);
  transition: width 0.3s var(--ease-cinema);
}
.nav-link:hover::after { width: 100%; }

/* Servicios dropdown */
.nav-item-dropdown { position: relative; }
.nav-caret {
  display: inline-block;
  margin-left: 0.3rem;
  transition: transform 0.35s var(--ease-cinema);
}
.nav-item-dropdown:hover .nav-caret,
.nav-item-dropdown:focus-within .nav-caret { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  width: 580px;
  max-width: 86vw;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 34px 64px -20px rgba(10,10,10,0.28);
  padding: 1.1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.15rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-cinema), transform 0.35s var(--ease-cinema), visibility 0.35s;
  z-index: 60;
}
.nav-item-dropdown:hover .nav-dropdown,
.nav-item-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  border-radius: 13px;
  color: var(--ink);
  transition: background 0.25s ease;
}
.nav-dropdown-link:hover { background: var(--paper-dim); }
.nav-dropdown-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gradient-mango-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-dropdown-icon svg { width: 18px; height: 18px; stroke: var(--mango-red); }
.nav-dropdown-link strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.2;
}
.nav-dropdown-link small {
  display: block;
  font-size: 0.73rem;
  color: var(--muted);
  margin-top: 0.1rem;
}
.nav-dropdown-all {
  grid-column: 1 / -1;
  margin-top: 0.4rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(10,10,10,0.08);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--mango-red);
  border-radius: 0 0 10px 10px;
}

/* Mobile menu must sit above the fixed header (site-nav is z-index:100) —
   the z-[150] utility class isn't in the precompiled tailwind.css, so it's set here directly. */
#mobileMenu { z-index: 150; }

/* Mobile menu — collapsible "Servicios" submenu */
.mobile-services-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.mobile-services-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.mobile-services-caret {
  transition: transform 0.35s var(--ease-cinema, ease);
  flex-shrink: 0;
}
.mobile-services-wrap.is-open .mobile-services-caret { transform: rotate(180deg); }
.mobile-services-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.45s var(--ease-cinema, ease), opacity 0.35s ease, margin-top 0.45s ease;
}
.mobile-services-wrap.is-open .mobile-services-panel {
  max-height: 32rem;
  opacity: 1;
  margin-top: 1.1rem;
}
.mobile-sublink {
  font-size: 1.05rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  padding: 0.55rem 0;
  transition: color 0.25s ease;
}
.mobile-sublink:hover { color: #fff; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}
.hero-orb--1 {
  width: 620px; height: 620px;
  right: -160px; top: -120px;
  background: radial-gradient(circle at 30% 30%, var(--mango-yellow), var(--mango-orange) 55%, transparent 75%);
}
.hero-orb--2 {
  width: 480px; height: 480px;
  right: 8%; bottom: -180px;
  background: radial-gradient(circle at 50% 50%, var(--mango-red), transparent 70%);
  opacity: 0.4;
}

.hero-bg-word {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(6rem, 22vw, 20rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.08);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.92;
  font-size: clamp(2.75rem, 7vw, 6.2rem);
}

.hero-portrait-frame {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
}
.hero-portrait-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 8s var(--ease-cinema);
}
.hero-portrait-frame:hover img { transform: scale(1.06); }
.hero-portrait-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.55) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero-portrait-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: var(--gradient-mango);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 2;
  pointer-events: none;
  opacity: 0.7;
}

/* Cutout variant: transparent-background subject floating over the hero, no card/border */
.hero-portrait-frame.cutout {
  border-radius: 0;
  overflow: visible;
}
.hero-portrait-frame.cutout::before,
.hero-portrait-frame.cutout::after {
  content: none;
}
.hero-portrait-frame.cutout img {
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 40px 50px rgba(0,0,0,0.6)) drop-shadow(0 0 60px rgba(255,161,0,0.2));
}

.portrait-glow {
  position: absolute;
  inset: -10%;
  z-index: -1;
  background: radial-gradient(circle at 55% 40%, rgba(255,161,0,0.35), rgba(220,40,29,0.15) 45%, transparent 72%);
  filter: blur(50px);
  pointer-events: none;
}

/* floating stat chips over the hero portrait */
.stat-chip {
  position: absolute;
  z-index: 3;
  backdrop-filter: blur(14px);
  background: rgba(10,10,10,0.55);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  padding: 0.85rem 1.1rem;
  animation: float 6s ease-in-out infinite;
  box-shadow: 0 20px 40px -12px rgba(0,0,0,0.5);
}
.stat-chip .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1;
  background: var(--gradient-mango);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-chip .label {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-top: 2px;
}

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

.scroll-cue {
  position: absolute;
  bottom: 2.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255,255,255,0.55);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.scroll-cue .line {
  width: 1px; height: 34px;
  background: linear-gradient(180deg, rgba(255,255,255,0.7), transparent);
  animation: scrollpulse 2s ease-in-out infinite;
}
@keyframes scrollpulse {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* photo band closing out a hero — distinct from the split
   headline+portrait layout used on the homepage. The band stays full-width
   and dark for atmosphere, but the photo itself is contained (never cropped)
   since we don't yet know the aspect ratio of the final image. */
.hero-photo-band {
  position: relative;
  width: 100%;
  height: clamp(380px, 62vh, 680px);
  overflow: hidden;
  background: var(--ink);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.hero-photo-band img {
  height: 100%;
  width: auto;
  max-width: min(92%, 520px);
  object-fit: contain;
  object-position: bottom center;
  filter: saturate(0.94);
}

/* ==========================================================================
   Clientes seleccionados
   ========================================================================== */
.accent-dash {
  width: 52px;
  height: 3px;
  border-radius: 2px;
  background: var(--gradient-mango);
  margin-bottom: 1.1rem;
}
.client-heading {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.client-row {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}

.client-track {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  width: max-content;
  animation-name: client-marquee;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-duration: 46s;
}
.client-row:hover .client-track { animation-play-state: paused; }

@keyframes client-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(var(--marquee-shift, -50%)); }
}

.client-card {
  position: relative;
  flex: 0 0 clamp(168px, 20vw, 250px);
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  background: var(--gradient-mango);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.25rem;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.5s var(--ease-cinema), background 0.55s var(--ease-cinema), box-shadow 0.5s var(--ease-cinema);
}

/* shine sweep */
.client-card::before {
  content: '';
  position: absolute;
  top: -60%; left: -70%;
  width: 45%; height: 220%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.65), transparent);
  transform: rotate(20deg) translateX(-140%);
  transition: transform 0.85s var(--ease-cinema);
  z-index: 2;
  pointer-events: none;
}

/* gradient ring, revealed on hover once the card turns white */
.client-card::after {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: inherit;
  padding: 1.5px;
  background: var(--gradient-mango);
  opacity: 0;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.client-card:hover,
.client-card.is-active {
  background: #fff;
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 30px 60px -18px rgba(220,40,29,0.4), 0 0 40px -8px rgba(255,161,0,0.35);
}
.client-card:hover::before,
.client-card.is-active::before {
  transform: rotate(20deg) translateX(340%);
}
.client-card:hover::after,
.client-card.is-active::after {
  opacity: 1;
}

.client-card img {
  position: relative;
  z-index: 3;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: filter 0.5s var(--ease-cinema), transform 0.5s var(--ease-cinema);
}
.client-card:hover img,
.client-card.is-active img {
  filter: invert(1);
  transform: scale(1.06);
}

.client-divider {
  flex: 0 0 1px;
  width: 1px;
  height: calc(clamp(168px, 20vw, 250px) + 3rem);
  border-left: 1px dashed rgba(10,10,10,0.18);
}

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease-cinema), transform 0.9s var(--ease-cinema);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal="scale"] { transform: scale(0.94); }
[data-reveal="scale"].is-visible { transform: scale(1); }

/* Word-split headline reveal — the "wow" moment for section titles */
[data-text-reveal] {
  overflow: visible;
}
.reveal-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.reveal-word-inner {
  display: inline-block;
  transform: translateY(115%) rotate(6deg);
  opacity: 0;
  filter: blur(8px);
  transition: transform 1.3s var(--ease-cinema), opacity 0.95s ease, filter 1.1s ease;
  will-change: transform, opacity, filter;
}
[data-text-reveal].is-visible .reveal-word-inner {
  transform: translateY(0) rotate(0deg);
  opacity: 1;
  filter: blur(0);
}

/* ==========================================================================
   Section labels
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gradient-mango);
}

/* ==========================================================================
   Service cards
   ========================================================================== */
.service-card {
  position: relative;
  border-radius: 24px;
  padding: 2.25rem;
  background: #fff;
  border: 1px solid rgba(10,10,10,0.08);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.6s var(--ease-cinema), box-shadow 0.6s var(--ease-cinema),
              border-color 0.6s ease, background 0.6s var(--ease-cinema);
}
.service-card > * {
  position: relative;
  z-index: 1;
}

/* giant ghost icon — texture revealed on hover */
.service-card .service-icon-ghost {
  position: absolute;
  right: -1.75rem;
  bottom: -1.75rem;
  z-index: 0;
  width: 180px;
  height: 180px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(20px) rotate(-8deg) scale(0.9);
  transition: opacity 0.6s ease, transform 0.7s var(--ease-cinema);
}
.service-card .service-icon-ghost svg {
  width: 100%;
  height: 100%;
  stroke: #fff;
  stroke-width: 1.1;
}
.service-card:hover .service-icon-ghost,
.service-card.is-active .service-icon-ghost {
  opacity: 0.16;
  transform: translateY(0) rotate(0deg) scale(1);
}

.service-card:hover, .service-card.is-active {
  transform: translateY(-10px);
  border-color: transparent;
}
.service-card:nth-child(odd):hover,
.service-card:nth-child(odd).is-active {
  background: var(--gradient-mango);
  box-shadow: 0 34px 64px -20px rgba(220,40,29,0.45);
}
.service-card:nth-child(even):hover,
.service-card:nth-child(even).is-active {
  background: var(--ink);
  box-shadow: 0 34px 64px -20px rgba(0,0,0,0.55), 0 0 70px -16px rgba(255,161,0,0.35);
}

@media (max-width: 639px) {
  .service-card .service-icon-ghost {
    width: 120px;
    height: 120px;
    right: -1rem;
    bottom: -1rem;
  }
}

.service-card:hover h3,
.service-card.is-active h3 { color: #fff; }
.service-card:hover p,
.service-card.is-active p { color: rgba(255,255,255,0.82); }

.service-card .service-index {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--mango-orange);
  letter-spacing: 0.05em;
  transition: color 0.5s ease;
}
.service-card:hover .service-index,
.service-card.is-active .service-index { color: rgba(255,255,255,0.75); }

.service-card .service-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient-mango-soft);
  margin-bottom: 1.5rem;
  transition: background 0.5s ease, transform 0.5s var(--ease-cinema);
}
.service-card:hover .service-icon,
.service-card.is-active .service-icon {
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  transform: rotate(-6deg) scale(1.08);
}
.service-card:hover .service-icon svg,
.service-card.is-active .service-icon svg { stroke: #fff; }
.service-card .service-icon svg {
  width: 26px; height: 26px;
  stroke: var(--mango-red);
  transition: stroke 0.4s ease;
}
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  transition: gap 0.3s ease, color 0.3s ease;
}
.arrow-link:hover { gap: 0.65rem; }
.service-card .arrow-link {
  margin-top: 1.25rem;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.4s ease;
}
.service-card:hover .arrow-link,
.service-card.is-active .arrow-link {
  opacity: 1;
  transform: translateX(0);
  color: #fff !important;
}

/* featured card — breaks the flat, uniform grid on desktop */
@media (min-width: 640px) {
  .service-card--featured {
    padding: 3rem;
  }
  .service-card--featured .service-icon {
    width: 66px; height: 66px;
    border-radius: 18px;
  }
  .service-card--featured .service-icon svg { width: 32px; height: 32px; }
  .service-card--featured .service-icon-ghost { width: 240px; height: 240px; }
}

/* ==========================================================================
   Service detail rows (servicios.html)
   ========================================================================== */
.service-jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}
.service-jump-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  background: var(--gradient-mango-soft);
  border: 1px solid rgba(220,40,29,0.2);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 6px 18px -10px rgba(220,40,29,0.35);
  transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease,
              transform 0.4s var(--ease-cinema), box-shadow 0.4s var(--ease-cinema);
}
.service-jump-link::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,0.65) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.85s var(--ease-cinema);
}
.service-jump-link .jump-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient-mango);
  flex-shrink: 0;
  transition: background 0.4s ease, transform 0.4s var(--ease-cinema);
}
.service-jump-link:hover {
  background: var(--gradient-mango);
  border-color: transparent;
  color: #fff;
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 20px 38px -12px rgba(220,40,29,0.55);
}
.service-jump-link:hover::before { transform: translateX(120%); }
.service-jump-link:hover .jump-dot {
  background: #fff;
  transform: scale(1.4);
}
.service-jump-link:active {
  transform: scale(0.94);
  transition-duration: 0.15s;
}

.service-detail {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  border-top: 1px solid rgba(10,10,10,0.08);
}
.service-detail-visual {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: 28px;
  background: var(--paper-dim);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-detail-ghost-index {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(7rem, 20vw, 13rem);
  line-height: 1;
  color: rgba(10,10,10,0.045);
  user-select: none;
  pointer-events: none;
}
.service-detail-icon {
  position: relative;
  width: clamp(100px, 13vw, 156px);
  height: clamp(100px, 13vw, 156px);
  border-radius: 50%;
  background: var(--gradient-mango-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.6s var(--ease-cinema);
}
.service-detail-visual:hover .service-detail-icon {
  transform: scale(1.06) rotate(-5deg);
}
.service-detail-icon svg {
  width: 42%;
  height: 42%;
  stroke: var(--mango-red);
  stroke-width: 1.3;
}
.service-feature-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.75rem;
}
.service-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--muted);
  line-height: 1.5;
}
.service-feature-list li svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
  stroke: var(--mango-orange);
}

/* ==========================================================================
   Stats / results (data-driven concept)
   ========================================================================== */
.stat-block .stat-number {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: clamp(2.75rem, 5vw, 4.5rem);
  line-height: 1;
}
.stat-block .stat-number.count-pop {
  animation: stat-pop 0.55s var(--ease-cinema);
}
@keyframes stat-pop {
  0% { transform: scale(1); }
  35% { transform: scale(1.16); }
  100% { transform: scale(1); }
}

/* ==========================================================================
   Sobre nosotros — data motif panel + wordmark card
   ========================================================================== */
.data-motif-panel {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 460px;
  margin: 0 auto;
}
.data-motif-blob {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,161,0,0.16), rgba(220,40,29,0.07) 55%, transparent 75%);
  filter: blur(4px);
}
.data-motif-card {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 128px; height: 128px;
  border-radius: 30px;
  background: #fff;
  border: 1px solid rgba(10,10,10,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 34px 64px -20px rgba(220,40,29,0.28);
}
.data-motif-icon { width: 56px; height: 56px; }

.data-motif {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 800;
  background: var(--gradient-mango);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.9;
  animation: float 6.5s ease-in-out infinite;
  user-select: none;
  pointer-events: none;
}

.wordmark-card {
  position: relative;
  border-radius: 28px;
  background: var(--ink);
  padding: 3rem 2.5rem;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.wordmark-eyebrow {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1rem;
}
.wordmark-text {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 0.95;
  color: #fff;
  letter-spacing: -0.02em;
}

/* Client-logo watermark collage — fades in and out like magic */
.wordmark-collage {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.wordmark-collage img {
  position: absolute;
  top: var(--top, 20%);
  right: var(--right, 20%);
  width: var(--w, 120px);
  height: auto;
  opacity: 0;
  filter: blur(10px);
  transform: scale(0.8) rotate(var(--rot, 0deg));
  animation: collage-fade 9s ease-in-out infinite;
}
@media (max-width: 767px) {
  .wordmark-collage img {
    width: min(var(--w, 120px), 78px);
  }
}
@keyframes collage-fade {
  0%, 88%, 100% {
    opacity: 0;
    filter: blur(10px);
    transform: scale(0.8) rotate(var(--rot, 0deg));
  }
  18%, 55% {
    opacity: var(--peak, 0.14);
    filter: blur(0);
    transform: scale(1) rotate(var(--rot, 0deg));
  }
  75% {
    opacity: 0;
    filter: blur(6px);
  }
}

/* ==========================================================================
   Por qué mango — diferenciadores
   ========================================================================== */
.diff-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.diff-icon {
  flex: 0 0 48px;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--gradient-mango-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.45s ease, transform 0.45s var(--ease-cinema);
}
.diff-icon svg {
  width: 22px; height: 22px;
  stroke: var(--mango-red);
  transition: stroke 0.4s ease;
}
.diff-item:hover .diff-icon {
  background: var(--gradient-mango);
  transform: scale(1.08) rotate(-4deg);
}
.diff-item:hover .diff-icon svg { stroke: #fff; }

/* ==========================================================================
   Work / portfolio cards
   ========================================================================== */
.work-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4/5;
  cursor: pointer;
}
.work-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-cinema), filter 0.6s ease;
  filter: saturate(0.85);
}
.work-card:hover img { transform: scale(1.08); filter: saturate(1.05); }
.work-card .work-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  color: #fff;
}
.work-card .work-tag {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}
.work-card .work-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
}
.work-card .work-arrow {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  transform: rotate(-45deg) scale(0.8);
  opacity: 0;
  transition: all 0.4s var(--ease-cinema);
}
.work-card:hover .work-arrow { opacity: 1; transform: rotate(0deg) scale(1); background: var(--gradient-mango); }

/* graphic variant — no photo, used when there's no fitting case-study image */
.work-card--graphic {
  display: flex;
  transition: transform 0.6s var(--ease-cinema), box-shadow 0.6s var(--ease-cinema);
}
.work-card--graphic.gradient { background: var(--gradient-mango); }
.work-card--graphic.dark { background: var(--ink); }
.work-card--graphic:hover {
  transform: translateY(-8px);
  box-shadow: 0 34px 64px -18px rgba(220,40,29,0.4);
}
.work-card-ghost {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.work-card-ghost svg {
  width: 46%;
  height: 46%;
  stroke: rgba(255,255,255,0.28);
  stroke-width: 1;
  transition: transform 0.7s var(--ease-cinema), stroke 0.5s ease;
}
.work-card--graphic:hover .work-card-ghost svg {
  transform: scale(1.08) rotate(-4deg);
  stroke: rgba(255,255,255,0.4);
}
.work-card--graphic .work-overlay {
  background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,0.65) 100%);
}

/* ==========================================================================
   Process steps — stacking sticky cards
   ========================================================================== */
.process-intro {
  align-self: start;
}
@media (min-width: 1024px) {
  .process-intro {
    position: sticky;
    top: 160px;
  }
}

.stack-col {
  display: flex;
  flex-direction: column;
}

.stack-card {
  position: sticky;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(10,10,10,0.07);
  padding: 2.5rem;
  box-shadow: 0 24px 50px -24px rgba(10,10,10,0.18);
  margin-bottom: 2.5rem;
  transition: transform 0.5s var(--ease-cinema), opacity 0.5s ease, box-shadow 0.5s ease;
}
.stack-card:last-child { margin-bottom: 0; }
.stack-card:nth-child(1) { top: 120px; z-index: 1; }
.stack-card:nth-child(2) { top: 148px; z-index: 2; }
.stack-card:nth-child(3) { top: 176px; z-index: 3; }
.stack-card:nth-child(4) { top: 204px; z-index: 4; }

.stack-card.is-stacked {
  transform: scale(0.96);
  opacity: 0.6;
  box-shadow: 0 14px 30px -18px rgba(10,10,10,0.15);
}

.stack-card .step-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--mango-orange);
  margin-bottom: 0.75rem;
}

/* ==========================================================================
   Testimonial
   ========================================================================== */
.testimonial-quote {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  font-size: clamp(1.5rem, 3.2vw, 2.75rem);
}

.testimonial-slider {
  display: grid;
}
.testimonial-slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.9s ease, transform 0.9s var(--ease-cinema), visibility 0s linear 0.9s;
  pointer-events: none;
}
.testimonial-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.9s ease, transform 0.9s var(--ease-cinema), visibility 0s linear 0s;
  pointer-events: auto;
}

.testimonial-avatar-placeholder {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gradient-mango);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 2.5rem;
}
.testimonial-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(10,10,10,0.15);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.4s ease, transform 0.4s var(--ease-cinema), width 0.4s ease;
}
.testimonial-dot:hover { background: rgba(10,10,10,0.3); }
.testimonial-dot.is-active {
  width: 26px;
  border-radius: 999px;
  background: var(--gradient-mango);
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer-link {
  color: rgba(255,255,255,0.6);
  transition: color 0.25s ease;
  font-size: 0.92rem;
}
.footer-link:hover { color: #fff; }

.footer-social {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease, transform 0.35s var(--ease-cinema);
}
.footer-social:hover {
  background: var(--gradient-mango);
  border-color: transparent;
  color: var(--ink);
  transform: translateY(-3px);
}

.footer-signature {
  position: relative;
  overflow-x: hidden;
  overflow-y: visible;
}

.footer-wordmark-link {
  display: block;
  position: relative;
  z-index: 1;
  text-align: center;
  text-decoration: none;
  padding: 1.5rem 0 1.75rem;
  cursor: pointer;
}
.footer-wordmark {
  display: inline-block;
  width: clamp(200px, 42vw, 560px);
  height: auto;
  transition: transform 0.6s var(--ease-cinema), filter 0.6s ease;
}
.footer-wordmark-link:hover .footer-wordmark {
  transform: scale(1.03) translateY(-4px);
  filter: drop-shadow(0 20px 50px rgba(255,161,0,0.35));
}

/* ==========================================================================
   Custom cursor: precise dot + trailing light halo (desktop only)
   ========================================================================== */
@media (min-width: 1024px) {
  .cursor-dot {
    position: fixed;
    top: 0; left: 0;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: #fff;
    pointer-events: none;
    z-index: 201;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 12px 2px rgba(255,161,0,0.7);
    transition: width 0.3s var(--ease-cinema), height 0.3s var(--ease-cinema);
  }
  .cursor-dot.is-hovering {
    width: 14px;
    height: 14px;
  }

  .cursor-halo {
    position: fixed;
    top: 0; left: 0;
    width: 54px; height: 54px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 199;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255,161,0,0.55) 0%, rgba(220,40,29,0.28) 45%, transparent 75%);
    filter: blur(10px);
    opacity: 0;
    transition: width 0.55s var(--ease-cinema), height 0.55s var(--ease-cinema), opacity 0.4s ease;
  }
  .cursor-halo.is-active { opacity: 0.8; }
  .cursor-halo.is-hovering {
    width: 110px;
    height: 110px;
    opacity: 1;
  }
}

/* ==========================================================================
   Ambient spotlight — cursor-driven glow in dark sections
   ========================================================================== */
.spotlight-section { position: relative; }
.spotlight-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(650px circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(255,161,0,0.16), rgba(220,40,29,0.08) 38%, transparent 65%);
  opacity: 0;
  transition: opacity 0.6s ease;
}
.spotlight-section.spot-active::before {
  opacity: 1;
}

/* ==========================================================================
   Mango page — stats band, team cards, contact form
   ========================================================================== */
.culture-item { cursor: default; }
.culture-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-mango-soft);
  transition: background 0.45s ease, transform 0.5s var(--ease-cinema), box-shadow 0.45s ease;
}
.culture-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--mango-red);
  transition: stroke 0.4s ease;
}
.culture-item:hover .culture-icon {
  background: var(--gradient-mango);
  transform: scale(1.12) rotate(-8deg);
  box-shadow: 0 16px 34px -12px rgba(220,40,29,0.5);
}
.culture-item:hover .culture-icon svg { stroke: #fff; }

.stats-band {
  position: relative;
  border-radius: 28px;
  background: var(--gradient-mango);
  padding: 3rem 2.5rem;
  overflow: hidden;
  display: grid;
  gap: 2.5rem;
}
.stats-band .stat-block .stat-number {
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
  background: none;
}
.stats-band .stat-block p {
  color: rgba(10,10,10,0.65);
}

.team-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(10,10,10,0.07);
  isolation: isolate;
  transition: transform 0.6s var(--ease-cinema), box-shadow 0.6s var(--ease-cinema);
}
.team-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  padding: 2px;
  background: var(--gradient-mango);
  opacity: 0;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 34px 64px -20px rgba(220,40,29,0.3);
}
.team-card:hover::before { opacity: 1; }

/* photo lives on its own light panel — these photos have opaque white
   backgrounds, so fighting that with a colored panel just hides them */
.team-photo-panel {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--paper-dim);
  overflow: hidden;
}
.team-photo-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 1.1s var(--ease-cinema);
}
.team-card:hover .team-photo-panel img { transform: scale(1.06); }

/* name + role get their own strip so they're always legible */
.team-name-tag {
  position: relative;
  z-index: 1;
  padding: 1.1rem 1.5rem;
  color: #fff;
  transition: background 0.5s ease;
}
.team-card:nth-child(odd) .team-name-tag { background: var(--gradient-mango); }
.team-card:nth-child(even) .team-name-tag { background: var(--ink); }
.team-name-tag .name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  display: block;
}
.team-name-tag .role {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
}
.team-card .team-bio {
  position: relative;
  z-index: 1;
  padding: 1.5rem 1.5rem 1.75rem;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.94rem;
}

/* Contact form */
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border-radius: 14px;
  border: 1.5px solid rgba(10,10,10,0.12);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--mango-orange);
  box-shadow: 0 0 0 4px rgba(255,161,0,0.15);
}
.form-field textarea { resize: vertical; min-height: 120px; }

.meet-panel {
  border-radius: 24px;
  background: var(--ink);
  padding: 2.75rem;
  position: relative;
  overflow: hidden;
}
.meet-panel--compact { padding: 2rem; }

/* ==========================================================================
   Landing page — lead form card (bright card floating on the dark hero)
   ========================================================================== */
.lp-form-card {
  position: relative;
  background: var(--paper);
  border-radius: 28px;
  padding: 2.25rem;
  box-shadow: 0 50px 90px -24px rgba(0,0,0,0.55), 0 0 0 1px rgba(10,10,10,0.04);
}
.lp-form-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: var(--gradient-mango);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.6;
  pointer-events: none;
}
.lp-form-card h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  color: var(--ink);
}

/* Landing page — trust row (small icon badges under the hero copy) */
.lp-trust-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 1rem;
}
@media (min-width: 640px) {
  .lp-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
  }
}
.lp-trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .lp-trust-item {
    padding: 0 1.25rem;
    border-left: 1px solid rgba(255,255,255,0.15);
  }
  .lp-trust-item:first-child {
    padding-left: 0;
    border-left: none;
  }
}
.lp-trust-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.35);
  background: var(--gradient-mango-soft);
  box-shadow: 0 0 0 0 rgba(255,161,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.45s ease, transform 0.5s var(--ease-cinema), box-shadow 0.45s ease, border-color 0.45s ease;
}
.lp-trust-icon svg {
  width: 16px;
  height: 16px;
  stroke: #fff;
  transition: stroke 0.4s ease;
}
.lp-trust-item:hover .lp-trust-icon {
  background: var(--gradient-mango);
  border-color: transparent;
  transform: scale(1.15) rotate(-8deg);
  box-shadow: 0 10px 22px -8px rgba(220,40,29,0.55);
}
.lp-trust-item span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.25;
}

/* Landing page — thank-you page success icon */
.lp-success-icon {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--gradient-mango);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  box-shadow: 0 20px 44px -12px rgba(220,40,29,0.55);
  animation: btn-pulse 2.6s ease-in-out infinite;
}
.lp-success-icon svg {
  width: 38px;
  height: 38px;
}

/* Landing page — "qué necesita tu marketing" icon columns */
.lp-need-item {
  padding-left: 0;
}
@media (min-width: 1024px) {
  .lp-need-item {
    border-left: 1px solid rgba(255,255,255,0.12);
    padding-left: 1.75rem;
  }
  .lp-need-item:first-child {
    border-left: none;
    padding-left: 0;
  }
}
.lp-need-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 1.25rem;
}
.lp-need-item h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}
.lp-need-item p {
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.55);
}

/* Landing page — flat service cards (calmer than .service-card, no hover-flip) */
.lp-service-card {
  background: #fff;
  border: 1px solid rgba(10,10,10,0.08);
  border-radius: 20px;
  padding: 1.75rem 1.5rem;
  transition: transform 0.4s var(--ease-cinema), box-shadow 0.4s var(--ease-cinema), border-color 0.4s ease;
}
.lp-service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -18px rgba(10,10,10,0.16);
  border-color: transparent;
}
.lp-service-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--gradient-mango-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.lp-service-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--mango-red);
}
.lp-service-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}
.lp-service-sub {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--mango-red);
  margin-bottom: 0.6rem;
}
.lp-service-card p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
}

/* Landing page — split diff panel (dark photo + light content, reuses site imagery) */
.lp-diff-panel {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid rgba(10,10,10,0.08);
}
@media (min-width: 1024px) {
  .lp-diff-panel {
    grid-template-columns: 0.42fr 1.58fr;
  }
}
.lp-diff-photo {
  position: relative;
  background: var(--ink);
  min-height: 280px;
}
.lp-diff-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.lp-diff-content {
  background: var(--paper-dim);
  padding: 2.5rem 1.75rem;
}
@media (min-width: 768px) {
  .lp-diff-content { padding: 3.5rem; }
}

/* Landing page — final CTA, full-bleed band (photo + dark content, edge to edge) */
.lp-cta-band {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .lp-cta-band {
    grid-template-columns: 0.62fr 1.38fr;
  }
}
.lp-cta-band .lp-diff-photo {
  min-height: clamp(320px, 55vw, 620px);
}
.lp-cta-band .lp-diff-photo img {
  object-fit: contain;
}
.lp-cta-band .lp-diff-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, var(--ink) 100%);
}
@media (min-width: 1024px) {
  .lp-cta-band .lp-diff-photo {
    min-height: clamp(480px, 42vw, 640px);
  }
  .lp-cta-band .lp-diff-photo::after {
    background: linear-gradient(90deg, transparent 55%, var(--ink) 100%);
  }
}
.lp-cta-content {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Landing page — sticky header CTA (appears once you scroll past the hero) */
.lp-nav-cta {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  font-size: 0.85rem;
  padding: 0.6rem 1.1rem !important;
  opacity: 0;
  transform: translateY(-50%) translateX(10px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s var(--ease-cinema);
}
@media (min-width: 768px) {
  .lp-nav-cta { right: 2.5rem; padding: 0.75rem 1.5rem !important; }
}
.lp-nav-cta.is-visible {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
  pointer-events: auto;
}

/* Map embed */
.map-frame {
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 21 / 9;
  filter: grayscale(1) contrast(1.05);
  transition: filter 0.7s ease;
  border: 1px solid rgba(10,10,10,0.08);
}
.map-frame:hover { filter: grayscale(0); }
.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ==========================================================================
   Breadcrumb (single-service pages)
   ========================================================================== */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}
.breadcrumb a { color: rgba(255,255,255,0.65); transition: color 0.3s ease; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: rgba(255,255,255,0.3); }

/* ==========================================================================
   Case cards (featured work on single-service pages)
   ========================================================================== */
.case-card {
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(10,10,10,0.08);
  overflow: hidden;
  transition: transform 0.5s var(--ease-cinema), box-shadow 0.5s var(--ease-cinema), border-color 0.5s ease;
}
.case-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -24px rgba(10,10,10,0.2);
  border-color: transparent;
}
.case-browser {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--paper-dim);
}
.case-browser-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 0.9rem;
  background: #fff;
  border-bottom: 1px solid rgba(10,10,10,0.08);
}
.case-browser-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.case-browser-url {
  flex: 1;
  margin-left: 0.4rem;
  font-size: 0.7rem;
  color: var(--muted);
  background: var(--paper-dim);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.case-browser-preview {
  position: absolute;
  inset: 0;
  top: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-mango-soft);
}
.case-browser.no-chrome .case-browser-preview { top: 0; }
.case-browser.portrait-phone { aspect-ratio: 738 / 1465; }

/* Brand showcase (Branding page) — mosaic of real deliverables per client */
.brand-visuals {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
  background: var(--paper-dim);
}
.brand-tile { overflow: hidden; border-radius: 10px; background: #fff; cursor: zoom-in; }
.brand-tile img { width: 100%; height: auto; display: block; transition: transform 0.5s var(--ease-cinema); }
.brand-tile:hover img { transform: scale(1.02); }

/* Brand image lightbox */
.brand-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10,10,10,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vh 5vw;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.brand-lightbox.is-open { opacity: 1; pointer-events: auto; }
.brand-lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}
.brand-lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease;
}
.brand-lightbox-close:hover { background: rgba(255,255,255,0.2); }
.case-browser-preview svg {
  width: 26%;
  height: 26%;
  stroke: var(--mango-red);
  opacity: 0.45;
}
.case-browser-preview .case-preview-label {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.75;
  white-space: nowrap;
}
.case-browser-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Results card: for services (Google Ads, Meta Ads...) where a live screenshot
   isn't appropriate — a designed stat visual instead of "vista previa próximamente" */
.case-result-card {
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.5rem;
}
.case-result-card .case-result-chart {
  width: 62%;
  height: auto;
  opacity: 1;
}
.case-result-stat {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.9rem;
  letter-spacing: -0.01em;
  color: var(--mango-red);
  line-height: 1;
}
.case-result-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #fff;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(10,10,10,0.08);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.case-body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }
.case-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mango-red);
  margin-bottom: 0.6rem;
}
.case-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 1.1rem;
}
.case-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
  margin-top: auto;
}
.case-feature {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper-dim);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
}
.case-feature svg {
  width: 13px;
  height: 13px;
  stroke: var(--mango-orange);
  flex-shrink: 0;
}
.case-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  opacity: 0.7;
}
.case-link.is-live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--mango-red);
  opacity: 1;
  transition: gap 0.25s ease;
}
.case-link.is-live:hover { gap: 0.55rem; }
.case-link.is-live svg { flex-shrink: 0; }

/* ==========================================================================
   Blog
   ========================================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 2rem;
}
@media (min-width: 640px) {
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(10,10,10,0.08);
  text-decoration: none;
  color: inherit;
  transition: transform 0.4s var(--ease-cinema), box-shadow 0.4s var(--ease-cinema);
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(10,10,10,0.1);
}
.blog-card-cover {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--gradient-mango);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.blog-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-card-cover svg {
  width: 34%;
  height: 34%;
  stroke: rgba(10,10,10,0.85);
  opacity: 0.9;
}
.blog-card-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.28), transparent 55%);
  pointer-events: none;
}
.blog-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
}
.blog-card-category {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mango-red);
  margin-bottom: 0.75rem;
}
.blog-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.3;
  margin-bottom: 0.6rem;
}
.blog-card-excerpt {
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}
.blog-card-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--muted);
  padding-top: 1rem;
  border-top: 1px solid rgba(10,10,10,0.08);
}
.blog-card-meta .dot { opacity: 0.5; }

/* Single post */
.post-cover {
  aspect-ratio: 21/9;
  border-radius: 24px;
  overflow: hidden;
  background: var(--gradient-mango);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-cover svg {
  width: 22%;
  height: 22%;
  stroke: rgba(10,10,10,0.85);
  opacity: 0.9;
}
.post-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.post-meta-row .dot { opacity: 0.5; }

.post-article {
  max-width: 46rem;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 1.08rem;
  color: var(--ink);
}
.post-article p { margin: 0 0 1.5rem; }
.post-article h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  margin: 2.5rem 0 1.1rem;
}
.post-article h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  margin: 2rem 0 0.9rem;
}
.post-article ul {
  margin: 0 0 1.5rem;
  padding-left: 1.4rem;
}
.post-article li { margin-bottom: 0.6rem; }
.post-article blockquote {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  border-left: 4px solid var(--mango-orange);
  background: var(--paper-dim);
  border-radius: 0 16px 16px 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  font-style: normal;
}
.post-share {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.post-tag-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper-dim);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
}

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 140;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(10,10,10,0.28);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 16px 36px rgba(10,10,10,0.32);
}
.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}
.whatsapp-float-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  opacity: 0.55;
  animation: whatsapp-pulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes whatsapp-pulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.7); opacity: 0; }
}
@media (max-width: 640px) {
  .whatsapp-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
}

.contact-info-link {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.25s ease;
}
.contact-info-link:hover { color: var(--mango-red); }

