/* Pleembed — web pública. Paleta de la app (AppColors): ámbar de marca sobre
   tema oscuro, tipografía Poppins. */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #FFC629;          /* ámbar de marca */
  --primary-light: #FFD75E;
  --primary-dark: #F2B400;
  --on-primary: #1A1408;       /* texto sobre el ámbar */
  --accent: #D9A86C;           /* dorado (premium) */

  --bg: #14130F;               /* fondo oscuro */
  --surface: #20201B;          /* tarjetas */
  --surface-2: #2A2A23;
  --border: #34332B;
  --text: #F3F1EA;
  --text-soft: #A8A498;

  --grad: linear-gradient(135deg, #FFD24A 0%, #FFC629 100%);
  --radius: 20px;
  --maxw: 880px;
}

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

/* El atributo `hidden` debe ganar a reglas de autor como `display:flex`
   (p. ej. .cta-row); si no, los bloques [data-lang] ocultos se mostrarían. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--grad);
  color: var(--on-primary);
  text-align: center;
  padding: 76px 24px 64px;
  border-radius: 0 0 36px 36px;
  overflow: hidden;
}

.hero .logo {
  width: 92px;
  height: 92px;
  border-radius: 26px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, .28);
}

.hero h1 {
  font-size: clamp(2.4rem, 7vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -.5px;
  margin-top: 22px;
}

.hero .tagline {
  font-size: clamp(1.05rem, 3.5vw, 1.35rem);
  font-weight: 500;
  color: #3a2e10;
  margin-top: 6px;
}

/* ---------- CTAs ---------- */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 999px;
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
  background: var(--on-primary);
  color: var(--primary);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .25);
}
.btn-primary:hover { box-shadow: 0 12px 28px rgba(0, 0, 0, .32); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(26, 20, 8, .12);
  border: 1.5px solid rgba(26, 20, 8, .35);
  border-radius: 999px;
  padding: 12px 22px;
  color: var(--on-primary);
  font-size: .92rem;
  font-weight: 600;
}

/* Botones estilo tienda: Google Play enlaza a la ficha real (<a>);
   App Store aún sin ficha, muestra el toast de "próximamente" (<button>). */
.store-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--on-primary);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .18);
  border-radius: 14px;
  padding: 9px 18px;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .25);
}
.store-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, .32); }
.store-btn svg { width: 22px; height: 22px; flex: none; }
.store-lines { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.store-lines small { font-size: .68rem; font-weight: 500; opacity: .8; letter-spacing: .2px; }
.store-lines strong { font-size: 1rem; font-weight: 600; }

/* Toast de aviso (próximamente) */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(16px);
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--primary-dark);
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: .95rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 100;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Contenido ---------- */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 24px 24px;
}

.section-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.section-sub {
  text-align: center;
  color: var(--text-soft);
  margin-bottom: 36px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-bottom: 44px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform .15s ease, border-color .15s ease;
}
.feature:hover { transform: translateY(-4px); border-color: var(--primary-dark); }

.feature .icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 198, 41, .14);
  font-size: 1.5rem;
  margin-bottom: 14px;
}
.feature h3 { color: var(--text); font-size: 1.1rem; font-weight: 600; margin-bottom: 6px; }
.feature p { color: var(--text-soft); font-size: .95rem; }

.notice {
  background: rgba(255, 198, 41, .08);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 0 14px 14px 0;
  padding: 16px 20px;
  color: var(--text-soft);
  margin: 8px 0 8px;
}
.notice strong { color: var(--text); }

/* ---------- Páginas legales (comparten este CSS) ---------- */
h1.page { color: var(--text); font-size: 2rem; font-weight: 700; margin-bottom: 6px; }
main h2 { color: var(--primary); font-size: 1.25rem; font-weight: 600; margin: 30px 0 8px; }
p.updated { color: var(--text-soft); font-size: .9rem; margin-bottom: 18px; }
main p { margin: 8px 0; }
main ul { padding-left: 22px; margin: 8px 0; }
main li { margin: 5px 0; color: var(--text); }
main strong { color: var(--text); }
.back-link { display: inline-block; margin-bottom: 18px; color: var(--text-soft); font-size: .92rem; }

/* ---------- Planes / precios ---------- */
.plan-period { font-weight: 600; color: var(--text); font-size: 1.05rem; }
.plan-tag {
  display: inline-block;
  background: var(--primary);
  color: var(--on-primary);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .3px;
  padding: 2px 8px;
  border-radius: 8px;
  margin-left: 8px;
  vertical-align: middle;
}
.plan-price { color: var(--primary); font-size: 1.9rem; font-weight: 800; margin: 8px 0 2px; }
.plan-sub { color: var(--text-soft); font-size: .9rem; }

/* ---------- Selector de idioma ---------- */
.lang-switch {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 50;
  background: rgba(20, 19, 15, .55);
  color: var(--text);
  border: 1.5px solid rgba(243, 241, 234, .35);
  border-radius: 999px;
  padding: 7px 15px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .5px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.lang-switch:hover {
  background: rgba(20, 19, 15, .82);
  border-color: var(--primary);
  color: var(--primary);
}

/* ---------- Footer ---------- */
footer {
  text-align: center;
  color: var(--text-soft);
  font-size: .9rem;
  padding: 36px 24px 44px;
  border-top: 1px solid var(--border);
  margin-top: 24px;
}
footer a { color: var(--text-soft); margin: 0 8px; }
footer a:hover { color: var(--primary); }
footer .sep { color: var(--border); }
footer .copy { margin-top: 12px; color: var(--text-soft); opacity: .8; }
