:root {
  --violeta: #4B37CE;
  --rosa: #F28FBE;
  --naranja: #FF5500;
  --verde: #C8E24B;
  --negro: #000;
  --blanco: #fff;
  --navbar-height: 80px;
  --footer-height: 40px;
}

/* RESET */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  height: 100%;
}

body {
  font-family: 'Lato', sans-serif;
  background: black;
  overflow: hidden;
}

/* =========================
   NAVBAR
========================= */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--navbar-height);
  background: black;
  z-index: 1000;
  display: flex;
  align-items: center;
}

/* línea de colores */
.navbar::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 6px;
  width: 100%;
  background: linear-gradient(
    to right,
    var(--violeta) 0%,
    var(--violeta) 25%,
    var(--rosa) 25%,
    var(--rosa) 50%,
    var(--naranja) 50%,
    var(--naranja) 75%,
    var(--verde) 75%,
    var(--verde) 100%
  );
}

.navbar-menu {
  display: flex;
  justify-content: center;
  gap: 48px;
  list-style: none;
  width: 100%;
  padding: 0;
  margin: 0;
}

.navbar-menu a,
.dropdown-toggle {
  font-family: 'Lato', sans-serif;
  color: white;
  font-size: 1.2rem;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

/* DROPDOWN */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: block;
  position: absolute;
  top: 44px;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: black;
  padding: 16px 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.dropdown-menu a {
  display: block;
  padding: 6px 0;
}

.dropdown-menu.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.dropdown-toggle.active {
  opacity: 0.6;
}

/* =========================
   SCROLL
========================= */
.scroll-container {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

/* evita que el nav tape el anchor */
.anchor-offset {
  height: 1px;
  margin-top: calc(-1 * var(--navbar-height));
}

/* SNAP */
.snap {
  scroll-snap-align: start;
}

/* =========================
   SECTIONS
========================= */
.section {
  min-height: 100vh;
  padding-top: var(--navbar-height);
  position: relative;
}

.hero {
  padding-top: var(--navbar-height);
}

/* =========================
   HERO
========================= */
.hero {
  position: relative;
  background-image: url("portada.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100vh;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      rgba(75,55,206,0.45),
      rgba(242,143,190,0.45)
    ),
    rgba(0,0,0,0.45);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 5vw;
  color: white;
}

.hero-content img {
  max-width: 520px;
  width: 90%;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* =========================
   INNER CONTAINER
========================= */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 8vw;
}

.section-text {
  max-width: 900px;
}

.section-inner a:not(.btn-descarga) {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  opacity: 0.8;
  transition: opacity 0.15s ease;
}

.section-inner a:not(.btn-descarga):hover {
  opacity: 1;
}

/* =========================
   TYPO
========================= */
h2 {
  font-family: 'Lato', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 40px;
}

h3 {
  font-family: 'Lato', sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  margin-top: 40px;
}

p {
  font-family: 'Noto Serif', serif;
  line-height: 1.7;
  margin-top: 16px;
}

/* =========================
   COLORS
========================= */
.bg-violeta { background: var(--violeta); color: white; }
.bg-rosa { background: var(--rosa); color: black; }
.bg-naranja { background: var(--naranja); color: white; }
.bg-verde { background: var(--verde); color: black; }

/* =========================
   GRID / CARDS
========================= */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.card {
  background: rgba(0,0,0,0.18);
  padding: 48px;
  padding-bottom: 96px;
  position: relative;
}

.btn-descarga,
.btn-descarga:hover,
.section-inner .btn-descarga,
.section-inner .btn-descarga:hover {
  display: inline-block;
  margin-top: 32px;
  padding: 12px 28px;
  border: none;
  border-radius: 999px;
  outline: none;
  background: var(--verde);
  color: black;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  opacity: 1;
}

.card .btn-descarga {
  position: absolute;
  bottom: 48px;
  left: 48px;
  margin-top: 0;
}

/* =========================
   FAQ
========================= */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.faq-card {
  position: relative;
  background: rgba(0,0,0,0.18);
  padding: 40px;
  min-height: 360px;
  cursor: pointer;
  overflow: hidden;
}

.faq-card h3 {
  text-align: center;
  transition: opacity 0.3s ease;
}

.faq-answer {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  opacity: 0;
  padding: 32px;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.faq-answer p {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 0.88rem;
  line-height: 1.6;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-card--sm .faq-answer {
  justify-content: flex-start;
}

.faq-card--sm .faq-answer p {
  font-size: 0.78rem;
}

.faq-card:hover .faq-answer {
  opacity: 1;
  pointer-events: auto;
}

.faq-card:hover h3 {
  opacity: 0;
}

/* =========================
   FOOTER
========================= */
.site-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--footer-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  border-top: 1px solid rgba(0,0,0,0.15);
}

.site-footer span {
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  color: rgba(0,0,0,0.4);
  letter-spacing: 0.04em;
}

/* =========================
   HAMBURGER / MOBILE MENU
========================= */
.hamburger {
  display: none;
}

.mobile-menu {
  display: none;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 900px) {
  .navbar-menu {
    display: none;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: absolute;
    right: 20px;
  }

  .hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

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

  .hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .mobile-menu {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: black;
    z-index: 998;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
  }

  .mobile-menu li {
    padding: 12px 0;
  }

  .mobile-menu a {
    display: block;
    color: white;
    text-decoration: none;
    font-family: 'Lato', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 0.02em;
  }

  .mobile-menu::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 6px;
    width: 100%;
    background: linear-gradient(
      to right,
      var(--violeta) 0%,
      var(--violeta) 25%,
      var(--rosa) 25%,
      var(--rosa) 50%,
      var(--naranja) 50%,
      var(--naranja) 75%,
      var(--verde) 75%,
      var(--verde) 100%
    );
  }

  .hero {
    background-position: center top;
  }

  .grid-2,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  h2 {
    font-size: 2.2rem;
  }

  .section-inner {
    padding: 60px 6vw;
  }

  .faq-card {
    min-height: 220px;
  }

  .card {
    padding: 32px;
    padding-bottom: 84px;
  }

  .card .btn-descarga {
    bottom: 32px;
    left: 32px;
  }

  .hero-content img {
    max-width: 320px;
  }

  h3 {
    margin-top: 24px;
  }
}