/* Copia de diseno/16-ficha/ficha.css: no editar a mano. */
/* Ficha de producto, parte de arriba (pieza 15).
   Repite el original: dos columnas (datos a la izquierda, fotos a la derecha), titulo coral centrado,
   6 datos en 2 columnas con iconos morados de 50 px, mensaje, boton verde de WhatsApp y miniaturas debajo de la foto.
   En celular: titulo, fotos, datos y boton.
   Cambios: una sola galeria (antes un carrusel y, en celular, las mismas fotos otra vez en grande); la foto se amplia
   al tocarla; letra Red Hat; datos con la etiqueta en gris y el valor en morado oscuro; mensaje de 16 px (antes 13). */
.lcb-ficha { box-sizing: border-box; width: 100%; padding: 1.25rem 0.625rem; color: #3D3A45; font: 400 1rem/1.5 var(--lcb-cuerpo); }
.lcb-ficha *, .lcb-ficha *::before, .lcb-ficha *::after { box-sizing: border-box; }
.lcb-ficha__caja { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "titulo" "galeria" "info"; gap: 1.25rem 2rem; width: 100%; max-width: 1310px; margin-inline: auto; }
.lcb-ficha.lcb-ficha .lcb-ficha__titulo { grid-area: titulo; margin: 0; color: #EA516D; font: 700 clamp(1.875rem, 3.2vw, 3.125rem)/1.1 var(--lcb-titulos); letter-spacing: normal; text-align: center; text-transform: none; }
.lcb-ficha__oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Galeria */
.lcb-ficha__galeria { grid-area: galeria; min-width: 0; }
.lcb-ficha__principal { position: relative; }
.lcb-ficha__foto { display: block; border-radius: 12px; cursor: zoom-in; }
.lcb-ficha__foto[hidden] { display: none; }
.lcb-ficha__foto img { display: block; width: 100%; max-height: 32rem; height: auto; object-fit: contain; }
.lcb-ficha button { margin: 0; padding: 0; border: 0; background: none; font: inherit; cursor: pointer; box-shadow: none; text-transform: none; }
.lcb-ficha button.lcb-ficha__flecha { position: absolute; top: 50%; display: flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; transform: translateY(-50%); border-radius: 50%; color: #5E4690; }
.lcb-ficha button.lcb-ficha__flecha:hover { background: rgba(94, 70, 144, 0.1); }
.lcb-ficha__flecha--antes { left: 0; }
.lcb-ficha__flecha--despues { right: 0; }
.lcb-ficha__flecha svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.lcb-ficha__miniaturas { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin: 0.75rem 0 0; padding: 0; list-style: none; }
.lcb-ficha__miniaturas li { margin: 0; }
.lcb-ficha button[data-indice] { display: block; width: 4.5rem; height: 4.5rem; padding: 3px; border: 2px solid transparent; border-radius: 8px; background: #FFFFFF; }
.lcb-ficha button[data-indice][aria-current="true"] { border-color: #5E4690; }
.lcb-ficha button[data-indice] img { display: block; width: 100%; height: 100%; object-fit: contain; }
.lcb-ficha button:focus-visible, .lcb-ficha a:focus-visible { outline: 3px solid var(--lcb-foco); outline-offset: 2px; }
.lcb-ficha__ampliada { width: min(56rem, 94vw); max-height: 92vh; padding: 0.75rem; border: 0; border-radius: 12px; }
.lcb-ficha__ampliada::backdrop { background: rgba(29, 18, 77, 0.75); }
.lcb-ficha__ampliada img { display: block; width: 100%; max-height: 84vh; object-fit: contain; }
.lcb-ficha button.lcb-ficha__cerrar { position: absolute; top: 0.25rem; right: 0.25rem; width: 3rem; height: 3rem; border-radius: 50%; background: #FFFFFF; color: #1D124D; font: 700 2rem/1 var(--lcb-titulos); }

/* Datos, mensaje y boton */
.lcb-ficha__info { grid-area: info; display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.lcb-ficha__datos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(var(--filas, 3), auto); grid-auto-flow: column; gap: 1.5rem 1rem; width: 100%; margin: 0; }
.lcb-ficha__datos div { display: flex; flex-direction: column; align-items: center; text-align: center; }
.lcb-ficha__datos dt { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; color: #6F6F6F; font: 600 0.9375rem/1.3 var(--lcb-cuerpo); }
.lcb-ficha__datos dt img { display: block; width: 50px; height: 50px; object-fit: contain; }
.lcb-ficha__datos dd { margin: 0.125rem 0 0; color: #1D124D; font: 700 1rem/1.3 var(--lcb-cuerpo); overflow-wrap: anywhere; }
.lcb-ficha__mensaje { max-width: 32rem; margin: 0; color: #4B4359; font-size: 1rem; text-align: center; }
.lcb-ficha a.lcb-ficha__wa { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3rem; padding: 0.875rem 1.5rem; border: 2px solid var(--lcb-wa-borde); border-radius: 30px; background: var(--lcb-wa); color: var(--lcb-wa-texto); font: 700 1.25rem/1.2 var(--lcb-cuerpo); text-decoration: none; transition: background-color 0.15s, transform 0.2s; }
.lcb-ficha a.lcb-ficha__wa:hover { background: var(--lcb-wa-encima); color: var(--lcb-wa-texto); transform: scale(1.04); }
.lcb-ficha a.lcb-ficha__wa svg { width: 1.5rem; height: 1.5rem; fill: currentColor; }

@media (min-width: 768px) {
  .lcb-ficha { padding: 1.875rem 1.25rem; }
  .lcb-ficha__caja { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "titulo galeria" "info galeria"; align-items: start; }
  .lcb-ficha__galeria { align-self: center; }
}
@media (prefers-reduced-motion: reduce) {
  .lcb-ficha a.lcb-ficha__wa { transition: none; }
  .lcb-ficha a.lcb-ficha__wa:hover { transform: none; }
}

/* Foto ampliada con flechas y contador (04/12/2026). */
.lcb-ficha__ampliada { overflow: hidden; }
.lcb-ficha button.lcb-ficha__cerrar { z-index: 2; box-shadow: 0 2px 10px rgba(29, 18, 77, 0.2); }
.lcb-ficha button.lcb-ficha__ver { position: absolute; top: 50%; z-index: 1; display: flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; padding: 0; border: 0; border-radius: 50%; background: #5E4690; color: #FFFFFF; box-shadow: 0 2px 12px rgba(29, 18, 77, 0.3); transform: translateY(-50%); cursor: pointer; }
.lcb-ficha button.lcb-ficha__ver:hover { background: #C42F50; }
.lcb-ficha__ver--antes { left: 0.75rem; }
.lcb-ficha__ver--despues { right: 0.75rem; }
.lcb-ficha__ver svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.lcb-ficha__contador { position: absolute; bottom: 1.25rem; left: 50%; padding: 0.125rem 0.625rem; border-radius: 999px; background: rgba(29, 18, 77, 0.72); color: #FFFFFF; font: 600 0.8125rem/1.6 var(--lcb-cuerpo); transform: translateX(-50%); }
