/* NOSOTROS.CSS - Peak Site Studio */
/* Colores profesionales coherentes con index y servicios */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:wght@700&display=swap');

body {
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.7;
  /* Cambio 1: El body hereda el color de fondo y texto del modo claro/oscuro del index */
  background-color: var(--bg-light);
  color: var(--text-light);
  transition: background 0.3s ease, color 0.3s ease;
}

body.dark {
  background-color: var(--bg-dark);
  color: var(--text-dark);
}

/* ====================== HERO ====================== */
.about-hero {
  background: linear-gradient(rgba(10,15,44,0.85), rgba(10,15,44,0.9)),
              url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?q=80&w=2000') center/cover no-repeat;
  text-align: center;
  padding: 160px 20px 120px;
}
.about-hero h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 20px;
  color: #ffffff; /* El hero siempre es blanco por el fondo oscuro de la imagen */
}
.about-hero p {
  font-size: 1.35rem;
  max-width: 720px;
  margin: 0 auto 40px;
  opacity: 0.95;
  color: #ffffff;
}

/* Highlight */
.highlight {
  background: linear-gradient(90deg, #00f5ff, #00aaff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ====================== RESTO DE SECCIONES ====================== */
.about-story {
  padding: 120px 20px;
  /* Cambio 2: Usamos variable para que cambie a blanco en modo claro */
  background: var(--bg-light); 
  transition: background 0.3s ease;
}

body.dark .about-story {
  background: var(--bg-dark);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}

.story-text h2 {
  font-size: 2.8rem;
  margin-bottom: 30px;
  /* Cambio 3: El texto h2 se adapta al modo claro/oscuro */
  color: var(--text-light);
}
body.dark .story-text h2 {
  color: var(--text-dark);
}

.story-text .lead {
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 25px;
  color: var(--text-soft-light);
}
body.dark .story-text .lead {
  color: var(--text-soft-dark);
}

.story-text p {
  font-size: 1.15rem;
  margin-bottom: 22px;
  color: var(--text-soft-light);
}
body.dark .story-text p {
  color: var(--text-soft-dark);
}

.story-text .final {
  color: #00f5ff;
  font-weight: 600;
  font-size: 1.22rem;
}
.story-image-cartoon img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

/* Valores */
.about-values {
  /* Cambio 4: Fondo adaptativo */
  background: var(--bg-light);
  padding: 110px 20px;
  transition: background 0.3s ease;
}
body.dark .about-values {
  background: var(--bg-dark);
}

.section-title {
  text-align: center;
  font-size: 2.6rem;
  margin-bottom: 60px;
  color: var(--text-light);
}
body.dark .section-title {
  color: var(--text-dark);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.value-card {
  /* Cambio 5: La tarjeta usa el color de fondo del modo claro del index */
  background: var(--card-bg-light);
  padding: 40px 30px;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  transition: all 0.4s ease;
}
body.dark .value-card {
  background: var(--card-bg-dark);
  border: 1px solid var(--border-dark);
}

.value-card h3 {
  color: var(--text-light);
}
body.dark .value-card h3 {
  color: var(--text-dark);
}

.value-card p {
  color: var(--text-soft-light);
}
body.dark .value-card p {
  color: var(--text-soft-dark);
}

.value-card:hover {
  transform: translateY(-12px);
  border-color: #00f5ff;
}

/* CTA */
.cta {
  background: linear-gradient(135deg, #0a0f2c, #1a2540);
  text-align: center;
  padding: 100px 20px;
}

/* Botón principal */
.btn-primary {
  background: linear-gradient(90deg, #00f5ff, #0099ff);
  color: #0a0f2c;
  padding: 18px 48px;
  border-radius: 60px;
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}
.btn-primary:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0,245,255,0.4);
}

/* Footer */
.footer-pro {
  background: #080b14;
  color: #aaa;
  padding: 100px 20px 50px;
}
.footer-pro h4 {
  color: white;
}
.footer-pro a {
  color: #888;
}
.footer-pro a:hover {
  color: #00f5ff;
}
.footer-bottom {
  border-top: 1px solid #1f2538;
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Responsive */
@media (max-width: 868px) {
  .story-grid { grid-template-columns: 1fr; gap: 60px; }
  .about-hero h1 { font-size: 3rem; }
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

/* Brand y Logo */
.brand {
  display: flex;
  align-items: center;
  gap: 5px;
}
.logo {
  height: 28px;
  width: auto;
}
.brand-name {
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
}

/* ====================== ANIMACIONES SCROLL REVEAL ====================== */

.fade-up,
.fade-left,
.fade-right {
  opacity: 0;
  transition: all 0.9s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.fade-up {
  transform: translateY(50px);
}

.fade-left {
  transform: translateX(-60px);
}

.fade-right {
  transform: translateX(60px);
}

.fade-up.visible,
.fade-left.visible,
.fade-right.visible {
  opacity: 1;
  transform: translate(0);
}

.fade-up.delay  { transition-delay: 0.1s; }
.fade-up.delay2 { transition-delay: 0.25s; }
.fade-up.delay3 { transition-delay: 0.4s; }

.about-hero * {
  transition: none !important;
}