:root {
  --ink: #0f172a;
  --muted: #5b6b7c;
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --coral: #f97316;
  --sand: #f6f8fa;
  --white: #ffffff;
  --line: #e2e8f0;
  --radius: 16px;
  --shadow: 0 18px 45px rgba(15, 23, 42, .12);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body { max-width: 100%; overflow-x: hidden; }

.hero-grid > *,
.field-row > * { min-width: 0; }

html { scroll-behavior: smooth; }

#inicio,
#reservar,
#servicios,
#flota,
#zonas,
#tarifas,
#como,
#faq { scroll-margin-top: 110px; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}

img { max-width: 100%; }

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* ---------- Topbar (estilo referencia) ---------- */
.topbar {
  background: var(--ink);
  color: #e2e8f0;
  font-size: 12.5px;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
}

.topbar-right strong { color: #5eead4; font-variant-numeric: tabular-nums; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--teal), #14b8a6);
  color: #fff;
  font-size: 14px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
}

.nav a:hover { color: var(--teal-dark); }

.nav a.active { color: var(--teal-dark); }

.nav a.active::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 3px;
  border-radius: 2px;
  background: var(--teal);
}

.nav a.btn.active::after { display: none; }

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
}

.lang-toggle {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink);
}

.lang-toggle:hover { border-color: var(--teal); color: var(--teal-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--teal);
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 14px 22px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, transform .2s;
}

.btn:hover { background: var(--teal-dark); transform: translateY(-1px); }

.btn-small { padding: 9px 16px; font-size: 14px; }

.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 64px;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(20, 184, 166, .18), transparent 60%),
    radial-gradient(800px 420px at 0% 100%, rgba(249, 115, 22, .12), transparent 60%),
    linear-gradient(180deg, #f0fdfa 0%, #ffffff 70%);
}

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

.car-path {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.car-route {
  width: 100%;
  height: 100%;
  color: rgba(15, 76, 92, .34);
}

/* Carrito con animación CSS/JS (transform, rendidora) */
.car-runner {
  position: absolute;
  top: 0;
  left: 0;
  width: 38px;
  height: 26px;
  object-fit: contain;
  will-change: transform;
  filter: drop-shadow(0 2px 3px rgba(15, 23, 42, .25));
}

@media (max-width: 900px) {
  .car-route { color: rgba(15, 76, 92, .20); }
}

@media (prefers-reduced-motion: reduce) {
  .car-runner { display: none; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: start;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(13, 148, 136, .1);
  color: var(--teal-dark);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -.03em;
  margin: 0 0 16px;
}

.lead {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0 0 22px;
  max-width: 46ch;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: grid;
  gap: 10px;
}

.checks li {
  position: relative;
  padding-left: 30px;
  color: #1f2a3a;
}

.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 13px;
  display: grid;
  place-items: center;
}

.whatsapp-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #25d366;
  color: #063;
  font-weight: 800;
  text-decoration: none;
}

.wa-icon { font-size: 18px; }

/* ---------- Booking card ---------- */
.booking-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px;
  box-shadow: var(--shadow);
  max-width: 560px;
}

.booking-card h2 {
  margin: 0 0 18px;
  font-size: 1.35rem;
}

.form-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 6px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal-dark);
}

.form-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 2px 8px;
}

.field-label {
  margin: 0 0 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: #334155;
}

.seg {
  display: flex;
  gap: 4px;
  background: #eef2f5;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 14px;
}

.seg-3 .seg-option { flex: 1 1 0; min-width: 0; }

.seg-option {
  margin: 0;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 700;
  color: #334155;
}

.seg-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.seg-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 4px;
  text-align: center;
  border-radius: 9px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  color: var(--muted);
  transition: background .2s, color .2s, box-shadow .2s;
}

.seg-option input:checked + span {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(15, 23, 42, .12);
  border: 1px solid var(--line);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

label {
  display: block;
  margin-bottom: 12px;
  font-size: 13.5px;
  font-weight: 700;
  color: #334155;
}

label > span { display: block; margin-bottom: 5px; }

input, select, textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(13, 148, 136, .35);
  border-color: var(--teal);
}

.inline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.inline input { width: auto; }

.trip-toggle {
  display: flex;
  gap: 4px;
  background: #eef2f5;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 14px;
}

.trip-top { margin-bottom: 16px; }

.trip-option {
  flex: 1;
  margin: 0;
  cursor: pointer;
}

.trip-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.trip-option span {
  display: block;
  padding: 10px 8px;
  text-align: center;
  border-radius: 9px;
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
  transition: background .2s, color .2s, box-shadow .2s;
}

.trip-option input:checked + span {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 4px 12px rgba(13, 148, 136, .25);
}

.round-fields { margin-top: 4px; }

/* ---------- Predictivo propio (combo) ---------- */
.combo { position: relative; }

.combo-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 40;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .16);
  max-height: 260px;
  overflow: auto;
}

.combo-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}

.combo-item:hover, .combo-item.active { background: #f1f5f9; }

.combo-name { font-weight: 600; color: var(--ink); }

.combo-zone {
  flex: none;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--teal-dark);
  background: rgba(13, 148, 136, .1);
  border-radius: 999px;
  padding: 2px 8px;
}

.price-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  background: var(--sand);
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 12px 16px;
  margin: 8px 0 16px;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}

.price-box strong {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
}

.form-note {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}

.hint {
  margin: -2px 0 12px;
  font-size: 12.5px;
  color: var(--muted);
}

.hint.warn {
  color: #b91c1c;
  font-weight: 700;
}

/* ---------- Cards / zonas (estilo referencia) ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}

#flota .cards-grid { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .06);
}

.card-icon {
  font-size: 30px;
  margin-bottom: 10px;
}

.card h3 { margin: 0 0 8px; font-size: 1.02rem; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }

.zone-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.zone-chips span {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 700;
  color: #334155;
}

.cta-row { margin-top: 24px; }

/* Foto RD + insignias (el carrito pasa por encima: z-index) */
.hero-copy { position: relative; z-index: 1; }

.hero-photo {
  margin: 0 0 20px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 18px 45px rgba(15, 23, 42, .14);
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #0ea5a4, #0f766e 45%, #f59e0b);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-photo.no-img::after {
  content: "🏝️";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 64px;
}

.hero-photo-combo { aspect-ratio: 4 / 3; margin-top: 20px; margin-bottom: 0; }

.hero-photo figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(11, 43, 51, .78);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
}

.hero-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.hero-badge {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  text-align: center;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.hero-badge strong { display: block; font-size: 1.05rem; color: var(--teal-dark); }
.hero-badge span { font-size: 12px; color: var(--muted); }

.car-path { z-index: 2; }
.car-runner { z-index: 2; }

@media (max-width: 900px) {
  .hero-badges { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Strip ---------- */
.strip {
  background: var(--ink);
  color: #fff;
  padding: 22px 0;
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.strip-grid div { display: grid; gap: 2px; }

.strip-grid strong { font-size: 15px; }

.strip-grid span { color: #cbd5e1; font-size: 13.5px; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }

.section.alt { background: var(--sand); }

.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -.02em;
  margin: 0 0 8px;
}

.section-sub {
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 60ch;
}

.narrow { max-width: 760px; }

/* ---------- Rates table ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.rates-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.rates-table th,
.rates-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.rates-table th {
  background: var(--sand);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}

.rates-table tr:last-child td { border-bottom: 0; }

.rates-table td:not(:first-child) { font-weight: 700; }

.rates-table tr:hover td { background: #f0fdfa; }

.fine-print {
  color: var(--muted);
  font-size: 13px;
  margin-top: 14px;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 26px;
}

.steps article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
  margin-bottom: 12px;
}

.steps h3 { margin: 0 0 6px; font-size: 1.05rem; }

.steps p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- FAQ ---------- */
details {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 12px;
  background: #fff;
}

summary {
  cursor: pointer;
  font-weight: 700;
}

details p { color: var(--muted); margin: 10px 0 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #e2e8f0;
  padding: 44px 0 24px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-grid p { color: #94a3b8; margin: 6px 0 0; }

.site-footer a {
  display: block;
  color: #e2e8f0;
  text-decoration: none;
  margin-bottom: 6px;
}

.site-footer a:hover { color: #5eead4; }

.copyright {
  border-top: 1px solid #1e293b;
  margin-top: 28px;
  padding-top: 16px;
  color: #94a3b8;
  font-size: 13px;
}

/* ---------- Floating WhatsApp ---------- */
.float-wa {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 26px;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .25);
  z-index: 60;
}

/* ---------- Volver a la reserva ---------- */
.to-top {
  position: fixed;
  left: 18px;
  bottom: 18px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  display: none;
  place-items: center;
  font-size: 22px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(15, 23, 42, .18);
  z-index: 60;
}

.to-top.show { display: grid; }

.to-top:hover { border-color: var(--teal); color: var(--teal-dark); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav { gap: 12px; }
  .nav a { font-size: 14px; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .strip-grid { grid-template-columns: 1fr; gap: 14px; }
  .steps { grid-template-columns: 1fr; }
  .cards-grid, #flota .cards-grid { grid-template-columns: 1fr 1fr; }

  .menu-toggle { display: grid; place-items: center; }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(15, 23, 42, .10);
    padding: 14px 6%;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    z-index: 60;
  }

  .nav.open { display: flex; }

  .nav a { font-size: 16px; }
}

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .cards-grid, #flota .cards-grid { grid-template-columns: 1fr; }
  .topbar-right { display: none; }
  .booking-card { padding: 20px; }
  .hero { padding: 34px 0 44px; }
  .section { padding: 52px 0; }
  .header-inner { gap: 8px; }
  .brand-name { font-size: 15px; }
  .btn-small { padding: 9px 13px; }
  .nav { gap: 8px; }
  h1 { font-size: 1.9rem; }
}

@media (max-width: 460px) {
  .brand-name { display: none; }
}
