/* ============================================================
   TaxiVolta · www.taxivolta.com
   Diseño exclusivo — modo oscuro premium
   ============================================================ */

:root {
  --black: #000000;
  --ink: #0a0a0a;
  --panel: #111113;
  --panel-2: #17171a;
  --line: rgba(255, 255, 255, 0.08);
  --yellow: #FDCE04;
  --yellow-soft: rgba(253, 206, 4, 0.12);
  --green: #00D26A; /* verde "lliure" del taxi de Barcelona */
  --white: #FFFFFF;
  --muted: rgba(255, 255, 255, 0.64);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
  --shadow-soft: 0 6px 24px rgba(0, 0, 0, 0.35);
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Manrope', 'Inter', system-ui, sans-serif;
  --header-h: 64px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container { width: min(1180px, 92%); margin-inline: auto; }
.container--narrow { width: min(820px, 92%); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: var(--yellow);
  color: var(--black);
  box-shadow: 0 8px 28px rgba(253, 206, 4, 0.28);
}
.btn--primary:hover { box-shadow: 0 12px 36px rgba(253, 206, 4, 0.4); }
.btn--ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.1); }
.btn--whatsapp {
  background: rgba(0, 210, 106, 0.14);
  border-color: rgba(0, 210, 106, 0.5);
  color: var(--green);
}
.btn--whatsapp:hover { background: rgba(0, 210, 106, 0.22); }
.btn--sm { padding: 0.6rem 1.2rem; font-size: 0.9rem; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.header.is-scrolled { background: rgba(0, 0, 0, 0.85); border-bottom-color: var(--line); }

.topbar {
  display: none;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
}
.topbar__inner { display: flex; gap: 1.6rem; justify-content: flex-end; padding: 0.4rem 0; }
.topbar__item { color: var(--muted); transition: color 0.2s; }
.topbar__item:hover { color: var(--yellow); }

.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.nav__brand { display: flex; align-items: center; gap: 0.65rem; }
.nav__brand img { width: 44px; height: 44px; border-radius: 10px; }
.nav__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--yellow);
}
.nav__name em { font-style: normal; color: var(--white); }

.nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}
.nav__toggle span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__menu {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.96);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.2rem 6%;
  border-bottom: 1px solid var(--line);
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
}
.nav__menu.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
.nav__menu a:not(.btn) {
  display: block;
  padding: 0.7rem 0.2rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--muted);
  transition: color 0.2s;
}
.nav__menu a:not(.btn):hover { color: var(--yellow); }
.nav__cta { margin-top: 0.6rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg, .hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.28) 40%, rgba(0,0,0,0.88) 100%),
    linear-gradient(100deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.25) 60%, rgba(0,0,0,0.05) 100%);
}
.hero__content { position: relative; z-index: 2; padding: calc(var(--header-h) + 48px) 0 96px; }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  animation: fadeUp 0.8s ease both;
}
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot--green { background: var(--green); box-shadow: 0 0 12px var(--green); animation: pulse 2s infinite; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 8.5vw, 4.8rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 1.1rem 0 0.9rem;
  animation: fadeUp 0.8s 0.12s ease both;
}
.hero__title span { color: var(--yellow); }
.hero__subtitle {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 34ch;
  animation: fadeUp 0.8s 0.22s ease both;
}
.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.4rem 0 2rem;
  animation: fadeUp 0.8s 0.32s ease both;
}
.hero__chips li {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--yellow);
  background: var(--yellow-soft);
  border: 1px solid rgba(253, 206, 4, 0.3);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  animation: fadeUp 0.8s 0.42s ease both;
}
.hero__scroll {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  z-index: 2;
}
.hero__scroll span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  background: var(--yellow);
  border-radius: 4px;
  animation: scrollHint 1.8s infinite;
}

/* ---------- Secciones ---------- */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section--alt { background: linear-gradient(180deg, var(--ink), var(--black)); }
.section__kicker {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 0.7rem;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 5vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 0.9rem;
}
.section__lead { color: var(--muted); max-width: 56ch; margin-bottom: 2.6rem; font-size: 1.05rem; }

/* ---------- Tarjetas de servicios ---------- */
.cards {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1fr;
  margin-top: 2.2rem;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.card:hover { transform: translateY(-6px); border-color: rgba(253, 206, 4, 0.45); box-shadow: var(--shadow); }
.card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; transition: transform 0.6s ease; }
.card:hover img { transform: scale(1.04); }
.card__body { padding: 1.4rem 1.5rem 1.6rem; }
.card__body h3 { font-family: var(--font-display); font-size: 1.22rem; font-weight: 800; margin-bottom: 0.45rem; }
.card__body p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.9rem; }
.card__link { font-weight: 700; font-size: 0.92rem; color: var(--yellow); transition: opacity 0.2s; }
.card__link:hover { opacity: 0.75; }

/* ---------- Pasos ---------- */
.steps {
  counter-reset: step;
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr;
  margin-top: 2.4rem;
}
.step {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem 1.6rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.step:hover { transform: translateY(-4px); border-color: rgba(253, 206, 4, 0.4); }
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--yellow);
  color: var(--black);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 6px 18px rgba(253, 206, 4, 0.3);
}
.step h3 { font-family: var(--font-display); font-size: 1.12rem; font-weight: 800; margin-bottom: 0.4rem; }
.step p { color: var(--muted); font-size: 0.94rem; }
.step:not(:last-child)::after {
  content: '↓';
  position: absolute;
  left: 50%;
  bottom: -1.15rem;
  transform: translateX(-50%);
  color: var(--yellow);
  font-size: 1.2rem;
  z-index: 2;
}

/* ---------- Apps ---------- */
.apps { display: grid; gap: 1.6rem; grid-template-columns: 1fr; margin-top: 2.2rem; }
.app-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s ease, border-color 0.35s ease;
}
.app-card:hover { transform: translateY(-6px); border-color: rgba(253, 206, 4, 0.45); }
.app-card__banner { width: 100%; aspect-ratio: 1024 / 500; object-fit: cover; }
.app-card__body { display: flex; gap: 1rem; align-items: flex-start; padding: 1.4rem 1.5rem 0.4rem; }
.app-card__icon { width: 64px; height: 64px; border-radius: 16px; flex-shrink: 0; box-shadow: var(--shadow-soft); }
.app-card__body h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; margin-bottom: 0.3rem; }
.app-card__body p { color: var(--muted); font-size: 0.94rem; }
.app-card__stores { display: flex; flex-wrap: wrap; gap: 0.8rem; padding: 1.2rem 1.5rem 1.5rem; }
.store {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  padding: 0.55rem 1.1rem;
  color: var(--white);
  opacity: 0.85;
  cursor: default;
  transition: border-color 0.25s, opacity 0.25s;
}
.store:hover { border-color: var(--yellow); opacity: 1; }
.store span { display: flex; flex-direction: column; line-height: 1.15; font-family: var(--font-display); font-weight: 700; font-size: 0.98rem; }
.store span small { font-weight: 500; font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }

/* ---------- Galería / Slider ---------- */
.gallery { position: relative; background: var(--ink); }
.slider { position: relative; overflow: hidden; }
.slider__track { display: flex; transition: transform 0.7s cubic-bezier(0.33, 1, 0.68, 1); }
.slide { position: relative; flex: 0 0 100%; }
.slide img { width: 100%; height: clamp(340px, 72vh, 680px); object-fit: cover; }
.slide figcaption {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.85rem, 2.4vw, 1.05rem);
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
}
.slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
}
.slider__btn:hover { background: rgba(253, 206, 4, 0.9); color: var(--black); border-color: var(--yellow); }
.slider__btn--prev { left: 14px; }
.slider__btn--next { right: 14px; }
.slider__dots {
  position: absolute;
  bottom: 0.8rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  z-index: 3;
}
.slider__dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, transform 0.25s;
}
.slider__dots button.is-active { background: var(--yellow); transform: scale(1.35); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0.9rem; margin-top: 2rem; }
.faq__item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.3s;
}
.faq__item[open] { border-color: rgba(253, 206, 4, 0.45); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 3rem 1.15rem 1.3rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  position: relative;
  transition: color 0.2s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--yellow);
  font-size: 1.5rem;
  font-weight: 400;
  transition: transform 0.3s;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item summary:hover { color: var(--yellow); }
.faq__answer { padding: 0 1.3rem 1.2rem; color: var(--muted); font-size: 0.95rem; }
.faq__answer a { color: var(--yellow); font-weight: 600; }

/* ---------- CTA final ---------- */
.cta {
  padding: clamp(4.5rem, 9vw, 7rem) 0;
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(253, 206, 4, 0.14) 0%, transparent 60%),
    var(--ink);
  border-top: 1px solid var(--line);
  text-align: center;
}
.cta h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 5vw, 2.8rem); letter-spacing: -0.02em; }
.cta p { color: var(--muted); margin: 0.8rem 0 1.8rem; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; }
.cta__mail { margin-top: 1.6rem !important; font-size: 0.95rem; }
.cta__mail a { color: var(--yellow); font-weight: 600; }

/* ---------- Footer ---------- */
.footer { background: var(--black); border-top: 1px solid var(--line); }
.footer__grid {
  display: grid;
  gap: 2.4rem;
  grid-template-columns: 1fr;
  padding: 3.5rem 0 2.5rem;
}
.footer__brand img { width: 96px; height: 96px; border-radius: 18px; margin-bottom: 1rem; }
.footer__brand p { color: var(--muted); font-size: 0.92rem; max-width: 30ch; }
.footer__col { display: flex; flex-direction: column; gap: 0.55rem; }
.footer__col h4 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--yellow);
  margin-bottom: 0.4rem;
}
.footer__col a { color: var(--muted); font-size: 0.94rem; transition: color 0.2s; }
.footer__col a:hover { color: var(--white); }
.footer__social { display: flex; gap: 0.7rem; }
.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: color 0.25s, border-color 0.25s, transform 0.25s;
}
.footer__social a:hover { color: var(--yellow); border-color: var(--yellow); transform: translateY(-3px); }
.footer__bottom { border-top: 1px solid var(--line); padding: 1.2rem 0; }
.footer__bottom p { color: rgba(255, 255, 255, 0.45); font-size: 0.85rem; text-align: center; }

/* ---------- Barra móvil fija ---------- */
.mobilebar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 90;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  padding: 0.5rem 0.6rem calc(0.5rem + env(safe-area-inset-bottom));
  gap: 0.4rem;
}
.mobilebar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--white);
  padding: 0.35rem 0;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s;
}
.mobilebar a span { font-size: 1.15rem; }
.mobilebar a:active { background: rgba(255, 255, 255, 0.08); }
.mobilebar__wa { color: var(--green) !important; }
body { padding-bottom: 72px; } /* espacio para la barra móvil */

/* ---------- Animaciones ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 210, 106, 0.55); }
  50% { box-shadow: 0 0 0 7px rgba(0, 210, 106, 0); }
}
@keyframes scrollHint {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Escritorio
   ============================================================ */
@media (min-width: 768px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
  .step:not(:last-child)::after { content: none; }
  .apps { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

@media (min-width: 1000px) {
  .topbar { display: block; }
  .mobilebar { display: none; }
  body { padding-bottom: 0; }
  .nav__toggle { display: none; }
  .nav__menu {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 1.6rem;
    padding: 0;
    background: none;
    border: 0;
    transform: none;
    opacity: 1;
    visibility: visible;
    backdrop-filter: none;
  }
  .nav__menu a:not(.btn) { padding: 0.2rem 0; font-size: 0.95rem; }
  .nav__cta { margin: 0 0 0 0.4rem; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); position: relative; }
  .step:not(:last-child)::after {
    content: '→';
    left: auto;
    right: -1.35rem;
    top: 2rem;
    bottom: auto;
    transform: none;
  }
}
