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

:root {
  --dark:        #18191C;
  --steel:       #2E333C;
  --steel-light: #454D5A;
  --amber:       #F4A820;
  --amber-dark:  #C8860D;
  --bg:          #EDEAE3;
  --bg-section:  #F5F3EE;
  --text:        #1E2228;
  --text-muted:  #5A6070;
  --border:      #D5D1C8;
  --white:       #FFFFFF;

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'IBM Plex Sans', sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── NAVBAR ──────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(24, 25, 28, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(244,168,32,0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 64px;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 0;
}
.nav-logo .flex { color: var(--amber); }
.nav-logo .man  { color: var(--white); }
.nav-logo .tld  { color: var(--steel-light); font-size: 0.9rem; font-weight: 400; margin-left: 2px; }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--amber); }

.nav-contact {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--amber);
  text-decoration: none;
  letter-spacing: 0.04em;
}
.nav-contact:hover { color: var(--white); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  width: 24px; height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

/* ─── HERO ────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 100px 2.5rem 80px;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(244,168,32,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244,168,32,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero-pipe {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 520px;
  opacity: 0.07;
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--amber);
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  line-height: 0.94;
  color: var(--white);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  max-width: 800px;
  margin-bottom: 2rem;
}
.hero-headline .highlight { color: var(--amber); }

.hero-sub {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255,255,255,0.58);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 3rem;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--amber);
  color: var(--dark);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 2rem;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--amber-dark); transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 0.85rem 2rem;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }

.hero-stats {
  margin-top: 4.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 0;
  width: fit-content;
}
.hero-stat {
  padding-right: 2.5rem;
  padding-left: 2.5rem;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.hero-stat:first-child { padding-left: 0; }
.hero-stat:last-child  { border-right: none; }

.hero-stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--amber);
  line-height: 1;
}
.hero-stat-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.3rem;
}

/* ─── SPEC STRIP ──────────────────────────────────── */
.spec-strip {
  background: var(--amber);
  overflow: hidden;
  padding: 0;
  height: 44px;
  display: flex;
  align-items: center;
}

.spec-strip-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: ticker 40s linear infinite;
  gap: 0;
}
.spec-strip-track:hover { animation-play-state: paused; }

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.spec-item {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.spec-item::after {
  content: '▸';
  font-size: 0.6rem;
  opacity: 0.5;
}

/* ─── SECTION BASE ────────────────────────────────── */
.section {
  padding: 6rem 2.5rem;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber-dark);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--amber-dark);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
}

.section-lead {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.75;
}

/* ─── QUÉ SON ─────────────────────────────────────── */
.que-son {
  background: var(--bg-section);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.que-son-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-top: 3.5rem;
}

.que-son-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}
.que-son-text p strong {
  color: var(--text);
  font-weight: 600;
}

.hose-diagram {
  background: var(--dark);
  padding: 2.5rem;
  border-top: 3px solid var(--amber);
}

.hose-diagram-title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 2rem;
}

.hose-cross {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.hose-layers {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.hose-layer {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.layer-swatch {
  width: 32px;
  height: 12px;
  flex-shrink: 0;
}

.layer-name {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.05em;
}

.layer-desc {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
}

/* ─── PRODUCTOS ───────────────────────────────────── */
.productos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  margin-top: 3.5rem;
  background: var(--border);
  border: 1.5px solid var(--border);
}

.producto-card {
  background: var(--white);
  padding: 2rem;
  transition: background 0.2s;
  cursor: default;
  position: relative;
  overflow: hidden;
}
.producto-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 0;
  background: var(--amber);
  transition: height 0.3s;
}
.producto-card:hover { background: #FAFAF8; }
.producto-card:hover::before { height: 100%; }

.producto-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 1.25rem;
  opacity: 0.8;
}

.producto-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber-dark);
  margin-bottom: 0.5rem;
}

.producto-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.producto-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.producto-specs {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.producto-spec {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  display: flex;
  gap: 0.5rem;
}
.producto-spec-key { color: var(--text); }

/* ─── APLICACIONES ────────────────────────────────── */
.aplicaciones {
  background: var(--dark);
  color: var(--white);
}
.aplicaciones .section-title { color: var(--white); }
.aplicaciones .section-lead  { color: rgba(255,255,255,0.5); }

.aplicaciones-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 3.5rem;
  background: rgba(255,255,255,0.06);
}

.aplicacion-card {
  background: var(--dark);
  padding: 2.5rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  transition: background 0.2s;
}
.aplicacion-card:hover { background: var(--steel); }

.aplicacion-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
  color: var(--amber);
}

.aplicacion-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.75rem;
  letter-spacing: 0.04em;
}

.aplicacion-desc {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
}

.aplicacion-list {
  list-style: none;
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.aplicacion-list li {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.aplicacion-list li::before {
  content: '';
  width: 14px;
  height: 1px;
  background: var(--amber);
  opacity: 0.6;
  flex-shrink: 0;
}

/* ─── NORMAS ──────────────────────────────────────── */
.normas {
  background: var(--bg-section);
  border-top: 1px solid var(--border);
}

.normas-inner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  margin-top: 3.5rem;
  align-items: start;
}

.normas-table {
  border: 1.5px solid var(--border);
  overflow: hidden;
}

.normas-table-header {
  background: var(--dark);
  padding: 0.75rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  display: grid;
  grid-template-columns: 1.5fr 1fr 2fr;
  gap: 1rem;
}

.normas-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 2fr;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--white);
  transition: background 0.15s;
}
.normas-row:hover { background: #F8F6F1; }

.norma-code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--amber-dark);
}

.norma-type {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.norma-desc {
  font-size: 0.8rem;
  color: var(--text);
}

.diferenciadores {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.diferenciador {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.diferenciador-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--border);
  line-height: 1;
  flex-shrink: 0;
  width: 48px;
}

.diferenciador-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.diferenciador-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ─── CONTACTO ────────────────────────────────────── */
.contacto { background: var(--dark); }
.contacto .section-title { color: var(--white); }
.contacto .section-lead  { color: rgba(255,255,255,0.5); }

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  margin-top: 3.5rem;
  align-items: start;
}

.contacto-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contacto-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.contacto-item-icon {
  width: 20px;
  height: 20px;
  color: var(--amber);
  flex-shrink: 0;
  margin-top: 2px;
}

.contacto-item-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.3rem;
}

.contacto-item-value {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}

.contacto-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.form-input,
.form-select,
.form-textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.88rem;
  padding: 0.75rem 1rem;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
  width: 100%;
}
.form-input::placeholder,
.form-textarea::placeholder { color: rgba(255,255,255,0.2); }
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--amber);
  background: rgba(255,255,255,0.06);
}

.form-select {
  appearance: none;
  cursor: pointer;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  background: var(--amber);
  color: var(--dark);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  padding: 1rem 2rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  align-self: flex-start;
}
.form-submit:hover { background: var(--amber-dark); transform: translateY(-1px); }
.form-submit:disabled { opacity: 0.7; cursor: default; transform: none; }

.form-disclaimer {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.25);
  line-height: 1.5;
}

/* ─── FOOTER ──────────────────────────────────────── */
.footer {
  background: #101114;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 3rem 2.5rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  margin-bottom: 1rem;
}
.footer-logo .flex { color: var(--amber); }
.footer-logo .man  { color: var(--white); }
.footer-logo .tld  { color: var(--steel-light); font-size: 0.85rem; font-weight: 400; margin-left: 2px; }

.footer-tagline {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.3);
  line-height: 1.6;
  max-width: 260px;
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-links a {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--amber); }

.footer-bottom {
  max-width: 1200px;
  margin: 2.5rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy,
.footer-cert {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.05em;
}

/* ─── SCROLL REVEAL ───────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ─── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 1024px) {
  .aplicaciones-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-contact { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--dark);
    padding: 1.5rem 2rem;
    gap: 1.25rem;
    border-top: 1px solid rgba(244,168,32,0.15);
  }
  .que-son-grid      { grid-template-columns: 1fr; }
  .productos-grid    { grid-template-columns: 1fr; }
  .aplicaciones-grid { grid-template-columns: 1fr; }
  .normas-inner-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contacto-grid     { grid-template-columns: 1fr; gap: 3rem; }
  .form-row          { grid-template-columns: 1fr; }
  .footer-inner      { grid-template-columns: 1fr 1fr; }
  .hero-stats        { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-stat {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 0 0 1.5rem;
  }
  .hero-stat:last-child { border-bottom: none; padding-bottom: 0; }
}

@media (max-width: 480px) {
  .section       { padding: 4rem 1.25rem; }
  .footer-inner  { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .spec-strip-track { animation: none; }
  .reveal { opacity: 1; transform: none; }
}

/* ─── DEVTOOLS OVERLAY ────────────────────────────── */
#devtools-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(24, 25, 28, 0.97);
  z-index: 99999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  text-align: center;
  pointer-events: all;
}

body[data-devtools="open"] #devtools-overlay {
  display: flex;
}

body[data-devtools="open"] > *:not(#devtools-overlay) {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
}

.devtools-overlay-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.8rem;
  letter-spacing: 0.06em;
}
.devtools-overlay-logo .flex { color: var(--amber); }
.devtools-overlay-logo .man  { color: var(--white); }

.devtools-overlay-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.devtools-overlay-divider {
  width: 40px;
  height: 2px;
  background: var(--amber);
}
