/* ═══════════════════════════════════════════
   Q-WERK · style.css
   ═══════════════════════════════════════════ */

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

:root {
  --dark:       #2e2e2e;
  --darker:     #1a1a1a;
  --black:      #000000;
  --white:      #ffffff;
  --gray-light: #f4f4f4;
  --gray-mid:   #e0e0e0;
  --text:       #1a1a1a;
  --text-soft:  #5a5a5a;
  --green:      #3aaa35;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Container ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Typography ── */
h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

h2.light { color: var(--white); }

.label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.6rem;
}

.label-light { color: rgba(255,255,255,0.4); }

/* ════════════════════════════
   NAV
════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--darker);
  padding: 0.9rem 0;
  transition: padding 0.3s, box-shadow 0.3s;
}

#navbar.scrolled {
  padding: 0.55rem 0;
  box-shadow: 0 2px 24px rgba(0,0,0,0.5);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 28px; opacity: 0.9; transition: opacity 0.2s; }
.nav-logo:hover img { opacity: 1; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.7);
  border-radius: 2px;
}

/* ════════════════════════════
   HERO — split layout
════════════════════════════ */
.hero {
  background: var(--darker);
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 52px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 5rem 2rem;
  max-width: 700px;
}

.hero-label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1.25rem;
}

.hero-text h1 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.hero-sub {
  font-size: 1.2rem;
  font-style: italic;
  color: rgba(255,255,255,0.45);
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: filter 0.2s, transform 0.15s;
  align-self: flex-start;
}
.btn:hover { filter: brightness(1.1); transform: translateY(-1px); }

.btn-green {
  background: var(--green);
  color: var(--white);
}

/* ════════════════════════════
   SECCIÓN VERDE — PILARES
════════════════════════════ */
.section-green {
  background: var(--green);
}

.section-green .label-light {
  color: rgba(255,255,255,0.6);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.pillar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pillar-icon {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}

.pillar-icon svg {
  width: 24px;
  height: 24px;
  color: white;
}

.pillar h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.01em;
}

.pillar p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
}

/* ════════════════════════════
   COLOR STRIPE
════════════════════════════ */
.color-stripe {
  display: flex;
  height: 6px;
}

.color-stripe span {
  flex: 1;
}

/* ════════════════════════════
   SECTIONS
════════════════════════════ */
.section { padding: 5.5rem 0; }
.section-dark { background: var(--dark); }

.section-intro {
  color: var(--text-soft);
  font-size: 1rem;
  max-width: 580px;
  margin-bottom: 2.5rem;
  margin-top: -0.5rem;
}

/* ════════════════════════════
   QUIÉNES SOMOS
════════════════════════════ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.col-text p {
  color: var(--text-soft);
  font-size: 1rem;
  margin-bottom: 1rem;
}
.col-text p:last-child { margin-bottom: 0; }

.col-stats {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--gray-mid);
}

.stat-card {
  background: var(--gray-light);
  padding: 1.5rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.stat-card strong {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--text);
  min-width: 70px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.stat-card span {
  font-size: 0.9rem;
  color: var(--text-soft);
  font-weight: 500;
}

/* ════════════════════════════
   MISIÓN / VISIÓN
════════════════════════════ */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 3.5rem;
  align-items: start;
}

.mv-card .label { margin-bottom: 0.75rem; }

.mv-card p {
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  line-height: 1.75;
}

.mv-divider {
  background: rgba(255,255,255,0.1);
  align-self: stretch;
}

/* ════════════════════════════
   PRODUCTOS
════════════════════════════ */
.line-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.line-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-mid);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  background: var(--gray-mid);
  border: 1px solid var(--gray-mid);
}

.products-grid--one {
  display: block;
  background: transparent;
  border: none;
}

.products-grid--one .product-card {
  max-width: 380px;
  border: 1px solid var(--gray-mid);
}

.product-card {
  background: var(--white);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
}

.product-card:hover {
  box-shadow: 0 6px 28px rgba(0,0,0,0.12);
  transform: translateY(-3px);
  z-index: 1;
}

/* Product image area */
.product-img-wrap {
  background: var(--gray-light);
  border-bottom: 4px solid var(--accent);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  height: 200px;
}

.product-img-wrap img {
  height: 100%;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s;
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.04);
}

.product-body {
  padding: 1.25rem 1.4rem 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.3rem;
}

.product-code {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.product-ph {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  background: var(--gray-light);
  padding: 0.18rem 0.5rem;
  text-transform: uppercase;
}

.product-body h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.2rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.product-tag {
  font-size: 0.72rem;
  color: var(--text-soft);
  margin-bottom: 0.8rem;
  display: block;
  font-weight: 500;
}

.product-body p {
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.65;
  flex: 1;
}

/* ════════════════════════════
   CONTACTO
════════════════════════════ */
.contact-inner {
  text-align: center;
  padding: 1.5rem 0;
}

.contact-sub {
  color: rgba(255,255,255,0.45);
  font-size: 0.95rem;
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
}

.contact-items {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-bottom: 2px solid rgba(255,255,255,0.15);
  padding-bottom: 0.25rem;
  transition: border-color 0.2s, color 0.2s;
}

.contact-item:hover {
  color: var(--green);
  border-color: var(--green);
}

.contact-svg {
  width: 20px;
  height: 20px;
  opacity: 0.6;
  flex-shrink: 0;
}

/* ════════════════════════════
   FOOTER
════════════════════════════ */
footer {
  background: var(--black);
  padding: 1.4rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-logo { opacity: 0.35; height: 20px; }

.footer-copy,
.footer-domain {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
}

/* ════════════════════════════
   RESPONSIVE
════════════════════════════ */
@media (max-width: 860px) {
  .hero-text h1 { font-size: 3rem; }
  .pillars-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--darker);
    padding: 1rem 1.5rem 1.5rem;
    gap: 1rem;
    border-top: 1px solid rgba(255,255,255,0.07);
  }
  .nav-links.open { display: flex; }
  #navbar { position: relative; }

  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }

  .mv-grid { grid-template-columns: 1fr; gap: 2rem; }
  .mv-divider { height: 1px; width: 100%; background: rgba(255,255,255,0.1); }

  .section { padding: 4rem 0; }

  .footer-inner { flex-direction: column; gap: 0.5rem; text-align: center; }
  .footer-logo { margin: 0 auto; }

  .products-grid--one .product-card { max-width: 100%; }
}

@media (max-width: 480px) {
  .hero-text h1 { font-size: 2.4rem; }
  .hero-image { height: 220px; }
  .stat-card strong { font-size: 2.2rem; }
}
