/* ════════════════════════════════════════
   MILAGROS PICO PICCA — styles.css (Optimizado)
   ════════════════════════════════════════ */

/* ─── 1. RESET & BASE ─────────────────── */
@font-face {
  font-family: 'AlteHaasGrotesk';
  src: url('fonts/AlteHaasGroteskBold.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'AlteHaasGrotesk';
  src: url('fonts/AlteHaasGroteskRegular.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}

* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

html { 
  scroll-behavior: smooth;
  height: 100%;
}

body {
  background: #360707;
  font-family: 'AlteHaasGrotesk', sans-serif;
  overflow-x: hidden;
  overflow-y: auto; 
  height: auto;
}

/* Cuando el modal está abierto */
body.modal-open {
  overflow: visible;
  padding-right: calc(100vw - 100%);
}

body.modal-open .contacto-btn,
body.modal-open .tag-bar,
body.modal-open .nav-tags-btn {
  padding-right: calc(100vw - 100%);
}

/* ─── 2. HEADER & NAV ─────────────────── */
header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 800;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0rem 0rem;
  pointer-events: none;
}
.logo, nav { pointer-events: all; }
.logo { 
  text-decoration: none;
  transition: transform 0.2s; 
}
.logo:hover { transform: rotate(4deg); }

.logo-img {
  height: 6vw;
  min-height: 100px;
  max-height: 300px;
  display: block;
    transition: transform 0.4s cubic-bezier(.34, 1.56, .64, 1);
}
.logo-group:hover .logo-img {
  transform: rotate(-5deg);
}
nav {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 3rem;
  margin-right: 3rem;
}
nav a {
  text-decoration: none;
  display: block;
  transition: transform 0.2s;
}
nav a:hover { transform: rotate(-30deg); }

.nav-img {
  bottom: 2.2rem;
  height: 2.2vw;
  min-height: 75px;
  max-height: 75px;
  display: block;
}
.tags-img {
  padding-top: 2vw;
  height: 4vw;
  min-height: 80px;
  max-height: 80px;
  display: block;
}

.logo-group {
  transform: scale(1.1);
  padding-top: 3vw;
  padding-left: 5vw;
  display: flex;
  align-items: flex-start;
  pointer-events: all;
  cursor: pointer;
}

/* ─── EYE TRACKING CHARACTER ──────────── */
.eyechar-container {
  position: relative;
  width: 9vw;
  min-width: 170px;
  max-width: 170px;
  margin-left: -3vw;
  pointer-events: none;
  align-self: flex-end;
  margin-bottom: -50px;
}
.eyechar {
  position: relative;
  width: 50%;
  transform: rotate(15deg);
}
.eyechar-face { width: 100%; display: block; position: relative; z-index: 1; }
.eye-system { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2; }
.eye {
  position: absolute;
  width: 37%; height: 35%;
  display: flex; align-items: center; justify-content: center;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
#eye-left  { top: 50%; left: 65%; }
#eye-right { top: 50%; left: 90%; }
#eye-left-t  { top: 50%; left: 65%; }
#eye-right-t { top: 50%; left: 90%; }
.pupil { width: 80%; height: 80%; display: flex; align-items: center; justify-content: center; }
.pupil img { width: 100%; height: auto; display: block; }

/* ─── 3. HERO ─────────────────────────── */
.hero-wrapper {
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 1;
}
.hero {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #1a0505;
}
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 100%;
  display: block;
}

/* ─── 4. BOTÓN CONTACTO ───────────────── */
.contacto-btn {
  position: fixed;
  bottom: 4rem;
  right: 4rem;
  z-index: 999;
  text-decoration: none;
  display: block;
  transition: transform 0.35s cubic-bezier(.34,1.56,.64,1);
  filter: drop-shadow(2px 4px 5px rgba(0,0,0,0.45));
}
.contacto-btn:hover { transform: rotate(-17deg) scale(1.13); }
.contacto-svg {
  max-width: 220px;
  min-width: 220px;
  height: auto;
  display: block;
  transform: rotate(-14deg);
}

/* ─── 5. SECCIÓN PROYECTOS ────────────── */
.projects-wrapper {
  position: relative;
  z-index: 10;
  background: #360707;
  pointer-events: auto; 
}
.canvas {
  position: relative;
  width: 100%;
  padding: 0% 2% 8rem;
  pointer-events: auto;
}
.band {
  position: relative;
  width: 100%;
  pointer-events: none; 
}

/* ─── 6. ITEMS DE PROYECTO Y STICKERS ─── */
.pi {
  position: absolute;
  cursor: pointer;
  pointer-events: auto;
  z-index: 10; 
}
.pi img,
.pi video {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}

.lbl {
  position: absolute;
  inset: 10px 10px auto auto;
  background: #000;
  border: 2px solid #03a11a;
  color: #fff;
  font-size: 1.26rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.44rem 0.77rem;
  opacity: 0;
  transition: opacity 0.18s;
  pointer-events: none;
  white-space: nowrap;
  z-index: 20;
  text-align: right;
}
.pi:hover .lbl { opacity: 1; }

.stk {
  position: absolute;
  pointer-events: none;
  z-index: 15;
}
.stk img { width: 100%; height: auto; display: block; }

/* ─── 7. POSICIONES DESKTOP ───────────── */
.f1            { height: 32vw; }
.f1-figma      { left: 4%;   top: 8vw;     width: 38%; }
.f1-waitforme  { left: 55%;  top: 0;       width: 37%; }
.f1-s1         { left: 16%;  top: 25vw;    width: 1%;  }
.f1-s2         { left: 23%;  top: 27vw;    width: 6%;  }

.f2            { height: 30vw; }
.f2-sleep      { left: 31%;  top: 3vw;     width: 21%; }
.f2-sticker1   { left: 18%;  top: -1.5vw;  width: 4.5%;  transform: rotate(2deg); }
.f2-sticker2   { left: 10%;  top: 0;       width: 6%; transform: rotate(2deg); }
.f2-monoblock  { left: 38%;  top: 15vw;  width: 40%; }
.f2-stk-luna   { left: 74%;  top: 0;       width: 9%;  }

.f3            { height: 30vw; }
.f3-sobrecarga { left: 2%;   top: -7vw;  width: 29%; }
.f3-sticker3   { left: 75%;  top: -15vw;   width: 21%; }
.f3-loops      { left: 76%;  top: 20vw;    width: 22%; }
.f3-sm         { left: 30%;  top: 22vw;    width: 5%;  }
.f3-sticker4   { right:66%;  top: 19vw;    width: 4.5%; transform: rotate(-3deg); }

.f4            { height: 32vw; }
.f4-nytfren    { left: 11%;  top: 8vw;   width: 42%; }
.f4-sticker5   { left: 3%;  top: 2vw;     width: 12%;  }
.f4-tenis      { left: 61%;  top: 19vw;    width: 19%; }
.f4-sticker6   { left: 63%;  top: 6vw;    width: 5.8%;  }
.f4-sticker7   { left: 57%;   top: 11vw;    width: 6%; }
.f4-condenast  { left: 55%;  top: 40vw;    width: 37%; }
.f4-sr1        { left: 7%;   top: 2vw;     width: 4%;  }
.f4-sr2        { left: 7%;   top: 6vw;     width: 3%;  }

.f5            { height: 28vw; }
.f5-riso       { left: 3%;   top: 19vw;  width: 36%; }
.f5-metamorfosis { left: 47%; top: 32vw;   width: 15%; }
.f5-sticker8   { left: 40%;  top: 18vw;    width: 4.5%;  }
.f5-sticker9   { left: 49%;  top: 21vw;    width: 4.5%;  }
.f5-sorg       { left: 70%;  top: 0;       width: 7%;  }

.f6            { height: 32vw; }
.f6-martillo   { left: 15%;  top: 18vw;    width: 32%; }
.f6-sticker10  { left: 87%;  top: 9vw;    width:  5.3%;  }
.f6-gords      { left: 58.5%;  top: 26.5vw;   width: 41%; }
.f6-sdis       { left: 38%;  top: 14vw;    width: 5%;  }
.f6-pendeja    { left: 67%;  top: 12vw;     width: 18%; }
.f6-sticker11  { left: 45%;  top: 47vw;    width: 5.3%;  }

.f7            { height: 34vw; }
.f7-society    { left: 2%;   top: 22.5vw;  width: 37%; }
.f7-sticker12  { left: 47%;  top: 21vw;     width: 6.5%;  }
.f7-sticker13  { left: 25%;  top: 52vw;     width: 20%;  }
.f7-spacas     { left: 29%;  top: 25vw;    width: 11%; }
.f7-snerd      { left: 68%;  top: 0;       width: 4%;  }

.f8            { height: 30vw; }
.f8-latimes    { left: 50%;  top: 15vw;   width: 49%; }
.f8-sticker14  { left: 81%;  top: 38vw;     width: 5%;  }
.f8-goodbad    { left: 9%;   top: 33vw;  width: 32.4%; }
.f8-ssal       { left: 10%;  top: 19vw;    width: 100%;  }

.f9            { height: 28vw; }
.f9-crucero    { left: 45%;  top: 13.3vw;   width: 20%; }
.f9-sticker15  { left: 52%;  top: 64vw;    width: 15%;  }
.f9-romanticas { left: 74%;  top: 18vw;   width: 22%; }

.f10           { height: 32vw; }
.f10-forfun    { left: 4%;   top: 14vw;   width: 44%; }
.f10-jesus     { left: 52%;  top: 10vw;   width: 39%; }
.f10-sticker16 { left: 10%;   top: 76vw;   width: 5.3%; transform: rotate(13deg);}
.f10-sdiv      { left: 46%;  top: 19vw;   width: 10%; }

.f11           { height: 28vw; }
.f11-disco     { left: 25%; top: 33vw; width: 39%; }
.f11-xmas      { left: 70%;  top: 11vw;    width: 27%; }
.f12           { height: 70vw; }
.f12-nimia     { left: 4%;   top: 42.5vw;  width: 21%; }
.f12-caminata  { left: 32%;  top: 47vw;    width: 46%; }

/* ─── 8. MODAL ────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 5rem 1.5rem 1.5rem;
  background: rgba(0,0,0,0.55);
  overflow-y: auto;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.modal-overlay.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
}
.modal {
  width: 65%;
  max-width: 1200px;
  border-radius: 0px;
  padding: 6rem 2.5rem 3rem;
  position: relative;
  margin: 0 auto;
  animation: mIn 0.28s ease;
}
@keyframes mIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.modal-close {
  position: absolute;
  top: 1rem; left: 1rem;
  background: none; border: none;
  font-size: 1.5rem; cursor: pointer;
  color: #000; font-weight: 700; line-height: 1;
}
.modal-title {
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 700;
  font-family: 'AlteHaasGrotesk', sans-serif;
  text-align: center;
  color: #000;
  margin-bottom: 1.2rem;
}
.modal-desc {
  font-size: 1.3rem;
  font-weight: 300;
  font-family: 'AlteHaasGrotesk', sans-serif;
  line-height: 1.2;
  text-align: center;
  color: #111;
  max-width: 620px;
  margin: 0 auto 2.5rem;
}
.modal-desc a {
  color: inherit;
  text-decoration: underline;
}

/* LAYOUTS DE MODAL */
.modal-imgs {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

/* stack: imágenes apiladas una abajo de la otra */
.modal-imgs.layout-stack {
  flex-direction: column;
  align-items: center;
}
.modal-imgs.layout-stack img { width: 100%; height: auto; }

/* grid: dos columnas iguales */
.modal-imgs.layout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.modal-imgs.layout-grid img { width: 100%; height: auto; object-fit: contain; }

/* mixed: primera imagen completa, resto en dos columnas */
.modal-imgs.layout-mixed { flex-direction: row; }
.modal-imgs.layout-mixed img:first-child { width: 100%; }
.modal-imgs.layout-mixed img:not(:first-child) { width: calc(50% - 0.75rem); }

/* justify: galería con filas justificadas tipo Cargo */
.modal-imgs.layout-justify {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.modal-imgs.layout-justify .modal-row {
  display: flex;
  gap: 10px;
}
.modal-imgs.layout-justify .modal-row img {
  width: 100%;
  height: auto;
  min-width: 0;
  display: block;
}

/* free: posición libre adaptada para el escalador JS en Escritorio */
.modal-imgs.layout-free {
  position: relative;
  width: 100%;
}
.modal-imgs.layout-free img, 
.modal-imgs.layout-free video {
  position: absolute;
  height: auto !important;
  object-fit: contain;
}
/* Esto centra el bloque completo en computadoras y oculta desbordes de forma segura */
.free-scaler {
  width: 100%;
  max-width: 700px;
  margin: 0 auto !important;
  overflow: visible;  /* ← antes era hidden */
}
/* cells: imágenes en celdas con tamaño interno controlado */
.modal-imgs.layout-cells {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.modal-imgs.layout-cells .cell {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.modal-imgs.layout-cells .cell img {
  display: block;
  height: auto;
}
[data-no-lightbox] img,
[data-no-lightbox] video {
  cursor: default;
}

/* ─── 9. MODAL SOBRE MÍ ───────────────── */
.sm-lang-btn {
  position: absolute; top: 1rem; right: 1rem;
  background: #fff; color: #440606;
  border: 1.5px solid #000; border-radius: 20px;
  font-family: 'AlteHaasGrotesk', sans-serif;
  font-size: 0.72rem; font-weight: 300;
  padding: 0.3rem 0.9rem; cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 0.2s, color 0.2s;
}
.sm-lang-btn:hover { background: #000; color: #fff; }

.sm-grid {
  display: grid;
  grid-template-columns: 5fr 3fr 2fr 2fr;
  gap: 2rem;
  align-items: start;
}

.sm-col-foto {
  position: relative;
}
.sm-foto {
  position: relative;
  border-radius: 10px;
  overflow: visible;
}
.sm-foto img:last-child {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  border: 4px solid #2a8a00;
  object-fit: cover;
}

/* Título SOBRE MI — imagen superpuesta sobre la foto */
.sm-titulo-img {
  position: absolute !important;
  top: -30px;
  left: -20px;
  width: 90% !important;
  height: auto !important;
  border: none !important;
  border-radius: 0 !important;
  z-index: 10;
  transform: rotate(-3deg);
}

/* Columna bio */
.sm-bio {
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.4;
  color: #111;
  padding-top: 3rem;
  font-family: 'AlteHaasGrotesk', sans-serif;
}
.sm-bio p { margin-bottom: 1rem; }
.sm-bio a { color: #000000; font-weight: 300; text-decoration: underline; }

/* Columna clientes + cursos */
.sm-cl { padding-top: 0.5rem; }
.sm-cl-img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 1rem;
  transform: rotate(-6deg);
}
.sm-cl2-img {
  width: 75%;
  height: auto;
  display: block;
  margin-bottom: 1rem;
  transform: rotate(-8deg);
}
.sm-cl ul {
  list-style: none;
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.4;
  color: #111;
  margin-bottom: 1.5rem;
  font-family: 'AlteHaasGrotesk', sans-serif;
}
.sm-cl ul li a { color: #111; text-decoration: underline; }

.sm-cl .cursos-list {
  font-size: 1.1rem;
  line-height: 1.4;
  font-weight: 300;
  color: #111;
  font-family: 'AlteHaasGrotesk', sans-serif;
}
.sm-cl .cursos-list li { margin-bottom: 0.4rem; }

.sm-cursos {
  padding-top: 0.5rem;
  font-family: 'AlteHaasGrotesk', sans-serif;
  font-weight: 300;
  font-size: 1.1rem;
  line-height: 1.4;
  color: #111;
}
.sm-cursos .cursos-list {
  list-style: none;
}
.sm-cursos .cursos-list li { margin-bottom: 0.4rem; }

/* ─── 10. COLORES DE MODALES ──────────── */
.mc-figma        { background: #00cf66; }
.mc-waitforme    { background: #a8d4ff; }
.mc-monoblock    { background: #00380f; }
.mc-sobrecarga   { background: #57389b; }
.mc-sobremi      { background: #b06aff; width:90%; }
.mc-nytimes      { background: #451095; }
.mc-pendeja      { background: #E488E9; }
.mc-elmartillo   { background: #0000DE; }
.mc-society      { background: #079C81; }
.mc-goodbad      { background: #9966cc; }
.mc-default      { background: #e8e0d0; }
.mc-zeitleo      { background: #fce117; }
.mc-condenast    { background: #321915; }
.mc-metamorfosis { background: #8F6493; }
.mc-gords        { background: #1C0101; }
.mc-latimes      { background: #513701; }
.mc-crucero      { background: #0AA0FA; }
.mc-romanticas   { background: #ff63cb; }
.mc-jesus        { background: #5a3117; }
.mc-forfun       { background: #0000DE; }
.mc-disco        { background: #0000DE; }
.mc-nimia        { background: #dba0de; }
.mc-riso         { background: #5533aa; }
.mc-margo        { background: #000; }
.mc-transparent  { background: transparent; }

/* ─── COLOR DE TIPOGRAFIA POR PROYECTO ──────────── */
.mc-monoblock .modal-title, .mc-monoblock .modal-desc { color: #fff; }
.mc-nytimes .modal-title, .mc-nytimes .modal-desc { color: #fff; }
.mc-condenast .modal-title, .mc-condenast .modal-desc, .mc-condenast .modal-desc a { color: #fff; }
.mc-riso .modal-title, .mc-riso .modal-desc, .mc-riso .modal-desc a { color: #fff; }
.mc-pendeja .modal-imgs { gap: 0; }
.mc-elmartillo .modal-title, .mc-elmartillo .modal-desc, .mc-elmartillo .modal-desc a { color: #fff; }
.mc-gords .modal-title, .mc-gords .modal-desc, .mc-gords .modal-desc a { color: #fff; }
.mc-crucero .modal-title, .mc-crucero .modal-desc, .mc-crucero .modal-desc a { color: #000000; }
.mc-jesus .modal-title, .mc-jesus .modal-desc, .mc-jesus .modal-desc a { color: #fff; }
.mc-forfun .modal-title, .mc-forfun .modal-desc, .mc-forfun .modal-desc a { color: #fff; }
.mc-disco .modal-title, .mc-disco .modal-desc, .mc-disco .modal-desc a { color: #fff; }
.mc-margo .modal-title, .mc-margo .modal-desc, .mc-margo .modal-desc a { color: #fff; }
.mc-latimes .modal-title, .mc-latimes .modal-desc, .mc-latimes .modal-desc a { color: #fff; }

/* Header de dos columnas para proyectos con video */
.modal-header-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  align-items: start;
}
.modal-title--left { text-align: left; }
.modal-desc--left  { text-align: left; max-width: 100%; }

/* Wrapper del video Vimeo — proporción 9:16 */
.vimeo-wrap {
  position: relative;
  padding-top: 177.7%;
}
.vimeo-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ─── 11. BARRA DE TAGS (UNIFICADA) ─────────────────── */
.tag-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9000;
  background: #0000de;
  border-bottom: 4px solid #03a11a;
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: visible !important;
}
.tag-bar.open { transform: translateY(0); }

.tag-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0vw; 
  padding: 50px 2rem;
  flex-wrap: wrap;
}
.tag-item {
  display: block;
  text-decoration: none;
}
.tag-item img {
  height: 70px;
  width: auto;
  display: block;
  transition: transform 0.2s ease;
}
.tag-item:hover img { transform: scale(1.1); }

/* El botón verde de TAGS que cuelga */
.nav-tags-btn {
  background: #0000de;
  border: 4px solid #03a11a;
  border-top: none;
  border-radius: 0 0 14px 14px;
  padding: 0.5rem 1rem;
  position: absolute;
  top: 100%; 
  left: 50%;
  transform: translateX(-50%);
  transform-origin: top center;
  transition: padding 0.4s ease-in-out, opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: all;
  z-index: 9001;
  min-height: 80px;
  min-width: 110px;
}
.nav-tags-btn .nav-img {
  height: 50px !important;
  min-height: 0 !important;
  width: auto;
}
.nav-tags-btn:hover:not(.is-open) {
  padding: 3rem 1rem 0.5rem 1rem;
}
.nav-tags-btn.is-open {
  padding: 2rem 1rem 0.5rem 1rem;
}

/* Modo filtrado — grid de tags */
.canvas.filtered {
  columns: 3;
  column-gap: 15px;
  padding: 20rem 4% 8rem;
}
.canvas.filtered .band {
  display: contents;
}
.canvas.filtered .pi {
  position: relative !important;
  width: 100% !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  break-inside: avoid;
  margin-bottom: 15px;
}

.filtered-gallery,
.canvas.filtered .pi {
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── LIGHTBOX ─────────────────────── */
.lightbox {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  padding: 4rem;
  cursor: zoom-out;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}
.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-content img,
.lightbox-content video {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  cursor: default;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  z-index: 10;
  font-weight: 300;
  font-family: 'AlteHaasGrotesk', sans-serif;
  transition: color 0.2s;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  color: #fff;
}
.lightbox-close {
  top: 1.5rem;
  right: 2rem;
  font-size: 1.5rem;
}
.lightbox-prev, .lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  padding: 1rem;
}
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

/* ═══════════════════════════════
   TIENDA
═══════════════════════════════ */
body.tienda-open header {
  display: none;
}
.nav-tienda-btn {
  color: none;
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: 'AlteHaasGrotesk', sans-serif;
  background: none;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  transition: background 0.2s, color 0.2s;
  scale: 1.6;
  transition: transform 0.2s;
}


.nav-tienda-btn:hover {
  background: none;
  color: none;
  transform: rotate(-30deg); 
}

.tienda-page {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 700;
  background: #ffffff url('Image/background_tienda.png') center center / cover no-repeat;  padding-top: 0;
  overflow-y: auto;
  
}
.tienda-logo {
  padding: 0;
  cursor: pointer;
}

.tienda-logo .logo-group {
  transform: scale(0.5);
  transform-origin: top left;
  padding-top: 2vw;
  padding-left: 5vw;
}

.tienda-logo .eyechar-container {
  margin-left: -4vw;
  min-width: 230px;
  max-width: 230px;
}

.tienda-page.open {
  display: block;
}

.tienda-header {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  margin-right: 3rem;
  z-index: 10;
}
.tienda-close {
  background: none;
  border: none;
  color: #1a0505;
  font-size: 1.5rem;
  cursor: pointer;
  font-family: 'AlteHaasGrotesk', sans-serif;
}

.tienda-titulo {
  font-size: 2rem;
  font-weight: 700;
  color: #1a0505;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: 'AlteHaasGrotesk', sans-serif;
}

.carrito-toggle {
  background: none;
  border: none;
  color: #1a0505;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0;
  transition: transform 0.2s;
}

.carrito-toggle:hover {
  transform: scale(1.1);
  background: none;
}

.carrito-img {
  height: 30px;
  width: auto;
  display: block;
}

.carrito-count {
  position: absolute;
  top: 12px;
  right: 6px;
  background: none;
  color: #000000;
  border-radius: 50%;
  width: 1.1rem;
  height: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
}
.tienda-promo {
  background:none;
  color: #000000;
  font-family: 'AlteHaasGrotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 300;
  padding: 0.4rem;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 0.01px solid #000000;
}

.tienda-promo-track {
display: inline-flex;
white-space: nowrap;
min-width: 200%;
animation: marquee 54s linear infinite;
}

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

.tienda-volver {
  background: none;
  border: none;
  font-family: 'AlteHaasGrotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: #1a0505;
  cursor: pointer;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.4rem 0;
  transition: opacity 0.2s;
}

.tienda-volver:hover {
  opacity: 0.5;
}
.tienda-body {
  padding: 0 0 4rem 0;
}
.cursor-star {
  position: fixed;
  pointer-events: none;
  z-index: 999999;
  font-size: 1rem;
  transform: translate(-50%, -50%);
  animation: star-fade 0.8s ease forwards;
}

@keyframes star-fade {
  0%   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -150%) scale(0.3); }
}
/* ─── GRILLA PRODUCTOS ─────── */
.productos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: transparent;
  margin: 0;
}
.producto-card {
  background: transparent;
  border: none;
  border-radius: 0;
  cursor: pointer;
  position: relative;
  margin-right: -1px;
}
/* Saca el borde derecho de la última columna */
.producto-card:nth-child(3n) {
  border-right: none;
}

/* Saca el borde inferior de la última fila */
.producto-card:nth-last-child(-n+3) {
  border-bottom: none;
}

.producto-card:hover { transform: none; }

.producto-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #e8e4e0;
  border: 1px solid #1a0505;
}

.producto-img-front,
.producto-img-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.4s ease;
}

.producto-img-back { opacity: 0; }
.producto-card:hover .producto-img-front { opacity: 0; }
.producto-card:hover .producto-img-back  { opacity: 1; }

/* Badge */
.producto-badge {
  position: absolute;
  top: 0.8rem;
  left: 0;
  background: #1a0505;
  color: #fff;
  font-family: 'AlteHaasGrotesk', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.6rem;
  text-transform: uppercase;
  z-index: 5;
}

/* Botón agregar */
.producto-add-btn {
  position: absolute;
  bottom: 0.8rem;
  right: 0.8rem;
  background: #fff;
  border: none;
  border-radius: 30px;
  font-family: 'AlteHaasGrotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: #1a0505;
  padding: 0.5rem 0.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  overflow: hidden;
  max-width: 2.4rem;
  opacity: 0;
  transition: opacity 0.2s ease, max-width 0.3s ease, padding 0.3s ease, gap 0.3s ease, background 0.2s ease, color 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.producto-card:hover .producto-add-btn { opacity: 1; }

.producto-add-btn:hover {
  max-width: 160px;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: #1a0505;
  color: #fff;
}

.producto-add-btn svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.producto-add-label {
  overflow: hidden;
  max-width: 0;
  transition: max-width 0.3s ease;
  white-space: nowrap;
}

.producto-add-btn:hover .producto-add-label { max-width: 120px; }

.producto-info {
padding: 1.3rem;
background: transparent;
display: flex;
justify-content: space-between;
align-items: center;
gap: 0.5rem;
}

.producto-nombre {
  font-size: 0.9rem;
  font-weight: 300;
  color: #1a0505;
  font-family: 'AlteHaasGrotesk', sans-serif;
}

.producto-precio {
  font-size: 0.82rem;
  font-weight: 300;
  color: #1a0505;
  font-family: 'AlteHaasGrotesk', sans-serif;
  white-space: nowrap;
}

.producto-agotado-tag {
  font-size: 0.82rem;
  font-weight: 300;
  color: #1a0505;
  font-family: 'AlteHaasGrotesk', sans-serif;
  white-space: nowrap;
}
/* ─── MODAL PRODUCTO ──────── */
.producto-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(0, 0, 0, 0.75);
  align-items: center;
  justify-content: center;
  padding: 0;
}

.producto-overlay.open {
  display: flex;
}

.producto-modal {
display: grid;
grid-template-columns: 2fr 1fr;
width: 100vw;
max-width: 900px;
max-height: 90vh;
border-radius: none;
overflow: auto;
background: #fff;
margin: auto;
}
.producto-modal-close {
position: absolute;
left: 1rem;
color: #fff;
filter: drop-shadow(0 1px 4px rgba(0,0,0,0.5));
z-index: 10;
}
.producto-modal-close-arrow {
display: none;
width: 1.6rem;
height: 1.6rem;
}

/* Columna izquierda — info */
.producto-modal-texto {
  font-size: 1rem;
  font-weight: 300;
  color: #333;
  font-family: 'AlteHaasGrotesk', sans-serif;
  line-height: 1.5;
  margin-bottom: 1rem;
}
.producto-modal-info {
  padding: 5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  order: 2;
  overflow-y: auto;
}
.producto-modal-aviso {
  font-size: 1rem;
  font-weight: 300;
  color: #333;
  font-family: 'AlteHaasGrotesk', sans-serif;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.producto-modal-header {
display: flex;
flex-direction: column;
gap: 0.3rem;
margin-bottom: 0.5rem;
}
.producto-modal-nombre {
font-size: 1.3rem;
font-weight: 300;
color: #1a0505;
font-family: 'AlteHaasGrotesk', sans-serif;
text-transform: uppercase;
line-height: 1.15;
margin-bottom: 0;
}
.producto-modal-precio {
font-size: 1.3rem;
font-weight: 300;
color: #1a0505;
font-family: 'AlteHaasGrotesk', sans-serif;
margin-bottom: 1.8rem;
white-space: nowrap;
flex-shrink: 0;
}

/* Detalles tipo lista */
.producto-modal-desc {
padding-top: 1.2rem;
padding-bottom: 1.2rem;
margin-bottom: 5.8rem;
border-top: 1px solid #e0e0e0;
border-bottom: 1px solid #e0e0e0;
}
.producto-modal-detalle-item:first-of-type {
border-top: 1px solid #e0e0e0;
}
.producto-modal-detalle-item {
padding-top: 1.2rem;
font-size: 1rem;
font-weight: 300;
color: #333;
font-family: 'AlteHaasGrotesk', sans-serif;
line-height: 0.4;
}
.producto-modal-aviso {
  font-size: 0.75rem;
  font-weight: 300;
  color: #888;
  font-family: 'AlteHaasGrotesk', sans-serif;
  line-height: 1.4;
  margin-top: 1rem;
}

.producto-modal-agregar {
background: #57ed6e;
color: #1a0505;
border: none;
border-radius: 30px;
font-family: 'AlteHaasGrotesk', sans-serif;
font-size: 0.90rem;
font-weight: 300;
padding: 0.85rem 1.8rem;
cursor: pointer;
transition: background 0.2s, color 0.2s;
align-self: center;
letter-spacing: 0.05em;
text-transform: uppercase;
min-width: 260px;
text-align:center;
}
.producto-modal-agregar:disabled {
background: #f0f0f0;
color: #aaa;
border-color: #f0f0f0;
cursor: not-allowed;
}
.producto-modal-agregar.agregado {
background: #57ed6e;
color: #1a0505;
border: none;
opacity: 1;

}.producto-modal-agregar.agregado:disabled {
background: #57ed6e;
color: #1a0505;

opacity: 1;
cursor: default;
}
.producto-modal-envio {
font-size: 0.6rem;
font-weight: 300;
color: #666;
font-family: 'AlteHaasGrotesk', sans-serif;
margin-top: 0.4rem;
margin-right: 0rem;
margin-bottom: 1.5rem;
text-align: center;
}
.producto-modal-cantidad {
margin-bottom: 1.8rem;
}
.producto-modal-cantidad-label {
display: block;
font-size: 0.85rem;
font-weight: 300;
color: #1a0505;
font-family: 'AlteHaasGrotesk', sans-serif;
margin-bottom: 0.7rem;
}
.producto-modal-miniheader {
display: none;
}
#cantidad-modal-en-carrito {
color: #888;
}
.cantidad-selector {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
max-width: 180px;
border: 1px solid #1a0505;
border-radius: 6px;
padding: 0.4rem 0.6rem;
}
.cantidad-selector button {
background: none;
border: none;
width: 1.6rem;
height: 1.6rem;
font-size: 1.1rem;
font-family: 'AlteHaasGrotesk', sans-serif;
color: #1a0505;
cursor: pointer;
transition: opacity 0.2s;
display: flex;
align-items: center;
justify-content: center;
}
.cantidad-selector button:hover {
opacity: 0.5;
}
.cantidad-selector span {
min-width: 2.2rem;
text-align: center;
font-size: 1rem;
font-family: 'AlteHaasGrotesk', sans-serif;
color: #1a0505;
}
.producto-modal-cantidad {
margin-bottom: 1.8rem;
}
.producto-modal-cantidad-label {
display: block;
font-size: 0.85rem;
font-weight: 300;
color: #1a0505;
font-family: 'AlteHaasGrotesk', sans-serif;
margin-bottom: 0.6rem;
}
.cantidad-selector {
display: inline-flex;
align-items: center;
border: 1px solid #1a0505;
border-radius: 30px;
overflow: hidden;
}
.cantidad-selector button {
background: none;
border: none;
width: 2.4rem;
height: 2.4rem;
font-size: 1.1rem;
font-family: 'AlteHaasGrotesk', sans-serif;
color: #1a0505;
cursor: pointer;
transition: background 0.2s;
}
.cantidad-selector button:hover {
background: rgba(26, 5, 5, 0.06);
}
.cantidad-selector span {
min-width: 2.2rem;
text-align: center;
font-size: 1rem;
font-family: 'AlteHaasGrotesk', sans-serif;
color: #1a0505;
}

/* Columna derecha — imágenes */
.producto-modal-imgs {
  display: flex;
  flex-direction: column;
  gap: 2px;
  order: 1;
  background: #f5f5f5;
  overflow-y: auto;
}

.producto-modal-imgs img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}
/* ─── GALERÍA MODAL PRODUCTO ─── */
.pm-galeria {
  position: relative;
  width: 100%;
  height: 100%;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pm-galeria-track {
display: flex;
width: 100%;
height: 100%;
}
.pm-galeria-slide {
flex: 0 0 100%;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}
.pm-galeria-slide img {
width: 100%;
height: 100%;
display: block;
}
.pm-galeria-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  transition: opacity 0.25s ease;
}

.pm-galeria-prev,
.pm-galeria-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: none;
  border-radius: 50%;
  width: 2.2rem;
  height: 2.2rem;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  color: #1a0505;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}

.pm-galeria-prev { left: 0.2rem; }
.pm-galeria-next { right: 0.2rem; }


.pm-galeria-dots {
  position: absolute;
  bottom: 0.8rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
}

.pm-galeria-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0,0,0,0.2);
  cursor: pointer;
  transition: background 0.2s;
}

.pm-galeria-dot.active {
  background: #1a0505;
}
/* Mobile */
@media (max-width: 768px) {
  .producto-modal {
    grid-template-columns: 1fr;
    max-height: 95vh;
  }
  .producto-modal-imgs { order: 1; }
  .producto-modal-info { order: 2; padding: 1.5rem; }
}

/* ─── PANEL CARRITO ──────── */
.carrito-panel {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 340px;
  max-width: 90vw;
  background: #ffffff;
  border-left: 0.7px solid rgb(0, 0, 0);
  border-right: 0.7px solid rgb(0, 0, 0);
  z-index: 950;
  flex-direction: column;
}

.carrito-panel.open {
  display: flex;
}

.carrito-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.carrito-titulo {
  font-size: 1.1rem;
  font-weight: 300;
  color: #000000;
  font-family: 'AlteHaasGrotesk', sans-serif;
}

.carrito-cerrar {
  background: none;
  border: none;
  color: #000000;
  font-size: 1.2rem;
  cursor: pointer;
  font-family: 'AlteHaasGrotesk', sans-serif;
}

.carrito-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}

.carrito-vacio {
  color: rgb(0, 0, 0);
  font-size: 0.85rem;
  font-weight: 300;
  text-align: center;
  margin-top: 2rem;
  font-family: 'AlteHaasGrotesk', sans-serif;
}

.carrito-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.carrito-item-img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  background: #ffffff;
  flex-shrink: 0;
}

.carrito-item-info { flex: 1; }

.carrito-item-nombre {
  font-size: 0.90rem;
  font-weight: 300;
  color: #000000;
  margin-bottom: 0.2rem;
  font-family: 'AlteHaasGrotesk', sans-serif;
}

.carrito-item-precio {
  font-size: 0.78rem;
  color: #000000;
  font-family: 'AlteHaasGrotesk', sans-serif;
}

.carrito-item-controles {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.carrito-item-controles button {
  background: #57ed6e;
  border: none;
  color: #000000;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 100%;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  font-family: 'AlteHaasGrotesk', sans-serif;
  transition: background 0.2s;
}

.carrito-item-controles button:hover {
  background: rgba(0, 0, 0, 0.25);
}

.carrito-item-cant {
  font-size: 0.85rem;
  color: #000000;
  min-width: 1rem;
  text-align: center;
  font-family: 'AlteHaasGrotesk', sans-serif;
}

.carrito-footer {
  padding: 1.2rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.carrito-total {
  font-size: 0.9rem;
  font-weight: 300;
  color: #000000;
  margin-bottom: 0.5rem;
  font-family: 'AlteHaasGrotesk', sans-serif;
}

.carrito-total strong { color: #000000; }

.carrito-aviso {
  font-size: 0.7rem;
  color: rgba(0, 0, 0, 0.45);
  line-height: 1.5;
  margin-bottom: 1rem;
  font-family: 'AlteHaasGrotesk', sans-serif;
  font-weight: 300;
}

.carrito-pedido-btn {
  width: 100%;
  background: #57ed6e;
  color: #000000;
  border: none;
  border-radius: 30px;
  font-family: 'AlteHaasGrotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  padding: 0.8rem;
  cursor: pointer;
  transition: background 0.2s;
}

.carrito-pedido-btn:hover { background: C;}

/* ─── FORMULARIO PEDIDO ───── */
.pedido-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.7);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.pedido-overlay.open { display: flex; }

.pedido-modal {
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: none;
  padding: 2.5rem 2rem 2rem;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: mIn 0.25s ease;
}

.pedido-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: #000000;
  font-size: 1.3rem;
  cursor: pointer;
  font-family: 'AlteHaasGrotesk', sans-serif;
}

.pedido-titulo {
  font-size: 1.5rem;
  font-weight: 300;
  color: #000000;
  margin-bottom: 1.2rem;
  font-family: 'AlteHaasGrotesk', sans-serif;
  text-align: center; /* <- Esta es la línea que lo centra */
}

.pedido-resumen {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 0.8rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
  color: rgb(0, 0, 0);
  line-height: 1.9;
  font-family: 'AlteHaasGrotesk', sans-serif;
  font-weight: 300;
}

.pedido-resumen-total {
  font-weight: 300;
  color: #000000;
  margin-top: 0.4rem;
  font-size: 0.88rem;
  padding-top: 0.4rem;
  border-top: 1px solid rgb(0, 0, 0);
  font-family: 'AlteHaasGrotesk', sans-serif;
}

.pedido-campo { 
  margin-bottom: 1rem;
}

.pedido-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 300;
  color: rgb(0, 0, 0);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  font-family: 'AlteHaasGrotesk', sans-serif;
}

.pedido-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgb(0, 0, 0);
  border-radius: 5px;
  color: #000000;
  font-family: 'AlteHaasGrotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 300;
  padding: 0.6rem 0.8rem;
  transition: border-color 0.2s;
  outline: none;
}

.pedido-input:focus { border-color: #57ed6e; }

.pedido-input::placeholder {
  color: rgb(0, 0, 0);
  font-family: 'AlteHaasGrotesk', sans-serif;
  opacity: 50%;
}

.pedido-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23f5f0e8' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  padding-right: 2.2rem;
}

.pedido-select option {
  background: #1a0505;
  color: #f5f0e8;
  font-family: 'AlteHaasGrotesk', sans-serif;
}

.pedido-envio-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 0.7rem 1rem;
  margin-bottom: 0.8rem;
  font-size: 0.85rem;
  font-family: 'AlteHaasGrotesk', sans-serif;
}

.pedido-envio-label { 
  font-weight: 300;
  color: #000000; 
}

.pedido-envio-valor { font-weight: 300; color: #000000; }

.pedido-total-final {
  font-size: 1rem;
  color: #000000;
  text-align: right;
  margin-bottom: 1rem;
  font-family: 'AlteHaasGrotesk', sans-serif;
  font-weight: 300;
}

.pedido-total-final strong {
  color: #000000;
  font-size: 1.15rem;
}

.pedido-file {
  padding: 0.5rem 0.8rem;
  cursor: pointer;
}

.pedido-file-ayuda {
  display: block;
  font-size: 0.68rem;
  color: rgba(0, 0, 0, 0.35);
  margin-top: 0.3rem;
  font-family: 'AlteHaasGrotesk', sans-serif;
}

.pedido-submit {
  width: 100%;
  background: #57ed6e;
  color: #000000;
  border: none;
  border-radius: 6px;
  font-family: 'AlteHaasGrotesk', sans-serif;
  font-weight: 300;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  padding: 0.85rem;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.2s;
}

.pedido-submit:hover { background: #57ed6e; }

.pedido-submit:disabled {
  background: rgba(255, 255, 255, 0.15);
  cursor: not-allowed;
}

.pedido-aviso {
  font-size: 0.7rem;
  color: rgba(245, 240, 232, 0.4);
  text-align: center;
  margin-top: 0.9rem;
  line-height: 1.6;
  font-family: 'AlteHaasGrotesk', sans-serif;
}

/* ─── CBU BOX ─────────────── */
.cbu-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgb(0, 0, 0);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
}

.cbu-fila {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  font-family: 'AlteHaasGrotesk', sans-serif;
}

.cbu-fila:last-child { border-bottom: none; }

.cbu-label {
  color: rgb(0, 0, 0);
  min-width: 80px;
  flex-shrink: 0;
  font-family: 'AlteHaasGrotesk', sans-serif;
  font-weight: 300;
}

.cbu-valor {
  color: #000000;
  font-weight: 300;
  flex: 1;
  word-break: break-all;
}

.cbu-copiar {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #000000;
  border-radius: 4px;
  font-family: 'AlteHaasGrotesk', sans-serif;
  font-size: 0.68rem;
  padding: 0.25rem 0.6rem;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}

.cbu-copiar:hover { background: rgba(255, 255, 255, 0.25); }

.cbu-total-fila {
  margin-top: 0.4rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.cbu-total-monto {
  color: #000000 !important;
  font-size: 1.1rem;
}

/* ─── CONFIRMACIÓN ────────── */
.pedido-ok-icono {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 1rem;
  color: #2a8a00;
}

.pedido-ok-texto {
  font-size: 0.88rem;
  color: rgba(0, 0, 0, 0.7);
  text-align: center;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-family: 'AlteHaasGrotesk', sans-serif;
  font-weight:300;
}

.pedido-ok-btn {
  display: block;
  width: 100%;
  background: #57ed6e;
  color: #1a0505;
  border: none;
  border-radius: 6px;
  font-family: 'AlteHaasGrotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 300;
  padding: 0.8rem;
  cursor: pointer;
  transition: background 0.2s;
}

.pedido-ok-btn:hover {
  background: #57ed6e;
  color: #000000;
  font-family: 'AlteHaasGrotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 300;
}

/* ─── TIENDA MOBILE ───────── */
@media (max-width: 768px) {
.tienda-logo .eyechar-container {
margin-left: -14vw;
}
.tienda-header {
margin-right: 1.2rem;
margin-top: 3rem;
}  
.productos-grid {
grid-template-columns: repeat(2, 1fr);
gap: 0px;
width: 100%;
max-width: 100vw;
overflow: hidden;
}
.producto-info {
flex-direction: column;
align-items: flex-start;
padding: 0.7rem 0.9rem;
gap: 0;
}
.producto-nombre {
font-size: 0.82rem;
}
.producto-precio {
margin-top: 0;
margin-bottom: 0.3rem;
font-size: 0.75rem;
}
.producto-add-btn {
opacity: 1 !important;
max-width: 160px;
gap: 0.4rem;
padding: 0.5rem 1rem;
background: #1a0505;
color: #fff;
bottom: 0.6rem;
right: 0.6rem;
}
.producto-add-btn .producto-add-label {
max-width: 120px !important;
}
.producto-add-btn.agregado-grilla {
background: #03a11a;
color: #000;
}
.tienda-promo {
font-size: 0.40rem;
padding: 0.4rem;
}
.tienda-promo-track {
animation-duration: 10s;
}
.tienda-body { 
padding: 0rem;
    }
.carrito-panel { width: 100%; max-width: 100%; }
.pedido-overlay { padding: 0; align-items: flex-end; }
.pedido-modal { border-radius: 12px 12px 0 0; max-height: 92vh; }
.producto-overlay {
display: none;
position: fixed;
inset: 0;
z-index: 9000;
background: #fff;
padding: 0;
}
.producto-overlay.open {
display: block;
}
.producto-modal {
position: relative;
width: 100%;
height: 100vh;
max-width: 100%;
max-height: 100%;
overflow-y: auto;
background: #fff;
display: block;
}
.producto-modal-imgs {
width: 100%;
}
.pm-galeria-img {
width: 100%;
height: auto;
aspect-ratio: unset;
object-fit: contain;
display: block;
}
.producto-modal-imgs > img {
width: 100%;
height: auto;
aspect-ratio: unset;
object-fit: contain;
display: block;
}
.producto-modal-info {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  order: 2;
}
.producto-modal-agregar {
align-self: center;
margin-top: 1rem;
}
.producto-modal-header {
margin-bottom: 0.1rem;
}
.producto-modal-desc {
padding-top: 0.2rem;
margin-bottom: 0.4rem;
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
}
.producto-modal-close {
position: static;
background: none;
border: none;
font-size: 1.4rem;
color: #1a0505;
box-shadow: none;
filter: none;
width: auto;
height: auto;
}
.producto-modal-miniheader {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0.8rem 1.2rem;
background: #fff;
position: relative;
z-index: 5;
}
.producto-modal-minilogo-img {
height: 44px;
display: block;
cursor: pointer;
}
.producto-modal-minicarrito {
position: static;
}
.producto-modal-minicarrito .carrito-img {
height: 24px;
}
.producto-modal-minicarrito .carrito-count {
top: 31px;
right: 22.5px;
}
}
/* ─── FLY TO CART ─────────── */
.fly-to-cart {
  position: fixed;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  z-index: 99999;
  pointer-events: none;
  transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
/* ─── 12. UNIFICACIÓN MOBILE (SÚPER PROLIJO) ──────── */
@media (max-width: 768px) {

  /* Evitar scroll horizontal y forzar ancho mobile */
  html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }

/* Ocultar elementos innecesarios en mobile */
.tag-bar,
.nav-tags-btn,
.stk { 
display: none !important; 
  }
nav {
display: flex !important;
}
.nav-social {
display: none !important;
}

  /* Hero */
  .hero-wrapper { 
    height: 100svh; 
  }

  /* Logo centrado en mobile */
  .eyechar-container {
    margin-left: -10vw;
  }
  .logo-group {
    transform: scale(0.9);
    padding-top: 2rem;
    padding-left: 15vw;
    justify-content: flex-start;
    width: 100%;
  }

  /* Botón contacto */
  .contacto-btn {
    bottom: 2rem;
    right: 1.5rem;
    left: auto;
  }
  .contacto-svg {
    max-width: 180px;
    min-width: 180px;
  }

  /* Proyectos home: 1 columna natural */
  .canvas { 
    padding: 0 0 4rem; 
  }
  .band { 
    display: block; 
    position: static; 
    height: auto !important; 
    pointer-events: auto; 
  }
  .pi {
    position: relative !important;
    width: 100% !important;
    left: auto !important;
    top: auto !important;
    margin-bottom: 0;
  }
  .pi img, .pi video { 
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
    transform: translateZ(0);
    backface-visibility: hidden;
  }

  /* Caption visible arriba a la derecha del item */
  .lbl {
    position: absolute;
    inset: 10px 10px auto auto;
    opacity: 1;
    font-size: 0.95rem;
  }

  /* Galería filtrada por tags: 1 columna */
  .canvas.filtered {
    columns: 1;
    padding: 6rem 0 4rem;
  }

  /* Modales a pantalla completa */
  .modal-overlay {
    padding: 0 !important;
    width: 100%;
  }
  .modal {
    width: 100% !important;
    max-width: 100% !important;
    padding: 4rem 1rem 2rem;
    border-radius: 0;
  }
  .modal-header-cols { 
    grid-template-columns: 1fr; 
  }
  .modal-title { 
    font-size: clamp(1.5rem, 4vw, 2rem); 
  }
  .modal-desc { 
    font-size: 1rem; 
  }

  /* 🚨 ARREGLO QUIRÚRGICO DE DISEÑO LIBRE PARA CELULARES */
  .modal-imgs.layout-free {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    width: 100% !important;
    transform: none !important;
    gap: 1.5rem !important;
    padding: 1rem 0 !important;
  }
  .modal-imgs.layout-free img,
  .modal-imgs.layout-free video {
    position: static !important; /* Desactiva el absolute de escritorio */
    width: 90% !important;
    max-width: 100% !important;
    height: auto !important;
    top: auto !important;
    left: auto !important;
    margin: 0 auto !important;
  }

  /* Resto de tipos de imágenes en modales (1 columna) */
  .modal-imgs {
    flex-direction: column;
    align-items: center;
  }
  .modal-imgs img,
  .modal-imgs video {
    width: 90% !important;
    height: auto;
  }
  .modal-imgs .cell {
    width: 90% !important;
  }
  .modal-imgs .cell img,
  .modal-imgs .cell video {
    width: 100% !important;
  }
  .modal-imgs.layout-justify .modal-row {
    flex-direction: column;
  }
  .modal-imgs.layout-justify .modal-row img {
    width: 90% !important;
    margin: 0 auto;
  }

  /* Modal Sobre Mí: Adaptación Prolija Vertical */
  .sm-grid {
    padding: 0 1.2rem;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .sm-col-foto { order: 1; }
  .sm-bio { order: 2; padding-top: 0; font-size: 1rem; }
  .sm-cl { order: 3; font-size: 1rem; }
  .sm-cursos { order: 4; font-size: 1rem; }
  
  .sm-titulo-img { width: 70% !important; top: -20px; left: -10px; }
  .sm-cl-img { width: 50%; }
  .sm-cl2-img { width: 40% !important; }
}