/* ============================================================
   VERTICAL — Landing page
   Paleta: negro #121212 · amarillo #F5A623 · blanco #FFFFFF
   ============================================================ */
:root {
  color-scheme: dark light;
  --black: #121212;
  --black-soft: #1c1c1c;
  --yellow: #f2a71b;
  --yellow-bg: #f8b433;
  --white: #ffffff;
  --gray: #2a2a2a;
  --font: 'Poppins', system-ui, sans-serif;
  --nav-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }

/* Texto solo para lectores de pantalla y buscadores */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 400;
  background: var(--yellow); color: var(--black);
  padding: 12px 20px; border-radius: 0 0 8px 0;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; }
.contacto__address a { color: inherit; text-decoration: none; }
.contacto__address a:hover { color: var(--yellow); }

/* Los colores del sitio son fijos por diseño. Este bloque, aunque repite los
   valores, es lo que hace que Samsung Internet detecte que la página ya
   contempla el tema oscuro y no la recoloree por su cuenta. */
@media (prefers-color-scheme: dark) {
  body { background: var(--black); color: var(--white); }
  .problema, .trabajos, .cta { background: var(--white); }
  .portfolio { background: var(--yellow-bg); }
}

/* Respeta a quien pide menos movimiento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Animaciones de entrada ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .24s; }
.delay-3 { transition-delay: .36s; }
.delay-4 { transition-delay: .48s; }

/* ---------- Botones imagen ---------- */
.btn-img { display: inline-block; transition: transform .3s ease, filter .3s ease; }
.btn-img:hover { transform: translateY(-3px) scale(1.03); filter: brightness(1.08) drop-shadow(0 10px 24px rgba(242,167,27,.35)); }
.btn-img img { width: auto; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 14px 0;
  transition: background .4s ease, padding .4s ease, box-shadow .4s ease;
}
.nav.scrolled {
  background: rgba(18,18,18,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 8px 0;
  box-shadow: 0 6px 24px rgba(0,0,0,.45);
}
.nav__inner {
  max-width: 1280px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; gap: 40px;
}
.nav__logo img { height: 34px; width: auto; }
.nav__menu { display: flex; gap: 30px; margin-left: auto; }
.nav__menu a {
  color: var(--white); text-decoration: none;
  font-size: .82rem; font-weight: 500; letter-spacing: .02em;
  position: relative; padding: 4px 0;
}
.nav__menu a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--yellow);
  transition: width .3s ease;
}
.nav__menu a:hover::after { width: 100%; }
.nav__cta img { height: 42px; width: auto; transition: transform .3s ease; }
.nav__cta:hover img { transform: scale(1.05); }
.nav__burger { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; margin-left: auto; }
.nav__burger span { width: 26px; height: 3px; background: var(--white); border-radius: 2px; transition: .3s; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(18,18,18,.72) 0%, rgba(18,18,18,.55) 50%, rgba(18,18,18,.9) 100%);
}
.hero__marketing {
  position: absolute; z-index: 2; left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  width: 120%; max-width: none; opacity: .35;
  pointer-events: none; mix-blend-mode: screen;
}
.hero__triangles {
  position: absolute; z-index: 3;
  left: 7%; bottom: 16%;
  width: clamp(96px, 11vw, 170px);
  pointer-events: none;
  animation: floatTri 6s ease-in-out infinite;
}
@keyframes floatTri {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-14px) rotate(3deg); }
}
.hero__content {
  position: relative; z-index: 4; text-align: center;
  padding: 140px 24px 80px; max-width: 1180px;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
}
.hero__title { width: min(1080px, 94%); }
.hero__text { width: min(600px, 82%); margin-top: 6px; }
.hero__content .btn-img { margin-top: 14px; }
.hero__content .btn-img img { width: clamp(190px, 17vw, 240px); }
.hero__scroll {
  position: absolute; z-index: 3; bottom: 28px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 44px; border: 2px solid rgba(255,255,255,.6);
  border-radius: 14px;
}
.hero__scroll span {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 9px; border-radius: 3px; background: var(--yellow);
  animation: scrollDot 1.6s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { top: 8px; opacity: 1; }
  70% { top: 24px; opacity: 0; }
  100% { top: 8px; opacity: 0; }
}

/* ============================================================
   PORTFOLIO CATEGORÍAS (fondo amarillo)
   ============================================================ */
.portfolio {
  position: relative; background: var(--yellow-bg);
  padding: clamp(80px, 16.5vw, 340px) 0; overflow: hidden;
}
.portfolio__bg {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 100%; max-width: none; height: auto;
  pointer-events: none;
}
.portfolio__grid {
  position: relative; z-index: 2;
  width: 96%; max-width: 1720px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.pcard {
  position: relative; display: block; aspect-ratio: 1 / 1;
  border-radius: 6px; overflow: hidden;
  transition: transform .4s ease, box-shadow .4s ease;
  cursor: pointer;
}
.pcard:hover { transform: translateY(-10px); box-shadow: 0 24px 48px rgba(0,0,0,.35); }
.pcard__photo { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.pcard:hover .pcard__photo { transform: scale(1.06); }
.pcard__foot {
  --titleH: clamp(22px, 3.2vw, 50px);
  --btnF: clamp(9px, .95vw, 17px);
  position: absolute; left: 0; right: 0; bottom: 7%;
  display: flex; flex-direction: column; align-items: center;
  gap: clamp(7px, 1.1vw, 18px);
  pointer-events: none;
}
/* El título sale de la pieza original, recortado al texto:
   --ar  = ancho de la pieza / alto del texto
   --top = margen superior del texto, como fracción del ancho */
.pcard__title {
  height: var(--titleH);
  width: calc(var(--titleH) * var(--ar));
  background-image: var(--src);
  background-size: 100% auto;
  background-position: 0 calc(-1 * var(--titleH) * var(--ar) * var(--top));
  background-repeat: no-repeat;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,.55));
}
.pcard__btn {
  display: inline-flex; align-items: center; gap: .55em;
  background: var(--yellow); color: #111;
  font-family: var(--font); font-weight: 600; font-size: var(--btnF);
  border-radius: 999px; padding: .42em .42em .42em 1.15em;
  white-space: nowrap; box-shadow: 0 8px 20px rgba(0,0,0,.28);
  transition: transform .3s ease;
}
.pcard__btn svg {
  width: 1.9em; height: 1.9em; padding: .45em;
  background: #fff; border-radius: 50%;
  box-sizing: border-box; flex-shrink: 0;
}
.pcard:hover .pcard__btn { transform: translateY(-3px); }

/* ============================================================
   EL PROBLEMA REAL
   ============================================================ */
.problema {
  position: relative; background: var(--white);
  padding: clamp(70px, 6.5vw, 140px) 0; overflow: hidden;
}
.problema__dots {
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  width: 31%; max-width: none; pointer-events: none;
  z-index: 1;
}
.problema__brainwrap {
  position: absolute; right: 2.5%; top: 50%;
  transform: translateY(-50%);
  width: 33%; z-index: 2; pointer-events: none;
}
.problema__brain {
  width: 100%;
  animation: floatBrain 6s ease-in-out infinite;
}
.problema__inner {
  position: relative; z-index: 3;
  padding-left: 7.8%; padding-right: 38%;
}
.problema__col {
  display: flex; flex-direction: column;
  gap: clamp(12px, 1.6vw, 26px); align-items: flex-start;
  width: 100%; max-width: 940px;
}
.problema__tag { width: 22%; }
.problema__title { width: 100%; }
.problema__line { width: 81%; }
.problema__small { width: 77%; }
@keyframes floatBrain {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-16px) rotate(1deg); }
}

/* ============================================================
   MARCAS — marquee infinito
   ============================================================ */
.marcas { background: var(--black); padding: 70px 0 0; }
.marcas__text { width: min(680px, 90%); margin: 0 auto 48px; }
.marcas .marquee { background: #2e2e2e; padding: 22px 0; }
.marquee { overflow: hidden; position: relative; }
.marquee__track {
  display: flex; align-items: center; width: max-content;
  animation: marquee 70s linear infinite;
}
.marquee__track img { height: clamp(72px, 8vw, 130px); width: auto; max-width: none; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   SERVICIOS
   ============================================================ */
.servicios {
  position: relative; background: #141414;
  padding: clamp(70px, 7vw, 145px) 0; overflow: hidden;
}
.servicios__bg {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 100%; max-width: none; height: auto;
  pointer-events: none;
}
.servicios__grid {
  position: relative; z-index: 2;
  width: 86%; max-width: 1560px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 3.4vw, 62px);
  align-items: center;
}
.servicios__title {
  width: 116%; max-width: none;
  margin-left: -8%; align-self: center;
}
.scard {
  border-radius: 16px;
  transition: transform .35s ease, box-shadow .35s ease;
}
.scard:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(242,167,27,.15);
}

/* ============================================================
   GRILLA DE TRABAJOS (mosaico)
   ============================================================ */
.trabajos { background: var(--white); padding: clamp(50px, 5vw, 100px) 0; }
.trabajos__inner {
  width: 94%; max-width: 1760px; margin: 0 auto;
  display: flex; flex-direction: column;
  gap: clamp(8px, .9vw, 16px);
}
.mosaic {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(8px, .9vw, 16px); align-items: start;
}
.mosaic__col { display: flex; flex-direction: column; gap: clamp(8px, .9vw, 16px); }
.mosaic__pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(8px, .9vw, 16px); }
.tgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(8px, .9vw, 16px); }
.twork {
  width: 100%; border-radius: 8px; cursor: zoom-in;
  transition: transform .35s ease, filter .35s ease;
}
.twork:hover { transform: scale(1.02); filter: brightness(1.06); }

/* ============================================================
   RESEÑAS
   ============================================================ */
.resenas {
  background: #000;
  padding: clamp(50px, 5vw, 100px) 0 clamp(60px, 6vw, 120px);
  overflow: hidden;
}
.resenas__title {
  position: relative; z-index: 1;
  width: 100%; max-width: none;
  margin: 0 0 -18vw;
}
.resenas__carousel {
  position: relative; z-index: 2;
  width: 85%; max-width: 1700px; margin: 0 auto;
}
.resenas__track {
  display: grid; grid-template-columns: repeat(4, 1fr);
  scrollbar-width: none; -ms-overflow-style: none;
  scroll-behavior: smooth;
}
.resenas__track::-webkit-scrollbar { display: none; }
.resena {
  aspect-ratio: 838 / 649;
  background-image: url("../img/p47.webp");
  background-size: 400% 100%;
  background-position: calc(var(--i) * 33.3333%) center;
  background-repeat: no-repeat;
}
.resenas__nav { display: none; justify-content: center; gap: 20px; margin-top: 20px; }
.resenas__arrow {
  background: none; border: 0; cursor: pointer; flex-shrink: 0;
  transition: transform .25s ease;
}
.resenas__arrow img { width: 52px; height: 52px; }
.resenas__arrow:hover { transform: scale(1.12); }
.resenas__arrow:active { transform: scale(.95); }

/* ============================================================
   ¿POR QUÉ VERTICAL?
   ============================================================ */
.porque {
  position: relative; min-height: clamp(520px, 56vw, 920px);
  display: flex; align-items: center; overflow: hidden;
}
.porque__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: grayscale(1) brightness(.82);
}
.porque__overlay { position: absolute; inset: 0; background: rgba(10,10,10,.18); }
.porque__inner {
  position: relative; z-index: 2;
  width: 54%; max-width: 1100px;
  margin-left: auto; margin-right: 12%;
  display: flex; flex-direction: column;
  gap: clamp(14px, 2vw, 42px); align-items: flex-start;
}
.porque__title { width: 80%; align-self: flex-end; }
.porque__text { width: 66%; align-self: flex-start; }

/* ============================================================
   CTA ASESORÍA (fondo blanco)
   ============================================================ */
.cta {
  background: var(--white); text-align: center;
  padding: 110px 24px 0; overflow: hidden;
}
.cta__title { width: min(640px, 90%); margin: 0 auto 34px; }
.cta__text { width: min(820px, 92%); margin: 0 auto 42px; }
.cta .btn-img img { width: clamp(190px, 18vw, 285px); }
.cta__small { width: min(520px, 84%); margin: 34px auto 56px; }
.cta__wave {
  display: block; width: 100%; max-width: none;
  margin-top: 10px;
  transition: opacity 1s ease, transform 1s ease;
}
.cta__wave.reveal { transform: translateY(28px) scale(1.02); }
.cta__wave.reveal.visible { transform: translateY(0) scale(1); }

/* ============================================================
   CONTACTO / FORM
   ============================================================ */
.contacto {
  position: relative; background: #000;
  padding: clamp(80px, 9vw, 175px) 24px clamp(50px, 5vw, 90px);
}
.contacto__inner { width: min(680px, 92%); margin: 0 auto; }
.form { display: flex; flex-direction: column; gap: clamp(28px, 3.4vw, 52px); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; }
.form__field {
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid #4a4a4a; padding-bottom: 10px;
  transition: border-color .3s ease;
}
.form__field:focus-within { border-color: var(--yellow); }
.form__icon { flex-shrink: 0; display: flex; color: #8d8d8d; }
.form__icon svg { width: 24px; height: 24px; }
.form__field input,
.form__field textarea {
  flex: 1; min-width: 0;
  background: none; border: 0; color: var(--white);
  font-family: var(--font); font-size: 1rem;
  padding: 4px 0; resize: none;
}
.form__field input::placeholder,
.form__field textarea::placeholder { color: #9b9b9b; }
.form__field input:focus,
.form__field textarea:focus { outline: none; }
.form__field--msg { padding-top: 30px; align-items: flex-end; }
.form__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 34px; margin-top: 6px;
}
.form__lead {
  font-size: .95rem; color: #cfcfcf; line-height: 1.55;
  max-width: 400px;
}
.form__submit {
  flex-shrink: 0;
  background: var(--yellow); color: var(--black);
  font-family: var(--font); font-weight: 600; font-size: 1rem;
  border: 0; border-radius: 999px; padding: 16px 38px;
  cursor: pointer; transition: transform .3s ease, box-shadow .3s ease;
}
.form__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(242,167,27,.35);
}
.form__submit:disabled {
  opacity: .6; cursor: default;
  transform: none; box-shadow: none;
}
.form__notice { color: var(--yellow); font-size: .9rem; line-height: 1.5; }
.contacto__address {
  margin: clamp(40px, 5vw, 85px) auto 0;
  max-width: 900px; text-align: center;
  font-size: clamp(.92rem, 1.15vw, 1.15rem);
  color: #b8b8b8; line-height: 1.5;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #000; padding: clamp(30px, 3.5vw, 60px) 24px clamp(34px, 4vw, 64px);
  display: flex; align-items: center; justify-content: center;
  gap: 14px; flex-wrap: wrap;
}
.footer p { font-size: clamp(.88rem, 1.15vw, 1.15rem); color: var(--white); }
.footer__logo {
  width: clamp(88px, 9vw, 138px); height: auto;
}

/* ============================================================
   BOTÓN FLOTANTE WHATSAPP
   ============================================================ */
.wa {
  position: fixed; right: 26px; bottom: 26px; z-index: 95;
  display: flex; align-items: center;
  height: 58px; padding: 0 14px;
  background: #25d366; color: #fff;
  border-radius: 999px; text-decoration: none;
  box-shadow: 0 10px 30px rgba(37,211,102,.35);
  transition: transform .3s ease, box-shadow .3s ease;
  animation: waIn .55s .9s backwards cubic-bezier(.2,.8,.3,1);
}
.wa svg { width: 30px; height: 30px; flex-shrink: 0; }
.wa__label {
  font-size: .95rem; font-weight: 600; white-space: nowrap;
  max-width: 0; opacity: 0; overflow: hidden; margin-left: 0;
  transition: max-width .35s ease, opacity .3s ease, margin-left .35s ease;
}
.wa:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(37,211,102,.45);
}
.wa:hover .wa__label { max-width: 170px; opacity: 1; margin-left: 10px; }
@keyframes waIn {
  from { opacity: 0; transform: translateY(20px) scale(.85); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================
   MODAL GALERÍA (varias imágenes por proyecto)
   ============================================================ */
.galpop {
  position: fixed; inset: 0; z-index: 320;
  display: flex; align-items: center; justify-content: center;
  gap: clamp(8px, 2vw, 28px);
  padding: 70px 16px 28px;
}
.galpop[hidden] { display: none; }
.galpop__backdrop {
  position: absolute; inset: 0;
  background: rgba(6,6,6,.93);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: fadeIn .3s ease;
}
.galpop__stage {
  position: relative; z-index: 2; margin: 0;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  max-width: min(720px, 100%);
  animation: popIn .45s cubic-bezier(.2,.8,.3,1);
}
.galpop__stage img {
  max-height: 76vh; width: auto; max-width: 100%;
  border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.6);
  touch-action: pan-y;
}
.galpop__counter {
  color: #cfcfcf; font-size: .82rem; letter-spacing: .1em;
}
.galpop__arrow {
  position: relative; z-index: 2;
  background: none; border: 0; cursor: pointer; flex-shrink: 0;
  transition: transform .25s ease;
}
.galpop__arrow img { width: 52px; height: 52px; }
.galpop__arrow:hover { transform: scale(1.12); }
.galpop__arrow:active { transform: scale(.95); }
.galpop__close {
  position: absolute; top: 18px; right: 26px; z-index: 3;
  background: none; border: 0; color: var(--white);
  font-size: 2.8rem; line-height: 1; cursor: pointer;
  transition: transform .25s ease, color .25s ease;
}
.galpop__close:hover { transform: rotate(90deg); color: var(--yellow); }
.twork[data-galeria] { cursor: pointer; }

/* ============================================================
   MODAL PDF (presentaciones de proyectos)
   ============================================================ */
.pdfpop {
  position: fixed; inset: 0; z-index: 310;
  display: flex; align-items: center; justify-content: center;
  padding: 28px 24px;
}
.pdfpop[hidden] { display: none; }
.pdfpop__backdrop {
  position: absolute; inset: 0;
  background: rgba(6,6,6,.92);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: fadeIn .3s ease;
}
.pdfpop__box {
  position: relative; z-index: 2;
  width: min(1040px, 100%); height: min(90vh, 900px);
  display: flex; flex-direction: column;
  background: #1b1b1b; border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  animation: popIn .45s cubic-bezier(.2,.8,.3,1);
}
.pdfpop__bar {
  display: flex; align-items: center; gap: 18px;
  padding: 12px 14px 12px 20px; background: #141414;
  border-bottom: 1px solid #2c2c2c; flex-shrink: 0;
}
.pdfpop__title {
  font-size: .92rem; font-weight: 600; color: var(--white);
  margin-right: auto; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.pdfpop__link {
  font-size: .82rem; color: var(--yellow); text-decoration: none;
  white-space: nowrap; transition: opacity .25s ease;
}
.pdfpop__link:hover { opacity: .75; }
.pdfpop__close {
  background: none; border: 0; color: var(--white);
  font-size: 1.9rem; line-height: 1; cursor: pointer;
  padding: 0 4px; transition: transform .25s ease, color .25s ease;
}
.pdfpop__close:hover { transform: rotate(90deg); color: var(--yellow); }
.pdfpop__frame { flex: 1; background: #2a2a2a; min-height: 0; }
.pdfpop__frame iframe { width: 100%; height: 100%; border: 0; }
.pdfpop__scroll { width: 100%; height: 100%; overflow-y: auto; }
.pdfpop__scroll img { width: 100%; display: block; }
.twork[data-doc], .twork[data-yt] { cursor: pointer; }

/* ============================================================
   POPUP DEMO REEL (video al cargar)
   ============================================================ */
.videopop {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 70px 24px 24px;
}
.videopop[hidden] { display: none; }
.videopop__backdrop {
  position: absolute; inset: 0;
  background: rgba(6,6,6,.9);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: fadeIn .35s ease;
}
.videopop__box {
  position: relative; z-index: 2; width: min(980px, 100%);
  animation: popIn .5s cubic-bezier(.2,.8,.3,1);
}
.videopop__box--vertical { width: auto; }
.videopop__box--vertical .videopop__frame {
  aspect-ratio: 9 / 16;
  height: min(78vh, 760px); width: auto; margin: 0 auto;
}
.videopop__frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: 14px; overflow: hidden; background: #000;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.videopop__frame iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.videopop__close {
  position: absolute; top: -52px; right: 0;
  background: none; border: 0; color: var(--white);
  font-size: 2.8rem; line-height: 1; cursor: pointer;
  transition: transform .25s ease, color .25s ease;
}
.videopop__close:hover { transform: rotate(90deg); color: var(--yellow); }
@keyframes popIn {
  from { opacity: 0; transform: translateY(26px) scale(.96); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8,8,8,.92);
  display: flex; align-items: center; justify-content: center;
  padding: 40px; animation: fadeIn .25s ease;
}
.lightbox[hidden] { display: none; }
.lightbox__img { max-width: 92vw; max-height: 88vh; width: auto; border-radius: 12px; }
.lightbox__close {
  position: absolute; top: 18px; right: 26px;
  background: none; border: 0; color: var(--white);
  font-size: 3rem; line-height: 1; cursor: pointer;
  transition: transform .25s ease, color .25s ease;
}
.lightbox__close:hover { transform: rotate(90deg); color: var(--yellow); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .portfolio__grid { grid-template-columns: repeat(2, 1fr); }
  .pcard__foot { --titleH: clamp(30px, 5vw, 70px); --btnF: clamp(11px, 1.5vw, 20px); }
  .servicios__grid { grid-template-columns: repeat(2, 1fr); }
  .servicios__title { grid-column: 1 / -1; width: 55%; margin-left: 0; }
  .mosaic { grid-template-columns: 1fr 1fr; }
  .mosaic__col:nth-child(3) { grid-column: 1 / -1; }
  .mosaic__col:nth-child(3) > .twork { width: 60%; align-self: flex-start; }
  .problema__inner { padding-right: 34%; }
  .problema__brainwrap { width: 36%; right: 1%; }
  .problema__dots { width: 34%; }
  .porque__inner { width: 72%; margin-right: 8%; }
}

@media (max-width: 720px) {
  :root { --nav-h: 64px; }
  .nav__menu { 
    position: fixed; inset: 0; background: rgba(14,14,14,.97);
    flex-direction: column; align-items: center; justify-content: center;
    gap: 34px; transform: translateX(100%); transition: transform .4s ease;
    margin-left: 0;
  }
  .nav__menu.open { transform: translateX(0); }
  .nav__menu a { font-size: 1.3rem; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; z-index: 110; }
  .nav__burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav__burger.open span:nth-child(2) { opacity: 0; }
  .nav__burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .hero__content { padding-top: 120px; gap: 18px; }
  .hero__title { width: 96%; }
  .hero__text { width: 92%; }
  .hero__triangles { left: 6%; bottom: 9%; width: 74px; }
  .hero__content .btn-img img { width: 175px; }
  .portfolio { padding: 70px 0; }
  .portfolio__grid { width: 90%; grid-template-columns: 1fr; gap: 18px; }
  .pcard__foot { --titleH: clamp(30px, 8vw, 64px); --btnF: clamp(12px, 3vw, 20px); }
  .portfolio__bg { width: 180%; }
  .problema { padding: 60px 0 70px; }
  .problema__inner { padding: 0 6%; }
  .problema__brainwrap {
    position: static; transform: none;
    width: 74%; margin: 0 auto 22px;
  }
  .problema__dots { width: 46%; opacity: .9; }
  .problema__tag { width: 45%; }
  .problema__line { width: 96%; }
  .problema__small { width: 100%; }
  .servicios { padding: 70px 0; }
  .servicios__grid { width: 90%; grid-template-columns: 1fr; gap: 20px; }
  .servicios__title { width: 78%; margin-bottom: 6px; }
  .servicios__bg { width: 220%; }
  .mosaic { grid-template-columns: 1fr; }
  .mosaic__col:nth-child(3) { grid-column: auto; }
  .mosaic__col:nth-child(3) > .twork { width: 100%; }
  .tgrid { grid-template-columns: 1fr 1fr; }
  .resenas__title { margin-bottom: -15vw; }
  .resenas__carousel { width: 100%; }
  .resenas__track {
    display: flex; overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .resena { flex: 0 0 92%; scroll-snap-align: center; }
  .resena:first-child { margin-left: 4%; }
  .resena:last-child { margin-right: 4%; }
  .resenas__nav { display: flex; }
  .resenas__arrow img { width: 44px; height: 44px; }
  .porque { min-height: 78vw; }
  .porque__inner { width: 88%; margin: 0 auto; }
  .porque__title { width: 100%; align-self: flex-start; }
  .porque__text { width: 94%; }
  .cta { padding-top: 80px; }
  .cta .btn-img img { width: 175px; }
  .contacto { padding-top: 70px; }
  .videopop { padding: 24px 16px; }
  .videopop__close { top: -46px; font-size: 2.4rem; }
  .videopop__box--vertical .videopop__frame { height: min(72vh, 620px); }
  .pdfpop { padding: 14px 10px; }
  .pdfpop__box { height: 92vh; }
  .pdfpop__link { display: none; }
  .galpop { padding: 56px 10px 96px; }
  .galpop__stage img { max-height: 64vh; }
  .galpop__arrow { position: absolute; bottom: 26px; }
  .galpop__arrow img { width: 44px; height: 44px; }
  .galpop__arrow--prev { left: 50%; margin-left: -58px; }
  .galpop__arrow--next { left: 50%; margin-left: 14px; }
  .galpop__arrow:hover, .galpop__arrow:active { transform: none; }
  .galpop__close { top: 12px; right: 16px; font-size: 2.4rem; }
  .wa { right: 16px; bottom: 16px; height: 52px; padding: 0 11px; }
  .wa svg { width: 28px; height: 28px; }
  .wa__label { display: none; }
  .form__row { grid-template-columns: 1fr; gap: 28px; }
  .form__foot { flex-direction: column; align-items: flex-start; gap: 22px; }
}
