/* ============================================================
   MODELOS.CSS
   ============================================================ */

/* NAV ACTIVO */
.nav-active {
  color: var(--white) !important;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 2px;
}

/* ============================================================
   CABECERA: TITULO + TABS EN UNA SOLA FILA
   ============================================================ */
.models-header {
  background: var(--ink);
  padding: 100px clamp(20px, 5vw, 72px) 0;
}

.models-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.models-title {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
  margin: 0;
  padding-bottom: 18px;
}

/* TABS */
.model-tabs {
  display: flex;
  align-items: flex-end;
  gap: 2px;
}

.model-tab {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  padding: 10px 16px 16px;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
  position: relative;
}

.model-tab:hover:not(.disabled) {
  color: rgba(255, 255, 255, 0.85);
}

.model-tab.active {
  color: var(--white);
  border-bottom-color: var(--orange);
  background: var(--orange);
  border-radius: 6px 6px 0 0;
}

.model-tab.disabled {
  color: rgba(255, 255, 255, 0.18);
  cursor: default;
}

.model-tab.disabled::after {
  content: "pronto";
  font-size: 0.44rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  display: block;
  text-align: center;
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

/* ============================================================
   VISOR DE FICHA TECNICA
   ============================================================ */
.ficha-section {
  background: #f2f4f5;
  padding: 16px clamp(20px, 5vw, 72px) 52px;
}

.ficha-wrap {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.75fr 1fr;
  gap: 18px;
  align-items: start;
}

/* ---- COLUMNA IZQUIERDA ---- */
.ficha-media {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ficha-main-image {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 560px;
  padding: 6px 24px;
  overflow: hidden;
}

.ficha-main-image img {
  max-height: 548px;
  max-width: 100%;
  object-fit: contain;
  transition: opacity 200ms ease, transform 200ms ease;
}

.ficha-main-image video {
  background: #0d0f11;
  border-radius: 6px;
  max-height: 560px;
  max-width: 100%;
  width: auto;
}

.ficha-main-image img.switching {
  opacity: 0;
  transform: scale(0.96);
}

.ficha-thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.thumb {
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  position: relative;
  transition: border-color 150ms ease;
}

/* Fotos y videos: llenan toda la miniatura */
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* El render del producto (PNG transparente) se ve completo */
.thumb-render {
  padding: 4px;
}

.thumb-render img {
  object-fit: contain;
}

/* Miniatura de video: poster + icono play encima */
.thumb-video img {
  filter: brightness(0.7);
}

.thumb-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(17, 19, 20, 0.72);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  padding-left: 2px;
  pointer-events: none;
}

.thumb.active {
  border-color: var(--orange);
}

.thumb:hover:not(.active) {
  border-color: rgba(240, 90, 34, 0.45);
}

.thumb-placeholder {
  font-family: "Inter", sans-serif;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #b0b8be;
  text-align: center;
  line-height: 1.4;
}

.play-icon {
  font-size: 1.2rem;
  color: #c0c8ce;
}


/* ============================================================
   DESCRIPCION EXTENDIDA DEL MODELO
   ============================================================ */
.ficha-descripcion {
  margin: 56px auto 0;
  max-width: 1200px;
  transition: opacity 200ms ease;
}

.ficha-descripcion.switching {
  opacity: 0;
}

.desc-heading {
  margin-bottom: 28px;
}

.desc-heading h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  margin-bottom: 0;
}

.desc-heading h2 span {
  color: var(--hot);
}

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

.desc-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  border-top: 4px solid var(--orange);
  padding: 26px 24px;
}

.desc-num {
  color: rgba(240, 90, 34, 0.32);
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 10px;
}

.desc-card h3 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.desc-card p {
  color: var(--steel);
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  line-height: 1.8;
  margin: 0;
}

/* ---- COLUMNA DERECHA ---- */
.ficha-specs {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ficha-brand-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.ficha-brand-label {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
}

.ficha-model-label {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--orange);
  text-transform: uppercase;
  transition: opacity 200ms ease;
}

.ficha-title {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(1.1rem, 1.8vw, 1.55rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
  transition: opacity 200ms ease;
}

/* FILAS DE SPECS */
.ficha-dl {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}

.ficha-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 14px;
  transition: opacity 200ms ease;
}

.ficha-row--highlight {
  background: var(--white);
  border: 1.5px solid var(--orange);
  border-left: 4px solid var(--orange);
}

.ficha-row dt {
  font-family: "Inter", sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.ficha-row--highlight dt {
  color: #b83a1b;
}

.ficha-row dd {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin: 0;
  text-align: right;
}

.ficha-row--highlight dd {
  font-size: 1.35rem;
  color: #1d2022;
}

/* USOS RECOMENDADOS */
.ficha-usos {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  transition: opacity 200ms ease;
}

.ficha-usos-label {
  font-family: "Inter", sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}

#ficha-usos-lista {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 12px;
}

#ficha-usos-lista li {
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  color: var(--steel);
  display: flex;
  align-items: flex-start;
  gap: 7px;
  line-height: 1.45;
}

#ficha-usos-lista li::before {
  content: "";
  display: block;
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  margin-top: 5px;
}

/* BOTONES */
.ficha-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ficha-btn-cotizar {
  min-height: 46px;
  font-size: 0.75rem;
}

.ficha-btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1.5px solid var(--orange);
  border-radius: 6px;
  color: var(--orange);
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease;
  cursor: pointer;
}

.ficha-btn-whatsapp:hover {
  background: var(--orange);
  color: var(--white);
}

/* ANIMACION SWITCHING */
.ficha-specs.switching .ficha-model-label,
.ficha-specs.switching .ficha-title,
.ficha-specs.switching .ficha-row,
.ficha-specs.switching .ficha-usos {
  opacity: 0;
}

/* ============================================================
   TABLA COMPARATIVA
   ============================================================ */
.compare-section {
  background: var(--white);
}

.table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 6px 24px rgba(17, 19, 20, 0.07);
  max-width: 1200px;
  margin: 0 auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  white-space: nowrap;
}

.compare-table thead tr {
  background: var(--ink);
  color: var(--white);
}

.compare-table thead th {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 18px;
  text-align: left;
}

.compare-table tbody tr {
  border-bottom: 1px solid var(--line);
  transition: background 120ms ease;
}

.compare-table tbody tr:last-child {
  border-bottom: none;
}

.compare-table tbody tr:hover {
  background: #f7f8f9;
}

.compare-table tbody td {
  padding: 13px 18px;
  color: var(--ink);
}

.compare-table strong {
  font-weight: 700;
}

.model-cell { min-width: 90px; }

.model-tag {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.muted-tag { color: var(--muted); }
.hot-tag   { color: var(--hot); }

.row-muted td {
  color: var(--muted);
  background: #fafafa;
}

.row-featured {
  background: rgba(233, 47, 22, 0.04);
}

.row-featured td {
  font-weight: 500;
}

/* ============================================================
   MODELO INSIGNIA FR3000
   ============================================================ */
.model-flagship {
  background: linear-gradient(135deg, #0d0f11 0%, #1d2224 100%);
  color: var(--white);
  padding: 72px clamp(20px, 5vw, 72px);
}

.flagship-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.flagship-badge {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hot);
  border: 1px solid rgba(233, 47, 22, 0.4);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 14px;
  background: rgba(233, 47, 22, 0.1);
}

.flagship-copy .eyebrow {
  color: var(--gold);
}

.flagship-title {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 900;
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 18px;
}

.flagship-title span {
  color: var(--gold);
}

.flagship-desc {
  font-family: "Inter", sans-serif;
  font-size: 0.92rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 20px;
  max-width: 460px;
}

.flagship-uses {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.flagship-uses li {
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: flex-start;
  gap: 9px;
  line-height: 1.5;
}

.flagship-uses li::before {
  content: "";
  display: block;
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 6px;
}

.flagship-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.flagship-actions .ficha-btn-whatsapp {
  border-color: rgba(240, 90, 34, 0.6);
  color: rgba(240, 90, 34, 0.9);
}

/* MEDIA LADO DERECHO */
.flagship-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.flagship-media img {
  max-height: 340px;
  object-fit: contain;
  filter: drop-shadow(0 28px 48px rgba(0, 0, 0, 0.5));
}

.flagship-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: 100%;
}

.flagship-specs div {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 14px 16px;
}

.flagship-specs dt {
  font-family: "Inter", sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 4px;
}

.flagship-specs dd {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  margin: 0;
  letter-spacing: 0.02em;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .ficha-wrap {
    grid-template-columns: 1fr;
  }

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

  .ficha-main-image {
    min-height: 400px;
  }

  .ficha-main-image img,
  .ficha-main-image video {
    max-height: 420px;
  }

  #ficha-usos-lista {
    grid-template-columns: 1fr;
  }

  .flagship-inner {
    grid-template-columns: 1fr;
  }

  .flagship-media {
    order: -1;
  }
}

@media (max-width: 700px) {
  .models-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .models-title {
    padding-bottom: 10px;
  }

  .model-tabs {
    overflow-x: auto;
    width: 100%;
  }

  .model-tab {
    padding: 8px 12px 14px;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  /* Miniaturas mas grandes y faciles de tocar en movil */
  .ficha-thumbs {
    grid-template-columns: repeat(4, 1fr);
  }

  .ficha-actions {
    grid-template-columns: 1fr;
  }

  .flagship-specs {
    grid-template-columns: repeat(2, 1fr);
  }
}
