/* Oneggin — estilos de la web pública. Paleta tomada de la app
   (frontend/src/theme/variables.css) para mantener la identidad. */

:root {
  --bg: #fff8f1;
  --bg-elevated: rgba(255, 255, 255, 0.92);
  --text-primary: #102033;
  --text-secondary: #4b5b6d;
  --accent: #ff9900;
  --accent-strong: #f97316;
  --accent-soft: rgba(255, 153, 0, 0.12);
  --border: rgba(16, 32, 51, 0.1);
  --shadow-md: 0 18px 40px -24px rgba(16, 32, 51, 0.35);
  --radius-lg: 28px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

:where(a) {
  color: var(--accent-strong);
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.container {
  width: min(1080px, 100% - 40px);
  margin-inline: auto;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(255, 248, 241, 0.85);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.site-header__logo img {
  width: clamp(110px, 18vw, 150px);
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a:not(.btn) {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav a:not(.btn):hover {
  color: var(--accent-strong);
}

@media (max-width: 720px) {
  .site-nav a:not(.btn) {
    display: none;
  }
}

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

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

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: 0 12px 24px -12px rgba(249, 115, 22, 0.65);
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color: #fff;
  box-shadow: 0 18px 36px -12px rgba(249, 115, 22, 0.75);
  text-shadow: 0 12px 24px rgba(255, 255, 255, 1);
}

.btn--ghost {
  border: 1.5px solid var(--border);
  color: var(--text-primary);
  background: var(--bg-elevated);
}

/* Badges de tiendas */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  border-radius: 14px;
  background: #102033;
  color: #fff;
  text-decoration: none;
  line-height: 1.2;
  transition: transform 0.15s ease;
}

.store-badge:hover {
  transform: translateY(-2px);
}

.store-badge svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.store-badge small {
  display: block;
  font-size: 0.68rem;
  opacity: 0.8;
  font-weight: 500;
}

.store-badge strong {
  font-size: 1.02rem;
  font-weight: 700;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 88px;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  z-index: 0;
}

.hero::before {
  width: 420px;
  height: 420px;
  top: -140px;
  right: -100px;
  background: rgba(255, 153, 0, 0.22);
}

.hero::after {
  width: 320px;
  height: 320px;
  bottom: -160px;
  left: -80px;
  background: rgba(249, 115, 22, 0.14);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 860px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 800;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 5.4vw, 3.4rem);
}

.hero h1 span {
  color: var(--accent-strong);
}

.hero__lead {
  margin: 0 0 30px;
  font-size: 1.12rem;
  color: var(--text-secondary);
  max-width: 34rem;
}

.hero__note {
  margin: 14px 0 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Mockup de menú (decorativo, en CSS puro) */

.menu-mock {
  display: grid;
  gap: 14px;
  padding: 26px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top left, rgba(255, 196, 135, 0.35), transparent 45%),
    var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  transform: rotate(1.5deg);
}

.menu-mock__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 800;
  font-size: 0.95rem;
}

.menu-mock__title .chip {
  background: var(--accent-soft);
  color: var(--accent-strong);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.menu-mock__row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--border);
}

.menu-mock__emoji {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-soft);
  font-size: 1.3rem;
}

.menu-mock__row strong {
  display: block;
  font-size: 0.92rem;
}

.menu-mock__row small {
  color: var(--text-secondary);
  font-size: 0.78rem;
}

/* ---------- Secciones ---------- */

.section {
  padding: 72px 0;
}

.section--alt {
  background: #fff;
  border-block: 1px solid var(--border);
}

.section__head {
  max-width: 40rem;
  margin-bottom: 44px;
}

.section__head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 3.6vw, 2.3rem);
}

.section__head p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* Características */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature-card {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.feature-card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--accent-soft);
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Cómo funciona */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  font-weight: 800;
  margin-bottom: 16px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.step p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.93rem;
}

/* Planes */

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.plan-card {
  display: flex;
  flex-direction: column;
  padding: 30px 26px;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.plan-card--featured {
  border: 2px solid var(--accent);
  position: relative;
}

.plan-card__badge {
  position: absolute;
  top: -14px;
  left: 26px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 14px;
  border-radius: 999px;
}

.plan-card h3 {
  margin: 0 0 6px;
  font-size: 1.25rem;
}

.plan-card__tag {
  margin: 0 0 18px;
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 0.9rem;
}

.plan-card ul {
  margin: 0 0 22px;
  padding-left: 1.2rem;
  display: grid;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.94rem;
  flex-grow: 1;
}

.plan-card__note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* FAQ */

.faq {
  display: grid;
  gap: 14px;
  max-width: 46rem;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  padding: 4px 22px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 14px 0;
  list-style: none;
  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(--accent-strong);
  font-weight: 500;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  margin: 0 0 18px;
  color: var(--text-secondary);
}

/* CTA final */

.cta-final {
  text-align: center;
  padding: 80px 0;
}

.cta-final__box {
  padding: 56px 32px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top left, rgba(255, 196, 135, 0.4), transparent 50%),
    radial-gradient(circle at bottom right, rgba(249, 115, 22, 0.18), transparent 55%),
    var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.cta-final h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.cta-final p {
  margin: 0 0 28px;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.cta-final .store-badges {
  justify-content: center;
}

/* ---------- Footer ---------- */

.site-footer {
  background: #102033;
  color: rgba(255, 255, 255, 0.85);
  padding: 48px 0 32px;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}

.site-footer__brand img {
  width: 130px;
  margin-bottom: 12px;
}

.site-footer__brand p {
  margin: 0;
  font-size: 0.88rem;
  max-width: 22rem;
  color: rgba(255, 255, 255, 0.65);
}

.site-footer nav {
  display: grid;
  gap: 10px;
}

.site-footer nav strong {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.site-footer nav a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.92rem;
}

.site-footer nav a:hover {
  color: var(--accent);
}

.site-footer__copy {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Páginas legales ---------- */

.legal-page {
  padding: 56px 0 80px;
}

.legal-page__inner {
  width: min(760px, 100% - 40px);
  margin-inline: auto;
}

.legal-hero {
  display: grid;
  gap: 8px;
  margin: 0 0 30px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top left, rgba(255, 196, 135, 0.3), transparent 42%),
    var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.legal-hero h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4.8vw, 2.4rem);
}

.legal-hero p {
  margin: 0;
  color: var(--text-secondary);
}

.legal-disclaimer {
  margin-bottom: 28px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(235, 68, 90, 0.4);
  background: rgba(235, 68, 90, 0.07);
}

.legal-disclaimer h2 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: #c22b42;
}

.legal-disclaimer p {
  margin: 0;
}

.legal-section {
  margin-top: 26px;
}

.legal-section h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.legal-section p,
.legal-section li {
  color: var(--text-secondary);
}

.legal-section ul {
  padding-left: 1.2rem;
  display: grid;
  gap: 8px;
}

.legal-note {
  font-size: 0.85rem;
  font-style: italic;
}
