/* Ficha técnica — diseño Tarjetas (adaptado desde Puntobyze SpecCardsRenderer) */
.pb-ficha-cards {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 10px 0 40px;
}

.pb-glance {
  background: #fff;
  border: 1px solid #e8ebf0;
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 18px;
}

.pb-glance-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #7c8490;
  margin-bottom: 16px;
}

.pb-glance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}

.pb-glance-item {
  text-align: center;
  padding: 14px 8px;
  border-radius: 14px;
  background: #f3f5f7;
}

.pb-glance-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: #fff;
  color: #234b61;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin: 0 auto 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

.pb-glance-value {
  font-size: 17px;
  font-weight: 800;
  color: #161b24;
  line-height: 1.2;
}

.pb-glance-key {
  font-size: 11.5px;
  color: #7c8490;
  margin-top: 2px;
}

.pb-card {
  background: #fff;
  border: 1px solid #e8ebf0;
  border-radius: 18px;
  padding: 26px 28px;
  margin-bottom: 18px;
}

.pb-card-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
}

.pb-card-head-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #e7faf6;
  color: #234b61;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.pb-card-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #161b24;
  text-transform: none;
}

.pb-card-desc-text {
  font-size: 15.5px;
  line-height: 1.7;
  color: #3c434f;
  margin: 0 0 18px;
  max-width: 780px;
}

.pb-card-desc-text p {
  margin: 0 0 10px;
}

.pb-bullets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 6px 24px;
}

.pb-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  font-size: 14px;
  color: #3c434f;
}

.pb-bullet-item .glyphicon {
  color: #234b61;
  font-size: 14px;
  margin-top: 2px;
  flex-shrink: 0;
}

.pb-meta-row {
  margin-top: 16px;
  font-size: 14px;
  color: #3c434f;
}

.pb-meta-row strong {
  color: #161b24;
}

.pb-specs-section {
  margin-bottom: 18px;
}

.pb-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.pb-spec-card {
  background: #fff;
  border: 1px solid #e8ebf0;
  border-radius: 16px;
  padding: 18px 20px;
  min-width: 0;
  overflow: hidden;
}

.pb-spec-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e8ebf0;
}

.pb-spec-card-head .glyphicon {
  color: #234b61;
  font-size: 17px;
}

.pb-spec-card-head span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #161b24;
}

.pb-spec-row {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 8px 14px;
  align-items: start;
  padding: 8px 0;
  font-size: 13.5px;
  line-height: 1.45;
  border-bottom: 1px solid #f3f5f7;
}

.pb-spec-row:last-child {
  border-bottom: none;
}

.pb-spec-k {
  color: #7c8490;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.pb-spec-v {
  color: #161b24;
  font-weight: 600;
  text-align: right;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.pb-card-fallback {
  font-size: 14px;
  line-height: 1.6;
  color: #3c434f;
}

.pb-card-fallback table {
  width: 100%;
  border-collapse: collapse;
}

.pb-card-fallback td {
  padding: 6px 0;
  vertical-align: top;
}

.pb-security-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #234b61;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0;
  font-size: 14px;
}

.pb-security-toggle:hover,
.pb-security-toggle:focus {
  color: #2b5a73;
  text-decoration: underline;
}

#seguridadinformacion {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e8ebf0;
  font-size: 14px;
  line-height: 1.6;
}

#seguridadinformacion ul {
  padding-left: 18px;
}

@media (max-width: 720px) {
  .pb-card {
    padding: 20px 18px;
  }

  .pb-specs-grid {
    grid-template-columns: 1fr;
  }

  .pb-spec-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .pb-spec-v {
    text-align: left;
  }
}

.pb-spec-card--scroll .pb-spec-card-rows {
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
  -webkit-overflow-scrolling: touch;
}

.pb-spec-card--scroll .pb-spec-card-rows::-webkit-scrollbar {
  width: 6px;
}

.pb-spec-card--scroll .pb-spec-card-rows::-webkit-scrollbar-thumb {
  background: #d6dbe2;
  border-radius: 6px;
}

/* Descripciones con HTML/import inline roto */
.pb-card-desc-text h2,
.pb-card-desc-text h3 {
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  font-family: inherit !important;
  color: #161b24 !important;
  margin: 20px 0 10px !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}

.pb-card-desc-text p,
.pb-card-desc-text span,
.pb-card-desc-text li {
  font-size: 15.5px !important;
  font-weight: 400 !important;
  line-height: 1.7 !important;
  font-family: inherit !important;
  color: #3c434f !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}

.pb-card-desc-text strong,
.pb-card-desc-text b {
  font-weight: 600 !important;
  font-size: inherit !important;
  text-transform: none !important;
}

/* ==========================================================================
   Resumen superior de especificaciones clave (estilo Amazon)
   ========================================================================== */
/* Pequeña línea separadora bajo el nombre del producto */
.ficha-title-divider {
  height: 1px;
  margin: 12px 0 14px;
  background: linear-gradient(to right, #e8ebf0, rgba(232, 235, 240, 0));
  border: 0;
}

.spec-summary {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.spec-summary-title {
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f2f5;
  font-size: 15px;
  font-weight: 700;
  color: #161b24;
  letter-spacing: .01em;
}

.spec-summary-list {
  display: block;
}

.spec-summary-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 12px 24px;
  align-items: start;
  padding: 9px 0;
  font-size: 13.5px;
  line-height: 1.5;
  border-bottom: 1px solid #f3f5f7;
}

.spec-summary-row:last-child {
  border-bottom: none;
}

.spec-summary-name {
  color: #7c8490;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.spec-summary-value {
  color: #161b24;
  font-weight: 600;
  text-align: right;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Filas plegadas: ocultas por defecto y visibles con .is-expanded */
.spec-summary .spec-summary-row--hidden {
  display: none;
}

.spec-summary.is-expanded .spec-summary-row--hidden {
  display: grid;
}

.spec-summary-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 8px 0 0;
  border: 0;
  background: transparent;
  color: #00aff0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.spec-summary-toggle:hover,
.spec-summary-toggle:focus {
  color: #008ecb;
  text-decoration: underline;
  outline: none;
}

.spec-summary-toggle-icon {
  font-size: 12px;
  transition: transform .18s ease;
}

@media (max-width: 720px) {
  .spec-summary-row {
    gap: 8px 12px;
    padding: 8px 0;
  }
}

@media (max-width: 480px) {
  .spec-summary-row {
    grid-template-columns: 1fr;
    gap: 3px;
    padding: 8px 0;
  }

  .spec-summary-value {
    text-align: left;
  }
}

/* ==========================================================================
   Descripción corta lateral (junto a la galería de imágenes)
   ========================================================================== */
#ficha .ficha-descripcion-corta {
  margin: 16px 0 0;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid #edf1f6;
  border-left: 3px solid #00aff0;
  border-radius: 10px;
}

#ficha .ficha-descripcion-cuerpo {
  position: relative;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.65;
  color: #2c3e50;
  transition: max-height .35s ease;
}

/* Sin animación durante la primera medición del colapso */
.ficha-descripcion-corta.ficha-descripcion-sin-transicion .ficha-descripcion-cuerpo {
  transition: none;
}

#ficha .ficha-descripcion-lista {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

#ficha .ficha-descripcion-lista li {
  position: relative;
  padding-left: 18px;
  color: #2c3e50;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

#ficha .ficha-descripcion-lista li::before {
  content: '';
  position: absolute;
  left: 1px;
  top: .68em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00aff0;
}

#ficha .ficha-descripcion-texto {
  margin: 0;
  color: #2c3e50;
}

/* Degradado inferior que sugiere que hay más contenido */
.ficha-descripcion-corta.is-collapsible .ficha-descripcion-cuerpo::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34px;
  background: linear-gradient(to bottom, rgba(248, 250, 252, 0), #f8fafc);
  pointer-events: none;
  opacity: 1;
  transition: opacity .2s ease;
}

.ficha-descripcion-corta.is-collapsible.is-expanded .ficha-descripcion-cuerpo::after {
  opacity: 0;
}

/* Botón Ver más / Ver menos */
.ficha-descripcion-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #00aff0;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.ficha-descripcion-corta.is-collapsible .ficha-descripcion-toggle {
  display: inline-flex;
}

.ficha-descripcion-toggle:hover,
.ficha-descripcion-toggle:focus {
  color: #008ecb;
  text-decoration: underline;
  outline: none;
}

.ficha-descripcion-toggle-icon {
  font-size: 12px;
  transition: transform .18s ease;
}

.ficha-descripcion-corta.is-expanded .ficha-descripcion-toggle-icon {
  transform: rotate(180deg);
}

@media (max-width: 767px) {
  #ficha .ficha-descripcion-corta {
    padding: 12px 14px;
  }

  #ficha .ficha-descripcion-cuerpo {
    font-size: 13.5px;
  }
}

/* ==========================================================================
   Reseñas de clientes (productos_resenas)
   ========================================================================== */
.pb-reviews-section {
  width: 100%;
  margin-top: 0;
}

.pb-reviews-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 16px;
}

.pb-reviews-score {
  font-weight: 700;
  color: #222;
}

.pb-reviews-link {
  color: #137078;
  text-decoration: underline;
  font-size: 14px;
  cursor: pointer;
}

.pb-stars {
  display: inline-flex;
  gap: 1px;
  vertical-align: middle;
  flex-shrink: 0;
}

.pb-star {
  display: inline-block;
  width: 14px;
  height: 14px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.pb-stars-lg .pb-star {
  width: 20px;
  height: 20px;
}

.pb-stars-sm .pb-star {
  width: 14px;
  height: 14px;
}

.pb-star-full {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f5a623'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87L18.18 22 12 18.56 5.82 22 7 14.14l-5-4.87 6.91-1.01z'/%3E%3C/svg%3E");
}

.pb-star-half {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3ClinearGradient id='g'%3E%3Cstop offset='50%25' stop-color='%23f5a623'/%3E%3Cstop offset='50%25' stop-color='%23ddd'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23g)' d='M12 2l3.09 6.26L22 9.27l-5 4.87L18.18 22 12 18.56 5.82 22 7 14.14l-5-4.87 6.91-1.01z'/%3E%3C/svg%3E");
}

.pb-star-empty {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ddd'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87L18.18 22 12 18.56 5.82 22 7 14.14l-5-4.87 6.91-1.01z'/%3E%3C/svg%3E");
}

.pb-card-reviews {
  margin-top: 0;
}

.pb-card-reviews-body {
  margin-top: 16px;
  padding-top: 4px;
}

.pb-reviews-header-score {
  margin-bottom: 20px;
}

.pb-reviews-count {
  display: block;
  color: #666;
  font-size: 14px;
  margin-top: 4px;
}

.pb-reviews-list {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}

.pb-review-card {
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 16px 18px;
  background: #fafafa;
}

.pb-review-card-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.pb-review-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  background: #e7f6fb;
  color: #0b6f96;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.pb-review-badge--ia {
  background: #f0f0f0;
  color: #777;
}

.pb-review-date {
  color: #888;
  font-size: 13px;
  margin-left: auto;
}

.pb-review-title {
  font-size: 16px;
  margin: 0 0 8px;
  color: #161b24;
}

.pb-review-text {
  margin: 0;
  color: #333;
  line-height: 1.55;
  white-space: pre-line;
}

.pb-reviews-empty {
  margin: 0;
  color: #555;
  font-size: 15px;
}

@media (max-width: 720px) {
  .pb-review-date {
    margin-left: 0;
    width: 100%;
  }
}
