:root {
  --bg: #f5f7fb;
  --bg-soft: #ffffff;
  --bg-hero: radial-gradient(circle at top left, #0f172a, #020617 60%);
  --text: #0f172a;
  --text-muted: #6b7280;
  --primary: #38bdf8;
  --primary-dark: #0891b2;
  --border: #e5e7eb;
  --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.35);
  --radius-lg: 18px;
  --radius-xl: 26px;
  --transition: 0.25s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid rgba(15, 23, 42, 0.7);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #f9fafb;
}

.logo img {
  height: 30px;
  width: auto;
}

.logo.small img {
  height: 22px;
}

.logo span {
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 600;
}

.main-nav {
  display: flex;
  gap: 14px;
  align-items: center;
}

.main-nav a {
  text-decoration: none;
  color: #9ca3af;
  font-size: 0.9rem;
  padding: 6px 10px;
  border-radius: 999px;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.main-nav a:hover {
  background: rgba(15, 23, 42, 0.75);
  color: #f9fafb;
  transform: translateY(-1px);
}

.main-nav a.active {
  background: rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
}

/* BUTTONS */

.btn-primary,
.btn-outline,
.btn-text {
  font-family: inherit;
  font-size: 0.9rem;
  border-radius: 999px;
  padding: 9px 18px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: #0f172a;
  font-weight: 600;
  box-shadow: 0 14px 34px rgba(56, 189, 248, 0.5);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(56, 189, 248, 0.65);
}

.btn-outline {
  background: transparent;
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.7);
}

.btn-outline:hover {
  background: rgba(15, 23, 42, 0.75);
}

.btn-text {
  background: transparent;
  color: var(--primary-dark);
  padding-inline: 0;
  border-radius: 0;
}

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

.small {
  font-size: 0.8rem;
  padding: 6px 14px;
}

/* MOBILE MENU */

.mobile-menu-toggle {
  display: none;
  width: 34px;
  height: 28px;
  border-radius: 9px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.9);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  padding: 4px;
}

.mobile-menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
}

/* HERO (HOME) */

.hero {
  background: var(--bg-hero);
  color: #e5e7eb;
  padding: 70px 0 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: #e5e7eb;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  margin-bottom: 14px;
}

.hero-sub {
  font-size: 0.98rem;
  color: #cbd5f5;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  margin-bottom: 20px;
}

.hero-note {
  margin-top: 10px;
  font-size: 0.8rem;
  color: #9ca3af;
}

.hero-visual {
  position: relative;
  min-height: 260px;
}

.hero-card {
  background: rgba(15, 23, 42, 0.92);
  border-radius: var(--radius-xl);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(15, 23, 42, 0.9);
}

.hero-card h3,
.hero-card h4 {
  margin-bottom: 6px;
  color: #f9fafb;
}

.hero-card p {
  font-size: 0.9rem;
  color: #cbd5f5;
}

.hero-stats-row {
  display: flex;
  gap: 16px;
  margin-top: 14px;
}

.hero-stats-row .label {
  display: block;
  font-size: 0.75rem;
  color: #9ca3af;
}

.hero-stats-row strong {
  font-size: 1rem;
  color: #f97316;
}

.hero-card.secondary {
  position: absolute;
  right: 0;
  bottom: -12px;
  width: 70%;
}

/* PAGE HERO (otras páginas) */

.page-hero {
  background: var(--bg-hero);
  color: #e5e7eb;
  padding: 70px 0 40px;
}

.page-hero h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.page-hero p {
  max-width: 680px;
  color: #cbd5f5;
  font-size: 0.98rem;
}

/* SECCIONES GENERALES */

.section {
  padding: 60px 0;
}

.bg-soft {
  background: #f9fafb;
}

.section-header {
  text-align: center;
  margin-bottom: 32px;
}

.section-header h2 {
  font-size: 1.9rem;
  margin-bottom: 8px;
}

.section-header p {
  color: var(--text-muted);
}

.narrow {
  max-width: 720px;
  margin: 0 auto;
}

.center-text {
  text-align: center;
}

/* CARDS / GRID GENÉRICOS */

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

.card {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 18px 18px 16px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  font-size: 0.92rem;
}

.card h3 {
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.card p {
  color: var(--text-muted);
}

/* LISTAS */

.checklist {
  list-style: none;
  margin-top: 10px;
}

.checklist li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 6px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.9rem;
}

.bullet-list {
  margin-top: 6px;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* PLATFORM / AI GRID */

.platform-grid,
.ai-grid,
.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px;
  align-items: flex-start;
}

.dashboard-mockup {
  background: #020617;
  color: #e5e7eb;
  border-radius: 24px;
  padding: 18px 18px 14px;
  box-shadow: var(--shadow-card);
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.status-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
  font-size: 0.75rem;
}

.dashboard-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  font-size: 0.8rem;
}

.dashboard-stat {
  background: rgba(15, 23, 42, 0.85);
  border-radius: 14px;
  padding: 9px 11px;
}

.dashboard-stat .label {
  display: block;
  color: #9ca3af;
  font-size: 0.75rem;
}

.ai-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
  font-size: 0.92rem;
}

/* HOW IT WORKS / STEPS */

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

.step-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 18px 18px 16px;
  border: 1px solid rgba(209, 213, 219, 0.95);
  position: relative;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
  font-size: 0.9rem;
}

.step-number {
  position: absolute;
  top: -12px;
  left: 16px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #0f172a;
  color: #f9fafb;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CTA + CALENDLY */

.cta-section {
  background: #020617;
  color: #e5e7eb;
  text-align: center;
}

.cta-inner {
  padding-bottom: 24px;
}

.cta-section h2 {
  font-size: 1.9rem;
  margin-bottom: 8px;
}

.calendly-container {
  max-width: 960px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow-card);
}

.calendly-section {
  background: #f9fafb;
  padding-top: 32px;
  padding-bottom: 60px;
}

/* CONTACT FORM */

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  margin-top: 10px;
  margin-bottom: 12px;
}

.form-row-full {
  grid-column: 1 / -1;
}

label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 4px;
  color: #4b5563;
}

input,
textarea,
select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 8px 10px;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
  background: #ffffff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary-dark);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.helper {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.calendly-card {
  margin-top: 18px;
  background: #020617;
  color: #e5e7eb;
  border-radius: 18px;
  padding: 14px 14px 12px;
  font-size: 0.86rem;
}

.calendly-card p {
  margin-bottom: 8px;
  color: #cbd5f5;
}

/* TEXT UTILS */

.muted {
  color: var(--text-muted);
}

/* ANIMATIONS */

.floating {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0px);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.delay-1 {
  transition-delay: 0.15s;
}
.delay-2 {
  transition-delay: 0.3s;
}
.delay-3 {
  transition-delay: 0.45s;
}
.delay-4 {
  transition-delay: 0.6s;
}
.delay-5 {
  transition-delay: 0.75s;
}
.delay-6 {
  transition-delay: 0.9s;
}

/* FOOTER */

.site-footer {
  background: #020617;
  color: #9ca3af;
  padding: 16px 0 12px;
  border-top: 1px solid rgba(31, 41, 55, 0.8);
}

.footer-inner {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 14px;
  font-size: 0.86rem;
}

.footer-links a {
  text-decoration: none;
  color: #9ca3af;
}

.footer-links a:hover {
  color: #e5e7eb;
}

/* RESPONSIVE */

@media (max-width: 840px) {
  .hero-grid,
  .platform-grid,
  .ai-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 54px;
  }

  .hero-visual {
    order: -1;
  }

  .only-desktop {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: 56px;
    right: 16px;
    flex-direction: column;
    align-items: flex-start;
    background: #020617;
    padding: 10px 10px;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
    min-width: 170px;
    transform-origin: top right;
    transform: scale(0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .main-nav.open {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}
.section-dark {
  background: #eef2f9; /* un poco más oscuro que blanco */
}

/* Si quieres un poco más todavía: */
.section-dark {
  background: #e6ebf5;
}

/* Y si la quieres más marcada tipo SaaS */
.section-dark {
  background: #dde3ee;
}
.cta-inner .btn-primary {
  margin-top: 20px;
  margin-bottom: 20px;
}
/* === Animated background for PLATFORM & AI sections (behind graphics) === */

.section-platform-animated,
.section-ai-animated {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Fondo animado sección PLATFORM */
.section-platform-animated::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: 0;
  background:
    radial-gradient(circle at 80% 25%, rgba(56, 189, 248, 0.45), transparent 30%),
    radial-gradient(circle at 95% 80%, rgba(14, 165, 233, 0.35), transparent 75%);
  filter: blur(40px);
  animation: sectionWaves 8s ease-in-out infinite alternate;
}

/* Fondo animado sección AI */
.section-ai-animated::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: 0;
  background:
    radial-gradient(circle at 80% 25%, rgba(56, 189, 248, 0.40), transparent 30%),
    radial-gradient(circle at 95% 80%, rgba(14, 165, 233, 0.35), transparent 75%);
  filter: blur(40px);
  animation: sectionWaves 8s ease-in-out infinite alternate;
}

/* Que el contenido quede por encima de la animación */
.section-platform-animated > .container,
.section-ai-animated > .container {
  position: relative;
  z-index: 1;
}

@keyframes sectionWaves {
  0% {
    transform: translate(0px, 0px) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translate(-20px, -10px) scale(1.12);
    opacity: 1;
  }
  100% {
    transform: translate(15px, 15px) scale(1.05);
    opacity: 0.9;
  }
}
/* === ExtraDrivers promo – style like ExtraDrivers "Need Help with Driver Hiring?" section === */

.xtradrivers-bottom {
  background: linear-gradient(135deg, #e6f1ff, #f4f7ff);
  color: #0f172a;
  padding-top: 60px;
  padding-bottom: 60px;
  border-top: 1px solid rgba(209, 213, 219, 0.7);
}

.xtradrivers-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.xtradrivers-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #1e293b;
  background: rgba(255, 255, 255, 0.9);
  margin-bottom: 10px;
}

.xtradrivers-title {
  font-size: 1.9rem;
  margin-bottom: 12px;
}

.xtradrivers-text {
  font-size: 0.98rem;
  color: #4b5563;
  margin-bottom: 12px;
}

.xtradrivers-text.subtle {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 22px;
}

.xtradrivers-text strong {
  color: #0f172a;
}

/* Botón un poquito más compacto que el hero, para diferenciar */
.xtradrivers-inner .btn-primary {
  padding-inline: 22px;
  padding-block: 9px;
  font-size: 0.9rem;
}
.services-result-section {
  background: #e9eef5; /* suave, más oscuro que bg-soft */
}
.page-hero p + .btn-primary {
  margin-top: 22px;
}
.services-page .section p + .btn-primary {
  margin-top: 26px;
	margin-bottom: 26px;
}
.services-result-section .container {
  text-align: center;
}

.services-result-section p + .btn-primary {
  margin-top: 23px;
}

.services-result-section .btn-primary {
  margin-bottom: 23px;
}

/* Force 3 cards per row in "How it works" section */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 900px) {
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}
/* More spacing between the submit button and helper text on Contact page */
.contact-grid .card form .btn-primary + .helper {
  margin-top: 32px;
	margin-bottom: 32px;
}

.contact-grid .card form .btn-primary {
  margin-bottom: 20px; /* aumenta el espacio debajo del botón */
}

/* More vertical spacing around the Open Calendly button */
.calendly-card .btn-primary {
  margin-top: 15px;     /* espacio arriba */
  margin-bottom: 15px;  /* espacio abajo */
}
