/* Cuentella — ficha de temática (diseño tipo MiBook). Usa los tokens de marca.css. */
.cf-contenedor { width: 100%; max-width: var(--cu-ancho, 1280px); margin: 0 auto; padding: 32px var(--cu-margen, 16px) 64px; box-sizing: border-box; }
.cf-ficha { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: start; font-family: var(--cu-fuente); color: var(--cu-tinta); }

/* Galería */
.cf-galeria { display: flex; gap: 14px; align-items: flex-start; }
.cf-miniaturas { display: flex; flex-direction: column; gap: 10px; flex: none; }
.cf-ficha .cf-mini { width: 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--cu-cielo); cursor: pointer; }
.cf-ficha .cf-mini.activa { border-color: var(--cu-primario); }
.cf-ficha .cf-mini img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cf-principal { position: relative; flex: 1; min-width: 0; background: var(--cu-cielo); border-radius: 22px; overflow: hidden; aspect-ratio: 1 / 1; box-shadow: 0 10px 30px rgba(18, 37, 74, .1); }
.cf-principal img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cf-ficha .cf-flecha { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--cu-tinta); font: 700 24px/1 var(--cu-fuente); cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.cf-ficha .cf-ant { left: 10px; } .cf-ficha .cf-sig { right: 10px; }

/* Información */
.cf-ficha .cf-titulo { margin: 0 0 12px; font: 400 34px/1.1 var(--cu-fuente-titulo); letter-spacing: 1px; color: var(--cu-tinta); }
.cf-ficha .cf-texto { font-size: 15px; line-height: 1.6; color: var(--cu-suave); }
.cf-ficha .cf-texto p { margin: 0 0 12px; }
.cf-ficha .cf-datos { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.cf-ficha .cf-datos li { margin: 0; padding: 0; }
.cf-ficha .cf-dato-t { display: inline-block; margin-right: 6px; font-weight: 800; color: var(--cu-tinta); }
.cf-ficha .cf-dato-t::after { content: ":"; }
.cf-ficha .cf-precio { margin: 22px 0 12px; font: 800 18px/1.2 var(--cu-fuente); color: var(--cu-tinta); }

.cf-ficha .cf-boton { display: flex; align-items: center; justify-content: center; gap: .4em; box-sizing: border-box; width: 100%; padding: .75em 1em;
  border-radius: 999px; background: var(--cu-acento); color: #fff; text-decoration: none;
  font-family: "Bubblegum Sans", var(--cu-fuente); font-weight: 500; font-size: 1.2em; line-height: 1.1; letter-spacing: .01em;
  box-shadow: 0 12px 28px rgba(255, 91, 110, .25); transition: transform .15s ease, background .15s ease; }
.cf-ficha .cf-boton:hover, .cf-ficha .cf-boton:focus-visible { background: #E8475A; color: #fff; transform: translateY(-1px); }
.cf-ficha .cf-boton:focus-visible { outline: 3px solid var(--cu-primario); outline-offset: 3px; }

/* Desplegables */
.cf-detalles { margin-top: 24px; border-top: 1px solid var(--cu-borde); }
.cf-ficha .cf-detalle { border-bottom: 1px solid var(--cu-borde); }
.cf-ficha .cf-detalle summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 4px; cursor: pointer;
  font: 700 15px/1.3 var(--cu-fuente); color: var(--cu-tinta); list-style: none; }
.cf-ficha .cf-detalle summary::-webkit-details-marker { display: none; }
.cf-ficha .cf-detalle summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s ease; }
.cf-ficha .cf-detalle[open] summary::after { transform: rotate(-135deg); }
.cf-ficha .cf-detalle p { margin: 0; padding: 0 4px 16px; font-size: 14px; line-height: 1.6; color: var(--cu-suave); }

/* Beneficios */
.cf-ficha .cf-beneficios { list-style: none; margin: 22px 0 0; padding: 18px 20px; display: grid; gap: 12px; background: #fff; border-radius: 22px; box-shadow: 0 6px 22px rgba(18, 37, 74, .08); }
.cf-ficha .cf-beneficios li { position: relative; margin: 0; padding: 2px 0 2px 38px; font-size: 14px; line-height: 1.4; }
.cf-ficha .cf-beneficios li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: #FFE3E6; color: var(--cu-tinta);
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }

@media (max-width: 860px) {
  .cf-ficha { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .cf-galeria { flex-direction: column-reverse; }
  .cf-miniaturas { flex-direction: row; }
}
@media (prefers-reduced-motion: reduce) { .cf-ficha .cf-boton, .cf-ficha .cf-detalle summary::after { transition: none; } }
