/* La PCteria – estilos del plugin. Usan el color del texto del tema para verse bien en fondo claro u oscuro. */
:root { --lpc-rojo: #c8102e; --lpc-borde: rgba(127,127,127,.28); --lpc-suave: rgba(127,127,127,.08); }

/* ---------- Vista cuadrícula / lista ---------- */
.lpc-vistas-fila { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.lpc-vistas-bar { display: flex; align-items: center; gap: 6px; margin: 0 0 14px auto; justify-content: flex-end; }
.lpc-vistas-txt { font-size: .85em; opacity: .7; margin-right: 2px; }
.lpc-vbtn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--lpc-borde); border-radius: 8px; background: transparent; color: inherit; cursor: pointer; }
.lpc-vbtn svg { fill: currentColor; }
.lpc-vbtn:hover { border-color: var(--lpc-rojo); }
.lpc-vbtn.is-on { background: var(--lpc-rojo); border-color: var(--lpc-rojo); color: #fff; }
.lpc-vbtn:focus-visible { outline: 2px solid var(--lpc-rojo); outline-offset: 2px; }

/* Lista: productos de bloques */
.wc-block-product-template.lpc-lista { display: flex !important; flex-direction: column; gap: 12px !important; grid-template-columns: 1fr !important; }
.wc-block-product-template.lpc-lista > li { width: 100% !important; max-width: none !important; margin: 0 !important; display: grid !important; grid-template-columns: 130px 1fr auto; column-gap: 20px; align-items: center; text-align: left !important; padding: 12px; border: 1px solid var(--lpc-borde); border-radius: 10px; }
.wc-block-product-template.lpc-lista > li > * { grid-column: 2; margin: 2px 0 !important; text-align: left !important; justify-content: flex-start !important; align-items: flex-start !important; }
.wc-block-product-template.lpc-lista > li > .wc-block-components-product-image,
.wc-block-product-template.lpc-lista > li > .wp-block-woocommerce-product-image { grid-column: 1; grid-row: 1 / span 6; margin: 0 !important; width: 130px !important; }
.wc-block-product-template.lpc-lista > li > .wp-block-button,
.wc-block-product-template.lpc-lista > li > .wc-block-components-product-button,
.wc-block-product-template.lpc-lista > li > .wp-block-woocommerce-product-button { grid-column: 3; grid-row: 1 / span 6; align-self: center; align-items: center !important; }

/* Lista: productos clásicos */
ul.products.lpc-lista { display: flex !important; flex-direction: column; gap: 12px; }
ul.products.lpc-lista::before, ul.products.lpc-lista::after { display: none !important; }
ul.products.lpc-lista li.product { width: 100% !important; float: none !important; margin: 0 !important; display: flex; align-items: center; gap: 20px; padding: 12px; border: 1px solid var(--lpc-borde); border-radius: 10px; text-align: left; }
ul.products.lpc-lista li.product a.woocommerce-LoopProduct-link { display: flex; align-items: center; gap: 20px; flex: 1; }
ul.products.lpc-lista li.product img { width: 130px !important; margin: 0 !important; }

/* Lista: cualquier bloque con la clase lpc-vistas */
.lpc-vistas.lpc-lista { display: flex !important; flex-direction: column !important; gap: 12px !important; }
.lpc-vistas.lpc-lista > * { width: 100% !important; max-width: none !important; flex-basis: auto !important; }

@media (max-width: 640px) {
	.wc-block-product-template.lpc-lista > li { grid-template-columns: 90px 1fr; }
	.wc-block-product-template.lpc-lista > li > .wc-block-components-product-image,
	.wc-block-product-template.lpc-lista > li > .wp-block-woocommerce-product-image { width: 90px !important; }
	.wc-block-product-template.lpc-lista > li > .wp-block-button,
	.wc-block-product-template.lpc-lista > li > .wc-block-components-product-button,
	.wc-block-product-template.lpc-lista > li > .wp-block-woocommerce-product-button { grid-column: 2; grid-row: auto; }
	ul.products.lpc-lista li.product, ul.products.lpc-lista li.product a.woocommerce-LoopProduct-link { gap: 12px; }
	ul.products.lpc-lista li.product img { width: 90px !important; }
}

/* ---------- Filtros ---------- */
.lpc-filtros { display: flex; flex-direction: column; gap: 4px; font-size: .95em; }
.lpc-f { border-bottom: 1px solid var(--lpc-borde); padding: 8px 0; }
.lpc-f > summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.lpc-f > summary::-webkit-details-marker { display: none; }
.lpc-f > summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s; opacity: .6; }
.lpc-f[open] > summary::after { transform: rotate(-135deg); }
.lpc-f-num { background: var(--lpc-rojo); color: #fff; border-radius: 99px; font-size: .75em; padding: 1px 7px; }
.lpc-f-lista { list-style: none; margin: 4px 0 0; padding: 0; }
.lpc-f-op { display: flex; align-items: center; gap: 8px; padding: 4px 2px; color: inherit; text-decoration: none !important; border-radius: 6px; }
.lpc-f-op:hover { background: var(--lpc-suave); }
.lpc-f-check { flex: none; width: 16px; height: 16px; border: 1.5px solid currentColor; border-radius: 4px; opacity: .55; position: relative; }
.lpc-f-op.is-on .lpc-f-check { background: var(--lpc-rojo); border-color: var(--lpc-rojo); opacity: 1; }
.lpc-f-op.is-on .lpc-f-check::after { content: ""; position: absolute; left: 4.5px; top: 1px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.lpc-f-txt { flex: 1; }
.lpc-f-n { font-size: .8em; opacity: .6; }
.lpc-f-mas > summary { cursor: pointer; color: var(--lpc-rojo); font-size: .9em; padding: 4px 2px; }
.lpc-f-activos { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 8px; border-bottom: 1px solid var(--lpc-borde); }
.lpc-chip { display: inline-flex; gap: 6px; align-items: center; background: var(--lpc-rojo); color: #fff !important; border-radius: 99px; padding: 3px 10px; font-size: .85em; text-decoration: none !important; }
.lpc-f-limpiar { font-size: .85em; align-self: center; color: inherit; opacity: .75; }

/* ---------- Menú de categorías ---------- */
.lpc-catmenu ul { list-style: none; margin: 0; padding: 0; }
.lpc-catmenu > ul > li { border-bottom: 1px solid var(--lpc-borde); }
.lpc-catmenu a, .lpc-catmenu summary { display: block; padding: 7px 4px; color: inherit; text-decoration: none; cursor: pointer; }
.lpc-catmenu summary { list-style: none; display: flex; align-items: center; font-weight: 600; }
.lpc-catmenu summary::-webkit-details-marker { display: none; }
.lpc-catmenu summary::after { content: ""; margin-left: auto; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: .6; transition: transform .15s; }
.lpc-catmenu details[open] > summary::after { transform: rotate(-135deg); }
.lpc-catmenu details ul { padding-left: 12px; margin-bottom: 6px; }
.lpc-catmenu details ul a { font-size: .93em; padding: 5px 4px; }
.lpc-catmenu a:hover, .lpc-catmenu a.is-actual { color: var(--lpc-rojo); }

/* ---------- Destacados en portada ---------- */
.lpc-dest { max-width: 1200px; margin: 0 auto 48px; padding: 0 16px; color: #fff; }
.lpc-dest__tit { text-align: center; margin: 0 0 20px; color: #fff; }
.lpc-dest__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.lpc-dest__item { background: #141414; border: 1px solid #2a2a2a; border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 8px; transition: border-color .15s, transform .15s; }
.lpc-dest__item:hover { border-color: var(--lpc-rojo); transform: translateY(-2px); }
.lpc-dest__img { position: relative; display: block; background: #fff; border-radius: 8px; overflow: hidden; aspect-ratio: 1; }
.lpc-dest__img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.lpc-dest__oferta { position: absolute; top: 8px; left: 8px; background: var(--lpc-rojo); color: #fff; font-size: .75em; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.lpc-dest__nom { font-size: .95em; margin: 0; line-height: 1.3; }
.lpc-dest__nom a { color: #fff; text-decoration: none; }
.lpc-dest__precio { font-weight: 700; color: #fff; }
.lpc-dest__precio del { opacity: .55; font-weight: 400; }
.lpc-dest__precio small { display: block; font-weight: 400; opacity: .6; font-size: .7em; }
.lpc-dest__btn { margin-top: auto; text-align: center; background: var(--lpc-rojo); color: #fff !important; border-radius: 8px; padding: 9px 12px; font-weight: 600; text-decoration: none !important; }
.lpc-dest__btn:hover { background: #a50d26; }
.lpc-dest__mas { text-align: center; margin: 20px 0 0; }
.lpc-dest__mas a { color: #fff; }
@media (max-width: 900px) { .lpc-dest__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Página Servicios ---------- */
.lpc-serv { gap: 16px; }
.lpc-serv-card { border: 1px solid var(--lpc-borde); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; }
.lpc-serv-card .wp-block-buttons { margin-top: auto; }

/* ---------- Pie: enlaces legales ---------- */
.lpc-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; padding: 14px 16px; font-size: .85em; opacity: .85; }
.lpc-legal a { color: inherit; }
.lpc-pendiente { background: #fff3cd; color: #7a5b00; padding: 0 4px; border-radius: 3px; }
.wc-block-product-template.lpc-lista > li .wc-block-components-product-price,
.wc-block-product-template.lpc-lista > li .wp-block-woocommerce-product-price { text-align: left !important; justify-content: flex-start !important; }

/* ---------- Página YouTube ---------- */
.lpc-yt { --yt-rojo: #c8102e; }
.lpc-yt-pronto { text-align: center; max-width: 640px; margin: 40px auto; padding: 40px 24px; border: 1px solid var(--lpc-borde); border-radius: 16px; }
.lpc-yt-logo { display: inline-block; width: 72px; height: 50px; border-radius: 14px; background: var(--yt-rojo); position: relative; margin-bottom: 12px; }
.lpc-yt-logo::after { content: ""; position: absolute; left: 29px; top: 14px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; }
.lpc-yt-cab { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border: 1px solid var(--lpc-borde); border-radius: 14px; margin-bottom: 32px; }
.lpc-yt-cab h2 { margin: 0 0 4px; }
.lpc-yt-cab p { margin: 0; opacity: .75; }
.lpc-yt-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.lpc-yt-sub, .lpc-yt-ver { padding: 10px 18px; border-radius: 99px; font-weight: 700; text-decoration: none !important; }
.lpc-yt-sub { background: var(--yt-rojo); color: #fff !important; }
.lpc-yt-ver { border: 1px solid var(--lpc-borde); color: inherit !important; }
.lpc-yt-sec { margin: 0 0 40px; }
.lpc-yt-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.lpc-yt-destacado { grid-template-columns: 1fr; max-width: 900px; }
.lpc-yt-play, .lpc-yt-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; overflow: hidden; background: #000; padding: 0; cursor: pointer; position: relative; }
.lpc-yt-play img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.lpc-yt-play:hover img { transform: scale(1.03); }
.lpc-yt-icono { position: absolute; left: 50%; top: 50%; width: 64px; height: 44px; margin: -22px 0 0 -32px; background: var(--yt-rojo); border-radius: 12px; }
.lpc-yt-icono::after { content: ""; position: absolute; left: 26px; top: 12px; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent #fff; }
.lpc-yt-num { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.8); color: #fff; font-size: .8em; padding: 2px 8px; border-radius: 6px; }
.lpc-yt-tit { font-size: 1em; margin: 10px 0 0; line-height: 1.3; }
.lpc-yt-mas, .lpc-yt-vacio { margin-top: 16px; }
