/* =========================================================
   Kaeru Estudio — Alternativa A · Negro editorial
   Colores y tipografías según el Manual de Identidad 2026
   ========================================================= */

/* Tipografías de marca (Manual de Identidad 2026): Condenso (display) y Satoshi (texto). */
/* OJO: "Condenso Demo" no trae números (los reemplaza por una marca de agua).
   Por eso se excluyen los dígitos 0-9 (U+0030-0039) con unicode-range y se muestran con la fuente de respaldo.
   Al comprar la licencia completa: reemplaza el archivo y borra la línea unicode-range. */
@font-face {
  font-family: "Condenso"; src: url("../assets/fonts/Condenso.otf") format("opentype"); font-display: swap;
  unicode-range: U+0000-002F, U+003A-10FFFF;
}
@font-face { font-family: "Satoshi"; src: url("../assets/fonts/Satoshi-Variable.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("../assets/fonts/Satoshi-VariableItalic.woff2") format("woff2"); font-weight: 300 900; font-style: italic; font-display: swap; }

:root {
  --verde: #66CC00;
  --negro: #232323;
  --negro-2: #1A1A1A;
  --blanco: #FFFFFF;
  --gris-texto: #D9D9D9;
  --gris-suave: #A8A8A8;
  --gris-borde: #4A4A4A;
  --ph-bg: #2F2F2F;

  --font-display: "Condenso", "Anton", "Bahnschrift Condensed", "Arial Narrow", "Roboto Condensed", "Satoshi", sans-serif;
  --font-body: "Satoshi", "Manrope", system-ui, sans-serif;

  --pad-x: clamp(20px, 5vw, 64px);
  --max-w: 1440px;
  --section-y: clamp(72px, 10vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--negro);
  color: var(--blanco);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, picture { max-width: 100%; display: block; }
/* Fotos con encuadre elegido en el panel (el zoom no se sale del recuadro) */
.frame { overflow: hidden; }
/* Fotos: sin menú «Guardar imagen» al mantener presionado en el celular, ni selección al arrastrar */
.work img, .hero-photo, .split-media, .lightbox-img {
  -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-user-drag: none;
}
a { color: var(--verde); }
a:hover { color: var(--blanco); }
:focus-visible { outline: 3px solid var(--verde); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--verde); color: var(--negro); padding: 12px 16px; font-weight: 700;
}
.skip-link:focus { top: 16px; }

.container { max-width: var(--max-w); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }

/* ---------- Tipografía ---------- */
.display {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.88;
  letter-spacing: -0.01em;
}
.display--xl { font-size: clamp(80px, 13vw, 200px); line-height: 0.86; }
.display--lg { font-size: clamp(64px, 8vw, 120px); }
.display--md { font-size: clamp(52px, 6vw, 96px); line-height: 0.92; }
.green { color: var(--verde); }

.eyebrow {
  margin: 0; font-size: 14px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--verde);
}
.lead { margin: 0; max-width: 460px; font-size: 18px; line-height: 1.6; color: var(--gris-texto); }
.body { margin: 0; font-size: 18px; line-height: 1.7; color: var(--gris-texto); max-width: 560px; }
.stack { display: flex; flex-direction: column; gap: 24px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 12px 22px; border-radius: 999px;
  font-weight: 700; font-size: 15px; text-decoration: none;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn--green { background: var(--verde); color: var(--negro); }
.btn--green:hover { background: var(--blanco); color: var(--negro); }
.btn--outline { border: 1.5px solid var(--blanco); color: var(--blanco); }
.btn--outline:hover { background: var(--blanco); color: var(--negro); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(35, 35, 35, 0.92);
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding-top: 18px; padding-bottom: 18px;
}
.brand img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 32px; font-size: 15px; font-weight: 500; }
.nav a:not(.btn) { color: var(--blanco); text-decoration: none; padding: 12px 0; }
.nav a:not(.btn):hover { color: var(--verde); }

.menu-toggle {
  display: none; width: 48px; height: 48px; padding: 12px;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; justify-content: space-between;
}
.menu-toggle span { display: block; height: 2px; background: var(--blanco); transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

@media (max-width: 820px) {
  .menu-toggle { display: flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--negro); padding: 8px var(--pad-x) 24px;
    border-bottom: 1px solid var(--gris-borde);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 16px 0; border-bottom: 1px solid #333; font-size: 18px; }
  .nav .btn { margin-top: 16px; }
}

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 48px; align-items: end;
  padding-top: 32px; padding-bottom: 80px;
}
.hero-text { display: flex; flex-direction: column; gap: 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-media { position: relative; }
.hero-media .hero-photo { width: 100%; height: clamp(420px, 48vw, 640px); object-fit: cover; }
.hero-badge {
  position: absolute; left: -48px; bottom: 40px; width: 150px; height: 150px;
  animation: spin var(--spin-duration, 24s) linear infinite;
}
.hero-badge.is-static { animation: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero-badge { animation: none; } }
@media (max-width: 960px) { .hero-badge { left: 16px; bottom: 16px; width: 110px; height: 110px; } }

/* ---------- Marquesina ---------- */
.marquee {
  background: var(--verde); color: var(--negro);
  overflow: hidden; white-space: nowrap; padding: 18px 0;
  font-family: var(--font-display); font-size: clamp(28px, 3vw, 40px);
  text-transform: uppercase; letter-spacing: 0.02em;
}
.marquee-track { display: inline-flex; animation: marquee 30s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- Portafolio ---------- */
.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 40px;
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  border: 1.5px solid #6A6A6A; background: transparent; color: var(--blanco);
  font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.chip:hover { border-color: var(--verde); }
.chip.is-active { background: var(--verde); border-color: var(--verde); color: var(--negro); }

.gallery { columns: 3 300px; column-gap: 16px; }
.work { margin: 0 0 16px; break-inside: avoid; }
.work[hidden] { display: none; }
.work-open { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; }
a.work-open { cursor: pointer; }
.work-count {
  position: absolute; left: 12px; bottom: 12px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--verde); color: var(--negro);
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.work-open img { width: 100%; height: auto; object-fit: cover; transition: transform .4s ease, filter .4s ease; }
.work-open:hover img { transform: scale(1.03); }
.work figcaption {
  display: flex; justify-content: space-between; gap: 12px;
  padding-top: 10px; font-size: 14px; color: var(--gris-texto);
}
.work .cat { color: var(--verde); font-weight: 700; }
/* ---------- Página de colección ---------- */
.collection { padding-top: 40px; }
.back-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 32px;
  color: var(--blanco); text-decoration: none; font-weight: 700; font-size: 15px;
}
.back-link:hover { color: var(--verde); }
.collection-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 24px 64px; margin-bottom: 48px;
}
.collection-head .stack { gap: 16px; }
.collection-head .body { max-width: 520px; }
.collection-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  margin-top: 72px; padding-top: 40px; border-top: 1.5px solid #3A3A3A;
}
.collection-nav a { display: flex; flex-direction: column; gap: 12px; color: var(--blanco); text-decoration: none; }
.collection-nav a:hover .display { color: var(--verde); }
.collection-nav .display { font-size: clamp(36px, 5vw, 72px); transition: color .15s; }
.collection-nav .next { grid-column: 2; align-items: flex-end; text-align: right; }

.ph {
  width: 100%; background: var(--ph-bg); border: 1px dashed #5A5A5A;
  display: flex; align-items: center; justify-content: center;
  color: #BDBDBD; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase;
}

/* ---------- Estudio ---------- */
.band-dark { background: var(--negro-2); }
.split {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 64px; align-items: center;
}
.split-media { width: 100%; height: clamp(380px, 44vw, 620px); object-fit: cover; }

/* ---------- Servicios ---------- */
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px; margin-top: 48px;
}
.card {
  border: 1.5px solid var(--gris-borde); padding: 36px;
  display: flex; flex-direction: column; gap: 16px;
}
.card h3 { margin: 0; font-size: 26px; font-weight: 700; }
.card p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--gris-texto); }
.card .price { font-size: 15px; font-weight: 700; color: var(--blanco); margin-top: auto; }
.card-num { font-family: var(--font-display); font-size: 28px; color: var(--verde); }
.card--green { background: var(--verde); border-color: var(--verde); color: var(--negro); }
.card--green p, .card--green .price, .card--green .card-num { color: var(--negro); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1.5px solid #3A3A3A; }
.split--center .footer-logo { width: min(100%, 420px); height: auto; justify-self: center; }
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 18px; font-weight: 500; }
.contact-list a { display: inline-block; padding: 4px 0; }
.legal { margin: 0 auto; padding-bottom: 32px; font-size: 13px; color: var(--gris-suave); }

/* ---------- Lightbox ---------- */
.lightbox {
  border: 0; padding: 0; background: transparent; color: var(--blanco);
  max-width: min(92vw, 1100px); max-height: 92vh; overflow: visible;
  margin-top: max(64px, 4vh);
}
.lightbox::backdrop { background: rgba(20, 20, 20, 0.94); }
.lightbox-img { max-width: 100%; max-height: calc(92vh - 150px); margin: 0 auto; object-fit: contain; }
.lightbox-count { margin: 12px 0 0; text-align: center; font-size: 13px; font-weight: 700; letter-spacing: 0.18em; color: var(--verde); }
.lightbox-count:empty { display: none; }
.lightbox-caption { margin: 8px 0 0; text-align: center; font-size: 14px; font-weight: 700; color: var(--blanco); }
.lightbox-caption:empty, .lightbox-desc:empty { display: none; }
.lightbox-desc { margin: 6px auto 0; max-width: 640px; text-align: center; font-size: 14px; line-height: 1.6; color: var(--gris-texto); }
.lightbox-close {
  position: absolute; top: -56px; right: 0; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--verde); color: var(--negro); border: 0; border-radius: 999px; cursor: pointer;
}
.lightbox-nav {
  position: fixed; top: 50%; transform: translateY(-50%); z-index: 1;
  width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
  background: rgba(35, 35, 35, 0.7); color: var(--blanco);
  border: 1.5px solid var(--blanco); border-radius: 999px; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.lightbox-nav:hover { background: var(--verde); border-color: var(--verde); color: var(--negro); }
.lightbox-prev { left: max(16px, 2vw); }
.lightbox-next { right: max(16px, 2vw); }
.lightbox.is-single .lightbox-nav { display: none; }
@media (max-width: 700px) {
  .lightbox-nav { top: auto; bottom: 16px; transform: none; width: 48px; height: 48px; }
  .lightbox-img { max-height: calc(92vh - 200px); }
}
