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

:root {
  --red: #e32828;
  --red-dark: #781414;
  --green: #35df3a;
  --green-soft: #80ff80;
  --white: #f4f4f4;
  --glass: rgba(18, 18, 18, .72);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: #020202;
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

.bg {
  position: fixed;
  inset: 0;
  background: url("assets/fondo.png") center/cover no-repeat;
  filter: brightness(.42) contrast(1.15) saturate(1.05);
  transform: scale(1.06);
  transition: transform .22s ease-out;
  z-index: -7;
}

.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.24), rgba(0,0,0,.35) 42%, rgba(0,0,0,.92) 100%),
    radial-gradient(circle at 50% 30%, rgba(120,0,0,.18), transparent 38%);
}

.bg-vignette {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at center, transparent 0 34%, rgba(0,0,0,.72) 100%),
    linear-gradient(to right, rgba(0,0,0,.82), transparent 20%, transparent 80%, rgba(0,0,0,.82));
  z-index: -6;
  pointer-events: none;
}

.fog {
  position: fixed;
  inset: -15%;
  background:
    radial-gradient(circle at 20% 35%, rgba(255,255,255,.09), transparent 28%),
    radial-gradient(circle at 80% 60%, rgba(255,255,255,.06), transparent 34%),
    radial-gradient(circle at 50% 95%, rgba(55,255,75,.05), transparent 25%);
  animation: fogMove 13s infinite alternate ease-in-out;
  z-index: -5;
  pointer-events: none;
}

@keyframes fogMove {
  from { transform: translate3d(-35px, 0, 0); opacity: .38; }
  to { transform: translate3d(35px, -10px, 0); opacity: .7; }
}

/* Loader */
.loader {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(150,0,0,.18), transparent 34%),
    #020202;
  z-index: 999;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  transition: opacity .8s ease, visibility .8s ease;
}

.loader.hide {
  opacity: 0;
  visibility: hidden;
}

.loader-logo-img {
  width: min(210px, 46vw);
  filter: drop-shadow(0 0 18px rgba(255, 0, 0, .48));
  animation: loaderLogo 1.15s cubic-bezier(.2,.8,.2,1) forwards, loaderPulse 2.2s ease-in-out infinite 1.15s;
}

.loading-text {
  margin-top: 18px;
  color: var(--green-soft);
  font-family: monospace;
  font-weight: 800;
  letter-spacing: 4px;
  text-shadow: 0 0 12px rgba(100,255,100,.45);
  animation: blinkText 1.2s infinite;
}

.loading-bar {
  width: min(240px, 70vw);
  height: 10px;
  margin-top: 18px;
  background: #111;
  border: 2px solid #282828;
  box-shadow: 0 0 22px rgba(255, 0, 0, .18);
  overflow: hidden;
}

.loading-bar span {
  display: block;
  width: 48%;
  height: 100%;
  background: linear-gradient(90deg, var(--red), #fff, var(--red));
  animation: loadingMove 1.35s infinite ease-in-out;
}

@keyframes loaderLogo {
  from { opacity: 0; transform: translateY(-55px) scale(.82); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes loaderPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 18px rgba(255,0,0,.45)); }
  50% { transform: scale(1.035); filter: drop-shadow(0 0 34px rgba(255,0,0,.74)); }
}

@keyframes blinkText {
  0%, 100% { opacity: .5; }
  50% { opacity: 1; }
}

@keyframes loadingMove {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(260%); }
}

/* Navbar */
.metal-navbar {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1230px, 88vw);
  min-height: 98px;
  padding: 16px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(72,72,72,.78), rgba(7,7,7,.88) 58%),
    repeating-linear-gradient(45deg, transparent 0 8px, rgba(255,255,255,.04) 8px 10px);
  border: 1px solid rgba(255,255,255,.24);
  box-shadow:
    inset 0 0 22px rgba(255,255,255,.07),
    0 18px 48px rgba(0,0,0,.65),
    0 0 40px rgba(255,0,0,.08);
  backdrop-filter: blur(13px);
}

.brand {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 12px;
  background: radial-gradient(circle, rgba(255,0,0,.18), transparent 70%);
}

.brand img {
  height: 64px;
  filter: drop-shadow(0 0 13px rgba(255,0,0,.55));
  transition: transform .25s ease, filter .25s ease;
}

.brand:hover img {
  transform: scale(1.08) rotate(-2deg);
  filter: drop-shadow(0 0 24px rgba(255,0,0,.75));
}

nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

nav a {
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 20px;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .2px;
  border-left: 1px solid rgba(255,255,255,.14);
  transition: color .2s ease, transform .2s ease, text-shadow .2s ease;
}

nav a:hover {
  color: #fff;
  transform: translateY(-2px);
  text-shadow: 0 0 16px rgba(255,255,255,.55), 0 0 18px rgba(255,0,0,.35);
}

nav i {
  font-size: 22px;
}

/* Hero */
.hero {
  min-height: 100vh;
  width: min(1380px, 92vw);
  margin: 0 auto;
  padding: 128px 0 74px;
  display: grid;
  align-items: center;
  gap: 22px;
}

.hero-content {
  display: grid;
  justify-items: center;
  text-align: center;
  animation: fadeUp 1s ease forwards;
}

.hero-logo-wrap {
  position: relative;
  width: min(760px, 86vw);
  margin: 2px auto 0;
}

.hero-logo-wrap::before {
  content: "";
  position: absolute;
  inset: 18% 8% 5%;
  background: radial-gradient(circle, rgba(255,0,0,.25), transparent 64%);
  filter: blur(18px);
  opacity: .95;
  z-index: -1;
}

.hero-logo-3d {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter:
    drop-shadow(0 24px 34px rgba(0,0,0,.74))
    drop-shadow(0 0 22px rgba(255,0,0,.34));
  animation: heroLogoIn .9s ease forwards, heroFloat 5.5s ease-in-out infinite .9s;
}

.hero-description {
  max-width: 760px;
  margin: -4px auto 0;
  font-size: clamp(18px, 1.75vw, 24px);
  line-height: 1.45;
  color: rgba(255,255,255,.88);
  text-shadow: 0 2px 16px rgba(0,0,0,.9);
}

.hero-divider {
  width: min(340px, 60vw);
  height: 22px;
  margin: 18px auto 0;
  position: relative;
}

.hero-divider::before,
.hero-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  height: 2px;
  width: 42%;
  background: linear-gradient(90deg, transparent, var(--red));
  box-shadow: 0 0 14px rgba(255,0,0,.55);
}

.hero-divider::before { left: 0; }
.hero-divider::after { right: 0; transform: scaleX(-1); }
.hero-divider span {
  width: 14px;
  height: 14px;
  display: block;
  margin: 4px auto 0;
  background: var(--red);
  transform: rotate(45deg);
  box-shadow: 0 0 18px rgba(255,0,0,.75);
}

@keyframes heroLogoIn {
  from { opacity: 0; transform: translateY(35px) scale(.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 34px;
  align-items: stretch;
}

.card {
  position: relative;
  min-height: 285px;
  padding: 42px;
  border-radius: 22px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 230px 1fr;
  align-items: center;
  gap: 26px;
  background:
    linear-gradient(145deg, rgba(42,42,42,.74), rgba(5,5,5,.92)),
    radial-gradient(circle at 20% 15%, rgba(255,255,255,.08), transparent 36%);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow:
    inset 0 0 38px rgba(255,255,255,.045),
    0 22px 54px rgba(0,0,0,.58);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.16), transparent);
  transform: translateX(-120%);
  transition: transform .7s ease;
}

.card:hover::before {
  transform: translateX(120%);
}

.card:hover {
  transform: translateY(-11px);
}

.card-white {
  border-color: rgba(255,255,255,.34);
  box-shadow: 0 0 34px rgba(255,255,255,.16), 0 0 28px rgba(227,40,40,.12), inset 0 0 38px rgba(255,255,255,.045);
}

.card-red {
  border-color: rgba(255,50,50,.3);
  box-shadow: 0 0 34px rgba(255,35,35,.18), inset 0 0 38px rgba(255,255,255,.04);
}

.card-copy {
  position: relative;
  z-index: 2;
}

.card h2 {
  font-family: Impact, Haettenschweiler, 'Arial Black', sans-serif;
  font-size: clamp(44px, 4.5vw, 62px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: 0 4px 0 #111, 0 0 18px rgba(255,255,255,.24);
}

.card h2::after {
  content: "";
  display: block;
  width: 54px;
  height: 4px;
  margin-top: 16px;
  border-radius: 999px;
}

.card-white h2::after { background: #fff; box-shadow: 0 0 16px rgba(255,255,255,.65), 0 0 12px rgba(227,40,40,.55); }
.card-red h2::after { background: var(--red); box-shadow: 0 0 16px rgba(227,40,40,.7); }

.card p {
  max-width: 350px;
  margin: 22px 0 30px;
  color: rgba(255,255,255,.78);
  font-size: 20px;
  line-height: 1.45;
}

button {
  border: 0;
  padding: 17px 34px;
  border-radius: 12px;
  color: white;
  font-weight: 900;
  letter-spacing: .5px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

button i {
  margin-left: 10px;
}

.card-white button {
  background: linear-gradient(145deg, #f3f3f3, #ffffff);
  color: #141414;
  box-shadow: 0 8px 0 #8d8d8d, 0 0 24px rgba(255,255,255,.22), 0 0 18px rgba(227,40,40,.18);
}

.card-red button {
  background: linear-gradient(145deg, #941c1c, #d72f2f);
  box-shadow: 0 8px 0 #4d0c0c, 0 0 24px rgba(215,47,47,.28);
}

button:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
}

button:active {
  transform: translateY(5px);
  box-shadow: 0 3px 0 #111;
}

.card-art-wrap {
  position: relative;
  width: 220px;
  height: 220px;
  display: grid;
  place-items: center;
  z-index: 2;
}

.card-art-wrap::before {
  content: "";
  position: absolute;
  width: 72%;
  height: 72%;
  border-radius: 50%;
  filter: blur(28px);
  opacity: .56;
  animation: artAura 3.2s ease-in-out infinite;
}

.card-white .card-art-wrap::before {
  background: radial-gradient(circle, rgba(255,255,255,.65), rgba(227,40,40,.26), transparent 70%);
}

.card-red .card-art-wrap::before {
  background: radial-gradient(circle, rgba(255,48,48,.62), rgba(255,255,255,.18), transparent 70%);
}

.card-art {
  position: relative;
  width: min(210px, 100%);
  max-height: 215px;
  object-fit: contain;
  filter: drop-shadow(0 22px 30px rgba(0,0,0,.75));
  animation: artFloat 3.8s ease-in-out infinite;
}

.card-white .card-art {
  filter:
    drop-shadow(0 22px 30px rgba(0,0,0,.75))
    drop-shadow(0 0 16px rgba(255,255,255,.28))
    drop-shadow(0 0 13px rgba(227,40,40,.16));
}

.card-red .card-art {
  filter:
    drop-shadow(0 22px 30px rgba(0,0,0,.75))
    drop-shadow(0 0 18px rgba(227,40,40,.42));
}

@keyframes artFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-12px) scale(1.025); }
}

@keyframes artAura {
  0%, 100% { transform: scale(.96); opacity: .48; }
  50% { transform: scale(1.08); opacity: .7; }
}

/* Particles */
.particle,
.leaf {
  position: fixed;
  pointer-events: none;
  z-index: -1;
}

.particle {
  width: 5px;
  height: 5px;
  background: #79ff79;
  border-radius: 50%;
  box-shadow: 0 0 12px #79ff79;
  animation: particleMove linear infinite;
}

@keyframes particleMove {
  from { transform: translateY(112vh); opacity: 0; }
  20% { opacity: 1; }
  to { transform: translateY(-22vh); opacity: 0; }
}

.leaf {
  width: 18px;
  height: 10px;
  background: #3e8f38;
  border-radius: 80% 0 80% 0;
  animation: leafFall linear infinite;
  opacity: .78;
  filter: drop-shadow(0 0 4px rgba(88,255,88,.2));
}

@keyframes leafFall {
  from { transform: translateY(-10vh) translateX(0) rotate(0deg); }
  to { transform: translateY(112vh) translateX(90px) rotate(360deg); }
}

/* Tutorial */
.tutorial-float {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 80;
  padding: 18px 28px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(65,65,65,.92), rgba(7,7,7,.96));
  color: white;
  font-weight: 900;
  letter-spacing: .4px;
  box-shadow:
    inset 0 0 18px rgba(255,255,255,.07),
    0 15px 35px rgba(0,0,0,.55),
    0 0 22px rgba(255,255,255,.08);
  cursor: pointer;
}

.tutorial-float:hover {
  transform: translateY(-4px);
  box-shadow:
    inset 0 0 18px rgba(255,255,255,.12),
    0 18px 40px rgba(0,0,0,.64),
    0 0 32px rgba(255,255,255,.18);
}

.tutorial-modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  z-index: 200;
}

.tutorial-modal.show {
  display: grid;
}

.tutorial-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(10px);
}

.tutorial-box {
  position: relative;
  width: min(1050px, 92vw);
  max-height: 92vh;
  overflow-y: auto;
  padding: 34px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(42,42,42,.98), rgba(7,7,7,.98));
  border: 1px solid rgba(255,255,255,.18);
  box-shadow:
    inset 0 0 35px rgba(255,255,255,.05),
    0 0 70px rgba(0,0,0,.85),
    0 0 45px rgba(80,255,80,.14);
  animation: openBook .35s ease forwards;
}

@keyframes openBook {
  from { opacity: 0; transform: translateY(35px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.tutorial-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(145deg, #721a1a, #d92b2b);
  color: white;
  border: 0;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 0 #3d0b0b;
  z-index: 5;
}

.tutorial-header {
  text-align: center;
  margin-bottom: 24px;
}

.tutorial-header span {
  color: var(--green-soft);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 13px;
}

.tutorial-header h2 {
  margin-top: 8px;
  font-size: clamp(34px, 6vw, 64px);
  text-transform: uppercase;
  text-shadow: 0 5px 0 #1f1f1f, 0 0 20px rgba(255,0,0,.45);
}

.tutorial-header p {
  max-width: 680px;
  margin: 14px auto 0;
  color: rgba(255,255,255,.76);
  font-size: 18px;
  line-height: 1.5;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 0 35px rgba(0,0,0,.75), 0 0 30px rgba(120,255,120,.12);
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.tutorial-info {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.tutorial-info div {
  padding: 18px;
  border-radius: 14px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.1);
}

.tutorial-info strong {
  display: block;
  color: var(--green-soft);
  margin-bottom: 8px;
}

.tutorial-info span {
  color: rgba(255,255,255,.78);
}


.footer-social {
  width: min(1260px, 88vw);
  margin: 34px auto 34px;
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(45,45,45,.58), rgba(4,4,4,.9)),
    repeating-linear-gradient(45deg, transparent 0 8px, rgba(255,255,255,.035) 8px 10px);
  border: 1px solid rgba(255,255,255,.15);
  box-shadow:
    inset 0 0 24px rgba(255,255,255,.045),
    0 22px 54px rgba(0,0,0,.55),
    0 0 28px rgba(227,40,40,.11);
  backdrop-filter: blur(12px);
}

.footer-card {
  position: relative;
  overflow: hidden;
  min-height: 92px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #fff;
  text-decoration: none;
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(34,34,34,.82), rgba(8,8,8,.92));
  border: 1px solid rgba(255,255,255,.13);
  box-shadow: inset 0 0 18px rgba(255,255,255,.04);
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease, filter .28s ease;
}

.footer-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.14), transparent);
  transform: translateX(-130%);
  transition: transform .65s ease;
}

.footer-card:hover::before {
  transform: translateX(130%);
}

.footer-card:hover {
  transform: translateY(-6px);
  filter: brightness(1.08);
}

.footer-instagram .footer-icon i {
  color: #ff4f8b;
}

.footer-twitch .footer-icon i {
  color: #a970ff;
}

.footer-discord .footer-icon i {
  color: #7c86ff;
}

.footer-instagram:hover {
  border-color: rgba(255,79,139,.78);
  box-shadow:
    inset 0 0 22px rgba(255,255,255,.08),
    0 0 30px rgba(255,79,139,.32),
    0 0 45px rgba(255,119,0,.16);
}

.footer-twitch:hover {
  border-color: rgba(169,112,255,.78);
  box-shadow:
    inset 0 0 22px rgba(255,255,255,.08),
    0 0 30px rgba(169,112,255,.35);
}

.footer-discord:hover {
  border-color: rgba(88,101,242,.75);
  box-shadow:
    inset 0 0 22px rgba(255,255,255,.07),
    0 0 30px rgba(88,101,242,.35);
}

.footer-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255,255,255,.1), rgba(255,255,255,.025));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 0 16px rgba(255,255,255,.07);
  flex: 0 0 auto;
}

.footer-icon i {
  font-size: 28px;
  filter: drop-shadow(0 0 10px rgba(255,255,255,.25));
}

.footer-copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 4px;
}

.footer-copy strong {
  font-family: Impact, Haettenschweiler, 'Arial Black', sans-serif;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  text-shadow: 0 3px 0 #111, 0 0 14px rgba(255,255,255,.18);
}

.footer-copy small {
  color: rgba(255,255,255,.62);
  font-size: 14px;
  letter-spacing: .4px;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(45px); }
  to { opacity: 1; transform: translateY(0); }
}

@media(max-width: 1000px) {
  .hero {
    padding-top: 150px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .card {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    padding: 34px 24px;
  }

  .card p {
    margin-inline: auto;
  }

  .card-art-wrap {
    width: 185px;
    height: 185px;
  }
}

@media(max-width: 760px) {
  .metal-navbar {
    width: calc(100vw - 24px);
    top: 12px;
    padding: 12px;
    flex-direction: column;
    gap: 10px;
  }

  .brand img {
    height: 54px;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  nav a {
    padding: 10px 12px;
    font-size: 14px;
  }

  .hero {
    padding-top: 160px;
    width: min(94vw, 1380px);
  }

  .hero-logo-wrap {
    width: 100%;
  }

  .hero-description {
    font-size: 18px;
  }

  .card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 34px 24px;
  }

  .card h2::after {
    margin-left: auto;
    margin-right: auto;
  }

  .card p {
    margin-left: auto;
    margin-right: auto;
  }

  .tutorial-info {
    grid-template-columns: 1fr;
  }

  .tutorial-float {
    right: 14px;
    bottom: 14px;
    padding: 14px 18px;
    font-size: 13px;
  }

  footer {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }
}
.card-btn{
    display:inline-flex;
    align-items:center;
    gap:10px;

    padding:16px 34px;

    background:#ffffff;
    color:#111;

    text-decoration:none;

    border-radius:15px;

    font-weight:700;

    transition:.3s;
}

.card-btn:hover{
    transform:translateY(-4px);
}

.card-btn-red{
    background:#d92626;
    color:#fff;
}