* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

body {
  background: #f5f5f7;
  color: #111827;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem;
}

header {
  background: white;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 10;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
}

.navbar-logo {
  height: 56px;
  width: auto;
  display: block;
}

.navbar-menu {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
}

.navbar-menu a.is-active {
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: #e40046;
  color: #ffffff;
  font-weight: 600;
}

.navbar-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
}

.navbar-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #111827;
  margin: 3px 0;
}

.navbar-cta a {
  background: #e40046;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
}

main {
  flex: 1;
}

.hero {
  padding-top: 3rem;
  padding-bottom: 2rem;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-gallery {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-gallery-item {
  flex: 1;
}

.hero-gallery-image {
  width: 100%;
  border-radius: 0.75rem;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.18);
}

.hero-content h1 {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}

.hero-content p {
  color: #4b5563;
  margin-bottom: 1.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: #ffe4ed;
  color: #e40046;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.hero-search {
  background: white;
  padding: 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: end;
}

.field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.5rem 0.6rem;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  font-size: 0.85rem;
}

.btn-primary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  border: none;
  background: #e40046;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

.btn-secondary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  border: none;
  background: #111827;
  color: #ffffff;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: none;
}

.btn-secondary:hover {
  text-decoration: none;
  background: #000000;
}

.hero-visual {
  background: linear-gradient(135deg, #111827, #e40046);
  border-radius: 1rem;
  padding: 1.2rem;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
}

.hero-visual-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  opacity: 0.9;
}

.hero-visual-card {
  background: rgba(15, 23, 42, 0.6);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-top: 1rem;
}

.hero-visual-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.hero-visual-stats {
  display: flex;
  gap: 1.5rem;
  font-size: 0.8rem;
  margin-top: 0.75rem;
}

.hero-vehicle-image {
  width: 100%;
  border-radius: 0.75rem;
  max-height: 240px;
  object-fit: cover;
}

.hero-calendar-card {
  background: rgba(255, 255, 255, 0.96);
  color: #111827;
  border-radius: 0.75rem;
  padding: 0.9rem;
  margin-top: 1rem;
}

.hero-calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.hero-calendar-header h3 {
  font-size: 0.95rem;
  margin-bottom: 0.1rem;
}

.hero-calendar-header p {
  font-size: 0.8rem;
  color: #6b7280;
}

.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #4b5563;
  font-weight: 500;
  margin-top: 0.1rem;
}

.calendar-nav button {
  border: none;
  background: transparent;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  cursor: pointer;
  color: inherit;
}

.calendar-nav button:hover {
  background: #f3f4f6;
}

.btn-small {
  width: auto;
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
}

.availability-calendars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.calendar {
  font-size: 0.75rem;
}

.calendar-header {
  font-weight: 600;
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
  text-align: center;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.15rem;
}

.calendar-day-name {
  text-align: center;
  font-size: 0.7rem;
  color: #6b7280;
}

.calendar-day {
  min-height: 32px;
  border-radius: 0.4rem;
  padding: 0.15rem 0.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

.calendar-day--empty {
  background: transparent;
}

.calendar-day-number {
  font-weight: 500;
  font-size: 0.7rem;
  position: absolute;
  top: 1px;
  right: 3px;
}

.calendar-day-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding-top: 0.75rem; /* mayor separación respecto al número de día */
}

.calendar-day-count {
  font-size: 0.9rem;
  font-weight: 700;
}

.calendar-day-price {
  font-size: 0.65rem;
  font-weight: 500;
}

.availability-0 {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  color: #111827;
}

.availability-1 {
  background: #ffe4ed;
  color: #9b1239;
}

.availability-2 {
  background: #f9739c;
  color: #f9fafb;
}

.availability-3 {
  background: #e40046;
  color: #f9fafb;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.calendar-legend-item {
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
}

.section {
  padding: 2.5rem 0 1.5rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 700;
}

.section-subtitle {
  font-size: 0.9rem;
  color: #6b7280;
}

.section-collab {
  background: #111827;
  color: #f9fafb;
}

.section-collab .section-subtitle {
  color: #d1d5db;
}

.collab-cta-button {
  width: auto;
  padding-inline: 1.4rem;
}

.section-collab .btn-primary {
  background: #ffffff;
  color: #e40046;
}

.section-collab .btn-primary:hover {
  background: #f9fafb;
}

.collab-text {
  font-size: 0.9rem;
  color: #e5e7eb;
  max-width: 640px;
}

.payment-list {
  margin-top: 0.4rem;
  padding-left: 1.1rem;
  font-size: 0.85rem;
  color: #4b5563;
}

.payment-list li + li {
  margin-top: 0.25rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.vehicle-filters {
  margin-bottom: 1.5rem;
}

.vehicle-filters-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 1.1fr)
    minmax(0, 2fr)
    minmax(0, 1fr)
    minmax(0, 1.3fr);
  gap: 1rem;
  align-items: flex-start;
  font-size: 0.85rem;
}

.filter-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 0.35rem;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.filter-chip {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  font-size: 0.8rem;
  cursor: pointer;
  color: #111827;
}

.filter-chip.is-active {
  background: #e40046;
  border-color: #e40046;
  color: #ffffff;
}

.filter-reset {
  background: #111827;
  border-color: #111827;
  color: #ffffff;
}

.filter-reset:hover {
  background: #000000;
  border-color: #000000;
}

/* Diferenciar visualmente multiselect: estilo tipo checkbox */
.filter-buttons[data-multiselect="true"] .filter-chip {
  border-radius: 0.5rem;
  padding-left: 1.4rem;
  position: relative;
}

.filter-buttons[data-multiselect="true"] .filter-chip::before {
  content: "";
  position: absolute;
  left: 0.45rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 0.2rem;
  border: 1px solid #d1d5db;
  background: #ffffff;
}

.filter-buttons[data-multiselect="true"] .filter-chip.is-active::before {
  background: #e40046;
  border-color: #e40046;
  box-shadow: inset 0 0 0 2px #ffffff;
}

.card {
  background: white;
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
}

.card-header-image {
  background: #e5e7eb;
  border-radius: 0.6rem;
  height: 150px;
  margin-bottom: 0.75rem;
}

.fleet-image,
.route-image,
.blog-image {
  background-size: cover;
  background-position: center;
}

.fleet-duo {
  background-image: url("img/Giottiline-60-Be-Young-26-3-scaled-1.webp");
}

.fleet-family {
  background-image: url("img/van-60-be-young-008_145442abf7aebb543fb6a87c32f6c407.webp");
}

.fleet-adventure {
  background-image: url("img/van-60-be-young-014_914476805e45e6820851dac13ed307c6.webp");
}

/* Placeholders: añade estas imágenes en maquetas/img con nombres similares */
.route-delta {
  background-image: url("img/ruta-delta-ebro.jpg");
}

.route-pirineos {
  background-image: url("img/ruta-pirineos.jpg");
}

.route-costa-brava {
  background-image: url("img/ruta-costa-brava.jpg");
}

.blog-image-checklist {
  background-image: url("img/blog-checklist-camper.jpg");
}

.blog-image-choose {
  background-image: url("img/blog-elegir-camper.jpg");
}

.blog-image-law {
  background-image: url("img/blog-normativa-pernocta.jpg");
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffe4ed;
  color: #e40046;
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.tag {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #ffe4ed;
  color: #9b1239;
  font-size: 0.7rem;
  font-weight: 600;
}

.card-title {
  font-weight: 600;
  margin: 0.5rem 0 0.25rem;
  font-size: 0.95rem;
}

.card-meta {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 0.4rem;
}

.card-description {
  font-size: 0.85rem;
  color: #4b5563;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 2rem;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.table th,
.table td {
  padding: 0.5rem 0.4rem;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

.table thead {
  background: #f9fafb;
}

.timeline {
  border-left: 2px solid #e5e7eb;
  padding-left: 1rem;
  margin-left: 0.25rem;
}

.timeline-item {
  margin-bottom: 1rem;
}

.timeline-item h4 {
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.timeline-item span {
  font-size: 0.75rem;
  color: #6b7280;
}

.faq-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.faq-question {
  font-weight: 600;
  font-size: 0.9rem;
}

.faq-answer {
  font-size: 0.85rem;
  color: #4b5563;
  margin-top: 0.35rem;
}

.steps {
  display: flex;
  gap: 0.5rem;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.step {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid #d1d5db;
}

.step.active {
  background: #e40046;
  color: white;
  border-color: #e40046;
}

.badge-soft {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.7rem;
  font-weight: 600;
}

.footer {
  border-top: 1px solid #e5e7eb;
  background: white;
  padding: 1.5rem 0;
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 0.8rem;
  color: #6b7280;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-visual {
    order: -1;
  }

  .availability-calendars {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-search {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3,
  .grid-2,
  .two-column {
    grid-template-columns: minmax(0, 1fr);
  }

  .vehicle-filters-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .navbar-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .navbar-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0.75rem 1.5rem 1rem;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 9;
  }

  .navbar-menu.is-open {
    display: flex;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 1rem;
  }

  .hero {
    padding-top: 2rem;
    padding-bottom: 1.5rem;
    gap: 1.5rem;
  }

  .hero-content h1 {
    font-size: 1.6rem;
  }

  .hero-gallery {
    gap: 0.5rem;
    margin-bottom: 1rem;
  }

  .hero-search {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Dentro del aside: primero calendario, luego formulario y aire entre cards */
  .hero-visual {
    gap: 1.25rem;
  }

  .hero-visual .hero-calendar-card {
    order: 1;
  }

  .hero-visual .hero-search {
    order: 2;
  }

  .section {
    padding: 2rem 0 1.25rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .section-title {
    font-size: 1.25rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .vehicle-filters-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
