/* ═══════════════════════════════════════════════════
   GemaCar Home — Refresh 2026
   Dirección: automotriz con carácter (negro + azul app)
   ═══════════════════════════════════════════════════ */

/* ─── Tokens ─────────────────────────────────────── */
:root {
  --gc-bg:          #ffffff;
  --gc-bg-alt:      #f7f8fa;
  --gc-bg-dark:     #0a0a0a;
  --gc-bg-dark-alt: #171717;

  --gc-card:        #ffffff;
  --gc-card-dark:   #1a1a1a;

  --gc-text:        #1f2937;
  --gc-text-muted:  #6b7280;
  --gc-heading:     #0a0a0a;

  --gc-text-on-dark:        #e5e7eb;
  --gc-text-muted-on-dark:  #9ca3af;
  --gc-heading-on-dark:     #fafafa;

  --gc-accent:        #0066ff;
  --gc-accent-hover:  #0052cc;
  --gc-accent-soft:   rgba(0,102,255,0.08);
  --gc-accent-on-dark: #4d8eff;

  --gc-border:      #e5e7eb;
  --gc-border-dark: #262626;

  --gc-radius:      16px;
  --gc-radius-sm:   10px;
  --gc-radius-btn:  12px;

  --gc-shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.06);
  --gc-shadow:    0 4px 6px rgba(0,0,0,0.04), 0 12px 28px rgba(0,0,0,0.06);
  --gc-shadow-lg: 0 30px 60px rgba(0,0,0,0.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --gc-bg:          #0a0a0a;
    --gc-bg-alt:      #111111;
    --gc-card:        #1a1a1a;

    --gc-text:        #d1d5db;
    --gc-text-muted:  #9ca3af;
    --gc-heading:     #fafafa;

    --gc-accent:        #4d8eff;
    --gc-accent-hover:  #6ba0ff;
    --gc-accent-soft:   rgba(77,142,255,0.12);

    --gc-border:      #262626;

    --gc-shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --gc-shadow:    0 4px 6px rgba(0,0,0,0.3), 0 12px 28px rgba(0,0,0,0.4);
    --gc-shadow-lg: 0 30px 60px rgba(0,0,0,0.5);
  }
}

/* ─── Reset + base ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--gc-text);
  background: var(--gc-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }

a {
  color: var(--gc-accent);
  text-decoration: none;
  transition: color .15s ease;
}
a:hover { color: var(--gc-accent-hover); }

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  color: var(--gc-heading);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 .6rem;
  font-weight: 700;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.85rem, 3.5vw, 2.75rem); }
h3 { font-size: 1.35rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { margin: 0 0 1rem; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container.narrow { max-width: 780px; }

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

/* ─── Botones ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.5rem;
  border-radius: var(--gc-radius-btn);
  font-family: inherit;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .18s ease;
  text-decoration: none;
  line-height: 1;
}
.btn-primary { background: var(--gc-accent); color: #fff; }
.btn-primary:hover {
  background: var(--gc-accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,102,255,0.25);
}
.btn-ghost {
  background: transparent;
  color: var(--gc-heading);
  border-color: var(--gc-border);
}
.btn-ghost:hover { border-color: var(--gc-accent); color: var(--gc-accent); }
.btn-on-dark { background: #fff; color: var(--gc-bg-dark); }
.btn-on-dark:hover { background: #f3f4f6; color: var(--gc-bg-dark); transform: translateY(-1px); }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }

/* ─── Header ────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--gc-bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--gc-border);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand img { height: 42px; }
.primary-nav { display: flex; align-items: center; gap: 2rem; }
.primary-nav a {
  color: var(--gc-text);
  font-weight: 500;
  font-size: .95rem;
}
.primary-nav a:hover { color: var(--gc-accent); }
.primary-nav .btn { color: #fff; padding: .65rem 1.25rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--gc-heading);
  margin: 5px 0;
  border-radius: 2px;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: absolute;
    top: 72px; right: 0; left: 0;
    background: var(--gc-bg);
    border-bottom: 1px solid var(--gc-border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem 1.5rem 1rem;
    display: none;
  }
  .primary-nav.open { display: flex; }
  .primary-nav a {
    padding: .9rem 0;
    border-bottom: 1px solid var(--gc-border);
  }
  .primary-nav a:last-child {
    border-bottom: 0;
    margin-top: .5rem;
    text-align: center;
    padding: .85rem 1.25rem;
  }
}

/* ─── Hero (oscuro) ─────────────────────────────── */
.hero {
  position: relative;
  background: var(--gc-bg-dark);
  color: var(--gc-text-on-dark);
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(3rem, 8vw, 5rem);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -10% -20% auto auto;
  width: 70%;
  height: 80%;
  background: radial-gradient(circle, rgba(0,102,255,0.30) 0%, transparent 65%);
  z-index: -1;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero h1 { color: var(--gc-heading-on-dark); }
.hero h1 em {
  font-style: normal;
  color: var(--gc-accent-on-dark);
  background: linear-gradient(135deg, #4d8eff, #00c2ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gc-accent-on-dark);
  padding: .35rem .85rem;
  background: rgba(77,142,255,0.12);
  border: 1px solid rgba(77,142,255,0.25);
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.hero-lead {
  font-size: 1.18rem;
  color: var(--gc-text-on-dark);
  max-width: 46ch;
  margin-bottom: 2rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: .85rem; align-items: center; }
.hero-meta {
  margin-top: 1.25rem;
  font-size: .9rem;
  color: var(--gc-text-muted-on-dark);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-meta .ios-soon {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .7rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.phone-mockup {
  position: relative;
  max-width: 320px;
  width: 100%;
  border-radius: 36px;
  overflow: hidden;
  box-shadow:
    0 0 0 8px #1a1a1a,
    0 0 0 9px #262626,
    var(--gc-shadow-lg);
  transform: rotate(-2deg);
  transition: transform .3s ease;
}
.phone-mockup:hover { transform: rotate(0deg) scale(1.02); }
.phone-mockup img { width: 100%; display: block; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-meta { justify-content: center; }
  .phone-mockup { max-width: 260px; }
}

/* ─── Secciones ─────────────────────────────────── */
.section { padding: clamp(4rem, 8vw, 6rem) 0; }
.section-alt   { background: var(--gc-bg-alt); }
.section-dark  { background: var(--gc-bg-dark); color: var(--gc-text-on-dark); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--gc-heading-on-dark); }
.section-dark .eyebrow { color: var(--gc-text-muted-on-dark); }
.section-dark .muted   { color: var(--gc-text-muted-on-dark); }

.eyebrow {
  display: block;
  text-align: center;
  font-size: .8rem;
  letter-spacing: .15em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--gc-accent);
  margin: 0 0 .75rem;
}
.section-title  { text-align: center; margin-bottom: .75rem; }
.section-intro  {
  text-align: center;
  font-size: 1.1rem;
  color: var(--gc-text-muted);
  max-width: 56ch;
  margin: 0 auto 3rem;
}
.section-dark .section-intro { color: var(--gc-text-muted-on-dark); }

.lead { font-size: 1.1rem; }

/* ─── Grids ─────────────────────────────────────── */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 860px) { .cards-3 { grid-template-columns: 1fr; } }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 2.5rem; } }

/* ─── Beneficios (cards icono) ──────────────────── */
.benefit-card {
  padding: 2rem 1.75rem;
  background: var(--gc-card);
  border: 1px solid var(--gc-border);
  border-radius: var(--gc-radius);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.benefit-card:hover {
  transform: translateY(-4px);
  border-color: var(--gc-accent);
  box-shadow: var(--gc-shadow);
}
.benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--gc-radius-sm);
  background: var(--gc-accent-soft);
  color: var(--gc-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.benefit-icon svg { width: 26px; height: 26px; }
.benefit-card h3 { margin-bottom: .4rem; }
.benefit-card p  { color: var(--gc-text-muted); margin: 0; font-size: .98rem; }

/* ─── Cómo funciona (pasos zigzag) ──────────────── */
.steps { display: flex; flex-direction: column; gap: 4rem; margin-top: 1rem; }
.step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.step:nth-child(even) .step-visual { order: -1; }
@media (max-width: 860px) {
  .step { grid-template-columns: 1fr; gap: 2rem; }
  .step:nth-child(even) .step-visual { order: 0; }
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--gc-accent);
  color: #fff;
  border-radius: 50%;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1.25rem;
}
.step h3 { font-size: 1.6rem; }
.step p  { color: var(--gc-text-muted); font-size: 1.05rem; }

.step-visual { display: flex; justify-content: center; }
.step-placeholder {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 9 / 16;
  background: linear-gradient(135deg, var(--gc-bg-alt), var(--gc-border));
  border-radius: 28px;
  border: 1px solid var(--gc-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--gc-text-muted);
  text-align: center;
  padding: 2rem;
}
.step-placeholder svg { width: 56px; height: 56px; opacity: .4; }
.step-placeholder span { font-size: .85rem; }

.step-screenshot {
  width: 100%;
  max-width: 300px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 0 0 6px #1a1a1a,
    0 0 0 7px #262626,
    var(--gc-shadow);
}
.step-screenshot img { display: block; width: 100%; }

/* ─── Feature destacada ─────────────────────────── */
.feature-bullets {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}
.feature-bullets li {
  display: flex;
  gap: .85rem;
  padding: .65rem 0;
  align-items: flex-start;
}
.feature-bullets svg {
  flex-shrink: 0;
  width: 22px; height: 22px;
  color: var(--gc-accent-on-dark);
  margin-top: 2px;
}

/* ─── Pricing ───────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 360px));
  gap: 1.5rem;
  justify-content: center;
  margin-top: 1rem;
}
@media (max-width: 720px) { .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; } }

.price-card {
  background: var(--gc-card);
  border: 1px solid var(--gc-border);
  border-radius: var(--gc-radius);
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border-color: var(--gc-accent);
  box-shadow: 0 0 0 4px var(--gc-accent-soft);
  position: relative;
}
.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gc-accent);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .35rem .85rem;
  border-radius: 999px;
}
.price-card h3 { font-size: 1.35rem; margin-bottom: .3rem; }
.price-card .price-tagline { color: var(--gc-text-muted); margin: 0 0 1.5rem; font-size: .95rem; }
.price-amount {
  display: flex;
  align-items: baseline;
  gap: .35rem;
  margin-bottom: 1.5rem;
}
.price-amount .price-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--gc-heading);
  letter-spacing: -0.03em;
  line-height: 1;
}
.price-amount .price-per { color: var(--gc-text-muted); font-size: .95rem; }
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  flex-grow: 1;
}
.price-card ul li {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  font-size: .98rem;
  color: var(--gc-text);
}
.price-card ul svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--gc-accent); margin-top: 2px; }
.price-card .btn { width: 100%; }

/* ─── Video embed ───────────────────────────────── */
.video-embed {
  position: relative;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--gc-radius);
  box-shadow: var(--gc-shadow);
}
.video-embed iframe { width: 100%; height: 100%; border: 0; }

/* ─── Talleres / Empresas CTA ───────────────────── */
.workshops-card {
  background: var(--gc-bg-dark);
  color: var(--gc-text-on-dark);
  border-radius: var(--gc-radius);
  padding: clamp(1.75rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.workshops-card::before {
  content: '';
  position: absolute;
  inset: auto -10% -50% auto;
  width: 60%;
  height: 100%;
  background: radial-gradient(circle, rgba(0,102,255,0.35) 0%, transparent 60%);
  z-index: -1;
}
.workshops-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.workshops-grid > * { min-width: 0; }
@media (max-width: 860px) { .workshops-grid { grid-template-columns: 1fr; gap: 2rem; } }
.workshops-card h2 {
  color: var(--gc-heading-on-dark);
  overflow-wrap: anywhere;
  hyphens: auto;
}
.workshops-card p  { color: var(--gc-text-on-dark); overflow-wrap: anywhere; }

@media (max-width: 600px) {
  .workshops-card { padding: 1.75rem 1.25rem; }
  .workshops-card h2 { font-size: 1.65rem; }
}

/* ─── Forms ─────────────────────────────────────── */
.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--gc-card);
  padding: 2rem;
  border-radius: var(--gc-radius);
  border: 1px solid var(--gc-border);
  min-width: 0;
  max-width: 100%;
}
@media (max-width: 600px) {
  .form { padding: 1.5rem 1.25rem; }
}
.form label {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--gc-heading);
}
.form input,
.form textarea,
.form select {
  font: inherit;
  padding: .8rem 1rem;
  border: 1px solid var(--gc-border);
  border-radius: var(--gc-radius-btn);
  background: var(--gc-bg);
  color: var(--gc-text);
  width: 100%;
  max-width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: none;
  border-color: var(--gc-accent);
  box-shadow: 0 0 0 3px var(--gc-accent-soft);
}
.form textarea { resize: vertical; min-height: 120px; }
.form button { align-self: flex-start; }

.form-status {
  margin: 0;
  padding: .75rem 1rem;
  border-radius: var(--gc-radius-btn);
  font-size: .92rem;
}
.form-status.ok  { background: #d1fae5; color: #065f46; }
.form-status.err { background: #fee2e2; color: #991b1b; }
@media (prefers-color-scheme: dark) {
  .form-status.ok  { background: #064e3b; color: #a7f3d0; }
  .form-status.err { background: #7f1d1d; color: #fecaca; }
}

/* ─── Contacto ──────────────────────────────────── */
.contact-grid { align-items: start; }
.social-row { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.25rem; }
.social-row a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gc-bg-alt);
  border: 1px solid var(--gc-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s ease;
  color: var(--gc-text);
}
.social-row a:hover {
  background: var(--gc-accent);
  border-color: var(--gc-accent);
  color: #fff;
  transform: translateY(-2px);
}
.social-row svg { width: 22px; height: 22px; }

/* ─── Footer ────────────────────────────────────── */
.site-footer {
  background: var(--gc-bg-dark);
  color: var(--gc-text-muted-on-dark);
  padding: 3rem 0 2rem;
  text-align: center;
  font-size: .9rem;
}
.site-footer p { margin: .35rem 0; }
.site-footer a { color: var(--gc-text-on-dark); }
.site-footer a:hover { color: var(--gc-accent-on-dark); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.75rem;
  margin-bottom: 1.25rem;
}
.footer-brand { margin-bottom: 1rem; }
.footer-brand img { height: 36px; margin: 0 auto; filter: brightness(0) invert(1); opacity: .9; }
.site-footer .footer-credit { color: #6b7280; font-size: .82rem; margin-top: .75rem; }

/* ─── Back to top ───────────────────────────────── */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gc-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: var(--gc-shadow);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 50;
}
.back-to-top.visible { opacity: .9; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover  { opacity: 1; color: #fff; transform: translateY(-2px); }
@media (max-width: 600px) {
  .back-to-top {
    width: 40px;
    height: 40px;
    right: .9rem;
    bottom: .9rem;
    font-size: 1.1rem;
    opacity: .8;
  }
}

/* ─── Reveal on scroll ──────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
