/*
Theme Name: Televisores Top
Version: 0.6.2
Description: Inicio, catálogo, fichas y medios M3; preview editorial M1 conservada.
Requires PHP: 8.2
*/
/* Base visual 1.0.3 en assets/ui-approved.css; adaptación de formularios GET. */
body[data-page=home]:not(:has(.lab-notice)) .site-header:not(.is-docked){top:0}
.product-card h3{overflow-wrap:anywhere}.card-fallback{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;background:var(--soft);color:var(--muted);padding:24px;text-align:center}.card-fallback>.icon{width:90px;height:70px;stroke-width:.5}.card-fallback>span{font-size:.875rem}.card-actions{min-height:44px}.filter-actions{display:flex;flex-direction:column;align-items:flex-start;gap:8px}.filters-panel{align-self:start}.filters-panel .field{margin-bottom:24px}.field>select{width:100%;min-height:48px;background:var(--white);border:1px solid var(--control);border-radius:8px;color:var(--ink);padding:11px 34px 11px 13px;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317191c'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-position:right 10px center;background-repeat:no-repeat;background-size:18px}.active-filters a{text-decoration:none}.active-filters:empty{display:none}.catalog-content{min-width:0}.results-top{gap:16px}.results-top>.field{min-width:230px}.search-form{width:100%}.product-power-toggle{position:absolute;right:calc(var(--product-screen-right-gap) - 20px);top:var(--product-power-top);transform:translateY(-50%);z-index:2;display:flex;align-items:center;gap:8px;width:max-content;max-width:calc(100% - 32px);min-height:44px;border:0;padding:0;background:transparent;color:var(--ink);font-size:.6875rem;font-weight:500;line-height:1.4;cursor:pointer}.product-power-dot>.icon{width:14px;height:14px}.product-power-toggle:is(:hover,:focus-visible) .product-power-dot{background:var(--yellow);border-color:var(--yellow)}.product-power-toggle [data-power-label]{background:var(--color-hotspot-label);padding:8px 11px;border-radius:22px;white-space:nowrap}.product-hotspot-dot{display:grid;place-items:center;width:25px;height:25px;flex:none;border:1px solid var(--color-detail-c4c3bc);border-radius:50%;background:var(--color-hotspot-dot);color:var(--ink);transition:background-color var(--duration-200)}
#catalog-feedback{padding:20px;background:var(--soft);border-radius:10px;margin-top:24px}#catalog-feedback button{margin-left:16px}#catalog-results[aria-busy=true]{opacity:.55}.lab-notice{min-height:30px;height:auto;padding:4px 12px;text-align:center}.pagination{flex-wrap:wrap}.pagination>.text-link{font-size:.875rem;margin-inline:8px}.site-footer nav{flex-wrap:wrap}.hero-figure{margin-inline:auto}.site-header .primary-nav{gap:1.6rem}.catalog-section form{min-width:0}body[data-page=catalog] .site-header{position:relative}.side-dialog nav{display:flex;flex-direction:column;gap:18px}.catalog-content .empty-state{padding-inline:24px}.active-filters{flex-wrap:wrap}.pill{max-width:100%;overflow-wrap:anywhere}.results-top .select-field{align-items:center}
@media(max-width:1000px){.catalog-layout{display:grid;grid-template-columns:minmax(0,1fr)}.filters-panel{display:block!important;position:static!important;border:1px solid var(--line);border-radius:10px;padding:24px}.filters-panel h2{font-size:1.125rem}.filter-actions{flex-direction:row;flex-wrap:wrap;align-items:center}.catalog-layout{gap:32px}}
@media(max-width:700px){.results-top>.field{min-width:0}.hero-figure{width:92vw}.product-power-toggle{font-size:.625rem;right:3%;gap:5px}.hero-features{gap:16px}.lab-notice{font-size:.625rem}.search-form{display:flex;min-width:0}.search-form input{min-width:0;width:100%}.search-form>.icon{width:18px}.filters-panel{padding:20px}.pagination{gap:10px}.site-footer nav{grid-template-columns:1fr 1fr}.results-top .custom-select{width:100%}.results-top>.field{display:block}.results-top .select-label{margin-bottom:8px!important}}
@media(prefers-reduced-motion:reduce){#catalog-results{transition:none}.hero-tv-stage .hero-tv,.hero-tv-off{transition:none!important}}
#filter-dialog .filters-panel{border:0;padding:0}#filter-dialog .filters-panel>h2{display:none}#filter-dialog .filter-actions{display:flex;flex-direction:column;align-items:stretch}#filter-dialog .filter-actions .button{width:100%}#filter-dialog .select-options{z-index:90}#filter-dialog{overflow:visible}#filter-dialog .filters-panel{max-height:calc(100dvh - 140px);overflow-y:auto;padding-inline:3px}#filter-dialog .custom-select{position:static}#filter-dialog .dialog-header{margin-bottom:24px}
/* M3: data and permission-aware media slots use the approved product composition. */
body[data-page=detail] .product-showcase h1,body[data-page=detail] .product-summary-title{overflow-wrap:anywhere}.spec-list>div{align-items:start}.spec-list dd{max-width:60%;min-width:0}.spec-citations small{display:block;font-size:.75rem;line-height:1.6;color:var(--muted);margin-top:8px;overflow-wrap:anywhere}.spec-citations .text-link{max-width:100%;white-space:normal}.gallery-main figure{margin:0}.gallery-main img{width:100%;height:auto;max-height:620px;object-fit:contain}.gallery-main figcaption{padding:12px 16px;color:var(--muted);background:var(--soft);font-size:.75rem}.gallery-thumbs button[aria-pressed=true]{background:var(--yellow);border-color:var(--yellow)}.media-placeholder{min-height:360px;border-radius:10px}.media-placeholder p{max-width:420px;color:var(--muted);font-size:.9375rem}.image-unavailable{display:grid;place-items:center;min-height:160px;background:var(--soft);color:var(--muted);padding:24px;font-size:.875rem}.product-close-crop .image-unavailable{height:100%}.product-front-display>.image-unavailable{position:absolute;inset:0}.product-detail .notice{font-size:.875rem}.related-note dd{margin:6px 0 18px}.product-gallery{min-width:0}.product-front-caption{flex-wrap:wrap}.layer-notes details{background:var(--white);padding:16px;border-radius:8px}.product-layer-option{justify-content:center}#datos,#especificaciones{scroll-margin-top:30px}
@media(max-width:700px){.spec-list>div{display:block}.spec-list dd{max-width:100%;text-align:left;margin-top:12px}.product-showcase-caption{overflow-wrap:anywhere}.product-hotspot.hotspot-panel{left:36%}.product-hotspot.hotspot-ports{left:12%}.product-showcase-info .eyebrow{overflow-wrap:anywhere}.product-showcase .product-power-toggle{right:calc(var(--product-screen-right-gap) - var(--product-power-overhang));font-size:.625rem}.gallery-main img{max-height:420px}.media-placeholder{min-height:260px}}
body[data-page=detail] .related-note h2{font-size:1.5rem;line-height:1.2}.spec-citations small{font-family:var(--font-sans)}
.media-credits{padding-block:24px}.media-credits li{overflow-wrap:anywhere;font-size:.8125rem;color:var(--muted);margin-block:8px}

/* M6: stable editorial CTA, separate from specifications and image rights. */
.commercial-link{margin-top:24px;display:grid;gap:12px;justify-items:start}
.commercial-link .button{max-width:100%}
.commercial-link p{margin:0;line-height:1.5}
.commercial-link .affiliate-disclosure{font-size:12px;color:var(--text-muted,#555962)}
.commercial-link .field-help{font-size:12px}
.product-card .commercial-link{margin-top:22px;padding-top:0}
.product-grid:has(>.product-card:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:640px){.product-grid:has(>.product-card:nth-child(2):last-child){grid-template-columns:1fr}}
