/* ==========================================================================
   DRONEROTECH — site chrome
   Design system inherited from prototype/tokens.css + rail.css, measured off
   the live site (see _research/BASELINE.md). This is a deliberate single
   visual world: near-monochrome, dark header/hero fixed regardless of the
   viewer's OS theme, exactly matching the real site, which does not adapt to
   light/dark either. Colours are painted explicitly so the page holds on any
   host ground.
   ========================================================================== */

:root {
  --c-ink:          #0E0E0E;
  --c-ink-2:        #161616;
  --c-surface:      #FFFFFF;
  --c-surface-alt:  #F8F8F8;
  --c-surface-rail: #F1F6F6;
  --c-text:         #333333;
  --c-text-muted:   #555555;
  --c-text-faint:   #666666;
  --c-text-invert:  #FFFFFF;
  --c-text-invert-2: rgba(255,255,255,.72);
  --c-line:         rgba(0,0,0,.12);
  --c-line-invert:  rgba(255,255,255,.28);
  --c-accent:       #C9A24B; /* used only for the tiny AGROTECH-style category badges, sparingly */

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --fs-h1: clamp(2.25rem, 1.4rem + 4.2vw, 4rem);
  --fs-h2: clamp(1.625rem, 1.2rem + 2.1vw, 2.75rem);
  --fs-h3: clamp(1.3rem, 1.05rem + 1vw, 1.875rem);
  --fs-h6: .875rem;
  --fs-body: .95rem;
  --fs-eyebrow: .8125rem;

  --sp-xs: clamp(1.875rem, 1.4rem + 1.6vw, 3.75rem);
  --sp-sm: clamp(2.5rem, 1.9rem + 2.1vw, 5rem);
  --sp-md: clamp(3.125rem, 2.3rem + 2.6vw, 6.25rem);
  --sp-lg: clamp(3.125rem, 1.7rem + 5.7vw, 10rem);

  --gutter: 20px;
  --container: 1140px;
  --header-h: 76px;

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

@media (min-width: 768px)  { :root { --gutter: 48px; } }
@media (min-width: 992px)  { :root { --gutter: 72px; } }
@media (min-width: 1440px) { :root { --gutter: 110px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--c-ink);
  color: var(--c-text);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-h);
}

h1,h2,h3,h4,h5,h6 { margin: 0; font-weight: 400; text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: 100; line-height: 1.2; letter-spacing: -.015em; }
h2 { font-size: var(--fs-h2); font-weight: 400; line-height: 1.08; }
h3 { font-size: var(--fs-h3); font-weight: 300; line-height: 1.4; }
h6 { font-size: var(--fs-h6); font-weight: 600; line-height: 1; }
p { margin: 0 0 1.1em; max-width: 62ch; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--c-text-invert); outline-offset: 3px; }
.section--alt :focus-visible, .section :focus-visible { outline-color: var(--c-ink); }

.eyebrow {
  font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; line-height: 1; color: var(--c-text-muted); display: block;
}
.section--dark .eyebrow, .section--ink .eyebrow { color: rgba(255,255,255,.55); }

.badge {
  display: inline-block; font-family: var(--font); font-size: 10.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--c-text-invert);
  background: var(--c-ink); padding: 4px 9px; border-radius: 2px;
}

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--sp-lg); background: var(--c-surface); }
.section--alt { background: var(--c-surface-alt); }
.section--rail-bg { background: var(--c-surface-rail); }
.section--dark, .section--ink { background: var(--c-ink); color: var(--c-text-invert); }
.section--tight { padding-block: var(--sp-sm); }
.section--top { padding-top: 0; }

/* ---- header -------------------------------------------------------------- */

.hdr {
  position: fixed; top: 0; left: 0; right: 0; height: var(--header-h); z-index: 500;
  background: var(--c-ink); display: flex; align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.hdr__inner { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.hdr__logo { display: flex; align-items: center; gap: 10px; }
.hdr__logo img { height: 22px; width: auto; }
.hdr__vertical {
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.6); padding-left: 12px; margin-left: 4px;
  border-left: 1px solid rgba(255,255,255,.25); display: none;
}
@media (min-width: 560px) { .hdr__vertical { display: inline; } }
.hdr__vertical a { color: rgba(255,255,255,.85); }

.burger {
  appearance: none; background: none; border: 0; cursor: pointer; padding: 10px;
  display: flex; flex-direction: column; gap: 5px; margin: -10px; width: 44px; height: 44px;
  align-items: flex-end; justify-content: center;
}
.burger span { display: block; width: 26px; height: 1.5px; background: var(--c-text-invert); transition: transform .35s var(--ease), opacity .35s var(--ease); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---- overlay menu ---------------------------------------------------------- */

.menu {
  position: fixed; inset: 0; z-index: 490; background: var(--c-ink); color: var(--c-text-invert);
  display: grid; grid-template-columns: 1fr; padding: calc(var(--header-h) + var(--sp-sm)) var(--gutter) var(--sp-sm);
  overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility 0s linear .4s;
}
.menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.menu__grid { display: grid; gap: var(--sp-sm); grid-template-columns: 1fr; max-width: var(--container); margin-inline: auto; width: 100%; }
@media (min-width: 860px) { .menu__grid { grid-template-columns: repeat(3, 1fr); } }
.menu__col h3 { font-size: 1.5rem; font-weight: 400; margin-bottom: 6px; }
.menu__col .eyebrow { margin-bottom: 14px; }
.menu__list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 11px; }
.menu__list a {
  font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: rgba(255,255,255,.7);
  transition: color .25s var(--ease);
}
.menu__list a:hover, .menu__list a:focus-visible { color: #fff; }
.menu__foot {
  max-width: var(--container); margin: var(--sp-md) auto 0; width: 100%;
  border-top: 1px solid rgba(255,255,255,.15); padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 14px 28px; font-size: 13px;
  text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.6);
}
.menu__foot a { color: rgba(255,255,255,.85); }
body.menu-open { overflow: hidden; }

/* ---- hero ------------------------------------------------------------------ */

.hero {
  position: relative; min-height: calc(100svh - var(--header-h)); display: flex; align-items: flex-end;
  background: var(--c-ink); color: var(--c-text-invert); overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,14,14,.35) 0%, rgba(14,14,14,.55) 55%, rgba(14,14,14,.86) 100%); }
.hero__media--triptych { display: flex; }
.hero__media--triptych .hero__media-panel { position: relative; flex: 1; overflow: hidden; }
.hero__media--triptych img, .hero__media--triptych video { width: 100%; height: 100%; object-fit: cover; }
.hero__media--placeholder { background: linear-gradient(145deg, #1c1f1e, #0e0e0e); }
.hero__media--placeholder::before {
  content: attr(data-label); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 2rem; font-family: var(--font); font-size: 12px; letter-spacing: .09em;
  text-transform: uppercase; color: rgba(255,255,255,.28); line-height: 1.8; max-width: 40ch; margin-inline: auto;
}
.hero__content { position: relative; z-index: 1; width: 100%; padding-block: var(--sp-lg) var(--sp-md); }
.hero .eyebrow { color: rgba(255,255,255,.65); margin-bottom: 14px; }
.hero h1 { max-width: 16ch; }
.hero__lede { margin-top: 20px; max-width: 46ch; font-size: 1.05rem; color: rgba(255,255,255,.82); }
.hero__chips { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; }
.hero__chips span { font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.hero__chips span::before { content: "· "; opacity: .5; }
.hero__chips span:first-child::before { content: ""; }
.hero__cta { margin-top: var(--sp-xs); }

.hero--compact { min-height: auto; padding-top: var(--sp-md); }
.hero--compact .hero__content { padding-block: var(--sp-md) var(--sp-sm); }

/* ---- circular CTA (home hero signature) ------------------------------------ */

.cta-round {
  --size: 130px; display: grid; place-items: center; width: var(--size); height: var(--size);
  border: 1px solid var(--c-line-invert); border-radius: 50%; text-align: center;
  font-size: 11.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  color: var(--c-text-invert); line-height: 1.7; transition: background-color .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease);
}
.cta-round:hover { background: var(--c-text-invert); color: var(--c-ink); border-color: var(--c-text-invert); }

/* ---- rectangular button ----------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 28px;
  border: 1px solid var(--c-ink); border-radius: 2px; font-size: 12.5px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--c-ink); background: transparent;
  cursor: pointer; transition: background-color .3s var(--ease), color .3s var(--ease);
}
.btn:hover { background: var(--c-ink); color: var(--c-text-invert); }
.btn--invert { border-color: var(--c-text-invert); color: var(--c-text-invert); }
.btn--invert:hover { background: var(--c-text-invert); color: var(--c-ink); }
.btn--solid { background: var(--c-ink); color: var(--c-text-invert); }
.btn--solid:hover { background: transparent; color: var(--c-ink); }

/* ---- eyebrow-led section head ----------------------------------------------- */

.head { max-width: 62ch; margin-bottom: var(--sp-sm); }
.head .eyebrow { margin-bottom: 14px; }
.head--wide { max-width: 74ch; }
.head--center { margin-inline: auto; text-align: center; }

/* ---- numbered blocks (beneficios / por qué elegirnos) ----------------------- */

.numbered { display: grid; gap: var(--sp-xs) var(--sp-sm); }
@media (min-width: 760px) { .numbered { grid-template-columns: repeat(2, 1fr); } }
.numbered__item { }
.numbered__n { font-size: var(--fs-h6); font-weight: 600; color: var(--c-text-faint); display: block; margin-bottom: .8em; }
.section--dark .numbered__n, .section--ink .numbered__n { color: rgba(255,255,255,.4); }
.numbered__lead { font-weight: 700; color: var(--c-text); }
.section--dark .numbered__lead, .section--ink .numbered__lead { color: var(--c-text-invert); }
.numbered__body { color: var(--c-text-muted); margin: 0; }
.section--dark .numbered__body, .section--ink .numbered__body { color: rgba(255,255,255,.72); }

/* ---- access blocks (home, static, no rail) ---------------------------------- */

.access { display: grid; gap: 2px; background: var(--c-line); border: 1px solid var(--c-line); }
@media (min-width: 860px) { .access { grid-template-columns: repeat(3, 1fr); } }
.access__card {
  position: relative; background: var(--c-surface); min-height: 420px; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 34px 30px; overflow: hidden; isolation: isolate;
}
.access__media { position: absolute; inset: 0; z-index: -1; }
.access__media img { width: 100%; height: 100%; object-fit: cover; }
.access__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,14,14,.05) 0%, rgba(14,14,14,.82) 100%); }
.access__media--placeholder { background: linear-gradient(150deg, #eef2f0, #dfe6e2); }
.access__media--placeholder::before {
  content: attr(data-label); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 1.4rem; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(14,14,14,.32); line-height: 1.7;
}
.access__card .eyebrow { color: rgba(255,255,255,.7); margin-bottom: 10px; }
.access__card h3 { color: #fff; font-weight: 400; font-size: 1.7rem; margin-bottom: 8px; }
.access__card p { color: rgba(255,255,255,.82); font-size: 14px; margin: 0; max-width: 32ch; }
.access__card::after {
  content: "→"; position: absolute; top: 30px; right: 30px; color: #fff; font-size: 20px;
  opacity: 0; transform: translateX(-6px); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.access__card:hover::after { opacity: .9; transform: translateX(0); }
.access__card { transition: box-shadow .3s var(--ease); }

/* ---- como operamos ----------------------------------------------------------- */

.steps { display: grid; gap: var(--sp-xs); grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps__item { border-top: 1px solid var(--c-line); padding-top: 18px; }
.section--dark .steps__item, .section--ink .steps__item { border-top-color: rgba(255,255,255,.2); }
.steps__n { font-family: var(--font); font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--c-text-faint); }
.section--dark .steps__n, .section--ink .steps__n { color: rgba(255,255,255,.45); }
.steps__t { margin-top: 10px; font-size: 1.05rem; font-weight: 400; }
.steps__body { margin-top: 8px; font-size: .92rem; line-height: 1.5; color: var(--c-text-muted); }
.section--dark .steps__body, .section--ink .steps__body { color: rgba(255,255,255,.65); }

/* ---- FAQ accordion ------------------------------------------------------------ */

.faq { border-top: 1px solid var(--c-line); max-width: 78ch; }
.faq__item { border-bottom: 1px solid var(--c-line); }
.faq__q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0; font: inherit; font-size: 1rem; font-weight: 600; color: var(--c-text);
}
.faq__q .n { font-family: var(--font); font-size: 11px; color: var(--c-text-faint); font-weight: 600; margin-right: 14px; }
.faq__icon { flex: none; width: 18px; height: 18px; position: relative; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; background: var(--c-ink); transition: transform .3s var(--ease); }
.faq__icon::before { top: 8px; left: 0; width: 18px; height: 1.5px; }
.faq__icon::after { left: 8px; top: 0; width: 1.5px; height: 18px; }
.faq__item[open] .faq__icon::after { transform: rotate(90deg); opacity: 0; }
.faq__a { margin: 0 0 22px; color: var(--c-text-muted); max-width: 68ch; font-size: 14.5px; }
.faq__item summary { list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }

/* ---- panel / service list (2-4 items, no rail) --------------------------------- */

.panels { display: grid; gap: 2px; background: var(--c-line); border: 1px solid var(--c-line); margin-top: var(--sp-xs); }
@media (min-width: 700px) { .panels--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .panels--3 { grid-template-columns: repeat(3, 1fr); } .panels--4 { grid-template-columns: repeat(4,1fr); } }
.panel { background: var(--c-surface-rail); padding: 30px 26px; display: flex; flex-direction: column; }
.panel__media { aspect-ratio: 4/3; margin-bottom: 20px; overflow: hidden; }
.panel__media img { width: 100%; height: 100%; object-fit: cover; }
.panel__media--placeholder { background: linear-gradient(150deg, #e6ece9, #d6ded9); position: relative; }
.panel__media--placeholder::before {
  content: attr(data-label); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 1rem; font-size: 10px; letter-spacing: .07em; text-transform: uppercase;
  color: rgba(14,14,14,.34); line-height: 1.6;
}
.panel .eyebrow { margin-bottom: 10px; }
.panel h3 { font-size: 1.3rem; font-weight: 400; margin-bottom: 10px; }
.panel p { font-size: 14px; color: var(--c-text-muted); margin: 0; }
.panel--link { transition: background-color .3s var(--ease); }
.panel--link:hover { background: #e9f0ee; }
.panel--link::after { content: "Ver servicio →"; margin-top: auto; padding-top: 16px; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--c-ink); }

/* ---- otras-infraestructuras strip ----------------------------------------------- */

.infra-strip { display: grid; gap: 2px; background: var(--c-line); border: 1px solid var(--c-line); margin-top: var(--sp-xs); }
@media (min-width: 700px) { .infra-strip { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .infra-strip { grid-template-columns: repeat(4, 1fr); } }
.infra-strip__item { background: var(--c-surface); padding: 24px 22px; }
.infra-strip__item h4 { font-size: 15px; font-weight: 600; margin-bottom: 8px; letter-spacing: -.005em; }
.infra-strip__item p { font-size: 13px; color: var(--c-text-muted); margin: 0; }

/* ---- stat/quote placeholder testimonial ----------------------------------------- */

.testimonial { max-width: 62ch; padding: var(--sp-xs) 0; border-top: 1px solid var(--c-line); }
.testimonial p { font-size: 1.1rem; font-weight: 300; line-height: 1.6; color: var(--c-text); margin-bottom: 18px; }
.testimonial cite { font-style: normal; font-size: 13px; color: var(--c-text-faint); display: block; }
.testimonial .tag {
  display: inline-block; margin-top: 12px; font-family: var(--font); font-size: 10px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--c-text-faint); border: 1px solid var(--c-line); padding: 3px 8px; border-radius: 2px;
}

/* ---- statement block ------------------------------------------------------------- */

.statement { max-width: 76ch; }
.statement h3 { margin-bottom: 16px; }
.statement p { color: var(--c-text-muted); }
.section--dark .statement p, .section--ink .statement p { color: rgba(255,255,255,.78); }

/* ---- closing CTA ------------------------------------------------------------------ */

.close-cta { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--sp-xs); }
.close-cta__text { max-width: 46ch; }
.close-cta__text p { color: rgba(255,255,255,.75); margin-top: 14px; }

/* ---- contact form ----------------------------------------------------------------- */

.form { display: grid; gap: 20px; max-width: 640px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--c-text-faint); }
.field input, .field textarea {
  font: inherit; font-size: 15px; padding: 13px 2px; border: none; border-bottom: 1px solid var(--c-line);
  background: transparent; color: var(--c-text); border-radius: 0;
}
.section--dark .field input, .section--dark .field textarea,
.section--ink .field input, .section--ink .field textarea { color: var(--c-text-invert); border-bottom-color: rgba(255,255,255,.28); }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--c-ink); }
.section--dark .field input:focus, .section--dark .field textarea:focus,
.section--ink .field input:focus, .section--ink .field textarea:focus { border-bottom-color: #fff; }
.field textarea { resize: vertical; min-height: 100px; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px; color: var(--c-text-muted); }
.section--dark .consent, .section--ink .consent { color: rgba(255,255,255,.68); }
.consent input { margin-top: 3px; }
.form__status { font-size: 13px; color: var(--c-text-faint); }
.form__status.is-sent { color: #2f7a4d; font-weight: 600; }
.form__status.is-error { color: #b3261e; font-weight: 600; }

/* ---- sector select on the contact form -------------------------------------------- */
.field select {
  font: inherit; font-size: 15px; padding: 13px 2px; border: none; border-bottom: 1px solid var(--c-line);
  background: transparent; color: var(--c-text); border-radius: 0; appearance: none;
}

/* ---- footer (present on EVERY page now, previously missing on services) ------------ */

.ftr { background: var(--c-ink); color: var(--c-text-invert); padding-block: var(--sp-md) var(--sp-sm); }
.ftr__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-sm); padding-bottom: var(--sp-xs); border-bottom: 1px solid rgba(255,255,255,.14); }
.ftr__brand { max-width: 40ch; }
.ftr__brand > img { height: 24px; margin-bottom: 18px; }
.ftr__brand p { color: rgba(255,255,255,.65); font-size: 14px; }
.ftr__cols { display: flex; flex-wrap: wrap; gap: var(--sp-md); }
.ftr__col h6 { color: rgba(255,255,255,.42); letter-spacing: .1em; margin-bottom: 16px; }
.ftr__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ftr__col a { color: rgba(255,255,255,.78); font-size: 14px; }
.ftr__col a:hover { color: #fff; }
.ftr__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: var(--sp-xs); }
.ftr__certs { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 26px; }
.ftr__certs img { height: auto; max-width: 100%; }
.ftr__legal { font-size: 12px; color: rgba(255,255,255,.45); display: flex; flex-wrap: wrap; gap: 6px 14px; }
.ftr__legal a { color: rgba(255,255,255,.6); }
.ftr__social { display: flex; gap: 16px; }
.ftr__social a { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.ftr__social { display: none; } /* temporarily hidden until the social profiles are updated; delete this line to show them again */

/* ---- rail: the site's signature gesture, reused wherever a section has     */
/* real breadth (4+ items) to justify it, not just the Agrotech hub ---------- */

.rail { position: relative; background: var(--c-surface); }
.rail__viewport { overflow: hidden; }
.rail__track { display: flex; flex-direction: column; }
.rail__panel { flex: 0 0 auto; position: relative; width: 100%; padding-top: 2em; padding-inline: var(--gutter); }
.rail__head { padding-block: var(--sp-sm) var(--sp-xs); }
.rail__cue { display: none; align-items: center; gap: 12px; margin-top: var(--sp-sm); }
.rail__cue span { font-size: var(--fs-eyebrow); letter-spacing: .12em; text-transform: uppercase; color: var(--c-text-faint); }
.rail__cue i { display: block; width: 60px; height: 1px; background: var(--c-line); position: relative; overflow: hidden; }
.rail__cue i::after { content: ""; position: absolute; inset: 0; background: var(--c-text); transform: translateX(-100%); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateX(-100%); } 60% { transform: translateX(0); } 100% { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .rail__cue i::after { animation: none; transform: translateX(0); } }

@media (min-width: 992px) and (pointer: fine) {
  .rail { height: calc(100vh + var(--rail-travel, 0px)); }
  .rail__viewport { position: sticky; top: 0; height: 100vh; }
  .rail__track { flex-direction: row; height: 100vh; will-change: transform; transform: translate3d(calc(var(--rail-progress, 0) * var(--rail-travel, 0px) * -1), 0, 0); }
  .rail__panel { width: 600px; height: 100vh; padding: 0; }
  .rail__head { width: 720px; display: flex; flex-direction: column; justify-content: center; padding-inline: var(--gutter); }
  .rail__cue { display: flex; }
}

.card { height: 100%; background: var(--c-surface-rail); display: flex; flex-direction: column; padding: var(--sp-md) var(--gutter) var(--sp-sm); }
@media (min-width: 992px) and (pointer: fine) { .card { padding: 85px 120px var(--sp-sm); } }
.card__media { flex: 1 1 auto; overflow: hidden; margin-bottom: auto; aspect-ratio: 3/4; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__eyebrow { margin-top: var(--sp-xs); }
.card__title { margin-top: .5rem; position: relative; display: inline-block; color: var(--c-text); }
.card__title::after { content: ""; position: absolute; left: 0; bottom: -.1em; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.card:hover .card__title::after { transform: scaleX(1); transform-origin: left; }
/* content cards (modular rails: 3-4 explanatory panels, not links) carry a
   body paragraph under the title, matching the live site's own service-page
   rails, and don't need the link underline or hover-zoom */
.card__body { margin-top: 12px; font-size: 14px; color: var(--c-text-muted); }
.card--content .card__media img { transition: none; }
.card--content:hover .card__media img { transform: none; }
.card--content .card__title::after { display: none; }

/* ---- doc-mock: an honest illustration standing in for a report or app     */
/* screenshot that does not exist yet. Reads as a diagram, not a screenshot. */

.doc-mock {
  height: 100%; background: var(--c-surface-rail); border: 1px solid var(--c-line);
  display: flex; align-items: center; justify-content: center; padding: 14%;
}
.doc-mock__sheet {
  width: 100%; max-width: 220px; aspect-ratio: 3/4; background: var(--c-surface);
  border: 1px solid var(--c-line); box-shadow: 6px 6px 0 var(--c-surface-alt), 12px 12px 0 var(--c-line);
  padding: 16% 12%; display: flex; flex-direction: column; gap: 10px;
}
.doc-mock__tag {
  align-self: flex-start; font-family: var(--font); font-size: 9px; font-weight: 700;
  letter-spacing: .06em; color: var(--c-text-invert); background: var(--c-ink);
  padding: 3px 7px; border-radius: 2px; margin-bottom: 6px;
}
.doc-mock__line { height: 6px; background: var(--c-line); border-radius: 1px; }
.doc-mock__line--60 { width: 60%; } .doc-mock__line--80 { width: 80%; }
.doc-mock__line--40 { width: 40%; } .doc-mock__line--100 { width: 100%; }
.doc-mock__bars { display: flex; align-items: flex-end; gap: 5px; height: 34px; margin-top: auto; }
.doc-mock__bars span { flex: 1; background: var(--c-line); }
.doc-mock__caption {
  position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font-size: 10px;
  letter-spacing: .05em; text-transform: uppercase; color: var(--c-text-faint);
}
.doc-mock { position: relative; }

.rail__progress { display: none; position: absolute; bottom: var(--sp-xs); left: var(--gutter); right: var(--gutter); height: 1px; background: var(--c-line); }
@media (min-width: 992px) and (pointer: fine) { .rail__progress { display: block; } }
.rail__progress::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--rail-progress, 0) * 100%); background: var(--c-text); }

/* ---- breadcrumb (Construcción / Inspecciones only, per architecture) --------------- */

.crumb { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.55); display: flex; gap: 8px; margin-bottom: 20px; }
.crumb a { color: rgba(255,255,255,.8); }
.crumb span { opacity: .5; }

/* ---- blog: article header, readable body, index grid ---------------------------- */

.post-head { padding-block: var(--sp-md) var(--sp-sm); }
.post-head h1 { font-size: var(--fs-h2); font-weight: 300; line-height: 1.18; max-width: 30ch; margin-top: 14px; }
.post-meta { margin: 22px 0 0; font-size: 13px; letter-spacing: .03em; color: rgba(255,255,255,.62); max-width: none; }
.prose { max-width: 70ch; margin-inline: auto; font-size: 1.02rem; }
.prose p, .prose li { max-width: none; }
.prose h2 { font-size: var(--fs-h3); font-weight: 400; line-height: 1.3; color: var(--c-ink); margin: 2em 0 .6em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .45em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose strong { font-weight: 600; color: var(--c-ink); }
.post-cover { margin: 0 0 2.2em; }
.post-cover img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.post-back { margin-top: 2.6em; }
.post-back a { text-decoration: none; }

.blog-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-sm) 32px; }
@media (min-width: 700px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
.blog-card { display: flex; flex-direction: column; gap: 10px; }
.blog-card__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--c-surface-alt); }
.blog-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.blog-card:hover .blog-card__media img { transform: scale(1.04); }
.blog-card time { margin-top: 6px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--c-text-faint); }
.blog-card h2 { font-size: 1.2rem; font-weight: 400; line-height: 1.35; color: var(--c-ink); }
.blog-card p { margin: 0; font-size: 14px; color: var(--c-text-muted); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
