/* ==========================================================================
   PIQ3D — Sistema visual
   Basado en el proyecto de Claude Design "PIQ3D Web v2"
   Terracota + crema · tipografía grotesca · esquinas muy redondeadas
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --ink: #1a1512;
  --espresso: #2b1b14;
  --espresso-2: #3a2419;
  --paper: #faf8f5;
  --cream: #f2eee7;
  --cream-2: #e8e2d8;
  --line: rgba(26, 21, 18, .10);
  --line-dark: rgba(250, 248, 245, .14);

  --clay: #c96442;
  --clay-deep: #a94f31;
  --clay-soft: #f0d9cf;
  --muted: #6f635b;
  --muted-dark: #b8a89d;

  --font-display: "Inter", -apple-system, "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", system-ui, sans-serif;

  --wrap: 1180px;
  --gap: clamp(16px, 2.2vw, 26px);
  --radius: 26px;
  --radius-sm: 16px;

  --shadow: 0 18px 44px -28px rgba(43, 27, 20, .45);
  --shadow-lg: 0 44px 90px -46px rgba(43, 27, 20, .6);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.06;
  letter-spacing: -.032em;
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 { font-size: clamp(2.5rem, 5.8vw, 4.3rem); }
h2 { font-size: clamp(1.95rem, 4.2vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--clay); color: #fff; }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(60px, 8vw, 120px) 0; }
.section--tight { padding: clamp(44px, 5.5vw, 80px) 0; }
.section--dark { background: var(--espresso); color: var(--cream); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--paper); }
.section--sand { background: var(--cream); }

/* Etiqueta de sección: "01 · Trofeos" */
.eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--clay);
  background: var(--clay-soft);
  border-radius: 999px;
  padding: .4rem 1rem;
  margin: 0 0 1.1rem;
}
.section--dark .eyebrow,
.pagehero .eyebrow,
.eco .eyebrow { background: rgba(201, 100, 66, .22); color: #eab79f; }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 62ch; }
.section--dark .lead { color: var(--muted-dark); }
.section-head { max-width: 70ch; margin-bottom: clamp(30px, 4.5vw, 52px); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--clay); color: #fff; }
.btn--primary:hover { background: var(--clay-deep); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--cream); }
.btn--ghost { border-color: rgba(26, 21, 18, .22); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.section--dark .btn--ghost, .pagehero .btn--ghost { color: var(--paper); border-color: rgba(250, 248, 245, .35); }
.section--dark .btn--ghost:hover, .pagehero .btn--ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 248, 245, .9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem 0;
  position: relative;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -.035em;
}
.brand__mark {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--clay);
  display: block;
  flex: 0 0 auto;
}
.nav { display: flex; align-items: center; gap: .2rem; }
.nav a {
  text-decoration: none;
  padding: .55rem .85rem;
  border-radius: 999px;
  font-size: .96rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .15s ease, background .15s ease;
}
.nav a:hover { color: var(--ink); background: rgba(26, 21, 18, .05); }
.nav a[aria-current="page"] { color: var(--clay); font-weight: 600; background: var(--clay-soft); }
.nav a.header-cta { margin-left: .5rem; padding: .62rem 1.15rem; color: #fff; background: var(--clay); }
.nav a.header-cta:hover { background: var(--clay-deep); color: #fff; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before { position: relative; top: -6px; }
.nav-toggle span::after { position: relative; top: 4px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    inset: 100% 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: .2rem;
    padding: 1rem 0 1.4rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .8rem 1rem; font-size: 1.05rem; }
  .header-cta { margin: .6rem 0 0; justify-content: center; }
}

/* ---------- Hero de portada (foto a sangre) ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 780px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(28, 17, 12, .62) 0%, rgba(28, 17, 12, .38) 42%, rgba(28, 17, 12, .86) 100%);
}
.hero__inner { padding: clamp(90px, 14vw, 190px) 0 clamp(48px, 6vw, 84px); }
.hero h1 { color: #fff; max-width: 16ch; }
.hero__lead { color: rgba(255, 255, 255, .88); font-size: clamp(1.05rem, 1.7vw, 1.28rem); max-width: 54ch; margin-bottom: 2rem; }

.pill-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1.8rem; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1.05rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .3);
  backdrop-filter: blur(8px);
  font-size: .88rem;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
}
.pill--solid { background: #fff; color: var(--ink); border-color: #fff; font-weight: 600; }

/* ---------- Hero de sección ---------- */
.pagehero {
  background: var(--espresso);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.pagehero::after {
  content: "";
  position: absolute;
  inset: -40% -25% auto auto;
  width: 65%; height: 130%;
  background: radial-gradient(closest-side, rgba(201, 100, 66, .35), transparent 72%);
  pointer-events: none;
}
.pagehero__inner {
  padding: clamp(48px, 6.5vw, 88px) 0 clamp(44px, 6vw, 76px);
  position: relative;
  z-index: 1;
}
.pagehero h1 { color: var(--paper); max-width: 17ch; }
.pagehero__inner > p { max-width: 56ch; }
.pagehero .chips { max-width: 62ch; }
.pagehero h1 em { font-style: normal; color: #e8a184; }
.pagehero p { color: var(--muted-dark); font-size: clamp(1.02rem, 1.5vw, 1.2rem); }
.pagehero .btn-row { margin-top: 1.7rem; }

.crumbs {
  font-size: .85rem;
  color: var(--muted-dark);
  margin-bottom: 1.3rem;
  display: flex;
  gap: .5rem;
  align-items: center;
}
.crumbs a { text-decoration: none; color: var(--muted-dark); }
.crumbs a:hover { color: #e8a184; }

/* ---------- Cifras ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--gap);
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
}
.stat__num {
  font-size: clamp(2rem, 3.6vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -.045em;
  color: var(--clay);
  line-height: 1;
}
.stat__label { font-size: .94rem; color: var(--muted); margin-top: .55rem; }

/* ---------- Bloque partido ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.split--reverse .split__media { order: -1; }
.split__media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--cream);
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}

/* ---------- Bloque eco ---------- */
.eco {
  background: linear-gradient(150deg, var(--espresso-2), var(--espresso) 65%);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(30px, 5vw, 62px);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(24px, 4vw, 54px);
  align-items: center;
}
.eco h2 { color: #fff; }
.eco p { color: rgba(255, 255, 255, .82); }
.eco__points { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.eco__points li {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  font-size: .97rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, .92);
}
.eco__points svg { flex: 0 0 auto; margin-top: 4px; }
@media (max-width: 880px) { .eco { grid-template-columns: 1fr; } }

/* ---------- Proceso ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.step {
  padding: 1.7rem 1.5rem 1.8rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}
.section--dark .step { background: rgba(250, 248, 245, .07); border-color: var(--line-dark); }
.step__num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--clay-soft);
  color: var(--clay);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1.1rem;
}
.section--dark .step__num { background: rgba(201, 100, 66, .25); color: #eab79f; }
.step h3 { margin-bottom: .35rem; font-size: 1.12rem; }
.step p { font-size: .95rem; color: var(--muted); }
.section--dark .step p { color: var(--muted-dark); }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Tarjetas de sección ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--gap);
}
.card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 1.3rem 1.4rem 1.5rem; }
.card__body h3 { margin-bottom: .3rem; }
.card__body p { font-size: .94rem; color: var(--muted); }
.card__link {
  margin-top: 1rem;
  font-weight: 600;
  font-size: .92rem;
  color: var(--clay);
  display: inline-flex;
  gap: .4rem;
  align-items: center;
  transition: gap .2s ease;
}
.card:hover .card__link { gap: .7rem; }

/* ---------- Galerías ---------- */
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream);
  border: 1px solid var(--line);
  cursor: zoom-in;
  padding: 0;
  width: 100%;
  display: block;
  margin: 0;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.6rem 1.15rem 1rem;
  background: linear-gradient(transparent, rgba(28, 17, 12, .85));
  color: #fff;
  font-size: .92rem;
  font-weight: 500;
  text-align: left;
}

/* Bento (trofeos) */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px;
  gap: var(--gap);
}
.bento .gallery-item { height: 100%; }
.bento .g-wide { grid-column: span 2; }
.bento .g-tall { grid-row: span 2; }
.bento .g-big { grid-column: span 2; grid-row: span 2; }
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .bento .g-big { grid-column: span 2; grid-row: span 2; }
  .bento .g-wide { grid-column: span 2; grid-row: span 1; }
  .bento .g-tall { grid-row: span 1; }
}

/* Carrusel (medallas) */
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 34%);
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  scrollbar-width: thin;
}
.rail > * { scroll-snap-align: start; }
.rail .gallery-item { aspect-ratio: 3 / 4; }
@media (max-width: 700px) { .rail { grid-auto-columns: minmax(230px, 78%); } }

.rail-nav { display: flex; gap: .5rem; justify-content: flex-end; margin-bottom: 1rem; }
.rail-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(26, 21, 18, .18);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.rail-btn:hover { background: var(--clay); color: #fff; border-color: var(--clay); }

/* Círculos (medallas) */
.circles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(20px, 3vw, 36px);
  text-align: center;
}
.circle-item .gallery-item { border-radius: 50%; aspect-ratio: 1; background: #fff; }
.circle-item h3 { font-size: 1.05rem; margin: 1rem 0 .2rem; }
.circle-item p { font-size: .9rem; color: var(--muted); }
.section--dark .circle-item p { color: var(--muted-dark); }

/* Mosaico (merch) */
.mosaic {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: var(--gap);
}
.mosaic .gallery-item { aspect-ratio: 1; background: #fff; }

/* Showcase alterno (QR) */
.showcase { display: grid; gap: clamp(40px, 6vw, 84px); }
.showcase__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 58px);
  align-items: center;
}
.showcase__row:nth-child(even) .showcase__media { order: -1; }
.showcase__media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 5 / 4;
  border: 1px solid var(--line-dark);
  background: rgba(250, 248, 245, .06);
}
.showcase__media img { width: 100%; height: 100%; object-fit: cover; }
.showcase__tag {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #e8a184;
  margin-bottom: .7rem;
}
@media (max-width: 880px) {
  .showcase__row { grid-template-columns: 1fr; }
  .showcase__row:nth-child(even) .showcase__media { order: 0; }
}

/* ---------- Chips / listas ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.4rem 0 0; }
.chip {
  padding: .5rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: .89rem;
  font-weight: 500;
  background: #fff;
}
.section--dark .chip { border-color: var(--line-dark); background: rgba(250, 248, 245, .07); color: var(--cream); }
.pagehero .chip { border-color: var(--line-dark); background: rgba(250, 248, 245, .07); color: var(--cream); }

.ticks { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .7rem; }
.ticks li { position: relative; padding-left: 1.9rem; font-size: .97rem; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .28em;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--clay) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- Reseña ---------- */
.review {
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 58px);
  background: var(--espresso);
  color: var(--cream);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(18px, 3vw, 36px);
  align-items: start;
}
.review--light { background: var(--cream); color: var(--ink); }
.review__quote {
  font-size: clamp(3.2rem, 6.5vw, 5rem);
  line-height: .7;
  color: var(--clay);
  font-weight: 700;
}
.review--light .review__quote { color: var(--clay); }
.review blockquote {
  margin: 0;
  font-size: clamp(1.2rem, 2.4vw, 1.75rem);
  line-height: 1.34;
  letter-spacing: -.024em;
  font-weight: 600;
}
.review__meta {
  margin-top: 1.3rem;
  font-size: .92rem;
  color: var(--muted-dark);
  display: flex;
  align-items: center;
  gap: .8rem;
  flex-wrap: wrap;
}
.review--light .review__meta { color: var(--muted); }
.review__stars { color: var(--clay); letter-spacing: .1em; font-size: .95rem; }
@media (max-width: 620px) { .review { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.cta {
  border-radius: var(--radius);
  background: var(--clay);
  color: #fff;
  padding: clamp(30px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: clamp(22px, 4vw, 46px);
  align-items: center;
}
.cta h2 { margin-bottom: .4rem; color: #fff; }
.cta p { color: rgba(255, 255, 255, .85); max-width: 46ch; }
.cta .btn--light { background: #fff; color: var(--ink); }
.cta .btn--ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.cta .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
@media (max-width: 780px) { .cta { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--espresso); color: var(--muted-dark); padding: clamp(50px, 7vw, 80px) 0 2rem; }
.site-footer a { color: var(--muted-dark); text-decoration: none; }
.site-footer a:hover { color: #e8a184; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(28px, 5vw, 60px);
  padding-bottom: 2.4rem;
  border-bottom: 1px solid var(--line-dark);
}
.footer-grid h4 {
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 1rem;
}
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; font-size: .95rem; }
.site-footer .brand { color: var(--paper); margin-bottom: 1rem; }
.footer-bottom {
  padding-top: 1.4rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .85rem;
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(24, 15, 11, .94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: min(1100px, 100%);
  max-height: 82vh;
  object-fit: contain;
  border-radius: 16px;
}
.lightbox__caption {
  position: absolute;
  bottom: clamp(14px, 3vw, 32px);
  left: 0; right: 0;
  text-align: center;
  color: var(--paper);
  font-size: .95rem;
  padding: 0 1rem;
}
.lightbox__close, .lightbox__prev, .lightbox__next {
  position: absolute;
  background: rgba(250, 248, 245, .12);
  border: 1px solid var(--line-dark);
  color: var(--paper);
  width: 46px; height: 46px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { background: var(--clay); color: #fff; }
.lightbox__close { top: clamp(14px, 3vw, 30px); right: clamp(14px, 3vw, 30px); }
.lightbox__prev { left: clamp(10px, 2vw, 26px); top: 50%; transform: translateY(-50%); }
.lightbox__next { right: clamp(10px, 2vw, 26px); top: 50%; transform: translateY(-50%); }

/* ---------- Reveal ---------- */
.js-anim .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Utilidades ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--espresso);
  color: var(--paper);
  padding: .8rem 1.2rem;
  z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; border-radius: 8px; }
.mt-lg { margin-top: clamp(38px, 5.5vw, 68px); }


/* ==========================================================================
   Cabecera flotante (solo portada) — aparece al pasar el 70% de la ventana
   ========================================================================== */
.floatbar {
  position: fixed;
  top: 12px;
  left: 0;
  right: 0;
  z-index: 60;
  padding: 0 14px;
  opacity: 0;
  transform: translateY(-120%);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}
.floatbar.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.floatbar__pill {
  width: 60%;
  min-width: 320px;
  max-width: 900px;
  margin: 0 auto;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(38, 10, 0, .06);
  border-radius: 999px;
  box-shadow: 0 6px 22px rgba(38, 10, 0, .08);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-family: "Inter Tight", "Inter", system-ui, sans-serif;
}
.floatbar__link {
  font-size: 12px;
  font-weight: 500;
  color: #807768;
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s ease;
}
.floatbar__link:hover { color: #260a00; }
.floatbar__logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.floatbar__dot { width: 16px; height: 16px; border-radius: 50%; background: #d25f33; flex: 0 0 auto; }
.floatbar__word { font-size: 15px; font-weight: 700; letter-spacing: -.02em; color: #260a00; }
@media (max-width: 359px) { .floatbar__pill { min-width: 0; gap: 10px; } }
@media (prefers-reduced-motion: reduce) { .floatbar { transition: none; } }

/* ==========================================================================
   Portada escaparate a pantalla completa
   ========================================================================== */
.showcase-hero {
  position: relative;
  min-height: 100vh;
  background: #260a00;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.showcase-hero__halo {
  position: absolute;
  top: -14%;
  left: 50%;
  transform: translateX(-50%);
  width: 130%;
  max-width: 820px;
  aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 40%, rgba(210, 95, 51, .5), rgba(38, 10, 0, 0) 68%);
  pointer-events: none;
  z-index: 1;
}
.showcase-hero__top {
  position: relative;
  z-index: 3;
  padding: 22px 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.showcase-hero__place { display: inline-flex; align-items: center; gap: 10px; }
.showcase-hero__pin { width: 26px; height: 26px; border-radius: 50%; background: #d25f33; flex: 0 0 auto; }
.showcase-hero__city {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, .7);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.showcase-hero__wa {
  font-size: 13px;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  padding: 8px 16px;
  white-space: nowrap;
  transition: background .18s ease, border-color .18s ease;
}
.showcase-hero__wa:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .55); }
/* La pieza central (.showcase-hero__piece) se retiro a peticion del cliente.
   Era el elemento flexible que empujaba este bloque hacia abajo, asi que ahora
   es __bottom quien absorbe el espacio libre y centra el titulo en vertical.
   El indicador "Desliza" se ancla al pie para no viajar con el bloque. */
.showcase-hero__bottom {
  position: relative;
  z-index: 3;
  flex: 1 1 auto;
  padding: 0 16px 82px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
}
.showcase-hero__bottom h1 {
  font-size: clamp(64px, 23vw, 220px);
  line-height: .82;
  font-weight: 700;
  letter-spacing: -.045em;
  color: #fff;
  margin: 0;
}
.showcase-hero__sub {
  font-size: clamp(15px, 3.6vw, 19px);
  line-height: 1.45;
  color: rgba(255, 255, 255, .75);
  max-width: 460px;
  text-wrap: pretty;
  margin: 0;
}
.showcase-hero__btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.showcase-hero__btn {
  font-size: 15px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  transition: transform .18s ease, background .18s ease;
}
.showcase-hero__btn:hover { transform: translateY(-2px); }
.showcase-hero__btn--primary { background: #d25f33; }
.showcase-hero__btn--ghost { background: rgba(255, 255, 255, .12); }
.showcase-hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.showcase-hero__scroll span {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
}
.showcase-hero__scroll i {
  display: block;
  width: 1px;
  height: 26px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0));
}

/* ==========================================================================
   Capa estructural inspirada en brikken.co
   Rejilla vertical, microtipografia en mayusculas, esquinas rectas.
   La paleta terracota + espresso de PIQ3D se mantiene intacta.
   ========================================================================== */
:root {
  --grid-line: rgba(26, 21, 18, .07);
  --grid-line-dark: rgba(250, 248, 245, .08);
  --radius: 6px;
  --radius-sm: 4px;
}

/* --- Rejilla vertical de fondo --- */
.section, .pagehero { position: relative; }
.section::before, .pagehero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: repeating-linear-gradient(to right, var(--grid-line) 0 1px, transparent 1px 20%);
}
.section--dark::before, .pagehero::before {
  background-image: repeating-linear-gradient(to right, var(--grid-line-dark) 0 1px, transparent 1px 20%);
}
.section > .wrap, .pagehero > .wrap { position: relative; z-index: 1; }

/* --- Microtipografia de seccion: cuadradito de acento + mayusculas --- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: none;
  padding: 0;
  color: var(--ink);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}
.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--clay);
  flex: 0 0 auto;
}
.section--dark .eyebrow,
.pagehero .eyebrow,
.eco .eyebrow { background: none; color: rgba(255, 255, 255, .8); }

/* --- Titulares mas rotundos --- */
h1 { letter-spacing: -.042em; }
h2 { font-size: clamp(2.1rem, 4.8vw, 3.5rem); letter-spacing: -.04em; }
h3 { letter-spacing: -.03em; }

/* --- Etiquetas de boton en mayusculas espaciadas --- */
.btn {
  border-radius: var(--radius-sm);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 1.05rem 1.7rem;
}
.btn:hover { transform: none; }
.btn--primary:hover { background: var(--clay-deep); }

/* --- Esquinas rectas en bloques y medios --- */
.card, .stat, .step, .split__media, .showcase__media, .gallery-item,
.eco, .review, .cta, .chip, .lightbox img { border-radius: var(--radius); }
.circle-item .gallery-item { border-radius: 50%; }
.chip {
  border-radius: var(--radius-sm);
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* --- Vinetas cuadradas --- */
.ticks li::before {
  width: 9px;
  height: 9px;
  border-radius: 0;
  background: var(--clay);
  top: .5em;
}
.ticks li { padding-left: 1.5rem; }

/* --- Tag del showcase QR --- */
.showcase__tag { letter-spacing: .16em; }

/* --- La portada y la barra flotante conservan su forma redondeada --- */
.showcase-hero::before { content: none; }
.nav a, .nav a.header-cta { border-radius: var(--radius-sm); }
.nav a.header-cta { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }

/* --------------------------------------------------------------------------
   Refinado brikken: microtipografia monoespaciada, hovers planos y filetes.
   Solo toca etiquetas pequenas y estados; la portada (.showcase-hero) y la
   barra flotante (.floatbar) quedan intactas por tener medidas cerradas.
   -------------------------------------------------------------------------- */
:root {
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

/* --- Etiquetas pequenas en monoespaciada --- */
.eyebrow,
.btn,
.chip,
.crumbs,
.step__num,
.card__link,
.review__meta,
.showcase__tag,
.nav a.header-cta,
.showcase-hero__city,
.showcase-hero__scroll span {
  font-family: var(--font-mono);
  font-weight: 500;
}
/* La mono ya es ancha: se afloja el tracking heredado de la capa anterior. */
.eyebrow { letter-spacing: .12em; }
.btn { letter-spacing: .07em; }
.chip { letter-spacing: .04em; text-transform: none; }
.showcase__tag { letter-spacing: .12em; }
.nav a.header-cta { letter-spacing: .07em; }
.crumbs { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.step__num { font-weight: 500; letter-spacing: 0; }
.card__link { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.review__meta { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }

/* --- Hovers planos: sin elevacion ni sombra, el filete hace el trabajo --- */
.card {
  transition: border-color .2s ease, background .2s ease;
}
.card:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--clay);
}
.card:hover .card__media img { transform: scale(1.03); }
.gallery-item:hover img { transform: scale(1.03); }
.section--dark .card:hover, .pagehero .card:hover { border-color: var(--clay); }

/* --- Filete entre secciones consecutivas --- */
.section + .section { border-top: 1px solid var(--line); }
.section--dark + .section--dark { border-top-color: var(--line-dark); }

/* --- Enlaces de tarjeta alineados a la misma linea base --- */
.card { display: flex; flex-direction: column; }
.card__body { display: flex; flex-direction: column; flex: 1 1 auto; }
.card__link { margin-top: auto; padding-top: 1.1rem; }

/* ==========================================================================
   Capa de movimiento
   Registro sobrio tipo brikken: nada dura mas de medio segundo y solo se
   animan transform y opacity, que el compositor resuelve sin repintar.
   Todo el estado "oculto" cuelga de .js-anim, que main.js pone en <html> al
   arrancar: si el JavaScript falla, la pagina se ve entera y quieta.
   El bloque prefers-reduced-motion del final lo desactiva todo.
   ========================================================================== */
:root {
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur-1: .18s;
  --dur-2: .3s;
  --dur-3: .5s;
}

/* --- Transicion entre paginas (View Transitions entre documentos) --------- */
@view-transition { navigation: auto; }
@keyframes pq-vt-out { to { opacity: 0; } }
@keyframes pq-vt-in { from { opacity: 0; transform: translateY(10px); } }
::view-transition-old(root) { animation: pq-vt-out var(--dur-1) ease both; }
::view-transition-new(root) { animation: pq-vt-in var(--dur-3) var(--ease) both; }

/* --- Revelado escalonado -------------------------------------------------
   El contenedor .reveal solo funde; el desplazamiento y el escalonado los
   llevan sus hijos directos, con --i que main.js numera al arrancar. */
.js-anim .reveal { transform: none; }
.js-anim .reveal > * {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity var(--dur-3) var(--ease) calc(var(--i, 0) * 70ms),
    transform var(--dur-3) var(--ease) calc(var(--i, 0) * 70ms);
}
.js-anim .reveal.is-visible > * { opacity: 1; transform: none; }

/* --- Cabecera: se compacta al bajar --------------------------------------- */
.site-header { transition: box-shadow var(--dur-2) ease, background var(--dur-2) ease; }
.site-header__inner { transition: padding var(--dur-2) var(--ease); }
.site-header.is-compact .site-header__inner { padding: .45rem 0; }
.site-header.is-compact { box-shadow: 0 14px 30px -26px rgba(43, 27, 20, .55); }
.brand__mark { transition: transform var(--dur-2) var(--ease); }
.site-header.is-compact .brand__mark { transform: scale(.82); }

/* --- Navegacion: subrayado que crece desde la izquierda -------------------- */
.nav a { position: relative; }
.nav a:not(.header-cta)::after {
  content: "";
  position: absolute;
  left: .85rem; right: .85rem; bottom: .3rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-2) var(--ease);
}
.nav a:not(.header-cta):hover::after { transform: scaleX(1); }

/* --- Enlaces del pie: mismo subrayado ------------------------------------- */
.site-footer a {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size var(--dur-2) var(--ease), color var(--dur-2) ease;
}
.site-footer a:hover { background-size: 100% 1px; }

/* --- Botones fantasma: se rellenan desde abajo ---------------------------- */
.btn--ghost {
  background-image: linear-gradient(var(--ink), var(--ink));
  background-repeat: no-repeat;
  background-position: 50% 100%;
  background-size: 100% 0%;
  transition: background-size var(--dur-2) var(--ease), color var(--dur-2) ease, border-color var(--dur-2) ease;
}
.btn--ghost:hover { background: none; background-size: 100% 100%; }
.section--dark .btn--ghost, .pagehero .btn--ghost, .cta .btn--ghost {
  background-image: linear-gradient(var(--paper), var(--paper));
}
.cta .btn--ghost:hover, .section--dark .btn--ghost:hover, .pagehero .btn--ghost:hover { background: none; background-size: 100% 100%; }

/* --- Piezas de galeria y tarjetas: filete que reacciona -------------------- */
.gallery-item { transition: border-color var(--dur-2) ease; }
.gallery-item:hover { border-color: var(--clay); }
.gallery-item figcaption { transition: opacity var(--dur-2) ease; }
.chip { transition: border-color var(--dur-2) ease, background var(--dur-2) ease, color var(--dur-2) ease; }
.chip:hover { border-color: var(--clay); color: var(--clay); }
.step { transition: border-color var(--dur-2) ease; }
.step:hover { border-color: var(--clay); }

/* --- Menu movil: entra deslizando (allow-discrete para animar el display) -- */
@media (max-width: 940px) {
  .nav {
    opacity: 0;
    transform: translateY(-8px);
    transition:
      opacity var(--dur-2) var(--ease),
      transform var(--dur-2) var(--ease),
      display var(--dur-2) allow-discrete;
  }
  .nav.is-open { opacity: 1; transform: none; }
  @starting-style { .nav.is-open { opacity: 0; transform: translateY(-8px); } }
}

/* --- Lightbox: funde y escala al abrir ------------------------------------ */
.lightbox {
  opacity: 0;
  transition: opacity var(--dur-2) ease, display var(--dur-2) allow-discrete;
}
.lightbox.is-open { opacity: 1; }
@starting-style { .lightbox.is-open { opacity: 0; } }
.lightbox img { transition: transform var(--dur-3) var(--ease), opacity var(--dur-2) ease; }
.lightbox.is-open img { animation: pq-vt-in var(--dur-3) var(--ease) both; }

/* --- Indicador "Desliza" de la portada: latido lento ----------------------- */
@keyframes pq-scroll-hint {
  0%, 100% { transform: scaleY(.35); opacity: .35; }
  50%      { transform: scaleY(1);   opacity: 1; }
}
.showcase-hero__scroll i {
  transform-origin: top;
  animation: pq-scroll-hint 2.4s ease-in-out infinite;
}

/* --- Foco visible: obligatorio y tambien animado -------------------------- */
a:focus-visible,
button:focus-visible,
.gallery-item:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
  border-radius: 2px;
}
.section--dark a:focus-visible,
.pagehero a:focus-visible,
.site-footer a:focus-visible { outline-color: #eab79f; }

/* --- Respeto absoluto por prefers-reduced-motion --------------------------- */
@media (prefers-reduced-motion: reduce) {
  .js-anim .reveal,
  .js-anim .reveal > * { opacity: 1; transform: none; transition: none; }
  .showcase-hero__scroll i { animation: none; opacity: .6; transform: none; }
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation: none !important; }
  .lightbox.is-open img { animation: none; }
}
