/* =========================================================
   SINGLE VEHÍCULO
========================================================= */

.fm-single-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 20px;
}

.fm-single-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 32px;
  align-items: start;
}

.fm-single-gallery-box {
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
}

.fm-single-main-image {
  background: #f3f4f6;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.fm-single-main-image a {
  display: block;
  width: 100%;
  height: 100%;
}

.fm-single-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fm-single-no-image {
  width: 100%;
  height: 100%;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
}

.fm-single-thumbs {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.fm-single-thumb {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: #f3f4f6;
}

.fm-single-thumb img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.fm-single-summary {
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #ffffff;
  padding: 24px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.fm-single-badge-wrap {
  margin: 0 0 14px;
}

.fm-single-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
  background: #111827;
}

.fm-single-badge--disponible {
  background: #15803d;
}

.fm-single-badge--reservado {
  background: #d97706;
}

.fm-single-badge--vendido {
  background: #b91c1c;
}

.fm-single-title {
  margin: 0 0 12px;
  font-size: 42px;
  line-height: 1.1;
  font-weight: 700;
  color: #111827;
}

.fm-single-price {
  margin: 0 0 20px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;

  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1;

 background: linear-gradient(
    180deg,
    #36a6ee 0%,
    #1c5f96 55%,
    #111827 100%
  );

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  text-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.fm-single-price--oferta{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px 14px;
}

.fm-single-price-current{
  order:1;
  margin:0;
  font-size:44px;
  font-weight:800;
  letter-spacing:-0.5px;
  line-height:1;

  background: linear-gradient(
    180deg,
    #36a6ee 0%,
    #1c5f96 55%,
    #111827 100%
  );

  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  text-shadow:0 1px 0 rgba(0,0,0,.06);
}

.fm-single-price-old{
  order:3;
  width:100%;
  margin:0;
  font-size:20px;
  font-weight:600;
  line-height:1.2;
  color:#6b7280;
}

.fm-single-price-old del{
  color:#6b7280;
  text-decoration-thickness:2px;
}

.fm-single-price-badge{
  order:2;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:32px;
  padding:8px 12px;
  margin:0;
  border-radius:999px;

  background:#dc2626;
  color:#ffffff;

  -webkit-background-clip: initial;
  -webkit-text-fill-color: #ffffff;

  font-size:12px;
  font-weight:700;
  line-height:1;
  text-transform:uppercase;
  letter-spacing:.04em;
}



.fm-single-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
  font-size: 15px;
  color: #374151;
}

.fm-single-meta strong {
  color: #111827;
  font-weight: 600;
}
.fm-single-financiacion-box{
  margin-top:24px;
  padding:20px 22px;
  border:1px solid #dbeafe;
  border-radius:18px;
  background:linear-gradient(180deg, #f8fbff 0%, #eef7ff 100%);
}

.fm-single-financiacion-label{
  margin:0 0 8px;
  font-size:14px;
  font-weight:600;
  line-height:1.3;
  color:#1f2937;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.fm-single-financiacion-price{
  font-size:34px;
  font-weight:800;
  line-height:1;
  letter-spacing:-0.4px;
  color:#111827;
}
.fm-single-content {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #e5e7eb;
}

.fm-single-content p:first-child {
  margin-top: 0;
}

/* =========================================================
   LIGHTBOX / POPUP GALERÍA
========================================================= */

body.fm-lightbox-open {
  overflow: hidden;
}

.fm-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
}

.fm-lightbox.is-open {
  display: block;
}

.fm-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.88);
}

.fm-lightbox-dialog {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 90px;
}

.fm-lightbox-stage {
  position: relative;
  z-index: 2;
  max-width: min(1200px, 100%);
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fm-lightbox-stage img {
  display: block;
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  background: #ffffff;
}

.fm-lightbox-close,
.fm-lightbox-prev,
.fm-lightbox-next {
  position: absolute;
  z-index: 3;
  border: none;
  cursor: pointer;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.72);
  transition: background 0.18s ease, transform 0.18s ease;
}

.fm-lightbox-close:hover,
.fm-lightbox-prev:hover,
.fm-lightbox-next:hover {
  background: rgba(17, 24, 39, 0.92);
  transform: scale(1.04);
}

.fm-lightbox-close {
  top: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  font-size: 34px;
  line-height: 1;
}

.fm-lightbox-prev,
.fm-lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 58px;
  height: 58px;
  border-radius: 999px;
  font-size: 40px;
  line-height: 1;
}

.fm-lightbox-prev:hover,
.fm-lightbox-next:hover {
  transform: translateY(-50%) scale(1.04);
}

.fm-lightbox-prev {
  left: 24px;
}

.fm-lightbox-next {
  right: 24px;
}

@media (max-width: 980px) {
  .fm-single-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .fm-single-wrap {
    padding: 24px 16px;
  }

  .fm-single-title {
    font-size: 32px;
  }

  .fm-single-price {
    font-size: 28px;
  }
  .fm-single-price-current{
  font-size:28px;
}

.fm-single-price-old{
  font-size:16px;
}

  .fm-single-thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fm-single-meta {
    grid-template-columns: 1fr;
  }

  .fm-single-financiacion-price{
  font-size:28px;
}

  .fm-lightbox-dialog {
    padding: 70px 16px 24px;
  }

  .fm-lightbox-close {
    top: 12px;
    right: 12px;
    width: 46px;
    height: 46px;
    font-size: 30px;
  }

  .fm-lightbox-prev,
  .fm-lightbox-next {
    width: 46px;
    height: 46px;
    font-size: 30px;
    top: auto;
    bottom: 14px;
    transform: none;
  }

  .fm-lightbox-prev:hover,
  .fm-lightbox-next:hover {
    transform: scale(1.04);
  }

  .fm-lightbox-prev {
    left: calc(50% - 56px);
  }

  .fm-lightbox-next {
    right: calc(50% - 56px);
  }

  .fm-lightbox-stage img {
    max-height: 72vh;
  }
}
/* =========================================================
   EQUIPAMIENTO (igual estilo que ficha técnica)
========================================================= */

.fm-single-equipamiento-box{
  margin-top:24px;
  padding:24px;
  border:1px solid #e5e7eb;
  border-radius:18px;
  background:#ffffff;
}

.fm-single-equipamiento-title{
  margin:0 0 16px;
  font-size:20px;
  font-weight:700;
  line-height:1.2;
  color:#111827;
}

.fm-single-equipamiento-list{
  margin:0;
  padding:0;
  list-style:none;
}

.fm-single-equipamiento-list li{
  position:relative;
  margin:0 0 10px;
  padding-left:18px;
  font-size:15px;
  line-height:1.5;
  color:#374151;
}

.fm-single-equipamiento-list li:last-child{
  margin-bottom:0;
}

.fm-single-equipamiento-list li::before{
  content:"•";
  position:absolute;
  left:0;
  top:0;
  font-weight:700;
  color:#217B93;
}

/* CONTENEDOR BOTONES */

.fm-single-cta{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 18px;
}

/* =========================================================
   BOTONES CTA VEHÍCULO
========================================================= */

.fm-btn-interesa,
.fm-btn-cita{
  display: block;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 10px;
  border-radius: 8px;
  text-decoration: none;
  line-height: 1.2;
  color: #111827;
  border: 1px solid rgba(54,166,238,.35);
  transition: transform .08s ease, box-shadow .08s ease, filter .12s ease;
}

.fm-btn-interesa{
  background: #f59e0b; /* provisional */
  border: 1px solid #f59e0b;
  color: #111827;
}


.fm-btn-cita{
  background: #36a6ee;
  border: 1px solid #7cc8f4;
  color: #111827;
}


/* hover */

.fm-btn-interesa:hover,
.fm-btn-cita:hover{
     color: #ffffff;
  filter: brightness(0.92);
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(54,166,238,.35);
    
}

/* pulsado */

.fm-btn-interesa:active,
.fm-btn-cita:active{
  transform: translateY(1px);
  box-shadow: inset 0 2px 6px rgba(0,0,0,.25);
}


.fm-price-iva{
  order:2;
  display:inline-flex;
  align-items:center;
  padding:5px 10px;
  border-radius:8px;

  background:rgba(54,166,238,.15);

  font-size:14px;
  font-weight:600;
  line-height:1;

  color:#36a6ee;
}