/* ═══════════════════════════════════════════════════════════════
   Tofita Studio — fichas de producto, catálogo y migas de pan.
   Se carga DESPUÉS de base.css (el bloque de estilos de tienda.html).
   ═══════════════════════════════════════════════════════════════ */

/* ─── MIGAS DE PAN ─── */
.crumbs { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0; padding: 0; font-size: 0.78rem; }
.crumbs li { color: var(--texto-claro); display: flex; align-items: center; gap: 0.45rem; }
.crumbs li + li::before { content: "/"; opacity: 0.4; }
.crumbs a { color: var(--texto-claro); transition: color 0.2s; }
.crumbs a:hover { color: var(--rosa-flamenco); }
.crumbs [aria-current="page"] { color: var(--texto); font-weight: 700; }

/* ─── CONTENEDOR DE FICHA ─── */
.ficha-wrap { padding: 7.5rem 1.5rem 0; }
.ficha {
  max-width: 1100px; margin: 1.6rem auto 0;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 3rem; align-items: start;
}

/* ─── GALERÍA ─── */
.ficha-media { position: sticky; top: 110px; }
.ficha-main {
  background: #fff; border-radius: 1.5rem; overflow: hidden;
  border: 1px solid rgba(212, 165, 116, 0.25);
  display: flex; align-items: center; justify-content: center;
  min-height: 320px;
}
.ficha-main img { width: 100%; height: auto; }
.ficha-thumbs {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 0.55rem; margin-top: 0.7rem;
}
.ficha-thumbs button {
  padding: 0; border: 2px solid transparent; border-radius: 0.7rem;
  overflow: hidden; background: #fff; cursor: pointer; line-height: 0;
  transition: border-color 0.2s, transform 0.2s;
}
.ficha-thumbs button:hover { transform: translateY(-2px); }
.ficha-thumbs button[aria-selected="true"] { border-color: var(--terracota); }
.ficha-thumbs img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }

/* ─── COLUMNA DE INFORMACIÓN ─── */
.ficha-eyebrow {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 700; color: var(--terracota); margin-bottom: 0.7rem;
}
.ficha h1 {
  font-family: 'Caveat', cursive; font-weight: 700;
  font-size: clamp(2.1rem, 4.4vw, 3rem); line-height: 1.08;
  color: var(--texto); margin-bottom: 0.9rem;
}
.ficha-lead { font-size: 1.02rem; line-height: 1.75; color: var(--texto-claro); margin-bottom: 1.6rem; }

/* ─── CAJA DE COMPRA ─── */
.buy-box { background: #fff; border: 1px solid rgba(212, 165, 116, 0.3); border-radius: 1.25rem; padding: 1.5rem; }
.buy-price { font-family: 'Caveat', cursive; font-size: 2.5rem; font-weight: 700; color: var(--terracota); line-height: 1; }
.buy-price small { font-family: 'Quicksand', sans-serif; font-size: 0.78rem; font-weight: 600; color: var(--texto-claro); margin-left: 0.4rem; letter-spacing: 0.05em; }
.buy-status { display: flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; font-weight: 700; color: var(--verde-cactus); margin: 0.8rem 0 1.2rem; }
.buy-status.soon { color: #B08968; }
.buy-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.buy-btn {
  display: block; width: 100%; border: 0; cursor: pointer;
  font-family: 'Quicksand', sans-serif; font-size: 1rem; font-weight: 700;
  color: #fff; background: var(--rosa-flamenco);
  padding: 1rem; border-radius: 0.9rem;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
}
.buy-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255, 107, 157, 0.35); }
.buy-btn.alt { background: var(--verde-cactus); }
.buy-btn.alt:hover { box-shadow: 0 10px 24px rgba(74, 124, 89, 0.35); }
.buy-note { font-size: 0.79rem; line-height: 1.65; color: var(--texto-claro); margin-top: 0.9rem; }
.buy-note a { color: var(--rosa-flamenco); font-weight: 600; }

/* ─── LISTA DE HECHOS ─── */
.facts { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.65rem; }
.facts li { font-size: 0.89rem; color: var(--texto-claro); padding-left: 1.4rem; position: relative; line-height: 1.55; }
.facts li::before { content: "✦"; position: absolute; left: 0; color: var(--terracota); font-size: 0.8rem; }

/* ─── CUERPO DE LA FICHA ─── */
.ficha-body { max-width: 1100px; margin: 4rem auto 0; }
.ficha-block {
  background: #fff; border-radius: 1.5rem; padding: 2.2rem;
  border: 1px solid rgba(212, 165, 116, 0.2); margin-bottom: 1.4rem;
}
.ficha-block h2 { font-family: 'Caveat', cursive; font-size: 1.95rem; font-weight: 700; color: var(--texto); margin-bottom: 1rem; }
.ficha-block > p { font-size: 0.95rem; line-height: 1.8; color: var(--texto-claro); margin-bottom: 0.9rem; }
.ficha-block > p:last-child { margin-bottom: 0; }

.dentro { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.55rem 1.2rem; }
.dentro li { font-size: 0.89rem; color: var(--texto-claro); padding-left: 1.2rem; position: relative; line-height: 1.5; }
.dentro li::before { content: "✎"; position: absolute; left: 0; color: var(--terracota); font-size: 0.72rem; }

/* ─── TABLA DE DATOS ─── */
.specs { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.specs th, .specs td { text-align: left; padding: 0.75rem 0; border-bottom: 1px solid rgba(212, 165, 116, 0.18); vertical-align: top; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.specs th { width: 38%; font-weight: 700; color: var(--texto); font-size: 0.85rem; padding-right: 1rem; }
.specs td { color: var(--texto-claro); }

/* ─── PREGUNTAS ─── */
.faq details { border-bottom: 1px solid rgba(212, 165, 116, 0.18); padding: 0.95rem 0; }
.faq details:last-child { border-bottom: 0; padding-bottom: 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 0.95rem; color: var(--texto); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--terracota); font-size: 1.2rem; line-height: 1; flex-shrink: 0; }
.faq details[open] summary::after { content: "−"; }
.faq details p { font-size: 0.9rem; line-height: 1.75; color: var(--texto-claro); margin: 0.7rem 0 0; }

/* ─── TAMBIÉN TE PUEDE GUSTAR / CATÁLOGO ─── */
.cross { max-width: 1100px; margin: 3.5rem auto 5rem; padding: 0 1.5rem; }
.cross h2 { font-family: 'Caveat', cursive; font-size: 1.95rem; font-weight: 700; color: var(--texto); margin-bottom: 1.4rem; }
.cross-grid, .cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 1.5rem; }
.cat-wrap { padding: 0 1.5rem; max-width: 1100px; margin: 0 auto 5rem; }
.card-link {
  background: #fff; border-radius: 1.3rem; overflow: hidden;
  border: 1px solid rgba(212, 165, 116, 0.22);
  display: flex; flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card-link:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(45, 31, 26, 0.1); }
.card-link .thumb { aspect-ratio: 4 / 3; overflow: hidden; background: var(--crema); }
.card-link .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.15rem 1.25rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1rem; font-weight: 700; color: var(--texto); margin-bottom: 0.35rem; }
.card-body p { font-size: 0.85rem; line-height: 1.6; color: var(--texto-claro); margin-bottom: 0.9rem; flex: 1; }
.card-body .cta { font-size: 0.85rem; font-weight: 700; color: var(--rosa-flamenco); }
.card-body .cta.soon { color: #B08968; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .ficha { grid-template-columns: 1fr; gap: 2rem; }
  .ficha-media { position: static; }
  .ficha-wrap { padding-top: 6.5rem; }
  .ficha-block { padding: 1.6rem; }
  .cross, .cat-wrap { padding: 0 1.5rem; }
  .cross { margin-bottom: 4rem; }
}
