/* 5devs Rent a Car — Bootstrap 5 custom theme */
:root {
  --rr-black: #000000;
  --rr-page-bg: #000000;
  --rr-gold: #5b9bd5;
  --rr-gold-dark: #1e4976;
  --rr-green: #25d366;
  --rr-surface: rgba(255, 255, 255, 0.03);
  --rr-border: rgba(255, 255, 255, 0.06);
  --rr-text-muted: rgba(255, 255, 255, 0.6);
  --rr-nav-height: 56px;

  /* Override Bootstrap defaults — evita tintes/grises al scroll */
  --bs-body-bg: #000000;
  --bs-body-color: #ffffff;
  --bs-secondary: rgba(255, 255, 255, 0.55);
  --bs-secondary-rgb: 255, 255, 255;
  --bs-border-color: rgba(255, 255, 255, 0.06);
  --bs-accordion-bg: transparent;
  --bs-accordion-color: #ffffff;
  --bs-accordion-btn-bg: transparent;
  --bs-accordion-btn-color: #ffffff;
  --bs-accordion-active-bg: transparent;
  --bs-accordion-active-color: #5b9bd5;
  --bs-accordion-border-color: rgba(255, 255, 255, 0.06);
}

html {
  scroll-behavior: auto;
  scroll-padding-top: calc(var(--rr-nav-height) + 1rem);
  background: var(--rr-page-bg);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--rr-page-bg) !important;
  color: #fff;
  padding-top: var(--rr-nav-height);
  overflow-x: hidden;
  min-height: 100vh;
}

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

/* Typography */
.font-righteous {
  font-family: "Righteous", cursive;
}

.text-gold {
  color: var(--rr-gold) !important;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #90cdf4, #5b9bd5, #5b9bd5, #5b9bd5, #bee3f8, #5b9bd5);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-logo-gold {
  background: linear-gradient(135deg, #90cdf4, #5b9bd5, #5b9bd5, #5b9bd5, #bee3f8, #5b9bd5);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: background-position 0.4s;
}

.text-gradient-logo-white {
  background: linear-gradient(135deg, #e0e0e0, #ffffff, #c0c0c0, #ffffff, #e0e0e0);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: background-position 0.4s;
}

.navbar-brand:hover .text-gradient-logo-gold,
.navbar-brand:hover .text-gradient-logo-white {
  background-position: 100% 0;
}

/* Navbar */
.navbar-rr {
  background: rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  min-height: var(--rr-nav-height);
}

.navbar-rr .nav-link {
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.navbar-rr .nav-link:hover,
.navbar-rr .nav-link.active {
  color: var(--rr-gold) !important;
}

.navbar-rr .navbar-toggler-rr {
  --bs-navbar-toggler-border-color: var(--rr-gold);
  border: 2px solid var(--rr-gold);
  background: rgba(91, 155, 213, 0.14);
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(91, 155, 213, 0.2), 0 2px 8px rgba(0, 0, 0, 0.45);
}

.navbar-rr .navbar-toggler-rr:hover,
.navbar-rr .navbar-toggler-rr:focus-visible {
  background: rgba(91, 155, 213, 0.28);
  border-color: #5b9bd5;
}

.navbar-rr .navbar-toggler-rr:focus {
  box-shadow: 0 0 0 3px rgba(91, 155, 213, 0.45);
}

.navbar-rr .navbar-toggler-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 22px;
  height: 16px;
}

.navbar-rr .navbar-toggler-bars span {
  display: block;
  height: 2.5px;
  width: 100%;
  background: var(--rr-gold);
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(91, 155, 213, 0.35);
  transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
}

.navbar-rr .navbar-toggler-rr[aria-expanded="true"] .navbar-toggler-bars span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar-rr .navbar-toggler-rr[aria-expanded="true"] .navbar-toggler-bars span:nth-child(2) {
  opacity: 0;
}

.navbar-rr .navbar-toggler-rr[aria-expanded="true"] .navbar-toggler-bars span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.logo-img {
  height: 32px;
  border-radius: 6px;
}

/* Language toggle */
.lang-toggle {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 2px;
}

.lang-opt {
  padding: 4px 10px;
  border-radius: 18px;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s;
}

.lang-opt:hover {
  color: var(--rr-gold);
}

.lang-opt.active {
  background: linear-gradient(135deg, #5b9bd5, #1e4976, #5b9bd5, #1e4976);
  background-size: 200% 100%;
  color: #fff;
  animation: shimmer 2s ease infinite;
}

.navbar-rr-actions {
  flex-shrink: 0;
}

.navbar-rr .lang-toggle--header {
  flex-shrink: 0;
}

@media (max-width: 991.98px) {
  .navbar-rr .lang-toggle--header {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 3px;
    gap: 2px;
  }

  .navbar-rr .lang-toggle--header .lang-opt {
    min-width: 34px;
    min-height: 34px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.55);
  }

  .navbar-rr .lang-toggle--header .lang-opt.active {
    border-radius: 50%;
    min-width: 34px;
    width: 34px;
    height: 34px;
    padding: 0;
    color: #fff;
    box-shadow: 0 2px 8px rgba(91, 155, 213, 0.35);
  }
}

@keyframes shimmer {
  0% { background-position: 0 0; }
  50% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

.btn-wa {
  background: var(--rr-green);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  transition: background 0.3s;
}

.btn-wa:hover {
  background: #1da851;
  color: #fff;
}

/* Buttons */
.btn-gold {
  background: linear-gradient(135deg, #90cdf4, #5b9bd5, #5b9bd5, #5b9bd5, #bee3f8, #5b9bd5);
  background-size: 200% 100%;
  color: #fff;
  border: none;
  font-weight: 600;
  border-radius: 50px;
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
  box-shadow: 0 0 20px rgba(91, 155, 213, 0.3), 0 0 40px rgba(91, 155, 213, 0.1);
  transition: transform 0.3s, box-shadow 0.3s, background-position 0.3s;
}

.btn-gold:hover {
  color: #fff;
  transform: translateY(-2px);
  background-position: 100% 0;
  box-shadow: 0 0 30px rgba(91, 155, 213, 0.5), 0 0 60px rgba(91, 155, 213, 0.2);
}

/* Hero — fondo oscuro plano (sin canvas 3D) */
.hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  background: var(--rr-page-bg);
  overflow: hidden;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(91, 155, 213, 0.1);
  border: 1px solid rgba(91, 155, 213, 0.2);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--rr-gold);
  margin-bottom: 1.5rem;
}

.hero-badge i {
  font-size: 0.9rem;
}

.page-previews {
  margin-top: 4rem;
  text-align: center;
}

.previews-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.preview-card {
  background: var(--rr-surface);
  border: 1px solid var(--rr-border);
  border-radius: 12px;
  padding: 1.2rem;
  text-align: center;
  height: 100%;
  transition: border-color 0.3s, background 0.3s;
}

.preview-card:hover {
  border-color: rgba(91, 155, 213, 0.3);
  background: rgba(91, 155, 213, 0.05);
}

.preview-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.preview-icon {
  font-size: 2rem;
  color: var(--rr-gold);
  margin-bottom: 0.75rem;
  display: block;
}

.preview-card p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.4;
  margin-bottom: 1rem;
}

.preview-btn {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--rr-gold);
  text-decoration: none;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border: 1px solid var(--rr-gold);
  border-radius: 8px;
  transition: all 0.3s;
  box-shadow: 0 0 8px rgba(91, 155, 213, 0.25);
}

.preview-btn:hover {
  color: #fff;
  background: rgba(91, 155, 213, 0.15);
  box-shadow: 0 0 14px rgba(91, 155, 213, 0.45);
}

.hero-title {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
}

.hero-deck {
  font-size: 1.15rem;
  color: var(--rr-text-muted);
}

.hero-deck strong {
  color: rgba(255, 255, 255, 0.9);
}

.hero-logo {
  width: 140px;
  height: 140px;
  object-fit: contain;
}

.hero-inner {
  max-width: 900px;
}

img:not(.logo-img):not(.hero-logo):not(.car-card-photo) {
  max-width: 100%;
  height: auto;
}

.logo-img {
  max-width: none;
}

/* Cards */
.card-rr {
  background: var(--rr-surface);
  border: 1px solid var(--rr-border);
  border-radius: 12px;
  transition: border-color 0.3s, background 0.3s;
}

.card-rr:hover {
  border-color: rgba(91, 155, 213, 0.3);
  background: rgba(91, 155, 213, 0.05);
}

.card-rr .card-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--rr-gold);
}

.card-rr .card-text-muted {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Sections — fondo negro uniforme como el original */
.section-rr {
  padding: 5rem 0;
  position: relative;
  background: var(--rr-page-bg);
}

.site-panel {
  display: none;
  background: var(--rr-page-bg);
}

.site-panel.is-active {
  display: block;
  animation: sitePanelIn 0.35s ease;
}

.site-panel.hero.is-active {
  display: flex;
}

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

.section-rr.section-glow {
  background: var(--rr-page-bg);
}

.section-tag {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--rr-gold);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-sub {
  color: var(--rr-text-muted);
  font-size: 1rem;
  margin-bottom: 2.5rem;
}

.fleet-category-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin: 2rem 0 1rem;
}

/* Vehicle cards */
.car-card {
  background: #0a0a0a;
  border: 1px solid var(--rr-border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.car-card .p-3 {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.car-card:hover {
  border-color: rgba(91, 155, 213, 0.4);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(91, 155, 213, 0.12);
}

.car-card:hover img.car-card-photo {
  transform: scale(1.04);
}

.car-card-image-wrap {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #0a0a0a;
  cursor: zoom-in;
}

.car-card-image-wrap:focus-visible {
  outline: 2px solid var(--rr-gold);
  outline-offset: 2px;
}

.car-card-image-wrap img.car-card-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
  border-bottom: 1px solid var(--rr-border);
  transition: transform 0.5s ease;
}

.car-rented-label {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  background: linear-gradient(135deg, #dc3545, #b02a37);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(220, 53, 69, 0.55);
  pointer-events: none;
}

.car-free-label {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(37, 211, 102, 0.45);
  pointer-events: none;
}

.car-available-label {
  position: absolute;
  top: 2.5rem;
  right: 0.75rem;
  z-index: 2;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(91, 155, 213, 0.35);
  pointer-events: none;
  white-space: nowrap;
}

.car-card--rented {
  opacity: 0.85;
}

.car-card--rented img.car-card-photo {
  filter: grayscale(0.3);
}

.car-badge {
  display: inline-block;
  background: rgba(91, 155, 213, 0.1);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--rr-gold);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.car-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  min-height: 2.75rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.car-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  flex: 1;
  min-height: 5.6rem;
}

.car-features li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  padding: 0.2rem 0;
}

.car-features li::before {
  content: "✓";
  color: var(--rr-gold);
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.car-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--rr-gold);
  margin-top: auto;
}

.car-price small {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
}

/* Fleet image lightbox (SweetAlert2) */
.fleet-swal-popup {
  max-width: min(94vw, 920px) !important;
  border: 1px solid rgba(91, 155, 213, 0.25);
  border-radius: 16px !important;
}

.fleet-swal-title {
  color: #fff !important;
  font-size: 1.15rem !important;
  padding-bottom: 0.5rem !important;
}

.fleet-swal-image {
  max-height: min(85vh, 1080px) !important;
  width: auto !important;
  max-width: min(94vw, 1080px) !important;
  margin: 0.25rem auto 0 !important;
  border-radius: 12px;
  object-fit: contain;
  image-rendering: auto;
  animation: fleet-swal-zoom 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.fleet-swal-close {
  color: rgba(255, 255, 255, 0.7) !important;
}

.fleet-swal-close:hover {
  color: var(--rr-gold) !important;
}

@keyframes fleet-swal-zoom {
  from {
    opacity: 0;
    transform: scale(0.88);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Fleet carousel — 3 visibles, auto cuando hay más */
.fleet-family-block {
  margin-bottom: 2rem;
}

.fleet-carousel--active {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.fleet-carousel-btn {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid rgba(91, 155, 213, 0.35);
  border-radius: 50%;
  background: rgba(12, 12, 18, 0.92);
  color: var(--rr-gold);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  touch-action: manipulation;
}

.fleet-carousel-btn:hover {
  background: rgba(91, 155, 213, 0.15);
  border-color: var(--rr-gold);
}

.fleet-carousel-btn:active {
  transform: scale(0.94);
}

.fleet-carousel-btn:focus-visible {
  outline: 2px solid var(--rr-gold);
  outline-offset: 2px;
}

.fleet-carousel-btn .bi {
  font-size: 1.25rem;
  line-height: 1;
}

.fleet-carousel--active .fleet-carousel-viewport {
  flex: 1;
  min-width: 0;
  scroll-snap-type: none;
  scroll-behavior: auto;
  touch-action: pan-x pan-y;
  overflow-y: hidden;
}

.fleet-carousel--active .fleet-carousel-track .car-card {
  scroll-snap-align: none;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .fleet-carousel-btn {
    display: inline-flex;
    width: 2.5rem;
    height: 2.5rem;
  }

  .fleet-carousel--active .fleet-carousel-viewport {
    overflow: hidden;
    scroll-snap-type: x mandatory;
    touch-action: pan-x;
  }

  .fleet-carousel--active .fleet-carousel-track .car-card {
    scroll-snap-align: start;
  }
}

.fleet-carousel-viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
}

.fleet-carousel-viewport::-webkit-scrollbar {
  display: none;
}

.fleet-carousel--static .fleet-carousel-viewport {
  overflow: visible;
  scroll-snap-type: none;
}

.fleet-carousel-track {
  display: flex;
  gap: 1rem;
  align-items: stretch;
}

.fleet-carousel-track .car-card {
  scroll-snap-align: start;
  min-width: 0;
  min-height: 560px;
}

.fleet-carousel--static .fleet-carousel-track {
  width: 100%;
}

.fleet-carousel--static .fleet-carousel-track .car-card {
  flex: 1 1 0;
  max-width: calc((100% - 2rem) / 3);
}

/* Fleet horizontal scroll (legacy) */
.fleet-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.fleet-scroll::-webkit-scrollbar {
  height: 4px;
}

.fleet-scroll::-webkit-scrollbar-thumb {
  background: var(--rr-gold);
  border-radius: 2px;
}

.fleet-scroll .car-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
}

/* Steps */
.step-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.step-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  background: rgba(91, 155, 213, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rr-gold);
}

.step-num {
  font-size: 0.75rem;
  color: var(--rr-gold);
  font-weight: 700;
  letter-spacing: 1px;
}

/* Requirements */
.req-card h3 {
  font-size: 1.1rem;
  color: var(--rr-gold);
  margin-bottom: 1rem;
}

.req-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.req-card li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.req-card li svg {
  color: var(--rr-gold);
  flex-shrink: 0;
}

/* Trust badges */
.trust-item .num {
  font-size: 2rem;
  font-weight: 800;
}

.trust-item p {
  color: var(--rr-text-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* Partner */
.partner-visual {
  width: 240px;
  height: 240px;
  background: rgba(91, 155, 213, 0.05);
  border: 1px solid rgba(91, 155, 213, 0.15);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--rr-gold);
}

.partner-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0;
  color: rgba(255, 255, 255, 0.8);
}

.partner-list li svg {
  color: var(--rr-gold);
  flex-shrink: 0;
}

/* About */
.about-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  background: var(--rr-surface);
  border: 1px solid var(--rr-border);
  border-radius: 10px;
  font-size: 0.95rem;
}

.about-item svg {
  color: var(--rr-gold);
  flex-shrink: 0;
}

/* FAQ — Bootstrap accordion override */
.accordion-rr .accordion-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rr-border);
}

.accordion-rr .accordion-button {
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
  box-shadow: none;
  padding: 1.2rem 0;
}

.accordion-rr .accordion-button:not(.collapsed) {
  background: transparent;
  color: var(--rr-gold);
  box-shadow: none;
}

.fleet-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.accordion-rr .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23f9a826'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-rr .accordion-body {
  color: var(--rr-text-muted);
  padding: 0 0 1.2rem;
}

/* Contact / Social */
.contact-method .icon-box {
  width: 48px;
  height: 48px;
  background: rgba(91, 155, 213, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rr-gold);
  flex-shrink: 0;
}

.contact-cta-box {
  background: rgba(91, 155, 213, 0.05);
  border: 1px solid rgba(91, 155, 213, 0.15);
  border-radius: 16px;
}

/* Legal */
.legal-content h3 {
  color: var(--rr-gold);
  font-size: 1.15rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.legal-content p {
  color: var(--rr-text-muted);
  line-height: 1.7;
}

/* SEO content section */
.section-seo-keywords {
  background: var(--rr-page-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.seo-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--rr-border);
  border-radius: 12px;
  padding: 1.25rem;
  height: 100%;
}

.seo-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--rr-gold);
  margin-bottom: 0.75rem;
}

.seo-card p {
  font-size: 0.88rem;
  color: var(--rr-text-muted);
  line-height: 1.65;
  margin: 0;
}

.seo-keywords-note {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.7;
}

/* Map — CartoDB dark como el original */
.map-container {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(91, 155, 213, 0.15);
}

.map-leaflet {
  width: 100%;
  height: 450px;
  background: var(--rr-page-bg);
}

.leaflet-container {
  background: var(--rr-page-bg) !important;
  font-family: inherit;
}

.leaflet-control-zoom a {
  background: #1a1a1a !important;
  color: var(--rr-gold) !important;
  border-color: rgba(91, 155, 213, 0.3) !important;
}

.leaflet-control-attribution {
  background: rgba(0, 0, 0, 0.7) !important;
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 10px !important;
}

.leaflet-control-attribution a {
  color: var(--rr-gold) !important;
}

.leaflet-popup-content-wrapper {
  background: #1a1a1a !important;
  color: #fff !important;
  border: 1px solid rgba(91, 155, 213, 0.3) !important;
  border-radius: 12px !important;
}

.leaflet-popup-tip {
  background: #1a1a1a !important;
}

.leaflet-overlay-pane .sv-border-layer {
  filter: drop-shadow(0 0 6px rgba(91, 155, 213, 0.45));
}

.map-marker-gold,
.map-marker-car {
  background: transparent !important;
  border: none !important;
}

.navbar-rr .navbar-collapse {
  background: rgba(0, 0, 0, 0.95);
}

/* Footer */
.footer-rr {
  background: var(--rr-page-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}

.footer-rr a {
  color: var(--rr-gold);
  text-decoration: none;
}

.footer-rr a:hover {
  text-decoration: underline;
}

/* Float quote button */
.float-btn {
  position: fixed;
  bottom: calc(2rem + env(safe-area-inset-bottom, 0));
  right: calc(2rem + env(safe-area-inset-right, 0));
  z-index: 1040;
  padding: 0 1.5rem;
  height: 3.2rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #5b9bd5, #1e4976);
  color: #000;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 0 30px rgba(91, 155, 213, 0.4), 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s, box-shadow 0.3s;
}

.float-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 50px rgba(91, 155, 213, 0.7);
  color: #000;
}

/* Quote offcanvas */
.offcanvas-rr {
  background: rgba(10, 10, 10, 0.98);
  border-left: 1px solid rgba(91, 155, 213, 0.15);
  color: #fff;
  max-width: 450px;
}

.offcanvas-rr .offcanvas-title {
  font-weight: 700;
  font-size: 1.6rem;
}

.vehicle-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 42vh;
  overflow-y: auto;
  padding-right: 0.15rem;
}

.vehicle-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: var(--rr-surface);
  border: 1px solid var(--rr-border);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s;
}

.vehicle-opt:hover {
  border-color: rgba(91, 155, 213, 0.25);
  background: rgba(91, 155, 213, 0.06);
}

.vehicle-opt.selected {
  border-color: var(--rr-gold);
  background: rgba(91, 155, 213, 0.12);
  box-shadow: 0 0 14px rgba(91, 155, 213, 0.15);
}

.vehicle-opt .v-name {
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.3;
  flex: 1;
}

.vehicle-opt .v-price {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.78rem;
  white-space: nowrap;
  font-weight: 500;
}

.vehicle-opt.selected .v-name {
  color: var(--rr-gold);
}

.vehicle-opt.selected .v-price {
  color: var(--rr-gold);
  opacity: 0.85;
}

.vehicle-opt-tag {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffb4b4;
  background: rgba(220, 53, 69, 0.18);
  vertical-align: middle;
}

.quote-booked-hint {
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(91, 155, 213, 0.2);
  background: rgba(91, 155, 213, 0.06);
}

.quote-booked-list {
  list-style: none;
  padding: 0;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.quote-booked-list li {
  padding: 0.15rem 0;
}

.quote-booked-list li::before {
  content: "•";
  color: var(--rr-gold);
  margin-right: 0.4rem;
}

.flatpickr-calendar {
  background: #141414;
  border: 1px solid rgba(91, 155, 213, 0.25);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

.flatpickr-months .flatpickr-month,
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-weekdays,
span.flatpickr-weekday {
  background: #141414;
  color: rgba(255, 255, 255, 0.85);
}

.flatpickr-day {
  color: rgba(255, 255, 255, 0.88);
}

.flatpickr-day:hover,
.flatpickr-day:focus {
  background: rgba(91, 155, 213, 0.18);
  border-color: rgba(91, 155, 213, 0.18);
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background: var(--rr-gold);
  border-color: var(--rr-gold);
  color: #111;
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
  color: rgba(255, 255, 255, 0.22);
  background: rgba(220, 53, 69, 0.12);
  text-decoration: line-through;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
  fill: var(--rr-gold);
}

.days-selector button {
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}

.days-selector button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.days-selector button:hover {
  border-color: var(--rr-gold);
  color: var(--rr-gold);
}

.days-selector .days-value {
  flex: 1;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  background: transparent;
  border: none;
  color: #fff;
  width: 3rem;
  outline: none;
  -moz-appearance: textfield;
}

.days-selector .days-value::-webkit-inner-spin-button,
.days-selector .days-value::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

.quote-amount {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--rr-gold);
}

.quote-discount-line {
  color: #5cdb7a;
}

.quote-discount-line span:last-child {
  font-weight: 700;
}

.btn-magic {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 0.8rem;
  padding: 0.9rem;
  width: 100%;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.25);
}

.btn-magic:hover {
  color: #fff;
  transform: scale(1.02);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.4);
}

.btn-magic:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.form-control-rr {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--rr-border);
  color: #fff;
  border-radius: 0.5rem;
  padding: 0.55rem 0.75rem;
  width: 100%;
  color-scheme: dark;
}

.form-control-rr:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(91, 155, 213, 0.45);
  color: #fff;
  box-shadow: 0 0 0 0.15rem rgba(91, 155, 213, 0.12);
  outline: none;
}

.quote-dates .form-control-rr,
.quote-contact .form-control-rr {
  font-size: 0.9rem;
}

.quote-dates input[type="time"].form-control-rr {
  color-scheme: dark;
}

.quote-schedule-locked {
  opacity: 0.55;
}

.quote-schedule-locked .quote-dates {
  pointer-events: none;
}

#quote-schedule-hint {
  color: rgba(91, 155, 213, 0.85);
}

#quote-error {
  border: 1px solid rgba(220, 53, 69, 0.35);
  background: rgba(220, 53, 69, 0.12);
  color: #ffb4b4;
}

#quote-error.alert-info {
  border-color: rgba(13, 202, 240, 0.35);
  background: rgba(13, 202, 240, 0.12);
  color: #9eeaf9;
}

#quote-error.alert-success {
  border-color: rgba(25, 135, 84, 0.35);
  background: rgba(25, 135, 84, 0.12);
  color: #a3cfbb;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  padding: 0.75rem 1.5rem;
  background: var(--rr-gold);
  color: #000;
  font-weight: 700;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

/* Responsive — tablets y móviles */
@media (max-width: 991px) {
  .navbar-rr .navbar-collapse {
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 0.5rem;
  }

  .navbar-rr .nav-link {
    padding: 0.6rem 0;
    font-size: 0.95rem;
  }

  .fleet-carousel-track .car-card {
    min-height: 390px;
  }

  .offcanvas-rr {
    max-width: min(450px, 100vw);
  }
}

@media (max-width: 767px) {
  .fleet-carousel--static .fleet-carousel-track .car-card {
    max-width: 100%;
  }

  .section-rr {
    padding: 3.25rem 0;
  }

  .section-sub {
    margin-bottom: 2rem;
    font-size: 0.95rem;
  }

  .hero {
    min-height: auto;
  }

  .hero-logo {
    width: 110px;
    height: 110px;
  }

  .hero-deck {
    font-size: 1rem;
  }

  .hero-badge {
    font-size: 0.78rem;
    padding: 0.3rem 0.85rem;
  }

  .page-previews {
    margin-top: 2.5rem;
  }

  .previews-title {
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
  }

  .fleet-scroll .car-card {
    flex: 0 0 240px;
  }

  .partner-visual {
    width: 200px;
    height: 200px;
    margin: 0 auto;
  }

  .step-card {
    padding: 1.5rem 1rem;
  }

  .trust-item .num {
    font-size: 1.65rem;
  }

  .map-leaflet {
    height: 360px;
  }

  .quote-amount {
    font-size: 1.85rem;
  }

  .offcanvas-rr .offcanvas-title {
    font-size: 1.35rem;
  }

  .vehicle-options-list {
    max-height: 38vh;
  }
}

@media (max-width: 575px) {
  .section-rr {
    padding: 2.5rem 0;
  }

  .fleet-carousel--static .fleet-carousel-track .car-card {
    max-width: 100%;
  }

  .fleet-carousel-track .car-card {
    min-height: auto;
  }

  .car-card h3 {
    min-height: auto;
  }

  .car-features {
    min-height: auto;
  }

  .car-card-image-wrap img.car-card-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .car-available-label {
    top: auto;
    bottom: 0.5rem;
    left: 0.5rem;
    right: auto;
    max-width: calc(100% - 1rem);
    white-space: normal;
    text-align: left;
    line-height: 1.25;
  }

  .car-rented-label {
    font-size: 0.58rem;
    padding: 0.25rem 0.5rem;
  }

  .float-btn {
    bottom: calc(1rem + env(safe-area-inset-bottom, 0));
    right: calc(1rem + env(safe-area-inset-right, 0));
    padding: 0 0.85rem;
    height: 2.75rem;
    font-size: 0.72rem;
    max-width: calc(100vw - 2rem - env(safe-area-inset-right, 0));
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .fleet-scroll .car-card {
    flex: 0 0 220px;
  }

  .map-leaflet {
    height: 280px;
  }

  .btn-gold {
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
  }

  .fleet-category-title {
    font-size: 0.9rem;
    letter-spacing: 1.5px;
  }

  .about-item {
    font-size: 0.88rem;
    padding: 0.65rem 0.85rem;
  }

  .seo-keywords-note {
    font-size: 0.72rem;
    overflow-wrap: anywhere;
  }

  .legal-content h3 {
    font-size: 1.05rem;
  }

  .offcanvas-rr {
    max-width: 100%;
    width: 100%;
  }

  .accordion-button {
    font-size: 0.9rem;
    padding: 0.85rem 1rem;
  }

  .footer-rr {
    font-size: 0.8rem;
    text-align: center;
  }

  .footer-rr .row > [class*="col"] {
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 380px) {
  .navbar-brand {
    font-size: 0.92rem;
  }

  .hero-title {
    font-size: 1.65rem;
  }

  .preview-card {
    padding: 1rem;
  }

  .preview-icon {
    font-size: 1.65rem;
  }
}

@media (min-width: 1400px) {
  .hero-inner {
    max-width: 960px;
  }

  .container {
    max-width: 1140px;
  }
}

@media (hover: none) {
  .car-card:hover {
    transform: none;
    box-shadow: none;
  }

  .float-btn:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Public reviews */
.reviews-aggregate {
  font-size: 1.1rem;
}
.reviews-stars {
  color: var(--rr-gold);
  letter-spacing: 0.05em;
}
.review-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(91, 155, 213, 0.2);
  border-radius: 12px;
  padding: 1.25rem;
}
.review-stars {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.review-text {
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 0.75rem;
}
.review-meta {
  font-size: 0.82rem;
}
