/* Paleta y tipografía tomadas de app-movil/src/theme/variables.scss y app-movil/src/index.html
   para que la landing se vea coherente con la app. */
:root {
  --color-primary: #127a33;
  --color-primary-shade: #0d5b26;
  --color-primary-tint: #2c8f4a;
  --color-secondary: #f4700f;
  --color-secondary-shade: #d7620d;
  --color-danger: #e8261c;
  --color-bg: #fffaf2;
  --color-surface: #ffffff;
  --color-icon-bg: #fbebd8;
  --color-text: #201e1d;
  --color-text-muted: #5c5654;
  --color-border: #ece3d6;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Figtree", system-ui, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  overflow-x: hidden;
}

h1,
h2,
h3,
.font-display {
  font-family: "Livvic", sans-serif;
  margin: 0;
}

a {
  color: var(--color-primary);
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-subtitle {
  max-width: 560px;
  margin: 8px auto 0;
  color: var(--color-text-muted);
  text-align: center;
}

.section-subtitle--light {
  color: rgba(255, 255, 255, 0.85);
}

/* Simple header used on legal pages */
.site-header {
  padding: 20px 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-header img {
  height: 36px;
  width: 36px;
}

.site-header span {
  font-family: "Livvic", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
}

/* Navbar (home page) */
.navbar {
  padding: 18px 0;
  position: sticky;
  top: 0;
  background: rgba(255, 250, 242, 0.9);
  backdrop-filter: blur(6px);
  z-index: 10;
  border-bottom: 1px solid transparent;
}

.navbar__inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 700;
  font-family: "Livvic", sans-serif;
  font-size: 1.3rem;
  margin-right: auto;
}

.navbar__brand img {
  height: 36px;
  width: 36px;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.navbar__links a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.navbar__links a:hover,
.navbar__links a.is-active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.btn-download {
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 999px;
  white-space: nowrap;
}

.btn-download:hover {
  background: var(--color-primary-shade);
}

@media (max-width: 760px) {
  .navbar__links {
    display: none;
  }
}

/* Hero */
.hero {
  padding: 56px 0 88px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 48px;
}

.hero-copy h1 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--color-primary-shade);
  line-height: 1.15;
}

.hero-copy .subtitle {
  max-width: 460px;
  margin: 20px 0 32px;
  color: var(--color-text-muted);
  font-size: 1.15rem;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: 0;
}

.hero-visual::before {
  width: 340px;
  height: 340px;
  background: var(--color-primary-tint);
  opacity: 0.22;
  top: -30px;
  right: 10%;
}

.hero-visual::after {
  width: 240px;
  height: 240px;
  background: var(--color-secondary);
  opacity: 0.16;
  bottom: -20px;
  left: 10%;
}

/* Phone mockup */
.phone-frame {
  position: relative;
  z-index: 1;
  border: 10px solid var(--color-text);
  border-radius: 40px;
  overflow: hidden;
  max-width: 240px;
  margin: 0 auto;
  box-shadow: 0 24px 48px -24px rgba(32, 30, 29, 0.4);
  background: var(--color-text);
}

.phone-frame img {
  width: 100%;
  display: block;
  border-radius: 30px;
}

.phone-frame__notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 20px;
  background: var(--color-text);
  border-radius: 0 0 14px 14px;
  z-index: 2;
}

.phone-frame--lg {
  max-width: 280px;
  border-width: 12px;
  border-radius: 46px;
}

.phone-frame--lg img {
  border-radius: 34px;
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy .subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-visual {
    order: -1;
  }
}

/* Download buttons */
.download-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-copy .download-buttons {
  justify-content: flex-start;
}

@media (max-width: 860px) {
  .hero-copy .download-buttons {
    justify-content: center;
  }
}

.store-badge {
  display: inline-flex;
  align-items: center;
}

.store-badge img {
  height: 56px;
  width: auto;
}

.store-badge--soon {
  cursor: default;
  opacity: 0.7;
}

/* Features */
.features {
  padding: 64px 0;
}

.features h2 {
  text-align: center;
  font-size: 1.8rem;
  color: var(--color-primary-shade);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 28px 24px;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: var(--color-icon-bg);
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

.feature-icon--primary {
  color: var(--color-primary);
}

.feature-icon--secondary {
  color: var(--color-secondary);
}

.feature-icon--danger {
  color: var(--color-danger);
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--color-text);
}

.feature-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* App gallery */
.app-gallery {
  padding: 64px 0;
  background: var(--color-surface);
}

.app-gallery h2 {
  text-align: center;
  font-size: 1.8rem;
  color: var(--color-primary-shade);
}

.app-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-top: 48px;
  text-align: center;
}

.app-gallery-item h3 {
  font-size: 1.1rem;
  margin: 24px 0 6px;
  color: var(--color-text);
}

.app-gallery-item p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* CTA band */
.cta-band {
  position: relative;
  background: var(--color-primary);
  color: #fff;
  padding: 64px 0;
  text-align: center;
  overflow: hidden;
}

.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: #fff;
  opacity: 0.07;
}

.cta-band::before {
  width: 320px;
  height: 320px;
  top: -160px;
  left: -80px;
}

.cta-band::after {
  width: 260px;
  height: 260px;
  bottom: -140px;
  right: -60px;
}

.cta-band .wrap {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  color: #fff;
  font-size: 1.8rem;
}

.cta-band .download-buttons {
  margin-top: 32px;
}

/* Footer */
.site-footer {
  padding: 48px 0 24px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  height: 40px;
  width: 40px;
}

.footer-brand strong {
  display: block;
  color: var(--color-text);
  font-family: "Livvic", sans-serif;
  font-size: 1.1rem;
}

.footer-brand p {
  margin: 2px 0 0;
}

.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.site-footer nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--color-primary);
}

/* Legal pages */
.legal-page {
  padding: 32px 0 64px;
}

.legal-page .wrap {
  max-width: 760px;
}

.legal-page h1 {
  color: var(--color-primary-shade);
  margin-bottom: 8px;
}

.legal-page .version {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.legal-page h2 {
  font-size: 1.15rem;
  margin-top: 32px;
  margin-bottom: 8px;
  color: var(--color-text);
}

.legal-page p,
.legal-page li {
  color: var(--color-text-muted);
}

.legal-page a.back {
  display: inline-block;
  margin-bottom: 24px;
  font-weight: 600;
  text-decoration: none;
}
