/* Botones */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: var(--color-brand);
  color: white;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-base);
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition-base), box-shadow var(--transition-base), transform var(--transition-fast);
}
.btn-primary:hover {
  background: var(--color-brand-mid);
  box-shadow: 0 0 24px rgba(74,61,176,0.45);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: transparent;
  color: white;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-base);
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(255,255,255,0.35);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-base), transform var(--transition-fast);
}

.btn-secondary:hover {
  border-color: var(--color-lavender);
  color: var(--color-lavender);
  transform: translateY(-1px);
}

.btn-secondary.dark {
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-secondary.dark:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
}

/* Badges / Pills */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.875rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.badge-brand { background: var(--color-brand-pale); color: var(--color-brand); }
.badge-dark  { background: rgba(196,174,255,0.12); color: var(--color-lavender); }

/* Utility Classes para Scroll Animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transform: none;
    transition: opacity 0.6s ease !important;
  }
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16,1,0.3,1);
}

.section {
  padding: var(--space-20) 0;
}

/* --- Phase 2 Additions --- */
.btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-base);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
  transition: all var(--transition-base);
  padding-bottom: 2px;
}
.btn-link:hover {
  color: white;
  border-bottom-color: white;
}

.badge-popular {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.875rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
  margin-bottom: 1rem;
}

.section-founder {
  background: #ffffff;
  padding: var(--space-20) 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.section-founder .section-title {
  color: #0b071f;
}

.section-founder .section-subtitle {
  color: #4b5563;
}

.founder-card {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background: #110e20;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  margin-top: 0rem;
  box-shadow: var(--shadow-xl);
}

@media (min-width: 768px) {
  .founder-card {
    flex-direction: row;
    align-items: center;
    gap: 4rem;
  }
}

.founder-photo-placeholder {
  width: 200px; 
  height: 200px; 
  border-radius: 50%; 
  background-color: rgba(255, 255, 255, 0.03);
  border: 2px dashed rgba(255, 255, 255, 0.15);
  display: flex; 
  align-items: center; 
  justify-content: center;
  flex-shrink: 0;
  margin: 0 auto;
  overflow: hidden;
}

.founder-photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transform: scale(1.4);
  transform-origin: center 35%;
}

@media (min-width: 768px) {
  .founder-photo-placeholder {
    margin: 0;
  }
}

.founder-info h3 {
  font-size: 1.75rem;
  font-family: var(--font-heading);
  color: var(--color-white);
  margin-bottom: 0.25rem;
}

.founder-role {
  display: block;
  font-size: 0.9rem;
  color: #a78bfa;
  margin-bottom: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.founder-info p {
  color: #ffffff;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.founder-info p:last-of-type {
  margin-bottom: 1.5rem;
}

.founder-links {
  display: flex;
  gap: 1.5rem;
}

.founder-links a {
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.9rem;
  border-bottom: 1px solid transparent;
  transition: all var(--transition-base);
}

.founder-links a:hover {
  color: var(--color-white);
  border-bottom-color: var(--color-lavender);
}

.footer-legal {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 2rem;
  text-align: center;
}

/* Navbar Dropdown */
.nav-dropdown {
  position: relative;
  display: inline-block;
  cursor: pointer;
}
.nav-dropdown__btn {
  color: var(--color-text-dark);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
}
.nav-dropdown:hover .nav-dropdown__btn {
  color: var(--color-lavender);
}
@media (max-width: 1279px) {
  .navbar__nav.mobile-active .nav-dropdown {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    padding-bottom: 0.5rem;
    margin-bottom: 0.25rem;
  }
  .navbar__nav.mobile-active .nav-dropdown__btn {
    font-size: var(--text-lg);
    padding: 0.5rem 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: var(--color-text-dark);
  }
  .navbar__nav.mobile-active .nav-dropdown__content {
    position: static !important;
    display: none;
    flex-direction: column;
    box-shadow: none !important;
    border: none !important;
    border-left: 2px solid var(--color-lavender-dim) !important;
    border-radius: 0;
    padding: 0.25rem 0 0.5rem 1rem;
    margin: 0.25rem 0 0.5rem 0;
    background: transparent;
    min-width: unset;
  }
  .navbar__nav.mobile-active .nav-dropdown__content.open {
    display: flex;
  }
  .navbar__nav.mobile-active .nav-dropdown__content a {
    font-size: var(--text-sm);
    padding: 0.4rem 0.5rem;
  }
  .navbar__nav.mobile-active .nav-dropdown__group {
    font-size: 0.6rem;
    padding: 0.5rem 0.5rem 0.2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .navbar__nav.mobile-active .nav-dropdown__group:first-child {
    border-top: none;
  }
}
.nav-dropdown__content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--color-dark);
  min-width: 240px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-md);
  z-index: 100;
  flex-direction: column;
  padding: 0.5rem;
}
.nav-dropdown:hover .nav-dropdown__content {
  display: flex;
}
.nav-dropdown__content a {
  color: var(--color-text-dark);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  padding: 0.8rem 1rem;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background-color var(--transition-base);
  display: block;
}
.nav-dropdown__content a:hover {
  background-color: rgba(255,255,255,0.05);
  color: var(--color-lavender);
}
.nav-dropdown__group {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 700;
  color: var(--color-muted);
  padding: 0.6rem 1rem 0.2rem;
  pointer-events: none;
  border-top: 1px solid var(--color-border-dark);
  margin-top: 0.25rem;
}
.nav-dropdown__group:first-child {
  border-top: none;
  margin-top: 0;
}

/* Categorias Cards */
.categoria-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.categoria-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-brand);
  background: var(--color-bg-alt);
  box-shadow: 0 10px 40px rgba(167, 139, 250, 0.08);
}
.categoria-card h3 {
  color: var(--color-white);
  font-size: 1.2rem;
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.categoria-card p {
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}
.categoria-card .btn-link {
  font-size: 0.9rem;
  align-self: flex-start;
  margin: 0;
}

/* ==========================================================================
   SCROLLYTELLING COMPONENT
   ========================================================================== */
.scrolly {
  display: flex;
  gap: 4rem;
  position: relative;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
}

.scrolly__col-visual {
  flex: 1;
  position: sticky;
  top: 15vh;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scrolly__visual-card {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(45,0,133,0.8) 0%, rgba(5,0,15,1) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  transition: background 0.8s ease; 
}

.scrolly__visual-card::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, var(--color-brand-dark) 0%, transparent 60%);
  transform: translate(-50%, -50%);
  opacity: 0.15;
  pointer-events: none;
}

.scrolly__visual-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  opacity: 1;
  transform: scale(1);
  padding: 2rem;
  color: var(--color-white);
}

.scrolly__col-text {
  flex: 1;
  padding-top: 10vh;
  padding-bottom: 50vh;
}

.scrolly__step {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.25;
  transition: all 0.4s ease;
  padding: 2rem 0 2rem 2.5rem;
  border-left: 3px solid rgba(255,255,255,0.05);
}

.scrolly__step.is-active {
  opacity: 1;
  border-left-color: var(--color-brand);
}

.scrolly__step h3 {
  color: var(--color-white);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.scrolly__step p {
  color: var(--color-muted);
  line-height: 1.6;
  font-size: 1.05rem;
}

@media (max-width: 900px) {
  .scrolly {
    flex-direction: column;
    gap: 0;
  }
  .scrolly__col-visual {
    position: sticky;
    top: 60px;
    height: 40vh;
    width: 100%;
    z-index: 10;
    background: #0A0A0A; /* match background alt */
    padding: 1rem 0;
  }
  .scrolly__visual-card {
    height: 100%;
  }
  .scrolly__col-text {
    padding-top: 1rem;
    padding-bottom: 20vh;
  }
  .scrolly__step {
    min-height: auto;
    margin-bottom: 5rem;
    padding: 1.5rem 0 1.5rem 1.5rem;
  }
}

/* Accesibilidad: clase para ocultar visualmente pero mantener accesible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
