/* ==========================================================================
   2Laabs — Capa cinematográfica (se carga DESPUÉS de landing.css)
   Invierte los tokens a navy profundo + añade preloader, cursor, marquee,
   split-text y el canvas de partículas.
   ========================================================================== */

:root {
  --paper: #060919;
  --paper-2: #0e1432;
  --paper-3: #161e47;
  --ink: #f4f1e8;
  --muted: #a9aec8;
  --faint: #7d84a6;
  --line: rgba(255, 255, 255, 0.12);
  --line-2: rgba(255, 255, 255, 0.22);
  --dark: #0a0f26;
  --cin-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html.lenis,
html.lenis body {
  height: auto;
}

html.lenis {
  scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

body.cin {
  background: #060919;
}

/* ---------- Canvas de partículas ---------- */
#fx {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.6s ease;
}

#fx.on {
  opacity: 1;
}

.cin main,
.cin footer {
  position: relative;
  z-index: 1;
}

/* ---------- Tema oscuro: ajustes puntuales ---------- */
.cin .wave {
  display: none;
}

.cin .navbar.is-scrolled {
  background: rgba(6, 9, 25, 0.62);
  backdrop-filter: blur(14px) saturate(130%);
  border-bottom-color: var(--line);
}

.cin .dark {
  background: rgba(6, 10, 28, 0.72);
}

.cin .hero::before {
  display: none;
}

.cin .modal-close {
  color: #0a0f26;
}

.cin .modal-overlay {
  background: rgba(3, 5, 16, 0.72);
}

.cin .tst-card,
.cin .price-card {
  backdrop-filter: blur(6px);
}

/* ---------- Hero a la izquierda (las partículas forman el logo a la derecha) ---------- */
.cin .hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  text-align: left;
  padding-bottom: var(--sp-xl);
}

.cin .hero-inner {
  margin-inline: auto;
  width: var(--wrap);
  max-width: none;
}

.cin .hero .kicker {
  justify-content: flex-start;
}

.cin .hero h1 {
  max-width: 12ch;
}

.cin .hero-sub {
  margin-inline: 0;
  max-width: 46ch;
}

.cin .discover {
  margin-left: 0;
}

/* ---------- Split text ---------- */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0 0.1em 0.14em;
  margin: 0 -0.1em -0.14em;
}

.wi {
  display: inline-block;
  will-change: transform;
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #060919;
  display: grid;
  place-items: center;
}

.preloader-logo {
  width: min(260px, 52vw);
  height: auto;
  opacity: 0;
  transform: translateY(10px);
}

.preloader-count {
  position: absolute;
  left: clamp(1.2rem, 4vw, 3rem);
  bottom: clamp(1.4rem, 5vw, 3rem);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(3.5rem, 11vw, 9rem);
  line-height: 0.85;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.preloader-count small {
  font-size: 0.32em;
  color: var(--accent);
  margin-left: 0.15em;
}

.preloader-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
}

.preloader-bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

/* ---------- Barra de progreso ---------- */
.cin-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 9990;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* ---------- Cursor personalizado ---------- */
.cur-dot,
.cur-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  opacity: 0;
  will-change: transform;
}

.cur-dot {
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  background: var(--accent);
}

.cur-ring {
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  display: grid;
  place-items: center;
  transition: width .35s var(--cin-ease), height .35s var(--cin-ease), margin .35s var(--cin-ease), background .3s, border-color .3s;
}

.cur-ring span {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #0a0f26;
  opacity: 0;
  transition: opacity .2s;
}

.cur-ring.is-link {
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  background: rgba(249, 168, 58, 0.18);
  border-color: var(--accent);
}

.cur-ring.is-view {
  width: 92px;
  height: 92px;
  margin: -46px 0 0 -46px;
  background: var(--accent);
  border-color: var(--accent);
}

.cur-ring.is-view span {
  opacity: 1;
}

html.has-cursor,
html.has-cursor a,
html.has-cursor button,
html.has-cursor .prow {
  cursor: none;
}

html.has-cursor input,
html.has-cursor textarea {
  cursor: text;
}

/* ---------- Imágenes con parallax: sin conflicto con el hover CSS ---------- */

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cin .hero {
    align-items: flex-end;
    padding-bottom: 14svh;
  }

  .cin .hero h1 {
    max-width: none;
  }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  .preloader {
    display: none;
  }

  #fx {
    transition: none;
  }
}

/* Si el JS cinematográfico falla, todo queda visible */
.cin-fail .wi,
.cin-fail .tst-card,
.cin-fail .faq-item,
.cin-fail .prow-n,
.cin-fail .prow-t,
.cin-fail .prow-c,
.cin-fail .prow-a,
.cin-fail .hero .kicker,
.cin-fail .hero-sub,
.cin-fail .hero .discover,
.cin-fail .hero-socials,
.cin-fail .navbar {
  transform: none !important;
  opacity: 1 !important;
}

/* ==========================================================================
   Flecha serpenteante (detrás del contenido, encima de las partículas)
   ========================================================================== */
.cin {
  position: relative;
}

.snake {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}

.snake-path,
.snake-head {
  fill: none;
  stroke: var(--accent);
  stroke-width: var(--sw, 15px);
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.snake-path {
  opacity: 0.92;
}

.snake-head {
  transition: opacity 0.3s;
}

/* Secciones oscuras más translúcidas para que la flecha se vea en todo el fondo */
.cin .dark {
  background: rgba(10, 15, 38, 0.42);
}

/* ==========================================================================
   Modal de proyectos: apertura y cierre animados
   ========================================================================== */
.cin .modal {
  transition: opacity 0.6s var(--cin-ease), visibility 0.6s;
}

.cin .modal-overlay {
  backdrop-filter: blur(0px);
  transition: backdrop-filter 0.6s var(--cin-ease);
}

.cin .modal.open .modal-overlay {
  backdrop-filter: blur(10px);
}

/* Cierre (rápido, hacia adentro) */
.cin .modal-card {
  clip-path: inset(46% 6% 46% 6% round 22px);
  transform: translateY(50px) scale(0.94) rotate(-1deg);
  transition: clip-path 0.5s cubic-bezier(0.7, 0, 0.84, 0), transform 0.5s cubic-bezier(0.7, 0, 0.84, 0);
}

/* Apertura (expansiva) */
.cin .modal.open .modal-card {
  clip-path: inset(0% 0% 0% 0% round 22px);
  transform: none;
  transition: clip-path 1.05s var(--cin-ease), transform 1.05s var(--cin-ease);
}

.cin .modal-media img {
  transform: scale(1.35);
  transition: transform 0.5s ease-in;
}

.cin .modal.open .modal-media img {
  transform: scale(1);
  transition: transform 1.6s var(--cin-ease) 0.05s;
}

.cin .modal-body>* {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.25s, transform 0.3s ease-in;
}

.cin .modal.open .modal-body>* {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--cin-ease), transform 0.9s var(--cin-ease);
}

.cin .modal.open .modal-body>*:nth-child(1) {
  transition-delay: 0.3s;
}

.cin .modal.open .modal-body>*:nth-child(2) {
  transition-delay: 0.38s;
}

.cin .modal.open .modal-body>*:nth-child(3) {
  transition-delay: 0.46s;
}

.cin .modal.open .modal-body>*:nth-child(4) {
  transition-delay: 0.54s;
}

.cin .modal-close {
  transform: scale(0) rotate(-90deg);
  transition: transform 0.3s ease-in;
}

.cin .modal.open .modal-close {
  transform: none;
  transition: transform 0.7s var(--cin-ease) 0.45s;
}

.cin .modal.open .modal-close:hover {
  transform: rotate(90deg);
}

/* ==========================================================================
   Especialidades: rejilla preparada para animaciones individuales
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {

  .cin .modal-card,
  .cin .modal-media img,
  .cin .modal-body>*,
  .cin .modal-close {
    transition: none !important;
  }
}

/* ==========================================================================
   v2 · Especialidades como tarjetas flotando en el espacio
   ========================================================================== */
/* Columna central desfasada: sensación de profundidad */
/* Punta de flecha sólida con esquinas redondeadas */
.snake-head {
  fill: var(--accent);
  stroke-width: calc(var(--sw, 15px) * 0.55);
}

/* Cursor: sin punto naranja sobre los proyectos */
.cur-ring.is-view+.cur-dot {
  opacity: 0 !important;
}

/* ==========================================================================
   v3 · Ajustes
   ========================================================================== */
/* Flecha: sin escalado de trazo (evita el desfase de la punta al bajar) */
.snake-path,
.snake-head {
  vector-effect: none;
}

/* Tarjetas de servicios y testimonios: un tono por encima del fondo */
/* El hover heredado de landing.css oscurecía el texto */
/* ==========================================================================
   v4 · Tipografía minimalista / tech: Geist + Geist Mono
   ========================================================================== */
:root {
  --font-serif: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-script: 'Geist', system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

  /* Escala más contenida para convivir con partículas y flecha */
  --fs-base: clamp(0.98rem, 0.95rem + 0.15vw, 1.06rem);
  --fs-md: clamp(1.05rem, 0.98rem + 0.3vw, 1.25rem);
  --fs-lg: clamp(1.25rem, 1.1rem + 0.7vw, 1.7rem);
  --fs-xl: clamp(1.7rem, 1.35rem + 1.6vw, 2.6rem);
  --fs-2xl: clamp(2.1rem, 1.5rem + 2.8vw, 3.8rem);
  --fs-3xl: clamp(2.6rem, 1.6rem + 4.6vw, 5.8rem);
}

.cin body,
body.cin {
  font-family: var(--font-body);
  font-feature-settings: 'ss01', 'cv11';
  letter-spacing: -0.005em;
}

/* Títulos: peso medio, interletrado cerrado */
.cin h1,
.cin h2,
.cin h3,
.cin .h-serif,
.cin .modal-title {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.cin .hero h1 {
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.98;
  max-width: 13ch;
  text-transform: none;
}

.cin h3 {
  letter-spacing: -0.02em;
}

/* Antes "script": ahora acento fino en naranja, mismo tamaño */
.cin .script {
  font-family: var(--font-serif) !important;
  font-weight: 300 !important;
  font-size: 1em !important;
  font-style: normal !important;
  letter-spacing: -0.04em;
  color: var(--accent);
  text-transform: none;
}

/* Etiquetas, números y metadatos en mono */
.cin .kicker,
.cin .kicker .n,
.cin .modal-cat,
.cin .field label,
.cin .tst-who span,

.cin .discover .ring text,
.cin .footer-copy,
.cin .cur-ring span {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  font-weight: 400;
}

.cin .kicker {
  font-size: 0.74rem;
  text-transform: uppercase;
}

/* Testimonios: sin itálica serif */
.cin .tst-card blockquote,
.cin .modal-quote {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Preloader y marquee */
.cin .preloader-count {
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: -0.04em;
}

/* Botones */
.cin .btn {
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   v5 · Secciones a pantalla completa (mínimo 100vh)
   ========================================================================== */
.cin main>section {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cin #contacto {
  justify-content: flex-start;
}

.cin #contacto>.section {
  margin-block: auto;
}

/* ==========================================================================
   v5 · FAQ: acordeón horizontal
   ========================================================================== */
.hacc {
  display: flex;
  gap: clamp(0.6rem, 1.2vw, 1rem);
  height: min(64vh, 560px);
  margin-top: var(--sp-lg);
}

.hacc-panel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  border-radius: 26px;
  background: #0f1638;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  isolation: isolate;
  transition: flex-grow 0.9s var(--cin-ease), border-color 0.5s, background 0.5s;
}

.hacc-panel::before {
  /* resplandor naranja del panel activo */
  content: '';
  position: absolute;
  width: 140%;
  aspect-ratio: 1;
  right: -70%;
  top: -70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 168, 58, 0.28), transparent 62%);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.8s, transform 1.2s var(--cin-ease);
  z-index: -1;
  pointer-events: none;
}

.hacc-panel:not(.is-open):hover {
  background: #141c46;
  border-color: rgba(255, 255, 255, 0.2);
}

.hacc-panel.is-open {
  flex-grow: 4.2;
  border-color: rgba(249, 168, 58, 0.5);
  background: #121a42;
}

.hacc-panel.is-open::before {
  opacity: 1;
  transform: none;
}

.hacc-h {
  position: absolute;
  inset: 0;
  margin: 0;
}

.hacc-tab {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: clamp(1.1rem, 2vw, 1.8rem);
  text-align: left;
  color: var(--fg);
  cursor: pointer;
}

.is-open .hacc-tab {
  cursor: default;
}

.hacc-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--faint);
  transition: color 0.4s;
}

.is-open .hacc-num,
.hacc-panel:hover .hacc-num {
  color: var(--accent);
}

.hacc-q {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  max-height: calc(100% - 4rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: opacity 0.35s;
}

.is-open .hacc-q {
  opacity: 0;
}

.hacc-plus {
  position: absolute;
  top: clamp(1.1rem, 2vw, 1.8rem);
  right: clamp(1.1rem, 2vw, 1.8rem);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  transition: transform 0.6s var(--cin-ease), background 0.4s, border-color 0.4s;
}

.hacc-plus::before,
.hacc-plus::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.5px;
  margin: -0.75px 0 0 -6px;
  background: currentColor;
}

.hacc-plus::after {
  transform: rotate(90deg);
}

.is-open .hacc-plus {
  transform: rotate(135deg);
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0f26;
}

.hacc-body {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(640px, 62vw);
  padding: clamp(1.4rem, 3vw, 2.6rem);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.3s, transform 0.4s;
  pointer-events: none;
}

.is-open .hacc-body {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--cin-ease) 0.4s, transform 0.9s var(--cin-ease) 0.4s;
  pointer-events: auto;
}

.hacc-title {
  font-size: var(--fs-xl);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
  max-width: 17ch;
  color: var(--fg);
}

.hacc-body p:not(.hacc-title) {
  margin-top: 1rem;
  color: var(--mut);
  font-size: var(--fs-md);
  max-width: 46ch;
}

/* Móvil: acordeón vertical */
@media (max-width: 760px) {
  .hacc {
    flex-direction: column;
    height: auto;
  }

  .hacc-panel,
  .hacc-panel.is-open {
    flex: none;
  }

  .hacc-h {
    position: relative;
  }

  .hacc-tab {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding-right: 4.2rem;
  }

  .is-open .hacc-tab {
    cursor: pointer;
  }

  .hacc-q {
    writing-mode: horizontal-tb;
    transform: none;
    white-space: normal;
    max-height: none;
  }

  .is-open .hacc-q {
    opacity: 1;
    color: var(--accent);
  }

  .hacc-plus {
    top: 50%;
    margin-top: -17px;
  }

  .hacc-body {
    position: relative;
    width: auto;
    padding: 0;
    display: grid;
    grid-template-rows: 0fr;
    transform: none;
    transition: grid-template-rows 0.6s var(--cin-ease), opacity 0.4s;
  }

  .is-open .hacc-body {
    grid-template-rows: 1fr;
    transition: grid-template-rows 0.6s var(--cin-ease), opacity 0.5s 0.1s;
  }

  .hacc-inner {
    overflow: hidden;
    padding: 0 1.3rem;
  }

  .is-open .hacc-inner {
    padding-bottom: 1.4rem;
  }

  .hacc-title {
    display: none;
  }

  .hacc-body p:not(.hacc-title) {
    margin-top: 0;
  }
}

/* ==========================================================================
   v6 · Testimonios sobrios: uno al centro, los demás asomando por los bordes
   ========================================================================== */
.tst-section {
  overflow: hidden;
}

.tst-section .tst-head {
  text-align: center;
  margin-bottom: var(--sp-lg);
}

.tst-section .tst-head .kicker {
  justify-content: center;
}

.tst-section .tst-head h2 {
  max-width: 18ch;
  margin-inline: auto;
}

/* Sin JS: fila desplazable con snap */
.tst-stage {
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 2rem 11vw;
}

.tst-stage::-webkit-scrollbar {
  display: none;
}

.tst-track {
  display: flex;
  gap: clamp(1.2rem, 3vw, 2.6rem);
  width: max-content;
}

/* Con JS: el scroll mueve la fila */
.tst-js .tst-stage {
  overflow: hidden;
  scroll-snap-type: none;
  padding: 2rem 0;
}

.tst-js .tst-track {
  will-change: transform;
}

.tst-slide {
  flex: none;
  width: min(660px, 80vw);
  margin: 0;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.28) 55%, rgba(0, 0, 0, 0.04) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 40px 80px -45px rgba(0, 0, 0, 0.9);
  scroll-snap-align: center;
  transform-origin: center;
  transition: border-color 0.5s;
}

.tst-slide.is-active {
  border-color: rgba(255, 255, 255, 0.18);
}

.tst-slide blockquote {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1.08rem, 0.98rem + 0.55vw, 1.42rem);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.tst-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.tst-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.tst-id b {
  display: block;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.tst-id span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--mut);
  margin-top: 0.15rem;
}

.tst-stars {
  margin-left: auto;
  padding: 0.35em 0.85em;
  border-radius: 999px;
  border: 1px solid rgba(249, 168, 58, 0.35);
  background: rgba(249, 168, 58, 0.06);
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 3px;
}

@media (max-width: 560px) {
  .tst-stars {
    margin-left: 0;
  }
}

/* ==========================================================================
   v7 · Testimonios por slides + FAQ con el mismo fondo de tarjeta
   ========================================================================== */
.tst-track {
  position: relative;
}

.tst-ui {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--faint);
}

.tst-count b {
  color: var(--fg);
  font-weight: 500;
}

.tst-dots {
  display: flex;
  gap: 0.45rem;
}

.tst-dots i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  transition: width 0.6s var(--cin-ease), background 0.4s;
}

.tst-dots i.on {
  width: 26px;
  background: var(--accent);
}

/* FAQ: mismo fondo que las tarjetas de testimonios */
.hacc-panel {
  background: linear-gradient(160deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.28) 55%, rgba(0, 0, 0, 0.04) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 40px 80px -45px rgba(0, 0, 0, 0.9);
}

.hacc-panel:not(.is-open):hover {
  background: linear-gradient(160deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.34) 55%, rgba(0, 0, 0, 0.08) 100%);
  border-color: rgba(255, 255, 255, 0.18);
}

.hacc-panel.is-open {
  background: linear-gradient(160deg, rgba(0, 0, 0, 0.66) 0%, rgba(0, 0, 0, 0.3) 55%, rgba(0, 0, 0, 0.05) 100%);
  border-color: rgba(249, 168, 58, 0.45);
}

/* ==========================================================================
   v8 · Centrado vertical robusto (también cuando GSAP fija la sección)
   ========================================================================== */
.cin main section.section,
.cin main section.dark,
.cin .tst-section {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Los testimonios quedan fijos: reservar el alto del navbar para que el título no quede debajo */
.cin .tst-section {
  box-sizing: border-box;
  padding-top: calc(var(--nav-h, 84px) + 1rem);
  padding-bottom: 2rem;
}

/* ==========================================================================
   v9 · Nuestra agencia: pantalla dividida + collage en profundidad
   ========================================================================== */
.team-section {
  position: relative;
  padding-block: clamp(5rem, 10vw, 9rem);
  overflow: hidden;
}

.team-bgname {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 0;
}

.team-bgname span {
  grid-area: 1 / 1;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(5rem, 19vw, 20rem);
  letter-spacing: -0.06em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.11);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(6%) scale(0.97);
  transition: opacity 0.9s var(--cin-ease), transform 1.1s var(--cin-ease);
}

.team-bgname span.on {
  opacity: 1;
  transform: none;
}

.team-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.team-copy {
  position: sticky;
  top: 30vh;
}

.team-copy h2 {
  max-width: 11ch;
}

.team-copy p {
  color: var(--mut);
  font-size: var(--fs-md);
  margin-top: var(--sp-sm);
  max-width: 38ch;
}

.team-copy .btn {
  margin-top: var(--sp-md);
}

.team-collage {
  position: relative;
  height: clamp(760px, 118vh, 1100px);
}

.tm {
  position: absolute;
  margin: 0;
}

.tm-1 {
  top: 0;
  left: 2%;
  width: 47%;
  z-index: 2;
}

.tm-2 {
  top: 21%;
  right: 0;
  width: 44%;
  z-index: 3;
}

.tm-3 {
  top: 56%;
  left: 13%;
  width: 45%;
  z-index: 1;
}

.tm-photo {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 22px;
  overflow: hidden;
  background: #0f1638;
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.9);
  transform-style: preserve-3d;
  will-change: transform, clip-path;
}

.tm-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition: filter 0.8s var(--cin-ease);
  will-change: transform;
}

.tm:hover .tm-photo img {
  filter: grayscale(0);
}

.tm-tag {
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.25));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--cin-ease), transform 0.6s var(--cin-ease);
}

.tm:hover .tm-tag,
.tm:focus-within .tm-tag {
  opacity: 1;
  transform: none;
}

.tm-id b {
  display: block;
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  color: #fff;
}

.tm-id span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.15rem;
}

.tm-in {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: grid;
  place-items: center;
  color: #fff;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.tm-in svg {
  width: 16px;
  height: 16px;
}

.tm-in:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0f26;
}

/* Táctil: la etiqueta siempre visible */
@media (hover: none) {
  .tm-tag {
    opacity: 1;
    transform: none;
  }
}

/* Móvil / tablet: texto arriba y retratos en fila deslizable */
@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-copy {
    position: static;
  }

  .team-collage {
    height: auto;
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-inline: calc(-1 * (100vw - 100%) / 2);
    padding-inline: calc((100vw - 100%) / 2);
  }

  .team-collage::-webkit-scrollbar {
    display: none;
  }

  .tm {
    position: relative;
    inset: auto;
    width: min(72vw, 320px) !important;
    flex: none;
    scroll-snap-align: center;
  }

  .team-bgname span {
    font-size: 26vw;
  }
}

/* ==========================================================================
   v10 · Nuestra agencia: texto fijo + un integrante grande por scroll
   ========================================================================== */
.team-copy h2 {
  font-size: var(--fs-2xl);
  max-width: 11ch;
}

.team-ui {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: var(--sp-lg);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--faint);
}

@media (min-width: 901px) {
  .team-js.team-section {
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-block: calc(var(--nav-h, 84px) + 1rem) 2rem;
    box-sizing: border-box;
  }

  .team-js .team-grid {
    align-items: center;
    width: var(--wrap);
  }

  .team-js .team-copy {
    position: static;
  }

  .team-js .team-collage {
    height: min(78svh, 780px);
  }

  .team-js .tm {
    inset: 0;
    width: auto !important;
    margin: 0;
  }

  .team-js .tm-photo {
    height: 100%;
    aspect-ratio: auto;
  }

  .team-js .tm-tag {
    opacity: 1;
    transform: none;
    left: 1.2rem;
    right: 1.2rem;
    bottom: 1.2rem;
    padding: 1rem 1.2rem;
    border-radius: 16px;
  }

  .team-js .tm-id b {
    font-size: clamp(1.15rem, 1rem + 0.6vw, 1.6rem);
  }

  .team-js .tm-id span {
    font-size: 0.78rem;
  }

  .team-js .tm:not(.is-active) {
    pointer-events: none;
  }
}

/* Hover: vibración suave + color (usa translate/rotate/scale, no choca con GSAP) */
@keyframes tm-wobble {

  0%,
  100% {
    translate: 0 0;
    rotate: 0deg;
  }

  25% {
    translate: 1.5px -2px;
    rotate: -0.45deg;
  }

  50% {
    translate: -1.5px 1.5px;
    rotate: 0.35deg;
  }

  75% {
    translate: 2px 1px;
    rotate: -0.25deg;
  }
}

.tm:hover .tm-photo {
  animation: tm-wobble 1.9s ease-in-out infinite;
}

.tm-photo img {
  transition: filter 0.8s var(--cin-ease), scale 1s var(--cin-ease);
}

.tm:hover .tm-photo img {
  scale: 1.04;
}

@media (prefers-reduced-motion: reduce) {
  .tm:hover .tm-photo {
    animation: none;
  }
}

/* ==========================================================================
   v11 · Proyectos: lista editorial con preview flotante
   ========================================================================== */
.plist {
  margin-top: var(--sp-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.prow {
  position: relative;
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr) auto 2rem;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 2rem);
  padding: clamp(1.1rem, 2.4vw, 2rem) 0.25rem;
  color: var(--fg);
  transition: opacity 0.45s var(--cin-ease);
}

/* línea superior que se dibuja al entrar */
.prow::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.3s var(--cin-ease);
}

.prow.is-in::before {
  transform: scaleX(1);
}

.prow>span {
  overflow: hidden;
  display: block;
}

.prow-n,
.prow-c {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}

.prow-c {
  color: var(--mut);
}

.prow-t {
  font-weight: 500;
  font-size: clamp(2rem, 1.2rem + 3.6vw, 5rem);
  letter-spacing: -0.045em;
  line-height: 1.04;
  padding-bottom: 0.04em;
  transition: color 0.4s var(--cin-ease), transform 0.6s var(--cin-ease);
}

.prow-a {
  font-size: 1.4rem;
  color: var(--faint);
  text-align: right;
  transition: color 0.4s, transform 0.5s var(--cin-ease);
}

.prow-thumb {
  display: none;
}

@media (hover: hover) {
  .plist:hover .prow {
    opacity: 0.32;
  }

  .plist .prow:hover {
    opacity: 1;
  }

  .prow:hover .prow-t {
    color: var(--accent);
    transform: translateX(14px);
  }

  .prow:hover .prow-a {
    color: var(--accent);
    transform: translate(4px, -4px);
  }
}

/* Preview que sigue al cursor */
.plist-pv {
  position: fixed;
  left: 0;
  top: 0;
  width: clamp(260px, 26vw, 400px);
  aspect-ratio: 10 / 7;
  border-radius: 18px;
  overflow: hidden;
  pointer-events: none;
  z-index: 50;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9);
  background: #0f1638;
}

.plist-pv img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

/* Táctil / móvil: miniatura en cada fila */
@media (hover: none),
(max-width: 760px) {
  .prow {
    grid-template-columns: minmax(0, 1fr) 84px;
    grid-template-areas: "t img" "c img";
    row-gap: 0.3rem;
  }

  .prow-n,
  .prow-a {
    display: none !important;
  }

  .prow-t {
    grid-area: t;
    font-size: clamp(1.6rem, 7vw, 2.4rem);
  }

  .prow-c {
    grid-area: c;
  }

  .prow-thumb {
    display: block;
    grid-area: img;
    width: 84px;
    height: 64px;
    object-fit: cover;
    border-radius: 10px;
  }

  .plist-pv {
    display: none;
  }
}

/* v12 · Título de contacto con el mismo tamaño que el de testimonios */
.cin .contact-copy h2 {
  font-size: 1.5em;
  line-height: 1.02;
}

.cin .contact-copy h2 .script {
  font-size: 1em !important;
}

/* ==========================================================================
   v13 · Servicios: línea de tiempo vertical
   ========================================================================== */
.svc-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--sp-xl);
}

.svc-head .kicker {
  justify-content: center;
}

.svc-head h2 {
  max-width: 16ch;
  margin-inline: auto;
}

.svc-head p {
  color: var(--mut);
  font-size: var(--fs-md);
  max-width: 50ch;
  margin: var(--sp-sm) auto 0;
}

.svc-tl {
  position: relative;
  max-width: 1040px;
  margin-inline: auto;
}

.svc-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.svc-line i {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(249, 168, 58, 0.2), var(--accent));
  transform: scaleY(0);
  transform-origin: top;
}

.svc-row {
  position: relative;
  display: flex;
  padding-block: clamp(1rem, 2.4vw, 2rem);
}

.svc-row.is-l {
  justify-content: flex-start;
}

.svc-row.is-r {
  justify-content: flex-end;
}

.svc-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: #060919;
  border: 2px solid rgba(255, 255, 255, 0.25);
  z-index: 2;
  transition: border-color 0.5s, background 0.5s, box-shadow 0.6s;
}

.svc-row.is-on .svc-dot {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(249, 168, 58, 0.15), 0 0 24px rgba(249, 168, 58, 0.6);
}

.svc-card {
  position: relative;
  width: calc(50% - clamp(2rem, 4vw, 3.5rem));
  padding: clamp(1.4rem, 2.6vw, 2rem);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.28) 55%, rgba(0, 0, 0, 0.04) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 40px 80px -45px rgba(0, 0, 0, 0.9);
  transition: border-color 0.45s, transform 0.6s var(--cin-ease);
}

/* Pico que apunta a la línea */
.svc-card::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.09);
  transform: rotate(45deg);
}

.is-l .svc-card::after {
  right: -7px;
  border-left: 0;
  border-bottom: 0;
}

.is-r .svc-card::after {
  left: -7px;
  border-right: 0;
  border-top: 0;
}

.svc-card:hover {
  border-color: rgba(249, 168, 58, 0.45);
  transform: translateY(-4px);
}

.svc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}

.svc-ic {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(249, 168, 58, 0.35);
  color: var(--accent);
}

.svc-ic svg {
  width: 21px;
  height: 21px;
}

.svc-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--faint);
}

.svc-card h3 {
  font-size: var(--fs-lg);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.svc-card p {
  margin-top: 0.5rem;
  color: var(--mut);
  font-size: var(--fs-base);
}

.svc-cta {
  text-align: center;
  margin-top: var(--sp-lg);
}

/* Móvil: línea a la izquierda, todas las tarjetas a la derecha */
@media (max-width: 900px) {

  .svc-line,
  .svc-dot {
    left: 14px;
  }

  .svc-row.is-l,
  .svc-row.is-r {
    justify-content: flex-end;
  }

  .svc-card {
    width: calc(100% - 44px);
  }

  .is-l .svc-card::after,
  .is-r .svc-card::after {
    left: -7px;
    right: auto;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-right: 0;
    border-top: 0;
  }
}

/* ==========================================================================
   v14 · Nuestra agencia en móvil: sección fija, un integrante por scroll
   ========================================================================== */
@media (max-width: 900px) {
  .team-js.team-section {
    height: 100svh;
    min-height: 100svh;
    display: flex;
    align-items: stretch;
    padding: calc(var(--nav-h, 74px) + 0.6rem) 0 1.2rem;
    box-sizing: border-box;
  }

  .team-js .team-grid {
    width: var(--wrap);
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .team-js .team-copy {
    position: static;
    flex: none;
  }

  .team-js .team-copy h2 {
    font-size: clamp(1.7rem, 7vw, 2.3rem);
    max-width: none;
  }

  .team-js .team-copy p {
    font-size: 0.95rem;
    margin-top: 0.5rem;
  }

  .team-js .team-copy .btn {
    display: none;
  }

  .team-js .team-ui {
    margin-top: 0.8rem;
  }

  .team-js .team-grid {
    align-items: stretch;
  }

  .team-js .team-collage {
    position: relative;
    width: 100%;
    align-self: stretch;
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    display: block;
    overflow: visible;
    margin: 0;
    padding: 0;
    scroll-snap-type: none;
  }

  .team-js .tm {
    position: absolute;
    inset: 0;
    width: auto !important;
    margin: 0;
  }

  .team-js .tm-photo {
    height: 100%;
    aspect-ratio: auto;
  }

  .team-js .tm-tag {
    opacity: 1;
    transform: none;
    left: 0.8rem;
    right: 0.8rem;
    bottom: 0.8rem;
  }

  .team-js .tm:not(.is-active) {
    pointer-events: none;
  }

  .team-js .team-bgname span {
    font-size: 30vw;
  }
}

/* v15 · Móvil: retrato de agencia a la mitad de alto y bloque centrado */
@media (max-width: 900px) {
  .team-js .team-grid {
    justify-content: center;
  }

  .team-js .team-collage {
    flex: none;
    height: clamp(240px, 60svh, 440px);
  }
}
/* Las tarjetas entran desplazadas en X: no deben ensanchar la página */
.svc-section {
  overflow-x: clip;
}
