/* Netelcom — visual-first (skill web-netelcom-designer) */
:root {
  --bg: #0a0a0a;
  --surface: #111827;
  --text: #f9fafb;
  --muted: #9ca3af;
  --accent: #2563eb;
  --ok: #10b981;
  --border: #1f2937;
  --font-body: "Inter", system-ui, sans-serif;
  --font-display: "JetBrains Mono", ui-monospace, monospace;
  --max: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

.site-header {
  border-bottom: 1px solid rgba(31, 41, 55, 0.85);
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--text);
  text-decoration: none;
}
.brand span { color: var(--ok); }
.nav { display: flex; flex-wrap: wrap; gap: 0.85rem 1.2rem; }
.nav a {
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-decoration: none;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* Hero full-bleed media */
.hero-media {
  position: relative;
  min-height: min(88vh, 46rem);
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-media .media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media .media video,
.hero-media .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-media .shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.35) 0%, rgba(10,10,10,0.82) 70%, #0a0a0a 100%),
    radial-gradient(ellipse 60% 50% at 20% 40%, rgba(37,99,235,0.25), transparent 60%);
}
.hero-media .content {
  position: relative;
  z-index: 2;
  padding: 5.5rem 0 3.5rem;
}
.hero-media .eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--ok);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}
.hero-media h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5.2vw, 3.1rem);
  line-height: 1.12;
  margin: 0 0 1rem;
  max-width: 15ch;
}
.hero-media .lede {
  font-size: 1.08rem;
  color: #d1d5db;
  max-width: 38rem;
  margin: 0 0 1.75rem;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  padding: 0.85rem 1.25rem;
  border-radius: 2px;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 32px rgba(37, 99, 235, 0.35);
}
.btn-primary:hover { background: #1d4ed8; color: #fff; }
.btn-ghost {
  background: rgba(10, 10, 10, 0.45);
  border-color: rgba(249, 250, 251, 0.25);
  color: var(--text);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: #fff; color: #fff; }

.section { padding: 3.75rem 0; }
.section h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}
.section .intro { color: var(--muted); max-width: 42rem; margin: 0 0 1.75rem; }

/* Grid of business lines with photos */
.biz-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .biz-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .biz-grid { grid-template-columns: repeat(4, 1fr); }
}

.biz-card {
  position: relative;
  min-height: 16rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: border-color 0.25s, transform 0.25s;
}
.biz-card:hover {
  border-color: rgba(37, 99, 235, 0.5);
  transform: translateY(-3px);
}
.biz-card .shot {
  position: absolute;
  inset: 0;
}
.biz-card .shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 0.45s ease;
}
.biz-card:hover .shot img { transform: scale(1.08); }
.biz-card .veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(10,10,10,0.92) 78%);
}
.biz-card .copy {
  position: relative;
  z-index: 2;
  padding: 1.2rem 1.15rem 1.3rem;
}
.biz-card h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin: 0 0 0.4rem;
}
.biz-card p { margin: 0; color: #d1d5db; font-size: 0.9rem; }
.biz-card .status {
  display: inline-block;
  margin-top: 0.7rem;
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ok);
}

/* Split rows (servicios / showroom) */
.split {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  align-items: stretch;
  border: 1px solid var(--border);
  background: #0c1018;
  overflow: hidden;
}
@media (min-width: 860px) {
  .split { grid-template-columns: 1.05fr 1fr; }
  .split.reverse { grid-template-columns: 1fr 1.05fr; }
  .split.reverse .shot { order: 2; }
}
.split .shot {
  min-height: 14rem;
  margin: 0;
}
.split .shot img {
  width: 100%;
  height: 100%;
  min-height: 14rem;
  object-fit: cover;
  display: block;
}
.split .body { padding: 1.5rem 1.35rem; }
.split h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.55rem;
}
.split p { margin: 0; color: var(--muted); }

.contact-box {
  display: grid;
  gap: 0;
  border: 1px solid var(--border);
  overflow: hidden;
  max-width: 52rem;
  background: #0c1018;
}
@media (min-width: 800px) {
  .contact-box { grid-template-columns: 0.9fr 1.1fr; }
}
.contact-box .shot img {
  width: 100%;
  height: 100%;
  min-height: 16rem;
  object-fit: cover;
  display: block;
}
.contact-box .body { padding: 2rem 1.6rem; }
.contact-box h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  margin: 0 0 0.85rem;
}
.contact-box > .body > p { color: var(--muted); margin: 0 0 1.25rem; }

.contact-channels {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
}
.channel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 0.85rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  background: rgba(10, 10, 10, 0.55);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, background 0.2s;
}
.channel:hover {
  border-color: rgba(37, 99, 235, 0.55);
  background: rgba(17, 24, 39, 0.9);
  text-decoration: none;
}
.channel .glyph {
  grid-row: 1 / span 2;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  border: 1px solid var(--border);
  color: var(--ok);
}
.channel .label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}
.channel .hint {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.35;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}
.btn-wa {
  background: #128c7e;
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(18, 140, 126, 0.28);
}
.btn-wa:hover {
  background: #0e7a6e;
  color: #fff;
  text-decoration: none;
}
.btn-lg {
  padding: 0.95rem 1.35rem;
  font-size: 0.85rem;
}
.btn-block {
  width: 100%;
  justify-content: center;
}
.form-card {
  margin-top: 1.75rem;
  display: block;
  max-width: 40rem;
  padding: 1.75rem 1.5rem 1.6rem;
  border: 1px solid var(--border);
  background: #0c1018;
}
.form-card h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.45rem;
}
.form-card .intro { margin: 0 0 1.25rem; }
.btn-send {
  margin-top: 0.35rem;
  min-width: 12rem;
}

.gallery {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 900px) {
  .gallery { grid-template-columns: repeat(4, 1fr); }
}
.gallery figure {
  margin: 0;
  border: 1px solid var(--border);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.45rem 0.55rem;
  background: #0a0a0a;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0 2.25rem;
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.site-footer .inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .biz-card:hover, .btn:hover { transform: none; }
  .biz-card:hover .shot img, .gallery figure:hover img { transform: none; }
}
.site-footer .footer-links { display: inline-flex; flex-wrap: wrap; gap: 0.35rem 0.5rem; align-items: center; }

.field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: normal;
  text-transform: none;
  color: var(--text);
  background: #0a0a0a;
  border: 1px solid var(--border);
  padding: 0.7rem 0.75rem;
  width: 100%;
}
.field input:focus, .field textarea:focus {
  outline: 1px solid var(--accent);
  border-color: var(--accent);
}
.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}
.form-status { margin-top: 0.85rem; color: var(--ok); font-size: 0.92rem; }
[data-cart-count] {
  display: inline-block;
  min-width: 1.1rem;
  padding: 0 0.35rem;
  margin-left: 0.2rem;
  border-radius: 2px;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
}
.btn.added { border-color: var(--ok); color: var(--ok); }
