/* ============================================
   0takufit — Landing · Estética shonen/otaku
   ============================================ */

:root {
  --bg-dark: #0a0a0f;
  --bg-card: #12121a;
  --bg-card-hover: #181824;
  --text: #e8e8ed;
  --text-muted: #8a8a9a;
  --accent: #00d4aa;
  --accent-dim: rgba(0, 212, 170, 0.15);
  --accent-glow: rgba(0, 212, 170, 0.4);
  --orange: #ff6b35;
  --orange-dim: rgba(255, 107, 53, 0.2);
  --border: rgba(255, 255, 255, 0.08);
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Noto Sans', sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.noise {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
}

/* ----- Header ----- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 1.5rem;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.logo:hover {
  color: var(--text);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition);
}

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

.nav-cta {
  color: var(--accent) !important;
}

.nav-cta:hover {
  color: var(--text) !important;
}

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(10, 10, 15, 0.95);
}

/* Nav móvil abierto */
@media (max-width: 768px) {
  .nav.open {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-dark);
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    font-size: 1.25rem;
  }

  .menu-btn.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-btn.open span:nth-child(2) {
    opacity: 0;
  }

  .menu-btn.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  body.menu-open {
    overflow: hidden;
  }
}

/* ----- Hero ----- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  position: relative;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-lines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 80px,
    rgba(0, 212, 170, 0.03) 80px,
    rgba(0, 212, 170, 0.03) 81px
  );
  transform: skewX(-15deg);
  transform-origin: center;
}

.hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  max-width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, var(--accent-dim) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
}

.hero-title {
  margin-bottom: 1.5rem;
}

.hero-title-main {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 10vw, 5.5rem);
  letter-spacing: 0.02em;
  color: var(--text);
  text-shadow: 0 0 60px var(--accent-glow);
  line-height: 1.1;
}

.hero-title-sub {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.hero-perron {
  font-style: normal;
  color: var(--accent);
  font-weight: 700;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-desc strong {
  color: var(--accent);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  border-radius: 2px;
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.5; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-dark);
}

.btn-primary:hover {
  background: #00e6b8;
  box-shadow: 0 0 30px var(--accent-glow);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
}

.btn-level {
  background: var(--bg-card);
  color: var(--accent);
  border: 1px solid var(--border);
}

.btn-level:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
}

.btn-large {
  padding: 1rem 2.25rem;
  font-size: 1.1rem;
}

/* ----- Sections ----- */
.section {
  padding: 5rem 1.5rem;
}

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

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 1rem;
  color: var(--text);
}

.section-title.center {
  text-align: center;
}

.section-desc {
  text-align: center;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
}

/* ----- About Ramses ----- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--orange));
}

.about-card-inner h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin: 0.5rem 0 0.25rem;
  color: var(--accent);
}

.about-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.about-card-inner p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.about-text {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.about-text strong {
  color: var(--text);
}

.about-list {
  list-style: none;
  margin-top: 1.5rem;
}

.about-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

.about-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* ----- Levels / Courses ----- */
.levels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.level-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.level-card:hover {
  border-color: rgba(0, 212, 170, 0.3);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.level-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 40px var(--accent-dim);
}

.level-badge {
  position: absolute;
  top: -10px;
  right: 1.5rem;
  background: var(--orange);
  color: var(--bg-dark);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.level-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.level-tag {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
}

.level-name {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.level-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.level-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.level-features {
  list-style: none;
  margin-bottom: 1.5rem;
}

.level-features li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  position: relative;
}

.level-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.level-card .btn {
  margin-top: auto;
  width: 100%;
}

/* ----- CTA ----- */
.cta-section {
  position: relative;
  padding: 6rem 1.5rem;
}

.cta-bg {
  position: absolute;
  inset: 0;
}

.cta-lines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 60px,
    rgba(0, 212, 170, 0.04) 60px,
    rgba(0, 212, 170, 0.04) 61px
  );
}

.cta-box {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--orange));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.cta-box h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
  color: var(--text);
}

.cta-box p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.cta-note {
  font-size: 0.85rem !important;
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
  opacity: 0.8;
}

/* ----- Footer ----- */
.footer {
  padding: 3rem 1.5rem 2rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand .logo {
  display: inline-block;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 320px;
}

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

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0.7;
}

/* ----- Responsive ----- */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .levels-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .menu-btn {
    display: flex;
  }

  .hero {
    padding-top: 5rem;
  }

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

  .btn {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 3rem 1rem;
  }

  .level-card,
  .about-card {
    padding: 1.5rem;
  }

  .cta-box {
    padding: 2rem 1.5rem;
  }
}
