/* =============================================================
   VERDI ENERGIE SERVICES — styles.css
   Archetype: Brutalist Grid (adapted — verde institucional en vez
   de primarios rojo/azul/amarillo). Precisión geodésica como
   lenguaje visual: grid estricto, coordenadas, monospace, hairlines.
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #ffffff;
  --bg-2:      #f3f4f1;   /* light grey-green, section alternation */
  --bg-dark:   #0a0d0b;   /* near-black, warm-green tinted */
  --ink:       #0a0d0b;
  --ink-soft:  #2b2f2c;
  --ink-mute:  #63675f;
  --paper:     #ffffff;
  --accent:    #035638;   /* verde institucional (logo) */
  --accent-2:  #0a7a52;   /* verde hover / vivo */
  --accent-soft: #e3ece7; /* verde muy pálido, fondos de highlight */
  --cream:     #f4f4f2;   /* texto claro sobre fondo oscuro/verde */
  --line:      #0a0d0b;   /* hairlines a opacidad completa */
  --line-soft: rgba(10,13,11,0.14);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --display: "Archivo", var(--sans);
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --nav-h: 76px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4, h5 {
  font-family: var(--display);
  text-wrap: balance;
  line-height: 1.02;
  letter-spacing: -0.01em;
  font-weight: 800;
}
::selection { background: var(--accent); color: var(--cream); }

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

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .7rem 1.1rem; background: var(--ink); color: var(--cream);
  z-index: 9999; font-weight: 600; font-size: .9rem;
  transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container {
  width: 100%;
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 720px)  { .container { padding-inline: 2rem; } }
@media (min-width: 1280px) { .container { padding-inline: 2.5rem; } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.hairline-top    { border-top: 1px solid var(--line); }
.hairline-bottom { border-bottom: 1px solid var(--line); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--accent);
}

.section-num {
  font-family: var(--mono);
  font-size: .82rem;
  color: var(--ink-mute);
  letter-spacing: .04em;
}

.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.6rem;
  font-family: var(--mono);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: uppercase;
  border: 1.5px solid var(--ink);
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out), border-color .3s var(--ease-out);
}
.btn-primary {
  background: var(--ink); color: var(--cream);
}
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-ghost {
  background: transparent; color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-on-dark {
  border-color: var(--cream); color: var(--cream);
}
.btn-on-dark:hover { background: var(--cream); color: var(--ink); }
.btn svg { width: 15px; height: 15px; flex: none; }

/* =============================================================
   4. Grid system (12 columnas, hairlines)
   ============================================================= */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1px;
  background: var(--line-soft);
}
.grid-12 > * { background: var(--bg); }

.g-span-12 { grid-column: span 12; }
@media (min-width: 720px) {
  .g-span-md-6 { grid-column: span 6; }
  .g-span-md-4 { grid-column: span 4; }
  .g-span-md-8 { grid-column: span 8; }
}
@media (min-width: 960px) {
  .g-span-7 { grid-column: span 7; }
  .g-span-5 { grid-column: span 5; }
  .g-span-6 { grid-column: span 6; }
  .g-span-4 { grid-column: span 4; }
  .g-span-8 { grid-column: span 8; }
  .g-span-3 { grid-column: span 3; }
  .g-span-9 { grid-column: span 9; }
}

/* =============================================================
   5. Nav
   ============================================================= */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h);
}
.nav-logo { display: flex; align-items: center; height: 34px; }
.nav-logo img { height: 100%; width: auto; }

.nav-links {
  display: none;
  align-items: center;
  gap: 2.1rem;
  font-family: var(--mono);
  font-size: .82rem;
  letter-spacing: .02em;
  text-transform: uppercase;
}
@media (min-width: 960px) { .nav-links { display: flex; } }

.nav-link { position: relative; padding: .3rem 0; }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease-out);
}
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-link.is-active { color: var(--accent); }

.nav-cta { display: none; }
@media (min-width: 960px) { .nav-cta { display: inline-flex; } }

.nav-burger {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border: 1.5px solid var(--ink);
}
@media (min-width: 960px) { .nav-burger { display: none; } }
.nav-burger-lines {
  position: relative; width: 18px; height: 12px;
}
.nav-burger-lines span {
  position: absolute; left: 0; right: 0; height: 2px; background: var(--ink);
  transition: transform .35s var(--ease-out), opacity .35s var(--ease-out), top .35s var(--ease-out);
}
.nav-burger-lines span:nth-child(1) { top: 0; }
.nav-burger-lines span:nth-child(2) { top: 5px; }
.nav-burger-lines span:nth-child(3) { top: 10px; }
[aria-expanded="true"] .nav-burger-lines span:nth-child(1) { top: 5px; transform: rotate(45deg); }
[aria-expanded="true"] .nav-burger-lines span:nth-child(2) { opacity: 0; }
[aria-expanded="true"] .nav-burger-lines span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 90;
  background: var(--ink); color: var(--cream);
  display: flex; flex-direction: column; justify-content: center;
  padding: 2rem 1.25rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--ease-soft);
}
.nav-mobile[data-open="true"] { clip-path: inset(0 0 0 0); }
.nav-mobile ul { display: flex; flex-direction: column; gap: 0; }
.nav-mobile a {
  display: block; padding: 1rem 0;
  border-bottom: 1px solid rgba(244,244,242,0.16);
  font-family: var(--display);
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  font-weight: 800;
}
.nav-mobile-meta {
  margin-top: 2rem;
  font-family: var(--mono);
  font-size: .82rem;
  color: rgba(244,244,242,0.6);
}
@media (min-width: 960px) { .nav-mobile { display: none !important; } }

/* =============================================================
   6. Hero
   ============================================================= */
.hero {
  position: relative;
  padding-top: clamp(3rem, 8vw, 6rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: end;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 8fr 4fr; gap: 2rem; }
}
.hero-kicker {
  font-family: var(--mono);
  font-size: .82rem;
  letter-spacing: .05em;
  color: var(--accent);
  display: flex; align-items: center; gap: .6rem;
  margin-bottom: 1.4rem;
}
.hero-kicker::before { content: ""; width: 24px; height: 1px; background: var(--accent); }

.hero-title {
  font-size: clamp(2.5rem, 6.6vw, 5.6rem);
  letter-spacing: -0.025em;
  max-width: 15ch;
}
.hero-title em {
  font-style: normal;
  color: var(--accent);
}
.hero-side {
  font-family: var(--mono);
  font-size: .95rem;
  color: var(--ink-soft);
  line-height: 1.75;
  border-left: 2px solid var(--accent);
  padding-left: 1.1rem;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: .9rem;
  margin-top: 2.4rem;
}

.hero-coords {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  display: grid; grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}
@media (min-width: 720px) { .hero-coords { grid-template-columns: repeat(4, 1fr); } }
.hero-coord {
  padding: 1.2rem 1.4rem 1.2rem 0;
  border-right: 1px solid var(--line);
}
.hero-coord:last-child { border-right: 0; }
.hero-coord-num {
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 800;
  color: var(--ink);
}
.hero-coord-num .plus { color: var(--accent); }
.hero-coord-label {
  font-family: var(--mono);
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-mute);
  margin-top: .35rem;
}

/* =============================================================
   7. Section header pattern (numbered)
   ============================================================= */
.section {
  padding-block: clamp(3.2rem, 8vw, 6.5rem);
}
.section-bg-2 { background: var(--bg-2); }
.section-head {
  display: flex; flex-direction: column;
  gap: 1rem;
  margin-bottom: clamp(2.2rem, 5vw, 3.5rem);
}
@media (min-width: 960px) {
  .section-head { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 2rem; }
}
.section-title {
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  max-width: 20ch;
}
.section-lede {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 46ch;
  line-height: 1.7;
}

/* =============================================================
   8. Cards & rows
   ============================================================= */
.row-list { border-top: 1px solid var(--line); }
.row-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out), padding-inline .3s var(--ease-out);
}
a.row-item { cursor: pointer; }
a.row-item:hover {
  background: var(--ink); color: var(--cream);
  padding-inline: 1.2rem;
}
a.row-item:hover .row-item-arrow { transform: translateX(6px); opacity: 1; }
a.row-item:hover .row-item-num { color: var(--accent-2); }
.row-item-num {
  font-family: var(--mono);
  font-size: .9rem;
  color: var(--accent);
  min-width: 2.4ch;
}
.row-item-body h3 {
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  font-weight: 700;
  margin-bottom: .35rem;
}
.row-item-body p {
  font-size: .95rem;
  color: var(--ink-mute);
  max-width: 60ch;
}
a.row-item:hover .row-item-body p { color: rgba(244,244,242,0.72); }
.row-item-arrow {
  width: 22px; height: 22px;
  opacity: .5;
  transition: transform .35s var(--ease-out), opacity .35s var(--ease-out);
  flex: none;
}

.card-grid {
  display: grid; grid-template-columns: 1fr; gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
@media (min-width: 720px) { .card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px)  { .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 960px) { .card-grid.cols-5 { grid-template-columns: repeat(5, 1fr); } }

.card {
  background: var(--bg);
  padding: 2rem 1.6rem;
  display: flex; flex-direction: column; gap: 1rem;
  transition: background-color .35s var(--ease-out), color .35s var(--ease-out);
}
.card:hover { background: var(--ink); color: var(--cream); }
.card:hover .card-icon { color: var(--accent-2); }
.card:hover .card-num { color: var(--accent-2); }
.card-num {
  font-family: var(--mono); font-size: .8rem; color: var(--accent);
}
.card-icon { width: 34px; height: 34px; color: var(--accent); flex: none; }
.card h3 {
  font-family: var(--display); font-weight: 700;
  font-size: 1.2rem;
}
.card p { font-size: .92rem; color: var(--ink-mute); line-height: 1.65; }
.card:hover p { color: rgba(244,244,242,0.72); }
.card ul { display: flex; flex-direction: column; gap: .5rem; margin-top: .2rem; }
.card ul li {
  font-size: .87rem; color: var(--ink-soft);
  padding-left: 1.1rem; position: relative;
}
.card:hover ul li { color: rgba(244,244,242,0.85); }
.card ul li::before {
  content: "→"; position: absolute; left: 0; color: var(--accent);
}
.card:hover ul li::before { color: var(--accent-2); }

/* =============================================================
   9. Service detail block (servicios.html)
   ============================================================= */
.service-block {
  padding-block: clamp(2.6rem, 6vw, 4rem);
  border-bottom: 1px solid var(--line);
}
.service-block:first-of-type { border-top: 1px solid var(--line); }
.service-grid {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
}
@media (min-width: 960px) {
  .service-grid { grid-template-columns: 4fr 8fr; gap: 3rem; }
}
.service-heading { display: flex; flex-direction: column; gap: 1rem; }
.service-heading .card-icon { width: 40px; height: 40px; }
.service-heading h3 {
  font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800;
}
.service-lede { font-size: 1rem; color: var(--ink-soft); line-height: 1.7; }
.service-apps {
  display: grid; grid-template-columns: 1fr; gap: .9rem;
}
@media (min-width: 640px) { .service-apps { grid-template-columns: repeat(2, 1fr); } }
.service-app {
  display: flex; gap: .8rem;
  padding: 1rem 1.1rem;
  background: var(--bg-2);
  border-left: 2px solid var(--accent);
  font-size: .9rem; line-height: 1.55; color: var(--ink-soft);
}
.service-app b { color: var(--ink); display: block; margin-bottom: .15rem; font-family: var(--display); font-size: .95rem; }

/* =============================================================
   10. Product cards (productos.html)
   ============================================================= */
.product-card {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 2rem;
  display: flex; flex-direction: column; gap: 1.2rem;
  position: relative;
  flex: 1 1 340px;
  min-width: min(340px, 100%);
}
.product-visual {
  aspect-ratio: 16/10;
  background: var(--bg-2);
  display: grid; place-items: center;
  border: 1px solid var(--line-soft);
  position: relative;
  overflow: hidden;
}
.product-visual svg { width: 46%; height: 46%; color: var(--accent); }
.product-visual::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 24px 24px;
}
.product-tag {
  position: absolute; top: .9rem; left: .9rem;
  font-family: var(--mono); font-size: .68rem; text-transform: uppercase;
  letter-spacing: .05em; background: var(--ink); color: var(--cream);
  padding: .3rem .55rem;
}
.product-card h3 { font-family: var(--display); font-size: 1.35rem; font-weight: 800; }
.product-card .product-model { font-family: var(--mono); font-size: .8rem; color: var(--accent); margin-top: -.6rem; }
.product-card p { font-size: .92rem; color: var(--ink-mute); line-height: 1.6; }
.product-specs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; }
.product-spec {
  font-family: var(--mono); font-size: .72rem; text-transform: uppercase;
  border: 1px solid var(--line); padding: .3rem .55rem; color: var(--ink-soft);
}

/* =============================================================
   11. Pillars / values
   ============================================================= */
.pillar {
  padding: 2rem 1.6rem;
}
.pillar-num { font-family: var(--mono); font-size: 2rem; color: var(--accent-soft); font-weight: 700; line-height: 1; }
.pillar h3 { font-family: var(--display); font-size: 1.05rem; font-weight: 700; margin-top: .8rem; }
.pillar p { font-size: .88rem; color: var(--ink-mute); margin-top: .5rem; line-height: 1.6; }

/* =============================================================
   12. CTA banner
   ============================================================= */
.cta-banner {
  background: var(--ink);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.cta-banner-grid {
  padding-block: clamp(3rem, 7vw, 5.5rem);
  display: flex; flex-direction: column; gap: 2rem;
}
@media (min-width: 960px) {
  .cta-banner-grid { flex-direction: row; align-items: center; justify-content: space-between; }
}
.cta-banner h2 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  max-width: 16ch;
}
.cta-banner h2 em { font-style: normal; color: var(--accent-2); }
.cta-banner-actions { display: flex; flex-wrap: wrap; gap: .9rem; flex: none; }
.cta-banner-mesh {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(244,244,242,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244,244,242,0.05) 1px, transparent 1px);
  background-size: 42px 42px;
}
.cta-banner-grid { position: relative; z-index: 1; }

/* =============================================================
   13. Footer
   ============================================================= */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding-block: clamp(2.5rem, 5vw, 3.5rem) 1.5rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 2.4rem;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; } }
.footer-brand img { height: 30px; width: auto; margin-bottom: 1rem; }
.footer-brand p { font-size: .88rem; color: var(--ink-mute); max-width: 32ch; line-height: 1.6; }
.footer-heading {
  font-family: var(--mono); font-size: .74rem; text-transform: uppercase;
  letter-spacing: .06em; color: var(--ink-mute); margin-bottom: 1rem;
}
.footer-links { display: flex; flex-direction: column; gap: .65rem; }
.footer-links a { font-size: .92rem; position: relative; width: fit-content; }
.footer-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease-out);
}
.footer-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.footer-meta {
  margin-top: clamp(2.4rem, 5vw, 3.2rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  justify-content: space-between;
  font-family: var(--mono); font-size: .76rem; color: var(--ink-mute);
}

/* =============================================================
   14. Forms
   ============================================================= */
.field { display: flex; flex-direction: column; gap: .5rem; }
.field label {
  font-family: var(--mono); font-size: .74rem; text-transform: uppercase;
  letter-spacing: .05em; color: var(--ink-mute);
}
.field input, .field textarea, .field select {
  width: 100%;
  border: 1.5px solid var(--line);
  background: var(--bg);
  padding: .9rem 1rem;
  font-family: var(--sans); font-size: .98rem; color: var(--ink);
  transition: border-color .3s var(--ease-out);
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent); outline: none;
}
.field textarea { resize: vertical; min-height: 130px; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 1.3rem; }
@media (min-width: 640px) { .form-grid.two-col { grid-template-columns: 1fr 1fr; } }
.form-grid .field-full { grid-column: 1 / -1; }

.contact-form { position: relative; transition: opacity .5s var(--ease-out), transform .5s var(--ease-soft); }
.contact-form.is-sent { opacity: 0; transform: translateY(-10px); pointer-events: none; }
.contact-form-submit { position: relative; overflow: hidden; }
.contact-form-spinner {
  position: absolute; inset: 0; display: none; place-items: center;
}
.contact-form-submit.is-sending .contact-form-label { visibility: hidden; }
.contact-form-submit.is-sending .contact-form-spinner { display: grid; }
.contact-form-spinner::after {
  content: ""; width: 16px; height: 16px;
  border: 2px solid rgba(244,244,242,0.35); border-top-color: var(--cream);
  border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.form-success {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: .6rem;
  opacity: 0; pointer-events: none;
  transition: opacity .6s var(--ease-out);
}
.form-success.is-visible { opacity: 1; pointer-events: auto; }

.form-error {
  display: none;
  margin-top: 1rem;
  padding: .9rem 1.1rem;
  border-left: 2px solid #b3261e;
  background: #fdf1f0;
  font-size: .9rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.form-error a { text-decoration: underline; color: #b3261e; }
.form-error.is-visible { display: block; }
.form-success h3 { font-family: var(--display); font-size: 1.5rem; }
.form-success p { color: var(--ink-mute); font-size: .95rem; }

/* =============================================================
   15. Blog
   ============================================================= */
.post-card {
  background: var(--bg);
  padding: 2rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.post-tag {
  font-family: var(--mono); font-size: .72rem; text-transform: uppercase;
  color: var(--accent); letter-spacing: .05em;
}
.post-card h3 { font-family: var(--display); font-size: 1.3rem; font-weight: 700; line-height: 1.2; }
.post-card p { font-size: .92rem; color: var(--ink-mute); line-height: 1.6; }
.post-meta {
  margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line-soft);
  font-family: var(--mono); font-size: .74rem; color: var(--ink-mute);
  display: flex; justify-content: space-between;
}
.post-visual {
  aspect-ratio: 16/9; background: var(--bg-2); position: relative; overflow: hidden;
  display: grid; place-items: center;
  border: 1px solid var(--line-soft);
}
.post-visual svg { width: 30%; height: 30%; color: var(--accent); }
.post-visual::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* =============================================================
   16. Page hero (subpages)
   ============================================================= */
.page-hero {
  padding-block: clamp(3rem, 7vw, 5rem) clamp(2rem, 5vw, 3rem);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-size: clamp(2.2rem, 5.4vw, 4.2rem);
  max-width: 18ch;
  margin-top: 1rem;
}
.page-hero h1 em { font-style: normal; color: var(--accent); }
.page-hero p {
  margin-top: 1.3rem;
  font-size: 1.05rem; color: var(--ink-soft);
  max-width: 62ch; line-height: 1.7;
}

/* =============================================================
   17. Reveal + counters
   ============================================================= */
[data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   18. Cursor coordinates (signature effect — desktop only)
   ============================================================= */
.cursor-coord {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  font-family: var(--mono); font-size: 11px; color: var(--ink);
  background: var(--bg);
  padding: 3px 7px; border: 1px solid var(--ink);
  transform: translate(-9999px, -9999px);
  opacity: 0; transition: opacity .25s var(--ease-out);
  white-space: nowrap;
}
.cursor-coord.is-ready { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor-coord { display: none; } }

/* =============================================================
   19. Scroll progress
   ============================================================= */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200;
  background: transparent; pointer-events: none;
}
.scroll-progress span {
  display: block; height: 100%; background: var(--accent);
  transform-origin: 0 0; transform: scaleX(0);
}

/* =============================================================
   20. Responsive tuning
   ============================================================= */
@media (min-width: 540px) { }
@media (min-width: 720px) { }
@media (min-width: 960px) { }
@media (min-width: 1280px) { }

/* =============================================================
   22. Hero — full-bleed photo variant (Inicio)
   ============================================================= */
.hero.hero--photo {
  position: relative;
  padding: 0;
  min-height: 86svh;
  display: flex;
  align-items: flex-end;
  color: var(--cream);
  overflow: hidden;
}
.hero-photo-media { position: absolute; inset: 0; z-index: 0; }
.hero-photo-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 32%;
}
.hero-photo-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(3,15,10,.94) 0%, rgba(3,15,10,.55) 38%, rgba(3,15,10,.34) 58%, rgba(3,15,10,.9) 100%),
    linear-gradient(100deg, rgba(3,20,13,.82) 0%, rgba(3,20,13,.22) 52%, rgba(3,20,13,.6) 100%);
}
.hero-photo-inner {
  position: relative; z-index: 2; width: 100%;
  padding-block: clamp(2.5rem, 9vw, 5.5rem) clamp(2rem, 6vw, 3.5rem);
}
.hero--photo .hero-kicker { color: var(--cream); }
.hero--photo .hero-kicker::before { background: var(--cream); }
.hero--photo .hero-title { color: var(--cream); }
.hero--photo .hero-title em { color: #8fe3b8; }
.hero--photo .hero-side { color: rgba(244,244,242,.85); border-left-color: #8fe3b8; }
.hero--photo .btn-ghost { border-color: var(--cream); color: var(--cream); }
.hero--photo .btn-ghost:hover { background: var(--cream); color: var(--ink); }

/* =============================================================
   23. Product category hub (productos.html)
   ============================================================= */
.category-grid {
  display: grid; grid-template-columns: 1fr; gap: 1px;
  background: var(--line-soft); border: 1px solid var(--line-soft);
}
@media (min-width: 720px) { .category-grid { grid-template-columns: repeat(2, 1fr); } }
.category-card {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--ink); color: var(--cream);
  aspect-ratio: 4 / 3;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(1.6rem, 3vw, 2.4rem);
}
.category-card img {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%; object-fit: cover;
  opacity: .5;
  transition: opacity .4s var(--ease-out), transform .7s var(--ease-out);
}
.category-card:hover img { opacity: .34; transform: scale(1.06); }
.category-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10,13,11,.15) 0%, rgba(10,13,11,.85) 100%);
}
.cat-num { font-family: var(--mono); font-size: .8rem; color: #8fe3b8; }
.category-card h3 { font-family: var(--display); font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-weight: 800; margin-top: .5rem; }
.category-card p { font-size: .88rem; color: rgba(244,244,242,.78); margin-top: .5rem; max-width: 38ch; line-height: 1.55; }
.category-card .cat-arrow {
  margin-top: 1.1rem; width: 22px; height: 22px;
  transition: transform .35s var(--ease-out);
}
.category-card:hover .cat-arrow { transform: translateX(6px); }

/* =============================================================
   24. Category tabs + breadcrumb (product subpages)
   ============================================================= */
.subnav {
  display: flex; align-items: center; flex-wrap: wrap; gap: .5rem;
  font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .03em;
  color: var(--ink-mute); margin-bottom: 1.6rem;
}
.subnav a:hover { color: var(--accent); }
.subnav .current { color: var(--ink); font-weight: 600; }

.cat-tabs { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.cat-tabs a {
  font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .02em;
  padding: .65rem 1.1rem; border: 1.5px solid var(--line); color: var(--ink-soft);
  transition: background-color .25s var(--ease-out), color .25s var(--ease-out), border-color .25s var(--ease-out);
}
.cat-tabs a:hover { border-color: var(--accent); color: var(--accent); }
.cat-tabs a.is-active { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* =============================================================
   25. Product showcase card (real photo + specs, subpages)
   ============================================================= */
.showcase-card {
  display: grid; grid-template-columns: 1fr; gap: 0;
  border: 1px solid var(--line); background: var(--bg);
  margin-bottom: -1px;
}
@media (min-width: 860px) { .showcase-card { grid-template-columns: 5fr 7fr; } }
.showcase-card.reverse .showcase-media { order: 1; }
@media (min-width: 860px) {
  .showcase-card.reverse .showcase-media { order: 2; border-left: 1px solid var(--line); border-right: 0; }
  .showcase-card.reverse .showcase-body { order: 1; }
}
.showcase-media {
  background: var(--bg-2); display: flex; align-items: center; justify-content: center;
  padding: clamp(1.2rem, 3vw, 2rem); border-right: 1px solid var(--line);
  min-height: 300px; position: relative; overflow: hidden;
}
.showcase-media img { width: 100%; height: auto; max-height: 480px; object-fit: contain; }
.showcase-media .product-visual { width: 100%; height: 100%; min-height: 260px; border: 0; }
.showcase-body { padding: clamp(1.6rem, 3vw, 2.5rem); display: flex; flex-direction: column; gap: .9rem; justify-content: center; }
.showcase-tag { font-family: var(--mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); }
.showcase-body h3 { font-family: var(--display); font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; }
.showcase-model { font-family: var(--mono); font-size: .85rem; color: var(--ink-mute); margin-top: -.6rem; }
.showcase-body p { font-size: .95rem; color: var(--ink-soft); line-height: 1.72; max-width: 56ch; }
.showcase-specs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .3rem; }
.showcase-note { font-size: .82rem; color: var(--ink-mute); font-style: italic; margin-top: .2rem; }

/* =============================================================
   26. Promos gallery (productos-promociones.html)
   ============================================================= */
.promo-grid {
  display: grid; grid-template-columns: 1fr; gap: 1px;
  background: var(--line-soft); border: 1px solid var(--line-soft);
}
@media (min-width: 640px) { .promo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .promo-grid { grid-template-columns: repeat(3, 1fr); } }
.promo-card { background: var(--bg); display: flex; flex-direction: column; }
.promo-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.promo-cap { padding: 1.1rem 1.3rem; }
.promo-cap span { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); }
.promo-cap h4 { font-family: var(--display); font-size: 1.05rem; font-weight: 700; margin-top: .35rem; }

/* =============================================================
   27. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .cursor-coord { display: none; }
}
