/* Huasteca Labs · hoja compartida (portada y La Cuenta).
   Dirección: editorial y cálida. Petróleo como color de marca, naranja solo como acento puntual.
   Sin recortes, sin sombras y sin degradados. */

:root {
  --bg: #F6F0E4;           /* fondo cálido */
  --card: #FFFCF5;
  --tone: #ECE3D0;         /* superficie un paso más oscura */
  --ink: #14262B;          /* texto principal, petróleo muy oscuro */
  --muted: #4F5B5C;        /* texto secundario, contraste AA sobre --bg */
  --petrol: #0F4C5C;       /* marca */
  --petrol-dark: #0A3742;
  --cream: #F6F0E4;        /* texto sobre petróleo */
  --orange: #FB8500;       /* acento puntual: cruceta del logo, subrayados, foco */

  --m: 20px;
  --gap: 104px;

  --font-display: "Stack Sans Headline", "Segoe UI", system-ui, sans-serif;
  --font-text: "Stack Sans Text", "Segoe UI", system-ui, sans-serif;
}

@media (min-width: 900px) {
  :root { --m: 48px; --gap: 168px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 900px) { body { font-size: 18px; } }

a { color: inherit; }
img, video { display: block; max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

.skip {
  position: absolute;
  left: var(--m);
  top: -100px;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  z-index: 10;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; padding-inline: var(--m); }
.inner { max-width: 1200px; margin: 0 auto; }

/* ---------- Cabecera ---------- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 22px;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: var(--m);
}

.top .logo { display: block; width: 170px; height: auto; }
@media (min-width: 900px) { .top .logo { width: 250px; } }

.top nav { display: flex; flex-wrap: nowrap; justify-content: flex-end; gap: 4px 16px; }
.top nav a {
  font-size: 14px;
  white-space: nowrap;
  font-weight: 500;
  text-decoration: none;
  padding-block: 4px;
  border-bottom: 2px solid transparent;
}
.top nav a:hover,
.top nav a[aria-current="page"] { border-bottom-color: var(--orange); }

/* ---------- Tipografía ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0;
}

h1 {
  font-size: clamp(3rem, 8.4vw, 7.25rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
}

h2 { font-size: clamp(2.2rem, 4.8vw, 4.25rem); }
h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); letter-spacing: -0.02em; line-height: 1.1; }

.lead {
  font-size: clamp(1.125rem, 1rem + 0.35vw, 1.4rem);
  line-height: 1.5;
  color: var(--muted);
  max-width: 34ch;
  margin: 0;
}

.small { font-size: 15px; color: var(--muted); margin: 0; }

p { margin: 0; }
p + p { margin-top: 1em; }

/* ---------- Botones, enlaces y estado ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 52px;
  padding: 15px 26px;
  background: var(--petrol);
  color: #fff;
  font: 600 17px/1 var(--font-text);
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 160ms ease, transform 160ms ease;
}
.btn:hover { background: var(--petrol-dark); }
.btn:active { transform: scale(0.97); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 15px 26px;
  background: var(--tone);
  color: var(--ink);
  font: 600 17px/1 var(--font-text);
  text-decoration: none;
  border-radius: 4px;
}

.link {
  display: inline-block;
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 3px solid var(--orange);
}
.link:hover { color: var(--petrol); }

.status-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--muted);
}
.status-line::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--petrol);
}

/* ---------- Portada: presentación ---------- */

.intro {
  padding-top: 40px;
  display: grid;
  gap: 40px;
}
.intro h1 { max-width: 15ch; }
.intro .lead { color: var(--ink); max-width: 46ch; }

/* ---------- Bandas y composiciones por sección ---------- */

.section { padding-top: var(--gap); }

.band {
  background: var(--petrol);
  color: var(--cream);
  margin-top: var(--gap);
  padding-block: 88px;
}
.band h2, .band h3 { color: var(--cream); }
.band .lead, .band p { color: #DCE6E4; }
.band .link { color: var(--cream); border-bottom-color: var(--orange); }

.feature-grid { display: grid; gap: 56px; }
.feature-copy { display: grid; gap: 28px; align-content: start; }
.feature-copy .lead { color: #DCE6E4; }
.feature-note { max-width: 56ch; color: #DCE6E4; }

.feature-shot { margin: 0; }
.feature-shot img {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 18px;
  background: var(--petrol-dark);
}
.feature-shot figcaption { margin-top: 14px; font-size: 14px; color: #B9CBCB; }

/* Productos: dos composiciones distintas, sin tarjetas idénticas */
.products { margin-top: var(--gap); }
.product-kevo, .product-kovex { display: grid; gap: 18px; }
.product-kevo { padding-block: 8px; }
.product-kovex { background: var(--tone); padding: 40px var(--m); }
.product-kevo h3, .product-kovex h3 { font-size: clamp(3.5rem, 11vw, 8rem); letter-spacing: -0.05em; line-height: 0.9; }
.product-status { font-weight: 600; font-size: 16px; color: var(--petrol); }
.product-kevo ul, .product-kovex ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.product-kevo li, .product-kovex li { display: flex; align-items: baseline; gap: 12px; }
.product-kevo li::before, .product-kovex li::before {
  content: "";
  width: 14px;
  height: 3px;
  background: var(--orange);
  transform: translateY(-4px);
  flex: none;
}

/* ---------- Pie ---------- */

.foot {
  margin-top: var(--gap);
  background: var(--petrol-dark);
  color: var(--cream);
  padding-block: 64px 40px;
}
.foot .logo { width: 230px; height: auto; margin-bottom: 36px; }
.foot p { color: #C9D8D6; }
.foot a { color: var(--cream); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }

.social { margin-top: 48px; display: grid; gap: 14px; }
.social[hidden] { display: none; }
.social ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 24px; }

/* ---------- Escritorio ---------- */

@media (min-width: 900px) {
  .feature-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; column-gap: 88px; }
  .intro { grid-template-columns: minmax(0, 1fr); gap: 56px; padding-top: 56px; }
  .intro .lead { margin-left: 42%; max-width: 42ch; }
  .product-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: 96px; align-items: start; }
  .product-kovex { margin-top: 120px; }
  .band .inner { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .btn:active { transition: none; transform: none; }
}

/* ---------- Bloques de la versión con proyectos y contacto ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.intro-copy { display: grid; gap: 22px; }
.intro-note { color: var(--muted); max-width: 46ch; }
.feature-tag { font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--petrol); margin: 0; }
.band .feature-tag { color: var(--cream); }
.projects { margin-top: var(--gap); }
.project-index { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 0; }
.project-index li { display: grid; gap: 4px; padding: 22px 0; border-top: 1px solid var(--tone); }
.project-index a { font-family: var(--font-display); font-size: clamp(1.6rem, 2.6vw, 2.4rem); font-weight: 600; letter-spacing: -0.02em; text-decoration: none; }
.project-index a:hover { color: var(--petrol); }
.project-index span { color: var(--muted); }
.product-grid { display: grid; gap: 64px; margin-top: 56px; }
.foot-place, .foot-copy { color: #C9D8D6; margin-top: 12px; }
.foot-copy { margin-top: 40px; }
.contact { margin-top: 40px; display: grid; gap: 14px; }
.contact[hidden] { display: none; }
.contact ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 24px; }
.contact a { color: var(--cream); }
