:root {
  --bg: #050608;
  --bg-alt: #0c1017;
  --surface: #10141f;
  --surface-soft: #151b27;
  --accent: #f5c96b;
  --accent-soft: #00c7b3;
  --text: #f5f5f5;
  --muted: #9aa4b2;
  --danger: #ff5b6c;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.55);
  --shadow-card: 0 12px 30px rgba(0, 0, 0, 0.55);
  --transition-fast: 0.18s ease-out;
  --transition-med: 0.28s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  background: radial-gradient(circle at top, #111626 0, #050608 55%);
  color: var(--text);
}

/* Reutilizables */

.section {
  padding: 6rem 1.5rem;
}

.section-alt {
  background: radial-gradient(circle at top, #111626 0, #050608 60%);
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto;
}

/* Navbar */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(5, 6, 8, 0.96), rgba(5, 6, 8, 0.6));
  border-bottom: 1px solid rgba(245, 201, 107, 0.08);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
}

.nav-logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.nav-title {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-title-main {
  font-weight: 700;
  font-size: 1rem;
}

.nav-title-sub {
  font-size: 0.75rem;
  color: var(--muted);
}

.nav-links {
  display: flex;
  gap: 1.1rem;
  font-size: 0.9rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  transition: width var(--transition-med);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #161616;
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  border: none;
}

.nav-cta:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  margin: 3px 0;
}

/* Hero */

.hero {
  position: relative;
  min-height: 80vh;
  padding: 6rem 1.5rem 4rem;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Galería de fondo en el hero */

.hero-bg-gallery {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -1;
}

.hero-bg-track {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 200%;
  display: flex;
  animation: heroSlide 38s linear infinite;
}

.hero-bg-track img {
  flex: 1 0 25%;
  width: 25%;
  height: 100%;
  object-fit: cover;
  filter: blur(3px) brightness(0.6);
  opacity: 0.8;
  transform: scale(1.05);
}

/* animación slider horizontal suave */
@keyframes heroSlide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.hero-bg-layer {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(0, 199, 179, 0.22), transparent 55%),
    radial-gradient(circle at bottom right, rgba(245, 201, 107, 0.25), transparent 55%);
  opacity: 0.9;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
  z-index: 1;
}

.hero-text h1 {
  font-size: clamp(2.2rem, 5vw, 3rem);
  margin-bottom: 0.5rem;
}

.hero-text h1 span {
  background: linear-gradient(120deg, var(--accent), var(--accent-soft));
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  color: var(--muted);
  margin-bottom: 1.4rem;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-pill);
  border: none;
  text-decoration: none;
  cursor: pointer;
  font-size: 0.9rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #161616;
  box-shadow: var(--shadow-soft);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(245, 201, 107, 0.4);
}

.btn.ghost:hover {
  background: rgba(245, 201, 107, 0.12);
}

.btn.outline {
  background: transparent;
  border: 1px solid rgba(0, 199, 179, 0.6);
  color: var(--accent-soft);
}

.btn.outline:hover {
  background: rgba(0, 199, 179, 0.15);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.hero-meta span {
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(15, 25, 39, 0.9);
  border: 1px solid rgba(245, 201, 107, 0.12);
}

.hero-showcase {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.hero-card {
  background: radial-gradient(circle at top, #1b2534, #10141f 65%);
  padding: 1.4rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(245, 201, 107, 0.2);
}

.hero-card .hero-tag {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgba(0, 199, 179, 0.2);
  color: var(--accent-soft);
  margin-bottom: 0.4rem;
}

.hero-card h2 {
  margin: 0 0 0.4rem;
  font-size: 1.4rem;
}

.hero-card p {
  margin: 0;
  color: var(--muted);
}

.hero-stats {
  display: flex;
  gap: 0.9rem;
}

.stat {
  flex: 1;
  padding: 0.8rem;
  border-radius: var(--radius-md);
  background: rgba(12, 16, 23, 0.9);
  border: 1px solid rgba(0, 199, 179, 0.25);
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--muted);
}

.scroll-down {
  position: absolute;
  bottom: 1.7rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* About */

.about-grid {
  display: grid;
  gap: 1.3rem;
}

.about-card {
  background: linear-gradient(145deg, rgba(16, 20, 31, 0.95), rgba(11, 16, 25, 0.98));
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  border: 1px solid rgba(245, 201, 107, 0.18);
  box-shadow: var(--shadow-card);
}

.about-card h3 {
  margin-top: 0;
}

/* Features */

.features-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-card {
  background: rgba(11, 16, 25, 0.95);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  border: 1px solid rgba(0, 199, 179, 0.2);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-med), box-shadow var(--transition-med), border-color var(--transition-med);
}

.feature-card i {
  font-size: 1.5rem;
  margin-bottom: 0.7rem;
  color: var(--accent-soft);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
}

/* Community */

.community-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2.2rem;
  align-items: center;
}

.pill-list {
  list-style: none;
  padding: 0;
  margin: 1.1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: var(--muted);
}

.community-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.6rem;
}

.community-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pulse-card {
  position: relative;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-lg);
  background: rgba(11, 16, 25, 0.95);
  border: 1px solid rgba(0, 199, 179, 0.4);
}

.pulse-card .dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  box-shadow: 0 0 16px rgba(0, 199, 179, 0.8);
  top: 0.9rem;
  right: 1rem;
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.activity-card {
  padding: 1rem 1.2rem;
  border-radius: var(--radius-lg);
  background: rgba(11, 16, 25, 0.96);
  border: 1px solid rgba(245, 201, 107, 0.4);
}

.activity-card h3 {
  margin-top: 0;
}

.activity-bars {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.activity-bars .bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.activity-bars .bar span {
  display: block;
  height: 6px;
  border-radius: 999px;
  flex: 1;
  background: linear-gradient(90deg, var(--accent-soft), var(--accent));
  transform-origin: left;
  transform: scaleX(var(--value));
}

/* Devs */

.dev-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.dev-card {
  background: rgba(11, 16, 25, 0.98);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  border: 1px solid rgba(0, 199, 179, 0.3);
  box-shadow: var(--shadow-card);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.dev-card::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at top, rgba(245, 201, 107, 0.16), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-med);
}

.dev-card:hover::before {
  opacity: 1;
}

.dev-avatar-wrapper {
  width: 88px;
  height: 88px;
  margin: 0 auto 0.6rem;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid rgba(0, 199, 179, 0.7);
}

.dev-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #202634;
}

.dev-role {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(0, 199, 179, 0.16);
  color: var(--accent-soft);
  margin-bottom: 0.4rem;
}

.dev-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--accent);
  margin-top: 0.4rem;
}

/* FAQ */

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.faq-item {
  border-radius: var(--radius-lg);
  background: rgba(11, 16, 25, 0.96);
  border: 1px solid rgba(245, 201, 107, 0.25);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  color: var(--text);
  padding: 0.9rem 1.2rem;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-question i {
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.2rem;
  color: var(--muted);
  font-size: 0.9rem;
  transition: max-height var(--transition-med), padding-bottom var(--transition-med);
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding-bottom: 0.9rem;
}

/* Footer */

.footer {
  border-top: 1px solid rgba(245, 201, 107, 0.15);
  background: #050608;
  padding: 1.8rem 1.5rem 2.3rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 1.3rem;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.footer-brand p {
  margin: 0;
  font-weight: 600;
}

.footer-brand span {
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-links a i {
  margin-right: 0.3rem;
}

.footer-copy {
  grid-column: 1 / -1;
  font-size: 0.75rem;
  color: var(--muted);
}

/* Back to top */

#back-to-top {
  position: fixed;
  bottom: 1.2rem;
  right: 1.2rem;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, var(--accent), var(--accent-soft));
  color: #141414;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity var(--transition-fast), visibility var(--transition-fast), transform var(--transition-fast);
  z-index: 60;
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Scroll reveal */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */

@media (max-width: 900px) {
  .hero-inner,
  .community-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 5.3rem;
  }

  .hero-showcase {
    order: -1;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    text-align: left;
  }
}

@media (max-width: 780px) {
  .nav-inner {
    padding-inline: 1rem;
  }

  .nav-links {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(5, 6, 8, 0.98);
    padding: 0.7rem 1.4rem 1rem;
    border-bottom: 1px solid rgba(245, 201, 107, 0.15);
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
  }

  .nav-links.open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: all;
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding-bottom: 3.3rem;
  }

  .scroll-down {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-stats {
    flex-direction: column;
  }
}
