:root {
  --jota-cyan: #62f0df;
  --negro: #111111;
  --hueso: #fdfbf7;
}

body {
  background-color: var(--hueso);
  color: var(--negro);
  scroll-behavior: smooth;
}

/* Racing Titles */
.racing-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

/* Navbar logic */
.nav-base {
  transition: all 0.4s ease;
  background: rgba(17, 17, 17, 0.42);
  backdrop-filter: blur(8px);
}

.nav-scrolled {
  background: rgba(255, 255, 255, 0.98);
  padding: 0.5rem 0;
  border-bottom: 2px solid var(--jota-cyan);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.nav-scrolled .nav-link {
  color: var(--negro);
  border-color: rgba(0, 0, 0, 0.1);
}

.nav-scrolled .logo-img {
  filter: none;
}

.nav-link {
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(17, 17, 17, 0.28);
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  transition: all 0.3s;
  color: white;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.nav-shell {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  background: rgba(17, 17, 17, 0.18);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.nav-link--more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-more-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  min-width: 12rem;
  padding: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.5rem;
  background: rgba(17, 17, 17, 0.9);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.24);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.group:hover .nav-more-menu,
.group:focus-within .nav-more-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-more-item {
  display: block;
  padding: 0.8rem 1rem;
  border-radius: 1rem;
  color: white;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-more-item:hover {
  background: rgba(98, 240, 223, 0.16);
  color: var(--jota-cyan);
  transform: translateX(2px);
}

.nav-link:hover {
  background: var(--jota-cyan);
  color: var(--negro) !important;
  border-color: var(--jota-cyan);
}

.nav-scrolled .nav-link {
  background: rgba(255, 255, 255, 0.85);
}

.nav-scrolled .nav-shell {
  border-color: rgba(17, 17, 17, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.nav-scrolled .nav-more-menu {
  border-color: rgba(17, 17, 17, 0.08);
  background: rgba(255, 255, 255, 0.98);
}

.nav-scrolled .nav-more-item {
  color: var(--negro);
}

/* Buttons */
.btn-jota {
  background: var(--jota-cyan);
  color: var(--negro);
  transition: all 0.3s ease;
  border: 2px solid var(--jota-cyan);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-jota:hover {
  background: transparent;
  color: var(--jota-cyan);
  transform: translateY(-2px);
}

.btn-outline-jota {
  border: 2px solid var(--jota-cyan);
  color: var(--jota-cyan);
  font-weight: 700;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.btn-outline-jota:hover {
  background: var(--jota-cyan);
  color: var(--negro);
}

/* Tooltips & Interaction */
.ride-card:hover .ride-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.ride-tooltip {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

@media (hover: none), (pointer: coarse), (max-width: 767px) {
  .ride-tooltip {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* Moodboard */
.moodboard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 250px);
  gap: 1rem;
}

.mood-item {
  border-radius: 1.5rem;
  overflow: hidden;
  position: relative;
}

.mood-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.mood-item:hover img {
  transform: scale(1.1);
}

.mood-1 {
  grid-column: span 2;
  grid-row: span 2;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Booking Engine Inputs */
.j-input {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.75rem;
  padding: 0.6rem 0.8rem;
  width: 100%;
  outline: none;
  transition: border 0.2s;
  font-weight: 600;
  color: var(--negro);
  font-size: 0.85rem;
}

.j-input:focus {
  border-color: var(--jota-cyan);
  box-shadow: 0 0 0 3px rgba(98, 240, 223, 0.2);
}

.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  z-index: 100;
  transition: transform 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float.support-float--chat {
  background: linear-gradient(135deg, #111111 0%, #1f2937 100%);
  border: 1px solid rgba(98, 240, 223, 0.34);
}

.support-chat-panel {
  position: fixed;
  right: 1.25rem;
  bottom: 6.25rem;
  width: min(24rem, calc(100vw - 1.5rem));
  z-index: 110;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.support-chat-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.support-chat__shell {
  display: flex;
  flex-direction: column;
  max-height: min(78vh, 42rem);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 1.75rem;
  background: rgba(253, 251, 247, 0.98);
  box-shadow: 0 24px 60px rgba(17, 17, 17, 0.18);
  overflow: hidden;
}

.support-chat__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem 0.75rem;
  background: linear-gradient(135deg, #111111 0%, #1f2937 100%);
  color: #fff;
}

.support-chat__title {
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.support-chat__subtitle {
  margin-top: 0.3rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.78rem;
}

.support-chat__close {
  border: 0;
  background: transparent;
  color: #62f0df;
  font-size: 1.1rem;
  cursor: pointer;
}

.support-chat__body {
  padding: 1rem;
}

.support-chat__body.is-loading {
  opacity: 0.7;
}

.support-chat__status,
.support-chat__hint {
  font-size: 0.74rem;
  color: #5f6368;
  margin-bottom: 0.85rem;
}

.support-chat__form,
.support-chat__composer {
  display: grid;
  gap: 0.75rem;
}

.support-chat__input,
.support-chat__textarea {
  width: 100%;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 1rem;
  background: #fff;
  padding: 0.85rem 0.95rem;
  font: inherit;
  color: #111111;
}

.support-chat__textarea {
  min-height: 6rem;
  resize: vertical;
}

.support-chat__primary,
.support-chat__send,
.support-chat__option,
.support-chat__link {
  border-radius: 999px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  padding: 0.78rem 1rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.support-chat__primary,
.support-chat__send {
  background: #62f0df;
  color: #111111;
  border-color: #62f0df;
}

.support-chat__buttons {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.support-chat__option,
.support-chat__link {
  background: #fff;
  color: #111111;
}

.support-chat__timeline {
  display: grid;
  gap: 0.65rem;
  max-height: 18rem;
  overflow: auto;
  padding-right: 0.2rem;
}

.support-chat__bubble {
  max-width: 88%;
  padding: 0.85rem 0.95rem;
  border-radius: 1rem;
  font-size: 0.88rem;
  line-height: 1.45;
}

.support-chat__bubble--bot {
  background: #ffffff;
  border: 1px solid rgba(17, 17, 17, 0.08);
  color: #111111;
}

.support-chat__bubble--customer {
  margin-left: auto;
  background: #111111;
  color: #fff;
}

.support-chat__footer {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.support-chat__link {
  flex: 1 1 0;
}

.support-chat__error {
  margin: 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.9rem;
  background: #fff2f2;
  color: #b42318;
  font-size: 0.78rem;
}

@media (max-width: 640px) {
  .support-chat-panel {
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
    bottom: 5.5rem;
  }

  .support-chat__shell {
    max-height: 72vh;
    border-radius: 1.35rem;
  }
}

.banner-cta-dark {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  border: 1px solid rgba(98, 240, 223, 0.2);
}

#jota-rental-app {
  position: relative;
}

#homeHeroViewport {
  touch-action: pan-y pinch-zoom;
}

.checkout-mobile-bar {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 5.5rem);
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr);
  gap: 0.75rem;
  margin: 1.25rem 0 1.5rem;
  padding: calc(env(safe-area-inset-top, 0px) * 0.2 + 0.9rem) 0.95rem 0.95rem;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 1.75rem;
  background: rgba(253, 251, 247, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px rgba(17, 17, 17, 0.12);
}

.checkout-mobile-bar__secondary,
.checkout-mobile-bar__primary {
  min-height: 3.75rem;
  box-shadow: 0 14px 32px rgba(17, 17, 17, 0.12);
}

.checkout-mobile-bar__secondary {
  background: rgba(255, 255, 255, 0.88);
}

.checkout-mobile-bar__primary {
  font-size: 0.88rem;
}

.contact__items {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.contact__items--centered {
  justify-items: center;
}

.contact__item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.95rem;
  min-height: 5rem;
  padding: 1rem 1.15rem;
  border-radius: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
}

.contact__item--centered {
  width: 100%;
  max-width: 22rem;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.contact__item:hover {
  transform: translateY(-2px);
  border-color: rgba(98, 240, 223, 0.5);
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

.contact__item-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  flex: 0 0 3rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
}

.contact__item-copy {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.22rem;
}

.contact__item--centered .contact__item-copy {
  align-items: center;
}

.contact__item-label {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.56);
}

.contact__item-value {
  display: block;
  min-width: 0;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
}

.contact__item--whatsapp {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.2) 0%, rgba(37, 211, 102, 0.12) 100%);
  border-color: rgba(37, 211, 102, 0.38);
}

.contact__icon {
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 auto;
}

@media (max-width: 767px) {
  .whatsapp-float {
    right: 18px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
  }

  .contact__items {
    grid-template-columns: 1fr;
  }

  .contact__item {
    align-items: flex-start;
    min-height: 0;
    padding: 1rem;
  }

  .contact__item-badge {
    width: 2.75rem;
    height: 2.75rem;
    flex-basis: 2.75rem;
    border-radius: 0.95rem;
  }

  .contact__item-label {
    font-size: 0.64rem;
    letter-spacing: 0.14em;
  }

  .contact__item-value {
    font-size: 0.92rem;
  }
}
