/* ===========================
   SOBRE NOSOTROS — LABRIEGO
   =========================== */

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

:root {
  --white:    #FFFFFF;
  --off:      #F8F7F5;
  --gray-100: #F2F1EF;
  --gray-200: #E2E1DF;
  --gray-300: #C8C7C5;
  --gray-500: #888784;
  --gray-700: #3A3936;
  --gray-900: #0F0F0E;
  --coral:    #E8593C;
  --green:    #25D366;
  --font:     'Space Grotesk', system-ui, -apple-system, sans-serif;
  --nav-h:    60px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--off);
  color: var(--gray-700);
  overflow-x: hidden;
}

/* ─── Shared utilities ─────────────────────────── */

.ns-section-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 20px;
}

.img-placeholder-label {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  font-weight: 600;
}

/* Fade-in on scroll */
.ns-fade {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.ns-fade.visible {
  opacity: 1;
  transform: none;
}

/* Navbar: ver ../css/navbar.css */

/* ===========================
   HERO
   =========================== */

#ns-hero {
  position: relative;
  min-height: 100vh;
  background: var(--gray-900);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.ns-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 70% at 65% 50%, #1e1818 0%, #0a0a0a 100%);
}

.ns-hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

.ns-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 48px 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  width: 100%;
}

.ns-eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 24px;
}

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

.ns-hero-title {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -2px;
  color: var(--white);
  margin-bottom: 28px;
}

.ns-hero-title em {
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  letter-spacing: -2px;
}

.ns-hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.5px;
  line-height: 1.6;
}

/* Hero visual */
.ns-hero-visual {
  position: relative;
  height: 520px;
}

.ns-hero-img-main {
  position: absolute;
  top: 0; right: 0;
  width: 85%;
  height: 100%;
  background: #1e1e28;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ns-hero-img-float {
  position: absolute;
  bottom: -32px;
  left: 0;
  width: 44%;
  height: 200px;
  background: #2a1f14;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid var(--gray-900);
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
  overflow: hidden;
}

.ns-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Scroll hint */
.ns-hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.ns-hero-scroll-hint span {
  font-size: 9px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.1); }
}

/* Hero entrance */
.ns-hero-text {
  animation: heroIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}
.ns-hero-visual {
  animation: heroIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: none; }
}

/* ===========================
   CONCEPTO
   =========================== */

#ns-concepto {
  background: var(--white);
  padding: 120px 0;
}

.ns-concepto-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.ns-concepto-title {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--gray-900);
  line-height: 1.1;
  margin-bottom: 36px;
}

.ns-concepto-paras {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 48px;
}

.ns-concepto-paras p {
  font-size: 16px;
  color: var(--gray-500);
  line-height: 1.8;
}

/* Stats */
.ns-concepto-stat-row {
  display: flex;
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-200);
}

.ns-stat-num {
  display: block;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--gray-900);
}

.ns-stat-label {
  font-size: 12px;
  color: var(--gray-500);
  letter-spacing: 0.5px;
}

/* Concepto visual */
.ns-concepto-visual {
  position: relative;
  padding-top: 48px;
}

.ns-concepto-img-tall {
  width: 100%;
  aspect-ratio: 3/4;
  background: #1a1814;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  overflow: hidden;
}

.ns-concepto-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ns-concepto-quote {
  background: var(--gray-900);
  color: var(--white);
  padding: 28px 32px;
  border-radius: 10px;
}

.ns-concepto-quote p {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.3px;
}

/* ===========================
   VISUAL GRID
   =========================== */

#ns-visual {
  background: var(--off);
  padding: 100px 0 0;
  overflow: hidden;
}

.ns-visual-header {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px 32px;
}

.ns-visual-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 320px 320px;
  gap: 12px;
  padding: 0 48px;
  max-width: 1280px;
  margin: 0 auto;
}

.vg-block {
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  transition: transform 0.4s ease;
}

.vg-block:hover { transform: scale(1.015); }

.vg-wide      { grid-column: span 7; }
.vg-tall      { grid-column: span 5; grid-row: span 2; }
.vg-block:not(.vg-wide):not(.vg-tall):not(.vg-egg) { grid-column: span 4; }

.vg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.vg-block:hover .vg-img { transform: scale(1.06); }

/* Huevo LABRIEGO — bloque central con texto de marca */
.vg-egg {
  grid-column: span 3;
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 50%;
  flex-direction: column;
  gap: 4px;
  cursor: default;
}

.vg-egg:hover { transform: none; }

.vg-egg-text {
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
}

.vg-caption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  font-weight: 600;
}

/* ===========================
   PROCESO
   =========================== */

#ns-proceso {
  background: var(--white);
  padding: 100px 0;
}

.ns-proceso-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

.ns-proceso-header {
  margin-bottom: 64px;
}

.ns-proceso-title {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--gray-900);
  margin-top: 8px;
}

.ns-proceso-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.ns-step {
  flex: 1;
  padding: 0 32px 0 0;
}

.step-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--coral);
  margin-bottom: 16px;
}

.ns-step h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.ns-step p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.75;
}

.ns-step-arrow {
  font-size: 20px;
  color: var(--gray-300);
  padding-top: 36px;
  flex-shrink: 0;
  padding-right: 32px;
}

/* ===========================
   VALORES
   =========================== */

#ns-valores {
  background: var(--gray-100);
  padding: 100px 0;
}

.ns-valores-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

.ns-valores-header {
  margin-bottom: 56px;
}

.ns-valores-title {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--gray-900);
  margin-top: 8px;
}

.ns-valores-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.ns-valor-card {
  background: var(--white);
  border-radius: 12px;
  padding: 36px 28px;
  border: 1px solid var(--gray-200);
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.ns-valor-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  transform: translateY(-4px);
  border-color: var(--gray-300);
}

.valor-icon-wrap {
  width: 48px;
  height: 48px;
  background: var(--gray-100);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--gray-700);
  transition: background 0.2s ease, color 0.2s ease;
}

.ns-valor-card:hover .valor-icon-wrap {
  background: var(--gray-900);
  color: var(--white);
}

.ns-valor-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -0.2px;
  margin-bottom: 10px;
}

.ns-valor-card p {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.75;
}

/* ===========================
   CIERRE
   =========================== */

#ns-cierre {
  position: relative;
  background: var(--gray-900);
  padding: 140px 48px;
  text-align: center;
  overflow: hidden;
}

.ns-cierre-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 100%, #2a1414 0%, transparent 70%);
  pointer-events: none;
}

.ns-cierre-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.ns-cierre-title {
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -1.5px;
  color: var(--white);
  line-height: 1.05;
  margin: 16px 0 20px;
}

.ns-cierre-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 48px;
  letter-spacing: 0.3px;
}

.ns-cierre-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.ns-btn-primary {
  background: var(--white);
  color: var(--gray-900);
  font-size: 14px;
  font-weight: 700;
  padding: 16px 40px;
  border-radius: 6px;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.ns-btn-primary:hover {
  background: #e8e8e8;
  transform: translateY(-2px);
}

.ns-btn-wsp {
  background: transparent;
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
  padding: 15px 36px;
  border-radius: 6px;
  border: 1.5px solid rgba(37, 211, 102, 0.35);
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.ns-btn-wsp:hover {
  background: rgba(37, 211, 102, 0.08);
  border-color: rgba(37, 211, 102, 0.6);
  transform: translateY(-2px);
}

/* ===========================
   FOOTER
   =========================== */

.ns-footer {
  background: #070707;
  padding: 28px 48px;
  text-align: center;
}

.ns-footer p {
  font-size: 12px;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.5px;
}

.ns-footer a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.2s;
}
.ns-footer a:hover { color: rgba(255,255,255,0.65); }

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 1024px) {
  .ns-valores-grid { grid-template-columns: repeat(2, 1fr); }
  .ns-proceso-steps { flex-wrap: wrap; gap: 32px; }
  .ns-step-arrow { display: none; }
  .ns-step { flex: 0 0 calc(50% - 16px); padding: 0; }
}

@media (max-width: 860px) {
  .ns-hero-content {
    grid-template-columns: 1fr;
    padding: 60px 28px 80px;
    gap: 48px;
  }
  .ns-hero-title { font-size: 46px; }
  .ns-hero-visual { height: 360px; }

  .ns-concepto-inner {
    grid-template-columns: 1fr;
    padding: 0 28px;
    gap: 48px;
  }
  .ns-concepto-title { font-size: 32px; }

  .ns-visual-grid {
    grid-template-rows: 220px 220px;
    padding: 0 28px;
  }

  .ns-cierre-title { font-size: 38px; }
  #ns-cierre { padding: 100px 28px; }
}

@media (max-width: 600px) {
  .ns-hero-title { font-size: 38px; letter-spacing: -1.5px; }
  .ns-hero-img-float { display: none; }
  .ns-hero-img-main { width: 100%; }

  .ns-valores-grid { grid-template-columns: 1fr; }

  .ns-concepto-stat-row { gap: 24px; }
  .ns-stat-num { font-size: 28px; }

  .ns-visual-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .vg-wide, .vg-tall, .vg-block { grid-column: span 2; aspect-ratio: 16/9; }
  .vg-tall { grid-row: auto; }

  .ns-proceso-inner, .ns-valores-inner, .ns-proceso-header {
    padding: 0 20px;
  }
  #ns-proceso, #ns-valores { padding: 72px 0; }

  .ns-cierre-title { font-size: 28px; letter-spacing: -1px; }
  .ns-cierre-btns { flex-direction: column; align-items: center; }

  .ns-visual-header { padding: 0 20px 24px; }
}
