/* ============================================================
   NEOPIXEL — Nosotros Page Styles
   Matching neopixelweb.com/nosotros with high-fidelity variables
   ============================================================ */

body.page-nosotros {
  --green:             #19D68C;
  --green-glow:        rgba(25, 214, 140, 0.18);
  --green-glow-strong: rgba(25, 214, 140, 0.32);
  --border-green:      rgba(25, 214, 140, 0.25);

  background: var(--bg);
  color: var(--fg);
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out);
}

/* Base Typo overrides for Nosotros */
body.page-nosotros h1,
body.page-nosotros h2,
body.page-nosotros h3,
body.page-nosotros h4,
body.page-nosotros h5 {
  font-family: var(--f-display);
  color: var(--fg);
  transition: color 0.3s var(--ease-out);
}

.section-label {
  font-family: var(--f-mono);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 1rem;
  line-height: 1.15;
}
.section-title em {
  font-style: normal;
  color: var(--green);
}

/* ============================================
   SECCIÓN NOSOTROS — PARTE 1: Historia
   ============================================ */
.nosotros-section {
  padding: 6rem 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

#nosotros {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
}

#nosotros-filosofia {
  background: var(--bg-dark);
}

#nosotros-valores {
  background: var(--bg-alt);
}

.nosotros-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* Historia: dos columnas */
.historia-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-bottom: 6rem;
}

.historia-texto h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 1.2rem;
  line-height: 1.15;
}
.historia-texto h2 em {
  font-style: normal;
  color: var(--green);
}

.historia-texto p {
  color: var(--fg-2);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
  transition: color 0.3s var(--ease-out);
}

/* Cita destacada */
.historia-quote {
  border-left: 3px solid var(--green);
  padding: 1rem 1.5rem;
  background: var(--accent-soft);
  border-radius: 0 12px 12px 0;
  margin: 1.8rem 0;
}
.historia-quote p {
  color: var(--fg);
  font-size: 1.05rem;
  font-style: italic;
  margin: 0;
  line-height: 1.65;
  transition: color 0.3s var(--ease-out);
}

/* Panel visual derecho */
.historia-visual {
  position: relative;
}

.visual-card-main {
  background: var(--surface);
  border: 1px solid var(--border-green);
  border-radius: 20px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.visual-card-main::before {
  content: '';
  position: absolute;
  top: -40%; right: -40%;
  width: 300px; height: 300px;
  background: radial-gradient(ellipse, rgba(25,214,140,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.vcm-label {
  font-family: var(--f-mono);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.5rem;
}

.vcm-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: .5rem;
}

.vcm-sub {
  color: var(--fg-2);
  font-size: .9rem;
  margin-bottom: 2rem;
  line-height: 1.6;
  transition: color 0.3s var(--ease-out);
}

/* Línea de tiempo compacta */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tl-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  padding-bottom: 1.4rem;
  position: relative;
}
.tl-item:last-child { padding-bottom: 0; }

.tl-dot-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 32px;
}
.tl-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--border-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-mono);
  font-size: .72rem;
  font-weight: 800;
  color: var(--green);
  flex-shrink: 0;
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.tl-line {
  width: 1px;
  flex: 1;
  min-height: 24px;
  background: var(--border-green);
  opacity: .4;
  margin-top: 4px;
}
.tl-item:last-child .tl-line { display: none; }

.tl-content { padding-top: 2px; }
.tl-year {
  font-size: .75rem;
  color: var(--green);
  font-weight: 700;
  letter-spacing: .08em;
  margin-bottom: .15rem;
}
.tl-text {
  font-size: .88rem;
  color: var(--fg-2);
  line-height: 1.55;
  transition: color 0.3s var(--ease-out);
}

/* Badge flotante sobre visual */
.visual-badge {
  position: absolute;
  bottom: -18px;
  right: 16px;
  background: var(--surface);
  border: 1px solid var(--border-green);
  border-radius: 14px;
  padding: .8rem 1.1rem;
  display: flex;
  align-items: center;
  gap: .7rem;
  box-shadow: var(--shadow-card);
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.vb-icon {
  width: 36px; height: 36px;
  background: var(--accent-soft);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s var(--ease-out);
}
.vb-icon svg {
  width: 18px; height: 18px;
  fill: none;
  stroke: var(--green);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.vb-num {
  font-family: var(--f-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--fg);
  transition: color 0.3s var(--ease-out);
}
.vb-lbl {
  font-size: .68rem;
  color: var(--fg-2);
  transition: color 0.3s var(--ease-out);
}

/* ============================================
   FILOSOFÍA / MISIÓN
   ============================================ */
.filosofia-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 6rem;
}

.filo-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2.2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), border-color 0.3s, box-shadow 0.3s, background 0.3s var(--ease-out);
}
.filo-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.filo-card.visible:hover {
  border-color: var(--border-green);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(25, 214, 140, 0.08);
}

.filo-icon {
  width: 48px; height: 48px;
  background: var(--accent-soft);
  border: 1px solid var(--border-green);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.filo-icon svg {
  width: 22px; height: 22px;
  fill: none;
  stroke: var(--green);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.filo-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .5rem;
  letter-spacing: -.01em;
}
.filo-card p {
  color: var(--fg-2);
  font-size: .88rem;
  line-height: 1.7;
  transition: color 0.3s var(--ease-out);
}

/* ============================================
   MÉTRICAS / DIFERENCIADORES
   ============================================ */
.valor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

/* Lista de diferenciadores */
.valor-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.val-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.val-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.val-check {
  width: 38px; height: 38px;
  min-width: 38px;
  background: var(--accent-soft);
  border: 1px solid var(--border-green);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.val-check svg {
  width: 16px; height: 16px;
  fill: none;
  stroke: var(--green);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.val-item h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .25rem;
  letter-spacing: -.01em;
}
.val-item p {
  color: var(--fg-2);
  font-size: .88rem;
  line-height: 1.65;
  transition: color 0.3s var(--ease-out);
}

/* Panel de métricas */
.metrics-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2.2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.metric-box {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem 1.3rem;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), border-color 0.3s, background 0.3s var(--ease-out);
}
.metric-box.visible {
  opacity: 1;
  transform: scale(1);
}
.metric-box:hover {
  border-color: var(--border-green);
}

.metric-box .mnum {
  font-family: var(--f-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--fg);
  line-height: 1;
  transition: color 0.3s var(--ease-out);
}
.metric-box .mnum em {
  color: var(--green);
  font-style: normal;
}
.metric-box .mlabel {
  font-size: .78rem;
  color: var(--fg-2);
  margin-top: 6px;
  line-height: 1.45;
  transition: color 0.3s var(--ease-out);
}

.metric-wide {
  grid-column: span 2;
  background: var(--accent-soft);
  border-color: var(--border-green);
}
.metric-wide .mnum {
  font-size: 1.45rem;
  letter-spacing: -0.01em;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1000px) {
  .historia-grid,
  .valor-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  .filosofia-grid {
    grid-template-columns: 1fr 1fr;
  }
  .visual-badge {
    right: 16px;
    bottom: -14px;
  }
}

@media (max-width: 600px) {
  #nosotros {
    padding: 4rem 0;
  }
  .filosofia-grid {
    grid-template-columns: 1fr;
  }
  .metrics-panel {
    grid-template-columns: 1fr;
  }
  .metric-wide {
    grid-column: span 1;
  }
  .historia-grid,
  .valor-grid {
    gap: 2.5rem;
  }
  .visual-card-main {
    padding: 1.8rem;
  }
  .visual-badge {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 1rem;
    align-self: flex-start;
    display: inline-flex;
  }
}
