/* NOSOTROS.CSS - Peak Site Studio */

@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;
  background-clip: text; /* Soluciona la advertencia garantizando compatibilidad estándar */
  -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;
}
/* Contenedor e imagen de la sección de identidad corporativa */
.story-image-cartoon img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Adaptación de bordes y sombras para el entorno en modo claro */
body:not(.dark) .story-image-cartoon img {
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

/* Efecto interactivo al pasar el cursor sobre el recurso visual */
.story-image-cartoon img:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 55px rgba(0, 212, 255, 0.2);
}

/* Brand-art-container */
.brand-art-container {
  position: relative;
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

body:not(.dark) .brand-art-container {
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.art-glow-radial {
  position: absolute;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(0, 245, 255, 0.25) 0%, rgba(0, 153, 255, 0) 70%);
  top: 10%;
  right: 10%;
  z-index: 1;
}

.art-mountain-peak {
  position: absolute;
  bottom: 0;
  width: 120%;
  height: 60%;
  background: linear-gradient(to top, rgba(0, 212, 255, 0.15), rgba(0, 153, 255, 0));
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  z-index: 2;
}

.art-grid-overlay {
  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: 20px 20px;
  z-index: 3;
}

body:not(.dark) .art-grid-overlay {
  background-image: linear-gradient(rgba(0, 153, 255, 0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(0, 153, 255, 0.04) 1px, transparent 1px);
}

.art-floating-card {
  position: relative;
  z-index: 4;
  width: 180px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  animation: floatingArtifact 4s ease-in-out infinite;
}

body:not(.dark) .art-floating-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 153, 255, 0.15);
  box-shadow: 0 15px 35px rgba(0, 153, 255, 0.08);
}

.art-card-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 12px;
}

.art-card-line {
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  margin-bottom: 8px;
}

body:not(.dark) .art-card-line {
  background: #cbd5e1;
}

.art-card-line.short {
  width: 40%;
  background: linear-gradient(90deg, #00f5ff, #0099ff);
}

.art-card-line.long {
  width: 85%;
  margin-bottom: 0;
}

@keyframes floatingArtifact {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(1deg);
  }
}

/* ==========================================================================
   ESTILOS PARA EL TEXTO OPTIMIZADO SEO
   ========================================================================== */
.story-seo-text {
  padding: 20px 0;
  max-width: 100%;
}

.story-seo-text h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
  background: linear-gradient(90deg, #00f5ff, #00aaff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.story-seo-text p {
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 22px;
  color: var(--text-soft-light, #475569);
}

body.dark .story-seo-text p {
  color: var(--text-soft-dark, #94a3b8);
}

.story-seo-text strong {
  color: var(--text-light, #0f172a);
  font-weight: 600;
}

body.dark .story-seo-text strong {
  color: var(--text-dark, #ffffff);
}

/* Valores */
.about-values {
  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 {
  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 EN MODO CLARO (CONTRASTE PERFECTO)
   ======================================= */
body:not(.dark) .cta {
  background: #ffffff !important; /* Fondo blanco puro */
  border-top: 1px solid var(--border-light, #e2e8f0);
  border-bottom: 1px solid var(--border-light, #e2e8f0);
}

body:not(.dark) .cta h2 {
  color: #0f172a !important; 
}

body:not(.dark) .cta p {
  color: #475569 !important; 
}

/* 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;
}

/* Animations 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;
}

/* ==========================================================================
   BLINDAJE DE ACOPLE DE FOOTER (EVITA FILTRACIONES DEL MARGIN GENERAL)
   ========================================================================== */
.about-page {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
.cta {
  margin-bottom: 0 !important;
}
.footer-pro {
  margin-top: 0 !important;
}

/* ==========================================================================
   SECCIÓN EQUIPO (NOVEDAD)
   ========================================================================== */
.about-team {
  padding: 110px 20px;
  background: var(--bg-light);
  transition: background 0.3s ease;
  text-align: center;
}

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

.team-subtitle {
  font-size: 1.2rem;
  color: var(--text-soft-light);
  max-width: 650px;
  margin: -35px auto 60px auto;
}

body.dark .team-subtitle {
  color: var(--text-soft-dark);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.team-card {
  background: var(--card-bg-light);
  padding: 40px 30px;
  border-radius: 24px;
  border: 1px solid var(--border-light);
  text-align: center;
  transition: all 0.4s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

body.dark .team-card {
  background: var(--card-bg-dark);
  border: 1px solid var(--border-dark);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.team-avatar {
  width: 130px;
  height: 130px;
  margin: 0 auto 24px auto;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #00f5ff;
  box-shadow: 0 8px 25px rgba(0, 245, 255, 0.25);
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--text-light);
}

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

.team-role {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #00aaff;
  margin-bottom: 16px;
}

.team-card p {
  font-size: 1.05rem;
  color: var(--text-soft-light);
  margin-bottom: 24px;
  line-height: 1.6;
}

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

.team-social a {
  display: inline-block;
  font-size: 0.95krem;
  font-weight: 600;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

body.dark .team-social a {
  color: var(--text-dark);
}

.team-social a:hover {
  color: #00f5ff;
}

/* ==========================================================================
   AVATAR DE INICIALES (Alternativa sin fotos personales)
   ========================================================================== */
.team-avatar-initials {
  width: 130px;
  height: 130px;
  margin: 0 auto 24px auto;
  border-radius: 50%;
  background: linear-gradient(135deg, #0a0f1d 0%, #1a233a 100%);
  border: 3px solid #00f5ff;
  box-shadow: 0 8px 25px rgba(0, 245, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-avatar-initials:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 245, 255, 0.35);
}

.team-avatar-initials span {
  font-size: 2.2rem;
  font-weight: 700;
  color: #00f5ff;
  letter-spacing: 2px;
  font-family: 'Inter', sans-serif;
}