/* ═══════════════════════════════════════════════
   TAUBE STUDIO — main.css
   ═══════════════════════════════════════════════ */

/* ─── TOKENS ─────────────────────────────────── */
:root {
  --navy:  #0D0C2E;
  --noche: #1C1928;
  --crema: #F2EEE5;
  --bg2:   #EBE6DC;
  --bg3:   #D5D0C8;
  --line:  rgba(13,12,46,.09);
  --linew: rgba(255,255,255,.07);
  --ink1:  #0F0D1D;
  --ink2:  #3E3A32;
  --ink3:  #7C7870;
  --ink4:  #B5B0A8;
  --mm:    'MuseoModerno', sans-serif;
  --dm:    'DM Sans', system-ui, sans-serif;
  --ease:  cubic-bezier(.16, 1, .3, 1);
}

/* ─── RESET ──────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--dm);
  background: var(--crema);
  color: var(--ink1);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ─── PAGE TRANSITION ────────────────────────── */
body { opacity: 1; transition: opacity .22s ease; }
body.page-leave { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  body, body.page-leave { opacity: 1; transition: none; }
}

/* ─── NAV ────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 56px; background: var(--navy);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 52px;
}
.nav-brand { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo { height: 32px; }
.nav-links {
  display: flex; align-items: center; gap: 0;
  list-style: none; flex: 1; justify-content: center;
}
.nav-links li a {
  font-family: var(--dm); font-size: 10px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.38); text-decoration: none;
  padding: 0 13px; height: 56px;
  display: flex; align-items: center;
  position: relative;
  transition: color .25s;
}
.nav-links li a::after {
  content: ''; position: absolute; left: 13px; right: 13px; bottom: 14px;
  height: 1px; background: var(--crema);
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav-links li a:hover { color: rgba(255,255,255,.85); }
.nav-links li a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-links li a.active { color: rgba(255,255,255,.92); }
.nav-links li a.active::after { transform: scaleX(1); }
.nav-cta-li a {
  background: var(--crema); color: var(--navy) !important;
  padding: 8px 18px !important; height: auto !important;
  border-radius: 100px; transition: opacity .2s;
}
.nav-cta-li a::after { display: none; }
.nav-cta-li a:hover { opacity: .82; }
.nav-ham {
  display: none; background: none; border: none;
  cursor: pointer; padding: 4px; flex-direction: column;
  gap: 5px; align-items: flex-end;
}
.nav-ham span { display: block; height: 1.5px; background: rgba(255,255,255,.65); transition: all .22s; }
.nav-ham span:nth-child(1) { width: 22px; }
.nav-ham span:nth-child(2) { width: 15px; }
.nav.open .nav-ham span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.nav.open .nav-ham span:nth-child(2) { width: 22px; transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav { padding: 0 24px; }
  .nav-links {
    display: none; position: absolute; top: 56px; left: 0; right: 0;
    background: var(--navy); flex-direction: column; align-items: stretch;
    border-top: 1px solid var(--linew); padding: 8px 0;
    box-shadow: 0 12px 32px rgba(0,0,0,.35);
  }
  .nav.open .nav-links { display: flex; }
  .nav-links li a { height: auto; padding: 11px 24px; }
  .nav-links li a::after { display: none; }
  .nav-links li a.active { background: rgba(255,255,255,.04); }
  .nav-cta-li { padding: 10px 24px; }
  .nav-cta-li a { display: inline-flex; align-self: auto; }
  .nav-ham { display: flex; }
}

/* ─── FOOTER ─────────────────────────────────── */
.footer {
  background: var(--navy); border-top: 1px solid rgba(255,255,255,.05);
  padding: 28px 52px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.f-logo { height: 40px; }
.f-copy { font-family: var(--dm); font-size: 11px; color: rgba(255,255,255,.22); }
.f-links { display: flex; gap: 20px; list-style: none; }
.f-links a {
  font-family: var(--dm); font-size: 11px; letter-spacing: .05em;
  color: rgba(255,255,255,.28); text-decoration: none; transition: color .2s;
  position: relative;
}
.f-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -3px;
  height: 1px; background: rgba(255,255,255,.5);
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease);
}
.f-links a:hover { color: rgba(255,255,255,.6); }
.f-links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ─── BUTTONS (barrido artesanal) ────────────── */
.btn {
  display: inline-block; text-decoration: none;
  font-family: var(--dm); font-size: 11px; font-weight: 500;
  letter-spacing: .13em; text-transform: uppercase;
  padding: 14px 32px; cursor: pointer; border: none; border-radius: 100px;
  position: relative; overflow: hidden; z-index: 0;
  transition: transform .35s var(--ease);
  will-change: transform;
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  transform: translateX(-101%); transition: transform .45s var(--ease);
  border-radius: 100px;
}
.btn:hover::before { transform: translateX(0); }
.btn-cream { background: var(--crema); color: var(--navy); }
.btn-cream::before { background: #fff; }
.btn-navy  { background: var(--navy); color: var(--crema); }
.btn-navy::before { background: var(--noche); }
.btn-ghost { border: 1px solid rgba(255,255,255,.22); color: rgba(255,255,255,.6); padding: 13px 32px; transition: color .3s; }
.btn-ghost::before { background: var(--crema); }
.btn-ghost:hover { color: var(--navy); }

/* ─── PAGE HERO ──────────────────────────────── */
.page-hero {
  background: var(--navy); padding: 128px 80px 80px;
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--linew);
}
.page-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(
    -45deg, transparent 0, transparent 10px,
    rgba(255,255,255,.013) 10px, rgba(255,255,255,.013) 11px
  );
}
.page-hero-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto;
  gap: 24px 48px; align-items: start;
}
.ph-content { display: flex; flex-direction: column; gap: 16px; }
.ph-back {
  font-family: var(--dm); font-size: 10px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.22); text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px; transition: color .2s;
}
.ph-back:hover { color: rgba(255,255,255,.55); }
.ph-label {
  font-family: var(--mm); font-size: 11px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.2);
}
.ph-title {
  font-family: var(--mm); font-weight: 800; line-height: .9;
  font-size: clamp(52px, 7.5vw, 96px);
  color: #fff; letter-spacing: -.02em;
}
.ph-desc {
  font-family: var(--dm); font-size: 16px; line-height: 1.72;
  color: rgba(255,255,255,.38); max-width: 520px;
}
.ph-num {
  font-family: var(--mm); font-weight: 800;
  font-size: clamp(100px, 15vw, 180px);
  line-height: 1; letter-spacing: -.03em;
  color: rgba(255,255,255,.05); align-self: end; user-select: none;
  will-change: transform;
}

/* ─── SECTIONS ───────────────────────────────── */
.sec { padding: 80px; border-top: 1px solid var(--line); }
.sec.dark { background: var(--navy); border-top-color: var(--linew); }
.sec.warm { background: var(--bg2); }
.sec.white { background: #FAF9F5; }
.sec-inner { max-width: 1200px; margin: 0 auto; }
.sec-label {
  font-family: var(--mm); font-size: 11px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink4); margin-bottom: 18px; display: block;
}
.dark .sec-label { color: rgba(255,255,255,.2); }
.sec-title {
  font-family: var(--mm); font-weight: 700;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.1; letter-spacing: -.01em;
  color: var(--ink1); margin-bottom: 40px;
}
.dark .sec-title { color: #fff; }
.sec-note {
  font-family: var(--dm); font-size: 15px; line-height: 1.7;
  color: var(--ink3); max-width: 620px; margin-bottom: 40px;
}
.dark .sec-note { color: rgba(255,255,255,.4); }

/* ─── CARD GRID ──────────────────────────────── */
.card-grid { display: grid; gap: 2px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g5 { grid-template-columns: repeat(5, 1fr); }
.span2 { grid-column: span 2; }
.span3 { grid-column: span 3; }
.span4 { grid-column: span 4; }

/* ─── CARD ───────────────────────────────────── */
.card { position: relative; overflow: hidden; }
.card:hover .card-over { opacity: 1; transform: translateY(0); }
.card-media {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .8s var(--ease);
}
.card:hover .card-media { transform: scale(1.035); }
.card-frame { overflow: hidden; position: relative; background: var(--bg3); }
.sec.dark .card-frame { background: rgba(255,255,255,.06); }
.card-over {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,12,46,.88) 0%, rgba(13,12,46,.25) 55%, transparent 100%);
  opacity: 0; transform: translateY(12px);
  transition: opacity .35s ease, transform .45s var(--ease);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 22px;
  pointer-events: none;
}
.card-name {
  font-family: var(--mm); font-size: 18px; font-weight: 600;
  color: #fff; line-height: 1.1; margin-bottom: 4px;
}
.card-cat {
  font-family: var(--dm); font-size: 10px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.45);
}

/* video cards: autoplay en mute; click activa sonido */
.vcard video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  background: var(--navy);
}
.vcard { background: var(--navy); cursor: pointer; }
.vcard .card-over { pointer-events: none; }

/* embeds de YouTube (reemplazan al <video> nativo) */
.yt-embed {
  position: absolute; inset: 0; background: var(--navy) center/cover no-repeat;
}
.yt-embed iframe {
  width: 100%; height: 100%; display: block; border: 0; pointer-events: none;
}
.yt-clickcatch { position: absolute; inset: 0; z-index: 1; cursor: pointer; }
.yt-fs {
  position: absolute; bottom: 14px; right: 14px; z-index: 2;
  width: 30px; height: 30px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(13,12,46,.65) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%23F2EEE5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3H5a2 2 0 0 0-2 2v3'/%3E%3Cpath d='M16 3h3a2 2 0 0 1 2 2v3'/%3E%3Cpath d='M8 21H5a2 2 0 0 1-2-2v-3'/%3E%3Cpath d='M16 21h3a2 2 0 0 0 2-2v-3'/%3E%3C/svg%3E") center/13px no-repeat;
  opacity: .85; transition: opacity .25s, transform .25s;
}
.yt-fs:hover { opacity: 1; transform: scale(1.1); }
.vcard:fullscreen { aspect-ratio: auto; width: 100vw; height: 100vh; }
.vcard:fullscreen .yt-embed iframe { width: 100%; height: 100%; }

/* ─── LIGHTBOX ───────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(13,12,46,.96);
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lb-img {
  max-width: 92vw; max-height: 88vh; object-fit: contain;
  opacity: 0; transform: scale(.94);
  transition: opacity .35s ease, transform .5s var(--ease);
}
.lb-img.in { opacity: 1; transform: scale(1); }
.lb-close, .lb-prev, .lb-next {
  position: absolute; z-index: 2; border: none; cursor: pointer;
  background: rgba(242,238,229,.08); color: var(--crema);
  width: 44px; height: 44px; border-radius: 50%;
  font-size: 26px; line-height: 1; display: flex;
  align-items: center; justify-content: center;
  transition: background .25s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(242,238,229,.2); }
.lb-close { top: 22px; right: 22px; font-size: 22px; }
.lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 22px; top: 50%; transform: translateY(-50%); }
.lb-count {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  font-family: var(--dm); font-size: 11px; letter-spacing: .14em;
  color: rgba(242,238,229,.5);
}
@media (prefers-reduced-motion: reduce) {
  .lb-img { transition: none; transform: none; }
}
@media (max-width: 960px) {
  .lb-prev { left: 10px; } .lb-next { right: 10px; }
}

/* ─── GRANO DE PELÍCULA ──────────────────────── */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 400;
  pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
}

/* ─── BARRA DE PROGRESO DE SCROLL ────────────── */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  height: 2px; background: var(--crema);
  transform: scaleX(0); transform-origin: left;
  mix-blend-mode: difference; pointer-events: none;
}
.vcard::after {
  content: ''; position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(13,12,46,.65) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23F2EEE5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='11 5 6 9 2 9 2 15 6 15 11 19 11 5'/%3E%3Cline x1='23' y1='9' x2='17' y2='15'/%3E%3Cline x1='17' y1='9' x2='23' y2='15'/%3E%3C/svg%3E") center/14px no-repeat;
  opacity: .85; transition: opacity .25s, background-color .25s;
  pointer-events: none;
}
.vcard.sound-on::after {
  background: rgba(242,238,229,.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230D0C2E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='11 5 6 9 2 9 2 15 6 15 11 19 11 5'/%3E%3Cpath d='M15.54 8.46a5 5 0 0 1 0 7.07'/%3E%3Cpath d='M19.07 4.93a10 10 0 0 1 0 14.14'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* tarjetas sin efectos (capturas de sitios web) */
.no-fx .card-media { transition: none; }
.no-fx:hover .card-media { transform: none; }

/* link "visitar sitio" en proyectos web */
.site-link {
  display: inline-flex; align-items: baseline; gap: 8px;
  margin-top: 16px; text-decoration: none;
  font-family: var(--dm); font-size: 11px; font-weight: 500;
  letter-spacing: .13em; text-transform: uppercase;
  color: rgba(255,255,255,.65);
  border-bottom: 1px solid rgba(255,255,255,.25);
  padding-bottom: 6px;
  transition: color .25s, border-color .25s;
}
.site-link span[aria-hidden] { transition: transform .35s var(--ease); }
.site-link-url {
  font-family: var(--mm); font-size: 12px; font-style: italic;
  text-transform: none; letter-spacing: .02em;
  color: rgba(255,255,255,.3);
  max-width: 0; overflow: hidden; white-space: nowrap;
  opacity: 0; transition: max-width .5s var(--ease), opacity .35s;
}
.site-link:hover { color: #fff; border-color: rgba(255,255,255,.7); }
.site-link:hover span[aria-hidden] { transform: translateX(4px); }
.site-link:hover .site-link-url { max-width: 220px; opacity: 1; }
.sec:not(.dark) .site-link { color: var(--ink2); border-color: var(--ink4); }
.sec:not(.dark) .site-link:hover { color: var(--ink1); border-color: var(--ink1); }

/* aspect ratios */
.r169  { aspect-ratio: 16/9; }
.r219  { aspect-ratio: 21/9; }
.r916  { aspect-ratio: 9/16; }
.r43   { aspect-ratio: 4/3; }
.r32   { aspect-ratio: 3/2; }
.r11   { aspect-ratio: 1; }
.r1610 { aspect-ratio: 16/10; }

/* ─── FEATURES ───────────────────────────────── */
.features {
  list-style: none;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px 48px;
}
.features li {
  font-family: var(--dm); font-size: 14px; line-height: 1.5;
  color: var(--ink2); padding-left: 14px; position: relative;
}
.features li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 6px; height: 1px; background: var(--ink4);
}
.dark .features li { color: rgba(255,255,255,.45); }
.dark .features li::before { background: rgba(255,255,255,.2); }

/* formatos de trabajo / capacidades — items con título y descripción */
.fmt-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 48px;
}
.fmt-item { border-top: 1px solid var(--linew); padding-top: 20px; }
.sec:not(.dark) .fmt-item { border-top-color: var(--line); }
.fmt-item h3 {
  font-family: var(--mm); font-size: 17px; font-weight: 600;
  color: #fff; margin-bottom: 10px; line-height: 1.2;
}
.sec:not(.dark) .fmt-item h3 { color: var(--ink1); }
.fmt-item p {
  font-family: var(--dm); font-size: 13.5px; line-height: 1.7;
  color: rgba(255,255,255,.42);
}
.sec:not(.dark) .fmt-item p { color: var(--ink3); }

/* ─── MARQUEE (industrias) ───────────────────── */
.marquee {
  overflow: hidden; white-space: nowrap; user-select: none;
  border-top: 1px solid var(--linew); border-bottom: 1px solid var(--linew);
  padding: 22px 0; margin-top: 56px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.sec:not(.dark) .marquee { border-color: var(--line); }
.marquee-track {
  display: inline-flex; align-items: center; gap: 0;
  animation: mq 32s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--mm); font-size: 15px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.34); padding: 0 18px;
}
.sec:not(.dark) .marquee-track span { color: var(--ink3); }
.marquee-track span::after { content: '·'; margin-left: 36px; opacity: .5; }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* variante grande (marcas) */
.marquee-lg { margin-top: 0; padding: 30px 0; }
.marquee-lg .marquee-track { animation-duration: 40s; }
.marquee-lg .marquee-track span {
  font-size: clamp(20px, 2.6vw, 30px); font-weight: 600;
  letter-spacing: .04em; text-transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .marquee { white-space: normal; }
}
.marquee-label {
  font-family: var(--mm); font-size: 11px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.2); display: block; margin-top: 48px;
}
.sec:not(.dark) .marquee-label { color: var(--ink4); }

/* ─── CTA BLOCK ──────────────────────────────── */
.cta-block {
  background: var(--crema); border-top: 1px solid var(--line);
  padding: 80px;
  display: flex; align-items: center;
  justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.cta-title {
  font-family: var(--mm); font-weight: 700;
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.1; letter-spacing: -.01em; color: var(--ink1);
}
.cta-sub {
  font-family: var(--dm); font-size: 15px;
  color: var(--ink3); margin-top: 8px; max-width: 360px;
}

/* ─── HOME HERO ──────────────────────────────── */
.home-hero {
  height: 100vh; min-height: 640px;
  position: relative; overflow: hidden;
  display: flex; align-items: flex-end;
  padding: 0 80px 80px; margin-top: 56px;
}
.hh-bg { position: absolute; inset: 0; background: var(--navy); }
.hh-bg video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .38;
}
.hh-bg::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: repeating-linear-gradient(
    -45deg, transparent 0, transparent 10px,
    rgba(255,255,255,.015) 10px, rgba(255,255,255,.015) 11px
  );
}
.hh-bg::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse 80% 55% at 65% 38%, rgba(26,22,74,.35), rgba(13,12,46,.96) 70%);
}
.hh-content { position: relative; z-index: 2; max-width: 860px; }
.hh-over {
  font-family: var(--mm); font-size: 11px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.24); margin-bottom: 26px;
}
.hh-title {
  font-family: var(--mm); font-weight: 800; line-height: .88;
  font-size: clamp(56px, 9.5vw, 118px);
  color: #fff; letter-spacing: -.02em; margin-bottom: 28px;
}
.hh-claim {
  font-family: var(--mm); font-style: italic; font-weight: 300;
  font-size: clamp(16px, 2vw, 23px);
  color: rgba(255,255,255,.34); margin-bottom: 48px;
  max-width: 460px; line-height: 1.5;
}
.hh-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hh-scroll {
  position: absolute; right: 80px; bottom: 52px; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  font-family: var(--dm); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(255,255,255,.18);
}
.hh-scroll::before { content: ''; width: 36px; height: 1px; background: rgba(255,255,255,.14); }

/* ─── QUIÉNES SOMOS (home) ───────────────────── */
.qs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.qs-title {
  font-family: var(--mm); font-weight: 700;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.08; letter-spacing: -.01em; color: var(--ink1);
}
.qs-body { display: flex; flex-direction: column; gap: 18px; }
.qs-body p { font-family: var(--dm); font-size: 15.5px; line-height: 1.75; color: var(--ink2); }

/* ─── SERVICES GRID (home) ───────────────────── */
.services-section { background: var(--noche); padding: 0; }
.services-section-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 52px 24px;
}
.services-section-hd span {
  font-family: var(--dm); font-size: 10px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.2);
}
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: rgba(255,255,255,.06);
}
.svc-card {
  position: relative; overflow: hidden; aspect-ratio: 5/4;
  display: flex; flex-direction: column;
  justify-content: space-between; padding: 28px;
  text-decoration: none;
}
.svc-card::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(
    -45deg, transparent 0, transparent 10px,
    rgba(255,255,255,.018) 10px, rgba(255,255,255,.018) 11px
  );
}
.svc-card::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 100%;
  background: rgba(242,238,229,.045);
  transform: translateY(101%); transition: transform .5s var(--ease);
}
.svc-card:hover::after { transform: translateY(0); }
.svc-card-top { position: relative; z-index: 1; }
.svc-card-num {
  font-family: var(--mm); font-size: 11px; font-weight: 500;
  letter-spacing: .14em; color: rgba(255,255,255,.22);
}
.svc-card-bot { position: relative; z-index: 1; }
.svc-card-name {
  font-family: var(--mm); font-weight: 800;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.05; color: #fff; letter-spacing: -.01em; margin-bottom: 6px;
}
.svc-card-tag {
  font-family: var(--dm); font-size: 11px; line-height: 1.5;
  color: rgba(255,255,255,.3);
}
.svc-card-arrow {
  position: absolute; bottom: 28px; right: 28px; z-index: 2;
  color: rgba(255,255,255,.16); font-size: 18px; line-height: 1;
  transition: color .25s, transform .25s;
}
.svc-card:hover .svc-card-arrow { color: rgba(255,255,255,.7); transform: translate(3px,-3px); }
.svc-c0 { background: #0c0b24; } .svc-c1 { background: #0f0e28; }
.svc-c2 { background: #131229; } .svc-c3 { background: #0e0c2a; }
.svc-c4 { background: #110f28; } .svc-c5 { background: #0d0c28; }

/* tarjetas de servicio con media de fondo */
.svc-media {
  position: absolute; inset: 0; overflow: hidden;
}
.svc-media img, .svc-media video {
  width: 100%; height: 100%; object-fit: cover;
  opacity: .55; transition: opacity .4s, transform .8s var(--ease);
}
.svc-media img.zoom-web {
  transform: scale(1.6); object-position: center 65%;
}
.svc-card:hover .svc-media img, .svc-card:hover .svc-media video { opacity: .75; }
.svc-card:hover .svc-media img.zoom-web { transform: scale(1.65); }
.svc-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,12,46,.92) 0%, rgba(13,12,46,.35) 55%, rgba(13,12,46,.25) 100%);
}

/* fila secundaria de servicios (sin imagen) */
.svc-rows { background: var(--noche); border-top: 1px solid rgba(255,255,255,.06); }
.svc-row {
  display: flex; align-items: baseline; gap: 22px;
  padding: 26px 52px; text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.05);
  position: relative; overflow: hidden;
}
.svc-row::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(242,238,229,.04);
  transform: translateX(-101%); transition: transform .45s var(--ease);
}
.svc-row > * { position: relative; }
.svc-row:hover::before { transform: translateX(0); }
.svc-row-num {
  font-family: var(--mm); font-size: 11px; font-weight: 500;
  letter-spacing: .14em; color: rgba(255,255,255,.22);
}
.svc-row-name {
  font-family: var(--mm); font-weight: 700; font-size: clamp(18px, 2vw, 24px);
  color: #fff; letter-spacing: -.01em;
}
.svc-row-tag {
  font-family: var(--dm); font-size: 11px; color: rgba(255,255,255,.3); flex: 1;
}
.svc-row-arrow { color: rgba(255,255,255,.2); font-size: 16px; transition: color .25s, transform .25s; }
.svc-row:hover .svc-row-arrow { color: rgba(255,255,255,.7); transform: translate(3px,-3px); }
@media (max-width: 960px) {
  .svc-row { padding: 20px 32px; flex-wrap: wrap; gap: 10px 16px; }
  .svc-row-tag { flex-basis: 100%; order: 4; }
}

/* ─── HOME CTA ───────────────────────────────── */
.home-cta {
  background: var(--bg2); border-top: 1px solid var(--line); padding: 96px 80px;
  display: flex; align-items: center;
  justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.home-cta-title {
  font-family: var(--mm); font-weight: 700;
  font-size: clamp(32px, 4vw, 52px);
  color: var(--ink1); line-height: 1.05; letter-spacing: -.015em; margin-bottom: 10px;
}
.home-cta-sub {
  font-family: var(--dm); font-size: 16px;
  color: var(--ink3); line-height: 1.65; max-width: 380px;
}

/* ─── SERVICIOS EXTRA ────────────────────────── */
.extra-note {
  background: var(--bg2); border-top: 1px solid var(--line);
  padding: 56px 80px;
}
.extra-note p {
  font-family: var(--mm); font-style: italic; font-weight: 300;
  font-size: clamp(18px, 2.4vw, 26px);
  color: var(--ink3); line-height: 1.55;
  max-width: 760px; margin: 0 auto; text-align: center;
}
.extra-note p strong { font-weight: 600; font-style: normal; color: var(--ink1); }
.x-eyebrow {
  font-family: var(--mm); font-size: 11px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink4); display: block; margin-bottom: 14px;
}
.dark .x-eyebrow { color: rgba(255,255,255,.22); }
.x-desc {
  font-family: var(--dm); font-size: 15px; line-height: 1.75;
  color: var(--ink3); max-width: 560px; margin-bottom: 36px;
}
.dark .x-desc { color: rgba(255,255,255,.4); }
.x-cta-mini {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--dm); font-size: 12px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink2); text-decoration: none;
  border-bottom: 1px solid var(--ink4); padding-bottom: 4px;
  transition: color .2s, border-color .2s;
}
.x-cta-mini:hover { color: var(--ink1); border-color: var(--ink1); }

/* ─── SOLO EDICIÓN (videos) ──────────────────── */
.edit-banner {
  background: var(--bg2); border-top: 1px solid var(--line);
  padding: 72px 80px;
}
.edit-banner-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.edit-banner h2 {
  font-family: var(--mm); font-weight: 700;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12; letter-spacing: -.01em; color: var(--ink1);
}
.edit-banner p { font-family: var(--dm); font-size: 15px; line-height: 1.75; color: var(--ink2); }
.edit-banner p + p { margin-top: 14px; }
.edit-banner a.ig-link {
  color: var(--ink1); font-weight: 500; text-decoration: none;
  border-bottom: 1px solid var(--ink3); transition: border-color .2s, color .2s;
}
.edit-banner a.ig-link:hover { color: var(--navy); border-color: var(--navy); }

/* ─── CONTACT PAGE ───────────────────────────── */
.contact-page { background: var(--navy); padding: 128px 80px 80px; }
.contact-inner { max-width: 1200px; margin: 0 auto; }
.contact-hd { margin-bottom: 64px; }
.contact-kicker {
  font-family: var(--dm); font-size: 10px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.2); margin-bottom: 16px; display: block;
}
.contact-title {
  font-family: var(--mm); font-weight: 700; line-height: .93;
  font-size: clamp(44px, 6vw, 76px);
  color: #fff; letter-spacing: -.015em;
}
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
}
.c-sub {
  font-family: var(--mm); font-style: italic; font-weight: 300;
  font-size: 18px; color: rgba(255,255,255,.3); line-height: 1.55; margin-top: 16px;
}
.c-data { margin-top: 48px; display: flex; flex-direction: column; gap: 20px; }
.c-dlabel {
  font-family: var(--dm); font-size: 10px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.22); margin-bottom: 2px;
}
.c-dval {
  font-family: var(--dm); font-size: 14px;
  color: rgba(255,255,255,.42); text-decoration: none; display: block;
}
a.c-dval:hover { color: rgba(255,255,255,.8); }
.form { display: flex; flex-direction: column; gap: 14px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.f-field { display: flex; flex-direction: column; gap: 6px; }
label {
  font-family: var(--dm); font-size: 10px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.25);
}
input, textarea, select {
  font-family: var(--dm); font-size: 14px; color: #fff;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  padding: 13px 15px; width: 100%; border-radius: 0;
  outline: none; resize: vertical; transition: border-color .2s;
  -webkit-appearance: none; appearance: none;
}
input::placeholder, textarea::placeholder { color: rgba(255,255,255,.18); }
input:focus, textarea:focus, select:focus { border-color: rgba(255,255,255,.28); }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='6'%3E%3Cpath d='M1 1l4.5 4L10 1' stroke='rgba(255,255,255,.3)' stroke-width='1.5' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 40px; cursor: pointer;
}
select option { background: var(--noche); }
textarea { min-height: 120px; }
.btn-submit {
  font-family: var(--dm); font-size: 11px; font-weight: 500;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--navy); background: var(--crema);
  border: none; cursor: pointer; padding: 16px; width: 100%;
  transition: opacity .2s; margin-top: 6px; border-radius: 100px;
}
.btn-submit:hover { opacity: .8; }
.form-sent {
  display: none; padding: 40px 0;
  font-family: var(--mm); font-style: italic; font-weight: 300;
  font-size: 22px; color: rgba(255,255,255,.38); line-height: 1.65;
}

/* ─── REVEALS (scroll) ───────────────────────── */
.rv {
  opacity: 0; transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.rv.on { opacity: 1; transform: none; }
/* titulares palabra por palabra */
.wsplit .w {
  display: inline-block; overflow: hidden; vertical-align: bottom;
}
.wsplit .w > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform .9s var(--ease);
  transition-delay: calc(var(--wi, 0) * 80ms);
}
.wsplit.on .w > span { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .wsplit .w > span { transform: none; transition: none; }
}

/* ─── CURSOR PERSONALIZADO ───────────────────── */
.cursor-dot {
  position: fixed; top: 0; left: 0; z-index: 999;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--crema); mix-blend-mode: difference;
  pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--dm); font-size: 0; font-weight: 500;
  letter-spacing: .1em; color: var(--navy);
  transition: width .3s var(--ease), height .3s var(--ease), font-size .2s;
  will-change: transform;
}
.cursor-dot.grow {
  width: 64px; height: 64px; font-size: 9px;
}
@media (hover: none), (max-width: 960px) { .cursor-dot { display: none; } }

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 960px) {
  .home-hero { padding: 0 32px 64px; }
  .hh-scroll { display: none; }
  .home-cta, .cta-block { padding: 64px 32px; }
  .services-section-hd { padding: 22px 32px 18px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .sec { padding: 64px 32px; }
  .page-hero { padding: 96px 32px 64px; }
  .page-hero-inner { grid-template-columns: 1fr; }
  .ph-num { display: none; }
  .g3, .g4, .g5 { grid-template-columns: repeat(2, 1fr); }
  .g2 { grid-template-columns: 1fr; }
  .span2, .span3, .span4 { grid-column: auto; }
  .features, .fmt-grid { grid-template-columns: repeat(2, 1fr); }
  .qs-grid { grid-template-columns: 1fr; gap: 28px; }
  .edit-banner { padding: 56px 32px; }
  .edit-banner-inner { grid-template-columns: 1fr; gap: 24px; }
  .extra-note { padding: 48px 32px; }
  .contact-page { padding: 96px 32px 64px; }
  .contact-grid { grid-template-columns: 1fr; gap: 52px; }
  .f-row { grid-template-columns: 1fr; }
  .footer { padding: 24px 32px; flex-direction: column; align-items: flex-start; gap: 14px; }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .g3, .g4, .g2 { grid-template-columns: 1fr; }
  .features, .fmt-grid { grid-template-columns: 1fr; }
  .hh-title { font-size: clamp(42px, 12vw, 68px); }
  .ph-title { font-size: clamp(40px, 11vw, 64px); }
  .f-links { display: none; }
}
