/* Alsina Commerce — ficha de producto. Mobile first. */
.ac-pdp-area { box-sizing: border-box; float: none !important; width: 100% !important; max-width: 1280px !important; margin-left: auto !important; margin-right: auto !important; padding: 0 16px !important; }
@media (min-width: 768px) { .ac-pdp-area { padding: 0 24px !important; } }
@media (min-width: 1280px) { .ac-pdp-area { padding: 0 32px !important; } }
.ac-pdp-page #secondary { display: none; }
.ac-pdp {
	--ac-primary: #663399;
	--ac-dark: #32055F;
	--ac-soft: #F3ECFA;
	--ac-line: #E8E2ED;
	max-width: 1240px;
	margin: 0 auto;
	padding: 12px 0 40px;
	font-family: Montserrat, Arial, sans-serif;
	color: #222;
}
.ac-pdp__crumbs { font-size: 12px; color: #888; margin: 0 0 12px; }
.ac-pdp__crumbs a { color: #888; text-decoration: none; }
.ac-pdp__crumbs a:hover { color: var(--ac-primary); }

/* Arriba: galería + resumen */
.ac-pdp__top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.ac-pdp .ac-pdp__gallery .woocommerce-product-gallery,
.woocommerce .ac-pdp div.product div.images,
.woocommerce .ac-pdp div.images { width: 100% !important; float: none !important; margin: 0 !important; }
.ac-pdp .ac-pdp__summary,
.woocommerce .ac-pdp div.summary { width: auto !important; float: none !important; margin: 0 !important; clear: none; }
.ac-pdp .woocommerce-product-gallery img { border-radius: 12px; }

.ac-pdp__brand { margin: 0 0 6px; }
.ac-pdp__brand a { display: inline-block; }
.ac-pdp__brand-logo { display: block; max-height: 44px; width: auto; }
.ac-pdp .product_title {
	margin: 0 0 12px;
	color: var(--ac-dark);
	font-size: 24px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -.01em;
}
.ac-pdp__noprice { margin: 8px 0 16px; padding: 12px 14px; border-radius: 12px; background: var(--ac-soft); color: var(--ac-dark); font-weight: 600; }

/* Compra */
.ac-pdp form.cart { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; margin: 16px 0 !important; }
.ac-pdp form.cart .quantity { margin: 0 !important; }
.ac-pdp form.cart .quantity .qty { height: 52px; min-width: 64px; border-radius: 12px; }
.ac-pdp form.cart .single_add_to_cart_button {
	flex: 1 1 200px;
	min-height: 52px;
	margin: 0 !important;
	border-radius: 12px !important;
	background: var(--ac-primary) !important;
	color: #fff !important;
	font-size: 16px !important;
	font-weight: 800 !important;
	letter-spacing: .01em;
}
.ac-pdp form.cart .single_add_to_cart_button:hover { background: var(--ac-dark) !important; }
.ac-pdp form.variations_form { display: block; }
.ac-pdp form.variations_form .single_variation_wrap .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 10px; }

/* Beneficios */
.ac-trust { list-style: none; margin: 16px 0; padding: 0; border: 1px solid var(--ac-line); border-radius: 12px; }
.ac-trust__item { margin: 0; border-top: 1px solid var(--ac-line); }
.ac-trust__item:first-child { border-top: 0; }
.ac-trust__item > a, .ac-trust__item > span { display: flex; gap: 12px; align-items: center; padding: 12px 14px; color: inherit; text-decoration: none; }
.ac-trust__item > a:hover strong { color: var(--ac-primary); }
.ac-trust__icon { flex: 0 0 auto; display: inline-flex; color: var(--ac-primary); }
.ac-trust__text { display: flex; flex-direction: column; font-size: 13px; line-height: 1.35; }
.ac-trust__text strong { color: var(--ac-dark); font-size: 14px; }
.ac-trust__text span { color: #777; }

/* Desplegables */
.ac-pdp-acc { margin: 8px 0; border: 1px solid var(--ac-line); border-radius: 12px; background: #fff; }
.ac-pdp-acc > summary { cursor: pointer; list-style: none; padding: 14px; font-weight: 700; color: var(--ac-dark); display: flex; justify-content: space-between; align-items: center; }
.ac-pdp-acc > summary::-webkit-details-marker { display: none; }
.ac-pdp-acc > summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--ac-primary); }
.ac-pdp-acc[open] > summary::after { content: "–"; }
.ac-pdp-acc__body { padding: 0 14px 14px; }

/* Cuerpo */
.ac-pdp__body { margin-top: 28px; }
.ac-pdp__top > .ac-pdp-section--specs { margin: 8px 0 0; }
.ac-pdp-section { margin: 0 0 32px; }
.ac-pdp-section__title { margin: 0 0 14px; color: var(--ac-dark); font-size: 20px; font-weight: 800; }
.ac-pdp-section--intro iframe { max-width: 100%; }
.ac-pdp-desc { max-width: 920px; font-size: 15px; line-height: 1.65; }
.ac-pdp-desc img, .ac-pdp-desc iframe, .ac-pdp-desc video { max-width: 100%; height: auto; }
.ac-pdp-desc h2, .ac-pdp-desc h3, .ac-pdp-desc h4 { color: var(--ac-dark); line-height: 1.3; }
.ac-pdp .related > h2, .ac-pdp .upsells > h2 { color: var(--ac-dark); font-size: 20px; font-weight: 800; }

/* Galería: puntos en celular, miniaturas a la izquierda en escritorio */
.ac-gallery-dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.ac-gallery-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #d8cfe3; cursor: pointer; }
.ac-gallery-dot.is-active { background: var(--ac-primary); transform: scale(1.25); }
@media (max-width: 767px) {
	.ac-pdp .woocommerce-product-gallery .flex-control-thumbs { display: none !important; }
}
@media (min-width: 768px) {
	.ac-gallery-dots { display: none; }
	.ac-pdp .woocommerce-product-gallery { display: flex !important; flex-direction: row-reverse; align-items: flex-start; }
	.ac-pdp .woocommerce-product-gallery .flex-viewport { width: calc(100% - 90px); }
	.ac-pdp .woocommerce-product-gallery .flex-control-thumbs {
		width: 75px; display: flex; flex-direction: column; gap: 8px; margin: 0 15px 0 0 !important; padding: 0 !important;
		max-height: 460px; overflow-y: auto; overflow-x: hidden; scrollbar-width: none;
	}
	.ac-pdp .woocommerce-product-gallery .flex-control-thumbs::-webkit-scrollbar { display: none; }
	.ac-pdp .woocommerce-product-gallery .flex-control-thumbs li { width: 100% !important; float: none !important; margin: 0 !important; flex-shrink: 0; }
	.ac-pdp .woocommerce-product-gallery .flex-control-thumbs img { border-radius: 8px; cursor: pointer; }
}
@media (min-width: 992px) {
	.ac-pdp { padding-top: 20px; }
	.ac-pdp__top {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
		grid-template-areas: "gallery summary" "specs summary";
		grid-template-rows: auto 1fr;
		column-gap: 48px;
		row-gap: 32px;
		align-items: start;
	}
	.ac-pdp__gallery { grid-area: gallery; }
	.ac-pdp__summary { grid-area: summary; }
	.ac-pdp__top > .ac-pdp-section--specs { grid-area: specs; margin: 0; }
	.ac-pdp__top > .ac-pdp-section--specs .ac-spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ac-pdp .product_title { font-size: 30px; }
	.ac-pdp__body { margin-top: 48px; }
	.ac-pdp-section__title { font-size: 24px; }
}

/* Videos: carga liviana (miniatura + play). En celular, uno debajo del otro. */
.ac-videos { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ac-video .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ac-video { width: 100%; }
.ac-video--short { width: 72%; max-width: 340px; }
.ac-video__link, .ac-video iframe {
	position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0;
	border-radius: 12px; overflow: hidden; background: #111;
}
.ac-video--short .ac-video__link, .ac-video--short iframe { aspect-ratio: 9 / 16; }
.ac-video__link img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0 !important; transition: transform .3s ease; }
.ac-video__link:hover img { transform: scale(1.03); }
.ac-video__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
@media (min-width: 768px) {
	.ac-videos { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px; }
	.ac-video { flex: 1 1 360px; max-width: 920px; width: auto; }
	.ac-video--short { flex: 0 0 280px; width: auto; }
}
.ac-videos--inline { margin: 16px auto; max-width: 720px; }

/* ===== Ficha de producto: precios compactos en escritorio (0.11.0) + compra fija en celular ===== */

@media (min-width: 1025px) {
	/* Separación entre cajas */
	.ac-pdp .ac-price { gap: 8px; }

	/* Precio por transferencia: precio y % OFF en la misma línea */
	.ac-pdp .ac-hero { flex-flow: row wrap; justify-content: center; align-items: center; column-gap: 12px; row-gap: 4px; padding: 14px 16px; }
	.ac-pdp .ac-hero__amount { order: 1; font-size: 2.25em; }
	.ac-pdp .ac-hero .ac-pill { order: 2; padding: 6px 12px; font-size: .75em; }
	.ac-pdp .ac-hero .ac-pill b { font-size: 1.3em; }
	.ac-pdp .ac-hero__save,
	.ac-pdp .ac-hero__label { order: 3; flex: 0 0 100%; }
	.ac-pdp .ac-hero__save { font-size: .85em; }
	.ac-pdp .ac-hero__label { font-size: .85em; }

	/* Cuotas: título y logos en una línea; "Ver más cuotas" y CFT/TEA en una línea */
	.ac-pdp .ac-inst { flex-flow: row wrap; justify-content: center; align-items: baseline; }
	.ac-pdp .ac-inst__head { flex: 0 0 100%; flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; padding: 10px 14px; }
	.ac-pdp .ac-inst__title { font-size: .95em; }
	.ac-pdp .ac-inst__body { flex: 0 0 calc(100% - 28px); margin: 0 14px; padding: 10px 0 6px; border-bottom: 1px solid var(--ac-border); }
	.ac-pdp .ac-inst__of { font-size: .82em; }
	.ac-pdp .ac-inst__amount { font-size: 1.9em; }
	.ac-pdp .ac-inst--hero .ac-inst__amount { font-size: 2.25em; }
	.ac-pdp .ac-inst__more { margin: 0; padding: 7px 7px 9px; border-top: 0; }
	.ac-pdp .ac-inst__more summary { font-size: .78em; }
	.ac-pdp .ac-inst__more[open] { flex: 0 0 calc(100% - 28px); }
	.ac-pdp .ac-inst__note { order: 2; padding: 7px 7px 9px; font-size: .72em; }

	/* Envío gratis: más bajo */
	.ac-pdp .ac-ship { min-height: 46px; }
	.ac-pdp .ac-ship__tag { flex-basis: 30%; padding: 6px 8px; font-size: .78em; }
	.ac-pdp .ac-ship__text { padding: 8px 12px; font-size: .8em; line-height: 1.25; }

	/* Regalos (badges): uno al lado del otro y cada uno en una línea */
	.ac-pdp .ac-badge--raw { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px; }
	.ac-pdp .ac-badge--raw .ecoalsina-promo-pmt { margin-top: 0 !important; }
	.ac-pdp .ac-badge--raw .ecoalsina-promo-pmt > span { padding: 5px 10px !important; font-size: 12.5px !important; }
	.ac-pdp .ac-badge--raw .ecoalsina-promo-pmt img { height: 26px !important; }
	.ac-pdp .ac-badge--raw .ecoalsina-promo-pmt br { display: none; }

	/* Precio de lista y sin impuestos en una línea */
	.ac-pdp .ac-lines { flex-flow: row wrap; justify-content: center; column-gap: 6px; }
	.ac-pdp .ac-line--list + .ac-line--net::before { content: "· "; }

	/* Botón */
	.ac-pdp form.cart { margin: 10px 0 !important; }
	.ac-pdp form.cart .quantity .qty { height: 50px; }
	.ac-pdp form.cart .single_add_to_cart_button { min-height: 50px; }
}

/* Celular: cantidad + Comprar fijos abajo (en variables, el botón se habilita al elegir la variación) */
@media (max-width: 767px) {
	.ac-pdp form.cart:not(.variations_form),
	.ac-pdp form.variations_form .woocommerce-variation-add-to-cart {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 998;
		display: flex; flex-wrap: nowrap; gap: 8px;
		margin: 0 !important; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
		background: #fff; box-shadow: 0 -6px 18px rgba(50, 5, 95, .12);
	}
	.ac-pdp form.cart .quantity { flex: 0 0 auto; }
	.ac-pdp form.cart .quantity .qty { height: 48px; min-width: 58px; }
	.ac-pdp form.cart .single_add_to_cart_button { flex: 1 1 auto; min-height: 48px; }
	body:has(.ac-pdp form.cart) { padding-bottom: 76px; }
	body:has(.ac-pdp form.cart) #ac-sticky { display: none !important; }
}

/* Beneficios debajo del botón: 3 cards en una línea (tablet y escritorio) */
@media (min-width: 768px) {
	.ac-pdp .ac-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; border: 0; border-radius: 0; }
	.ac-pdp .ac-trust__item,
	.ac-pdp .ac-trust__item:first-child { border: 1px solid var(--ac-line); border-radius: 12px; background: #fff; }
	.ac-pdp .ac-trust__item > a,
	.ac-pdp .ac-trust__item > span { height: 100%; box-sizing: border-box; gap: 10px; align-items: flex-start; padding: 10px 12px; }
	.ac-pdp .ac-trust__icon { margin-top: 2px; }
	.ac-pdp .ac-trust__text { font-size: 12px; }
	.ac-pdp .ac-trust__text strong { font-size: 13px; }
}
