/* producto.css — ficha de producto (/producto/*.html). Va después de base.css */
main { max-width: 1100px; margin: 0 auto; padding: 1.4rem 1.5rem 3rem; }
.breadcrumb { font-size: 0.8rem; color: var(--gris-500); margin-bottom: 1.1rem; }
.breadcrumb a { text-decoration: underline; text-underline-offset: 2px; }
.breadcrumb a:hover { color: var(--naranja-dark); }

.ficha { display: grid; grid-template-columns: 1fr; gap: 2.2rem; }
@media (min-width: 860px) { .ficha { grid-template-columns: 400px 1fr; align-items: start; } }
.col-foto { position: relative; }
@media (min-width: 860px) { .col-foto { position: sticky; top: calc(var(--header-h) + 1rem); } }

/* Foto con marco de plano técnico */
.foto-marco { position: relative; border: 1px solid var(--borde); border-radius: var(--radio-sm); background: var(--gris-50); padding: 0.9rem; }
.foto-marco::before, .foto-marco::after, .tick-bl, .tick-br { content: ''; position: absolute; width: 14px; height: 14px; opacity: 0.7; }
.foto-marco::before { top: 6px; left: 6px; border-top: 2px solid var(--naranja); border-left: 2px solid var(--naranja); }
.foto-marco::after { top: 6px; right: 6px; border-top: 2px solid var(--naranja); border-right: 2px solid var(--naranja); }
.tick-bl { bottom: 6px; left: 6px; border-bottom: 2px solid var(--naranja); border-left: 2px solid var(--naranja); }
.tick-br { bottom: 6px; right: 6px; border-bottom: 2px solid var(--naranja); border-right: 2px solid var(--naranja); }
.foto-img-wrap { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 2px; }
.foto-img-wrap img { width: 100%; height: 100%; object-fit: contain; }
.ref-tag { position: absolute; top: 1.1rem; left: 1.1rem; background: var(--tinta); color: #fff; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.05em; padding: 0.28rem 0.55rem; border-radius: var(--radio-sm); z-index: 2; }
.cat-tag { position: absolute; bottom: 1.1rem; left: 1.1rem; right: 1.1rem; background: rgba(255,255,255,0.95); color: var(--naranja-dark); font-size: 0.74rem; font-weight: 700; padding: 0.4rem 0.65rem; border-radius: var(--radio-sm); z-index: 2; text-align: center; }

.trust-row { display: flex; justify-content: space-between; gap: 0.5rem; margin-top: 1.1rem; padding: 0.9rem 0; border-top: 1px solid var(--borde); border-bottom: 1px solid var(--borde); }
.trust-item { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; text-align: center; flex: 1; font-size: 0.7rem; color: var(--gris-700); font-weight: 600; }
.trust-item svg { width: 18px; height: 18px; color: var(--naranja-dark); }
.foto-cta { display: none; margin-top: 0.9rem; }
@media (min-width: 860px) { .foto-cta { display: flex; } }

/* Información */
h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 3.5vw, 2rem); line-height: 1.15; letter-spacing: -0.01em; margin-bottom: 0.35rem; }
.material { color: var(--gris-500); font-size: 0.94rem; margin-bottom: 1.2rem; font-weight: 500; }
.nota { display: flex; gap: 0.65rem; align-items: flex-start; background: var(--naranja-soft); border-left: 3px solid var(--naranja); border-radius: 0 var(--radio-sm) var(--radio-sm) 0; padding: 0.75rem 0.9rem; font-size: 0.88rem; font-weight: 600; color: var(--naranja-dark); margin-bottom: 1.2rem; }
.nota svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 0.1rem; }
.descripcion { font-size: 0.96rem; color: var(--gris-700); margin-bottom: 1.8rem; max-width: 62ch; }

/* Ficha técnica */
.specs-eyebrow { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gris-500); margin-bottom: 0.9rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--borde); }
.grupo { margin-bottom: 1.1rem; }
.grupo-head { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 0.9rem; padding: 0.4rem 0; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; }
.grupo-head svg { width: 16px; height: 16px; color: var(--naranja-dark); flex-shrink: 0; }
.grupo-count { margin-left: auto; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; color: var(--gris-500); }
.grupo-chevron { width: 14px !important; height: 14px !important; color: var(--gris-500) !important; margin-left: 0.35rem; transition: transform 0.2s; }
.grupo.abierto .grupo-chevron { transform: rotate(180deg); }
.grupo .spec-table { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.25s ease; }
.grupo.abierto .spec-table { grid-template-rows: 1fr; }
.spec-table-inner { overflow: hidden; border: 1px solid var(--borde); border-radius: var(--radio-md); min-height: 0; }
.grupo:not(.abierto) .spec-table-inner { border-color: transparent; }
.spec-row { display: grid; grid-template-columns: 5.2rem 4.6rem 1fr auto; align-items: center; gap: 0.8rem; padding: 0.55rem 0.8rem; font-size: 0.84rem; }
.spec-row + .spec-row { border-top: 1px solid var(--borde); }
.spec-row .diam { font-weight: 700; }
.spec-row .cap { color: var(--gris-700); }
.bar-track { height: 6px; background: var(--gris-100); border-radius: 99px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--naranja); border-radius: 99px; }
.btn-cotizar { font-size: 0.76rem; font-weight: 700; color: var(--verde-wa); border: 1.5px solid var(--verde-wa); border-radius: var(--radio-full); padding: 0.3rem 0.7rem; text-decoration: none; white-space: nowrap; transition: background 0.15s, color 0.15s; }
.btn-cotizar:hover { background: var(--verde-wa); color: #fff; }
@media (max-width: 480px) { .spec-row { grid-template-columns: 4.4rem 3.8rem 1fr auto; gap: 0.5rem; padding: 0.5rem 0.6rem; } }
.sin-medidas { font-size: 0.9rem; color: var(--gris-700); background: var(--gris-100); border-radius: var(--radio-md); padding: 0.9rem 1rem; }

.link-alt { display: block; text-align: center; margin-top: 2rem; font-size: 0.82rem; color: var(--gris-500); text-decoration: underline; text-underline-offset: 2px; }
.link-alt:hover { color: var(--tinta); }

/* Relacionados */
.relacionados { margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--borde); }
.rel-title { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gris-500); margin-bottom: 0.9rem; }
.rel-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
@media (min-width: 520px) { .rel-grid { grid-template-columns: repeat(4, 1fr); } }
.rel-card { display: block; text-decoration: none; color: inherit; border: 1px solid var(--borde); border-radius: var(--radio-md); overflow: hidden; transition: transform 0.15s, box-shadow 0.15s; }
.rel-card:hover { transform: translateY(-2px); box-shadow: var(--sombra-hover); }
.rel-img { aspect-ratio: 1; background: var(--gris-100); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.rel-img img { width: 100%; height: 100%; object-fit: contain; }
.rel-nombre { font-size: 0.74rem; font-weight: 600; padding: 0.55rem 0.55rem 0.65rem; line-height: 1.3; }

/* Barra fija de WhatsApp en celular */
.wa-sticky { display: none; }
@media (max-width: 859px) {
  body { padding-bottom: 74px; }
  .wa-sticky { display: flex; align-items: center; justify-content: center; gap: 0.5rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--verde-wa); color: #fff; text-decoration: none; font-weight: 700; font-size: 0.94rem; padding: 0.95rem 1rem calc(0.95rem + env(safe-area-inset-bottom)); box-shadow: 0 -8px 20px -6px rgba(0,0,0,0.18); }
  .wa-sticky svg { width: 18px; height: 18px; fill: #fff; }
}
