/* Estilos de la tarjeta del ranking y del anillo de nota.
 * Extraidos del style.css del tema hijo de esbellsa: el HTML lo pinta
 * ProductCard, que si se porto, pero su CSS vivia en el TEMA y sin el la
 * tarjeta sale pelada (imagen sin caja, botones con el azul por defecto de
 * Astra y el texto invisible encima).
 * Aqui van en el mu-plugin a proposito: el catalogo no puede depender de
 * la plantilla, que es justo lo que se decidio con el shortcode. */


/* ============================================================
   6. CAJAS DE REVIEWS ESBELLSA Y EXTRAS IA
   ============================================================ */
.esbellsa-product-card { display: flex; gap: 25px; align-items: flex-start; background-color: #fff; padding: 20px;
    border-radius: 12px; border: 1px solid #e0e0e0; box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin: 0; width: 100%; max-width: 100%; box-sizing: border-box; font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
.esbellsa-col-img { position: relative; flex: 0 0 35%; display: flex; justify-content: center; align-items: center; background-color: #fff; border-radius: 8px; overflow: hidden; }
.esbellsa-col-img img { max-width: 100%; max-height: 400px; width: auto; object-fit: contain; border-radius: 8px; }
/* Sello "Probado" sobre la foto de la tarjeta del ranking (Sergio, 8-ago-2026).
   Va aquí y no junto al título porque en móvil el título ya ocupa dos líneas y el chip caía a una
   tercera en CADA tarjeta probada. Sobre la imagen no gasta ni un píxel de alto.
   🚨 El texto largo se oculta por CLIP, nunca con display:none ni visibility:hidden: tiene que
   seguir siendo texto legible para Google y para un lector de pantalla, que es justo el punto
   (dejar claro que el producto se probó de primera mano). La misma señal va en el JSON-LD.
   Sergio, viendo la v1 en blanco: "se ve muy poco". Va en AZUL DE MARCA sólido con texto blanco,
   que sobre una foto se lee de un vistazo sin necesidad de agrandarlo. */
.esb-card-sello { position: absolute; top: 10px; left: 10px; z-index: 2;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px 6px 10px;
    border-radius: 999px;
    background: #3D6BEE;
    color: #fff; font-size: 12.5px; font-weight: 700; line-height: 1.5;
    letter-spacing: -.01em; white-space: nowrap;
    box-shadow: 0 2px 8px rgba(19, 28, 59, .28); }
.esb-card-sello svg { width: 13px; height: 13px; color: #fff; flex-shrink: 0; }
.esb-card-sello-full { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
/* En la FICHA el sello no va sobre la foto sino debajo del H1, asi que se le quita el
   posicionamiento absoluto. Misma pieza, misma pastilla, otro sitio. */
.esb-card-sello-inline { position: static; top: auto; left: auto; }
.cc-ficha-sello { margin: 0 0 12px; clear: both; }
.esbellsa-col-content { flex: 1; width: 100%; }
.esbellsa-caja-precios { display: flex; flex-direction: column; gap: 12px; width: 100%; margin: 0; }
.esbellsa-features-box { background-color: #f9f9f9; padding: 15px; border-radius: 10px; border: 1px solid #eee; margin-bottom: 5px; font-size: 0.95em; color: #444; }
.esbellsa-feat-list { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.esbellsa-feat-list li { padding-bottom: 6px; margin-bottom: 6px; border-bottom: 1px dashed #e0e0e0; line-height: 1.4; }
.esbellsa-feat-list li:last-child { border-bottom: none; }
.esbellsa-hidden-wrapper { margin-top: 6px; }
.esbellsa-hidden-wrapper .esbellsa-feat-list li:first-child { border-top: 1px dashed #e0e0e0; padding-top: 6px; }
.esbellsa-check { color: #4CAF50; font-weight: bold; margin-right: 5px; }
.esbellsa-more-feat { display: block; width: 100%; text-align: center; font-size: 0.95em; font-weight: 700; margin-top: 8px; 
    text-decoration: none !important; cursor: pointer; background: none; border: none; padding: 5px; font-family: inherit; }
.esbellsa-more-feat:hover { text-decoration: underline !important; opacity: 0.8; }
.esbellsa-more-feat:focus { outline: 2px solid #ccc; }
.esbellsa-btn-logo { display: flex; align-items: stretch; text-decoration: none !important; border-radius: 10px; overflow: hidden; height: 58px; box-shadow: 0 4px 6px rgba(0,0,0,0.08); transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); border: 1px solid #e0e0e0; background-color: #fff; }
.esbellsa-btn-logo:hover { transform: translateY(-4px); box-shadow: 0 8px 15px rgba(0,0,0,0.15); }
.esbellsa-col-izq { flex: 0 0 50%; display: flex; align-items: center; justify-content: center; padding: 5px 15px; border-right: 1px solid #eee; background-color: #fff; }
.esbellsa-logo-img { max-height: 42px; max-width: 100%; width: auto; object-fit: contain; border: none !important; margin: 0 !important; filter: grayscale(10%); transition: filter 0.3s; }
.esbellsa-btn-logo:hover .esbellsa-logo-img { filter: grayscale(0%); }
.esbellsa-texto-tienda { font-weight: 700; color: #444; text-transform: uppercase; font-size: 1.1em; }
.esbellsa-col-der { flex: 0 0 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1.4em; color: #222; background-color: #ffeb3b; padding: 0 15px; white-space: nowrap; letter-spacing: 0.5px; }
.esbellsa-btn-logo:hover .esbellsa-col-der { background-color: #ffd600; color: #000; }
.esbellsa-footer-row { display: flex; gap: 10px; margin-top: 15px; align-items: stretch; }
.esbellsa-rating-box { flex: 0 0 30%; background-color: #fff; border: 1px solid #e0e0e0; border-radius: 10px; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 5px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.esbellsa-rating-num { font-size: 1.8em; font-weight: 900; color: #333; line-height: 1; }
.esbellsa-rating-stars { font-size: 14px; font-family: Times, serif; line-height: 1; margin-top: 2px; }
.esbellsa-rating-stars::before { content: '★★★★★'; background: linear-gradient(90deg, #ffc107 calc(var(--rating) * 10%), #e0e0e0 calc(var(--rating) * 10%)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: 1px; }
.esbellsa-btn-review { flex: 1; display: flex; align-items: center; justify-content: center; color: #fff !important; border-radius: 10px; text-decoration: none !important; font-size: 0.9em; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; transition: all 0.3s ease; border: none; margin-top: 0; }
.esbellsa-btn-review:hover { filter: brightness(85%); transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.2); }
.esbellsa-resumen-ia-box { margin: 30px 5px !important; font-size: 1.05em !important; line-height: 1.6 !important; color: #444 !important; }
.esbellsa-resumen-ia-box h3 { margin-bottom: 10px; margin-top: 15px; font-weight: 700; color: #222; }
.esbellsa-banner-frase { background-color: #89c2e5; color: #000; text-align: center; padding: 12px 15px; font-weight: 600; font-size: 1em; border-radius: 12px; margin-bottom: 15px; width: 100%; box-sizing: border-box; display: block; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.esbellsa-tit-ranking { font-size: 20px; font-weight: 800; color: #333; margin: 40px 0 20px 0; border-left: 5px solid #007BC4; padding-left: 15px; text-transform: uppercase; }
/* 🚨 ESTE `@media` SE HABIA PERDIDO al extraer la hoja del tema de esbellsa, y quedaba una
   llave de cierre huerfana suelta. Sin la linea de apertura, `flex-direction: column` se
   aplicaba SIEMPRE y pisaba al `display:flex` de arriba por ser posterior con la misma
   especificidad: la tarjeta del ranking nunca estuvo en dos columnas, en ningun tamano.
   Lo canto Sergio pidiendo "la imagen a la izquierda y las caracteristicas a la derecha",
   que es justo para lo que estaba escrito el render (`esbellsa-col-img` + `col-content`).
   ⚠️ Una llave suelta NO rompe la hoja: el navegador se la salta y el resto sigue aplicando,
   asi que el fallo es invisible salvo que se midan los estilos computados. */
@media (max-width: 782px) {
.esbellsa-product-card { flex-direction: column; padding: 15px; gap: 15px; }
.esbellsa-col-img { flex: 0 0 auto; width: 100%; max-width: 250px; margin: 0 auto; }
.esbellsa-btn-logo { height: auto; min-height: 58px; }
}
/* Hacer que los vídeos de los productos sean responsive (16:9) */
.esbellsa-media-box iframe { width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    display: block; }
/* ============================================================
   8. HISTÓRICO DE PRECIOS — ENLACE + MODAL + GRÁFICA
   ============================================================ */

/* Enlace "Ver Histórico De Precios" */
.esbellsa-hp-link-wrap { text-align: center;
    margin: 8px 0 0; }
.esbellsa-hp-link { display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #007BC4;
    font-size: 0.9em;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
    transition: opacity 0.2s; }
.esbellsa-hp-link:hover { opacity: 0.7;
    text-decoration: underline !important; }
/* Modal overlay */
.esbellsa-hp-modal { display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0,0,0,0.6);
    align-items: center;
    justify-content: center;
    padding: 20px; }
.esbellsa-hp-modal.esbellsa-hp-modal-open { display: flex; }
/* Modal box */
.esbellsa-hp-modal-box { background: #fff;
    border-radius: 14px;
    padding: 30px 25px 25px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: esbellsaModalIn 0.25s ease-out; }
/* El @keyframes se perdio en la misma extraccion que los @media y quedo su llave suelta:
   la animacion estaba declarada y NO EXISTIA, asi que el modal aparecia de golpe. */
@keyframes esbellsaModalIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

/* Botón cerrar */
.esbellsa-hp-modal-close { position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s; }
.esbellsa-hp-modal-close:hover { color: #333; }
/* Título */
.esbellsa-hp-title { text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #111;
    margin-bottom: 12px; }
/* Spinner de carga */
.esbellsa-hp-loader { text-align: center; padding: 40px 0; }
.esbellsa-hp-spinner { display: inline-block;
    width: 28px;
    height: 28px;
    border: 3px solid #e0e0e0;
    border-top-color: #007BC4;
    border-radius: 50%;
    animation: esbellsaSpin 0.8s linear infinite; }
/* Igual: sin este @keyframes el "spinner" de carga se quedaba quieto. */
@keyframes esbellsaSpin { to { transform: rotate(360deg); } }

/* Filtros */
.esbellsa-hp-filters { display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 14px; }
.esbellsa-hp-filter { display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    user-select: none; }
.esbellsa-hp-filter input { accent-color: #007BC4;
    width: 16px;
    height: 16px;
    cursor: pointer; }
.esbellsa-hp-dot { width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block; }
/* Contenedor de la gráfica */
.esbellsa-hp-chart { width: 100%;
    height: 350px; }
/* Tercer @media perdido: estas tres son de MOVIL y se aplicaban siempre, asi que en
   escritorio la grafica salia a 280 px en vez de 350 y los filtros en dos columnas. */
@media (max-width: 782px) {
.esbellsa-hp-modal-box { padding: 20px 15px 15px; border-radius: 10px; }
.esbellsa-hp-chart { height: 280px; }
.esbellsa-hp-filters { display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px 16px;
        justify-items: start; }
}

/* ============================================================
   Histórico de precios — shortcode [historico_precios]
   F4c: movido desde <style> inline scoped por #uid (era redundante con .esbellsa-hp-* de arriba).
   Solo el contenedor y el título son propios; filtros/dot/chart usan las clases globales de arriba.
   ============================================================ */
.esbellsa-hps { max-width: 100%;
    margin: 30px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
.esbellsa-hps-title { text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #111;
    margin-bottom: 12px; }
.esb-review-final .esb-final-ring { flex: 0 0 auto; }
/* Anillo de nota — portado de score-block.css (mantener en sync). Tokens globales. */
.esb-review-final .score-block-lcs { text-align: center; }
.esb-review-final .score-block-lcs .score { --w: 104px; width: var(--w); aspect-ratio: 1; position: relative;
    display: inline-grid; place-content: center; margin: 0;
    font-family: var(--esb-display, "Space Grotesk", sans-serif); font-weight: 700;
    font-size: 26px; line-height: 1; color: var(--esb-ink, #131c3b);
    font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.esb-review-final .score-block-lcs .score:before { content: ""; position: absolute; border-radius: 50%; inset: 0;
    background:
        radial-gradient(farthest-side, var(--esb-brand, #3d6bee) 98%, #0000) top/var(--ring, 9px) var(--ring, 9px) no-repeat,
        conic-gradient(var(--esb-brand, #3d6bee), var(--esb-cyan, #15c6c1) calc(var(--percentage) * 1%), var(--esb-track, #edf1f8) 0);
    -webkit-mask: radial-gradient(farthest-side, #0000 calc(99% - var(--ring, 9px)), #000 calc(100% - var(--ring, 9px)));
    mask: radial-gradient(farthest-side, #0000 calc(99% - var(--ring, 9px)), #000 calc(100% - var(--ring, 9px))); }
.esb-review-final .score-block-lcs .score:after { content: ""; position: absolute; border-radius: 50%; inset: calc(50% - var(--ring, 9px) / 2);
    background: var(--esb-cyan, #15c6c1);
    transform: rotate(calc(var(--percentage) * 3.6deg)) translateY(calc(50% - var(--w) / 2)); }

@media (max-width: 768px) {
  .esb-card-sello { top: 8px; left: 8px; font-size: 12px; padding: 5px 11px 5px 9px; }
}

/* 🚨 La ficha de WooCommerce coloca la galeria y la columna del precio con
 * FLOAT. Todo lo que se añada despues y no limpie los floats se pinta ENCIMA:
 * la caja de autor salia superpuesta a la galeria, tapando la foto, el titulo y
 * el precio, y desde el HTML parecia estar todo correcto (por eso hay que MIRAR
 * la pagina, no contar etiquetas). */
.cc-ficha-autor,
.cc-ficha-analisis {
  clear: both;
  margin-top: 28px;
}
.cc-ficha-autor { margin-bottom: 8px; }

/* ---------------------------------------------------------------------------
 * Estructura de la ficha, siguiendo la maqueta de esbellsa (capturada de su
 * ficha del Karmin G3): titulo grande y frase destacada a ancho completo, la
 * nota en barra, y la compra dentro de una caja con borde a la derecha.
 * ------------------------------------------------------------------------- */

.cc-ficha-cabecera { margin: 0 0 26px; }

.cc-ficha-titulo {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 18px;
}

/* La frase destacada es lo que resume el veredicto: caja clara, centrada y con
 * el texto algo mayor. En la ficha de tienda quedaba perdida bajo el precio. */
.cc-ficha-frase {
  background: var(--esb-track, #f2f5fa);
  border-radius: 10px;
  padding: 18px 24px;
  text-align: center;
  font-size: 1.06em;
  line-height: 1.55;
  color: var(--esb-ink, #1f2430);
  margin: 0 0 22px;
}
.cc-ficha-frase p { margin: 0; }

.cc-ficha-notas { display: flex; gap: 26px; flex-wrap: wrap; margin: 0 0 6px; }
.cc-ficha-nota { flex: 1 1 220px; max-width: 320px; }
.cc-ficha-nota-et {
  display: block; font-size: .76em; letter-spacing: .08em;
  text-transform: uppercase; color: #667085;
}
.cc-ficha-nota-num { display: block; font-size: 1.9em; line-height: 1.2; font-weight: 600; }
.cc-ficha-nota-pista { display: block; height: 5px; border-radius: 3px; background: var(--esb-track, #eef1f6); }
.cc-ficha-nota-barra {
  display: block; height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--esb-brand, #3D6BEE), var(--esb-cyan, #22B8CF));
}

/* La caja de compra: con borde, para que se lea como un modulo y no como texto
 * suelto. Es la caja "Ofertas" de esbellsa. */
.cc-ficha-oferta {
  border: 1px solid var(--esb-track, #e6eaf2);
  border-radius: 12px;
  padding: 18px 20px 20px;
}
.cc-ficha-oferta-cab {
  font-size: 1.05em; font-weight: 600;
  padding-bottom: 10px; margin-bottom: 14px;
  border-bottom: 1px solid var(--esb-track, #e6eaf2);
}
.cc-ficha-oferta .price { font-size: 1.6em; margin: 0 0 14px; display: block; }
.cc-ficha-oferta .button { width: 100%; text-align: center; }

/* Ficha tecnica en dos columnas, con el valor alineado a la derecha. */
.cc-ficha-specs { clear: both; margin: 34px 0 0; }
.cc-ficha-h2 { font-size: 1.45em; margin: 0 0 14px; }
.cc-ficha-specs-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 44px;
}
.cc-ficha-spec {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 11px 2px; border-bottom: 1px solid var(--esb-track, #eef1f6);
}
.cc-ficha-spec-et { font-weight: 600; }
.cc-ficha-spec-val { color: #5A647A; text-align: right; }

@media (max-width: 782px) {
  .cc-ficha-specs-grid { grid-template-columns: 1fr; gap: 0; }
  .cc-ficha-frase { padding: 15px 16px; text-align: left; }
  .cc-ficha-notas { gap: 14px; }
}

/* --- Pros y contras DENTRO de la tarjeta del ranking ------------------------
 * 🚨 Estas 8 clases las pinta `ProductCard.php` y NO tenian ni una regla: su hoja
 * vivia en el style.css del TEMA de esbellsa, igual que paso con las 33 clases
 * `esbellsa-*`. No se veia porque el bloque solo se pinta si el producto tiene
 * `wpcf-ventajas`, y hasta la fase 7 estaban TODAS vacias: al llenarlas salio el
 * markup en pelotas y el `<svg>` sin ancho ocupo media pantalla.
 * Un SVG con viewBox y sin width/height NO mide 0, mide 300x150 por defecto.
 * Mismos colores y medidas que `.cc-fpc` de la ficha: es la misma pieza. */
.lcs-grid-container{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px;margin:20px 0}
.lcs-card{background:#fff;border:1px solid #e4e9f2;border-radius:12px;overflow:hidden}
.lcs-pros-box{border-top:3px solid #0c7a74}
.lcs-cons-box{border-top:3px solid #b34a41}
.lcs-header{font-weight:700;font-size:1.05rem;padding:12px 18px 4px;margin:0}
.lcs-pros-box .lcs-header{color:#0c7a74}
.lcs-cons-box .lcs-header{color:#b34a41}
.lcs-list{list-style:none !important;margin:0 !important;padding:0 18px 16px !important}
.lcs-item{display:flex;align-items:flex-start;gap:10px;padding:6px 0;line-height:1.45}
.lcs-svg-icon{width:18px;height:18px;flex:0 0 auto;margin-top:3px;display:block}
.lcs-pros-box .lcs-svg-icon{fill:#0c7a74}
.lcs-cons-box .lcs-svg-icon{fill:#b34a41}

/* --- Las dos columnas de la ficha, y la galeria FIJA -----------------------
 * El hueco medido bajo la foto era de 491 px: la caja de compra mide 859 (precio, boton,
 * precio verificado, grafica y dos botones) y la galeria 368. Fijandola, la foto acompana
 * al precio y a la grafica en vez de quedarse arriba sola.
 * ⚠️ `align-self: start` es imprescindible: en un contenedor flex los hijos se estiran al
 * alto de la fila por defecto, y un elemento estirado NO se puede fijar, porque ya ocupa
 * todo el recorrido. Sin esa linea el `sticky` no hace absolutamente nada y no avisa. */
@media (min-width: 992px) {
  .cc-ficha-cols { display: flex; gap: 38px; align-items: flex-start; }
  .cc-ficha-cols .woocommerce-product-gallery { float: none !important;
      flex: 0 0 44%; width: 44% !important; margin: 0 !important;
      /* ⚠️ `!important` en `position` por la MISMA razon que en `float`: Astra estiliza la
         galeria como `.woocommerce div.product div.images` (0,3,2), que le gana a
         `.cc-ficha-cols .woocommerce-product-gallery` (0,2,0). El sintoma fue de manual y
         costo un rato: `top` y `align-self` de esta regla SI se aplicaban y `position` no,
         asi que la hoja llegaba bien y el sticky no hacia nada. */
      position: sticky !important; top: 24px; align-self: flex-start; }
  .cc-ficha-cols .summary.entry-summary { float: none !important;
      flex: 1 1 auto; width: auto !important; margin: 0 !important; }
  /* Un packshot vertical no puede fijar el alto de toda la cabecera. Se limita solo la
     imagen principal, no el zoom ni las miniaturas, y se conserva el producto entero. */
  .cc-ficha-cols .woocommerce-product-gallery__image > a { display: flex; justify-content: center;
      align-items: flex-start; }
  .cc-ficha-cols .woocommerce-product-gallery__image > a > img { width: auto !important;
      max-width: 100%; max-height: min(68vh, 640px); object-fit: contain; margin: 0 auto; }
}
/* En movil, una debajo de otra y sin fijar nada: fijar en una pantalla estrecha se come
   la mitad del alto util. */
@media (max-width: 991px) {
  .cc-ficha-cols .woocommerce-product-gallery,
  .cc-ficha-cols .summary.entry-summary { float: none !important; width: 100% !important; }
  .cc-ficha-cols .woocommerce-product-gallery__image > a { display: flex; justify-content: center; }
  .cc-ficha-cols .woocommerce-product-gallery__image > a > img { width: auto !important;
      max-width: 100%; max-height: min(58vh, 520px); object-fit: contain; margin: 0 auto; }
}

/* Sello "Probado en casa" de la FICHA: chapa SOBRE la foto, como en la tarjeta y como en
   esbellsa. Reutiliza `.esb-card-sello`, que ya es la pastilla, y solo ajusta el tamano: en la
   ficha la imagen es grande y el sello de la tarjeta se veia diminuto.
   ⚠️ La galeria ya es un elemento posicionado (`position: sticky`), asi que el `absolute` se
   ancla a ella. Si algun dia se quita el sticky, hay que dejarle un `position: relative`. */
.cc-sello-ficha { top: 14px; left: 14px; font-size: 14px; padding: 8px 15px 8px 11px; gap: 8px;
    background: #0c7a74; box-shadow: 0 3px 12px rgba(12,122,116,.35); }
.cc-sello-ficha svg { width: 17px; height: 17px; }
@media (max-width: 782px) { .cc-sello-ficha { top: 10px; left: 10px; font-size: 12.5px; padding: 6px 12px 6px 9px; } }

/* --- Bloques de FAQ de Rank Math migrados del articulo ---------------------
 * 🚨 Desbordaban la pagina EN MOVIL: en planchas de vapor el documento media 451 px en una
 * pantalla de 390. No se veia mirando (el bloque mide 350 y ningun hijo se salia del
 * viewport): habia que comparar `scrollWidth` contra `clientWidth`, y ahi salia una
 * respuesta con 411 de contenido en una caja de 310.
 * Es contenido de 2021 con enlaces largos y tablas sueltas, asi que el arreglo va por el
 * contenedor y vale para CUALQUIER categoria que migre su FAQ. */
.rank-math-block { max-width: 100%; }
.rank-math-block .rank-math-answer { overflow-wrap: anywhere; word-break: break-word; }
.rank-math-block img { max-width: 100%; height: auto; }
.rank-math-block table { display: block; width: 100%; overflow-x: auto; }

/* --- Fotos dentro del analisis de la ficha ---------------------------------
 * 🚨 A ancho completo, una foto VERTICAL se come mil pixeles de alto y tapa el texto: la de la
 * suela de la Focus Excel es de 916x1497 y ocupaba mas que toda la seccion que ilustra. El tope
 * va por ALTURA, no por anchura, que es lo que iguala fotos apaisadas y verticales.
 * Se vio MIRANDO la captura; en el HTML no hay nada raro. */
.cc-ficha-analisis figure.wp-block-image { margin: 26px 0; text-align: center; }
.cc-ficha-analisis figure.wp-block-image img { max-height: 460px; width: auto; max-width: 100%;
    margin: 0 auto; display: block; border-radius: 10px; }

/* Fotografías propias apaisadas: una sola medida editorial, sin el tope de
   altura reservado a imágenes verticales. El fichero servido conserva 3:2. */
body.cc-site-shell.single-product .cc-ficha-analisis > figure.cc-foto-prueba-propia {
    float: none !important; clear: both; display: block;
    width: 100%; max-width: 100%;
    margin: 28px auto 34px !important; }
body.cc-site-shell.single-product .cc-ficha-analisis > figure.cc-foto-prueba-propia img {
    display: block; width: 100% !important; max-width: 100%; height: auto !important;
    max-height: none !important; margin: 0 auto; object-fit: contain; }
body.cc-site-shell.single-product .cc-ficha-analisis > figure.cc-foto-prueba-propia figcaption {
    max-width: 68ch; margin: 10px auto 0; color: #60717c; font-size: .88rem; line-height: 1.45; }

/* Una escena apaisada limpia sí se usa como pausa visual a ancho completo. La clase se pone
   a mano tras revisar la imagen: nunca convierte por fuerza un packshot vertical en banner. */
.cc-ficha-analisis figure.cc-analisis-ancha img { width: 100% !important; max-width: 100%;
    height: clamp(280px, 32vw, 420px); max-height: none; object-fit: cover; object-position: center;
    margin: 0; }

/* Las fotos editoriales de categoría comparten la misma columna que el texto.
   Los flotados heredados producían varias anchuras de lectura y solapamientos
   en viewports intermedios. */
.term-description,
.woocommerce-products-header__description { display: flow-root; }
.term-description figure.wp-block-image,
.woocommerce-products-header__description figure.wp-block-image { float: none !important;
    clear: both; width: 100%; max-width: 100%;
    margin: 28px auto 34px !important; }
.term-description figure.wp-block-image img,
.woocommerce-products-header__description figure.wp-block-image img { width: 100% !important; max-width: 100%;
    height: auto !important; display: block; object-fit: contain; }
.term-description h2,
.term-description h3,
.term-description h4,
.woocommerce-products-header__description h2,
.woocommerce-products-header__description h3,
.woocommerce-products-header__description h4 { clear: both; }

/* Índice de comparativas: un <details> nativo permite empezar recogido sin
   JavaScript. El esquema ItemList refleja estos mismos enlaces, no contenido
   distinto u oculto artificialmente. */
.term-description .cc-toc,
.woocommerce-products-header__description .cc-toc { clear: both; margin: 30px 0 38px;
    border: 1px solid #d6e3e8; border-radius: 12px; background: #f8fbfc; overflow: hidden; }
.term-description .cc-toc > summary,
.woocommerce-products-header__description .cc-toc > summary { list-style: none; cursor: pointer; display: flex;
    align-items: center; justify-content: space-between; gap: 16px; padding: 15px 18px;
    color: #164f70; font-weight: 700; font-size: 1.05rem; }
.term-description .cc-toc > summary::-webkit-details-marker,
.woocommerce-products-header__description .cc-toc > summary::-webkit-details-marker { display: none; }
.term-description .cc-toc > summary::after,
.woocommerce-products-header__description .cc-toc > summary::after { content: '+'; flex: 0 0 auto; width: 24px; height: 24px;
    display: grid; place-items: center; border-radius: 50%; background: #e4f1f5; color: #0c7a74; font-size: 1.35rem; line-height: 1; }
.term-description .cc-toc[open] > summary,
.woocommerce-products-header__description .cc-toc[open] > summary { border-bottom: 1px solid #d6e3e8; background: #fff; }
.term-description .cc-toc[open] > summary::after,
.woocommerce-products-header__description .cc-toc[open] > summary::after { content: '−'; }
.cc-toc-state { color: #60717c; font-size: .84rem; font-weight: 600; margin-left: auto; }
.cc-toc-hide { display: none; }
.cc-toc[open] .cc-toc-show { display: none; }
.cc-toc[open] .cc-toc-hide { display: inline; }
.cc-toc-nav { padding: 14px 18px 18px; }
.cc-toc-list { margin: 0; padding: 0; list-style: none; }
.cc-toc-item { margin: 0; border-bottom: 1px solid rgba(214, 227, 232, .7); }
.cc-toc-item:last-child { border-bottom: 0; }
.cc-toc-item a { display: block; padding: 8px 0; color: #236b91; text-decoration: none; line-height: 1.35; }
.cc-toc-item a:hover, .cc-toc-item a:focus { color: #0c7a74; text-decoration: underline; text-underline-offset: 3px; }
.cc-toc-level-3 { margin-left: 22px; font-size: .94em; }
.term-description h2[id^="cc-indice-"], .term-description h3[id^="cc-indice-"],
.woocommerce-products-header__description h2[id^="cc-indice-"], .woocommerce-products-header__description h3[id^="cc-indice-"] { scroll-margin-top: 118px; }

@media (max-width: 782px) {
  .cc-ficha-analisis figure.cc-analisis-ancha img { height: auto; max-height: 340px; object-fit: cover; }
  .term-description figure.wp-block-image,
.woocommerce-products-header__description figure.wp-block-image { float: none !important; clear: both;
      max-width: 100%;
      margin: 22px auto 26px !important; }
  .term-description .cc-toc > summary,
  .woocommerce-products-header__description .cc-toc > summary { padding: 14px 15px; }
  .cc-toc-nav { padding: 12px 15px 16px; }
  .cc-toc-level-3 { margin-left: 14px; }
}
