/* Enlaces en el footer y navegación */
footer nav a {
  color: var(--accent);
  text-decoration: none;
  font-weight: bold;
  margin: 0 6px;
  transition: color 0.2s;
}
footer nav a.active {
  text-decoration: underline;
}
footer nav a:hover {
  color: var(--accent2);
}
[data-theme="dark"] footer nav a {
  color: var(--accent);
}
[data-theme="dark"] footer nav a:hover {
  color: var(--accent2);
}
[data-theme="dark"] .footer-link {
  color: var(--accent2);
}

/* Tema dark/light */
:root {
  --bg-main: #f8fafc;
  --bg-section: #fff;
  --bg-section-alt: #ede9f7;
  --bg-pricing: #f8fafc;
  --bg-pricing-alt: #e0e7ef;
  --text-main: #1e293b;
  --accent: #663399;
  --accent2: #06b6d4;
  --card-bg: #fff;
  --card-border: #e0e7ef;
  --shadow: rgba(102, 51, 153, 0.08);
  --hero-gradient: linear-gradient(120deg, #663399 0%, #06b6d4 100%);
  --features-gradient: linear-gradient(120deg, #fff 60%, #ede9f7 100%);
  --pricing-gradient: linear-gradient(120deg, #f8fafc 60%, #e0e7ef 100%);
  --cta-gradient: linear-gradient(120deg, #06b6d4 0%, #663399 100%);
}
[data-theme="dark"] {
  --bg-main: #181825;
  --bg-section: #232136;
  --bg-section-alt: #2d2250;
  --bg-pricing: #181825;
  --bg-pricing-alt: #232136;
  --text-main: #f8fafc;
  --accent: #a786ff;
  --accent2: #06b6d4;
  --card-bg: #232136;
  --card-border: #3b375a;
  --shadow: rgba(167, 134, 255, 0.1);
  --hero-gradient: linear-gradient(120deg, #2d2250 0%, #232136 100%);
  --features-gradient: linear-gradient(120deg, #232136 60%, #181825 100%);
  --pricing-gradient: linear-gradient(120deg, #181825 60%, #232136 100%);
  --cta-gradient: linear-gradient(120deg, #232136 0%, #2d2250 100%);
}

/* Animaciones fade-in suaves */
.fade-in {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: opacity 0.7s cubic-bezier(0.23, 1.02, 0.32, 1),
    transform 0.7s cubic-bezier(0.23, 1.02, 0.32, 1);
}
.fade-in.revealed {
  opacity: 1;
  transform: none;
  transition-delay: var(--delay, 0s);
}
.feature:hover,
.plan:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 8px 32px rgba(102, 51, 153, 0.13);
  transition: transform 0.25s cubic-bezier(0.23, 1.02, 0.32, 1),
    box-shadow 0.25s;
  z-index: 2;
}
.cta,
.store-btn,
.contact-btn {
  will-change: transform, box-shadow;
}
body {
  font-family: "Montserrat", Arial, sans-serif;
  margin: 0;
  background: var(--bg-main);
  color: var(--text-main);
}
.hero {
  background: var(--hero-gradient);
  color: #fff;
  padding: 56px 0 40px 0;
  text-align: center;
  box-shadow: 0 4px 24px rgba(102, 51, 153, 0.08);
}
.logo {
  width: 40%;
  max-width: 300px;
  margin: 0 auto 24px auto;
  display: block;
  margin-bottom: 18px;
}
.cta {
  display: inline-block;
  margin-top: 28px;
  background: #fff;
  color: var(--accent);
  font-weight: bold;
  padding: 14px 36px;
  border-radius: 28px;
  text-decoration: none;
  font-size: 1.15rem;
  box-shadow: 0 2px 8px rgba(102, 51, 153, 0.08);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.cta:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.12);
}
.features {
  padding: 56px 0 40px 0;
  background: var(--features-gradient);
}
.features h2 {
  text-align: center;
  margin-bottom: 36px;
  color: var(--accent);
  font-size: 2.1rem;
}
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  justify-content: center;
}
.feature {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  box-shadow: 0 2px 12px var(--shadow);
  border-radius: 18px;
  padding: 36px 26px;
  max-width: 340px;
  flex: 1 1 280px;
  text-align: center;
}
.feature img {
  width: 68px;
  margin-bottom: 18px;
}
.feature h3 {
  color: var(--accent);
  margin-bottom: 18px;
  font-size: 1.25rem;
}
.feature ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.feature li {
  margin-bottom: 12px;
  font-size: 1.05rem;
}
.pricing {
  padding: 56px 0 40px 0;
  background: var(--pricing-gradient);
}
.pricing h2 {
  text-align: center;
  color: var(--accent);
  margin-bottom: 36px;
  font-size: 2.1rem;
}
.pricing-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  margin-bottom: 24px;
}
.plan {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  box-shadow: 0 2px 12px var(--shadow);
  border-radius: 18px;
  padding: 36px 28px 32px 28px;
  max-width: 260px;
  flex: 1 1 220px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.plan h3 {
  color: var(--accent);
  margin-bottom: 12px;
  font-size: 1.2rem;
}
.plan .price {
  font-size: 2.1rem;
  color: var(--accent2);
  margin-bottom: 18px;
  font-weight: bold;
}
.plan .price span {
  font-size: 1rem;
  color: #64748b;
  font-weight: normal;
}
.plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 18px 0;
}
.plan li {
  margin-bottom: 10px;
  font-size: 1rem;
}
.plan-badge {
  background: var(--accent);
  color: #fff;
  font-size: 0.95rem;
  padding: 4px 16px;
  border-radius: 12px;
  position: absolute;
  top: 18px;
  right: 18px;
  font-weight: bold;
}
.plan.free {
  border: 2px solid #06b6d4;
}
.plan.pro {
  border: 2px solid #663399;
  box-shadow: 0 4px 24px rgba(102, 51, 153, 0.12);
}
.plan.max {
  border: 2px solid #1e293b;
}
.plan.custom {
  border: 2px dashed #06b6d4;
}
.contact-btn {
  display: inline-block;
  margin-top: 10px;
  background: #663399;
  color: #fff;
  padding: 10px 24px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.2s, color 0.2s;
}
.contact-btn:hover {
  background: var(--accent);
  color: #fff;
}
.pricing-note {
  text-align: center;
  color: #64748b;
  font-size: 1rem;
  margin-top: 18px;
}
.cta-section {
  background: var(--cta-gradient);
  color: #fff;
  padding: 56px 0 40px 0;
  text-align: center;
}
.store-buttons {
  margin-top: 28px;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 14px;
  padding: 14px 36px;
  border-radius: 28px;
  background: #fff;
  color: var(--accent);
  font-weight: bold;
  text-decoration: none;
  font-size: 1.15rem;
  box-shadow: 0 2px 8px rgba(102, 51, 153, 0.08);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.store-icon {
  width: 28px;
  height: 28px;
  margin-right: 6px;
}
.store-btn.android:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.12);
}
.store-btn.ios:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.12);
}
footer {
  background: var(--bg-section-alt);
  color: var(--text-main);
  text-align: center;
  padding: 28px 0 14px 0;
  font-size: 1rem;
}
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}
#theme-toggle-btn {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 20;
  background: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  box-shadow: 0 2px 8px rgba(102, 51, 153, 0.13);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
#theme-toggle-btn:hover {
  background: #ede9f7;
}
[data-theme="dark"] #theme-toggle-btn {
  background: #232136;
  box-shadow: 0 2px 8px rgba(167, 134, 255, 0.13);
}
[data-theme="dark"] #theme-toggle-btn:hover {
  background: #2d2250;
}
#theme-toggle-icon {
  display: block;
}
@media (max-width: 900px) {
  .features-grid,
  .pricing-grid {
    flex-direction: column;
    align-items: center;
  }
  .plan {
    max-width: 340px;
  }
}
@media (max-width: 600px) {
  .store-buttons {
    flex-direction: column !important;
    display: flex !important;
    gap: 16px;
    align-items: stretch;
  }
  .store-btn {
    width: 100%;
    max-width: 340px;
    justify-content: center;
    margin: 0 auto;
    box-sizing: border-box;
  }
}
