/* ============================================
   AGENTAR LANDING PAGE — STYLES
   Soporta modo oscuro y claro automáticamente
   via @media (prefers-color-scheme)
   ============================================ */

/* ---- TOKENS ---- */
:root {
  /* Light mode */
  --bg:          #ffffff;
  --bg-secondary:#f5f5f7;
  --bg-card:     #ffffff;
  --bg-card-2:   #f5f5f7;
  --text:        #1d1d1f;
  --text-secondary: #6e6e73;
  --text-muted:  #86868b;
  --border:      rgba(0,0,0,0.08);
  --shadow:      rgba(0,0,0,0.08);
  --shadow-lg:   rgba(0,0,0,0.14);

  --accent:      #007AFF;
  --accent-2:    #5856D6;
  --accent-3:    #34C759;
  --glow-color:  rgba(0,122,255,0.18);

  --nav-bg:      rgba(255,255,255,0.82);
  --nav-border:  rgba(0,0,0,0.1);

  --orbit-bg:    rgba(0,0,0,0.04);
  --icon-bg:     rgba(255,255,255,0.92);
  --icon-shadow: rgba(0,0,0,0.12);

  --radius:      18px;
  --radius-sm:   10px;
  --radius-lg:   28px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:          #000000;
    --bg-secondary:#1c1c1e;
    --bg-card:     #1c1c1e;
    --bg-card-2:   #2c2c2e;
    --text:        #f5f5f7;
    --text-secondary: #aeaeb2;
    --text-muted:  #636366;
    --border:      rgba(255,255,255,0.1);
    --shadow:      rgba(0,0,0,0.4);
    --shadow-lg:   rgba(0,0,0,0.6);

    --glow-color:  rgba(0,122,255,0.25);

    --nav-bg:      rgba(0,0,0,0.75);
    --nav-border:  rgba(255,255,255,0.1);

    --orbit-bg:    rgba(255,255,255,0.05);
    --icon-bg:     rgba(40,40,45,0.95);
    --icon-shadow: rgba(0,0,0,0.5);
  }
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- NAVBAR ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  transition: background 0.3s, border-color 0.3s;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  flex-shrink: 0;
}

.nav-logo {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn-login {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 30px;
  transition: color 0.2s;
}
.btn-login:hover { color: var(--text); }

.btn-cta {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  padding: 8px 18px;
  border-radius: 30px;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-cta:hover { opacity: 0.85; transform: translateY(-1px); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 16px 24px 20px;
  gap: 14px;
  border-top: 1px solid var(--border);
}
.mobile-menu a {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--text); }
.mobile-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 15px !important;
  font-weight: 600 !important;
  text-align: center;
}
.mobile-menu.open { display: flex; }

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 60px;
  overflow: hidden;
  text-align: center;
  background: var(--bg);
}

.hero-bg-blur {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, var(--glow-color), transparent),
    radial-gradient(ellipse 40% 30% at 80% 80%, rgba(88,86,214,0.1), transparent),
    radial-gradient(ellipse 40% 30% at 20% 70%, rgba(52,199,89,0.06), transparent);
  pointer-events: none;
}

/* ---- ORBIT SYSTEM ---- */
.orbit-system {
  position: relative;
  width: 480px;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
}

@media (max-width: 540px) {
  .orbit-system { width: 320px; height: 320px; }
}

.logo-center {
  position: absolute;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-hero {
  width: 110px;
  height: 110px;
  border-radius: 26px;
  object-fit: contain;
  filter: drop-shadow(0 12px 40px rgba(0,122,255,0.25));
  animation: logoPulse 4s ease-in-out infinite;
}

@media (max-width: 540px) {
  .logo-hero { width: 80px; height: 80px; }
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 12px 40px rgba(0,122,255,0.25)); }
  50% { transform: scale(1.04); filter: drop-shadow(0 18px 60px rgba(0,122,255,0.4)); }
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border);
  animation: spin linear infinite;
}

.orbit-1 {
  width: 260px;
  height: 260px;
  animation-duration: 18s;
}

.orbit-2 {
  width: 420px;
  height: 420px;
  animation-duration: 30s;
  animation-direction: reverse;
}

@media (max-width: 540px) {
  .orbit-1 { width: 180px; height: 180px; }
  .orbit-2 { width: 290px; height: 290px; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.orbit-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  --n: 4;
  --pos: calc(var(--i) * (1turn / var(--n)));
  transform:
    rotate(var(--pos))
    translateX(calc(50%))
    rotate(calc(-1 * var(--pos)));
  margin-top: calc(-24px);
  margin-left: calc(-24px);
}

/* Counter-rotate so icons stay upright on orbit-1 */
.orbit-1 .orbit-icon {
  animation: counterSpin1 18s linear infinite;
}
.orbit-2 .orbit-icon {
  animation: counterSpin2 30s linear infinite;
}

@keyframes counterSpin1 {
  from { transform: rotate(calc(var(--i) * 90deg)) translateX(130px) rotate(calc(-1 * var(--i) * 90deg)) rotate(0deg); }
  to   { transform: rotate(calc(var(--i) * 90deg)) translateX(130px) rotate(calc(-1 * var(--i) * 90deg)) rotate(-360deg); }
}
@keyframes counterSpin2 {
  from { transform: rotate(calc(var(--i) * 90deg)) translateX(210px) rotate(calc(-1 * var(--i) * 90deg)) rotate(0deg); }
  to   { transform: rotate(calc(var(--i) * 90deg)) translateX(210px) rotate(calc(-1 * var(--i) * 90deg)) rotate(360deg); }
}

@media (max-width: 540px) {
  @keyframes counterSpin1 {
    from { transform: rotate(calc(var(--i) * 90deg)) translateX(90px) rotate(calc(-1 * var(--i) * 90deg)) rotate(0deg); }
    to   { transform: rotate(calc(var(--i) * 90deg)) translateX(90px) rotate(calc(-1 * var(--i) * 90deg)) rotate(-360deg); }
  }
  @keyframes counterSpin2 {
    from { transform: rotate(calc(var(--i) * 90deg)) translateX(145px) rotate(calc(-1 * var(--i) * 90deg)) rotate(0deg); }
    to   { transform: rotate(calc(var(--i) * 90deg)) translateX(145px) rotate(calc(-1 * var(--i) * 90deg)) rotate(360deg); }
  }
}

.icon-bubble {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--icon-bg);
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px var(--icon-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  backdrop-filter: blur(12px);
  transition: transform 0.2s;
}
.icon-bubble:hover { transform: scale(1.15); }

.icon-label {
  position: absolute;
  top: 52px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s;
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.orbit-icon:hover .icon-label { opacity: 1; }

@media (max-width: 540px) {
  .icon-bubble { width: 36px; height: 36px; font-size: 16px; border-radius: 10px; }
}

/* ---- HERO CONTENT ---- */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hero-title {
  font-size: clamp(60px, 10vw, 100px);
  font-weight: 800;
  letter-spacing: -3px;
  color: var(--text);
  line-height: 1;
}

.btn-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 10px 28px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 12px var(--shadow);
}
.btn-hero-cta:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,122,255,0.3);
}

.hero-subtitle {
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 560px;
}

/* ---- TICKER ---- */
.ticker-section {
  overflow: hidden;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}

.ticker-track { overflow: hidden; }

.ticker-inner {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: ticker 40s linear infinite;
  will-change: transform;
}

.ticker-inner span {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0 16px;
  flex-shrink: 0;
}

.ticker-inner .dot {
  color: var(--text-muted);
  padding: 0 4px;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---- SECTION LABELS & TITLES ---- */
.section-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 56px;
}

/* ---- FEATURES ---- */
.features-section {
  padding: 100px 0;
  background: var(--bg);
}

.features-section .container { text-align: center; }
.features-section .section-title { margin-bottom: 56px; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}

.feature-hero-card {
  grid-column: 1 / -1;
  display: flex !important;
  flex-direction: row !important;
  gap: 32px;
  align-items: center;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%) !important;
  color: #fff !important;
  min-height: 260px;
}

.feature-hero-content {
  flex: 1;
  text-align: left;
}

.feature-hero-content h3 {
  font-size: 28px !important;
  font-weight: 700 !important;
  color: #fff !important;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.feature-hero-content p {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 24px;
  line-height: 1.6;
}

.btn-feature {
  display: inline-flex;
  padding: 10px 22px;
  border-radius: 30px;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(8px);
  transition: background 0.2s, transform 0.2s;
}
.btn-feature:hover { background: rgba(255,255,255,0.3); transform: translateY(-1px); }

.feature-hero-visual { flex-shrink: 0; }

/* Mock Calendar */
.mock-calendar {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 18px;
  padding: 20px;
  width: 240px;
  backdrop-filter: blur(10px);
}

.mock-cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-weight: 600;
  font-size: 13px;
  color: rgba(255,255,255,0.9);
}

.mock-cal-nav { color: rgba(255,255,255,0.6); font-size: 16px; cursor: default; }

.mock-cal-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin-bottom: 12px;
}

.cal-day-label {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 4px 0;
}

.cal-day {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  text-align: center;
  padding: 5px;
  border-radius: 8px;
  cursor: default;
}

.cal-today {
  background: rgba(255,255,255,0.25);
  color: #fff;
  font-weight: 700;
}

.cal-busy {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
}

.mock-cal-appt {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.appt-block {
  font-size: 11px;
  font-weight: 500;
  padding: 5px 9px;
  border-radius: 8px;
  color: #fff;
}
.appt-blue   { background: rgba(0,122,255,0.6); }
.appt-purple { background: rgba(88,86,214,0.6); }
.appt-green  { background: rgba(52,199,89,0.6); }

/* Feature cards */
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 2px 12px var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px var(--shadow-lg);
}

.feature-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-list li {
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}
.feature-list li::before {
  content: "→";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

@media (max-width: 860px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature-hero-card { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
  .feature-hero-card { flex-direction: column; }
  .mock-calendar { width: 100%; }
}

/* ---- FOR WHO ---- */
.for-who-section {
  padding: 100px 0;
  background: var(--bg-secondary);
  text-align: center;
}

.industries-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 48px 0;
}

.industry-chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  box-shadow: 0 2px 8px var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s, background 0.2s;
  cursor: default;
}
.industry-chip:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 24px var(--shadow-lg);
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.for-who-cta { margin-top: 40px; }

/* ---- HOW IT WORKS ---- */
.how-section {
  padding: 100px 0;
  background: var(--bg);
  text-align: center;
}

.steps-grid {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 56px;
}

.step-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 2px 12px var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}
.step-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px var(--shadow-lg); }

.step-number {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.step-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.step-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-connector {
  font-size: 28px;
  font-weight: 300;
  color: var(--text-muted);
  flex-shrink: 0;
}

@media (max-width: 700px) {
  .steps-grid { flex-direction: column; }
  .step-connector { transform: rotate(90deg); }
}

/* ---- PRICING ---- */
.pricing-section {
  padding: 100px 0;
  background: var(--bg-secondary);
  text-align: center;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
  align-items: start;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: left;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 12px var(--shadow);
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px var(--shadow-lg); }

.pricing-popular {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent), 0 8px 32px rgba(0,122,255,0.18);
  transform: scale(1.02);
}
.pricing-popular:hover { transform: scale(1.02) translateY(-4px); }

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 30px;
  white-space: nowrap;
}

.plan-icon { font-size: 36px; margin-bottom: 16px; }

.plan-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.plan-price {
  font-size: 36px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -1px;
  margin-bottom: 10px;
}
.plan-price small {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0;
}

.plan-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.5;
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.plan-features li {
  font-size: 14px;
  color: var(--text-secondary);
}

.plan-features li.disabled { opacity: 0.4; }

.btn-plan {
  display: block;
  text-align: center;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  transition: background 0.2s, transform 0.2s;
}
.btn-plan:hover { background: var(--bg-card-2); transform: translateY(-1px); }

.btn-plan-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-plan-primary:hover { background: #0066d6; }

@media (max-width: 860px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
  .pricing-popular { transform: none; }
  .pricing-popular:hover { transform: translateY(-4px); }
}

/* ---- TESTIMONIALS ---- */
.testimonials-section {
  padding: 100px 0;
  background: var(--bg);
  text-align: center;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: left;
  box-shadow: 0 2px 12px var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px var(--shadow-lg); }

.stars {
  font-size: 18px;
  color: #FF9F0A;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.testimonial-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.testimonial-author div strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.testimonial-author div span {
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 860px) {
  .testimonials-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
}

/* ---- FINAL CTA ---- */
.final-cta-section {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.final-cta-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 36px;
  padding: 80px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 40px var(--shadow-lg);
}

.final-cta-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, var(--glow-color), transparent);
  pointer-events: none;
}

.final-logo {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  object-fit: contain;
  margin: 0 auto 28px;
  filter: drop-shadow(0 8px 24px rgba(0,122,255,0.25));
}

.final-cta-card h2 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.1;
}

.final-cta-card p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 36px;
}

.final-cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---- BUTTONS ---- */
.btn-primary-lg {
  display: inline-flex;
  padding: 14px 32px;
  border-radius: 30px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(0,122,255,0.3);
}
.btn-primary-lg:hover {
  opacity: 0.88;
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(0,122,255,0.4);
}

.btn-secondary-lg {
  display: inline-flex;
  padding: 13px 28px;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 2px 12px var(--shadow);
}
.btn-secondary-lg:hover { background: var(--bg-card-2); transform: translateY(-2px); }

/* ---- FOOTER ---- */
.footer {
  padding: 60px 0 32px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.footer-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
}

.footer-links {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  color: var(--text-muted);
  transition: color 0.2s, transform 0.2s;
}
.footer-social a:hover { color: var(--accent); transform: scale(1.1); }

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-section {
  padding: 64px 0;
  background: linear-gradient(135deg, #f0f4ff 0%, #fafbff 100%);
  border-top: 1px solid rgba(0,122,255,0.08);
  border-bottom: 1px solid rgba(0,122,255,0.08);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 32px 24px;
  border-right: 1px solid rgba(0,122,255,0.1);
  position: relative;
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -2px;
  background: linear-gradient(135deg, var(--accent), #5856D6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(1),
  .stat-item:nth-child(2) { border-bottom: 1px solid rgba(0,122,255,0.1); }
}

/* ============================================================
   APP PREVIEW SECTION
   ============================================================ */
.app-preview-section {
  padding: 120px 0;
  background: var(--bg-white);
  overflow: hidden;
}

/* --- TABS --- */
.app-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 48px 0 40px;
}

.app-tab {
  padding: 10px 22px;
  border-radius: 100px;
  border: 1.5px solid rgba(0,0,0,0.1);
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s ease;
}

.app-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0,122,255,0.05);
}

.app-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,122,255,0.3);
}

/* --- SCREEN CONTAINER --- */
.app-screen-container {
  position: relative;
  min-height: 560px;
}

.app-screen {
  display: none;
  animation: screenFadeIn 0.4s ease;
  align-items: center;
  justify-content: center;
  gap: 60px;
}

.app-screen.active {
  display: flex;
}

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

/* --- SCREEN CAPTION --- */
.screen-caption {
  max-width: 300px;
  flex-shrink: 0;
}

.screen-caption h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.screen-caption p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================================
   PHONE FRAME (mockup móvil oscuro)
   ============================================================ */
.phone-frame {
  width: 260px;
  flex-shrink: 0;
  background: #1c1c1e;
  border-radius: 38px;
  padding: 12px 10px;
  box-shadow:
    0 0 0 2px #3a3a3c,
    0 32px 80px rgba(0,0,0,0.35),
    0 8px 24px rgba(0,0,0,0.2);
  position: relative;
  transition: transform 0.3s ease;
}

.phone-frame:hover { transform: scale(1.02) translateY(-4px); }

.phone-notch {
  width: 80px;
  height: 20px;
  background: #1c1c1e;
  border-radius: 0 0 14px 14px;
  margin: 0 auto 8px;
  position: relative;
  z-index: 2;
}

.phone-screen {
  border-radius: 28px;
  overflow: hidden;
  height: 460px;
  overflow-y: auto;
  scrollbar-width: none;
}
.phone-screen::-webkit-scrollbar { display: none; }

.phone-dark {
  background: #000;
  color: #fff;
  padding: 16px 12px;
}

/* Phone screen internals */
.ps-header { margin-bottom: 14px; }
.ps-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.ps-subtitle {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.5);
}

.ps-toggle {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 3px;
  margin-bottom: 12px;
}
.ps-tog-opt {
  flex: 1;
  text-align: center;
  font-size: 0.65rem;
  padding: 4px 0;
  border-radius: 6px;
  color: rgba(255,255,255,0.5);
  transition: all 0.2s;
}
.ps-tog-opt.active {
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-weight: 600;
}

.ps-date-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
  font-size: 0.62rem;
  color: rgba(255,255,255,0.7);
}
.ps-nav-btn {
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  color: #fff;
  cursor: pointer;
  font-size: 0.7rem;
  line-height: 18px;
  text-align: center;
  padding: 0;
}
.ps-today-pill {
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  padding: 2px 7px;
  font-size: 0.6rem;
  font-weight: 600;
}
.ps-date-txt { color: rgba(255,255,255,0.6); }

.ps-professionals {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  overflow-x: auto;
}
.ps-pro-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 44px;
}
.ps-pro-active .ps-pro-avatar {
  box-shadow: 0 0 0 2px var(--accent);
}
.ps-clock-icon {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}
.ps-pro-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}
.ps-pro-name {
  font-size: 0.55rem;
  color: rgba(255,255,255,0.6);
}

.ps-time-grid { display: flex; flex-direction: column; gap: 6px; }
.ps-time-row {
  display: grid;
  grid-template-columns: 56px 1fr 1fr;
  gap: 4px;
  align-items: center;
}
.ps-time {
  font-size: 0.55rem;
  color: rgba(255,255,255,0.4);
}
.ps-slot {
  height: 28px;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
}
.ps-slot-booked { border-style: solid; border-color: transparent; }

/* Finance cards (Resumen tab) */
.ps-finance-cards { display: flex; flex-direction: column; gap: 8px; }
.ps-finance-card {
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255,255,255,0.06);
}
.ps-finance-icon { font-size: 1.2rem; }
.ps-finance-info { flex: 1; }
.ps-finance-label {
  font-size: 0.55rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.ps-finance-value {
  font-size: 1rem;
  font-weight: 700;
}

/* ============================================================
   DESKTOP FRAME (mockup escritorio claro)
   ============================================================ */
.desktop-frame {
  width: 580px;
  max-width: 100%;
  flex-shrink: 0;
  background: #fff;
  border-radius: 16px;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.08),
    0 24px 60px rgba(0,0,0,0.12),
    0 4px 16px rgba(0,0,0,0.06);
  display: flex;
  overflow: hidden;
  height: 400px;
  transition: transform 0.3s ease;
}

.desktop-frame:hover { transform: scale(1.01) translateY(-4px); }

/* Sidebar */
.df-sidebar {
  width: 140px;
  flex-shrink: 0;
  background: #f5f5f7;
  border-right: 1px solid rgba(0,0,0,0.06);
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.df-nav-item {
  font-size: 0.75rem;
  font-weight: 500;
  color: #555;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: default;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.15s;
}
.df-nav-active {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

/* Content area */
.df-content {
  flex: 1;
  padding: 20px 18px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.1) transparent;
}
.df-page-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

/* Gestión menu list */
.df-menu-list { display: flex; flex-direction: column; gap: 2px; }
.df-menu-item {
  padding: 10px 14px;
  border-radius: 10px;
  background: #f5f5f7;
  font-size: 0.8rem;
  font-weight: 500;
  color: #3a3a3c;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: default;
  transition: background 0.15s;
}
.df-menu-item:hover { background: #eaeaec; }
.df-toggle {
  width: 32px;
  height: 18px;
  border-radius: 9px;
  background: #ccc;
  display: inline-block;
  position: relative;
  flex-shrink: 0;
}
.df-toggle::after {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: left 0.2s;
}
.df-toggle.on {
  background: #34C759;
}
.df-toggle.on::after { left: 16px; }

/* Finanzas / Caja */
.df-caja {
  background: #f9f9fb;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 14px;
}
.df-caja-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.df-caja-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}
.df-input-group { flex: 1; }
.df-input-label { font-size: 0.65rem; color: #888; margin-bottom: 4px; font-weight: 500; }
.df-input-field {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.7rem;
  color: #aaa;
}
.df-pago-btns { display: flex; gap: 6px; }
.df-pago-btn {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 20px;
  background: #eaeaec;
  color: #555;
  cursor: default;
}
.df-pago-btn.active { background: var(--accent); color: #fff; }
.df-total-box {
  text-align: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #888;
  padding: 10px;
  background: #fff;
  border-radius: 8px;
  border: 1px dashed rgba(0,0,0,0.1);
  margin-bottom: 10px;
}
.df-total-num { font-size: 1.2rem; color: #1d1d1f; display: block; }
.df-registrar-btn {
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  text-align: center;
  cursor: default;
}
.df-resumen-title {
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1d1d1f;
}
.df-resumen-card {
  background: linear-gradient(135deg, #f0fff4, #e8fdf0);
  border: 1px solid rgba(52,199,89,0.2);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #888;
}
.df-rs-val { font-size: 1.1rem; font-weight: 700; }

/* Clientes / Buscar */
.df-category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.df-chip {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
  background: #f0f0f5;
  color: #555;
  cursor: default;
  border: 1.5px solid transparent;
}
.df-chip.active { background: rgba(0,122,255,0.1); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.df-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.df-business-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.df-business-item {
  padding: 8px 12px;
  border-radius: 8px;
  background: #f5f5f7;
  font-size: 0.75rem;
  color: #3a3a3c;
  cursor: default;
}
.df-services-list { display: flex; flex-direction: column; gap: 4px; }
.df-service-item {
  padding: 8px 12px;
  border-radius: 8px;
  background: #f5f5f7;
  font-size: 0.75rem;
  color: #3a3a3c;
  cursor: default;
}

/* --- Responsive App Preview --- */
@media (max-width: 900px) {
  .app-screen {
    flex-direction: column;
    align-items: center;
  }
  .screen-caption {
    text-align: center;
    max-width: 400px;
  }
  .desktop-frame {
    width: 100%;
    max-width: 500px;
  }
}

@media (max-width: 540px) {
  .app-tabs { gap: 6px; }
  .app-tab { font-size: 0.8rem; padding: 8px 16px; }
  .desktop-frame { height: 340px; }
  .df-sidebar { width: 100px; }
  .df-nav-item { font-size: 0.65rem; padding: 6px 8px; }
  .phone-frame { width: 220px; }
  .phone-screen { height: 380px; }
}

/* ---- REVEAL ANIMATION ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 540px) {
  .hero { padding-top: 80px; }
  .hero-title { letter-spacing: -2px; }
  .final-cta-card { padding: 48px 24px; }
  .footer-top { flex-direction: column; }
  .footer-links { gap: 32px; }
}
