/* ============================================================
   Green Toner — sitio informativo
   Lenguaje visual: papel cálido, tinta verde y acentos de imprenta.
   Sin dependencias externas: las fuentes se sirven desde /fuentes.
   ============================================================ */

/* ---------- Fuentes (subconjunto latino, autoalojadas) ---------- */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900; /* variable: un solo fichero para todos los pesos */
  font-display: swap;
  src: url("/fuentes/archivo-normal-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fuentes/ibm-plex-mono-normal-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fuentes/ibm-plex-mono-normal-500.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fuentes/instrument-serif-normal-400.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fuentes/instrument-serif-italic-400.woff2") format("woff2");
}

/* ---------- 1. Tokens ---------- */
:root {
  --paper: #f5f2ea;
  --paper-2: #ede9dd;
  --paper-3: #e4dfcf;
  --ink: #111a15;
  --ink-80: rgba(17, 26, 21, 0.8);
  --ink-60: rgba(17, 26, 21, 0.6);
  --ink-45: rgba(17, 26, 21, 0.45);
  --line: rgba(17, 26, 21, 0.14);
  --line-2: rgba(17, 26, 21, 0.26);
  --green: #1b5e3f;
  --green-hi: #2c7a54;
  --deep: #0c2b1d;
  --deep-2: #0a2318;
  --cyan: #0e7c86;
  --magenta: #b3236b;
  --yellow: #e0a400;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --serif: "Instrument Serif", Georgia, serif;

  --maxw: 1180px;
  --pad: clamp(20px, 4.5vw, 64px);
  --r: 3px;
  --ease: cubic-bezier(0.22, 0.7, 0.18, 1);
  --head-h: 74px;
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Textura de papel: un ruido muy tenue, sin peticiones externas. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.055'/%3E%3C/svg%3E");
}
img,
svg {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
p,
dl,
dd,
ul,
figure {
  margin: 0;
}
ul {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
::selection {
  background: var(--green);
  color: #fff;
}
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 2px;
}
section[id] {
  scroll-margin-top: var(--head-h);
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.ico {
  width: 1.05em;
  height: 1.05em;
  flex: none;
}
.skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r);
  transform: translateY(-160%);
  transition: transform 0.2s;
}
.skip:focus {
  transform: none;
}

/* ---------- 3. Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: var(--r);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: -0.01em;
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.btn--solid {
  background: var(--ink);
  color: var(--paper);
}
.btn--solid:hover {
  background: var(--green);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn--ghost:hover {
  border-color: var(--ink);
  background: rgba(17, 26, 21, 0.04);
}
.btn--sm {
  padding: 10px 16px;
  font-size: 13.5px;
}
.btn--light {
  background: var(--paper);
  color: var(--ink);
}
.btn--light:hover {
  background: #fff;
  transform: translateY(-1px);
}
.btn--outline-light {
  color: var(--paper);
  border-color: rgba(245, 242, 234, 0.35);
}
.btn--outline-light:hover {
  border-color: var(--paper);
  background: rgba(245, 242, 234, 0.08);
}

/* ---------- 4. Cabecera ---------- */
.head {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(245, 242, 234, 0.88);
  backdrop-filter: blur(10px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.head__in {
  min-height: var(--head-h);
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  flex-wrap: wrap;
  padding-block: 8px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.logo__mark {
  width: 26px;
  height: 26px;
  color: var(--green);
  transition: transform 0.6s var(--ease);
}
.logo:hover .logo__mark {
  transform: rotate(90deg);
}
.logo__word {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}
.logo__sv {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  background: var(--green);
  color: #fff;
  padding: 2px 4px;
  border-radius: 2px;
  transform: translateY(-1px);
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  margin-left: auto;
  flex-wrap: wrap;
}
.nav a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-80);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav a:hover {
  color: var(--ink);
}
.nav a:hover::after {
  transform: scaleX(1);
}
.head__cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}
.head__tel {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-60);
  border-bottom: 1px solid transparent;
  transition: 0.2s;
}
.head__tel:hover {
  color: var(--ink);
  border-color: var(--line-2);
}

/* ---------- 5. Portada ---------- */
.hero {
  padding: clamp(40px, 6vw, 84px) 0 clamp(36px, 5vw, 64px);
  position: relative;
}
.hero__in {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-60);
  margin-bottom: clamp(18px, 2.4vw, 28px);
}
.kicker__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex: none;
  box-shadow: 0 0 0 0 rgba(27, 94, 63, 0.45);
  animation: pulse 2.8s infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(27, 94, 63, 0.35);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(27, 94, 63, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(27, 94, 63, 0);
  }
}
.hero__h1 {
  font-size: clamp(2.3rem, 5vw, 4.1rem);
  line-height: 1;
  letter-spacing: -0.038em;
  font-weight: 800;
}
.hero__h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--green);
}
.hero__lead {
  margin-top: clamp(18px, 2.4vw, 26px);
  max-width: 48ch;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.65;
  color: var(--ink-80);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(24px, 3vw, 34px);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2.4vw, 32px);
  margin-top: clamp(34px, 4.5vw, 56px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.stat dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-45);
  margin-bottom: 6px;
}
.stat dd {
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.stat p {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-60);
}

/* ---------- 6. Ficha técnica ilustrada ---------- */
.sheet {
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  padding: clamp(16px, 2vw, 22px);
  box-shadow: 0 1px 0 var(--line), 0 24px 48px -40px rgba(17, 26, 21, 0.9);
}
.sheet__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-60);
}
.sheet__chips {
  display: inline-flex;
  gap: 5px;
}
.sw {
  width: 9px;
  height: 9px;
  border-radius: 1px;
  display: inline-block;
}
.sw--c {
  background: var(--cyan);
}
.sw--m {
  background: var(--magenta);
}
.sw--y {
  background: var(--yellow);
}
.sw--k {
  background: var(--ink);
}
.diagram {
  width: 100%;
  height: auto;
  margin-block: 6px;
}
.diagram .ink-line {
  stroke: var(--ink);
  stroke-width: 1.5;
  fill: none;
}
.diagram .ink-fill {
  fill: var(--paper-2);
  stroke: var(--ink);
  stroke-width: 1.5;
}
.diagram .accent {
  fill: var(--green);
  opacity: 0.9;
}
.diagram .label {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  fill: var(--ink-45);
}
.sheet__rows {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  display: grid;
  gap: 8px;
  font-size: 13px;
}
.sheet__row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
.sheet__row dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-45);
  padding-top: 2px;
}
.sheet__row dd {
  font-weight: 600;
  text-align: right;
}

/* ---------- 7. Secciones ---------- */
.sec {
  padding: clamp(64px, 9vw, 118px) 0;
  position: relative;
}
.sec--tight {
  padding-block: clamp(44px, 5.5vw, 72px);
}
.sec--dark {
  background: var(--deep);
  color: var(--paper);
  position: relative;
}
.sec--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: radial-gradient(rgba(245, 242, 234, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
}
.sec--dark > .wrap {
  position: relative;
  z-index: 1;
}
.sec__head {
  max-width: 62ch;
  margin-bottom: clamp(32px, 4.5vw, 54px);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-60);
  margin-bottom: 18px;
}
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
  max-width: 120px;
}
.eyebrow .mono {
  color: var(--green);
  font-weight: 500;
}
.sec--dark .eyebrow {
  color: rgba(245, 242, 234, 0.55);
}
.sec--dark .eyebrow::after {
  background: rgba(245, 242, 234, 0.2);
}
.sec--dark .eyebrow .mono {
  color: var(--green-hi);
}
.sec__h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.9rem);
  line-height: 1.05;
  letter-spacing: -0.032em;
  font-weight: 800;
  text-wrap: balance;
}
.sec__h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--green);
}
.sec--dark .sec__h2 em {
  color: var(--green-hi);
}
.sec__lead {
  margin-top: 18px;
  max-width: 58ch;
  font-size: clamp(15px, 1.1vw, 16.5px);
  line-height: 1.65;
  color: var(--ink-80);
}
.sec--dark .sec__lead {
  color: rgba(245, 242, 234, 0.72);
}

/* ---------- 8. Tarjetas de servicio ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 26px);
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(20px, 2.2vw, 28px);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition:
    border-color 0.25s var(--ease),
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
.card:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -32px rgba(17, 26, 21, 0.8);
}
.card__idx {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-45);
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.card__tag {
  color: var(--green);
}
.card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-80);
}
.card ul {
  display: grid;
  gap: 7px;
  margin-top: auto;
  padding-top: 4px;
  font-size: 13.5px;
  color: var(--ink-60);
}
.card li {
  position: relative;
  padding-left: 16px;
  line-height: 1.5;
}
.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--green);
  opacity: 0.55;
}

/* ---------- 9. Cómo trabajamos (oscuro) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 40px) clamp(24px, 4vw, 56px);
}
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
}
.step__n {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--green-hi);
  border-top: 1px solid rgba(245, 242, 234, 0.22);
  min-width: 46px;
  padding-top: 8px;
}
.step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}
.step p {
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(245, 242, 234, 0.72);
}

/* ---------- 10. Banda de cobertura y horario ---------- */
.band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
.band__in {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 48px;
  align-items: center;
  justify-content: space-between;
  padding-block: clamp(20px, 2.6vw, 28px);
}
.band__item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.band__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex: none;
}
.band__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-45);
}
.band__value {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ---------- 11. Contacto ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 24px);
  margin-top: clamp(28px, 3.5vw, 44px);
}
.contact__card {
  display: block;
  border: 1px solid rgba(245, 242, 234, 0.22);
  border-radius: var(--r);
  padding: clamp(20px, 2.4vw, 30px);
  transition:
    background 0.25s var(--ease),
    border-color 0.25s var(--ease);
}
.contact__card:hover {
  background: rgba(245, 242, 234, 0.06);
  border-color: rgba(245, 242, 234, 0.45);
}
.contact__label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-hi);
  margin-bottom: 10px;
}
.contact__value {
  display: block;
  font-size: clamp(1.15rem, 2.1vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  word-break: break-word;
}
.contact__meta {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: rgba(245, 242, 234, 0.6);
}
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(26px, 3vw, 36px);
}

/* ---------- 12. Pie ---------- */
.foot {
  padding-block: clamp(28px, 3.5vw, 40px);
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-60);
}
.foot__in {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
  align-items: center;
  justify-content: space-between;
}
.foot a {
  border-bottom: 1px solid var(--line-2);
  transition: 0.2s;
}
.foot a:hover {
  color: var(--ink);
  border-color: var(--ink);
}
.foot__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.foot__mark {
  width: 18px;
  height: 18px;
  color: var(--green);
}

/* ---------- 13. Responsive ---------- */
@media (max-width: 980px) {
  .hero__in {
    grid-template-columns: 1fr;
    gap: clamp(28px, 5vw, 40px);
  }
  .sheet {
    order: 2;
    max-width: 520px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .contact__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .head__in {
    gap: 8px 16px;
  }
  .nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    gap: 16px;
    padding-bottom: 4px;
  }
  .nav a {
    font-size: 13px;
  }
  .head__cta {
    margin-left: auto;
  }
  .head__tel {
    display: none;
  }
  .stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .stat {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    gap: 4px 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
  }
  .stat:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }
  .stat dt {
    margin-bottom: 0;
  }
  .stat p {
    grid-column: 1 / -1;
    margin-top: 2px;
  }
  .band__in {
    gap: 14px;
  }
  .foot__in {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .kicker__dot {
    animation: none;
  }
  .logo:hover .logo__mark {
    transform: none;
  }
}
