/* assets/tv-pdp.css — PDP de la pantalla Samsung (productos/pantalla.html, 2026-10-29).
   Tokens del sitio (muna.css): sand, paper, charcoal, terra, stone, rule. Mobile first (375 px). */
.tvp { background: var(--sand); }
.tvp .page { padding-top: 64px; }
.tvp__crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 14px 0 10px; font-size: 11.5px; color: var(--mist); }
.tvp__crumbs a { color: var(--stone); }
.tvp__crumbs [aria-current] { color: var(--graphite); font-weight: 500; }
.tvp__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }

/* Galería */
.tvg { min-width: 0; }
.tvg__main { aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: #F6F3EE; border: 1px solid var(--rule); }
.tvg__main img { width: 100%; height: 100%; object-fit: contain; display: block; }
.tvg__thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tvg__thumbs::-webkit-scrollbar { display: none; }
.tvg__thumb { flex: none; width: 60px; height: 60px; padding: 0; border: 1.5px solid var(--rule); border-radius: 9px; overflow: hidden; background: #F6F3EE; cursor: pointer; }
.tvg__thumb[aria-pressed="true"] { border-color: var(--charcoal); }
.tvg__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Caja de compra */
.tvb { min-width: 0; }
.tvb__brand { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); }
.tvb__name { font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(22px, 5.6vw, 30px); line-height: 1.08; letter-spacing: -.01em; color: var(--charcoal); margin: 4px 0 4px; }
.tvb__sub { font-size: 12.5px; color: var(--stone); }
.tvb__rating { margin: 10px 0 0; font-size: 12.5px; color: var(--graphite); }
.tvb__stars { color: #C8A86B; letter-spacing: 1px; }
.tvb__rating-note { margin: 2px 0 0; font-size: 10.5px; color: var(--mist); }

.tvs { margin: 16px 0 0; }
.tvs__label { font-size: 12.5px; color: var(--stone); margin-bottom: 8px; }
.tvs__label b { color: var(--charcoal); }
.tvs__opts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.tvs__opt { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 9px 4px 8px; border: 1.5px solid var(--rule); border-radius: 10px; background: var(--paper); cursor: pointer; font-family: 'Inter', sans-serif; transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 140ms ease; }
.tvs__opt:active { transform: scale(.97); }
.tvs__opt:focus-visible { outline: 2px solid var(--terra); outline-offset: 2px; }
.tvs__opt.on { border-color: var(--terra); background: rgba(209,98,60,.06); box-shadow: 0 5px 15px rgba(209,98,60,.15); }
.tvs__opt b { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 17px; color: var(--charcoal); line-height: 1.1; }
.tvs__opt span { font-size: 12px; font-weight: 700; color: var(--terra-dk); white-space: nowrap; }
.tvs__opt small { font-size: 10px; font-weight: 600; color: #2d6a45; }

.tvpr { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--paper); border: 1px solid var(--rule); }
.tvpr__row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; color: var(--stone); padding: 3px 0; }
.tvpr__row--mkt span:last-child { font-weight: 600; color: var(--graphite); } /* sin tachar: es el precio de OTRAS tiendas, no un precio anterior de MUNA */
.tvpr__row--now { color: var(--charcoal); }
.tvpr__row--now span:first-child { font-weight: 600; }
.tvpr__row--now span:last-child { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 28px; line-height: 1.05; }
.tvpr__row--save { color: #2d6a45; font-weight: 600; border-top: 1px dashed var(--rule); margin-top: 4px; padding-top: 7px; }
.tvpr__row--save b { font-weight: 800; }
.tvpr__row--save em { font-style: normal; }
.tvpr__src { margin: 6px 0 0; font-size: 10.5px; line-height: 1.4; color: var(--mist); }

.tvb__stock { margin: 10px 0 0; font-size: 12px; font-weight: 700; color: var(--terra-dk); }
.tvb__stock.out { color: var(--stone); }
.tvp a.is-out, .tvp button.is-out { opacity: .5; pointer-events: none; }
.tvb__tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 12px 0 0; }
.tvb__tile { padding: 8px 10px; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); font-size: 11px; color: var(--stone); }
.tvb__tile b { display: block; font-size: 12.5px; color: var(--charcoal); }
.tvb__tile--msi { background: #effaef; border-color: #b9d9c0; }
.tvb__tile--msi b { color: #1f4d33; }
.tvb__cta { display: flex; flex-direction: column; gap: 10px; margin: 14px 0 0; }
.tvb__eta { margin: 10px 0 0; font-size: 12px; color: var(--stone); text-align: center; }
.tvb__eta b { color: var(--terra-dk); }

/* Secciones */
.tvp h2 { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 21px; line-height: 1.15; color: var(--charcoal); margin: 0 0 10px; }
.tvsala, .tvf, .tvspec { margin: 34px 0 0; }
.tvsala__lead { margin: -4px 0 12px; font-size: 13px; color: var(--stone); }
.tvsala__g { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.tvsala__c { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 8px; border: 1px solid var(--rule); border-radius: 12px; background: var(--paper); color: inherit; text-decoration: none; transition: border-color 160ms ease, transform 140ms ease; }
.tvsala__c:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) { .tvsala__c:hover { border-color: var(--mist); } }
.tvsala__c img { flex: none; width: 76px; height: 76px; border-radius: 9px; object-fit: cover; }
.tvsala__c span { min-width: 0; display: flex; flex-direction: column; }
.tvsala__c b { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 15px; color: var(--charcoal); }
.tvsala__c small { font-size: 12px; color: var(--stone); }
.tvsala__c em { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--terra-dk); margin-top: 2px; }

.tvf__g { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.tvf__card { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px; border-radius: 12px; background: var(--paper); border: 1px solid var(--rule); }
.tvf__card[hidden] { display: none; }
.tvf__card img { width: 96px; height: 96px; object-fit: cover; border-radius: 9px; background: #111; }
.tvf__card h3 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 14.5px; line-height: 1.2; color: var(--charcoal); margin: 0 0 3px; }
.tvf__card p { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--graphite); }

.tvspec__t { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; table-layout: fixed; }
.tvspec__t th, .tvspec__t td { padding: 9px 12px; font-size: 12.5px; line-height: 1.4; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); overflow-wrap: anywhere; }
.tvspec__t tr:last-child th, .tvspec__t tr:last-child td { border-bottom: 0; }
.tvspec__t th { width: 38%; font-weight: 600; color: var(--stone); }
.tvspec__t td { color: var(--charcoal); }
.tvspec__src { margin: 8px 0 0; font-size: 10.5px; color: var(--mist); }
.tvp .footer { margin-top: 48px; }

/* Barra fija (móvil) */
.tvsticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(251,250,245,.97); border-top: 1px solid var(--rule); box-shadow: 0 -6px 20px rgba(26,26,27,.08); transform: translateY(110%); transition: transform 220ms ease; }
.tvsticky.on { transform: none; }
.tvsticky__i { min-width: 0; display: flex; flex-direction: column; font-size: 12px; color: var(--stone); }
.tvsticky__i b { font-size: 13px; color: var(--charcoal); }
.tvsticky__i span { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 16px; color: var(--charcoal); }
.tvsticky__btn { flex: none; padding: 12px 22px; border-radius: 999px; background: var(--terra); color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; }

@media (min-width: 900px) {
  .tvp__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: start; }
  .tvg { position: sticky; top: 84px; }
  .tvsala__g { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tvf__g { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tvsticky { display: none; }
}
@media (prefers-reduced-motion: reduce) { .tvs__opt, .tvsala__c, .tvsticky { transition: none; } }
