
/* ===== VARIABLES ===== */
/* Sistema "Identidad Guardián" — dark theme (default) */
:root {
  --bg-rgb: 32,30,31;
  --edge-rgb: 255,255,255;
  --red-rgb: 139,8,8;
  --ember-rgb: 185,28,28;

  --black: #201e1f;      /* Fondo Carbón */
  --black-2: #2b2829;    /* Superficie */
  --black-3: #363132;    /* Superficie 2 */
  --red: #8b0808;        /* Rojo Guardián — líneas de input, acentos distintivos */
  --ember: #b91c1c;      /* Rojo Ember — reservado para botones de acción */
  --gold: #c69a4e;       /* Dorado Compañero — solo momentos especiales, nunca decorativo constante */
  --red-glow: rgba(139,8,8,0.25);
  --red-dim: rgba(139,8,8,0.1);
  --white: #f7f4f5;
  --white-off: #f7f4f5;
  --gray: #a39d9e;
  --gray-light: #cbc5c6;
  --font-display: 'Montserrat', sans-serif;  /* Solo títulos grandes */
  --font-body: 'Sora', sans-serif;           /* Todo lo demás: cuerpo, formularios, botones, nav */
  --ease-guardian: cubic-bezier(0.16, 1, 0.3, 1);

  /* Aliases used by page content */
  --text-primary: var(--white);
  --card-bg: var(--black-2);
  --border: rgba(var(--edge-rgb), 0.08);

  color-scheme: dark;
}

/* Light theme override — applied via [data-theme="light"] on <html> */
:root[data-theme="light"] {
  --bg-rgb: 250,247,242;
  --edge-rgb: 32,26,23;
  --red-rgb: 139,8,8;
  --ember-rgb: 185,28,28;

  --black: #faf7f2;      /* Marfil Cálido */
  --black-2: #f1ebe1;
  --black-3: #e7dfd1;
  --red: #8b0808;
  --ember: #b91c1c;
  --gold: #b3822f;
  --red-glow: rgba(139,8,8,0.16);
  --red-dim: rgba(139,8,8,0.08);
  --white: #201a17;
  --white-off: #201a17;
  --gray: #6b5f56;
  --gray-light: #4a413b;

  color-scheme: light;
}

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

html { scroll-behavior: smooth; }

a, button {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(var(--red-rgb), 0.15);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 10000;
  background: var(--red);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s var(--ease-guardian);
}
.skip-link:focus-visible {
  top: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white-off);
  overflow-x: hidden;
  cursor: default;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a { text-decoration: none; cursor: pointer; }

::selection { background: var(--red); color: #fff; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* ===== NOISE TEXTURE ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

:root[data-theme="light"] body::before { opacity: 0.06; }

/* ===== ICONS (Lucide, inline SVG) ===== */
/* Default: white/text-color by default, red only when active/selected — same
   convention as the app's icon system. Containers with their own width/height
   (e.g. .feat-card .icon) override this. */
.icon-svg {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
  vertical-align: -0.15em;
  color: currentColor;
}
.icon-inline { width: 1em; height: 1em; vertical-align: -0.125em; }

.donate-opt .icon-svg { width: 1.2rem; height: 1.2rem; }

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 6%;
  background: rgba(var(--bg-rgb),0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(var(--edge-rgb),0.06);
  z-index: 1000;
  transition: padding 0.3s var(--ease-guardian), background-color 0.3s ease, border-color 0.3s ease;
}

header.scrolled {
  padding: 12px 6%;
  background: rgba(var(--bg-rgb),0.97);
  box-shadow: 0 10px 40px rgba(0,0,0,0.35);
}

.logo img {
  height: 42px;
  width: auto;
  display: block;
  filter: brightness(1);
  transition: opacity 0.2s;
}
.logo img:hover { opacity: 0.85; }

nav ul.desktop {
  display: flex;
  gap: 2.2rem;
  list-style: none;
}

nav ul.desktop li a {
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-light);
  transition: color 0.2s;
  position: relative;
}

nav ul.desktop li a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--red);
  transition: width 0.25s var(--ease-guardian);
}

nav ul.desktop li a:hover { color: var(--white); }
nav ul.desktop li a:hover::after { width: 100%; }

.nav-cta {
  background: var(--ember);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 40px;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  transition: background 0.2s, transform 0.35s var(--ease-guardian) !important;
}
.nav-cta:hover { background: var(--red) !important; transform: translateY(-1px); }
.nav-cta::after { display: none !important; }

/* Hamburger — es <button>, se resetea el chrome nativo */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  touch-action: manipulation;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: 0.3s var(--ease-guardian);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.header-right {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

ul.mobile {
  display: none;
  position: fixed;
  top: 72px; left: 0;
  width: 100%;
  background: rgba(var(--bg-rgb),0.98);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  gap: 1.6rem;
  list-style: none;
  z-index: 999;
  border-bottom: 1px solid rgba(var(--edge-rgb),0.08);
}
ul.mobile.active { display: flex; }
ul.mobile li a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--white-off);
  letter-spacing: 0.02em;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--black);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(var(--edge-rgb),0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--edge-rgb),0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at center, black 30%, transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  max-width: 1200px;
  width: 100%;
  padding: 0 6%;
  padding-top: 80px;
}

.hero-text { max-width: 600px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-dim);
  border: 1px solid rgba(var(--red-rgb),0.25);
  padding: 6px 14px;
  border-radius: 40px;
  margin-bottom: 1.8rem;
  animation: fadeUp 0.7s var(--ease-guardian) both;
}

.hero-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-eyebrow::before { animation: pulse 2.4s ease-in-out infinite; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 1.4rem;
  text-wrap: balance;
  animation: fadeUp 0.7s 0.1s var(--ease-guardian) both;
}

.hero h1 .red { color: var(--red); }

.hero-sub {
  font-size: 1.05rem;
  color: var(--gray-light);
  line-height: 1.7;
  margin-bottom: 2.4rem;
  font-weight: 400;
  animation: fadeUp 0.7s 0.2s var(--ease-guardian) both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp 0.7s 0.3s var(--ease-guardian) both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ember);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  padding: 14px 28px;
  border-radius: 50px;
  transition: background 0.2s, transform 0.4s var(--ease-guardian), box-shadow 0.4s var(--ease-guardian);
}
.btn-primary:hover {
  background: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--red-glow);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white-off);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 14px 24px;
  border-radius: 50px;
  border: 1px solid rgba(var(--edge-rgb),0.12);
  transition: border-color 0.2s, background 0.2s, transform 0.4s var(--ease-guardian);
}
.btn-ghost:hover {
  border-color: rgba(var(--edge-rgb),0.3);
  background: rgba(var(--edge-rgb),0.05);
  transform: translateY(-2px);
}

/* Phone mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  animation: fadeUp 0.8s 0.15s var(--ease-guardian) both;
}

.phone-wrap {
  position: relative;
  width: 280px;
  height: 560px;
}

.phone-frame {
  position: absolute;
  inset: 0;
  border-radius: 44px;
  border: 2px solid rgba(var(--edge-rgb),0.1);
  background: var(--black-3);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(var(--edge-rgb),0.05),
    0 40px 80px rgba(0,0,0,0.45),
    0 0 60px var(--red-glow);
}

@media (prefers-reduced-motion: no-preference) {
  .phone-frame { animation: phoneFloat 6s ease-in-out infinite; }
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 22px;
  background: var(--black);
  border-radius: 20px;
  z-index: 10;
}

.phone-screen {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

/* Resplandor bajo el teléfono: un solo color de la paleta desenfocado,
   nunca un gradiente — mismo resultado visual, cumple la regla. */
.phone-glow {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px; height: 90px;
  background: var(--red);
  opacity: 0.3;
  filter: blur(36px);
}

.phone-badge {
  position: absolute;
  right: -30px;
  top: 30%;
  background: var(--black-2);
  border: 1px solid rgba(var(--red-rgb),0.35);
  border-radius: 16px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--white-off);
  white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

@media (prefers-reduced-motion: no-preference) {
  .phone-badge { animation: badgePop 6s ease-in-out infinite; }
}

.phone-badge .badge-icon {
  display: block;
  margin: 0 auto 4px;
  color: var(--red);
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
@keyframes phoneFloat {
  0%, 100% { transform: translateY(0) rotateY(-6deg) rotateX(2deg); }
  50% { transform: translateY(-14px) rotateY(-6deg) rotateX(2deg); }
}

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

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--black-2);
  border-top: 1px solid rgba(var(--edge-rgb),0.06);
  border-bottom: 1px solid rgba(var(--edge-rgb),0.06);
  padding: 40px 6%;
}

.stats-inner {
  display: flex;
  justify-content: center;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}

.stat-item {
  flex: 1;
  text-align: center;
  padding: 0 2rem;
  border-right: 1px solid rgba(var(--edge-rgb),0.08);
}
.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-body);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--gray);
  margin-top: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ===== FEATURES ===== */
.features-section {
  padding: 120px 6%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-tag {
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1rem;
  text-wrap: balance;
}

.section-sub {
  color: var(--gray);
  font-size: 1rem;
  font-weight: 400;
  max-width: 500px;
  line-height: 1.7;
  margin-bottom: 3.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: rgba(var(--edge-rgb),0.06);
  border: 1px solid rgba(var(--edge-rgb),0.06);
  border-radius: 28px;
  overflow: hidden;
}

.feat-card {
  background: var(--black-2);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: background 0.3s var(--ease-guardian);
}

.feat-card:hover { background: var(--black-3); }

.feat-card .icon {
  width: 2.2rem;
  height: 2.2rem;
  margin-bottom: 1.2rem;
  display: block;
  color: var(--red);
}

.feat-card h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.7rem;
  letter-spacing: -0.005em;
}

.feat-card p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.65;
  font-weight: 400;
}

.feat-card .badge {
  display: inline-block;
  margin-top: 1.2rem;
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--red-dim);
  border: 1px solid rgba(var(--red-rgb),0.5);
  padding: 4px 10px;
  border-radius: 20px;
}

/* Insignia dorada: única aparición del Dorado Compañero en esta sección —
   marca la función más distintiva ("estrella"), nunca decoración repetida. */
.feat-card .badge.gold {
  color: var(--gold);
  background: rgba(198,154,78,0.12);
  border-color: rgba(198,154,78,0.45);
}

/* Highlight card (full width) */
.feat-highlight {
  grid-column: 1 / -1;
  background: var(--black-2);
  border-top: 2px solid var(--red);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.feat-highlight-text { flex: 1; }
.feat-highlight-text h3 { font-size: 1.4rem; }
.feat-highlight-text p { max-width: 500px; }

.feat-highlight-visual {
  flex-shrink: 0;
  opacity: 0.85;
  color: var(--red);
}
.feat-highlight-visual svg { width: 4.5rem; height: 4.5rem; }

/* ===== DOWNLOAD ===== */
.download-section {
  padding: 80px 6%;
  background: var(--black-2);
  border-top: 1px solid rgba(var(--edge-rgb),0.06);
  border-bottom: 1px solid rgba(var(--edge-rgb),0.06);
}

.download-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4rem;
}

.download-text { flex: 1; }
.download-text .section-sub { margin-bottom: 2rem; }

.download-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.apk-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--ember);
  color: var(--white);
  padding: 16px 28px;
  border-radius: 16px;
  font-family: var(--font-body);
  font-weight: 700;
  transition: background 0.2s, transform 0.4s var(--ease-guardian), box-shadow 0.4s var(--ease-guardian);
  box-shadow: 0 4px 20px var(--red-dim);
}

.apk-btn:hover {
  background: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--red-glow);
}

.apk-btn .icon { width: 1.6rem; height: 1.6rem; flex-shrink: 0; }
.apk-btn .label { font-size: 0.72rem; opacity: 0.85; font-weight: 500; display: block; }
.apk-btn .title { font-size: 1.05rem; display: block; }

.play-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--white-off);
  padding: 14px 28px;
  border-radius: 16px;
  border: 1px solid rgba(var(--edge-rgb), 0.18);
  font-family: var(--font-body);
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s;
  opacity: 0.6;
  cursor: not-allowed;
}

.play-btn .icon { width: 1.6rem; height: 1.6rem; }
.play-btn .label { font-size: 0.72rem; font-weight: 500; display: block; }
.play-btn .title { font-size: 1.05rem; display: block; }

.pwa-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--white-off);
  padding: 14px 28px;
  border-radius: 16px;
  border: 1px solid rgba(var(--edge-rgb), 0.18);
  font-family: var(--font-body);
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s, transform 0.4s var(--ease-guardian);
}

.pwa-btn:hover {
  border-color: rgba(var(--red-rgb), 0.4);
  transform: translateY(-2px);
}

.pwa-btn .icon { width: 1.6rem; height: 1.6rem; flex-shrink: 0; }
.pwa-btn .label { font-size: 0.72rem; font-weight: 500; display: block; }
.pwa-btn .title { font-size: 1.05rem; display: block; }

.download-image {
  flex-shrink: 0;
  width: 220px; height: 300px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4), 0 0 40px var(--red-dim);
  border: 1px solid rgba(var(--edge-rgb),0.08);
}

.download-image img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ===== DONATE ===== */
.donate-section {
  padding: 120px 6%;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

/* Tarjeta genérica reutilizable (grillas de contenido en acerca-de.html,
   funcionalidades.html): reposo plano, en hover se eleva levemente y gana
   una sombra tenue en rojo guardián — profundidad de marca en vez de una
   sombra negra genérica. */
.info-card {
  transition: transform 0.35s var(--ease-guardian), border-color 0.3s, box-shadow 0.35s var(--ease-guardian);
}
.info-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--red-rgb),0.3) !important;
  box-shadow: 0 16px 32px rgba(var(--red-rgb),0.1);
}

.donate-card {
  background: var(--black-2);
  border-radius: 32px;
  border: 1px solid rgba(var(--red-rgb),0.25);
  padding: 60px 5%;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.35s var(--ease-guardian);
}

.donate-card:hover {
  border-color: rgba(var(--red-rgb),0.45);
  box-shadow: 0 20px 50px rgba(var(--red-rgb),0.12);
}

.donate-card .heart-icon { width: 3rem; height: 3rem; color: var(--red); display: block; margin: 0 auto 1.2rem; }

.donate-card h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  text-wrap: balance;
}

.donate-card p {
  color: var(--gray-light);
  font-size: 1rem;
  max-width: 550px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  font-weight: 400;
}

.donate-options {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.donate-opt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 12px 24px;
  border-radius: 50px;
  border: 1px solid rgba(var(--edge-rgb),0.12);
  background: none;
  color: var(--white-off);
  transition: 0.3s var(--ease-guardian);
  cursor: pointer;
}

.donate-opt:hover:not(:disabled) {
  background: rgba(var(--edge-rgb),0.06);
  border-color: rgba(var(--red-rgb),0.35);
  transform: translateY(-2px);
}

.donate-opt:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.donate-opt.primary {
  background: var(--ember);
  border-color: transparent;
  color: #fff;
}

.donate-opt.primary:hover:not(:disabled) { background: var(--red); box-shadow: 0 6px 24px var(--red-glow); }

/* ===== FOOTER ===== */
footer {
  background: var(--black-2);
  border-top: 1px solid rgba(var(--edge-rgb),0.07);
  padding: 50px 6% 30px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.footer-logo img {
  height: 38px;
  width: auto;
  opacity: 0.85;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--gray);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--red); }

.footer-copy {
  font-size: 0.76rem;
  color: var(--gray);
  text-align: center;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-guardian), transform 0.7s var(--ease-guardian);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow, .hero h1, .hero-sub, .hero-actions, .hero-visual {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .reveal {
    transition: opacity 0.3s ease;
    transform: none !important;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding-top: 100px; }
  .hero-actions { justify-content: center; }
  .hero-visual { display: none; }
  nav ul.desktop { display: none; }
  .hamburger { display: flex; }
  .features-grid { grid-template-columns: 1fr; }
  .feat-highlight { flex-direction: column; }
  .stats-inner { flex-wrap: wrap; gap: 2rem; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(var(--edge-rgb),0.08); padding-bottom: 1.5rem; flex: 0 0 45%; }
  .stat-item:last-child { border-bottom: none; }
  .download-inner { flex-direction: column; gap: 2.5rem; text-align: center; }
  .download-actions { align-items: center; }
  .download-image { width: 100%; max-width: 300px; height: 200px; }
}

@media (max-width: 600px) {
  .features-section, .donate-section { padding: 80px 5%; }
  .donate-card { padding: 40px 5%; }
  .stat-item { flex: 0 0 100%; }
}

@media (max-width: 768px) {
  .hero { height: auto; padding: 120px 0 80px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 2.5rem; padding-top: 40px; }
  .hero-text { max-width: 100%; }
  .hero h1 { font-size: 2.4rem; line-height: 1.1; }
  .hero-sub { font-size: 0.95rem; padding: 0 10px; }
  .hero-actions { justify-content: center; flex-direction: column; gap: 0.8rem; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
  .hero-visual { display: none; }
  .stats-inner { flex-direction: column; gap: 1.5rem; }
  .stat-item { border: none; padding: 0; }
  .features-section { padding: 80px 5%; }
  .features-grid { grid-template-columns: 1fr; }
  .feat-card { padding: 2rem; }
  .feat-highlight { flex-direction: column; text-align: center; }
  .feat-highlight-visual { margin-top: 1.5rem; }
  .feat-highlight-visual svg { width: 3.2rem; height: 3.2rem; }
  .download-section { padding: 80px 5%; }
  .download-inner { flex-direction: column; text-align: center; gap: 2rem; }
  .download-image { width: 100%; max-width: 320px; height: 220px; }
  .apk-btn, .pwa-btn { width: 100%; justify-content: center; }
  .donate-section { padding: 80px 5%; }
  .donate-card { padding: 40px 20px; }
  .donate-options { flex-direction: column; gap: 0.8rem; }
  .donate-opt { width: 100%; justify-content: center; }
}

@media (max-width: 1024px) {
  .hero-inner { gap: 2rem; }
  .hero h1 { font-size: 3rem; }
  .phone-wrap { width: 240px; height: 480px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-highlight { flex-direction: column; text-align: center; }
  .download-inner { gap: 2.5rem; }
  .download-image { width: 260px; height: 320px; }
}

@media (min-width: 1440px) {
  .hero-inner { max-width: 1400px; }
  .hero h1 { font-size: 4.5rem; }
  .features-section { max-width: 1300px; }
  .download-inner { max-width: 1200px; }
  .footer-inner { max-width: 1200px; }
}

/* ===== MODAL "PRÓXIMAMENTE" ===== */
#modal-soon {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
#modal-soon:not([hidden]) { display: flex; }

.modal-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 16px;
  color: var(--red);
}
.modal-icon svg { width: 100%; height: 100%; }

#modal-soon .modal-card {
  background: var(--black-2);
  border: 1px solid rgba(var(--edge-rgb),0.1);
  border-radius: 28px;
  padding: 48px 36px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 40px 80px rgba(0,0,0,0.45), 0 0 40px var(--red-dim);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--gray);
  cursor: pointer;
  line-height: 1;
  padding: 8px;
  display: flex;
}
.modal-close-btn svg { width: 20px; height: 20px; }

.modal-cta-discord,
.modal-cta-instagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  padding: 16px 24px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

/* Discord y sitios externos se identifican en un rojo sólido de la
   marca, no en los colores de la plataforma externa — así ninguna
   pantalla de la app o la web sale de la paleta de seis colores. */
.modal-cta-discord { background: var(--black-3); border: 1px solid rgba(var(--edge-rgb),0.14); }
.modal-cta-instagram { background: var(--ember); }
.modal-cta-discord:hover,
.modal-cta-instagram:hover { opacity: 0.85; }

.modal-cta-dismiss {
  background: none;
  border: 1px solid rgba(var(--edge-rgb),0.12);
  color: var(--gray);
  padding: 12px 24px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  transition: border-color 0.2s;
}

.modal-cta-dismiss:hover { border-color: rgba(var(--edge-rgb),0.3); }

@media (max-width: 480px) {
  #modal-soon .modal-card { padding: 40px 24px; }
}
