/* ==================== TOKENS Y VARIABLES ==================== */
:root {
  --bg-dark: #111526;
  --bg-card: #131b2e;
  --bg-card-hover: #1a253f;
  --text-main: #ffffff;
  --text-muted: #f6f8fb;

  /* Colores de marca y acentos */
  --accent-purple: hsl(271, 92%, 71%);
  --accent-purple-dark: #481374;
  --accent-blue: #3b82f6;
  --accent-dark-blue: #01193f;
  --accent-light-blue: #3bb5f6;
  --accent-rose: #e11d48;
  --accent-rose-hover: #be123c;

  --gradient-brand: var(--accent-purple-dark);
  --gradient-brand-secondary: var(--accent-blue);

  --border-color: rgba(255, 255, 255, 0.08);
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
}

/* ==================== BASE Y RESET ==================== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text-main);
  background-color: var(--bg-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: #ffffff;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0 0 1em;
  color: var(--text-muted);
}

a {
  color: inherit;
  text-decoration: none;
}

/* ==================== UTILIDADES Y LAYOUT ==================== */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent-purple);
  color: #fff;
  padding: 12px 20px;
  z-index: 100;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

.highlight-blue {
  color: var(--accent-light-blue);
  font-weight: 700;
}

.highlight-purple {
  color: var(--accent-purple);
  font-weight: 700;
}

/* ==================== BOTONES GENERALES ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: 12px;
  transition: background-color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
  background: var(--gradient-brand);
  border: none;
  color: #ffffff;
}

.btn:hover {
  filter: brightness(1.1);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--gradient-brand-secondary);
  color: #ffffff !important;
}

.btn-secondary:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
}

/* ==================== HEADER Y LOGO ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-image:
    radial-gradient(ellipse at 50% -20%, rgba(56, 189, 248, 0.25), transparent 75%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.07'/%3E%3C/svg%3E");
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.18);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 120px;
  padding: 10px 24px;
}

.site-logo {
  height: 100px !important;
  min-height: 100px !important;
  width: auto !important;
  display: block;
  object-fit: contain;
}

.logo-link {
  display: flex;
  align-items: center;
}

.main-nav {
  display: flex;
  gap: 28px;
}

.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.main-nav a:hover {
  color: #38bdf8;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 20px 24px;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}

.mobile-nav .btna {
  margin-top: 8px;
  width: 100%;
}

@media (max-width: 860px) {
  .header-row {
    height: auto;
    padding: 16px 24px;
  }
  .site-logo {
    height: 70px !important;
    min-height: 70px !important;
  }
  .main-nav {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
}

/* ==================== HERO Y ESTADÍSTICAS ==================== */
.hero {
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-light-blue);
  margin-bottom: 12px;
}

.eyebrow-light {
  color: var(--accent-purple);
}

.eyebrow-light-blue {
  color: var(--accent-light-blue);
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.15;
  margin-bottom: 20px;
}

.lede {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.lede strong {
  color: #ffffff;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-figure {
  display: flex;
  justify-content: center;
}

#graph-svg {
  width: 100%;
  max-width: 380px;
  height: auto;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 64px;
}

.stat {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: 20px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.stat:hover {
  transform: translateY(-2px);
  background-color: var(--bg-card-hover);
}

.stat-num {
  display: block;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent-purple);
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-figure {
    order: -1;
    max-width: 280px;
    margin: 0 auto;
  }
  .stat-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==================== SECCIONES GENERALES ==================== */
.section {
  padding: 90px 0;
  margin: 0;
  width: 100%;
  border-top: 1px solid var(--border-color);
}

.section-alt {
  background-color: #121c2e;
  background-image:
    radial-gradient(circle at 15% 15%, rgba(56, 189, 248, 0.15), transparent 55%),
    radial-gradient(circle at 85% 85%, rgba(168, 85, 247, 0.12), transparent 55%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.08'/%3E%3C/svg%3E");
  border-top: 1px solid rgba(56, 189, 248, 0.15);
  border-bottom: 1px solid rgba(168, 85, 247, 0.15);
  position: relative;
}

.section-dark {
  background-color: #0a1120;
  background-image:
    radial-gradient(rgba(168, 85, 247, 0.12) 1px, transparent 1px),
    radial-gradient(ellipse at 50% 0%, rgba(59, 130, 246, 0.1), transparent 70%);
  background-size: 24px 24px, 100% 100%;
  margin: 0;
  width: 100%;
  padding: 90px 0;
  border-top: 1px solid rgba(168, 85, 247, 0.2);
  border-bottom: 1px solid rgba(168, 85, 247, 0.2);
}

.section-star {
  background-color: #0b1120;
  background-image:
    radial-gradient(ellipse 60% 50% at 20% 20%, rgba(56, 189, 248, 0.16), transparent 70%),
    radial-gradient(ellipse 50% 60% at 70% 50%, rgba(225, 29, 72, 0.12), transparent 75%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(168, 85, 247, 0.14), transparent 70%);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border-top: 1px solid rgba(56, 189, 248, 0.18);
  border-bottom: 1px solid rgba(168, 85, 247, 0.18);
}

.section h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 12px;
}

.section-intro {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
}

.prose-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
}

.prose p {
  font-size: 1.05rem;
  line-height: 1.7;
}

.prose-emphasis {
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
  border-left: 3px solid var(--accent-purple);
  padding-left: 16px;
  margin-top: 16px;
}

/* ==================== TARJETAS Y COMPONENTES ==================== */

/* Estilo unificado de Tarjetas */
.definition,
.pipeline li,
.tier,
.founder,
.advisory-list li {
  background: linear-gradient(145deg, #131b2e 0%, #0d1322 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 20px;
  box-shadow:
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 25px -5px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.definition:hover,
.pipeline li:hover,
.tier:hover,
.founder:hover,
.advisory-list li:hover {
  background: rgba(26, 37, 63, 0.75) !important;
  border-color: rgba(56, 189, 248, 0.35) !important;
  transform: translateY(-4px);
  box-shadow:
    0 12px 30px -10px rgba(0, 0, 0, 0.5),
    0 0 20px 0 rgba(56, 189, 248, 0.15);
}

/* Definiciones */
.definition-list {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.definition {
  padding: 28px;
  border-radius: 24px;
}

.definition dt {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

.definition dd {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Flujo Metodológico Pipeline */
.pipeline {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.pipeline li {
  padding: 24px 16px;
  border-radius: 16px;
  text-align: center;
}

.pipeline-num {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent-purple);
  margin-bottom: 6px;
}

.pipeline-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
}

/* Observatorio */
.observatorio-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 16px 20px;
  border-radius: 14px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: #e2e8f0;
}

.product-shot {
  margin: 40px 0 0 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.product-shot img {
  width: 100%;
  height: auto;
  display: block;
}

/* Modelo de Negocio (Tiers) */
.tier-list {
  margin-top: 40px;
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.tier {
  padding: 28px 20px;
  border-radius: 20px;
}

.tier h3 {
  font-size: 1.1rem;
  color: var(--accent-light-blue);
  margin-bottom: 10px;
}

.tier p {
  font-size: 0.9rem;
  margin: 0;
}

/* Archivo y Multimedia */
.archive-figure {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.archive-figure img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.archive-figure figcaption {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 8px 12px;
  background: var(--bg-card);
  text-align: right;
}

/* Equipo y Asesores */
.founders {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.founder {
  padding: 28px;
  border-radius: 24px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 24px;
}

.founder-photo {
  width: 110px;
  height: 110px;
  min-width: 110px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 2px solid var(--border-color);
  margin: 0;
}

.founder h3 {
  font-size: 1.3rem;
}

.founder-info h3 {
  font-size: 1.25rem;
  margin-bottom: 2px;
}

.founder-info .role {
  color: var(--accent-purple);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.founder-info p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
}

.advisory-heading {
  margin-top: 56px;
  font-size: 1.3rem;
}

.advisory-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.advisory-list li {
  padding: 18px 24px;
  border-radius: 14px;
}

/* Responsive Grid Adaptations */
@media (max-width: 860px) {
  .definition-list,
  .tier-list,
  .founders,
  .advisory-list {
    grid-template-columns: 1fr;
  }

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

  .observatorio-grid,
  .prose-grid {
    grid-template-columns: 1fr;
  }

  .founder {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .founder-photo {
    margin-bottom: 16px;
  }
}

/* ==================== FOOTER ==================== */
.site-footer {
  background-color: var(--bg-dark, #111526);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 80px 20px 40px;
  text-align: center;
}

.footer-container {
  max-width: 800px;
  margin: 0 auto;
}

.footer-logo {
  height: 100px;
  width: auto;
  margin: 0 auto 32px;
  display: block;
}

.footer-hero h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  line-height: 1.3;
}

.footer-hero p {
  font-size: 1.15rem;
  color: var(--text-muted, #f6f8fb);
  margin-bottom: 40px;
  line-height: 1.6;
}

.footer-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 60px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

@media (min-width: 640px) {
  .footer-actions {
    flex-direction: row;
    gap: 24px;
  }
}