/* ════════════════════════════════════════════
   EMI BARRIOS — style.css
════════════════════════════════════════════ */


/* ══════════════════════════════════════
   1. VARIABLES
══════════════════════════════════════ */
:root {
  --red:      #cc0000;
  --red-dark: #990000;
  --black:    #0d0d0d;
  --white:    #f5f0ea;

  --gap-sm:   1.5vw;
  --gap-md:   2.5vw;
  --gap-lg:   4vw;
  --pad-page: 3vw;
}


/* ══════════════════════════════════════
   2. RESET
══════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin:  0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--red);
  color: var(--white);
  overflow-x: hidden;
}


/* ══════════════════════════════════════
   3. FONDO GLOBAL FIJO
══════════════════════════════════════ */
.bg-global {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.bg-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
}


/* ══════════════════════════════════════
   4. SECCIONES
══════════════════════════════════════ */
.seccion-portada {
  min-height: 100vh;
  width: 100%;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
}


/* ══════════════════════════════════════
   5. PORTADA
══════════════════════════════════════ */
.portada {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: var(--pad-page) var(--pad-page) 8vw;
  gap: 1vw;
}

.portada-titulo {
  margin-top: 60px;
  width: 95vw;
}

.portada-titulo-img {
  margin-left: -11vw;
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0.3vw 0.5vw 1vw rgba(0,0,0,0.4));
}

.portada-sello {
  margin-top: -14vw;
  width: 46vw;
  transform: rotate(8deg);
  filter: drop-shadow(0.2vw 0.3vw 0.8vw rgba(0,0,0,0.5));
  transition: transform 0.3s ease;
}

.portada-sello:hover {
  transform: rotate(0deg) scale(1.04);
}

.portada-sello-img {
  z-index: 30;
  left: 20vw;
  width: 100%;
  transform: rotate(-12deg);
  display: block;
}


/* ══════════════════════════════════════
   6. TICKER
══════════════════════════════════════ */
.ticker-wrap {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: 10vw;
  position: relative;
  overflow: hidden;
  background: #0a0a0a;
  outline: 1px solid #0a0a0a;
}

.ticker-bg {
  position: absolute;
  inset: -1px;
  background: #0a0a0a;
  z-index: 1;
}

.ticker-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.2;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 10s linear infinite;
  z-index: 2;
  position: relative;
  transform: translate3d(0,0,0);
  backface-visibility: hidden;
}

.ticker-group {
  display: flex;
  gap: 2vw;
}

.ticker-svg {
  height: 10vw;
  width: auto;
  flex-shrink: 0;
  display: block;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* ══════════════════════════════════════
   7. SOBRE MI — GRID
══════════════════════════════════════ */
.sm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: var(--gap-md) var(--pad-page) var(--gap-lg);
  max-width: 100%;
}

.sm-col-left {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sm-col-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--gap-md);
}


/* ══════════════════════════════════════
   8. NAMETAG
══════════════════════════════════════ */
.nametag {
  margin-bottom: -18vw;
  width: 52vw;
  transform: rotate(-2deg);
  filter: drop-shadow(0.3vw 0.5vw 1vw rgba(0,0,0,0.55));
  transition: transform 0.35s cubic-bezier(.34, 1.56, .64, 1);
  cursor: default;
}

.nametag:hover {
  transform: rotate(0deg) scale(1.03);
}

.nametag-img {
  width: 100%;
  height: 100%;
  display: block;
}

.sm-heading { width: 58vw; }

.sm-heading-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0.15vw 0.2vw 0 var(--red-dark));
}


/* ══════════════════════════════════════
   9. BIO / PAPEL RASGADO
══════════════════════════════════════ */
.bio-note {
  position: relative;
  padding: 2vw 1.8vw 2.5vw;
  width: 34vw;
  transform: rotate(1deg);
  filter: drop-shadow(0.2vw 0.4vw 0.8vw rgba(0,0,0,0.4));
  transition: transform 0.3s ease;
}

.bio-note:hover { transform: rotate(0deg); }

.paper-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: 0;
}

.pin {
  position: absolute;
  width: 1.8vw;
  min-width: 14px;
  height: auto;
  top: -0.6vw;
  z-index: 3;
  filter: drop-shadow(0.05vw 0.15vw 0.25vw rgba(0,0,0,0.6));
}

.pin-left  { left:  1vw; }
.pin-right { right: 1vw; }

.bio-text {
  position: relative;
  z-index: 2;
  color: #1a1a1a;
  font-family: 'Special Elite', serif;
  font-size: clamp(11px, 1.3vw, 15px);
  line-height: 1.65;
}

.bio-text p + p { margin-top: 1vw; }

.handwritten {
  font-family: 'Caveat', cursive;
  font-size: clamp(12px, 1.5vw, 17px);
  color: var(--red);
  font-weight: 700;
  margin-top: 1.2vw;
}


/* ══════════════════════════════════════
   10. COLLAGE SVG
══════════════════════════════════════ */
.collage-svg {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.collage-img {
  width: 38vw;
  height: auto;
  filter: drop-shadow(0.3vw 0.4vw 1vw rgba(0,0,0,0.55));
  transform: rotate(-4deg);
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1);
  cursor: pointer;
}

.collage-img:hover {
  transform: rotate(0deg) scale(1.05);
}

.photo-img {
  position: absolute;
  top: 5%;
  left: 5%;
  width: 90%;
  height: 78%;
  object-fit: cover;
  z-index: 0;
}

.tape { position: absolute; z-index: 4; pointer-events: none; }

.tape-top {
  width: 4.5vw; min-width: 30px; height: auto;
  top: -1vw; left: 50%;
  transform: translateX(-50%) rotate(-2deg);
}

.tape-side {
  width: 1.5vw; min-width: 12px; height: 5vw;
  right: -1vw; top: 28%;
  transform: rotate(5deg);
}


/* ══════════════════════════════════════
   11. CONTACTO
══════════════════════════════════════ */
.contact-svg-block {
  display: inline-block;
  flex-direction: column;
  align-items: flex-start;
  gap: 3;
  width: 100%;
}

.contact-svg {
  width: 28vw;
  height: auto;
  display: block;
  margin-top: 40vw;
  transition: transform 0.25s ease;
  cursor: pointer;
}

.contact-svg:first-child { margin-top: 0; }
.contact-svg:hover { transform: scale(1.03); }


/* ══════════════════════════════════════
   12. ANIMACIONES DE ENTRADA
══════════════════════════════════════ */
.nametag.visible        { animation: a-drop  0.6s        cubic-bezier(.34,1.56,.64,1) forwards; }
.sm-heading-img.visible { animation: a-left  0.5s        ease                         forwards; }
.bio-note.visible       { animation: a-drop  0.6s 0.1s   cubic-bezier(.34,1.56,.64,1) forwards; }
.frame-front.visible    { animation: a-drop  0.5s 0.05s  cubic-bezier(.34,1.56,.64,1) forwards; }
.frame-mid.visible      { animation: a-drop  0.5s 0.15s  cubic-bezier(.34,1.56,.64,1) forwards; }
.frame-back.visible     { animation: a-drop  0.5s 0.25s  cubic-bezier(.34,1.56,.64,1) forwards; }

.contact-row:nth-child(1).visible { animation: a-right 0.4s 0.00s ease forwards; }
.contact-row:nth-child(2).visible { animation: a-right 0.4s 0.08s ease forwards; }
.contact-row:nth-child(3).visible { animation: a-right 0.4s 0.16s ease forwards; }
.contact-row:nth-child(4).visible { animation: a-right 0.4s 0.24s ease forwards; }

@keyframes a-drop {
  from { opacity: 0; transform: translateY(-2vw) scale(0.93); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
@keyframes a-left {
  from { opacity: 0; transform: translateX(-3vw); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes a-right {
  from { opacity: 0; transform: translateX(3vw); }
  to   { opacity: 1; transform: translateX(0); }
}

.portada-titulo,
.portada-sello {
  opacity: 0;
  animation: a-portada 0.8s cubic-bezier(.34,1.56,.64,1) forwards;
}
.portada-sello { animation-delay: 0.2s; }

@keyframes a-portada {
  from { opacity: 0; transform: translateY(-3vw) scale(0.95); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}


/* ══════════════════════════════════════
   13. FLECHA DE SCROLL
══════════════════════════════════════ */
.scroll-hint {
  position: absolute;
  bottom: 3vw;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
  animation: bounce 1.8s ease-in-out infinite;
  transition: opacity 0.4s ease;
}

.scroll-hint.oculta { opacity: 0; pointer-events: none; }

.scroll-arrow {
  width: 3vw;
  min-width: 24px;
  height: auto;
  display: block;
  filter: drop-shadow(0 0.2vw 0.5vw rgba(0,0,0,0.4));
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(0.8vw); }
}


/* ══════════════════════════════════════
   14. TOAST
══════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 5vw;
  left: 50%;
  transform: translateX(-50%);
  background: var(--black);
  color: var(--white);
  font-family: 'Special Elite', serif;
  font-size: clamp(12px, 1.1vw, 15px);
  letter-spacing: 0.05em;
  padding: 0.8vw 2vw;
  border-radius: 0.3vw;
  border-left: 0.25vw solid var(--red);
  box-shadow: 0 0.4vw 1.5vw rgba(0,0,0,0.6);
  z-index: 9999;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(.34,1.56,.64,1);
}


/* ══════════════════════════════════════
   15. MENU PROYECTOS
══════════════════════════════════════ */
.menu-proyectos {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1vw 0;
}

.menu-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 2vw;
}

.menu-svg {
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(80px, 12vw, 180px);
  max-height: 200px;
}

.menu-svg img {
  height: 100%;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0.2vw 0.3vw 0.6vw rgba(0,0,0,0.5));
}

.menu-svg:nth-child(1) { transform: rotate(-2deg); }
.menu-svg:nth-child(2) { transform: rotate(1deg); }
.menu-svg:nth-child(3) { transform: rotate(-1deg); }
.menu-svg:nth-child(4) { transform: rotate(2deg); }
.menu-svg:hover { transform: scale(1.1) rotate(0deg); }


/* ══════════════════════════════════════
   16. SECCIÓN FOTOGRAFÍA fondos
══════════════════════════════════════ */


/* ══════════════════════════════════════
   16. SECCIÓN FOTOGRAFÍA
══════════════════════════════════════ */

.seccion-fotografia {
  padding: 6vw 5vw;
}

.foto-titulo-wrap {
  margin-bottom: 6vw;
}

.foto-titulo-svg {
  width: 200vw;
  max-width: 1200px;
  transition: transform .25s ease, filter .25s ease;
}

.foto-titulo-wrap a {
  display: inline-block;
  cursor: pointer;
}

.foto-titulo-wrap a:hover .foto-titulo-svg {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.grid-fotos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 3vw;
}

.foto-item {
  position: relative;
  overflow: hidden;
  transition: transform .3s ease, filter .3s ease;
}

.foto-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.foto-item.grande {
  grid-column: span 3;
  height: 30vw;
}

.foto-item:not(.grande) {
  grid-column: span 2;
  height: 22vw;
}

.foto-marco {
  position: relative;
  width: 100%;
  height: 100%;
}

.foto-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.foto-frame-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.foto-item:nth-child(1)  { transform: rotate(-2deg); }
.foto-item:nth-child(2)  { transform: rotate(1.5deg); }
.foto-item:nth-child(3)  { transform: rotate(-1deg); }
.foto-item:nth-child(4)  { transform: rotate(2deg); }
.foto-item:nth-child(5)  { transform: rotate(-1.5deg); }
.foto-item:nth-child(6)  { transform: rotate(1deg); }
.foto-item:nth-child(7)  { transform: rotate(-2deg); }
.foto-item:nth-child(8)  { transform: rotate(1.5deg); }
.foto-item:nth-child(9)  { transform: rotate(-1deg); }
.foto-item:nth-child(10) { transform: rotate(2deg); }

.grid-fotos:hover .foto-item {
  filter: blur(2px) brightness(.6);
}

.grid-fotos .foto-item:hover {
  transform: scale(1.05) rotate(0deg);
  filter: none;
  z-index: 10;
}


/* ══════════════════════════════════════
   17. DIVIDERS
══════════════════════════════════════ */
.divider-wrap {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  background: #0a0a0a;
  padding: 1vw 0;
}

.divider-track {
  display: flex;
  width: max-content;
  animation: divider-scroll 8s linear infinite;
}

.divider-group {
  display: flex;
  align-items: center;
  gap: 3vw;
  padding-right: 3vw;
  flex-shrink: 0;
}

.divider-group span {
  font-family: 'Courier New', monospace;
  font-size: clamp(10px, 1.6vw, 20px);
  letter-spacing: 0.15em;
  white-space: nowrap;
  font-weight: 700;
}

@keyframes divider-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.divider-foto span { color: #ffe234; }
.divider-il span   { color: #6B8F2A; }


/* ══════════════════════════════════════
   18. SECCIÓN ILUSTRACIÓN — MASONRY BRUTAL
══════════════════════════════════════ */
.seccion-ilustracion {
  padding: 2vw 5vw 8vw;
}

.ilustracion-titulo-wrap {
  display: flex;
  justify-content: flex-end;
    margin-top: 1vw;
  margin-bottom: 1.5vw;
  padding-right: 2vw;
}

.ilustracion-titulo-svg {
  width: 200vw;
  max-width: 1200px;
  transition: transform .25s ease, filter .25s ease;
}

.ilustracion-titulo-svg:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.ilustracion-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows:  22vw 35vw 38vw;
  gap: 10px;
}

.il-item:nth-child(1) { grid-column: 1/6;  grid-row: 1; transform: rotate(-1.5deg); }
.il-item:nth-child(2) { grid-column: 6/9;  grid-row: 1; transform: rotate(2deg); }
.il-item:nth-child(3) { grid-column: 9/13; grid-row: 1; transform: rotate(-1deg); }
.il-item:nth-child(4) { grid-column: 1/10; grid-row: 2; transform: rotate(0.5deg); }
.il-item:nth-child(5) { grid-column: 10/13;grid-row: 2; transform: rotate(-2deg); }
.il-item:nth-child(6) { grid-column: 3/13; grid-row: 3; transform: rotate(-0.4deg); }

.il-item {
  overflow: hidden;
  position: relative;
  background: #0a0a0a;
  transition: transform .3s ease, filter .3s ease;
}

.il-item img,
.il-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.il-item::before {
  content: attr(data-n);
  position: absolute;
  top: 6px;
  left: 8px;
  font-size: 10px;
  font-family: 'Courier New', monospace;
  color: #e8d48a;
  letter-spacing: 0.2em;
  z-index: 2;
  pointer-events: none;
}

.ilustracion-grid:hover .il-item {
  filter: blur(1px) brightness(.5);
}

.ilustracion-grid .il-item:hover {
  filter: none !important;
  transform: scale(1.04) rotate(0deg) !important;
  z-index: 10;
}


/* ══════════════════════════════════════
   19. LIGHTBOX
══════════════════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-img {
  max-width: 80vw;
  max-height: 80vh;
  object-fit: contain;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.lightbox.active .lightbox-img {
  transform: scale(1);
}

.close {
  position: absolute;
  top: 2vw;
  right: 3vw;
  font-size: 3vw;
  color: white;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.close:hover { transform: scale(1.2); }

.lightbox-controls button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3vw;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 1vw;
  transition: transform 0.2s ease;
}

.prev { left: 3vw; }
.next { right: 3vw; }

.lightbox-controls button:hover {
  transform: translateY(-50%) scale(1.2);
}

.lightbox-serie {
  position: absolute;
  bottom: 3vw;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Special Elite', monospace;
  font-size: clamp(10px, 1.1vw, 14px);
  letter-spacing: 0.25em;
  color: rgba(245,240,234,0.6);
}


/* ══════════════════════════════════════
   20. POSICIONES COLLAGE
══════════════════════════════════════ */
.fi-1  { top:10%;  left:2%;   width:26vw; height:34vw; transform:rotate(-2.5deg); z-index:3; }
.fi-2  { top:4%;   left:26%;  width:20vw; height:28vw; transform:rotate(1.5deg);  z-index:2; }
.fi-3  { top:6%;   left:44%;  width:24vw; height:32vw; transform:rotate(-1deg);   z-index:3; }
.fi-4  { top:3%;   right:2%;  width:20vw; height:28vw; transform:rotate(3deg);    z-index:2; }
.fi-5  { top:38%;  left:1%;   width:28vw; height:20vw; transform:rotate(-1.5deg); z-index:4; }
.fi-6  { top:35%;  left:28%;  width:22vw; height:24vw; transform:rotate(2deg);    z-index:2; }
.fi-7  { top:37%;  left:50%;  width:20vw; height:26vw; transform:rotate(-2deg);   z-index:3; }
.fi-8  { top:33%;  right:1%;  width:18vw; height:30vw; transform:rotate(1.5deg);  z-index:4; }
.fi-9  { top:63%;  left:3%;   width:22vw; height:30vw; transform:rotate(2deg);    z-index:3; }
.fi-10 { top:60%;  left:24%;  width:26vw; height:28vw; transform:rotate(-1deg);   z-index:2; }
.fi-11 { top:64%;  left:50%;  width:22vw; height:26vw; transform:rotate(2.5deg);  z-index:4; }
.fi-12 { top:61%;  right:1%;  width:20vw; height:32vw; transform:rotate(-1.5deg); z-index:3; }


/* ══════════════════════════════════════
   21. RESPONSIVE — MÓVIL (≤ 680px)
══════════════════════════════════════ */
@media (max-width: 680px) {

  html { scroll-snap-type: none; }

  .portada {
    align-items: center;
    text-align: center;
    padding: 8vw 4vw 20vw;
  }

  .portada-titulo { width: 90vw; }
  .portada-sello  { width: 55vw; }

  .sm-grid {
    grid-template-columns: 1fr;
    gap: 6vw;
    padding: 4vw;
  }

  .sm-col-right { align-items: center; }

  .nametag    { width: 72vw; }
  .sm-heading { width: 80vw; }
  .bio-note   { width: 88vw; }

  .pin { width: 4vw; min-width: 14px; }
  .bio-text { font-size: clamp(12px, 3.5vw, 15px); }

  .menu-svg { height: 10vw; max-height: 50px; }

  .muro {
    position: relative;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6vw;
    padding: 4vw 4vw 8vw;
  }

  .foto-item,
  .fi-1,  .fi-2,  .fi-3,  .fi-4,
  .fi-5,  .fi-6,  .fi-7,  .fi-8,
  .fi-9,  .fi-10, .fi-11, .fi-12 {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 85vw !important;
    height: 60vw !important;
    transform: none !important;
  }

  .fi-1,  .fi-3,  .fi-5,  .fi-7,
  .fi-9,  .fi-11 { transform: rotate(-1deg) !important; }

  .fi-2,  .fi-4,  .fi-6,  .fi-8,
  .fi-10, .fi-12 { transform: rotate(1.5deg) !important; }

  .foto-titulo-wrap {
    position: relative;
    top: auto;
    left: auto;
    text-align: center;
    padding: 4vw 0 2vw;
  }

  /* Ilustración móvil */
  .ilustracion-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .il-item:nth-child(1),
  .il-item:nth-child(2),
  .il-item:nth-child(3),
  .il-item:nth-child(4),
  .il-item:nth-child(5),
  .il-item:nth-child(6) {
    grid-column: 1 / -1;
    grid-row: auto;
    height: 55vw;
    transform: none !important;
  }
}

/* SECCIÓN */
.seccion-motion {
  padding: 6vw 5vw;
}

/* TÍTULO IZQUIERDA */
.motion-titulo-wrap {
  margin-bottom: 6vw;
}

.motion-titulo-svg {
  width: 200vw;
  max-width: 1200px;
  transition: transform .25s ease, filter .25s ease;
}

.motion-titulo-wrap a:hover .motion-titulo-svg {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* GRID */
.grid-motion {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 3vw;
}

/* ITEMS */
.motion-item {
  position: relative;
  overflow: hidden;
  background: #0a0a0a;
  transition: transform .3s ease, filter .3s ease;
}

/* TAMAÑOS (igual lógica que fotos) */
.motion-item.grande {
  grid-column: span 3;
  height: 28vw;
}

.motion-item:not(.grande) {
  grid-column: span 3;
  height: 22vw;
}

/* VIDEO */
.motion-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ROTACIONES CAÓTICAS */
.motion-item:nth-child(1) { transform: rotate(-2deg); }
.motion-item:nth-child(2) { transform: rotate(1.5deg); }
.motion-item:nth-child(3) { transform: rotate(-1deg); }
.motion-item:nth-child(4) { transform: rotate(2deg); }

/* HOVER (igual que fotos) */
.grid-motion:hover .motion-item {
  filter: blur(2px) brightness(.6);
}

.grid-motion .motion-item:hover {
  transform: scale(1.05) rotate(0deg);
  filter: none;
  z-index: 10;
}

.divider-motion span { color: #3A86FF; }

/* ══════════════════════════════════════
   22. SECCIÓN AUDIOVISUAL
══════════════════════════════════════ */

/* — color del divisor: cámbialo cuando decidas — */
.divider-audio span { color: #5A4FCF; }

.seccion-audio {
  padding: 6vw 5vw 10vw;
}

.audio-titulo-wrap {
  margin-bottom: 6vw;
  display: flex;
  justify-content: flex-end;
}

.audio-titulo-svg {
  width: 200vw;
  max-width: 1200px;
  transition: transform .25s ease, filter .25s ease;
}

.audio-titulo-wrap a:hover .audio-titulo-svg {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.grid-audio {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3vw;
}

.audio-item {
  position: relative;
  overflow: hidden;
  background: #0a0a0a;
  height: 28vw;
  transition: transform .3s ease, filter .3s ease;
}

.audio-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.audio-item:nth-child(1) { transform: rotate(-1.5deg); }
.audio-item:nth-child(2) { transform: rotate(1deg); }

.grid-audio:hover .audio-item {
  filter: blur(2px) brightness(.6);
}

.grid-audio .audio-item:hover {
  transform: scale(1.05) rotate(0deg);
  filter: none;
  z-index: 10;
}

/* móvil */
@media (max-width: 680px) {
  .grid-audio {
    grid-template-columns: 1fr;
  }

  .audio-item {
    height: 55vw;
    transform: none !important;
  }
}

/* ════════════════════════════════════════════
   EMI BARRIOS — mobile-responsive.css
   Agrega esto al FINAL de tu style.css
   (o inclúyelo como <link> después de style.css)
════════════════════════════════════════════ */

/* ══════════════════════════════════════
   MÓVIL COMPLETO ≤ 768px
══════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── GLOBAL ── */
  body {
    overflow-x: hidden;
  }

  /* ── PORTADA ── */
  .seccion-portada {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  .portada-titulo {
    margin-top: 0;
    width: 100vw;
    display: flex;
    justify-content: center;
  }

  .portada-titulo-img {
    margin-left: 0;
    width: 98vw;
    max-width: 98vw;
  }

  .portada-sello {
    margin-top: -10vw;
    width: 62vw;
    align-self: center;
    transform: rotate(6deg);
  }

  .scroll-hint {
    bottom: 5vw;
  }

  .scroll-arrow {
    width: 7vw;
    min-width: 28px;
  }

  /* ── TICKER ── */
  .ticker-wrap {
    height: 14vw;
  }

  .ticker-svg {
    height: 14vw;
  }

  /* ── SOBRE MÍ ── */
  .sm-grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 6vw 4vw 8vw;
  }

  .sm-col-left {
    align-items: flex-start;
    gap: 2vw;
  }

  .sm-col-right {
    align-items: center;
    gap: 4vw;
    margin-top: 4vw;
  }

  .nametag {
    margin-bottom: -4vw;
    width: 80vw;
  }

  .sm-heading {
    width: 92vw;
  }

  .collage-img {
    width: 88vw;
    transform: rotate(-2deg);
  }

  /* CONTACTO — íconos en fila horizontal */
  .contact-svg-block {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 5vw;
    width: 100%;
    margin-top: 4vw;
  }

  .contact-svg {
    width: 28vw;
    margin-top: 0 !important;
    max-width: 110px;
  }

  /* ── CV / MENÚ ── */
  .CV {
    padding: 4vw 2vw 6vw;
  }

  .menu-container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 3vw;
  }

  .menu-svg {
    height: clamp(55px, 18vw, 100px);
    width: 42vw;
  }

  .menu-svg img {
    width: 100%;
    height: auto;
  }

  /* ── DIVIDERS ── */
  .divider-wrap {
    padding: 2.5vw 0;
  }

  .divider-group span {
    font-size: clamp(11px, 3.5vw, 18px);
  }

  /* ── FOTOGRAFÍA ── */
  .seccion-fotografia {
    padding: 8vw 4vw 10vw;
  }

  .foto-titulo-wrap {
    margin-bottom: 8vw;
    overflow: visible;
  }

  .foto-titulo-svg {
    width: 92vw;
    max-width: 92vw;
  }

  /* Grid fotos: 1 columna, alternando tamaños */
  .grid-fotos {
    display: flex;
    flex-direction: column;
    gap: 5vw;
  }

  .foto-item.grande,
  .foto-item:not(.grande) {
    grid-column: unset;
    width: 100%;
    height: 65vw;
  }

  /* Restaurar rotaciones sutiles en móvil */
  .foto-item:nth-child(odd)  { transform: rotate(-1deg) !important; }
  .foto-item:nth-child(even) { transform: rotate(1deg) !important; }

  /* Desactivar blur-hover en touch */
  .grid-fotos:hover .foto-item {
    filter: none;
  }

  /* ── ILUSTRACIÓN ── */
  .seccion-ilustracion {
    padding: 4vw 4vw 10vw;
  }

  .ilustracion-titulo-wrap {
    justify-content: flex-start;
    overflow: visible;
  }

  .ilustracion-titulo-svg {
    width: 92vw;
    max-width: 92vw;
  }

  .ilustracion-grid {
    display: flex;
    flex-direction: column;
    gap: 5vw;
  }

  .il-item:nth-child(1),
  .il-item:nth-child(2),
  .il-item:nth-child(3),
  .il-item:nth-child(4),
  .il-item:nth-child(5),
  .il-item:nth-child(6) {
    grid-column: unset !important;
    grid-row: unset !important;
    height: 70vw;
  }

  .il-item:nth-child(odd)  { transform: rotate(-0.8deg) !important; }
  .il-item:nth-child(even) { transform: rotate(1.2deg) !important; }

  .ilustracion-grid:hover .il-item {
    filter: none;
  }

  /* ── MOTION GRAPHICS ── */
  .seccion-motion {
    padding: 8vw 4vw 10vw;
  }

  .motion-titulo-wrap {
    margin-bottom: 8vw;
    overflow: visible;
  }

  .motion-titulo-svg {
    width: 92vw;
    max-width: 92vw;
  }

  .grid-motion {
    display: flex;
    flex-direction: column;
    gap: 6vw;
  }

  .motion-item.grande,
  .motion-item:not(.grande) {
    grid-column: unset;
    width: 100%;
    height: 58vw;
  }

  .motion-item:nth-child(odd)  { transform: rotate(-1deg) !important; }
  .motion-item:nth-child(even) { transform: rotate(1deg) !important; }

  .grid-motion:hover .motion-item {
    filter: none;
  }

  /* ── AUDIOVISUAL ── */
  .seccion-audio {
    padding: 8vw 4vw 14vw;
  }

  .audio-titulo-wrap {
    justify-content: flex-start;
    margin-bottom: 8vw;
    overflow: visible;
  }

  .audio-titulo-svg {
    width: 92vw;
    max-width: 92vw;
  }

  .grid-audio {
    grid-template-columns: 1fr;
    gap: 6vw;
  }

  .audio-item {
    height: 58vw;
  }

  .audio-item:nth-child(1) { transform: rotate(-0.8deg); }
  .audio-item:nth-child(2) { transform: rotate(0.8deg); }

  .grid-audio:hover .audio-item {
    filter: none;
  }

  /* ── LIGHTBOX MÓVIL ── */
  .lightbox-img {
    max-width: 95vw;
    max-height: 75vh;
  }

  .lightbox-btn {
    font-size: 7vw;
    padding: 3vw;
  }

  .lightbox-close {
    top: 3vw;
    right: 4vw;
    font-size: 8vw;
  }

  .lightbox-serie {
    font-size: clamp(10px, 3vw, 13px);
    bottom: 4vw;
  }

  /* ── TOAST ── */
  .toast {
    bottom: 8vw;
    font-size: clamp(12px, 3.5vw, 15px);
    padding: 2.5vw 5vw;
    border-radius: 1vw;
    width: 85vw;
    text-align: center;
  }

  /* ── SCROLL SUAVE ── */
  html {
    scroll-snap-type: none;
  }
}

/* ══════════════════════════════════════
   MÓVIL PEQUEÑO ≤ 400px (iPhone SE, etc.)
══════════════════════════════════════ */
@media (max-width: 400px) {

  .portada-titulo-img {
    width: 100vw;
  }

  .portada-sello {
    width: 70vw;
  }

  .nametag {
    width: 90vw;
  }

  .collage-img {
    width: 94vw;
  }

  .menu-svg {
    width: 46vw;
    height: clamp(50px, 20vw, 90px);
  }

  .foto-item.grande,
  .foto-item:not(.grande) {
    height: 72vw;
  }

  .il-item:nth-child(n) {
    height: 75vw !important;
  }

  .motion-item.grande,
  .motion-item:not(.grande),
  .audio-item {
    height: 64vw;
  }
}

/* ════════════════════════════════════════════
   LIGHTBOX — agregar al final de style.css
════════════════════════════════════════════ */

/* ── Estructura ── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.93);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

/* ── Imagen ── */
.lightbox-contenido {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0 9vw;
}

.lightbox-img {
  max-width: 80vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.7);
  animation: lb-appear 0.22s ease forwards;
}

@keyframes lb-appear {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── Fondo clicable ── */
.lightbox-fondo {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* ── Botón cerrar ── */
.lightbox-close {
  position: absolute;
  top: 1.8vw;
  right: 2vw;
  z-index: 10;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: clamp(18px, 2vw, 28px);
  width: clamp(36px, 3.2vw, 52px);
  height: clamp(36px, 3.2vw, 52px);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover {
  background: rgba(204, 0, 0, 0.65);
  transform: scale(1.1);
}

/* ── Flechas ── */
.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: clamp(18px, 2vw, 30px);
  width: clamp(42px, 4vw, 60px);
  height: clamp(42px, 4vw, 60px);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.lightbox-btn:hover {
  background: rgba(204, 0, 0, 0.55);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev { left: 2vw; }
.lightbox-next { right: 2vw; }

/* ── Label serie ── */
.lightbox-serie {
  position: absolute;
  bottom: 2.2vw;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Courier New', monospace;
  font-size: clamp(10px, 1vw, 13px);
  letter-spacing: 0.3em;
  color: rgba(245, 240, 234, 0.4);
  white-space: nowrap;
  pointer-events: none;
}

/* ── Móvil ── */
@media (max-width: 768px) {
  .lightbox-contenido {
    padding: 0 13vw;
  }

  .lightbox-img {
    max-width: 100%;
    max-height: 78vh;
  }

  .lightbox-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .lightbox-prev { left: 1.5vw; }
  .lightbox-next { right: 1.5vw; }

  .lightbox-close {
    top: 3vw;
    right: 3vw;
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .lightbox-serie {
    font-size: clamp(9px, 2.5vw, 11px);
    bottom: 3.5vw;
    letter-spacing: 0.2em;
  }
}

/* ── Landscape móvil ── */
@media (max-width: 768px) and (orientation: landscape) {
  .lightbox-img {
    max-width: 86vw;
    max-height: 90vh;
  }
}

/* ════════════════════════════════════════════
   LIGHTBOX SLIDER — agregar al final de style.css
════════════════════════════════════════════ */

/* ── Root container ── */
#lb-root {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#lb-root.lb-visible {
  opacity: 1;
  pointer-events: all;
}

/* ── Fondo oscuro ── */
.lb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  cursor: pointer;
}

/* ── Contenedor del track de slides ── */
.lb-track-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* ── Track: las slides viven aquí ── */
.lb-track {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Slide base (oculta por defecto) ── */
.lb-slide {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform    0.38s cubic-bezier(0.34, 1.2, 0.64, 1),
    opacity      0.38s ease,
    filter       0.38s ease,
    box-shadow   0.38s ease;
  cursor: pointer;
  pointer-events: all;
  /* Por defecto: slides lejanas, invisibles */
  opacity: 0;
  transform: scale(0.6) translateX(0);
  pointer-events: none;
}

.lb-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  border: none;
}

/* ── Slide ACTIVA (centro) ── */
.lb-slide.lb-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  filter: none;
  box-shadow: 0 8px 60px rgba(0, 0, 0, 0.8);
  pointer-events: all;
  z-index: 3;
  width: clamp(300px, 60vw, 900px);
  height: clamp(300px, 78vh, 900px);
}

/* ── Slide ANTERIOR (izquierda) ── */
.lb-slide.lb-prev-slide {
  opacity: 0.45;
  transform: translateX(-55vw) scale(0.62);
  filter: brightness(0.5);
  z-index: 2;
  pointer-events: all;
  cursor: pointer;
  width: clamp(200px, 40vw, 600px);
  height: clamp(200px, 55vh, 600px);
}

/* ── Slide SIGUIENTE (derecha) ── */
.lb-slide.lb-next-slide {
  opacity: 0.45;
  transform: translateX(55vw) scale(0.62);
  filter: brightness(0.5);
  z-index: 2;
  pointer-events: all;
  cursor: pointer;
  width: clamp(200px, 40vw, 600px);
  height: clamp(200px, 55vh, 600px);
}

.lb-slide.lb-prev-slide:hover,
.lb-slide.lb-next-slide:hover {
  opacity: 0.7;
  filter: brightness(0.7);
}

/* ── Flechas ── */
.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: clamp(20px, 2.2vw, 34px);
  width: clamp(44px, 4.5vw, 66px);
  height: clamp(44px, 4.5vw, 66px);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.lb-arrow:hover {
  background: rgba(204, 0, 0, 0.6);
  transform: translateY(-50%) scale(1.1);
}

.lb-prev { left: 2.5vw; }
.lb-next { right: 2.5vw; }

/* ── Botón cerrar ── */
.lb-close {
  position: absolute;
  top: 2vw;
  right: 2.5vw;
  z-index: 10;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: clamp(20px, 2vw, 30px);
  width: clamp(38px, 3.5vw, 54px);
  height: clamp(38px, 3.5vw, 54px);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lb-close:hover {
  background: rgba(204, 0, 0, 0.65);
  transform: scale(1.1);
}

/* ── Label ── */
.lb-label {
  position: absolute;
  bottom: 2.5vw;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  font-family: 'Courier New', monospace;
  font-size: clamp(10px, 1vw, 13px);
  letter-spacing: 0.3em;
  color: rgba(245, 240, 234, 0.4);
  white-space: nowrap;
  pointer-events: none;
}

/* ════════════════════════════════════════════
   MÓVIL — slider simplificado (solo imagen activa)
════════════════════════════════════════════ */
@media (max-width: 768px) {

  .lb-slide.lb-active {
    width: 92vw;
    height: 70vh;
  }

  /* En móvil las slides laterales son más pequeñas
     y menos intrusivas */
  .lb-slide.lb-prev-slide {
    transform: translateX(-80vw) scale(0.55);
    opacity: 0.3;
  }

  .lb-slide.lb-next-slide {
    transform: translateX(80vw) scale(0.55);
    opacity: 0.3;
  }

  .lb-arrow {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .lb-prev { left: 1vw; }
  .lb-next { right: 1vw; }

  .lb-close {
    top: 3vw;
    right: 3vw;
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .lb-label {
    font-size: clamp(9px, 2.5vw, 11px);
    bottom: 3.5vw;
  }
}

/* ── Landscape móvil ── */
@media (max-width: 768px) and (orientation: landscape) {
  .lb-slide.lb-active {
    width: 70vw;
    height: 88vh;
  }
}

/* FIX CLICK MÓVIL */
.lb-overlay {
  pointer-events: auto;
}

#lb-root:not(.lb-visible) .lb-overlay {
  pointer-events: none;
}

/* prevenir overlays fantasma */
.lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
}

.foto-item {
  position: relative;
  z-index: 1;
}

.foto-item img {
  pointer-events: none;
}

.lb-track,
.lb-arrow,
.lb-close {
  pointer-events: auto;
}

#lb-root {
  touch-action: manipulation;
}