:root {
  /* Pantone 8487 C — RGB 137 213 78 */
  --teal:     #89d54e;
  --teal-dim: #6fb238;
  --black:    #0a0a0a;
  --dark:     #111111;
  --mid:      #1c1c1c;
  --light:    #f5f5f2;
  --muted:    #888888;
  --white:    #ffffff;
  /* Primaria: Aqua Grotesque (cuerpo, nav, labels) | Secundaria: Globe Grotesk Display (títulos display) */
  --font-display: 'Globe Grotesk Display', 'Aqua Grotesque', 'Arial Narrow', sans-serif;
  --font-body:    'Aqua Grotesque', 'Globe Grotesk Display', 'Helvetica Neue', Arial, sans-serif;
}

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

body {
  background: #0e0e0e;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

/* ─── SECTION LABELS ─── */
.proposal-label {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--teal);
  color: var(--black);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 8px 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.proposal-label .badge {
  background: var(--black);
  color: var(--teal);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 11px;
}

/* ══════════════════════════════════
   1. HERO SECTION
══════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--black);
}

/* Grain overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
  background-size: 200px;
  opacity: .35;
  pointer-events: none;
  z-index: 1;
}

/* Teal gradient line at bottom */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  z-index: 2;
}

.hero-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(160px, 22vw, 340px);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.04);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
  letter-spacing: -.02em;
}

.hero-inner {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 0 32px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 28px;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--teal);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(72px, 10vw, 140px);
  font-weight: 800;
  line-height: .92;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 8px;
}
.hero-title .accent {
  color: var(--teal);
  display: block;
}
.hero-title .outline {
  -webkit-text-stroke: 2px var(--white);
  color: transparent;
}

/* Marca vectorial oficial (megafon/brand) */
.hero-title.hero-title--brand {
  font-size: 0;
  line-height: 0;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
}
.hero-brand-logo {
  width: 100%;
  max-width: min(92vw, 680px);
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Hero: transición blanco → verde con desplazamiento SVG (hover / focus) */
.hero-brand-morph {
  position: relative;
  display: block;
  width: 100%;
  max-width: min(92vw, 680px);
  margin: 0 auto;
  cursor: default;
  outline: none;
}
.hero-brand-morph:focus-visible {
  border-radius: 4px;
  box-shadow: 0 0 0 3px rgba(137, 213, 78, 0.45);
}
.hero-brand-morph__layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: min(92vw, 680px);
  height: auto;
  margin: 0 auto;
  display: block;
}
/* Capa base en flujo: sin transform (evita desalineación del filtro SVG en la capa glitch) */
.hero-brand-morph__final {
  position: relative;
  z-index: 1;
  top: auto;
  left: auto;
  right: auto;
  transform: none;
  transition: filter 0.45s ease;
  filter: drop-shadow(0 0 0 transparent);
}
.hero-brand-morph:hover .hero-brand-morph__final,
.hero-brand-morph:focus-visible .hero-brand-morph__final {
  filter:
    drop-shadow(0.85px -0.25px 0.5px rgba(255, 75, 95, 0.32))
    drop-shadow(-0.85px 0.25px 0.5px rgba(55, 235, 255, 0.28));
}
.hero-brand-morph__initial {
  z-index: 2;
  opacity: 1;
  pointer-events: none;
}

/* focus-visible: solo outline, sin fade (tu versión: sin crossfade a verde en hover) */

/* fade a verde desactivado — interferencia / glitch como efecto principal */

/* Filtro aplicado en <image> dentro del SVG (misma user space: evita desplazamiento de filtro sobre <img>) */
.hero-brand-morph__interference {
  z-index: 6;
  pointer-events: none;
  opacity: 0;
  overflow: visible;
  display: block;
  transition: opacity 0.12s ease;
  -webkit-mask-image: radial-gradient(circle 80px at 50% 50%, black 30%, transparent 100%);
  mask-image: radial-gradient(circle 80px at 50% 50%, black 30%, transparent 100%);
  will-change: mask-position, opacity;
}

@media (prefers-reduced-motion: reduce) {
  .hero-brand-morph__interference { display: none; }
  .hero-brand-morph__initial {
    filter: none;
    transition: opacity 5s ease;
  }
  .hero-brand-morph:hover .hero-brand-morph__final,
  .hero-brand-morph:focus-visible .hero-brand-morph__final {
    filter: drop-shadow(0 0 0 transparent);
  }
}

.hero-sub {
  font-size: 15px;
  font-weight: 300;
  color: rgba(255,255,255,.5);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: 20px;
  margin-bottom: 44px;
}

.hero-video-wrapper {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 0 auto 48px;
  aspect-ratio: 16/9;
}

/* Decorative frame */
.hero-video-wrapper::before {
  content: '';
  position: absolute;
  inset: -12px;
  border: 1px solid rgba(137, 213, 78, .25);
  border-radius: 4px;
  pointer-events: none;
}
.hero-video-wrapper::after {
  content: '';
  position: absolute;
  top: -12px;
  left: -12px;
  width: 40px;
  height: 40px;
  border-top: 2px solid var(--teal);
  border-left: 2px solid var(--teal);
}

.hero-video-placeholder {
  width: 100%;
  height: 100%;
  background: var(--mid);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: rgba(255,255,255,.3);
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  overflow: hidden;
  position: relative;
}

.play-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .3s;
  background: rgba(137,213,78,.1);
}
.play-btn::after {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent var(--teal);
  margin-left: 4px;
}
.play-btn:hover {
  background: var(--teal);
}
.play-btn:hover::after {
  border-color: transparent transparent transparent var(--black);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 64px;
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.stat-item {
  text-align: center;
}
.stat-number {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
  letter-spacing: -.02em;
}
.stat-label {
  font-size: 11px;
  font-weight: 400;
  color: rgba(255,255,255,.4);
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-top: 6px;
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.25);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--teal), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: .3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

/* ══════════════════════════════════
   2. PORTFOLIO CARDS
══════════════════════════════════ */
.section {
  padding: 100px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 64px;
}

.section-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.section-tag::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--teal);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: var(--white);
}
.section-title .dim {
  color: rgba(255,255,255,.2);
}

/* Filter pills */
.portfolio-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.filter-pill {
  padding: 7px 18px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,.12);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: all .2s cubic-bezier(.25,.46,.45,.94);
}
.filter-pill:active { transform: scale(.93); }
.filter-pill:hover { border-color: var(--teal); color: var(--teal); }
.filter-pill.active {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--black);
}

/* Portfolio grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.portfolio-grid .featured {
  grid-column: span 2;
}

.portfolio-card {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  background: var(--mid);
}
.portfolio-card.tall {
  aspect-ratio: unset;
  grid-row: span 2;
}

.portfolio-thumb {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  transition: transform .6s cubic-bezier(.25,.46,.45,.94);
}

.portfolio-card:nth-child(2) .portfolio-thumb {
  background: linear-gradient(135deg, #1a0a00 0%, #3d1400 100%);
}
.portfolio-card:nth-child(3) .portfolio-thumb {
  background: linear-gradient(135deg, #001a0f 0%, #003d1f 100%);
}
.portfolio-card:nth-child(4) .portfolio-thumb {
  background: linear-gradient(135deg, #1a001a 0%, #3d003d 100%);
}
.portfolio-card:nth-child(5) .portfolio-thumb {
  background: linear-gradient(135deg, #1a1500 0%, #3d3100 100%);
}
.portfolio-card:nth-child(6) .portfolio-thumb {
  background: linear-gradient(135deg, #00101a 0%, #00293d 100%);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.4) 50%, transparent 100%);
  opacity: 0;
  transition: opacity .35s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.portfolio-card:hover .portfolio-overlay { opacity: 1; }
.portfolio-card:hover .portfolio-thumb { transform: scale(1.05); }

.portfolio-meta {
  transform: translateY(12px);
  transition: transform .35s cubic-bezier(.25,.46,.45,.94);
}
.portfolio-card:hover .portfolio-meta { transform: translateY(0); }

.portfolio-client {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 4px;
}
.portfolio-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.01em;
}
.portfolio-tag-list {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}
.portfolio-tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 3px 10px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 100px;
  color: rgba(255,255,255,.6);
}

.portfolio-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(.8);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(137,213,78,.15);
  border: 1.5px solid var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all .35s;
}
.portfolio-play::after {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 7px 0 7px 13px;
  border-color: transparent transparent transparent var(--teal);
  margin-left: 3px;
}
.portfolio-card:hover .portfolio-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* always-visible corner badge */
.portfolio-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: rgba(137,213,78,.15);
  border: 1px solid rgba(137,213,78,.4);
  border-radius: 100px;
  color: var(--teal);
}

/* ══════════════════════════════════
   3. SERVICES
══════════════════════════════════ */
.services-section {
  background: var(--dark);
  padding: 100px 0;
}
.services-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 64px;
}

.service-card {
  background: var(--dark);
  padding: 44px 36px;
  position: relative;
  transition: background .3s;
  cursor: pointer;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s cubic-bezier(.25,.46,.45,.94);
}

.service-card:hover { background: rgba(137,213,78,.04); }
.service-card:hover::before { transform: scaleX(1); }

.service-number {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 800;
  color: rgba(255,255,255,.04);
  line-height: 1;
  position: absolute;
  top: 20px;
  right: 24px;
  letter-spacing: -.04em;
  transition: color .3s;
}
.service-card:hover .service-number {
  color: rgba(137,213,78,.08);
}

.service-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(137,213,78,.1);
  border: 1px solid rgba(137,213,78,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  transition: all .3s;
}
.service-card:hover .service-icon-wrap {
  background: rgba(137,213,78,.2);
  border-color: var(--teal);
}

.service-icon {
  font-size: 22px;
}

.service-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.1;
}

.service-desc {
  font-size: 13.5px;
  font-weight: 300;
  color: rgba(255,255,255,.45);
  line-height: 1.65;
}

.service-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal);
  opacity: 0;
  transform: translateX(-8px);
  transition: all .3s;
}
.service-cta::after {
  content: '→';
  transition: transform .25s;
}
.service-card:hover .service-cta {
  opacity: 1;
  transform: translateX(0);
}
.service-card:hover .service-cta:hover::after {
  transform: translateX(4px);
}

/* ══════════════════════════════════
   4. CLIENTS
══════════════════════════════════ */
.clients-section {
  padding: 100px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.clients-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 64px;
  gap: 32px;
}

.clients-subtitle {
  max-width: 340px;
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,.4);
  line-height: 1.7;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px;
  overflow: hidden;
}

.client-item {
  background: rgba(255,255,255,.02);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  transition: background .25s;
  cursor: pointer;
  position: relative;
}
.client-item:hover {
  background: rgba(137,213,78,.05);
}
.client-item::after {
  content: attr(data-client);
  position: absolute;
  bottom: 12px;
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.2);
}

.client-logo-placeholder {
  width: 80px;
  height: 32px;
  background: rgba(255,255,255,.08);
  border-radius: 4px;
  transition: all .25s;
}
.client-item:hover .client-logo-placeholder {
  background: rgba(255,255,255,.15);
}

/* Specific logo placeholders with text */
.client-text {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.2);
  transition: color .25s;
}
.client-item:hover .client-text {
  color: rgba(255,255,255,.5);
}

/* ══════════════════════════════════
   NAV PREVIEW
══════════════════════════════════ */
    .nav-preview {
      background: rgba(255,255,255,.97);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border-bottom: 1px solid rgba(0,0,0,.08);
      padding: 0 48px;
      height: 68px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      position: sticky;
      top: 0;
      z-index: 50;
    }

.nav-logo {
  display: flex;
  align-items: center;
  line-height: 0;
  flex-shrink: 0;
}
.nav-logo-img {
  display: block;
  height: 32px;
  width: auto;
  max-width: min(42vw, 200px);
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
    .nav-link {
      font-size: 12px;
      font-weight: 500;
      letter-spacing: .12em;
      text-transform: uppercase;
      color: rgba(0,0,0,.5);
      cursor: pointer;
      transition: color .2s;
      position: relative;
      text-decoration: none;
    }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transition: transform .25s;
}
.nav-link:hover { color: var(--black); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.active { color: var(--black); }
.nav-link.active::after { transform: scaleX(1); }

    .nav-cta {
      padding: 10px 24px;
      background: var(--teal);
      color: var(--black);
      font-size: 12px;
      font-weight: 600;
      letter-spacing: .12em;
      text-transform: uppercase;
      border-radius: 4px;
      cursor: pointer;
      transition: background .2s;
      text-decoration: none;
      display: inline-block;
    }
    .nav-cta:hover { background: var(--teal-dim); color: var(--black); }

/* ══════════════════════════════════
   DIVIDERS BETWEEN PROPOSALS
══════════════════════════════════ */
.divider-section {
  background: #0a0a0a;
  border-top: 1px solid rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.05);
}

/* ══════════════════════════════════
   INTRO BANNER
══════════════════════════════════ */
.intro-banner {
  background: var(--teal);
  color: var(--black);
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.intro-banner h1 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.intro-banner p {
  font-size: 13px;
  font-weight: 400;
  opacity: .7;
}
.intro-note {
  font-size: 12px;
  font-weight: 500;
  background: rgba(0,0,0,.15);
  padding: 8px 16px;
  border-radius: 4px;
  white-space: nowrap;
}

/* ——— Página producción (index-proposal) ——— */
.page-megafon-proposal .skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 8px 16px;
  background: var(--teal);
  color: var(--black);
}
.page-megafon-proposal .skip-link:focus {
  left: 16px;
  top: 16px;
}

.page-megafon-proposal .whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  overflow: hidden;
  background: #25d366;
  box-shadow: 0 4px 20px rgba(37,211,102,.35);
}
/* SVG oficial incluye mucho aire en el viewBox: icono más grande + leve escala */
.page-megafon-proposal .whatsapp img {
  width: 56px;
  height: 56px;
  max-width: none;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transform: scale(1.18);
  transform-origin: center center;
  transition: transform .2s;
}

.proposal-nav-shell {
  background: linear-gradient(180deg, #1a1a1a 0%, #0e0e0e 100%);
  padding: 0;
}

.hero-video-embed {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 4px;
  display: block;
  background: var(--mid);
}

.about-proposal {
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,.06);
}
.about-proposal .section {
  padding-top: 80px;
  padding-bottom: 80px;
}
.about-proposal .about-text {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  font-size: 15px;
  font-weight: 300;
  color: rgba(255,255,255,.55);
  line-height: 1.75;
}

.proposal-portfolio-wrap {
  background: var(--black);
  padding-bottom: 40px;
}
.proposal-portfolio-wrap .section {
  max-width: 1200px;
}

.proposal-portfolio .portfolio-thumb {
  background: #1a1a1a;
}
.proposal-portfolio .portfolio-card:nth-child(n) .portfolio-thumb {
  background: #1a1a1a;
}
.proposal-portfolio .portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(.25,.46,.45,.94);
}
.proposal-portfolio .portfolio-card:hover .portfolio-thumb img {
  transform: scale(1.05);
}


.service-icon-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.service-card a.service-cta {
  text-decoration: none;
}

.clients-section .client-item:has(picture)::after {
  display: none;
}
.clients-section .client-item img {
  max-width: 100%;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: .55;
  transition: filter .35s ease, opacity .35s ease;
}
.clients-section .client-item:hover img {
  filter: grayscale(0);
  opacity: 1;
}
.clients-spacer-for-label {
  padding-bottom: 28px;
}

.contact-proposal {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 100px 48px 80px;
}
.contact-proposal-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.contact-proposal-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
  margin-top: 48px;
}
.contact-info-block h3,
.contact-form-block h3 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 24px;
}
.contact-line {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}
.contact-line img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  opacity: .7;
  flex-shrink: 0;
}
.contact-line h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 4px;
}
.contact-line p,
.contact-line a {
  font-size: 14px;
  color: rgba(255,255,255,.75);
  margin: 0;
  text-decoration: none;
}
.contact-line a:hover {
  color: var(--teal);
}

.contact-proposal #contactForm .form-control {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 4px;
  color: var(--white);
  padding: 12px 16px;
}
.contact-proposal #contactForm .form-control::placeholder {
  color: rgba(255,255,255,.35);
}
.contact-proposal #contactForm .form-control:focus {
  border-color: var(--teal);
  outline: none;
  box-shadow: 0 0 0 2px rgba(137,213,78,.2);
}
.contact-proposal #contactForm .btn-send {
  background: var(--teal);
  color: var(--black);
  border: none;
  padding: 12px 28px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: background .2s;
}
.contact-proposal #contactForm .btn-send:hover {
  background: var(--teal-dim);
  color: var(--white);
}
.contact-proposal #contactMsg.success {
  color: var(--teal);
  margin-top: 12px;
  font-size: 14px;
}
.contact-proposal #contactMsg.error {
  color: #ff6b6b;
  margin-top: 12px;
  font-size: 14px;
}

.map-proposal iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
  filter: grayscale(100%) contrast(1.05);
}

footer.proposal-footer {
  background: #060606;
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 64px 48px 48px;
  color: rgba(255,255,255,.45);
}
.proposal-footer-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.proposal-footer-logo {
  display: inline-block;
  text-decoration: none;
  line-height: 0;
}
.proposal-footer-logo-img {
  width: 100%;
  max-width: min(85vw, 280px);
  height: auto;
  display: block;
  margin: 0 auto;
}
.proposal-footer-tag {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 300;
}
.proposal-footer-socials {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
}
.proposal-footer-socials a {
  color: rgba(255,255,255,.45);
  font-size: 24px;
  text-decoration: none;
  transition: color .2s;
}
.proposal-footer-socials a:hover { color: var(--teal); }
.proposal-footer-hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,.08);
  margin: 32px 0 24px;
}
.proposal-footer-copy {
  font-size: 12px;
  letter-spacing: .04em;
}

#videoModal.proposal-modal .modal-content {
  background: #111;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
}
#videoModal.proposal-modal .modal-body {
  padding: 16px;
}
#videoModal.proposal-modal .btn-secondary {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: var(--white);
}
#videoModal.proposal-modal .btn-secondary:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--black);
}

.hero { min-height: auto; padding: 100px 0 80px; }
@media (min-width: 900px) {
  .hero { min-height: 100vh; padding: 0; }
}

@media (max-width: 991px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .portfolio-grid .featured {
    grid-column: span 2;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .nav-preview {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 24px;
    gap: 12px;
  }
  .nav-links {
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    width: 100%;
    order: 3;
  }
  .contact-proposal-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero-stats {
    flex-direction: column;
    gap: 28px;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .portfolio-grid .featured {
    grid-column: span 1;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .clients-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .section {
    padding-left: 24px;
    padding-right: 24px;
  }
  .nav-preview {
    padding: 12px 16px;
  }
  .contact-proposal {
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* ══════════════════════════════════
   MICROINTERACCIONES
══════════════════════════════════ */

/* Hero — entrada */
@keyframes hero-enter {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow       { animation: hero-enter .65s cubic-bezier(.25,.46,.45,.94) .05s both; }
/* hero-title: las letras tienen su propia animación, el contenedor no hace hero-enter */
.hero-sub           { animation: hero-enter .65s cubic-bezier(.25,.46,.45,.94) .65s both; }
.hero-video-wrapper { animation: hero-enter .65s cubic-bezier(.25,.46,.45,.94) .80s both; }
.hero-stats         { animation: hero-enter .65s cubic-bezier(.25,.46,.45,.94) .95s both; }
.hero-scroll        { animation: hero-enter .65s cubic-bezier(.25,.46,.45,.94) 1.1s both; }

/* ── Título MEGAFÓN letra por letra ── */
@keyframes letter-fall {
  0%   { opacity: 0; transform: translateY(-48px) scaleY(1.4); filter: blur(6px); }
  60%  { filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) scaleY(1); }
}
@keyframes letter-shimmer {
  0%, 80%, 100% { text-shadow: none; color: var(--teal); }
  82%  { color: #fff; text-shadow: 0 0 32px rgba(137,213,78,.9); }
  85%  { color: var(--teal); text-shadow: 0 0 12px rgba(137,213,78,.4); }
  88%  { color: #fff; text-shadow: 0 0 20px rgba(137,213,78,.7); }
  90%  { color: var(--teal); text-shadow: none; }
}

.hero-title .accent {
  display: block;
  animation: letter-shimmer 5s ease-in-out 2s infinite;
}

.hero-title .letter {
  display: inline-block;
  animation: letter-fall .55s cubic-bezier(.22,.68,0,1.4) calc(.2s + var(--i) * .07s) both;
  transition: transform .22s cubic-bezier(.25,.46,.45,.94),
              color .22s,
              text-shadow .22s;
  cursor: default;
}

/* Hover: letra activa sube, resto se atenúan */
.hero-title .accent:hover .letter {
  color: rgba(137,213,78,.25);
  text-shadow: none;
}
.hero-title .letter:hover {
  transform: translateY(-12px) scale(1.08) !important;
  color: var(--teal) !important;
  text-shadow: 0 0 48px rgba(137,213,78,.7) !important;
}

/* bg-text: transición suave para el parallax JS */
.hero-bg-text {
  transition: transform .12s linear;
}

/* Stats hover */
.stat-item {
  transition: transform .25s cubic-bezier(.25,.46,.45,.94);
  cursor: default;
}
.stat-item:hover { transform: translateY(-5px); }
.stat-item:hover .stat-number { color: var(--teal); }

/* Scroll reveal */
.reveal-entry {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s cubic-bezier(.25,.46,.45,.94),
              transform .55s cubic-bezier(.25,.46,.45,.94);
}
.reveal-entry.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* WhatsApp pulse */
@keyframes wa-pulse {
  0%   { box-shadow: 0 4px 20px rgba(37,211,102,.35), 0 0 0 0 rgba(37,211,102,.5); }
  70%  { box-shadow: 0 4px 20px rgba(37,211,102,.35), 0 0 0 18px rgba(37,211,102,0); }
  100% { box-shadow: 0 4px 20px rgba(37,211,102,.35), 0 0 0 0 rgba(37,211,102,0); }
}
.page-megafon-proposal .whatsapp {
  animation: wa-pulse 2.8s infinite;
  transition: transform .2s, background .2s;
}
.page-megafon-proposal .whatsapp:hover {
  animation: none;
  transform: scale(1.1);
  background: #1ebe5c;
  box-shadow: 0 8px 32px rgba(37,211,102,.5);
}
.page-megafon-proposal .whatsapp:hover img {
  transform: scale(1.26);
}

/* Contact form focus */
.contact-form-block .form-control {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--white);
  transition: border-color .25s, box-shadow .25s;
}
.contact-form-block .form-control:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(137,213,78,.15);
  outline: none;
  background: rgba(255,255,255,.06);
}
.contact-form-block .form-control::placeholder { color: rgba(255,255,255,.3); }

/* Send button */
.btn-send {
  transition: background .25s, transform .15s, box-shadow .25s;
}
.btn-send:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(137,213,78,.3);
}
.btn-send:active { transform: translateY(0); }

/* Section tag hover */
.section-tag {
  transition: letter-spacing .35s cubic-bezier(.25,.46,.45,.94), color .2s;
}
.section-tag:hover { letter-spacing: .35em; }

/* Portfolio card stagger on load */
@keyframes card-enter {
  from { opacity: 0; transform: translateY(16px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.proposal-portfolio .portfolio-card {
  animation: card-enter .5s cubic-bezier(.25,.46,.45,.94) both;
}
.proposal-portfolio .portfolio-card:nth-child(1)  { animation-delay: .05s; }
.proposal-portfolio .portfolio-card:nth-child(2)  { animation-delay: .10s; }
.proposal-portfolio .portfolio-card:nth-child(3)  { animation-delay: .15s; }
.proposal-portfolio .portfolio-card:nth-child(4)  { animation-delay: .20s; }
.proposal-portfolio .portfolio-card:nth-child(5)  { animation-delay: .25s; }
.proposal-portfolio .portfolio-card:nth-child(6)  { animation-delay: .30s; }
.proposal-portfolio .portfolio-card:nth-child(7)  { animation-delay: .35s; }
.proposal-portfolio .portfolio-card:nth-child(8)  { animation-delay: .40s; }
.proposal-portfolio .portfolio-card:nth-child(n+9) { animation-delay: .45s; }

/* Stat number transition */
.stat-number { transition: color .25s; }

/* Smooth scroll global */
html { scroll-behavior: smooth; }

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--teal), var(--teal-dim));
  z-index: 9999;
  pointer-events: none;
  transition: width .08s linear;
}

/* Portfolio card 3D — base */
.proposal-portfolio .portfolio-card {
  will-change: transform;
}

/* Filtro portfolio — fade step */
.portfolio-card.is-fading-out {
  opacity: 0 !important;
  transform: scale(.92) !important;
  transition: opacity .25s ease, transform .25s ease !important;
  pointer-events: none;
}
.portfolio-card.is-filtered-out {
  display: none !important;
  opacity: 1 !important;
  transform: none !important;
}
.portfolio-card.is-fading-in {
  opacity: 0;
  transform: scale(.92);
  transition: opacity .25s ease, transform .25s ease;
}
