/* =====================================================================
   GANK 2026-10-26 ficha-gkdesc · d8 · Descripción larga con formato gk-desc
   Diseño «A2» aprobado por Die (26-oct): base Bento claro (estilo Apple)
   + Ideal para / Compatibilidad / Qué incluye de la propuesta B
   + FAQ a dos columnas en escritorio.
   - Solo aplica dentro de .gk-desc (lo genera app.gank.mx · Redactar con IA).
     Las fichas viejas no cambian. Se carga solo en la ficha (stylesheets.tpl).
   - Sin cambios al contrato de HTML: los números (01, 02…) salen de contadores CSS
     y el acomodo del mosaico de Destacados, de :first-of-type / :last-of-type.
   - Animaciones: gank-desc.js agrega .gk-anim a .gk-desc y .gk-rv / .is-in a
     cada bloque. Sin JS el contenido se ve completo.
   - Fotos del fabricante con fondo blanco: mix-blend-mode multiply las funde
     con el gris de la tarjeta (#f5f5f7).
   - Contraste (WCAG AA): #1d1d1f 16:1; #6e6e73 sobre blanco 5.0:1 y sobre
     #f5f5f7 4.6:1; #86868b solo en 13 px seminegrita de identificación
     (3.5:1, texto auxiliar); #f5f5f7 sobre #101010 17:1; #101010 sobre #FFD600 13:1.
   ===================================================================== */

/* ---------- 1. Base (neutraliza p 14px/24px del tema y padding de .cms-description p) ---------- */
body#product .gk-desc { color: #1d1d1f; font-family: Montserrat, Arial, sans-serif; font-size: 17px; line-height: 1.6; interpolate-size: allow-keywords; }
body#product .gk-desc section { margin: 0 0 96px; }
body#product .gk-desc section:last-child { margin-bottom: 0; }
body#product .gk-desc h3 { margin: 0 0 32px; color: #101010; font-family: inherit; font-size: clamp(34px, 3.4vw, 44px); font-weight: 800; line-height: 1.08; letter-spacing: -.03em; text-transform: none; }
body#product .gk-desc h4 { margin: 0 0 12px; color: #101010; font-family: inherit; font-size: 30px; font-weight: 800; line-height: 1.12; letter-spacing: -.025em; text-transform: none; }
body#product .gk-desc p { margin: 0 0 12px; padding: 0; color: inherit; font-size: inherit; line-height: inherit; }
body#product .gk-desc ul { display: block; width: auto; margin: 0; padding: 0; list-style: none; }
body#product .gk-desc li { display: block; float: none; width: auto; margin: 0; letter-spacing: normal; }
body#product .gk-desc figure { margin: 0; }
body#product .gk-desc img { display: block; max-width: 100%; height: auto; }

/* ---------- 2. Resumen: texto grande centrado y cifras ---------- */
body#product .gk-desc__resumen { padding-top: 32px; text-align: center; }
body#product .gk-desc__resumen > p { max-width: 860px; margin-left: auto; margin-right: auto; }
body#product .gk-desc p.gk-desc__lead { margin-bottom: 18px; color: #101010; font-size: clamp(30px, 3vw, 38px); font-weight: 700; line-height: 1.18; letter-spacing: -.03em; }
body#product .gk-desc__resumen > p:not(.gk-desc__lead) { color: #6e6e73; font-size: 20px; line-height: 1.5; }
body#product .gk-desc ul.gk-desc__datos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 56px; padding-top: 36px; border-top: 1px solid #e5e5ea; }
body#product .gk-desc__datos li { padding: 0 12px; border-left: 1px solid #e5e5ea; color: #6e6e73; font-size: 14px; line-height: 1.4; }
body#product .gk-desc__datos li:first-child { border-left: 0; }
body#product .gk-desc__datos strong { display: block; margin-bottom: 6px; color: #101010; font-size: clamp(30px, 3.2vw, 44px); font-weight: 800; line-height: 1.05; letter-spacing: -.035em; overflow-wrap: anywhere; }

/* ---------- 3. Destacados: mosaico (primero y, si son pares, el último a todo el ancho) ---------- */
body#product .gk-desc__destacados { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
body#product .gk-desc__destacados h3 { grid-column: 1 / -1; margin-bottom: 12px; }
body#product .gk-desc__bloque { display: flex; flex-direction: column; gap: 28px; padding: 44px; border-radius: 28px; background: #f5f5f7; overflow: hidden; }
body#product .gk-desc__bloque figcaption { order: -1; }
body#product .gk-desc__bloque figcaption p { color: #6e6e73; font-size: 17px; }
body#product .gk-desc__bloque img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 0; mix-blend-mode: multiply; }
body#product .gk-desc__bloque:first-of-type,
body#product .gk-desc__bloque:last-of-type:nth-of-type(even) { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 40px; padding: 48px 56px; }
body#product .gk-desc__bloque:first-of-type figcaption,
body#product .gk-desc__bloque:last-of-type:nth-of-type(even) figcaption { flex: 0 0 32%; }
body#product .gk-desc__bloque:first-of-type img,
body#product .gk-desc__bloque:last-of-type:nth-of-type(even) img { flex: 1 1 auto; width: auto; min-width: 0; max-height: 560px; }
body#product .gk-desc__bloque:last-of-type:nth-of-type(even) figcaption { order: 1; }

/* ---------- 4. Ideal para: tarjetas blancas con número amarillo (contador CSS) ---------- */
body#product .gk-desc__usos { counter-reset: gkuso; }
body#product .gk-desc .gk-desc__usos ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
body#product .gk-desc__usos li { padding: 32px; border-radius: 24px; background: #ffffff; box-shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 10px 30px rgba(0, 0, 0, .08); color: #6e6e73; font-size: 16px; line-height: 1.5; counter-increment: gkuso; transition: transform .2s ease, box-shadow .2s ease, opacity .55s ease; }
body#product .gk-desc__usos li::before { content: counter(gkuso, decimal-leading-zero); display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 28px; border-radius: 14px; background: #FFD600; color: #101010; font-size: 15px; font-weight: 800; }
body#product .gk-desc__usos strong { display: block; margin-bottom: 6px; color: #101010; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
@media (hover: hover) {
    body#product .gk-desc__usos li:hover { transform: translateY(-4px); box-shadow: 0 2px 6px rgba(0, 0, 0, .1), 0 16px 36px rgba(0, 0, 0, .12); }
}

/* ---------- 5. Compatibilidad (negro, palomitas amarillas) y Qué incluye (gris) ---------- */
body#product .gk-desc__compat { padding: 48px; border-radius: 28px; background: #101010; }
body#product .gk-desc__incluye { padding: 48px; border-radius: 28px; background: #f5f5f7; }
body#product .gk-desc__compat h3, body#product .gk-desc__incluye h3 { margin-bottom: 24px; font-size: 30px; }
body#product .gk-desc__compat h3 { color: #ffffff; }
body#product .gk-desc__compat li { position: relative; padding: 8px 0 8px 38px; color: #f5f5f7; font-size: 17px; }
body#product .gk-desc__compat li::before { content: ""; position: absolute; left: 0; top: 10px; width: 24px; height: 24px; border-radius: 50%; background: #FFD600; }
body#product .gk-desc__compat li::after { content: ""; position: absolute; left: 9px; top: 14px; width: 6px; height: 11px; border: solid #101010; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
body#product .gk-desc__incluye li { padding: 12px 0; border-bottom: 1px solid #e0e0e5; }
body#product .gk-desc__incluye li:last-child { border-bottom: 0; }

/* ---------- 6. Preguntas frecuentes (acordeón nativo) ---------- */
body#product .gk-desc__faq details { border-bottom: 1px solid #e5e5ea; }
body#product .gk-desc__faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; color: #101010; font-size: 20px; font-weight: 600; line-height: 1.35; list-style: none; cursor: pointer; }
body#product .gk-desc__faq summary::-webkit-details-marker { display: none; }
body#product .gk-desc__faq summary::after { content: "+"; display: flex; align-items: center; justify-content: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; background: #f5f5f7; color: #101010; font-size: 22px; font-weight: 400; line-height: 1; transition: background-color .2s ease, transform .25s ease; }
body#product .gk-desc__faq details[open] summary::after { content: "\2212"; background: #101010; color: #FFD600; transform: rotate(180deg); }
body#product .gk-desc__faq summary:focus-visible { outline: 2px solid #101010; outline-offset: 2px; }
body#product .gk-desc__faq details p { padding-bottom: 20px; color: #6e6e73; font-size: 17px; }
body#product .gk-desc__faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .3s ease, content-visibility .3s allow-discrete; }
body#product .gk-desc__faq details[open]::details-content { block-size: auto; }

/* ---------- 7. Identificación (al final, discreta) ---------- */
body#product .gk-desc__ident { padding-top: 24px; border-top: 1px solid #e5e5ea; }
body#product .gk-desc__ident h3 { margin-bottom: 10px; color: #86868b; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
body#product .gk-desc__ident dl { display: grid; grid-template-columns: repeat(4, auto minmax(0, 1fr)); gap: 4px 12px; margin: 0; color: #6e6e73; font-size: 13px; }
body#product .gk-desc__ident dt { margin: 0; color: #424245; font-weight: 600; }
body#product .gk-desc__ident dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- 8. Escritorio ancho: Compatibilidad|Incluye lado a lado y FAQ a dos columnas ---------- */
@media (min-width: 992px) {
    body#product .gk-desc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 20px; }
    body#product .gk-desc > section { grid-column: 1 / -1; }
    body#product .gk-desc > .gk-desc__compat + .gk-desc__incluye { grid-column: 2; }
    body#product .gk-desc > .gk-desc__compat:has(+ .gk-desc__incluye) { grid-column: 1; }
    body#product .gk-desc__faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: 64px; align-items: start; }
    body#product .gk-desc__faq h3 { grid-column: 1; grid-row: 1 / span 20; margin: 0; font-size: 40px; }
    body#product .gk-desc__faq details { grid-column: 2; }
    body#product .gk-desc__faq details:first-of-type { border-top: 1px solid #e5e5ea; }
}

/* ---------- 9. Animaciones (solo con .gk-anim, que pone gank-desc.js) ---------- */
body#product .gk-anim .gk-rv { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s cubic-bezier(.2, .7, .2, 1); }
body#product .gk-anim .gk-rv.is-in { opacity: 1; transform: none; }
body#product .gk-anim .gk-desc__datos li:nth-child(2), body#product .gk-anim .gk-desc__usos li:nth-child(2) { transition-delay: .08s; }
body#product .gk-anim .gk-desc__datos li:nth-child(3), body#product .gk-anim .gk-desc__usos li:nth-child(3) { transition-delay: .16s; }
body#product .gk-anim .gk-desc__datos li:nth-child(4) { transition-delay: .24s; }
body#product .gk-anim .gk-desc__usos li.is-in:hover { transition-delay: 0s; }
body#product .gk-anim .gk-desc__bloque img { transform: scale(.96); transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
body#product .gk-anim .gk-desc__bloque.is-in img { transform: none; }
body#product .gk-anim .gk-desc__compat li::before { transform: scale(0); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
body#product .gk-anim .gk-desc__compat.is-in li::before { transform: scale(1); }
body#product .gk-anim .gk-desc__compat.is-in li:nth-child(2)::before { transition-delay: .1s; }
body#product .gk-anim .gk-desc__compat.is-in li:nth-child(3)::before { transition-delay: .2s; }
body#product .gk-anim .gk-desc__compat.is-in li:nth-child(n+4)::before { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
    body#product .gk-anim .gk-rv, body#product .gk-anim .gk-desc__bloque img, body#product .gk-anim .gk-desc__compat li::before { opacity: 1; transform: none; transition: none; }
    body#product .gk-desc__usos li, body#product .gk-desc__faq summary::after, body#product .gk-desc__faq details::details-content { transition: none; }
}

/* ---------- 10. Tableta (≤991): mosaico y usos en una columna ---------- */
@media (max-width: 991px) {
    body#product .gk-desc section { margin-bottom: 72px; }
    body#product .gk-desc__destacados { grid-template-columns: minmax(0, 1fr); }
    body#product .gk-desc__bloque:first-of-type,
    body#product .gk-desc__bloque:last-of-type:nth-of-type(even) { flex-direction: column; align-items: stretch; gap: 28px; padding: 44px; }
    body#product .gk-desc__bloque:first-of-type figcaption,
    body#product .gk-desc__bloque:last-of-type:nth-of-type(even) figcaption { flex: none; order: -1; }
    body#product .gk-desc__bloque:first-of-type img,
    body#product .gk-desc__bloque:last-of-type:nth-of-type(even) img { width: 100%; max-height: none; }
    body#product .gk-desc .gk-desc__usos ul { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    body#product .gk-desc__compat { margin-bottom: 14px; }
}

/* ---------- 11. Celular (≤767) ---------- */
@media (max-width: 767px) {
    body#product .gk-desc { font-size: 16px; }
    body#product .gk-desc section { margin-bottom: 64px; }
    body#product .gk-desc h3 { margin-bottom: 22px; font-size: 30px; }
    body#product .gk-desc h4 { margin-bottom: 8px; font-size: 22px; letter-spacing: -.02em; }
    body#product .gk-desc p { margin-bottom: 10px; }
    body#product .gk-desc__resumen { padding-top: 12px; }
    body#product .gk-desc p.gk-desc__lead { margin-bottom: 14px; font-size: 26px; line-height: 1.2; letter-spacing: -.025em; }
    body#product .gk-desc__resumen > p:not(.gk-desc__lead) { font-size: 17px; }
    body#product .gk-desc ul.gk-desc__datos { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 36px; padding-top: 0; }
    body#product .gk-desc__datos li { padding: 22px 8px; border-left: 0; border-bottom: 1px solid #e5e5ea; font-size: 13px; }
    body#product .gk-desc__datos li:nth-child(odd) { border-right: 1px solid #e5e5ea; }
    body#product .gk-desc__datos strong { margin-bottom: 4px; font-size: 28px; letter-spacing: -.03em; overflow-wrap: normal; }
    body#product .gk-desc__destacados { gap: 14px; }
    body#product .gk-desc__destacados h3 { margin-bottom: 8px; }
    body#product .gk-desc__bloque,
    body#product .gk-desc__bloque:first-of-type,
    body#product .gk-desc__bloque:last-of-type:nth-of-type(even) { gap: 18px; padding: 28px 24px; border-radius: 24px; }
    body#product .gk-desc__bloque figcaption p { font-size: 15px; }
    body#product .gk-desc__usos li { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; align-items: start; padding: 20px; border-radius: 20px; font-size: 15px; }
    body#product .gk-desc__usos li::before { grid-row: 1 / 3; width: 40px; height: 40px; margin: 0; border-radius: 12px; font-size: 14px; }
    body#product .gk-desc__usos li:active { transform: scale(.98); }
    body#product .gk-desc__usos strong { margin-bottom: 0; font-size: 18px; }
    body#product .gk-desc__compat, body#product .gk-desc__incluye { padding: 32px 24px; border-radius: 24px; }
    body#product .gk-desc section.gk-desc__compat { margin-bottom: 14px; }
    body#product .gk-desc__compat h3, body#product .gk-desc__incluye h3 { margin-bottom: 16px; font-size: 24px; }
    body#product .gk-desc__compat li { padding: 7px 0 7px 34px; font-size: 16px; }
    body#product .gk-desc__compat li::before { top: 9px; width: 22px; height: 22px; }
    body#product .gk-desc__compat li::after { left: 8px; top: 13px; width: 5px; height: 10px; }
    body#product .gk-desc__incluye li { padding: 11px 0; font-size: 16px; }
    body#product .gk-desc__faq summary { min-height: 64px; font-size: 17px; }
    body#product .gk-desc__faq summary::after { flex-basis: 32px; width: 32px; height: 32px; font-size: 20px; }
    body#product .gk-desc__faq details p { padding-bottom: 16px; font-size: 15px; }
    body#product .gk-desc__ident { padding-top: 20px; }
    body#product .gk-desc__ident h3 { font-size: 12px; }
    body#product .gk-desc__ident dl { grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; font-size: 12px; }
}
