:root{
  --ink:#0b0b0b;
  --muted:#6b7280;
  --gold:#D8B880;
  --gold-strong:#C9A86A;
  --navy:#142b4a;

  --offset-total:72px;
  --hero-min: calc(100vh - var(--offset-total));

  --radius: 20px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  color:var(--ink);
  background:#fff;
  font:14px/1.7 "Poppins", sans-serif;
  padding-top:var(--offset-total);
  overflow-x:hidden;
}
img{display:block;max-width:100%}

.container{
  max-width: 1220px;
  margin-inline:auto;
  padding-inline: clamp(16px, 2.2vw, 44px);
}

.u-gold{ color: var(--gold); font-weight:900; }

/* =========================
   BOTONES (igual)
========================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 900;
  letter-spacing: .2px;
  text-decoration:none;
  border: 1px solid transparent;
  cursor:pointer;
  user-select:none;
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease, border-color .14s ease, color .14s ease;
  line-height: 1;
  min-height: 44px;
}
.btn:active{ transform: translateY(1px); }
.btn:focus{ outline:none; }
.btn:focus-visible{
  box-shadow: 0 0 0 3px rgba(216,184,128,.28), 0 14px 34px rgba(0,0,0,.18);
}
.btn-primary{
  background: linear-gradient(180deg, rgba(216,184,128,.98), rgba(201,168,106,.98));
  color:#111;
  border-color: rgba(0,0,0,.14);
  box-shadow: 0 16px 36px rgba(0,0,0,.18);
}
.btn-primary:hover{
  box-shadow: 0 18px 44px rgba(0,0,0,.22);
  transform: translateY(-1px);
}

/* =========================
   REVEAL SEGURO + POR SECCIÓN
   - Solo se oculta si html tiene .js
   - Cuando la sección entra: se revela TODO
========================= */
html.js .reveal{
  opacity:0;
  transform: translateY(8px);
  transition: opacity .28s cubic-bezier(.22,.8,.22,1),
              transform .28s cubic-bezier(.22,.8,.22,1);
}
html.js .reveal.is-in{ opacity:1; transform:none; }
html.js .section-in .reveal{ opacity:1; transform:none; }

.h-underline-gold{ position:relative; display:inline-block; }
.h-underline-gold::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:-10px;
  width:120px;
  height:4px;
  border-radius:999px;
  background:linear-gradient(90deg, var(--gold), var(--gold-strong));
  transform: translateX(-50%);
  opacity:.9;
}

/* =========================
   PIEZAS (float) - desktop
========================= */
.fcp-floatPieces{
  position:fixed;
  inset:0;
  z-index:90;
  pointer-events:none;
}
.fcp-pieceImg{
  position:fixed;
  left:0; top:0;
  width: 185px;
  height:auto;
  transform: translate(-9999px,-9999px);
  opacity:0;
  filter: drop-shadow(0 18px 28px rgba(0,0,0,.28));
  will-change: transform, opacity;
}

/* anchors invisibles */
.piece-anchor{
  position:absolute;
  width: 210px;
  height: 210px;
  opacity:0;
  pointer-events:none;
}

/* desktop hero anchors */
.piece-anchor--left{
  left: clamp(10px, 4vw, 70px);
  top: 55%;
  transform: translateY(-50%);
}
.piece-anchor--right{
  right: clamp(10px, 4vw, 70px);
  top: 55%;
  transform: translateY(-50%);
}

/* mobile hero anchors (se quedan) */
.piece-anchor--mTop{
  left: 50%;
  top: 20%;
  transform: translate(-50%,-50%);
}
.piece-anchor--mBot{
  left: 50%;
  top: 78%;
  transform: translate(-50%,-50%);
}

/* =========================
   SECCIONES (centradas)
========================= */
.section-center{
  min-height: var(--hero-min);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: clamp(26px, 5vw, 72px) 0;
}

.section-box{
  width:100%;
  max-width: 1040px;
  margin-inline:auto;
}

/* =========================
   HERO
========================= */
.fcp-hero{
  position:relative;
  overflow:hidden;
  padding:0;
}
.fcp-hero__bg{ position:absolute; inset:0; z-index:0; }
.fcp-hero__bg img{ width:100%; height:100%; object-fit:cover; }

.hero-overlay{
  position:relative;
  z-index:1;
  width:100%;
  min-height: var(--hero-min);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: clamp(28px, 6vw, 80px) 0;
  background:
    radial-gradient(1000px 600px at 50% 35%, rgba(0,0,0,.35), rgba(0,0,0,.78)),
    linear-gradient(90deg, rgba(0,0,0,.80), rgba(0,0,0,.62));
}

.hero-overlay__inner{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
}

.hero-copy{
  width:min(880px, 100%);
  text-align:center;
  color:#fff;
}
.hero-h1{
  margin: 0 0 12px;
  font-size: clamp(30px, 3.2vw, 56px);
  line-height:1.06;
  font-weight: 900;
}
.hero-sub{
  margin: 0 auto;
  max-width: 70ch;
  font-size: 14.5px;
  color: rgba(255,255,255,.92);
}
.hero-sub2{
  margin: 10px auto 0;
  max-width: 78ch;
  font-size: 13.8px;
  color: rgba(255,255,255,.90);
}

/* =========================
   MATCH
========================= */
.fcp-match{
  background:
    radial-gradient(900px 500px at 80% 30%, rgba(216,184,128,.20), transparent 60%),
    linear-gradient(180deg, #f6f6f6, #ffffff);
}

.section-head{
  text-align:center;
  margin-bottom: 18px;
}
.section-title{
  margin:0;
  font-size: clamp(22px, 2vw, 34px);
  font-weight: 900;
}
.section-sub{
  margin: 14px auto 0;
  max-width: 86ch;
  color:#1b1b1b;
  font-size: 13.8px;
}

.piece-underTitleRow{
  display:none;
  margin: 12px auto 0;
  gap: 10px;
  justify-content:center;
  align-items:center;
  width:100%;
}
.piece-underTitleAnchor{
  width:150px;
  height:150px;
  opacity:0;
  pointer-events:none;
}

.how-grid{
  margin-top: 12px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.how-panel{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.10);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(0,0,0,.10);
  padding: 18px;
}

.how-kicker{
  font-weight: 900;
  color: #111;
  letter-spacing: .18em;
  font-size: 11px;
  opacity:.72;
}
.how-h3{
  margin: 10px 0 8px;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 900;
}
.how-p{
  margin: 0;
  margin-top: 10px;
  color:#222;
  font-size: 13.5px;
}

.how-piecesRow{
  margin: 12px auto 0;
  display:flex;
  justify-content:center;
  gap: 16px;
  height: 170px;
}
.center-anchor{
  width: 150px;
  height: 150px;
  opacity:0;
  pointer-events:none;
}

.how-centerNote{
  margin: 10px auto 0;
  text-align:center;
  max-width: 68ch;
  font-weight: 900;
  color:#142b4a;
  background: rgba(20,43,74,.06);
  border: 1px solid rgba(20,43,74,.12);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 18px 40px rgba(0,0,0,.06);
}

.how-band{
  margin-top: 14px;
  text-align:center;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(216,184,128,.14);
  border: 1px solid rgba(216,184,128,.34);
  font-size: 13.8px;
}

/* =========================
   BISHOP
========================= */
.fcp-bishop{
  background:
    radial-gradient(900px 500px at 20% 25%, rgba(20,43,74,.12), transparent 60%),
    linear-gradient(180deg, #ffffff, #fbfbfb);
}

.bishop-box{ max-width: 980px; }

.bishop-titleBlock{ display:inline-block; }

.bishop-pieceUnderTitle{
  display:flex;
  justify-content:center;
  margin-top: 14px;
  padding-bottom: 6px;
}
.bishop-anchor.bishop-anchor--final{
  width: 210px;
  height: 210px;
  opacity:0;
  pointer-events:none;
}

.bishop-body{ margin-top: 18px; }

.chips{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.chip{
  border-radius: 18px;
  padding: 14px 14px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(0,0,0,.10);
  box-shadow: 0 18px 40px rgba(0,0,0,.08);
  display:grid;
  grid-template-columns: 46px 1fr;
  column-gap: 12px;
  align-items:start;
}
.chip-ico{
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(216,184,128,.18);
  border: 1px solid rgba(216,184,128,.38);
  color: #142b4a;
}
.chip-ico svg{ width: 22px; height: 22px; }

.chip-t{ font-weight: 900; font-size: 14px; line-height:1.15; }
.chip-p{ margin-top: 6px; color:#2a2a2a; font-size: 13.2px; grid-column: 2 / -1; }

.cta-inline{
  margin-top: 16px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 10px;
}
.cta-note{
  margin:0;
  color:#2a2a2a;
  font-size: 13px;
  text-align:center;
  max-width: 78ch;
}

/* =========================
   PAWN
========================= */
.fcp-pawn{
  background:
    radial-gradient(900px 500px at 80% 30%, rgba(216,184,128,.18), transparent 60%),
    linear-gradient(180deg, #f6f6f6, #ffffff);
}

.pawn-morphArea{
  margin: 10px auto 0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap: 10px;
}

.pawn-morphPrompt{
  font-weight: 900;
  color:#142b4a;
  text-align:center;
  background: rgba(20,43,74,.06);
  border: 1px solid rgba(20,43,74,.12);
  border-radius: 999px;
  padding: 10px 14px;
  max-width: 70ch;
}

.pawn-morphSpot{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height: 190px;
  border-radius: 18px;
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 18px 40px rgba(0,0,0,.06);
}

.pawn-morphAnchor{
  width: 210px;
  height: 210px;
  opacity:0;
  pointer-events:none;
}

.pawn-layout{
  margin-top: 18px;
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 18px;
  align-items:start;
}

.pawn-copy{
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(0,0,0,.10);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(0,0,0,.10);
  padding: 18px;
}
.pawn-h3{
  margin:0;
  font-weight: 900;
  font-size: 17px;
  line-height: 1.2;
}
.pawn-p{
  margin: 10px 0 0;
  color:#222;
  font-size: 13.5px;
}

.pawn-proof{
  display:grid;
  gap: 12px;
}
.proof-card{
  border-radius: 18px;
  padding: 14px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(0,0,0,.10);
  box-shadow: 0 18px 40px rgba(0,0,0,.08);
}
.proof-k{
  font-weight: 900;
  letter-spacing: .12em;
  font-size: 11px;
  opacity:.72;
}
.proof-v{
  margin-top: 8px;
  font-weight: 900;
  font-size: 13.5px;
  color:#1b1b1b;
}

/* =========================
   ✅ PIEZAS FIJAS SOLO RESPONSIVE (2,3,4)
========================= */
.r-staticPieces{
  display:none;          /* solo responsive */
  margin: 14px auto 0;
  justify-content:center;
  gap: 14px;
  align-items:center;
}
.r-staticPieces--one{ gap: 0; }
.r-piece{
  width: 120px;
  height: auto;
  filter: drop-shadow(0 14px 22px rgba(0,0,0,.18));
}
.r-piece--big{ width: 150px; }

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 980px){
  .how-grid{ grid-template-columns: 1fr; }
  .how-piecesRow{ display:none; }
  .piece-underTitleRow{ display:flex; }

  .pawn-layout{ grid-template-columns: 1fr; }

  .fcp-pieceImg{
    width: 145px;
    filter: drop-shadow(0 14px 22px rgba(0,0,0,.22));
  }

  .bishop-anchor.bishop-anchor--final{
    width: 180px;
    height: 180px;
  }

  .pawn-morphAnchor{
    width: 190px;
    height: 190px;
  }
}

/* ✅ Aquí es donde hacemos “responsive estático” */
@media (max-width: 820px){
  /* NO piezas flotantes (así NO salen en hero) */
  .fcp-floatPieces{ display:none; }
  .piece-underTitleRow{ display:none; }
  .bishop-pieceUnderTitle { display:none; }
  .pawn-morphSpot { display:none; }

  /* piezas fijas en secciones 2,3,4 */
  .r-staticPieces{ display:flex; }

  .r-piece{ width: 110px; }
  .r-piece--big{ width: 140px; }
}

@media (max-width: 520px){
  .btn{ width: 100%; max-width: 420px; }
  .fcp-pieceImg{ width: 130px; }

  .pawn-morphSpot{ min-height: 170px; }
  .pawn-morphAnchor{ width: 175px; height: 175px; }

  .r-piece{ width: 95px; }
  .r-piece--big{ width: 120px; }
}

@media (prefers-reduced-motion: reduce){
  html.js .reveal{ transition:none; opacity:1; transform:none; }
}
