/* ============================================
   NOSOTROS PAGE - Estilos específicos
   ============================================ */

/* === HERO NOSOTROS === */
.ns-hero {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 500px;
  max-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ns-hero-bg {
  position: absolute;
  inset: 0;
}

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

.ns-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 56, 78, 0.85) 0%, rgba(0, 56, 78, 0.4) 60%, rgba(0,0,0,0) 100%);
}

.ns-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 40px;
  max-width: 900px;
}

.ns-hero-content h1 {
  font-weight: 700;
  font-size: 72px;
  line-height: 1;
  color: white;
  text-transform: capitalize;
  letter-spacing: 2px;
}

.ns-hero-content p {
  font-size: 20px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 16px;
}

/* Breadcrumb */
.ns-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

.ns-breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s;
}

.ns-breadcrumb a:hover {
  color: var(--green-light);
}

.ns-breadcrumb span:last-child {
  color: white;
}

/* === MISIÓN & VISIÓN === */
.ns-purpose {
  padding: 100px 105px;
  background: linear-gradient(to bottom, var(--green-light) 50%, white 50%);
  position: relative;
}

.ns-purpose-wrapper {
  display: flex;
  gap: 60px;
  align-items: stretch;
  max-width: 1400px;
  margin: 0 auto;
}

/* Imagen izquierda */
.ns-purpose-image {
  flex: 0 0 42%;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  min-height: 560px;
}

.ns-purpose-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ns-purpose-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 56, 78, 0.9) 0%, rgba(0, 56, 78, 0.2) 50%, rgba(0,0,0,0) 100%);
}

.ns-purpose-image-content {
  position: absolute;
  bottom: 40px;
  left: 36px;
  z-index: 2;
}

.ns-purpose-image-number {
  display: block;
  font-weight: 700;
  font-size: 64px;
  line-height: 1;
  color: var(--green-light);
}

.ns-purpose-image-text {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 4px;
}

/* Contenido derecha */
.ns-purpose-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
  justify-content: center;
}

.ns-purpose-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: white;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 20px -8px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s, box-shadow 0.4s;
}

.ns-purpose-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.12);
}

.ns-purpose-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--dark-blue);
  flex-shrink: 0;
}

.ns-purpose-card-body h3 {
  font-weight: 700;
  font-size: 20px;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.ns-purpose-card-body p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-slate);
  margin: 0;
}

/* Stats compactos */
.ns-purpose-stats {
  display: flex;
  gap: 20px;
}

.ns-purpose-stat {
  flex: 1;
  background: var(--dark-blue);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  transition: transform 0.4s;
}

.ns-purpose-stat:hover {
  transform: translateY(-4px);
}

.ns-purpose-stat-number {
  display: block;
  font-weight: 700;
  font-size: 32px;
  line-height: 1;
  color: var(--green-light);
  margin-bottom: 6px;
}

.ns-purpose-stat-text {
  font-weight: 500;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* === NUESTRA HISTORIA === */
.ns-history {
  position: relative;
  padding: 120px 105px;
  overflow: hidden;
}

.ns-history-bg {
  position: absolute;
  inset: 0;
}

.ns-history-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ns-history-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 56, 78, 0.92) 0%, rgba(0, 56, 78, 0.85) 100%);
}

.ns-history-inner {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
}

.ns-history-header {
  max-width: 700px;
  margin-bottom: 48px;
}

.ns-history-header h2 {
  font-weight: 700;
  font-size: 42px;
  line-height: 1.2;
  color: white;
}

.ns-history-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.ns-history-col p {
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.ns-history-badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.ns-history-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  padding: 12px 24px;
  transition: background 0.3s;
}

.ns-history-badge:hover {
  background: rgba(255, 255, 255, 0.18);
}

.ns-history-badge i {
  font-size: 20px;
  color: var(--green-light);
}

.ns-history-badge span {
  font-weight: 600;
  font-size: 14px;
  color: white;
  white-space: nowrap;
}


/* === VALORES CORPORATIVOS === */
.ns-values {
  padding: 100px 105px;
  background: white;
}

.ns-values-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.ns-values-header .gc-section-label {
  justify-content: center;
}

.ns-values-header h2 {
  font-weight: 700;
  font-size: 36px;
  line-height: 1.25;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.ns-values-header p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-slate);
}

.ns-values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  max-width: 1400px;
  margin: 0 auto;
}

.ns-value-card {
  background: var(--bg-light);
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  transition: transform 0.4s, box-shadow 0.4s;
}

.ns-value-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.15);
}

.ns-value-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 32px;
  color: var(--dark-blue);
}

.ns-value-card h3 {
  font-weight: 700;
  font-size: 20px;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.ns-value-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-slate);
  margin: 0;
}

/* === LÍNEA DE TIEMPO === */
.ns-timeline {
  padding: 100px 105px;
  background: var(--dark-blue);
  overflow: hidden;
}

.ns-timeline-header {
  margin-bottom: 60px;
}

.ns-timeline-header h2 {
  font-weight: 700;
  font-size: 36px;
  color: white;
}

.ns-timeline-track {
  display: flex;
  gap: 0;
  position: relative;
}

/* Línea horizontal que conecta los dots */
.ns-timeline-track::before {
  content: '';
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
}

.ns-timeline-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 0 16px;
}

.ns-timeline-year {
  font-weight: 700;
  font-size: 28px;
  color: var(--green-light);
  margin-bottom: 16px;
}

.ns-timeline-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green-light);
  border: 4px solid var(--dark-blue);
  position: relative;
  z-index: 2;
  margin-bottom: 24px;
  box-shadow: 0 0 0 4px rgba(164, 181, 47, 0.3);
}

.ns-timeline-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s;
}

.ns-timeline-card:hover {
  background: rgba(255, 255, 255, 0.12);
}

.ns-timeline-card h3 {
  font-weight: 700;
  font-size: 18px;
  color: white;
  margin-bottom: 10px;
}

.ns-timeline-card p {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* === POR QUÉ ELEGIRNOS === */
.ns-why {
  padding: 100px 105px;
  background: var(--bg-light);
}

.ns-why-header {
  margin-bottom: 60px;
}

.ns-why-header h2 {
  font-weight: 700;
  font-size: 36px;
  line-height: 1.25;
  color: var(--text-dark);
}

.ns-why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.ns-why-stack {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.ns-why-card-large,
.ns-why-card-medium {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  cursor: default;
}

.ns-why-card-large {
  min-height: 580px;
}

.ns-why-card-medium {
  flex: 1;
  min-height: 270px;
}

.ns-why-card-img {
  position: absolute;
  inset: 0;
}

.ns-why-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.ns-why-card-large:hover .ns-why-card-img img,
.ns-why-card-medium:hover .ns-why-card-img img {
  transform: scale(1.05);
}

.ns-why-card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 56, 78, 0.9) 0%, rgba(0, 56, 78, 0.4) 40%, rgba(0,0,0,0) 70%);
}

.ns-why-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding: 36px;
}

.ns-why-card-content h3 {
  font-weight: 700;
  font-size: 26px;
  color: white;
  margin-bottom: 10px;
}

.ns-why-card-large .ns-why-card-content h3 {
  font-size: 32px;
}

.ns-why-card-content p {
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  max-width: 420px;
}

.ns-why-card-medium .ns-why-card-content {
  padding: 28px;
}

.ns-why-card-medium .ns-why-card-content h3 {
  font-size: 22px;
  margin-bottom: 6px;
}

.ns-why-card-medium .ns-why-card-content p {
  font-size: 15px;
}

/* === EQUIPO === */
.ns-team {
  padding: 100px 105px;
  background: var(--dark-blue);
}

.ns-team-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.ns-team-header h2 {
  font-weight: 700;
  font-size: 36px;
  color: white;
  margin-bottom: 12px;
}

.ns-team-header p {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

.ns-team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.ns-team-card {
  position: relative;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
}

.ns-team-card-img {
  position: absolute;
  inset: 0;
}

.ns-team-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.ns-team-card:hover .ns-team-card-img img {
  transform: scale(1.08);
}

.ns-team-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0,0,0,0) 100%);
}

.ns-team-card-info {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  z-index: 2;
}

.ns-team-card-bar {
  width: 48px;
  height: 4px;
  background: var(--green-light);
  border-radius: 100px;
  margin-bottom: 12px;
}

.ns-team-card-info h3 {
  font-weight: 700;
  font-size: 20px;
  color: white;
  margin: 0 0 6px;
  line-height: 1.3;
}

.ns-team-card-info p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  line-height: 1.4;
}

/* === CTA FINAL === */
.ns-cta {
  background: var(--green-primary);
  padding: 80px 105px;
  text-align: center;
}

.ns-cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.ns-cta-content h2 {
  font-weight: 700;
  font-size: 36px;
  line-height: 1.25;
  color: var(--dark-blue);
  margin-bottom: 16px;
}

.ns-cta-content p {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(0, 56, 78, 0.8);
  margin-bottom: 32px;
}

.ns-cta .gc-btn-primary {
  background: var(--dark-blue);
  color: white;
  padding: 16px 48px;
  font-size: 18px;
}

.ns-cta .gc-btn-primary:hover {
  background: #004d6b;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */

.ns-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.ns-animate.ns-visible {
  opacity: 1;
  transform: translateY(0);
}

.ns-animate-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.ns-animate-left.ns-visible {
  opacity: 1;
  transform: translateX(0);
}

.ns-animate-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.ns-animate-right.ns-visible {
  opacity: 1;
  transform: translateX(0);
}

.ns-animate-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.ns-animate-scale.ns-visible {
  opacity: 1;
  transform: scale(1);
}

.ns-stagger-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.ns-stagger-item.ns-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .ns-animate,
  .ns-animate-left,
  .ns-animate-right,
  .ns-animate-scale,
  .ns-stagger-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
  .ns-purpose-wrapper {
    flex-direction: column;
  }

  .ns-purpose-image {
    flex: none;
    width: 100%;
    min-height: 400px;
  }

  .ns-history-columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .ns-values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .ns-why-card-large {
    min-height: 400px;
  }

  .ns-team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ns-timeline-track {
    flex-direction: column;
    gap: 0;
    padding-left: 40px;
  }

  .ns-timeline-track::before {
    top: 0;
    bottom: 0;
    left: 48px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .ns-timeline-item {
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
    padding: 0 0 40px;
  }

  .ns-timeline-year {
    min-width: 60px;
    text-align: right;
    margin-bottom: 0;
    padding-top: 4px;
    font-size: 22px;
  }

  .ns-timeline-dot {
    margin-bottom: 0;
    margin-top: 8px;
    flex-shrink: 0;
  }

  .ns-timeline-card {
    text-align: left;
    flex: 1;
  }
}

@media (max-width: 991px) {
  .ns-mission-bar {
    padding: 40px;
  }

  .ns-mission-stats {
    gap: 24px;
  }

  .ns-mission-stat-number {
    font-size: 36px;
  }

  .ns-hero-content {
    padding: 0 40px;
  }

  .ns-hero-content h1 {
    font-size: 48px;
  }

  .ns-purpose,
  .ns-history,
  .ns-values,
  .ns-why,
  .ns-team,
  .ns-timeline {
    padding: 60px 40px;
  }

  .ns-cta {
    padding: 60px 40px;
  }

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

  .ns-team-card {
    height: 300px;
  }
}

@media (max-width: 576px) {
  .ns-mission-bar {
    padding: 32px 20px;
  }

  .ns-mission-stats {
    flex-direction: column;
    gap: 20px;
  }

  .ns-mission-stat-divider {
    width: 60px;
    height: 1px;
  }

  .ns-mission-stat-number {
    font-size: 32px;
  }

  .ns-hero {
    min-height: 400px;
  }

  .ns-hero-content {
    padding: 0 20px;
  }

  .ns-hero-content h1 {
    font-size: 36px;
  }

  .ns-purpose,
  .ns-history,
  .ns-values,
  .ns-why,
  .ns-team,
  .ns-timeline {
    padding: 48px 20px;
  }

  .ns-purpose-stats {
    flex-direction: column;
  }

  .ns-history-badges {
    flex-direction: column;
  }

  .ns-history-header h2 {
    font-size: 28px;
  }

  .ns-cta {
    padding: 48px 20px;
  }

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

  .ns-why-card-large {
    min-height: 350px;
  }

  .ns-why-card-medium {
    min-height: 280px;
  }

  .ns-cta-content h2 {
    font-size: 28px;
  }

  .ns-history-header h2,
  .ns-purpose-card-body h3,
  .ns-values-header h2,
  .ns-why-header h2,
  .ns-team-header h2,
  .ns-timeline-header h2 {
    font-size: 28px;
  }

  .ns-timeline-track {
    padding-left: 20px;
  }

  .ns-timeline-track::before {
    left: 28px;
  }

  .ns-timeline-year {
    min-width: 50px;
    font-size: 18px;
  }

  .ns-hero-content h1 {
    font-size: 28px;
  }

  .ns-purpose-image-number {
    font-size: 40px;
  }

  .ns-purpose-card {
    flex-direction: column;
    gap: 16px;
  }

  .ns-why-card-content {
    padding: 24px;
  }

  .ns-why-card-large .ns-why-card-content h3 {
    font-size: 24px;
  }
}
