/* ================= PÁGINA DE ECOSSISTEMA (SLIDE 04) ================= */
.slide-04-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px;
  min-height: 100dvh; /* Mudado de height para min-height para evitar bugs de scroll */
  width: 100vw;
  position: relative;
  background-color: #0a1128;
  color: #ffffff;
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Fundo padrão Cachina - Reativado com o seletor correto */
.slide-04-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
  pointer-events: none;
}

.slide-04-container::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(
    circle,
    rgba(14, 165, 233, 0.1) 0%,
    rgba(99, 102, 241, 0.08) 40%,
    transparent 70%
  );
  filter: blur(100px);
  z-index: 0;
}

.slide-ecosystem-content {
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Header */
.ecosystem-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-top: 15px;
  line-height: 1.1;
}

.ecosystem-title span {
  color: #0ea5e9;
  text-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
}

.ecosystem-subtitle {
  color: #94a3b8;
  font-size: 1.2rem;
  max-width: 700px;
  margin-top: 10px;
}

/* Grid de Cards */
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.eco-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.4s ease;
  min-height: 250px;
}

.eco-card:hover {
  transform: translateY(-8px);
  background: rgba(14, 165, 233, 0.05);
  border-color: #0ea5e9;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.eco-card.featured {
  border-color: rgba(14, 165, 233, 0.4);
  background: rgba(14, 165, 233, 0.03);
}

.eco-icon {
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.eco-body h3 {
  font-size: 1.2rem;
  color: #e2e8f0;
  margin-bottom: 10px;
}

.eco-body p {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.5;
}

.eco-tag {
  margin-top: 20px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #0ea5e9;
  letter-spacing: 1.5px;
}

.ecosystem-footer-text {
  text-align: center;
  color: #475569;
  font-size: 0.9rem;
  font-style: italic;
  margin-top: 20px;
}

/* Rodapé */
.slide-01-footer {
  position: absolute;
  bottom: 25px;
  left: 60px;
  right: 60px;
  display: flex;
  justify-content: space-between;
  color: #475569;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 15px;
  z-index: 3;
}

/* ================= RESPONSIVIDADE ================= */
@media (max-width: 1100px) {
  .ecosystem-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ecosystem-title {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .slide-04-container {
    padding: 80px 24px 40px; /* Mais espaço no topo para o mobile */
    justify-content: flex-start;
  }

  .ecosystem-grid {
    grid-template-columns: 1fr;
  }

  .ecosystem-title {
    font-size: 2.2rem;
  }

  .slide-01-footer {
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
    margin-top: 40px;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
}
/* =============================================================
   PÁGINA 02: VALORES (RESPONSIVIDADE BLINDADA TOTAL)
   ============================================================= */

.slide-02-container.values-page {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  padding: 60px;
  height: 100vh;
  height: 100dvh; /* Altura dinâmica para iOS */
  width: 100vw;
  background-color: #0a1128;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* FUNDO E BRILHOS (IDÊNTICO AO SLIDE 01) */
.slide-02-container.values-page::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
  pointer-events: none;
}

.slide-02-container.values-page::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
  filter: blur(80px);
  z-index: 0;
}

/* ... (Mantenha seus estilos de .sidebar-identity, .value-card, etc aqui) ... */

/* =============================================================
   6. RESPONSIVIDADE (VERTICAL - MOBILE & TABLET)
   ============================================================= */
@media (max-width: 1024px) {
  .slide-02-container.values-page {
    flex-direction: column;
    height: auto;
    min-height: 100dvh;
    padding: 60px 30px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
  }

  /* Remove efeitos pesados no mobile para fluidez */
  .slide-02-container.values-page::before,
  .slide-02-container.values-page::after {
    display: none;
  }

  .sidebar-identity {
    min-width: 100%;
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid rgba(14, 165, 233, 0.2);
    padding-bottom: 30px;
    margin-bottom: 30px;
  }

  .values-content {
    padding-left: 0;
    width: 100%;
    text-align: center;
  }

  .cards-wrapper {
    flex-direction: column; /* Empilha os cards */
    gap: 20px;
  }

  .value-card {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .slide-01-footer {
    position: relative;
    margin-top: 50px;
    bottom: 0;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* =============================================================
   7. RESPONSIVIDADE (HORIZONTAL - LANDSCAPE)
   ============================================================= */
@media (max-height: 550px) and (orientation: landscape) {
  .slide-04-container.values-page {
    height: auto;
    min-height: 100dvh;
    padding: 30px;
    flex-direction: row; /* Volta para row para aproveitar a largura */
    align-items: flex-start;
  }

  .sidebar-identity {
    min-width: 200px;
    border-right: 1px solid rgba(14, 165, 233, 0.2);
    border-bottom: none;
    padding-bottom: 0;
  }

  .sidebar-identity .mini-logo {
    width: 120px;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }

  .cards-wrapper {
    flex-direction: row; /* Cards lado a lado no landscape */
    flex-wrap: wrap; /* Quebra se não couber */
    justify-content: center;
  }

  .value-card {
    flex: 1 1 200px; /* Base de 200px mas pode crescer */
    padding: 20px 15px;
  }

  .card-icon {
    font-size: 1.8rem;
  }

  .value-card h3 {
    font-size: 1.1rem;
  }

  .value-card p {
    font-size: 0.8rem;
  }
}