/* =========================================================
   AlbumGo — Landing page
   ========================================================= */

:root {
  --bg-top: #322e86;
  --bg-mid: #1a1850;
  --bg-deep: #0d0c30;
  --gold: #f1c24a;
  --gold-soft: #ffe3a0;
  --red: #e3122e;
  --text: #edecfb;
  --muted: #a6a3d6;
  --card: rgba(255, 255, 255, 0.05);
  --card-line: rgba(255, 255, 255, 0.1);
  --radius: 20px;
  --maxw: 1140px;
  --font: "Outfit", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }

.accent { color: var(--gold); }

.grad {
  background: linear-gradient(100deg, var(--gold-soft), var(--gold) 55%, #c8901c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------------------- Botones ---------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-weight: 800;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: #2a1c00;
  padding: 14px 26px;
  font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.25s ease, filter 0.2s ease;
  box-shadow: 0 8px 26px rgba(241, 194, 74, 0.28);
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn:active { transform: translateY(0); }
.btn--small { padding: 9px 18px; font-size: 0.9rem; }
.btn--big { padding: 17px 34px; font-size: 1.1rem; }
.btn--glow { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12),
                          0 14px 44px rgba(241, 194, 74, 0.45); }

/* ---------------------- Pills ---------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--card-line);
  background: var(--card);
  color: var(--text);
}
.pill--gold {
  border-color: rgba(241, 194, 74, 0.4);
  color: var(--gold-soft);
  background: rgba(241, 194, 74, 0.1);
}

/* ---------------------- Navbar ---------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(18px, 5vw, 48px);
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.nav.scrolled {
  background: rgba(13, 12, 48, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
  padding-top: 11px;
  padding-bottom: 11px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
}
.nav__logo { width: 38px; height: 38px; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { font-weight: 600; color: var(--muted); transition: color 0.2s; }
.nav__links a:hover { color: var(--text); }
.nav__links a.btn { color: #2a1c00; }
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span {
  width: 26px;
  height: 3px;
  border-radius: 3px;
  background: var(--text);
  transition: 0.25s;
}

/* ---------------------- Hero ---------------------- */
.hero {
  position: relative;
  padding: 150px clamp(18px, 5vw, 48px) 120px;
  background:
    radial-gradient(900px 500px at 78% 8%, rgba(110, 106, 216, 0.5), transparent 60%),
    linear-gradient(180deg, var(--bg-top), var(--bg-mid) 55%, var(--bg-deep));
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.04' stroke-width='2'%3E%3Cpath d='M28 0l24 14v28L28 56 4 42V14z'/%3E%3Cpath d='M28 50l24 14v28L28 106 4 92V64z'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.7;
  pointer-events: none;
}
.hero__glow {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(241, 194, 74, 0.22), transparent 70%);
  top: 4%;
  right: 6%;
  filter: blur(20px);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}
.hero__text h1 {
  font-size: clamp(2.3rem, 5.4vw, 3.9rem);
  font-weight: 900;
  margin: 18px 0 18px;
}
.hero__sub {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 520px;
}
.hero__cta { margin-top: 30px; }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}
.hero__art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 320px;
}
.hero__ring {
  position: absolute;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  border: 2px dashed rgba(241, 194, 74, 0.35);
  animation: spin 38s linear infinite;
}
.hero__ring::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  top: -8px;
  left: calc(50% - 8px);
  box-shadow: 0 0 16px var(--gold);
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero__icon {
  width: 250px;
  height: 250px;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.55));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(-10px); }
  50% { transform: translateY(10px); }
}
.hero__wave {
  position: absolute;
  inset: auto 0 -1px 0;
  height: 90px;
  background: var(--bg-deep);
  clip-path: polygon(0 55%, 100% 0, 100% 100%, 0 100%);
}

/* ---------------------- Secciones ---------------------- */
.section {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 90px clamp(18px, 5vw, 48px);
}
.section--alt {
  max-width: none;
  background: linear-gradient(180deg, var(--bg-deep), #15123f, var(--bg-deep));
}
.section--alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.eyebrow {
  display: inline-block;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 12px;
}
.section__head h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
.section__head p { color: var(--muted); margin-top: 12px; font-size: 1.05rem; }

/* ---------------------- Grid de características ---------------------- */
.grid--features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(241, 194, 74, 0.45);
  background: rgba(255, 255, 255, 0.07);
}
.card__icon {
  width: 56px;
  height: 56px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #2a1c00;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  margin-bottom: 18px;
}
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.98rem; }

/* ---------------------- Pasos ---------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  padding: 32px 24px 26px;
  text-align: center;
}
.step__num {
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 900;
  border-radius: 50%;
  color: #2a1c00;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  box-shadow: 0 8px 22px rgba(241, 194, 74, 0.3);
}
.step h3 { font-size: 1.12rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* ---------------------- Galería de capturas ---------------------- */
.gallery {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 22px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(241, 194, 74, 0.5) rgba(255, 255, 255, 0.06);
}
.gallery::-webkit-scrollbar { height: 8px; }
.gallery::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 99px;
}
.gallery::-webkit-scrollbar-thumb {
  background: rgba(241, 194, 74, 0.45);
  border-radius: 99px;
}
.shot {
  flex: 0 0 auto;
  width: 246px;
  margin: 0;
  text-align: center;
  scroll-snap-align: center;
}
.shot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 28px;
  border: 5px solid #0a0922;
  outline: 1px solid rgba(255, 255, 255, 0.14);
  background: #0a0922;
  box-shadow: 0 26px 54px rgba(0, 0, 0, 0.55);
  transition: transform 0.25s ease;
}
.shot:hover img { transform: translateY(-6px); }
.shot figcaption {
  margin-top: 16px;
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--text);
}
.gallery__hint {
  text-align: center;
  color: var(--muted);
  font-size: 0.86rem;
  margin-top: 4px;
}

/* ---------------------- Descarga ---------------------- */
.download {
  padding: 70px clamp(18px, 5vw, 48px) 100px;
}
.download__card {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(160deg, #211e63, #131140);
  border: 1px solid rgba(241, 194, 74, 0.25);
  border-radius: 28px;
  padding: 56px 36px;
  overflow: hidden;
}
.download__glow {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(241, 194, 74, 0.22), transparent 70%);
  top: -160px;
  left: calc(50% - 190px);
  pointer-events: none;
}
.download__card h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 16px 0 10px; }
.download__card > p { color: var(--muted); margin-bottom: 26px; }
.download__card .btn { position: relative; }
.install {
  position: relative;
  margin-top: 36px;
  text-align: left;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--card-line);
  border-radius: 16px;
  padding: 22px 24px;
}
.install h4 { font-size: 1rem; margin-bottom: 10px; color: var(--gold-soft); }
.install ol { padding-left: 20px; color: var(--muted); font-size: 0.95rem; }
.install li { margin: 5px 0; }
.install b { color: var(--text); }

/* ---------------------- FAQ ---------------------- */
.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: 14px;
  padding: 4px 20px;
  transition: border-color 0.2s;
}
.faq details[open] { border-color: rgba(241, 194, 74, 0.4); }
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--gold);
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 18px; }

/* ---------------------- Footer ---------------------- */
.footer {
  border-top: 1px solid var(--card-line);
  background: var(--bg-deep);
  padding: 48px clamp(18px, 5vw, 48px);
}
.footer__inner { max-width: var(--maxw); margin: 0 auto; text-align: center; }
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.25rem;
}
.footer__tag { color: var(--text); margin-top: 12px; font-weight: 600; }
.footer__dev {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding: 12px 20px;
  border: 1px solid var(--card-line);
  border-radius: 14px;
  background: var(--card);
}
.footer__dev img { width: 42px; height: 42px; border-radius: 9px; }
.footer__dev span {
  text-align: left;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.35;
}
.footer__dev b { color: var(--text); font-size: 0.95rem; }
.footer__legal {
  color: var(--muted);
  font-size: 0.85rem;
  max-width: 560px;
  margin: 14px auto 0;
}
.footer__copy { color: var(--muted); font-size: 0.85rem; margin-top: 16px; }

/* ---------------------- Reveal animation ----------------------
   Solo se oculta si hay JS (clase .js en <html>). Sin JS, todo el
   contenido se ve normal — la animación es una mejora progresiva. */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__icon, .hero__ring { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------------------- Responsive ---------------------- */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__text .pill { margin: 0 auto; }
  .hero__sub { margin: 0 auto; }
  .hero__meta { justify-content: center; }
  .hero__art { order: -1; min-height: 260px; }
  .hero__icon { width: 190px; height: 190px; }
  .hero__ring { width: 250px; height: 250px; }
  .grid--features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav__links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 26px;
    padding: 40px;
    background: rgba(13, 12, 48, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .nav__links.open { transform: translateX(0); }
  .nav__links a { font-size: 1.15rem; }
  .nav__toggle { display: flex; z-index: 60; }
  .nav__toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav__toggle.open span:nth-child(2) { opacity: 0; }
  .nav__toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

@media (max-width: 560px) {
  .grid--features { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .shot { width: 220px; }
  .download__card { padding: 44px 22px; }
}
