/* ============================================================
   CONSTRUBOT — Landing industrial técnica · rediseño 2026-09-24
   Alineada con el estilo del software: paleta extraída del logo
   real (azul acero #4197b9 / #357792, tinta #0e1d27, gris
   plateado #c4c6ca), logo en nav/hero/footer, cuadro de rotulación
   de plano técnico, profundidad con bordes y sombras.
   SIN motion design de vanguardia (decisión del usuario).
   ============================================================ */
:root {
  --steel: #357792;        /* azul acero del logo (oscuro) */
  --steel-bright: #4197b9; /* azul acero del logo (claro) */
  --steel-dark: #0e1d27;   /* tinta del sidebar del sistema */
  --steel-deep: #0a2736;
  --ink: #16222c;
  --silver: #c4c6ca;
  --paper: #f1f4f7;
  --line: #d3dde4;
  --safety: #7ee0a3;
  --safety-dark: #2f9e5f;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --cond: "Barlow Condensed", sans-serif;
  --body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
}
.mono { font-family: var(--mono); }
a { color: inherit; }
img { max-width: 100%; }

/* ---------- cinta técnica superior ---------- */
.tech-tape {
  background: var(--steel-deep);
  color: #8fc4db;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
  overflow: hidden;
  border-bottom: 2px solid var(--steel-bright);
  padding: 0.35rem 0;
}

/* ---------- nav ---------- */
.nav-landing {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 4vw;
  background: rgba(241, 244, 247, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(4px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
/* Placa blanca con el logo real (mismo lenguaje del sidebar del sistema). */
.brand-plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(14, 29, 39, 0.22);
  padding: 0.28rem;
}
.brand-plate img { width: 54px; height: 54px; object-fit: contain; display: block; }
.brand-text {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1.12;
  letter-spacing: 0.07em;
  color: var(--steel-dark);
}
.brand-reg {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  color: var(--steel);
}
.nav-links { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--steel-dark);
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
.nav-links a:hover { border-bottom-color: var(--safety-dark); }

/* ---------- botones ---------- */
.btn-ingresar, .btn-cotizar {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--cond);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.62rem 1.25rem;
  border: 1.5px solid var(--steel);
  border-radius: 6px;
  font-size: 0.95rem;
  transition: background 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}
.btn-ingresar { color: var(--steel-dark); background: #fff; }
.btn-ingresar:hover { background: var(--steel); color: #fff; }
.btn-cotizar {
  background: linear-gradient(180deg, var(--steel-bright), var(--steel));
  border: 1px solid var(--steel);
  border-bottom: 2px solid var(--steel-deep);
  color: #fff;
  box-shadow: 0 1px 2px rgba(14, 29, 39, 0.22);
}
.btn-cotizar:hover { background: var(--steel); color: #fff; }
.btn-cotizar svg { stroke: var(--safety); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 7vh 4vw 9vh;
  background: linear-gradient(160deg, #e7edf2 0%, var(--paper) 55%, #dde7ee 100%);
}
/* Retícula blueprint estática (CSS puro, sin animación) */
.blueprint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(53, 119, 146, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53, 119, 146, 0.09) 1px, transparent 1px),
    linear-gradient(rgba(53, 119, 146, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53, 119, 146, 0.16) 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px;
}
.blueprint-light { opacity: 0.6; }
.hero-inner {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr);
  gap: 3rem;
  align-items: center;
}
.hero-tag {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--steel);
  margin: 0 0 1.2rem;
}
.hero h1 {
  font-family: var(--cond);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 700;
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0 0 1.4rem;
  color: var(--ink);
}
.hero h1 .accent { color: var(--steel-bright); }
.hero-sub {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #4e6270;
  max-width: 560px;
  margin: 0 0 2.2rem;
}
.hero-ctas { display: flex; gap: 1rem; justify-content: flex-start; flex-wrap: wrap; }
.hero-specs {
  list-style: none;
  display: flex;
  gap: 1.4rem;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin: 2.2rem 0 0;
  padding: 0;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--steel-dark);
}
.hero-specs li::before { content: "✓ "; color: var(--safety-dark); font-weight: 700; }

/* ---------- cuadro de rotulación (title block de plano) ---------- */
.titleblock {
  background: #fff;
  border: 1.5px solid var(--steel-dark);
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(14, 29, 39, 0.16), 0 14px 34px rgba(14, 29, 39, 0.14);
  padding: 1.1rem 1.2rem 0.9rem;
  position: relative;
}
.titleblock::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px dashed rgba(53, 119, 146, 0.45);
  border-radius: 2px;
  pointer-events: none;
}
/* Logo protagonista de la portada (pedido del usuario 2026-09-25: más
   grande y visible para los clientes; 168 px ≈ tamaño nativo 310 px). */
.titleblock-logo {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  padding: 0.6rem;
  width: max-content;
  margin: 0 auto 1.1rem;
  box-shadow: 0 0 0 5px #fff, 0 0 0 6px var(--line), 0 8px 22px rgba(14, 29, 39, 0.18);
}
.titleblock-logo img { width: 202px; height: 202px; object-fit: contain; display: block; border-radius: 50%; }
.titleblock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 1rem;
  margin: 0;
  position: relative;
}
.titleblock-grid dt {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  color: var(--steel);
}
.titleblock-grid dd {
  margin: 0.1rem 0 0;
  font-size: 0.84rem;
  line-height: 1.35;
  color: var(--ink);
  font-weight: 500;
}
.titleblock-grid a { text-decoration: none; color: var(--steel); }
.titleblock-grid a:hover { text-decoration: underline; }
.titleblock-stamp {
  display: block;
  text-align: center;
  margin-top: 0.95rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--line);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  color: #9cabb1;
}

/* ---------- secciones ---------- */
.section { padding: 5.5rem 4vw; }
.section-alt { background: #e7edf2; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-inner { max-width: 1080px; margin: 0 auto; }
.section-tag {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--steel);
  margin: 0 0 0.6rem;
}
.section-title {
  font-family: var(--cond);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.05;
  margin: 0 0 2.6rem;
  color: var(--ink);
}

/* ---------- servicios ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--steel);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(14, 29, 39, 0.06), 0 2px 8px rgba(14, 29, 39, 0.05);
  padding: 1.5rem 1.4rem 1.2rem;
  position: relative;
  isolation: isolate;
  transform: translateY(0) scale(1);
  transition: transform 0.38s cubic-bezier(.2,.8,.2,1), box-shadow 0.38s cubic-bezier(.2,.8,.2,1), border-top-color 0.25s ease;
}
/* Marcas de esquina tipo plano técnico: aparecen al pasar el cursor
   (mismo lenguaje visual que el marco punteado del cuadro de rotulación). */
.service-card::before,
.service-card::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid var(--steel-bright);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.38s cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
  z-index: 2;
}
.service-card::before {
  top: -6px; left: -6px;
  border-right: none; border-bottom: none;
  transform: translate(6px, 6px);
}
.service-card::after {
  bottom: -6px; right: -6px;
  border-left: none; border-top: none;
  transform: translate(-6px, -6px);
}
.service-card:hover,
.service-card:focus-within {
  transform: translateY(-9px) scale(1.035);
  box-shadow: 0 10px 20px rgba(14, 29, 39, 0.1), 0 22px 40px rgba(14, 29, 39, 0.16);
  border-top-color: var(--steel-bright);
  z-index: 3;
}
.service-card:hover::before,
.service-card:hover::after,
.service-card:focus-within::before,
.service-card:focus-within::after {
  opacity: 1;
  transform: translate(0, 0);
}
.service-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--brand-100, #e2eef4);
  color: var(--steel);
  transition: background 0.3s ease, color 0.3s ease, transform 0.38s cubic-bezier(.2,.8,.2,1);
}
.service-icon svg { width: 22px; height: 22px; }
.service-card:hover .service-icon,
.service-card:focus-within .service-icon {
  background: var(--steel-bright);
  color: #fff;
  transform: scale(1.08) rotate(-4deg);
}
.service-num {
  font-size: 0.7rem;
  color: var(--steel-bright);
  letter-spacing: 0.14em;
  padding-top: 0.35rem;
}
.service-card h3 {
  font-family: var(--cond);
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.6rem;
  color: var(--steel-dark);
}
.service-card p { font-size: 0.92rem; line-height: 1.6; color: #4e6270; margin: 0 0 1rem; }
.service-cota {
  display: block;
  color: var(--silver);
  letter-spacing: 0.1em;
  transition: color 0.3s ease, letter-spacing 0.35s ease;
}
.service-card:hover .service-cota,
.service-card:focus-within .service-cota { color: var(--steel-bright); letter-spacing: 0.22em; }
@media (prefers-reduced-motion: reduce) {
  .service-card,
  .service-icon,
  .service-cota,
  .service-card::before,
  .service-card::after { transition: none; }
  .service-card:hover,
  .service-card:focus-within { transform: none; }
  .service-card:hover .service-icon,
  .service-card:focus-within .service-icon { transform: none; }
}

/* ---------- método ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.3rem;
  position: relative;
  overflow: hidden;
}
.step::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: repeating-linear-gradient(var(--steel-bright) 0 8px, transparent 8px 14px);
}
.step-num { font-size: 0.68rem; letter-spacing: 0.16em; color: var(--steel); }
.step h3 {
  font-family: var(--cond);
  font-size: 1.25rem;
  text-transform: uppercase;
  margin: 0.4rem 0 0.5rem;
  color: var(--steel-dark);
}
.step p { font-size: 0.9rem; line-height: 1.6; color: #4e6270; margin: 0; }

/* ---------- banda de contacto ---------- */
.cta-band {
  position: relative;
  background: var(--steel-dark);
  color: #e2eef4;
  text-align: center;
  overflow: hidden;
}
.cta-band .section-tag { color: var(--safety); }
.cta-band .section-title { color: #fff; }
.cta-band .btn-ingresar { border-color: #8fc4db; color: #d4e2ec; background: transparent; }
.cta-band .btn-ingresar:hover { background: var(--steel); color: #fff; }
.cta-band .blueprint {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ---------- footer ---------- */
.footer-landing {
  background: var(--steel-dark);
  color: #b9ccd8;
  padding: 2.4rem 4vw 2rem;
  border-top: 3px solid var(--steel-bright);
}
.footer-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.6rem;
  font-size: 0.88rem;
  line-height: 1.7;
}
.footer-brand { display: flex; gap: 0.9rem; align-items: flex-start; }
.footer-logo {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.3rem;
  flex-shrink: 0;
}
.footer-logo img { width: 64px; height: 64px; object-fit: contain; display: block; }
.footer-grid a { text-decoration: none; color: #dce6f0; }
.footer-grid a:hover { color: var(--steel-bright); }
.footer-grid .brand-reg { font-family: var(--cond); font-size: 0.95rem; letter-spacing: 0.1em; color: #fff; }
.footer-label { font-size: 0.66rem; letter-spacing: 0.18em; color: #6b8496; }

/* ---------- nosotros ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2.4rem;
  align-items: start;
}
.about-lead { font-size: 1.02rem; line-height: 1.75; color: #3c4d59; margin: 0 0 2rem; }
.about-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.1rem;
}
.about-pillar {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--steel);
  border-radius: 8px;
  padding: 1.1rem 1.2rem;
}
.about-pillar-tag { font-size: 0.68rem; letter-spacing: 0.18em; color: var(--steel); display: block; margin-bottom: 0.5rem; }
.about-pillar p { font-size: 0.88rem; line-height: 1.6; color: #4e6270; margin: 0; }
.about-facts {
  background: var(--steel-dark);
  color: #d4e2ec;
  border-radius: 10px;
  padding: 1.8rem 1.6rem;
  display: grid;
  gap: 1.3rem;
  align-content: start;
}
.about-fact { display: flex; flex-direction: column; gap: 0.15rem; }
.about-fact-n { font-size: 2.1rem; font-weight: 700; color: var(--steel-bright); line-height: 1; }
.about-fact-l { font-size: 0.78rem; color: #9cb4c2; }
.about-fact-note { font-size: 0.7rem; line-height: 1.5; color: #7d95a3; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1rem; margin: 0.2rem 0 0; }

/* ---------- proyectos: galería en movimiento (2026-09-25) ----------
   Dos filas de fotos se desplazan solas en sentido contrario (ref.
   motionsites.ai "custom-spaces"); se detienen con el cursor, el foco
   o "reducir movimiento". Una foto abre la ficha del proyecto
   (project-lightbox) con toda su galería y su información. */
.gallery-section { padding-left: 0; padding-right: 0; }
.section-inner-wide { max-width: 1080px; margin: 0 auto; padding: 0 4vw; }
.gallery-hint { font-size: 0.88rem; color: #4e6270; margin: -1.6rem 0 0; }
.gallery-marquee {
  margin-top: 2rem;
  display: grid;
  gap: 0.9rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.gallery-row { display: flex; gap: 0.9rem; width: max-content; will-change: transform; }
.gallery-row-a { animation: gallery-scroll-left 55s linear infinite; }
.gallery-row-b { animation: gallery-scroll-right 62s linear infinite; }
@keyframes gallery-scroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes gallery-scroll-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.gallery-marquee:hover .gallery-row,
.gallery-marquee:focus-within .gallery-row { animation-play-state: paused; }
.gallery-tile {
  flex: 0 0 auto;
  width: 230px;
  height: 190px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(14, 29, 39, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.gallery-tile:nth-child(4n) { width: 300px; }
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-tile:hover, .gallery-tile:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(14, 29, 39, 0.18);
  border-color: var(--steel-bright);
  outline: none;
}
@media (prefers-reduced-motion: reduce) {
  .gallery-row { animation: none; overflow-x: auto; scroll-snap-type: x proximity; }
  .gallery-tile { scroll-snap-align: start; }
}

/* ---------- ficha del proyecto (dialog) ---------- */
.project-lightbox {
  border: none;
  border-radius: 10px;
  padding: 0;
  width: min(720px, calc(100vw - 2rem));
  max-height: calc(100vh - 3rem);
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(10, 39, 54, 0.35);
}
.project-lightbox::backdrop { background: rgba(14, 29, 39, 0.6); }
.lb-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem 1.4rem 0.6rem;
}
.lb-tag { display: block; font-size: 0.68rem; letter-spacing: 0.16em; color: var(--steel); margin-bottom: 0.3rem; }
.lb-head h3 { font-family: var(--cond); font-size: 1.4rem; text-transform: uppercase; margin: 0; color: var(--steel-dark); }
.lb-loc { font-size: 0.85rem; color: #4e6270; margin: 0.2rem 0 0; }
.lb-close {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 50%;
  width: 32px; height: 32px;
  line-height: 1;
  color: var(--steel-dark);
  cursor: pointer;
  flex-shrink: 0;
}
.lb-close:hover { background: var(--steel); color: #fff; border-color: var(--steel); }
.lb-summary { font-size: 0.9rem; line-height: 1.6; color: #3c4d59; margin: 0.3rem 1.4rem 1rem; }
.lb-summary:empty { display: none; }
.lb-viewer {
  position: relative;
  background: var(--steel-dark);
  aspect-ratio: 4 / 3;
  max-height: 46vh;
}
.lb-image { width: 100%; height: 100%; object-fit: contain; display: block; background: var(--steel-dark); }
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(14, 29, 39, 0.55);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.lb-nav:hover { background: var(--steel); }
.lb-prev { left: 0.7rem; }
.lb-next { right: 0.7rem; }
.lb-counter {
  position: absolute;
  right: 0.8rem;
  bottom: 0.6rem;
  background: rgba(14, 29, 39, 0.6);
  color: #fff;
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}
.lb-thumbs {
  display: flex;
  gap: 0.5rem;
  padding: 0.9rem 1.4rem 1.3rem;
  overflow-x: auto;
}
.lb-thumbs button {
  flex: 0 0 auto;
  width: 58px; height: 44px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.7;
}
.lb-thumbs button.is-active { border-color: var(--steel-bright); opacity: 1; }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.2rem; }
  .titleblock { max-width: 420px; margin: 0 auto; }
  .hero-ctas { justify-content: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-copy { text-align: center; }
  .hero-specs { justify-content: center; }
}
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .gallery-tile { width: 170px; height: 140px; }
  .gallery-tile:nth-child(4n) { width: 220px; }
  .lb-viewer { max-height: 40vh; }
}