:root {
  /* ... CSS rules */
}
html[data-lang="en"] [data-lang="es"] { display: none !important; }
html[data-lang="es"] [data-lang="en"] { display: none !important; }

:root {
  --bg-color: #ffffff;
  --bg-gradient: radial-gradient(circle at top right, #f8f9ff, #ffffff);
  --text-primary: #1f2937;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --border-color: #e5e7eb;
  --card-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
  --accent: #5B47E0;
  --accent-hover: #4a38cc;
  --success: #10b981;
  --input-bg: #f9fafb;
}

[data-theme="dark"] {
  --bg-color: #09090b;
  --bg-gradient: radial-gradient(circle at top right, #1a1a24, #09090b);
  --text-primary: #f9fafb;
  --text-secondary: #d1d5db;
  --text-muted: #6b7280;
  --border-color: #27272a;
  --card-bg: rgba(24, 24, 27, 0.6);
  --glass-border: rgba(255, 255, 255, 0.05);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  --input-bg: #18181b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  background: var(--bg-color);
  background-image: var(--bg-gradient);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  transition: background 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dot { color: var(--accent); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-icon {
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.btn-icon:hover {
  background: var(--border-color);
}

.lang-label {
  font-weight: 600;
  font-size: 0.875rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 14px rgba(91, 71, 224, 0.3);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(91, 71, 224, 0.4);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--text-primary);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

/* Hero Section */
.hero {
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
}

.hero-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(91, 71, 224, 0.1);
  color: var(--accent);
  border: 1px solid rgba(91, 71, 224, 0.2);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

[data-theme="dark"] .hero-tag {
  background: rgba(91, 71, 224, 0.2);
  color: #a78bfa;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

/* Problem Section */
.problem-section {
  padding: 80px 0;
  background: linear-gradient(180deg, transparent, rgba(91, 71, 224, 0.03), transparent);
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.problem-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.problem-text p {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

.notification-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--glass-shadow);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  opacity: 0;
  animation: slideInRight 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.notification-card:nth-child(1) {
  animation-delay: 0.2s;
}

.notification-card:nth-child(2) {
  animation-delay: 0.5s;
}

.notification-card.missed {
  border-left: 4px solid #ef4444;
  animation: slideInRight 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards, vibrate 2s ease infinite 1s;
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 0.9; transform: translateX(20px); }
}

@keyframes vibrate {
  0% { transform: translateX(20px) rotate(0deg); }
  2% { transform: translateX(18px) rotate(-1deg); }
  4% { transform: translateX(22px) rotate(1deg); }
  6% { transform: translateX(18px) rotate(-1deg); }
  8% { transform: translateX(22px) rotate(1deg); }
  10% { transform: translateX(20px) rotate(0deg); }
  100% { transform: translateX(20px) rotate(0deg); }
}

.notif-icon {
  background: #fef2f2;
  color: #ef4444;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
[data-theme="dark"] .notif-icon {
  background: rgba(239, 68, 68, 0.2);
}

/* Solution Bento Grid */
.solution-section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.bento-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--glass-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  position: relative;
}

.bento-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.1);
}

.bento-card.col-span-2 {
  grid-column: span 2;
}

.bento-icon {
  width: 48px;
  height: 48px;
  background: rgba(91, 71, 224, 0.1);
  color: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.bento-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.bento-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Chat simulation inside bento */
.chat-sim {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.chat-bubble {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.875rem;
  max-width: 85%;
  opacity: 0;
  transform: translateY(10px);
}

.bento-card.is-visible .chat-bubble {
  animation: slideInBubble 0.4s ease forwards;
}

.bento-card.is-visible .chat-bubble:nth-child(1) { animation-delay: 0.6s; }
.bento-card.is-visible .chat-bubble:nth-child(2) { animation-delay: 1.8s; }
.bento-card.is-visible .chat-bubble:nth-child(3) { animation-delay: 3.2s; }
.bento-card.is-visible .chat-bubble:nth-child(4) { animation-delay: 4.4s; }

@keyframes slideInBubble {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-user {
  background: var(--border-color);
  color: var(--text-primary);
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.chat-bot {
  background: var(--accent);
  color: white;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

/* Steps */
.steps-section {
  padding: 80px 0;
  background: var(--card-bg);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.step-number {
  width: 48px;
  height: 48px;
  background: transparent;
  color: var(--text-muted);
  border: 2px solid var(--border-color);
  font-weight: 700;
  font-size: 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.step-number::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0%;
  background: var(--accent);
  z-index: -1;
  transition: height 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-card.animate-fill .step-number {
  border-color: var(--accent);
  color: white;
  transition: color 0.4s ease 0.3s, border-color 0.4s ease;
}

.step-card.animate-fill .step-number::before {
  height: 100%;
}

/* Base fade in animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Pricing */
.pricing-section {
  padding: 80px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2.5rem;
  position: relative;
  box-shadow: var(--glass-shadow);
}

.pricing-card.highlight {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--glass-shadow);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.pricing-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.pricing-period {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 500;
}

.pricing-features {
  list-style: none;
  margin: 2rem 0;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.pricing-features li svg {
  color: var(--success);
  flex-shrink: 0;
}

/* Modal Form */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  background: var(--input-bg);
  color: var(--text-primary);
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 0.25rem;
}

.checkbox-group label {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Footer */
.footer {
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
  margin-top: 40px;
}

.footer-logo {
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Media Queries */
@media (max-width: 900px) {
  .hero-title { font-size: 2.5rem; }
  .problem-grid { grid-template-columns: 1fr; gap: 2rem; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card.col-span-2 { grid-column: span 1; }
  .steps-grid { grid-template-columns: 1fr; gap: 3rem; }
  .pricing-grid { grid-template-columns: 1fr; }
}

/* v2026-09-28 — el logo y el pie regresan al home */
a.logo { color: inherit; text-decoration: none; }
a.logo:hover { opacity: .85; }
.footer-logo a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }