/* Rodo Morfin — réplica estática del sitio de Cargo (rodomorfin.cargo.site) */
html { font-size: min(1.44vh, 2.56vw); -webkit-text-size-adjust: 100%; }
html { cursor: url("../images/6651039d99-0_handcursor.png"), auto; }
*, *:before, *:after { box-sizing: border-box; }
body { margin: 0; background-color: #111; color: #000; min-height: 100vh; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
a:active { opacity: .7; }
i, em { font-style: italic; }
b, strong { font-weight: bolder; }
img { border: 0; padding: 0; }
.page_content img { cursor: url("../images/5e86361d45-0_punto_select.png"), auto; }
a img, a .ic { cursor: pointer; }

/* ---------- Backdrop ---------- */
#backdrop { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
#backdrop canvas, #backdrop .bd-img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#backdrop .bd-img { background-size: cover; background-position: center; }
#backdrop .bd-overlay { position: absolute; inset: 0; }

/* ---------- Page structure ---------- */
.page { position: relative; z-index: 1; min-height: 100vh; }
.container_width { width: 100%; margin-left: auto; margin-right: auto; }
.content_padding { padding: 2rem; }
.page_content { text-align: center; }

bodycopy {
  display: block;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 1.5rem; font-weight: 300; line-height: 1.4;
  color: rgba(255,255,255,.85);
}
bodycopy a { color: rgba(255,255,255,.85); }
h1 {
  font-family: "Nitti Grotesk", "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400; font-style: normal; margin: 0; padding: 0;
  font-size: 4rem; line-height: 1; letter-spacing: .075rem; color: rgba(255,255,255,.85);
}
h1 a { color: rgba(230,166,166,1); }
h2 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-weight: 400; margin: 0; padding: 0; font-size: 3rem; line-height: 1.2; color: rgba(255,255,255,.85);
}
h2 a { color: rgba(255,255,255,.85); }
small {
  display: inline-block; font-size: 1.5rem; line-height: 1.3;
  font-family: "Nitti Grotesk", "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  font-weight: 200; color: rgba(255,255,255,.85);
}
small a { color: rgba(255,255,255,.85); }

/* Íconos (fuente "Icons" de Cargo) */
.ic { display: inline-block; width: .82em; height: .82em; vertical-align: -0.08em; }
.ic svg { width: 100%; height: 100%; display: block; overflow: visible; }

/* ---------- Grid de columnas (sistema de Cargo) ---------- */
[grid-row] { display: flex; flex-wrap: nowrap; align-items: flex-start; }
[grid-col] { flex: 0 0 auto; min-width: 0; }
[grid-col^="x"] { flex: 1 1 0%; }

/* ---------- Imágenes sueltas ---------- */
bodycopy img.solo { display: inline-block; vertical-align: top; height: auto; }

/* ---------- Galerías ---------- */
.image-gallery { display: block; position: relative; text-align: left; }
.image-gallery .gi { position: relative; }
.image-gallery .gi img { display: block; width: 100%; height: auto; }

.g-grid { display: grid; grid-template-columns: repeat(var(--cols,3), minmax(0,1fr)); align-items: start;
  margin: calc(var(--pad,1) * -.5rem); }
.g-grid .gi { padding: calc(var(--pad,1) * .5rem); }

.g-justify { display: flex; align-items: flex-start; margin: calc(var(--pad,1) * -.5rem); }
.g-justify .gi { padding: calc(var(--pad,1) * .5rem); flex-basis: 0%; }

.g-columns { column-count: var(--cols,2); column-gap: 0; margin: calc(var(--pad,1) * -.5rem); }
.g-columns .gi { break-inside: avoid; padding: calc(var(--pad,1) * .5rem); }

.g-free { height: 0; }
.g-free .gi { position: absolute; }
.g-free .gi.drag { cursor: move; touch-action: none; }
.g-free .gi.drag img { cursor: move; -webkit-user-drag: none; user-select: none; }
.g-free .gi.dragging { z-index: 9999 !important; }

.gallery_image_caption {
  margin: .8rem -3rem .5rem; font-size: 1.2rem; font-weight: bold; line-height: 1.3; text-align: center;
  color: #fff; text-shadow: 1px 1px 3px #000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

/* ---------- Lightbox ---------- */
.zoomable { cursor: zoom-in !important; }
#lightbox { position: fixed; inset: 0; z-index: 10000; display: none; align-items: center; justify-content: center;
  background: rgba(0,0,0,.88); padding: 2.8rem; cursor: zoom-out; }
#lightbox.on { display: flex; }
#lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 10px 40px rgba(0,0,0,.4); }
#lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border: 0; background: none; cursor: pointer; padding: 0; }
#lightbox .lb-prev { left: 10px; } #lightbox .lb-next { right: 10px; }
#lightbox .lb-close { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 0; background: none; cursor: pointer; padding: 0; }
#lightbox svg { width: 100%; height: 100%; }

/* ---------- Móvil ---------- */
body.mobile [grid-row][grid-responsive] { display: block; }
body.mobile [grid-row][grid-responsive] > [grid-col] { width: 100% !important; }
body.mobile [grid-row][grid-responsive] > [grid-col]:empty { display: none; }
body.mobile .g-free[data-mobile="grid"] { display: grid; height: auto !important; padding-bottom: 0 !important;
  grid-template-columns: repeat(4, minmax(0,1fr)); margin: -1.75rem; }
body.mobile .g-free[data-mobile="grid"] .gi { position: static; width: auto !important; padding: 1.75rem; }
body.mobile .gallery_image_caption { margin: .6rem -1rem .4rem; font-size: 1.1rem; }
