/* La Cuarta Piel — estilos base (recreados a partir del diseño de Cargo) */

@font-face {
  font-family: 'Karrik';
  src: url('fonts/Karrik-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-latin-ext-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --orange: #f17108;
  --ink: rgba(0, 0, 0, 0.75);
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --logo: 'Karrik', var(--sans);
  --w-regular: 450;
  --w-bold: 700;
}

* { box-sizing: border-box; }
html { font-size: 96.21%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: #000;
  font-family: var(--sans);
  font-size-adjust: 0.5;
}
img { max-width: 100%; height: auto; display: block; border: 0; }
a { color: inherit; text-decoration: none; }
a:active { opacity: .7; }
b, strong { font-weight: var(--w-bold); }
iframe { max-width: 100%; border: 0; }

/* ---- texto (equivalente a "bodycopy" de Cargo) ---- */
.content {
  font-size: 1rem;
  font-weight: var(--w-regular);
  color: var(--ink);
  line-height: 1.4;
  padding: 1.5rem;
}
.content a { color: var(--ink); }
.content h1 {
  font-family: var(--sans); font-weight: var(--w-regular);
  font-size: 1.2rem; line-height: 1.3; margin: 0; padding: 0; color: var(--ink);
}
.content h2 {
  font-family: var(--sans); font-weight: var(--w-regular);
  font-size: 1.2rem; line-height: 1.2; margin: 0; color: var(--ink);
}
.site-nav .logo, .site-nav-mobile .logo, .content h4 a { font-size-adjust: none; }
.content h3, .content h5 { font-family: var(--logo); font-weight: 400; margin: 0; color: var(--ink); }
.content h4 {
  font-family: var(--sans); font-weight: 800;
  font-size: 1.5rem; line-height: 1.5; margin: 0; padding: 0; color: var(--ink);
}
.content h4 a {
  font-family: var(--logo); font-weight: 700;
  font-size: 2rem; line-height: 1.2; color: var(--orange);
}
.content small { font-size: .85rem; line-height: 1.3; }
.content small a { color: rgba(0, 0, 0, .6); }

/* ---- rejilla de columnas de Cargo ---- */
[grid-row] { display: flex; flex-wrap: wrap; margin: 0 -.75rem; }
[grid-col] { padding: 0 .75rem; flex: 0 0 auto; width: 100%; }
[grid-col="1"]{width:8.333%}[grid-col="2"]{width:16.667%}[grid-col="3"]{width:25%}
[grid-col="4"]{width:33.333%}[grid-col="5"]{width:41.667%}[grid-col="6"]{width:50%}
[grid-col="7"]{width:58.333%}[grid-col="8"]{width:66.667%}[grid-col="9"]{width:75%}
[grid-col="10"]{width:83.333%}[grid-col="11"]{width:91.667%}[grid-col="12"],[grid-col="x12"]{width:100%}

/* ---- maquetación de página ---- */
.page { position: relative; width: 67%; }
.page.align-right, .pin.align-right { margin-left: auto; margin-right: 0; }
.page.align-left, .pin.align-left { margin-left: 0; margin-right: auto; }
.home .page { min-height: 100vh; }

.pin-fixed {
  position: fixed;
  z-index: 5;
  max-height: 100vh;
  overflow-y: auto;
  scrollbar-width: none;
}
.pin-fixed::-webkit-scrollbar { display: none; }
.pin-fixed.pin-top { top: 0; }
.pin-fixed.pin-bottom { bottom: 0; }
.pin-fixed.align-right { right: 0; }
.pin-fixed.align-left { left: 0; }

/* navegación lateral (logo arriba, menú abajo) */
.site-nav .logo {
  position: fixed; top: 0; left: 0; z-index: 10;
  padding: 1.1rem 2rem 0 2rem;
}
.site-nav .logo .content, .site-nav .menu .content { padding: 0; }
.site-nav .logo h4, .site-nav-mobile .logo h4 { margin: 0; line-height: 1; }
.site-nav .logo h4 a, .site-nav-mobile .logo h4 a {
  font-family: var(--logo); font-size: 2rem; font-weight: 700;
  color: var(--orange); line-height: 1.2;
}
.site-nav .logo br { display: none; }
.site-nav .menu {
  position: fixed; bottom: 0; left: 0; z-index: 10;
  padding: 0 1rem 1.6rem 2rem;
}
.site-nav .menu h2, .site-nav-mobile .menu h2 {
  font-size: 1.5rem; line-height: 1.6; font-weight: var(--w-regular); margin: 0;
}
.site-nav .menu [grid-col] { padding: 0; width: auto; }
.site-nav .menu a { color: #000; }
.menu a.active, .menu a:hover, .site-nav .logo a:hover { color: var(--orange) !important; }

/* ---- galerías ---- */
.gallery { margin: 0 0 var(--pad); }
.gallery figure { margin: 0; }
.gallery figcaption {
  margin-top: .55rem;
  font-size: .78rem; line-height: 1.2;
  font-weight: var(--w-regular);
  color: rgba(0, 0, 0, .45);
}
.gallery figcaption a { color: inherit; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: var(--pad);
  align-items: end;
}
.gallery-grid img { width: 100%; }
.gallery-columns { column-count: var(--cols); column-gap: var(--pad); }
.gallery-columns figure { break-inside: avoid; margin-bottom: var(--pad); }
.gallery-columns img { width: 100%; }
.gallery-justify { display: flex; flex-wrap: wrap; gap: var(--pad); }
.gallery-justify::after { content: ''; flex-grow: 999; }
.gallery-justify figure { min-width: 0; }
.gallery-justify img { width: 100%; }
.home .gallery figure a img { transition: opacity .2s; }
.home .gallery figure a:hover img { opacity: .85; }

/* bio: dibujo a mano */
.bio-marker { position: fixed; left: 1.9%; top: 33.9vh; width: 46%; pointer-events: none; z-index: 1; }
.bio-marker svg { width: 100%; height: auto; display: block; }

/* ---- visibilidad ordenador / móvil ---- */
.only-mobile { display: none !important; }

@media (max-width: 768px) {
  html { font-size: 87.5%; }
  .only-desktop { display: none !important; }
  .only-mobile { display: block !important; }
  .page, .pin { width: 100% !important; margin: 0 !important; }
  .content, [data-ls] .content { padding: 1rem 1.2rem !important; }
  .home .content { padding-top: .4rem !important; }
  [grid-col] { width: 100% !important; }
  [grid-col]:empty { display: none; }
  .gallery-grid { grid-template-columns: repeat(var(--mcols), minmax(0, 1fr)); }
  .gallery-columns { column-count: var(--mcols); }
  .site-nav-mobile {
    position: sticky; top: 0; z-index: 10; background: #fff;
    display: flex !important; align-items: baseline; justify-content: space-between;
    padding: .9rem 1.2rem .6rem;
  }
  .site-nav-mobile .content { padding: 0; }
  .site-nav-mobile .menu h2 { font-size: 1.15rem; line-height: 1.2; }
  .site-nav-mobile .menu h2 span { display: flex; gap: .9rem; }
  .site-nav-mobile .menu br { display: none; }
  .site-nav-mobile .menu [grid-col] { padding: 0; width: auto !important; }
  .site-nav-mobile .menu a { color: #000; }
  .bio-marker { position: static; width: 100%; padding: 0 0 1rem; }
  .pin .content h4 { line-height: 1.25; }
}
