/* ============================================================
   MERCOPOLI DISTRIBUTION — DESIGN SYSTEM
   Tokens: color, type, layout. Signature: the "ficha técnica" spec card.
   ============================================================ */

:root{
  /* --- Core surfaces --- */
  --ink:        #10151C;   /* primary dark surface — engineering-print navy */
  --ink-2:      #1B2330;   /* raised dark surface */
  --ink-3:      #232C3B;   /* hover / higher raised */
  --paper:      #F5F2EC;   /* light surface — spec-sheet paper */
  --paper-2:    #EAE4D6;   /* deeper paper tone, alternating sections */
  --paper-3:    #DFD8C7;

  /* --- Text --- */
  --text-on-paper:   #191E27;
  --text-on-paper-70:#454C58;
  --text-on-ink:     #F3F1EA;
  --text-on-ink-70:  #B6BDC9;
  --muted:      #6B7280;

  /* --- Lines --- */
  --line-on-paper: #D9D2C0;
  --line-on-ink:   rgba(243,241,234,0.14);

  /* --- Accent: RESIN (polycarbonate optical clarity) --- */
  --resin:       #2FB6C4;
  --resin-deep:  #1C8A96;
  --resin-tint:  #DEF2F3;

  /* --- Material identity swatches (structural, not decorative) --- */
  --m-pc:    #2FB6C4;  /* Policarbonato — transparencia / claridad óptica */
  --m-abs:   #2B2E33;  /* ABS — carcasas, tono grafito */
  --m-pa:    #C98A3E;  /* Nylon/PA — tono ámbar natural del pellet */
  --m-pom:   #A79C86;  /* POM/Acetal — blanco marfil natural, con borde para contraste */
  --m-pbt:   #3A4B8C;  /* PBT — azul conector eléctrico */
  --m-bio:   #5B8C5A;  /* Bioplásticos — verde */
  --m-pmma:  #6FB7D9;  /* PMMA — acrílico, transparencia tipo vidrio */
  --m-pps:   #8C4A3A;  /* PPS — alta temperatura, tono terracota quemado */
  --m-tpcet: #6B5B95;  /* TPC-ET — elastómero, violeta flexible */
  --m-uhmwpe:#7FA8B8;  /* UHMW-PE — hielo/deslizante, azul frío */

  /* --- Type --- */
  --f-display: 'Space Grotesk', 'Arial Narrow', sans-serif;
  --f-body:    'IBM Plex Sans', 'Segoe UI', sans-serif;
  --f-mono:    'IBM Plex Mono', 'Courier New', monospace;

  /* --- Scale --- */
  --step--1: clamp(0.82rem, 0.79rem + 0.1vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  --step-2:  clamp(1.5rem, 1.3rem + 0.8vw, 1.9rem);
  --step-3:  clamp(1.9rem, 1.5rem + 1.6vw, 2.6rem);
  --step-4:  clamp(2.4rem, 1.8rem + 2.6vw, 3.6rem);
  --step-5:  clamp(3rem, 2rem + 4.5vw, 5.2rem);

  /* --- Layout --- */
  --maxw: 1200px;
  --pad: clamp(1.25rem, 1rem + 2vw, 3rem);
  --radius-s: 3px;
  --radius-m: 6px;

  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ============================================================
   RESET
   ============================================================ */
*,*::before,*::after{ box-sizing:border-box; }
html{
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
}
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
}
body{
  margin:0;
  background:var(--paper);
  color:var(--text-on-paper);
  font-family:var(--f-body);
  font-size:var(--step-0);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img,svg{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; }
h1,h2,h3,h4{ margin:0; font-family:var(--f-display); letter-spacing:-0.01em; line-height:1.08; font-weight:600; }
p{ margin:0; }
button{ font-family:inherit; cursor:pointer; }
input,textarea,select{ font-family:inherit; font-size:inherit; }

:focus-visible{
  outline:2px solid var(--resin);
  outline-offset:3px;
  border-radius:2px;
}

.visually-hidden{
  position:absolute; width:1px; height:1px; overflow:hidden;
  clip:rect(0,0,0,0); white-space:nowrap;
}

.skip-link{
  position:absolute; left:-999px; top:0; z-index:200;
  background:var(--resin); color:var(--ink); padding:.6rem 1rem; font-family:var(--f-mono); font-size:var(--step--1);
}
.skip-link:focus{ left:1rem; top:1rem; }

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.wrap{
  max-width:var(--maxw);
  margin-inline:auto;
  padding-inline:var(--pad);
}
.section{ padding-block: clamp(3.5rem, 3rem + 4vw, 7rem); }
.section--tight{ padding-block: clamp(2.5rem, 2rem + 2vw, 4rem); }
.on-ink{ background:var(--ink); color:var(--text-on-ink); }
.on-paper-2{ background:var(--paper-2); }
.on-paper-3{ background:var(--paper-3); }

.grid{ display:grid; gap: clamp(1.25rem, 1rem + 1.5vw, 2.5rem); }
.grid-2{ grid-template-columns: repeat(2,1fr); }
.grid-3{ grid-template-columns: repeat(3,1fr); }
.grid-4{ grid-template-columns: repeat(4,1fr); }
@media (max-width: 920px){
  .grid-2,.grid-3,.grid-4{ grid-template-columns:1fr; }
}
@media (min-width: 921px) and (max-width: 1160px){
  .grid-4{ grid-template-columns: repeat(2,1fr); }
}

.eyebrow{
  font-family:var(--f-mono);
  font-size:var(--step--1);
  text-transform:uppercase;
  letter-spacing:.14em;
  color:var(--resin-deep);
  display:flex; align-items:center; gap:.6em;
}
.on-ink .eyebrow{ color:var(--resin); }
.eyebrow::before{
  content:""; width:1.4em; height:1px; background:currentColor; opacity:.6; flex:none;
}

.lede{
  font-size:var(--step-1);
  color:var(--text-on-paper-70);
  max-width:42ch;
}
.on-ink .lede{ color:var(--text-on-ink-70); }

.section-head{
  display:flex; flex-wrap:wrap; justify-content:space-between; align-items:flex-end; gap:1.5rem 2rem;
  margin-bottom: clamp(2rem, 1.6rem + 1.5vw, 3.2rem);
}
.section-head h2{ font-size:var(--step-3); max-width:20ch; }
.section-head .lede{ margin:0; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn{
  display:inline-flex; align-items:center; gap:.55em;
  font-family:var(--f-mono); font-size:var(--step--1); letter-spacing:.03em;
  text-transform:uppercase;
  padding:.85em 1.4em;
  border-radius:2px;
  border:1px solid transparent;
  transition:transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
  white-space:nowrap;
}
.btn svg{ width:1em; height:1em; transition:transform .18s var(--ease); }
.btn:hover svg{ transform:translateX(3px); }
.btn:active{ transform:translateY(1px); }

.btn--primary{ background:var(--resin); color:var(--ink); }
.btn--primary:hover{ background:var(--resin-deep); color:var(--text-on-ink); }

.btn--ghost-ink{ border-color:var(--line-on-ink); color:var(--text-on-ink); }
.btn--ghost-ink:hover{ border-color:var(--resin); color:var(--resin); }

.btn--ghost-paper{ border-color:var(--line-on-paper); color:var(--text-on-paper); }
.btn--ghost-paper:hover{ border-color:var(--resin-deep); color:var(--resin-deep); }

.btn--block{ width:100%; justify-content:center; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(16,21,28,0.86);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line-on-ink);
}
.site-header .wrap{
  display:flex; align-items:center; justify-content:space-between;
  height:74px;
}
.brand{ display:flex; align-items:center; gap:.65rem; color:var(--text-on-ink); }
.brand__mark{ width:30px; height:30px; flex:none; }
.brand__name{
  font-family:var(--f-display); font-weight:600; font-size:1.15rem; letter-spacing:-.01em;
  color:var(--text-on-ink);
}
.brand__sub{
  display:block; font-family:var(--f-mono); font-size:.62rem; letter-spacing:.14em; text-transform:uppercase; color:var(--text-on-ink-70);
}

.nav{
  display:flex; align-items:center; gap:clamp(1.1rem,2vw,2rem);
}
.nav a{
  font-family:var(--f-mono); font-size:.78rem; letter-spacing:.04em; text-transform:uppercase;
  color:var(--text-on-ink-70);
  padding:.4rem 0;
  border-bottom:1px solid transparent;
  transition:color .15s var(--ease), border-color .15s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"]{ color:var(--text-on-ink); border-color:var(--resin); }

.nav-toggle{
  display:none;
  background:none; border:1px solid var(--line-on-ink); border-radius:2px;
  width:42px; height:38px; align-items:center; justify-content:center;
  color:var(--text-on-ink);
}
.nav-toggle svg{ width:20px; height:20px; }

@media (max-width: 880px){
  .nav-toggle{ display:flex; }
  .nav{
    position:absolute; top:74px; left:0; right:0;
    background:var(--ink-2); border-bottom:1px solid var(--line-on-ink);
    flex-direction:column; align-items:stretch; gap:0;
    padding: .5rem var(--pad) 1.2rem;
    transform-origin:top;
    display:none;
  }
  .nav.is-open{ display:flex; }
  .nav a{ padding:.85rem 0; border-bottom:1px solid var(--line-on-ink); }
  .nav .btn{ margin-top:.85rem; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero{
  position:relative; overflow:hidden;
  background:var(--ink); color:var(--text-on-ink);
  padding-block: clamp(3.5rem, 3rem + 6vw, 8rem) clamp(3rem, 2rem + 4vw, 6rem);
}
.hero__grid{
  position:absolute; inset:0;
  background-image:radial-gradient(circle at 1px 1px, rgba(243,241,234,0.14) 1px, transparent 1.6px);
  background-size:26px 26px;
  mask-image:linear-gradient(to bottom, black, transparent 92%);
  pointer-events:none;
}
.hero__glow{
  position:absolute; top:-20%; right:-10%; width:56%; height:70%;
  background:radial-gradient(circle, rgba(47,182,196,0.22), transparent 70%);
  pointer-events:none;
}
.hero__inner{ position:relative; display:grid; grid-template-columns:1.1fr .9fr; gap:3rem; align-items:end; }
@media (max-width:960px){ .hero__inner{ grid-template-columns:1fr; } }

.hero h1{
  font-size:var(--step-5);
  max-width:15ch;
}
.hero h1 em{
  font-style:normal; color:var(--resin);
}
.hero .lede{ margin-block:1.4rem 2.1rem; font-size:var(--step-1); max-width:38ch; color:var(--text-on-ink-70); }
.hero__ctas{ display:flex; gap:.9rem; flex-wrap:wrap; }

.hero__panel{
  border:1px solid var(--line-on-ink); border-radius:var(--radius-m);
  background:rgba(255,255,255,0.03);
  padding:1.4rem;
}
.hero__panel-label{ font-family:var(--f-mono); font-size:var(--step--1); color:var(--text-on-ink-70); letter-spacing:.08em; text-transform:uppercase; margin-bottom:1rem; display:block; }
.chips{ display:flex; flex-wrap:wrap; gap:.55rem; }
.chip{
  font-family:var(--f-mono); font-size:.76rem;
  display:inline-flex; align-items:center; gap:.5em;
  border:1px solid var(--line-on-ink); border-radius:100px;
  padding:.42em .85em .42em .6em;
  color:var(--text-on-ink-70);
}
.chip__dot{ width:.6em; height:.6em; border-radius:50%; flex:none; }

.hero__strip{
  margin-top:2.6rem; padding-top:1.6rem; border-top:1px solid var(--line-on-ink);
  display:grid; grid-template-columns:repeat(4,1fr); gap:1.5rem;
}
@media (max-width:760px){ .hero__strip{ grid-template-columns:repeat(2,1fr); } }
.hero__stat b{ display:block; font-family:var(--f-display); font-size:var(--step-2); color:var(--text-on-ink); }
.hero__stat span{ font-family:var(--f-mono); font-size:.72rem; text-transform:uppercase; letter-spacing:.06em; color:var(--text-on-ink-70); }

/* ============================================================
   PAGE HERO (subpages)
   ============================================================ */
.pagehero{
  background:var(--ink); color:var(--text-on-ink);
  padding-block: clamp(3rem,2.5rem + 3vw,5.5rem) clamp(2.2rem,2rem + 2vw,3.5rem);
  position:relative; overflow:hidden;
}
.pagehero__grid{
  position:absolute; inset:0;
  background-image:radial-gradient(circle at 1px 1px, rgba(243,241,234,0.12) 1px, transparent 1.6px);
  background-size:26px 26px;
  mask-image:linear-gradient(to bottom, black, transparent 92%);
  pointer-events:none;
}
.pagehero .wrap{ position:relative; }
.pagehero h1{ font-size:var(--step-4); max-width:22ch; margin-top:1rem; }
.pagehero .lede{ margin-top:1.1rem; font-size:var(--step-1); max-width:48ch; color:var(--text-on-ink-70); }
.breadcrumb{ font-family:var(--f-mono); font-size:.72rem; color:var(--text-on-ink-70); text-transform:uppercase; letter-spacing:.06em; }
.breadcrumb a:hover{ color:var(--resin); }

/* ============================================================
   CARDS — general
   ============================================================ */
.card{
  background:var(--paper); border:1px solid var(--line-on-paper); border-radius:var(--radius-m);
  padding:1.6rem;
}
.on-ink .card{ background:var(--ink-2); border-color:var(--line-on-ink); }

.value-card{
  border:1px solid var(--line-on-paper); border-radius:var(--radius-m);
  padding:1.7rem 1.6rem; background:var(--paper);
  transition:border-color .2s var(--ease), transform .2s var(--ease);
}
.value-card:hover{ border-color:var(--resin-deep); transform:translateY(-3px); }
.value-card__icon{ width:2.1rem; height:2.1rem; color:var(--resin-deep); margin-bottom:1.1rem; }
.value-card h3{ font-size:var(--step-1); margin-bottom:.55rem; }
.value-card p{ color:var(--text-on-paper-70); font-size:var(--step--1); }

/* ============================================================
   SIGNATURE COMPONENT — FICHA TÉCNICA (spec card)
   ============================================================ */
.spec-card{
  position:relative;
  background:var(--paper);
  border:1px solid var(--line-on-paper);
  border-radius:var(--radius-m);
  overflow:hidden;
  padding-left:1.55rem;
}
.spec-card::before{
  content:""; position:absolute; left:0; top:0; bottom:0; width:.55rem;
  background:var(--swatch, var(--resin));
}
.spec-card__top{
  display:flex; justify-content:space-between; align-items:flex-start; gap:1rem;
  padding:1.5rem 1.5rem 1.1rem;
  border-bottom:1px dashed var(--line-on-paper);
}
.spec-card__id{ font-family:var(--f-mono); font-size:.7rem; letter-spacing:.1em; color:var(--muted); text-transform:uppercase; }
.spec-card__name{ font-size:var(--step-2); margin-top:.3rem; }
.spec-card__badge{
  font-family:var(--f-mono); font-size:.68rem; text-transform:uppercase; letter-spacing:.06em;
  border:1px solid var(--line-on-paper); border-radius:100px; padding:.35em .75em;
  color:var(--text-on-paper-70); white-space:nowrap;
}
.spec-card__body{ padding:1.1rem 1.5rem 1.5rem; }
.spec-card__desc{ color:var(--text-on-paper-70); font-size:var(--step--1); margin-bottom:1.2rem; }

.spec-rows{ font-family:var(--f-mono); font-size:.82rem; }
.spec-row{
  display:flex; justify-content:space-between; gap:1rem;
  padding:.5rem 0;
  border-bottom:1px solid var(--line-on-paper);
}
.spec-row:last-child{ border-bottom:none; }
.spec-row dt{ color:var(--muted); }
.spec-row dd{ margin:0; text-align:right; font-weight:600; }

.spec-card__apps{ margin-top:1.2rem; display:flex; flex-wrap:wrap; gap:.45rem; }
.spec-card__apps span{
  font-family:var(--f-mono); font-size:.7rem; background:var(--paper-2); border-radius:100px;
  padding:.32em .75em; color:var(--text-on-paper-70);
}
.spec-card__foot{
  padding:1rem 1.5rem; background:var(--paper-2); border-top:1px solid var(--line-on-paper);
  display:flex; justify-content:space-between; align-items:center; gap:1rem; flex-wrap:wrap;
}
.spec-card__foot a{ font-family:var(--f-mono); font-size:.76rem; text-transform:uppercase; letter-spacing:.05em; color:var(--resin-deep); }
.spec-card__foot a:hover{ text-decoration:underline; }

/* material accent utilities */
.m-pc{ --swatch:var(--m-pc); }
.m-abs{ --swatch:var(--m-abs); }
.m-pa{ --swatch:var(--m-pa); }
.m-pom{ --swatch:var(--m-pom); }
.m-pbt{ --swatch:var(--m-pbt); }
.m-bio{ --swatch:var(--m-bio); }
.m-pmma{ --swatch:var(--m-pmma); }
.m-pps{ --swatch:var(--m-pps); }
.m-tpcet{ --swatch:var(--m-tpcet); }
.m-uhmwpe{ --swatch:var(--m-uhmwpe); }

/* ============================================================
   PROCESS / STEPS
   ============================================================ */
.steps{ display:grid; grid-template-columns:repeat(4,1fr); gap:1.5rem; }
@media (max-width:920px){ .steps{ grid-template-columns:1fr; } }
.step{ position:relative; padding-top:2.6rem; border-top:1px solid var(--line-on-paper); }
.on-ink .step{ border-color:var(--line-on-ink); }
.step__num{
  font-family:var(--f-mono); font-size:.75rem; color:var(--resin-deep);
  position:absolute; top:-.02rem; left:0; letter-spacing:.05em;
}
.on-ink .step__num{ color:var(--resin); }
.step h3{ font-size:var(--step-1); margin-bottom:.5rem; }
.step p{ color:var(--text-on-paper-70); font-size:var(--step--1); }
.on-ink .step p{ color:var(--text-on-ink-70); }

/* ============================================================
   LOGISTICS / INCOTERM TABLE
   ============================================================ */
.table-wrap{ overflow-x:auto; border:1px solid var(--line-on-paper); border-radius:var(--radius-m); }
table.data-table{ width:100%; border-collapse:collapse; min-width:560px; font-size:var(--step--1); }
table.data-table caption{ text-align:left; padding:1rem 1.2rem; font-family:var(--f-mono); font-size:.72rem; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); border-bottom:1px solid var(--line-on-paper); }
table.data-table th, table.data-table td{ padding:.85rem 1.2rem; text-align:left; border-bottom:1px solid var(--line-on-paper); vertical-align:top; }
table.data-table thead th{ font-family:var(--f-mono); font-size:.72rem; text-transform:uppercase; letter-spacing:.05em; color:var(--muted); background:var(--paper-2); }
table.data-table tbody tr:last-child td{ border-bottom:none; }
table.data-table tbody tr:hover{ background:var(--paper-2); }

/* ============================================================
   TIMELINE (lead time)
   ============================================================ */
.leadtime{ display:flex; flex-direction:column; gap:0; }
.leadtime__row{
  display:grid; grid-template-columns: 10rem 1fr auto; gap:1rem; align-items:center;
  padding:.9rem 0; border-bottom:1px solid var(--line-on-paper);
}
.leadtime__row:last-child{ border-bottom:none; }
.leadtime__label{ font-family:var(--f-mono); font-size:.78rem; color:var(--text-on-paper-70); }
.leadtime__bar{ height:8px; border-radius:4px; background:var(--paper-2); position:relative; overflow:hidden; }
.leadtime__bar span{ position:absolute; inset:0 auto 0 0; background:var(--resin); border-radius:4px; }
.leadtime__days{ font-family:var(--f-mono); font-size:.78rem; font-weight:600; white-space:nowrap; }
@media (max-width:640px){
  .leadtime__row{ grid-template-columns:1fr; gap:.35rem; }
}

/* ============================================================
   ACCORDION (bioplastics subsections)
   ============================================================ */
.accordion-item{ border-bottom:1px solid var(--line-on-paper); }
.accordion-item:first-child{ border-top:1px solid var(--line-on-paper); }
.accordion-trigger{
  width:100%; background:none; border:none; text-align:left;
  display:flex; justify-content:space-between; align-items:center; gap:1rem;
  padding:1.35rem 0; color:inherit;
}
.accordion-trigger h3{ font-size:var(--step-1); font-family:var(--f-display); }
.accordion-trigger__meta{ font-family:var(--f-mono); font-size:.72rem; color:var(--muted); text-transform:uppercase; letter-spacing:.05em; }
.accordion-icon{ width:1.1rem; height:1.1rem; flex:none; transition:transform .25s var(--ease); color:var(--resin-deep); }
.accordion-item[data-open="true"] .accordion-icon{ transform:rotate(45deg); }
.accordion-panel{
  max-height:0; overflow:hidden; transition:max-height .3s var(--ease);
}
.accordion-panel__inner{ padding-bottom:1.5rem; color:var(--text-on-paper-70); max-width:70ch; }
.accordion-panel__inner p + p{ margin-top:.85rem; }
.accordion-panel__tags{ margin-top:1rem; display:flex; gap:.5rem; flex-wrap:wrap; }
.accordion-panel__tags span{ font-family:var(--f-mono); font-size:.7rem; background:var(--paper-2); border-radius:100px; padding:.3em .7em; }

/* ============================================================
   TEAM
   ============================================================ */
.team-card{ display:flex; gap:1.1rem; align-items:flex-start; }
.team-card__badge{
  flex:none; width:3rem; height:3rem; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-family:var(--f-display); font-weight:600; font-size:1.05rem;
  background:var(--resin-tint); color:var(--resin-deep);
}
.team-card h3{ font-size:var(--step-0); margin-bottom:.15rem; }
.team-card__role{ font-family:var(--f-mono); font-size:.72rem; text-transform:uppercase; letter-spacing:.05em; color:var(--resin-deep); display:block; margin-bottom:.5rem; }
.team-card p{ font-size:var(--step--1); color:var(--text-on-paper-70); }

/* ============================================================
   BAND / CTA
   ============================================================ */
.cta-band{
  background:var(--ink); color:var(--text-on-ink);
  border-radius:var(--radius-m);
  padding: clamp(2rem,1.6rem + 2vw,3.5rem);
  display:flex; justify-content:space-between; align-items:center; gap:2rem; flex-wrap:wrap;
  position:relative; overflow:hidden;
}
.cta-band::after{
  content:""; position:absolute; inset:0; background:radial-gradient(circle at 100% 0%, rgba(47,182,196,.25), transparent 60%); pointer-events:none;
}
.cta-band h2{ font-size:var(--step-2); max-width:24ch; position:relative; }
.cta-band .lede{ margin-top:.6rem; position:relative; color:var(--text-on-ink-70); }
.cta-band__actions{ display:flex; gap:.9rem; position:relative; flex-wrap:wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer{ background:var(--ink); color:var(--text-on-ink-70); border-top:1px solid var(--line-on-ink); }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:2.5rem; padding-block:3.5rem 2.5rem; }
@media (max-width:880px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .footer-grid{ grid-template-columns:1fr; } }
.footer-grid h4{ font-family:var(--f-mono); font-size:.72rem; text-transform:uppercase; letter-spacing:.08em; color:var(--text-on-ink); margin-bottom:1rem; }
.footer-grid li{ list-style:none; margin-bottom:.6rem; font-size:.92rem; }
.footer-grid a:hover{ color:var(--resin); }
.footer-brand p{ margin-top:1rem; max-width:32ch; font-size:.88rem; }
.footer-bottom{
  border-top:1px solid var(--line-on-ink);
  padding-block:1.4rem;
  display:flex; justify-content:space-between; gap:1rem; flex-wrap:wrap;
  font-family:var(--f-mono); font-size:.72rem; letter-spacing:.03em;
}

/* ============================================================
   FORMS (contacto)
   ============================================================ */
.form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:1.2rem; }
@media (max-width:640px){ .form-grid{ grid-template-columns:1fr; } }
.field{ display:flex; flex-direction:column; gap:.45rem; }
.field--full{ grid-column:1 / -1; }
.field label{ font-family:var(--f-mono); font-size:.72rem; text-transform:uppercase; letter-spacing:.05em; color:var(--muted); }
.field input, .field select, .field textarea{
  border:1px solid var(--line-on-paper); border-radius:2px; background:var(--paper);
  padding:.75em .85em; color:var(--text-on-paper); font-size:var(--step--1);
  transition:border-color .15s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus{ border-color:var(--resin-deep); }
.field textarea{ resize:vertical; min-height:110px; }
.form-note{ font-size:.82rem; color:var(--muted); }
.form-status{ font-family:var(--f-mono); font-size:.82rem; margin-top:1rem; }
.form-status[data-state="ok"]{ color:var(--resin-deep); }
.form-status[data-state="err"]{ color:#B23A2E; }

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
[data-reveal]{ opacity:0; transform:translateY(14px); transition:opacity .6s var(--ease), transform .6s var(--ease); }
[data-reveal].is-visible{ opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){
  [data-reveal]{ opacity:1; transform:none; }
}

/* ============================================================
   MISC
   ============================================================ */
.divider{ height:1px; background:var(--line-on-paper); border:none; margin-block:0; }
.on-ink .divider{ background:var(--line-on-ink); }
.tag-row{ display:flex; gap:.55rem; flex-wrap:wrap; }
.tag{ font-family:var(--f-mono); font-size:.72rem; border:1px solid var(--line-on-paper); border-radius:100px; padding:.3em .8em; color:var(--text-on-paper-70); }
.two-col{ display:grid; grid-template-columns: 1fr 1fr; gap:clamp(2rem,1.6rem+2vw,4rem); align-items:start; }
@media (max-width:920px){ .two-col{ grid-template-columns:1fr; } }
.figure-note{ font-family:var(--f-mono); font-size:.7rem; color:var(--muted); text-transform:uppercase; letter-spacing:.04em; margin-top:.6rem; }

.anchor-offset{ scroll-margin-top:96px; }
