/* ============================================================
   Nexo Tech Lab — taller nocturno
   Fondo profundo, hueso y naranja. Sin bloques.
   ============================================================ */

:root {
  --bg: #0B120F;
  --bg-2: #111A15;
  --text: #F2EDE2;
  --muted: #A6B0A6;
  --line: #2A3A31;
  --line-soft: #223129;
  --green: #1E3A2F;
  --green-2: #2F5A45;
  --orange: #E08A4A;
  --amber: #F2A65A;
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "Courier New", monospace;
  --wrap: 1180px;
  --content: 1080px;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}

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

img,
svg { display: block; max-width: 100%; }

a { color: inherit; }

button,
input,
select,
textarea { font: inherit; }

::selection {
  background: var(--amber);
  color: var(--bg);
}

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

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--amber);
  color: var(--bg);
  padding: 0.75rem 1rem;
  font-size: 14px;
  font-weight: 600;
}
.skip:focus { left: 1rem; top: 1rem; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ============================================================ header */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}

.brand-word {
  display: flex;
  flex-direction: column;
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--text);
}

.brand-sub {
  display: block;
  margin-top: 0.42rem;
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand-prompt { color: var(--orange); }

.nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  font-size: 14px;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
}
.nav a:hover { color: var(--text); }

.nav-cta {
  color: var(--orange) !important;
  padding-bottom: 0.15rem;
  border-bottom: 1px solid var(--orange);
  font-weight: 600;
}

.menu {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.menu span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  transition: transform 0.18s ease;
}
.menu.is-open span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu.is-open span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ============================================================ hero */
.hero {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.5rem, 4vw, 3.5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  max-width: var(--content);
}

.kicker {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.5rem;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--orange);
  letter-spacing: 0.05em;
}
.kicker .dot {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  background: var(--amber);
}

.hero h1 {
  max-width: 20ch;
  margin: 0 0 1.3rem;
  font-family: var(--display);
  font-size: clamp(2.7rem, 5.4vw, 4.2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
}
.hero h1 span { color: var(--orange); }

.hero-lead {
  max-width: 52ch;
  margin: 0 0 2rem;
  font-size: clamp(1.08rem, 1.5vw, 1.22rem);
  line-height: 1.6;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: var(--amber);
  color: var(--bg);
  padding: 0.85rem 1.2rem;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.button:hover {
  background: var(--orange);
  color: var(--bg);
}

.text-link {
  font-size: 15px;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 4px;
}
.text-link:hover { color: var(--orange); }

.hero-aside {
  padding-left: 1.3rem;
  border-left: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.9;
  color: var(--muted);
}
.aside-label {
  margin: 0 0 0.6rem;
  color: var(--orange);
  letter-spacing: 0.05em;
}
.hero-aside p { margin: 0; }

/* ============================================================ secciones */
.section {
  padding: clamp(2.75rem, 4.5vw, 4rem) 0;
  border-top: 1px solid var(--line);
}

.section-grid {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  max-width: var(--content);
}

.section-rail { padding-top: 0.35rem; }

.section-label {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--orange);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.section-body { max-width: 720px; }

.section h2 {
  max-width: 18ch;
  margin: 0 0 1.2rem;
  font-family: var(--display);
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.section-body .lead {
  max-width: 56ch;
  margin: 0 0 1.2rem;
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  line-height: 1.6;
  color: var(--text);
}

.section-body > p:not(.lead) {
  max-width: 62ch;
  margin: 0 0 1rem;
  font-size: 0.98rem;
  color: var(--muted);
}

/* ============================================================ reparaciones */
.repair-list {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.repair-list li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.repair-list span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--orange);
  letter-spacing: 0.03em;
}
.repair-list p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ============================================================ proceso */
.process {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.process li {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.process-num {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--orange);
}
.process h3,
.process h4 {
  margin: 0 0 0.2rem;
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 600;
}
.process p {
  max-width: 54ch;
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.subhead {
  margin: 2.6rem 0 0;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.process--grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.2rem;
}
.process--grid li {
  display: block;
  padding: 1.1rem 1.2rem 1.1rem 0;
  border-bottom: 0;
  border-right: 1px solid var(--line);
}
.process--grid li + li { padding-left: 1.2rem; }
.process--grid li:last-child {
  padding-right: 0;
  border-right: 0;
}
.process--grid .process-num { margin-bottom: 0.5rem; }

/* ============================================================ límites */
.no-list {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.no-list li {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
  color: var(--muted);
}
.no-list li::before {
  content: "−";
  font-family: var(--mono);
  color: var(--orange);
}

/* ============================================================ zona */
.zone-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
.zone-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text);
}
.zone-list li::before {
  content: "";
  width: 4px;
  height: 4px;
  flex: 0 0 auto;
  background: var(--orange);
}
.zone-note {
  max-width: 54ch;
  margin: 1.4rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ============================================================ preguntas */
.faq {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}
.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1;
  color: var(--orange);
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  max-width: 62ch;
  margin: 0;
  padding: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ============================================================ formulario */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  margin-top: 2rem;
}

.quote-form {
  display: grid;
  gap: 0.85rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.field {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}

.field label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--orange);
  letter-spacing: 0.03em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  padding: 0.5rem 0;
  font-size: 1rem;
  outline: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-bottom-color: var(--orange);
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
  opacity: 0.85;
}
.field textarea {
  min-height: 78px;
  resize: vertical;
}
.field select {
  appearance: none;
  padding-right: 1.2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23F2A65A' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.2rem center;
  background-size: 12px 8px;
}
.field select option { background: var(--bg-2); color: var(--text); }

.hint {
  font-size: 11px;
  line-height: 1.35;
  color: var(--muted);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}
.check input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin: 0.2rem 0 0;
  accent-color: var(--orange);
}
.check a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 3px;
}

.quote-form .button { margin-top: 0.2rem; }

.form-status {
  min-height: 1.2em;
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.form-status[data-state="error"] { color: #FF9B86; }
.form-status[data-state="ok"] { color: var(--orange); }

.form-note {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.form-note a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 3px;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.contact-aside {
  padding-left: 1.5rem;
  border-left: 1px solid var(--line);
}
.contact-title {
  margin: 0 0 0.8rem;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 600;
}
.contact-channels {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
}
.contact-channels li { display: grid; gap: 0.1rem; }
.contact-channels span {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--orange);
  letter-spacing: 0.04em;
}
.contact-channels a {
  font-size: 15px;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
}
.contact-channels a:hover { text-decoration-color: var(--orange); }
.contact-note {
  max-width: 40ch;
  margin: 1.2rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ============================================================ footer */
.footer {
  padding: 2.5rem 0 1.5rem;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
}
.footer-brand {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
}
.footer-title {
  margin: 0 0 0.5rem;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--orange);
  letter-spacing: 0.04em;
}
.footer-text {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}
.footer a {
  color: var(--muted);
  text-decoration: none;
}
.footer a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9px;
  color: var(--muted);
}
.footer-bottom p { margin: 0; }

/* ============================================================ páginas */
.page-main {
  padding: clamp(3rem, 6vw, 5rem) 0;
}
.page-head {
  max-width: 760px;
  margin-bottom: 2rem;
}
.page-head h1 {
  margin: 0 0 0.7rem;
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.page-head p {
  max-width: 58ch;
  margin: 0;
  color: var(--muted);
}

/* ============================================================ legal */
.legal { max-width: 760px; }
.legal h2 {
  margin: 2rem 0 0.6rem;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.legal h2:first-of-type { margin-top: 0; }
.legal h3 {
  margin: 1.3rem 0 0.3rem;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
}
.legal p,
.legal li {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--muted);
}
.legal ul { padding-left: 1.1rem; }
.legal strong { color: var(--text); }
.legal a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 3px;
}
/* ============================================================ laboratorio interno */
.project-list {
  display: grid;
  gap: 0;
  margin: 1.8rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.project-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.project-list h3 {
  margin: 0 0 0.2rem;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 600;
}
.project-list p {
  max-width: 60ch;
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}
.project-list .status {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--orange);
  white-space: nowrap;
}
.lab-note { margin-top: 1.5rem; }

/* ============================================================ aviso de cookies */
.button--quiet {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}
.button--quiet:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--bg);
}

.cookie-note {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.35);
}
.cookie-note[hidden] { display: none; }
.cookie-note-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.cookie-note p {
  max-width: 82ch;
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted);
}
.cookie-note-title {
  margin-bottom: 0.25rem !important;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
}
.cookie-note a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 3px;
}
.cookie-note .button { flex: 0 0 auto; }

/* ============================================================ responsive */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-aside {
    max-width: 420px;
    padding-left: 0;
    padding-top: 1rem;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .section-grid { grid-template-columns: 150px minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-aside {
    padding-left: 0;
    padding-top: 1.3rem;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 880px) {
  html { scroll-padding-top: 1rem; }

  .header-inner { position: relative; min-height: 72px; }
  .menu { display: flex; }

  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    z-index: 20;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--pad) 1rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-cta {
    margin-top: 0.6rem;
    border-bottom: 1px solid var(--orange) !important;
    align-self: flex-start;
  }
}

@media (max-width: 760px) {
  body { font-size: 16.5px; }

  .section-grid { grid-template-columns: 1fr; gap: 1rem; }
  .section-rail { padding-top: 0; }

  .section h2 { font-size: clamp(2rem, 8vw, 2.8rem); }
  .hero h1 { font-size: clamp(2.6rem, 10vw, 3.6rem); }

  .repair-list li { grid-template-columns: 1fr; gap: 0.3rem; }

  .form-row { grid-template-columns: 1fr; }

  .process--grid { grid-template-columns: 1fr; }
  .process--grid li {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 1rem 0;
  }
  .process--grid li + li { padding-left: 0; }

  .cookie-note-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
  }
  .cookie-note .button { width: 100%; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.3rem; }
}

@media (max-width: 520px) {
  .hero-actions { gap: 1rem; }
  .zone-list { gap: 0.5rem 1rem; }
  .process li { grid-template-columns: 2.5rem 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
