/* ============================
   ANIMACIÓN BONITA PARA PRELOADER
   ============================ */
/* Bloquea el scroll mientras carga */
html.is-loading, body.is-loading { overflow: hidden; }

/* Overlay negro a pantalla completa */
.preloader{
  position: fixed;
  inset: 0;
  background: #000;                /* negro sólido */
  z-index: 999999;                 /* por encima de todo */
  display: grid;
  place-items: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity .6s ease;
}

.preloader.is-done{
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.preloader .pl-inner{
  width: min(520px, 86vw);
  display: grid;
  gap: 14px;
}

/* Barra de progreso */
.pl-bar{
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,.14);
  border-radius: 999px;
  overflow: hidden;
}
.pl-progress{
  display: block;
  width: 0%;
  height: 100%;
  background: #fff;
  transform-origin: left center;
  transition: width .25s ease;
}

/* Porcentaje */
.pl-text{
  text-align: right;
  color: #fff;
  font-weight: 800;
  letter-spacing: .03em;
  font-size: clamp(14px, 2.6vw, 18px);
  opacity: .95;
}

/* 1. Barra con brillo en movimiento */
.pl-progress {
  position: relative;
  background: #fff;
  overflow: hidden;
}

/* Brillo diagonal moviéndose */
.pl-progress::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,0.8) 50%,
    transparent 100%
  );
  width: 50%;
  transform: translateX(-120%);
  animation: shine 1.3s infinite ease-out;
  mix-blend-mode: screen;
}

@keyframes shine {
  0%   { transform: translateX(-120%) skewX(-12deg); opacity: .5; }
  60%  { opacity: 1; }
  100% { transform: translateX(220%) skewX(-12deg); opacity: .5; }
}


/* 2. Glow respirando en la barra */
.pl-progress {
  animation: pulseGlow 2.4s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%   { box-shadow: 0 0 0px rgba(255,255,255,.2); }
  50%  { box-shadow: 0 0 14px rgba(255,255,255,.35); }
  100% { box-shadow: 0 0 0px rgba(255,255,255,.2); }
}


/* 3. Porcentaje con pequeño fade suave */
.pl-text {
  animation: percentPulse 1.8s infinite ease-in-out;
}

@keyframes percentPulse {
  0%   { opacity: .85; }
  50%  { opacity: 1; }
  100% { opacity: .85; }
}

/* ============================
   ANIMACIÓN BONITA PARA PRELOADER
   ============================ */

:root{
  --light: #ffffff;
  --dark: #353535;
  --ink: #1b1c1f;
  --accent: #5a5eff;
  --maxw: 1200px;
  --padY: clamp(48px, 8vw, 120px);
  --tearH: 44px;
}
*{box-sizing:border-box;}
html,body{margin:0;background:var(--dark);color:var(--ink);font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Inter,Arial,sans-serif;line-height:1.5;}
video{max-width:100%; display:block}
img{max-width:100%;display:block;}
a{color:var(--accent);text-decoration:none}
.container{width:min(var(--maxw), 92vw); margin:0 auto}

h1{font-size:clamp(48px, 10vw, 112px); letter-spacing:.04em; margin:0 0 12px; line-height:1.05}
h2{font-size:clamp(28px, 5vw, 48px); margin:0 0 10px}
h3{font-size:clamp(20px, 3.5vw, 28px); margin:.2rem 0 .6rem}
p.lead{font-size:clamp(16px, 2.6vw, 20px); opacity:.9}
.small{opacity:.7; font-size:.95rem}

.badge{display:inline-block; border:1.5px dashed currentColor; padding:.35rem .6rem; border-radius:999px; font-size:.85rem; opacity:.85}

.panel{
  position:relative;
  padding-top:var(--padY);
  padding-bottom:calc(var(--padY) + var(--tearH));
}
.panel .container{position:relative; z-index:2}

.panel::before{top:0;/* transform:translateY(calc(-1 * var(--tearH))); */}
.panel::after{bottom:0;}

.panel--light{ --tear-color: var(--dark); background:var(--light); color:var(--ink) }
.panel--dark{--tear-color: var(--light);background:var(--dark);color:var(--light);}

/* first and last panels */
.panel.is-first{ padding-top: clamp(32px, 6vw, 72px); }
.panel.is-first::before{ display:none }
.panel.is-last{ padding-bottom: clamp(64px, 10vw, 140px) }
.panel.is-last::after{ display:none }

/* HERO */
.hero{ display:grid; grid-template-columns: 1.2fr .8fr; gap: clamp(16px, 4vw, 40px); align-items:center}
.hero .avatar{ width:min(420px, 80%); margin-inline:auto }
@media (max-width: 900px){
  .hero{ grid-template-columns: 1fr; text-align:center }
  .hero .avatar{order:-1}
}

/* video framed */
.frame{
  background:radial-gradient(1200px 600px at 50% 0%, rgba(90,94,255,.08), transparent 60%);
  border-radius:24px; padding:12px; border:1px solid rgba(255,255,255,.12);
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.frame video, .frame img{border-radius:16px}

/* specialties grid */
.grid{ display:grid; gap:24px }
.grid.cols-2{ grid-template-columns: repeat(2, 1fr) }
.grid.cols-3{ grid-template-columns: repeat(3, 1fr) }
.grid.cols-4{ grid-template-columns: repeat(4, 1fr) }
@media (max-width:1000px){ .grid.cols-4{grid-template-columns: repeat(2,1fr)} }
@media (max-width:720px){ .grid.cols-3{grid-template-columns: 1fr}; .grid.cols-2{grid-template-columns:1fr} }

.card{ background:rgba(0,0,0,.06); border:1px solid rgba(0,0,0,.08); border-radius:18px; overflow:hidden }
.panel--dark .card{ background:rgba(255,255,255,.05); border-color: rgba(255,255,255,.12) }
.card .media{ aspect-ratio: 16/10; background:#111; display:grid; place-items:center }
.card .body{ padding:16px 16px 18px }

/* case study layout */
.case{ display:grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items:flex-start }
.case.reverse{ grid-template-columns: .9fr 1.1fr }
@media (max-width: 980px){ .case, .case.reverse{ grid-template-columns: 1fr } }

.kpis{ display:flex; gap:14px; flex-wrap:wrap; margin-top:8px }
.kpis .k{ padding:.4rem .6rem; border:1px solid currentColor; border-radius:12px; font-size:.9rem; opacity:.8 }

/* timeline steps */
.steps{ display:grid; grid-template-columns: repeat(4,1fr); gap:16px }
@media (max-width: 980px){ .steps{ grid-template-columns: 1fr 1fr } }
.step{ background:rgba(0,0,0,.06); border:1px dashed rgba(0,0,0,.18); padding:16px; border-radius:16px }
.panel--dark .step{ background:rgba(255,255,255,.06); border-color: rgba(255,255,255,.24) }

/* loop gallery */
.gallery{ display:grid; grid-template-columns: repeat(3, 1fr); gap:16px }
@media (max-width: 980px){ .gallery{ grid-template-columns: 1fr 1fr } }
@media (max-width: 640px){ .gallery{ grid-template-columns: 1fr } }
.gallery .tile{ border-radius:18px; overflow:hidden; border:1px solid rgba(255,255,255,.14) }

/* packages */
.pack{ border:1px solid rgba(0,0,0,.14); border-radius:16px; padding:18px; background:rgba(0,0,0,.04) }
.panel--dark .pack{ background:rgba(255,255,255,.05); border-color:rgba(255,255,255,.18) }
.pack h3{ margin-top:0 }
.pack ul{ margin:0; padding-left:18px }
.pack .price{ font-weight:700; margin-top:8px }

/* stickers/tools */
.stickers{ display:flex; flex-wrap:wrap; gap:10px }
.stickers .st{ padding:.5rem .7rem; background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.2); border-radius:12px }
.panel--light .stickers .st{ background:rgba(0,0,0,.06); border-color: rgba(0,0,0,.12) }

/* testimonials */
.testis{ display:grid; grid-template-columns: repeat(3,1fr); gap:16px }
@media (max-width: 980px){ .testis{ grid-template-columns: 1fr } }
.quote{ background:rgba(0,0,0,.04); border:1px solid rgba(0,0,0,.12); border-radius:16px; padding:18px }
.panel--dark .quote{ background:rgba(255,255,255,.06); border-color: rgba(255,255,255,.18) }
.quote .by{ margin-top:10px; font-weight:600; opacity:.9 }

/* CTA */
.cta{ text-align:center }
.btn{ display:inline-block; padding:.9rem 1.2rem; border-radius:14px; border:1px solid currentColor; margin:.25rem .35rem }
.btn.primary{ background:var(--accent); color:rgb(255, 255, 255); border-color:transparent }




/* Altura mínima del bloque */
@media (min-width:981px){
  .panel.about .container{ min-height: clamp(560px, 62vh, 860px); }
}
/* Reset mínimo para evitar scroll horizontal y saltos */
html, body { margin: 0; padding: 0; overflow-x: hidden; }

/* --- Sección carrusel --- */
.dynamic-gallery-section{
  position: relative;
  background:#404040;
  padding-block: clamp(36px, 6vw, 64px);
  overflow: hidden;
}

.gallery-rows{
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;                /* misma distancia entre filas */
  padding: 0 8px;
}

.row{
  display: inline-flex;     /* permite ancho natural */
  gap: 10px;
  width: max-content;       /* importante para medir */
  transform: translate3d(0,0,0);
  will-change: transform;
}

.row img{
  height: clamp(120px, 15vh, 220px);
  aspect-ratio: 16/9;
  width: auto;
  object-fit: cover;
  border-radius: 0;         /* sin redondear */
  display: block;
  user-select: none;
  pointer-events: none;
}

/* --- Overlay del texto --- */
.gallery-overlay{
  position:absolute; inset:0;
  display:grid; place-items:center;
  background:rgba(0,0,0,.7);
  opacity:0;                /* aparece con scroll */
  pointer-events:none;
  transition:opacity .8s ease;
  z-index:2;
}

.fade-in-text-gallery{
  color:#fff; text-align:center;
  opacity:0; transform:translateY(24px);
  transition:opacity .8s ease, transform .8s ease;
  max-width: 760px; padding: 0 20px;
}

.fade-in-text-gallery h2{ font-size: clamp(28px, 5vw, 48px); margin:0 0 10px; }
.fade-in-text-gallery p{  font-size: clamp(14px, 2.4vw, 18px); margin:0; }

/* Atenuar imágenes cuando el overlay esté activo */
.dynamic-gallery-section.active .gallery-rows{ opacity:.35; transition:opacity .6s ease; }
.dynamic-gallery-section.active .gallery-overlay{ opacity:1; }
.dynamic-gallery-section.active .fade-in-text-gallery{ opacity:1; transform:none; }

/* === FONDO UNIFICADO: Dynamic gallery + Showcase === */
.dynamic-gallery-section,
.showcase {
  position: relative;
  background: linear-gradient(to bottom, #1b1b1b 0%, #2b2b2b 50%, #404040 100%);
  /* esto replica el mismo degradado oscuro de la galería */
  color: var(--light);
  overflow: hidden;
}

/* Si la galería tiene overlay activo, mantenlo fluido hasta la siguiente sección */
.showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 0;
}

/* Ajustes de estructura internos */
.showcase-grid {
  display: grid;
  grid-template-columns: 40% 60%;
  align-items: center;
  gap: clamp(-50px, -40vw, -260px);
  position: relative;
  z-index: 1;
  padding-block: clamp(-60px, 8vw, -120px); 
}

/* --- Imagen izquierda --- */
.showcase-left {
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase-left .characters-img {
  min-width: 200%;
  height: auto;
  object-fit: contain;
  object-position: center;
  margin-left:900px;
}



/* --- Carrusel derecha --- */
.showcase-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 5vw, 80px);
}

.showcase-right h2 {
  margin-bottom: clamp(14px, 2vw, 24px);
  color: #fff;
  position: relative;
  z-index: 2;
}

/* Carrusel y botones */
.showcase-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  z-index: 2;
}

.carousel-track {
  display: flex;
  gap: 24px;
  transition: transform .6s ease;
}

.proj-card {
  flex: 0 0 clamp(260px, 32vw, 340px);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  overflow: hidden;
}

.proj-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(255,255,255,0.15);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  transition: background .3s ease;
  z-index: 3;
}
.carousel-btn:hover { background: rgba(255,255,255,0.3); }
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

/* --- Responsive --- */
@media (max-width: 980px) {
  .showcase-grid {
    grid-template-columns: 1fr;
  }
  .showcase-left {
    order: -1;
  }
  .showcase-left .characters-img {
    width: 100%;
    max-height: 60vh;
  }
  .showcase-right {
    text-align: center;
  }
}
/* === Carrusel estilo cards verticales expansibles === */
.projects-stack {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: clamp(16px, 3vw, 32px);
  height: clamp(360px, 60vh, 520px);
  perspective: 1000px;
  margin-top: clamp(30px, 4vw, 50px);
}

.project-card {
  flex: 1;
  background: #222;
  background-image: var(--img);
  background-size: cover;
  background-position: center;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  transition: flex .5s cubic-bezier(.25,.1,.25,1), transform .5s ease, box-shadow .5s ease;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.2) 60%, transparent 100%);
  transition: opacity .4s ease;
  z-index: 1;
}

.project-card:hover::before {
  opacity: .6;
}

.project-card:hover {
  flex: 2.4; /* se expande */
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,.5);
}

/* === Ocultar título y descripción hasta hover === */
.proj-content {
  position: relative;
  z-index: 2;
  padding: 24px;
  color: #fff;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .45s ease, transform .45s ease;
  pointer-events: none;
}

.project-card:hover .proj-content {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Sutil retraso para sincronizar con la expansión */
.project-card:hover {
  flex: 2.4;
  transform: translateY(-6px);
  box-shadow:
    0 20px 50px rgba(0,0,0,.5),
    0 0 35px var(--accent);
  filter: brightness(1.05) saturate(1.1);
  transition: all .55s cubic-bezier(.22,.61,.36,1);
}


/* Móvil */
@media (max-width: 900px) {
  .projects-stack {
    flex-direction: column;
    height: auto;
  }
  .project-card {
    flex: unset;
    height: clamp(240px, 50vw, 340px);
  }
  .project-card:hover {
    transform: none;
  }
}
/* === Movimiento “respirante” de las cards === */
@keyframes breathe {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.02) translateY(-4px); }
}

.projects-stack:hover .project-card:not(:hover) {
  animation: breathe 4s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * .3s);
}

/* Añadimos índice personalizado a cada card */
.projects-stack .project-card:nth-child(1){ --i:1; }
.projects-stack .project-card:nth-child(2){ --i:2; }
.projects-stack .project-card:nth-child(3){ --i:3; }
.projects-stack .project-card:nth-child(4){ --i:4; }
.project-card:hover {
  box-shadow:
    0 20px 50px rgba(0,0,0,.5),
    0 0 35px var(--accent);
  filter: brightness(1.05) saturate(1.1);
}
/* ================================
   POST-PRODUCCIÓN — LAYOUT & BG
================================ */
.postpro-board{
  position: relative;
  width: 100vw;                 /* full-bleed */
  left: 50%;
  margin-left: -50vw;
  aspect-ratio: var(--bg-ar, 1213/2048); /* se fija por JS según BACKGROUND.png */
  overflow: visible;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Fondo (mostrar imagen completa) */
/* Fondo sin efectos — imagen limpia y estática */
.postpro-board .postpro-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;     /* muestra toda la imagen sin recortar */
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  z-index: 0;

  /* elimina cualquier efecto previo */
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  background: none !important;
  transition: none !important;
  animation: none !important;
}


/* Título sobre la zona blanca */
.postpro-board .pp-title{
  position: absolute;
  left: calc(var(--left, 21) * 1%);
  top:  calc(var(--top,  11) * 1%);
  max-width: clamp(260px, calc(var(--maxw, 36) * 1vw), 560px);
  transform: translate(-8%, -52%);
  color: var(--ink, #1b1c1f);
  z-index: 2;
  pointer-events: none;
}
.postpro-board .pp-title h2{
  margin: 0;
  line-height: 1.02;
  font-size: clamp(30px, 5.2vw, 40px);
}

@media (max-width:700px){
  .postpro-board .pp-title{ transform: translate(-30%, -58%);
                          z-index:300}
}

/* ================================
   ÍTEMS (.pi) + CANVAS DE FRAMES
   (hover/click RECTANGULAR: ignora alpha)
================================ */
.postpro-board .pi{
  position: absolute;
  left:  calc(var(--x, 0) * 1%);
  top:   calc(var(--y, 0) * 1%);
  width: calc(var(--w, 10) * 1%);
  height: auto;
  z-index: var(--z, 1);
  pointer-events: auto;        /* <-- necesario para hover rectangular */
  user-select: none;
}
.postpro-board .pi > *{ pointer-events: none; } /* sizer/canvas no capturan eventos */

.postpro-board .pi-canvas{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/* ================================
   HUD (igual que branding)
================================ */
.postpro-board .postpro-hud{
  position: absolute;
  left: 50%;
  top: 90%;
  transform: translate(-50%, -50%) scale(.98);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 50;
}
.postpro-board .postpro-hud .hud-inner{
  background: rgba(0,0,0,.68);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 14px 18px;
  color: #fff;
  max-width: min(76vw, 760px);
  text-align: center;
  box-shadow: 0 6px 24px rgba(0,0,0,.35);
}
.postpro-board .postpro-hud .hud-title{
  margin: 0;
  font-weight: 900;
  font-size: clamp(22px, 3.4vw, 36px);
  letter-spacing: .02em;
}
.postpro-board .postpro-hud .hud-desc{
  margin: 6px 0 0;
  font-size: clamp(13px, 2vw, 16px);
  color: #e8e8f1;
  opacity: .95;
}
.postpro-board .postpro-hud.show{
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ================================
   CÍRCULOS-GUÍA (NO interactivos)
   — visibles cuando NO hay hover en .pi
   — ocultos cuando HAY hover en .pi
================================ */
.interactive-dot{
  position: absolute;
  width: 26px; height: 26px;
  border: 2px solid rgba(255,255,255,0.95);
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 12px rgba(255,255,255,0.45);
  pointer-events: none;           /* no captura eventos */
  z-index: 200;                   /* por encima de .pi */
  opacity: 1;
  animation: dot-pulse 2.6s ease-in-out infinite;
  transition: opacity .2s ease;
}
.interactive-dot.is-hidden{
  opacity: 0;
  animation: none;
}
@keyframes dot-pulse{
  0%,100%{ transform: scale(1);    opacity: .55; }
  50%    { transform: scale(1.35); opacity: 1;   }
}

/* ================================
   MODAL + CARRUSEL
================================ */
.pp-modal{
  position: fixed;
  inset: 0;
  display: none;                 /* se activa con .is-open */
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(8px);
  z-index: 1200;
  opacity: 0;
  transition: opacity .28s ease;
}
.pp-modal.is-open{ display: flex; opacity: 1; }

.pp-modal__dialog{
  position: relative;
  width: min(1000px, 92vw);
  height: min(70vh, 62vw);
  background: #0c0d10;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.pp-modal__header{
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0));
  color: #fff;
}
.pp-modal__title{ margin: 0; font-size: 16px; font-weight: 700; letter-spacing: .02em; }

.pp-modal__close{
  border: none; background: rgba(255,255,255,.14);
  color: #fff; width: 34px; height: 34px; border-radius: 50%;
  font-size: 20px; cursor: pointer;
}
.pp-modal__close:hover{ background: rgba(255,255,255,.25); }

/* Carrusel */
.pp-carousel{ position: relative; overflow: hidden; background: #000; }
.pp-carousel__track{
  display: flex;
  height: 100%;
  will-change: transform;
  transition: transform .28s ease;
}
.pp-slide{
  flex: 0 0 100%;
  height: 100%;
  display: grid; place-items: center;
  background: #000;
}
.pp-slide img, .pp-slide video{
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
}

/* Controles */
.pp-carousel__nav{
  display: flex; align-items: center; justify-content: center;
  gap: 10px; padding: 10px 12px; background: #0c0d10;
}
.pp-dot{
  width: 8px; height: 8px; border-radius: 50%;
  background: #5f6570; opacity: .7; border: none; cursor: pointer;
}
.pp-dot.is-active{ background: #fff; opacity: 1; }

.pp-arrow{
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  border: none; color: #fff; background: rgba(255,255,255,.15);
  cursor: pointer; display: grid; place-items: center;
}
.pp-arrow:hover{ background: rgba(255,255,255,.28); }
.pp-arrow--prev{ left: 10px; }
.pp-arrow--next{ right: 10px; }

/* Accesibilidad focus */
.pp-arrow:focus, .pp-dot:focus, .pp-modal__close:focus{
  outline: 2px solid #8ab4ff; outline-offset: 2px;
}
/*===================================
GRAPHIC DESIGN
===================================*/
/* ====== SECCIÓN (fondo beige) ====== */
.graphic-design-section{
  --maxw:1100px;
  background:#ffff;                 /* beige del lienzo general */
  padding:56px 0 72px;
  display:flex;
  justify-content:center;
}

/* ====== CARTEL ====== */
.gd-poster{
  width:min(var(--maxw), 92vw);
  background:#f4ead3;                 /* papel del cartel */
  padding:28px 28px 36px;
  border-radius:0px;
  /* sombra para que parezca un cartel sobre la pared */
  box-shadow:
    0 18px 40px rgba(0,0,0,.20),
    0 3px 10px rgba(0,0,0,.12);
}

/* filas internas ocupan el ancho del cartel */
.gd-banner, .gd-ticker, .gd-grid, .gd-buttons{ width:100%; }

/* ====== BANNER ====== */
.gd-banner img{
  width:100%;
  height:auto;
  display:block;                      /* sin bordes ni fondos */
}

/* ===== TICKER grande, 1 sola línea ===== */
.gd-ticker{
  --tickerH: clamp(44px, 6vw, 72px);   /* alto del riel */
  --tickerGap: 48px;                   /* separación entre repeticiones */
  background:#111;
  color:#f4ead3;
  height:var(--tickerH);
  display:flex;
  align-items:center;                  /* centra verticalmente */
  overflow:hidden;
  border-radius:10px;                  /* como en tu ejemplo */
  line-height:1;
  padding:0;                           /* controlado por height */
}

.gd-ticker-inner{
  display:flex;
  flex-wrap:nowrap;                    /* prohibir salto a 2 líneas */
  align-items:center;
  gap:var(--tickerGap);
  white-space:nowrap;
  will-change:transform;
  animation:gdMarquee var(--gd-speed, 18s) linear infinite;
}

.gd-ticker-inner > span{
  display:inline-block;
  font-weight:900;
  letter-spacing:.04em;
  font-size:calc(var(--tickerH) * 0.52); /* tamaño grande */
  line-height:1;                          /* evita crecer en altura */
  margin:0;
}

/* animación: recorre exactamente media pista */
@keyframes gdMarquee{
  to { transform: translateX(var(--gd-shift, -50%)); }
}


/* ====== GRID 25/75 ====== */
.gd-grid{
  display:grid;
  grid-template-columns:25% 75%;
  gap:20px;                           /* separación entre columnas */
  align-items:start;
  margin-top:24px;
}

/* Columna izquierda: 4 imágenes (menos gap) */
.gd-left{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.gd-item{ transition:transform .28s ease; will-change:transform; }
.gd-item img{
  width:100%;
  height:auto;                        /* no recortar */
  display:block;                      /* sin bordes/sombras */
}
.gd-item:hover{ transform:translateY(-6px); }

/* Columna derecha: imagen única, sin recorte */
.gd-right img{
  width:100%;
  height:auto;                        /* no usar object-fit: cover */
  display:block;
}

/* ====== BOTONES ====== */
.gd-buttons{
  display:flex;
  gap:15px;
  justify-content:space-between;
  flex-wrap:wrap;
  margin-top:28px;
}
.gd-btn{
  flex:1;
  min-width:180px;
  padding:14px 24px;
  background:#111;                    /* botón (no imagen) */
  color:#f4ead3;
  border:0;
  font-weight:800;
  letter-spacing:.04em;
  cursor:pointer;
  transition:transform .25s ease, background .25s ease;
}
.gd-btn:hover{ transform:translateY(-4px); background:#f25c19; }

/* ====== RESPONSIVE ====== */
@media (max-width:900px){
  .gd-grid{ grid-template-columns:1fr; }
  .gd-left{ flex-direction:row; flex-wrap:wrap; gap:8px; }
  .gd-left .gd-item{ width:calc(50% - 4px); }
  .gd-buttons{ flex-direction:column; }
}
/* =========================================
   EFECTO LUCES — solo overlay del color oscuro
   (no toca nada del contenido existente)
========================================= */
#postpro-board::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, #0f0f11 0%, transparent 100%);
  opacity: 1;
  pointer-events: none;
  z-index: 50; /* por encima del fondo, debajo del HUD */
  transition: opacity 1.6s ease-out;
}

#postpro-board.is-lit::before {
  opacity: 0;
}
/* =========================================
   EFECTO LUCES — solo overlay del color oscuro
   (no toca nada del contenido existente)
========================================= */
#postpro-board::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, #0f0f11 0%, transparent 100%);
  opacity: 1;
  pointer-events: none;
  z-index: 50; /* sobre el fondo, debajo de los HUDs */
  transition: opacity 1.6s ease-out;
}

#postpro-board.is-lit::before {
  opacity: 0;
}
/* =========================================
   EFECTO LUCES — overlay uniforme del mismo color
   (sin degradado visible, solo fade 100% → 0%)
========================================= */
#postpro-board::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #2d2d2d;  /* exactamente igual que la parte de arriba */
  opacity: 1;           /* inicia totalmente cubierto */
  pointer-events: none;
  z-index: 50;          /* sobre el fondo, debajo del HUD */
  transition: opacity 1.6s ease-out;
}

#postpro-board.is-lit::before {
  opacity: 0;           /* se desvanece completamente */
}

/* =========================================
 CINE CINE CINE CINE CINE CINE CINE CINE
========================================= */


/* ESCENA DE CINE — imagen completa sin recortes */
.cine-scene {
  position: relative;
  width: 100vw;            /* ancho total */
  left: 50%;
  margin-left: -50vw;      /* centra full-bleed */
  overflow: hidden;
  background: #000;        /* fondo neutro */
}

/* Imagen render final, tamaño real */
.cine-scene .cine-image {
  display: block;
  width: 100%;
  height: auto;             /* respeta proporción 1920×3240 */
  object-fit: contain;      /* muestra todo */
  user-select: none;
  pointer-events: none;
}
/* === CINE SCENE === */
.cine-scene {
  position: relative;
  width: 100vw;             /* ancho completo */
  left: 50%;
  margin-left: -50vw;
  overflow: hidden;
  background: #000;
}

/* Imagen base del cine (asiento + pantalla) */
.cine-bg {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  pointer-events: none;
}

/* === ESCENA DE CINE === */
.cine-scene {
  position: relative;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  overflow: hidden;
  background: #000;
  margin-bottom: -50px !important;
}

/* Imagen base del cine */
.cine-bg {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  pointer-events: none;
  z-index: 0;
}

/* === LUZ DEL PROYECTOR === */
.cine-light {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 160%;
  height: 120%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.18) 0%, transparent 70%);
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
  animation: projectorGlow 4s ease-in-out infinite alternate;
}

@keyframes projectorGlow {
  0% { opacity: 0.35; filter: blur(60px); }
  100% { opacity: 0.55; filter: blur(100px); }
}

/* === VIDEO PRINCIPAL === */
/* (NO TOCAR - configuración exacta tuya) */
.cine-video {
  position: absolute;
  top: 11.65%;              /* mantiene tu ajuste vertical */
  left: 50.1%;              /* centrado horizontalmente */
  transform: translateX(-50%); /* corrige el centrado exacto */
  width: 81.2%;             /* mantiene tu tamaño */
  height: 66.71%;           /* mantiene tu tamaño */
  object-fit: cover;
  border-radius: 0;
  opacity: 65%;
  border-radius: 2px;
  box-shadow: 0 0 60px rgba(255,255,255,0.12); /* leve glow del proyector */
  z-index: 2;
}

/* === REFLEJO DEL PROYECTOR EN BUTACAS === */
.cine-reflection {
  position: absolute;
  bottom: -30%;
  left: 50%;
  transform: translateX(-50%) scaleY(-1);
  width: 81.2%;
  height: 66.71%;
  object-fit: cover;
  opacity: 0.08;
  filter: blur(10px);
  z-index: 1;
  pointer-events: none;
}

/* === PARTÍCULAS DE POLVO EN EL AIRE === */
#dustParticles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.25;
  z-index: 3;
}

/* === FADE DE ARRANQUE (simula encendido del proyector) === */
@keyframes projectorStart {
  0% { opacity: 1; }
  30% { opacity: 0.8; }
  100% { opacity: 0; }
}

.cine-scene::after {
  content: '';
  position: absolute;
  inset: 0;
  background: white;
  animation: projectorStart 1.4s ease-out forwards;
  pointer-events: none;
  z-index: 4;
}





/* === HERO SHOWCASE === */
.hero-showcase {
  position: relative;
  height: 100vh;
  width: 100%;
  color: #fff;
  overflow: hidden;
  background: #000;
  background-image: url('https://images.unsplash.com/photo-1501785888041-af3ef285b470');
  background-size: cover;
  background-position: center;
  transition: background-image 0.6s ease-in-out;
}

/* fundido suave al cambiar fondo */
.hero-showcase::after {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 0;
}

/* overlay sutil para contraste */
.hero-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.3) 40%, rgba(0,0,0,0.1) 100%);
  z-index: 1;
}

/* contenedor general */
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 8%;
}

/* texto izquierda */
.hero-text {
  max-width: 40%;
}
.hero-title {
  text-transform: uppercase;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  opacity: 0.8;
}
.hero-subtitle {
  font-size: clamp(3rem, 6vw, 5rem);
  margin: 0.3em 0;
  font-weight: 700;
}
.hero-desc {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.9;
  max-width: 420px;
  margin-bottom: 1.5em;
}
.hero-text button {
  background: #ffd15c;
  color: #000;
  border: none;
  padding: 0.8rem 1.6rem;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}
.hero-text button:hover {
  background: #fff;
  color: #000;
}

/* carrusel horizontal */
.hero-carousel {
  display: flex;
  gap: 1rem;
  width: 640px;
  height: 360px;
}

.card {
  position: relative;
  flex: 1;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover img {
  transform: scale(1.1);
}
.card h3 {
  position: absolute;
  bottom: 15px;
  left: 18px;
  color: #fff;
  font-size: 1.1rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}
/* ================================
   GRAPHIC WEB — versión sin fundido
================================ */
.graphicweb-board {
  position: relative;
  width: 100vw;            /* full width */
  left: 50%;
  margin-left: -50vw;
  overflow: hidden;
  background: #0f0f11;
}

/* Fondo */
.graphicweb-bg {
  position: relative;
  display: block;
  width: 100%;
  height: auto;            /* respeta proporción */
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* Título */
.graphicweb-board .gw-title {
  position: absolute;
  left: calc(var(--left, 20) * 1%);
  top: calc(var(--top, 10) * 1%);
  max-width: clamp(240px, calc(var(--maxw, 40) * 1vw), 560px);
  transform: translate(-8%, -40%);
  color: var(--ink, #1b1c1f);
  z-index: 2;
  pointer-events: none;
}
.graphicweb-board .gw-title h2 {
  margin: 0;
  font-size: clamp(36px, 6vw, 88px);
  line-height: 1.02;
}

/* Ítems interactivos futuros */
.graphicweb-board .gi {
  position: absolute;
  left: calc(var(--x, 0) * 1%);
  top: calc(var(--y, 0) * 1%);
  width: calc(var(--w, 10) * 1%);
  height: auto;
  z-index: var(--z, 1);
  pointer-events: auto;
}

/* HUD */
.graphicweb-board .graphicweb-hud {
  position: absolute;
  left: 50%;
  top: 90%;
  transform: translate(-50%, -50%) scale(.98);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 50;
}
.graphicweb-board .graphicweb-hud .hud-inner {
  background: rgba(0,0,0,.68);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 14px 18px;
  color: #fff;
  max-width: min(76vw, 760px);
  text-align: center;
}
.graphicweb-board .graphicweb-hud .hud-title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(22px, 3.4vw, 36px);
}
.graphicweb-board .graphicweb-hud .hud-desc {
  margin: 6px 0 0;
  font-size: clamp(13px, 2vw, 16px);
  opacity: .95;
}
.graphicweb-board .graphicweb-hud.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}




/* GRAPHIC WEB — base (ya tienes parte, agrego lo faltante) */
.graphicweb-board {
  position: relative;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  overflow: hidden;
  background: #0f0f11;
}
.graphicweb-bg {
  display:block; width:100%; height:auto; object-fit:contain; pointer-events:none; user-select:none;
  z-index:0;
}

/* Posicionamiento relativo al fondo */
.graphicweb-board .gi,
.graphicweb-board .gi-static {
  position:absolute;
  left:  calc(var(--x, 0) * 1%);
  top:   calc(var(--y, 0) * 1%);
  width: calc(var(--w, 10) * 1%);
  z-index: var(--z, 1);
}

/* Canvas de reproducción de frames */
.graphicweb-board .gi canvas.gi-canvas{
  position:absolute; inset:0; width:100%; height:100%; display:block; pointer-events:none;
}

/* Sizer invisible para mantener relación de aspecto del frame */
.graphicweb-board .gi img.gi-sizer{
  width:100%; height:auto; display:block; opacity:0; pointer-events:none;
}

/* HUD (ya definido en tu CSS, lo dejo por si no estaba) */
.graphicweb-board .graphicweb-hud{
  position:absolute; left:50%; top:90%;
  transform:translate(-50%, -50%) scale(.98);
  opacity:0; pointer-events:none; transition:opacity .18s ease, transform .18s ease; z-index:50;
}
.graphicweb-board .graphicweb-hud .hud-inner{
  background:rgba(0,0,0,.68); backdrop-filter:blur(6px);
  border:1px solid rgba(255,255,255,.12); border-radius:14px; padding:14px 18px;
  color:#fff; max-width:min(76vw,760px); text-align:center;
}
.graphicweb-board .graphicweb-hud.show{ opacity:1; transform:translate(-50%, -50%) scale(1); }
/* Los .gi no capturan el puntero; lo haremos en el board con máscara alfa */
#graphicweb-board .gi,
#graphicweb-board .gi * { pointer-events: none; }

/* Asegura stacking local y que el board reciba los eventos */
#graphicweb-board { position: relative; }
/* Contenedor de GIF con swap en hover */
.graphicweb-board .gi-gif{ position:absolute; pointer-events:auto; }
.graphicweb-board .gi-gif img{ position:absolute; inset:0; width:100%; height:auto; display:block; }
.graphicweb-board .gi-gif .gif-anim{ opacity:0; transition:opacity .25s ease; will-change:opacity; }
.graphicweb-board .gi-gif:hover .gif-anim{ opacity:1; }
.graphicweb-board .gi-gif:hover .gif-still{ opacity:0; }

/*===================================
ANIMATION IFRAME
===================================*/
/* Overlay con iframe */
.aframe-overlay{
  position:fixed; inset:0; z-index:9999;
  display:none; align-items:center; justify-content:center;
  background:rgba(10,10,14,.72); backdrop-filter:blur(6px);
}
.aframe-overlay.is-open{ display:flex; }
.aframe-modal{
  width:min(1100px,94vw); height:90vh; background:#0e0e12;
  border-radius:16px; overflow:hidden; box-shadow:0 20px 60px rgba(0,0,0,.5);
  position:relative;
}
.aframe-close{
  position:absolute; top:10px; right:10px; width:38px; height:38px;
  border:0; border-radius:8px; background:rgba(255,255,255,.12); color:#fff; cursor:pointer;
}
.aframe-close:hover{ background:rgba(255,255,255,.2); }
.aframe-iframe{ width:100%; height:100%; border:0; background:#000; }

/* opcional: cursor clicable en las tarjetas */
.projects-stack .project-card{ cursor:pointer; }


.aframe-modal{ background: #0000001f !important; box-shadow: none !important; }
.aframe-iframe{ background: #00000000 !important; }

/* =========================================
   POSTPRO — HUD centrado absoluto en pantalla
   ========================================= */
.postpro-board .postpro-hud {
  position: fixed !important;       /* fijo respecto a la ventana */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* centro exacto (matemático) */
  margin: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 99999;
  text-align: center;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* cuando se activa */
.postpro-board .postpro-hud.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.02);
}

/* animación de entrada opcional */
@keyframes hudFloatIn {
  from { opacity: 0; transform: translate(-50%, -60%) scale(0.98); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.postpro-board .postpro-hud.show .hud-inner {
  animation: hudFloatIn 0.6s ease-out forwards;
}

/* interior del HUD */
.postpro-board .postpro-hud .hud-inner {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 20px 30px;
  color: #fff;
  max-width: 80vw;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.postpro-board .postpro-hud .hud-title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(26px, 3.5vw, 44px);
  letter-spacing: 0.02em;
  text-shadow: 0 0 22px rgba(0,0,0,0.6);
}

.postpro-board .postpro-hud .hud-desc {
  margin-top: 8px;
  font-size: clamp(14px, 2vw, 18px);
  opacity: 0.9;
  text-shadow: 0 0 14px rgba(0,0,0,0.4);
}
.postpro-hud {
  position: fixed;
  left: 50%;
  top: 75%;
  transform: translateX(-50%);
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.postpro-hud.show {
  opacity: 1;
  transform: translateX(-50%) scale(1.02);
}

.postpro-hud .hud-inner {
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  padding: 18px 26px;
  border-radius: 14px;
  color: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  max-width: 80vw;
}

.postpro-hud .hud-title {
  font-size: clamp(22px, 3vw, 44px);
  font-weight: 800;
  text-shadow: 0 0 18px rgba(0,0,0,0.6);
}

.postpro-hud .hud-desc {
  margin-top: 8px;
  font-size: clamp(14px, 2vw, 18px);
  opacity: 0.9;
}
/* =========================================
   GRAPHICWEB — HUD centrado absoluto (75%)
   ========================================= */
.graphicweb-hud {
  position: fixed !important;     /* fijo respecto a la ventana */
  top: 75%;                       /* 75% de la altura visible del viewport */
  left: 50%;                      /* centro horizontal absoluto */
  transform: translate(-50%, -50%); /* centra matemáticamente el bloque */
  z-index: 99999 !important;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.graphicweb-hud.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.02);
}

.graphicweb-hud .hud-inner {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  padding: 18px 26px;
  border-radius: 14px;
  color: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  max-width: 80vw;
}

.graphicweb-hud .hud-title {
  font-size: clamp(22px, 3vw, 44px);
  font-weight: 800;
  text-shadow: 0 0 18px rgba(0,0,0,0.6);
}

.graphicweb-hud .hud-desc {
  margin-top: 8px;
  font-size: clamp(14px, 2vw, 18px);
  opacity: 0.9;
}

/* HERO pineado + overlay por encima de TODO el contenido */
.panel.panel--light.is-first{
  position: relative;
  z-index: 1;
  --heroDark: 0;
  isolation: isolate;                /* crea stacking context propio */
}
.panel.panel--light.is-first::after{
  content:"";
  position:absolute;
  inset:0;
  background:#000;                   /* negro sólido */
  opacity:var(--heroDark,0);         /* 0→1 con GSAP */
  pointer-events:none;
  z-index: 10;                       /* por encima de hijos */
  transition: opacity 0s;            /* la anima GSAP */
}
/* asegura que hijos queden por debajo del overlay */
.panel.panel--light.is-first > *{
  position: relative;
  z-index: 0;
}

/* CINE encima del hero pineado para “subir” */
#cine-scene{
  position: relative;
  z-index: 20;
  will-change: transform;
  transform: translateZ(0);
}
.panel.panel--light.is-first{
  position: relative;
  z-index: 1;
  isolation: isolate;         /* overlay por encima de hijos */
  --heroDark: 0;
}
.panel.panel--light.is-first::after{
  content:"";
  position:absolute;
  inset:0;
  background:#000;
  opacity:var(--heroDark,0);
  pointer-events:none;
  z-index:10;
}
.panel.panel--light.is-first > *{ position: relative; z-index:0; }
/* el stack que sube debe quedar por ENCIMA del hero pineado */
#rise-stack{
  position: relative;
  z-index: 2;
}

/* el hero queda por debajo (su overlay también) */
.panel.panel--light.is-first{
  position: relative;
  z-index: 0;        /* < rise-stack */
  --heroDark: 0;
}
.panel.panel--light.is-first::after{
  content:"";
  position:absolute; inset:0;
  background:#000;
  opacity:var(--heroDark,0);
  pointer-events:none;
  z-index: 1;        /* tapa hijos del hero, pero NO al rise-stack */
}
.panel.panel--light.is-first > *{ position: relative; z-index: 0; }



/* Board con mismo aspect-ratio que el fondo/frames */
.especialidades-board{
  position: relative;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  aspect-ratio: var(--bg-ar, 1213/2048); /* JS lo fija desde BACKGROUND.png */
  overflow: visible;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  background: #fff; /* por si hay transparencias en el PNG */
  color: #1b1c1f;
  cursor: default; /* el JS lo cambia a pointer al hacer hit */
}

/* Fondo escala sin recortes (igual que los frames) */
.especialidades-board .esp-bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  z-index: 0;
}

/* Ítems/frames */
.especialidades-board .pi{
  position: absolute;
  left:  calc(var(--x, 0) * 1%);
  top:   calc(var(--y, 0) * 1%);
  width: calc(var(--w, 10) * 1%);
  z-index: var(--z, 1);
  pointer-events: auto;
  user-select: none;
}
.especialidades-board .pi > *{ pointer-events: none; }

/* Canvas donde se dibujan los frames */
.especialidades-board .pi-canvas{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
/* ===== ESPECIALIDADES — Títulos en UNA SOLA FILA ===== */
#especialidades-board{ position:relative; }

#especialidades-board .esp-titles{
  position:absolute !important;
  top:0; left:0; width:100%;
  display:flex !important;                /* fila sí o sí */
  justify-content:space-between;          /* 4 columnas repartidas */
  align-items:flex-start;
  padding: clamp(12px,3vw,28px) clamp(8px,2vw,20px);
  z-index:2000;
  pointer-events:none;                    /* no tapa los hotspots */
  background:transparent;
}

/* Escala estable según el ancho del board */
#especialidades-board{ container-type: inline-size; }

#especialidades-board .esp-title{
  flex: 0 0 25% !important;   /* cada uno ocupa 1/4 */
  margin: 0 !important;
  text-align: center;
  white-space: nowrap;         /* sin saltos de línea */
  font-weight: 900;
  line-height: 1.05;
  color: #535353 !important;      /* negro sólido */
  font-size: clamp(12px, 2.6cqw, 56px) !important; /* móvil legible, desktop grande */
  pointer-events: none;
}

#especialidades-board .esp-titles{
  top: 20%; /* ajusta a gusto */
}
/* === SOFTWARE GRID (logos en lugar de texto) === */
.soft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(48px, 1fr));
  gap: 14px;
  align-items: center;
  justify-items: center;
  margin-top: 10px;
}

.soft-grid img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity .3s ease, transform .3s ease;
}

.soft-grid img:hover {
  opacity: 1;
  transform: scale(1.1);
}

.soft-grid img {
  background: rgba(255,255,255,0.05);
  padding: 8px;
  border-radius: 10px;
  width: 46px;
  height: 46px;
}

/* === FIX CLICK EN MOTION === */
#graphicweb-board .gi-gif,
#graphicweb-board .gi-gif * {
  pointer-events: auto !important;
  cursor: pointer;
  z-index: 999 !important;
}





/*===================
   ABOUT / QUIÉN SOY — board tipo cartel que ESCALA
====================*/

.panel.about{
  position: relative;
  overflow: hidden;
  /* background: transparent; */
}

/* Capas de fondo */
.panel.about .parallax{
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  pointer-events: none;
}
.panel.about .parallax.parallax-back{
  z-index: 0;
  background-image:url('assets/images/fondo2.png');
}
.panel.about .parallax.parallax-front{
  z-index: 1;
  background-image:url('assets/images/fondo1.png');
  mix-blend-mode: normal;
}

/* El contenedor no mete padding extra */
.panel.about .container{
  position: relative;
  z-index: 2;
  padding: 0;
}

/* BOARD full-bleed con misma lógica que los otros boards
   y un factor de ESCALA para TODO el contenido interno */
.about-board{
  position: relative;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;

  /* mismo ratio de tu comp de fondo, pero limitado a la altura */
  height: min(100vh, calc(100vw * 1213 / 2048));
  max-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;

  /* como en los boards: escala ligada al tamaño más pequeño
     del viewport (width/height) */
  --aboutScale: clamp(0.45, calc(100vmin / 900), 1);

  /* para poder usar cqw si quieres después */
  container-type: inline-size;
}

/* Grid interno: se escala entero (izquierda + derecha) */
.about-board .about-grid{
  margin-top: 100px !important;
  width: min(1120px, 92vw);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.3fr);
  gap: clamp(16px, 3vw, 36px);
  align-items: center;
  box-sizing: border-box;
  transform: scale(var(--aboutScale));
  transform-origin: center center;
}

/* LEFT -------------------------------------------------- */

.about-left{
  margin-top: clamp(24px, 4vh, 56px); /* baja el bloque (título + gif + texto) */
}

.about-hello{
  font-size: clamp(26px, 3.8vw, 40px);
  line-height: 1.05;
  margin: 0 0 14px;
  color: rgba(45,45,45,0.98);
}

.about-media{
  width: 100%;
  max-width: 260px;       /* GIF más pequeño */
  aspect-ratio: 1 / 1;    /* círculo */
  margin-bottom: 14px;
}
.about-avatar{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 50%;
}

p.small.about-bio{
  color: #000;
  line-height: 1.6;
  max-width: 430px;
  font-size: clamp(13px, 1.3vw, 15px);
  margin: 6px 0 0;
}

/* RIGHT ------------------------------------------------- */
.about-right{
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin-left: 120px;
}

.about-right > h2{
  font-size: clamp(18px, 2vw, 24px);
  margin: 0 0 6px;
}

.about-right > .small{
  font-size: clamp(12px, 1.25vw, 14px);
  max-width: 500px;
}

/* logos */
.logo-list{
  list-style: none;
  padding: 0;
  margin: 10px 0 8px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
}
.logo-list img{
  width: clamp(52px, 4.8vw, 78px);
  height: auto;
  filter: grayscale(100%) opacity(.9);
  transition: filter .2s ease;
}
.logo-list img:hover{ filter: none; }

/* meta-cards (tres cajitas) */
.about-meta{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 1.4vw, 16px);
  margin-top: clamp(10px, 1.8vw, 20px);
}
.meta-col{
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  padding: clamp(10px, 1.4vw, 14px);
}
.panel--light .meta-col{
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.12);
}
.meta-col h3{
  margin: 0 0 4px;
  font-size: clamp(13px, 1.4vw, 16px);
}
.meta-col ul{
  margin: 0;
  padding-left: 11px;
  font-size: clamp(11px, 1.25vw, 13px);
}

/* SOFTWARE GRID */
.soft-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(38px, 1fr));
  gap: 8px;
  align-items: center;
  justify-items: center;
  margin-top: 6px;
}
.soft-grid img{
  background: rgba(255,255,255,0.05);
  padding: 6px;
  border-radius: 10px;
  width: 36px;
  height: 36px;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity .3s ease, transform .3s ease;
}
.soft-grid img:hover{
  opacity: 1;
  transform: scale(1.1);
}

/* Desktop: nada extra, se manda el board */
@media (min-width: 981px){
  .panel.about .container{
    min-height: 0;
  }
}



/* RESPONSIVE ------------------------------------------- */
@media (max-width: 980px){

  /* quitamos los fondos rotos */
  .panel.about .parallax{
    display: none;
  }

  .about-board{
    height: auto;
    max-height: none;
    --aboutScale: 1;
    padding-block: clamp(32px, 8vw, 48px);
  }

  /* EL CONTENEDOR OCUPA TODO (para que el blanco pueda ser full) */
  .about-board .about-grid{
    transform: none;
    width: 100%;          /* <- aquí ya NO va el 80% */
    max-width: 100%;
    padding-inline: 0;
    grid-template-columns: 1fr;
    row-gap: 24px;
  }

  /* PARTE DE ARRIBA: fondo blanco a full width */
  .about-left{
    text-align: center;
    margin-top: 0;
    background: #ffffff;
    padding: 32px 16px 40px;
  }

  .about-media{
    margin-inline: auto;
  }
  p.small.about-bio{
    text-align: center;
    margin-inline: auto;
  }

  /* PARTE DE ABAJO: mismo ancho que querías (80%) */
  .about-right{
    margin-top: 0;
    background: transparent;
    margin-left: 0;
    width: min(80%, 920px);   /* <- aquí metemos el 80% */
    margin-inline: auto;      /* centrado */
  }

  .about-meta{
    grid-template-columns: 1fr;
  }
}

/* Ultra small */
@media (max-width: 480px){
  p.small.about-bio{
    font-size: 0.9rem;
    line-height: 1.4;
  }
}



@media (max-width: 1350px){
.showcase-left .characters-img {
  min-width: 200%;
  height: auto;
  object-fit: contain;
  object-position: center;
  margin-left:550px;
}
}

@media (max-width: 1350px){
/* --- Carrusel derecha --- */
.showcase-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 80px;
}
}

@media (max-width: 1350px){
.cine-scene {
  margin-bottom: -200px !important;
}
}

/* === DESACTIVAR PRELOADER EN MÓVIL === */
@media (max-width: 768px){
  .preloader{
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
  }

  html.is-loading,
  body.is-loading{
    overflow: auto !important;
  }
}
