/* Ficha de producto (single-producto.php). */

.producto { padding-block: 4rem; }

.producto__titulo {
	margin: 0;
	color: #000;
	font-size: 30px;
	font-weight: 700;
	line-height: 36px;
	text-transform: uppercase;
}

/* Maqueta móvil: título, carrusel de imágenes, descripción y compra */
.producto__movil {
	display: flex;
	flex-direction: column;
}

.producto__movil > * + * { margin-top: 2rem; }
.producto__cabecera-movil > * + * { margin-top: 1rem; }

.producto__titular-movil {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	padding-bottom: 1rem;
}

.producto__diapositiva {
	position: relative;
	width: 100%;
	margin-bottom: 2.5rem;
	aspect-ratio: 1 / 1;
}

.producto__diapositiva img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.producto__carrusel .swiper-pagination-bullets {
	display: flex;
	justify-content: center;
	column-gap: 10px;
	bottom: 0 !important;
}

.producto__carrusel .swiper-pagination-bullet {
	width: 16px;
	height: 16px;
	border: 1px solid #000;
	background-color: transparent;
}

.producto__carrusel .swiper-pagination-bullet-active { background-color: #000; }

/* Botón «Comprar» e información desplegable */
.producto__compra {
	padding-block: 1.25rem;
	color: #000;
}

.producto__compra > * + *,
.producto__informacion > * + * { margin-top: 1.25rem; }

.producto__comprar {
	display: block;
	width: 100%;
	padding: 0.5rem;
	border: 2px solid #000;
	background-color: #000;
	color: #fff;
	font: inherit;
	font-size: 1rem;
	line-height: 1.5rem;
	text-align: center;
	text-transform: uppercase;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.producto__comprar:hover {
	background-color: transparent;
	color: #000;
}

.producto__pregunta {
	display: flex;
	margin: 0;
	font: inherit;
}

.producto__abrir {
	display: flex;
	flex: 1 1 0%;
	justify-content: space-between;
	align-items: center;
	padding: 1rem;
	border: 0;
	background-color: #fff;
	color: inherit;
	font: inherit;
	font-weight: 500;
	text-align: left;
	text-transform: uppercase;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.producto__abrir:hover { background-color: #e5e7eb; }

.producto__chevron {
	flex-shrink: 0;
	width: 1rem;
	height: 1rem;
	transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.producto__abrir[aria-expanded="true"] .producto__chevron { transform: rotate(180deg); }

/* Cerrado con max-height 0 para poder animar la apertura (producto.js) */
.producto__respuesta {
	max-height: 0;
	overflow: hidden;
	padding-inline: 1rem;
	background-color: #fff;
	font-size: 0.875rem;
	line-height: 1.25rem;
	text-align: left;
	transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.producto__respuesta-texto {
	padding-block: 1rem;
	border-top: 1px solid #000;
	background-color: #fff;
}

.producto__respuesta-texto p { margin-bottom: 10px; }

/* Maqueta de escritorio: miniaturas, imagen principal y datos */
.producto__escritorio { display: none; }
.producto__escritorio > * + * { margin-top: 1.25rem; }

.producto__columnas {
	display: flex;
	column-gap: 2.5rem;
}

.producto__galeria { width: 58.333333%; }

/* Fila aparte (no estirada a la altura de la columna de datos): la imagen principal toma la altura de las miniaturas */
.producto__galeria-fila {
	display: flex;
	column-gap: 0.5rem;
}

.producto__miniaturas {
	display: flex;
	flex-direction: column;
	row-gap: 1.25rem;
	width: 25%;
}

.producto__miniatura {
	position: relative;
	overflow: hidden;
	padding: 0;
	border: 1px solid transparent;
	background: none;
	aspect-ratio: 1 / 1;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.producto__miniatura:hover {
	border-color: #d1d5db;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.producto__miniatura img,
.producto__imagen-principal {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.producto__principal {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	aspect-ratio: 1 / 1;
}

.producto__ampliar {
	position: relative;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.producto__imagen-principal {
	object-fit: contain;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.producto__imagen-principal:hover { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); }

.producto__info { width: 41.666667%; }

.producto__presentacion {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	row-gap: 2.5rem;
	padding-bottom: 2.5rem;
	color: #000;
}

.producto__marcas {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	row-gap: 2.5rem;
}

.producto__descripcion { margin-block: 2.5rem; }
/* Móvil: 2rem encima y debajo de la descripción (la compra ya tiene 1.25rem de relleno) */
.producto__movil > .producto__descripcion { margin-block: 2rem 0; }
.producto__movil > .producto__descripcion + .producto__compra { margin-top: 0.75rem; }

/* Visor de la imagen principal ampliada (lo crea producto.js) */
.visor {
	position: fixed;
	inset: 0;
	z-index: 50;
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: rgba(0, 0, 0, 0.6);
}

.visor__caja {
	position: relative;
	width: 91.666667%;
	height: 75%;
	padding: 1rem;
	border-radius: 0.25rem;
	background-color: #fff;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.visor__imagen {
	display: block;
	width: 100%;
	height: 100%;
	margin-inline: auto;
	object-fit: contain;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.visor button {
	position: absolute;
	padding: 0.5rem;
	border: 0;
	background: none;
	cursor: pointer;
}

.visor img:not(.visor__imagen) { display: block; width: 1rem; }
.visor__cerrar { top: 1.25rem; right: 1.25rem; padding: 0 !important; }
.visor__anterior { top: 50%; left: 1.25rem; transform: translateY(-50%) rotate(180deg); }
.visor__siguiente { top: 50%; right: 1.25rem; transform: translateY(-50%); }

/* Banner de la marca (parciales/banner-marca.php) */
.banner-marca {
	padding: 3.5rem 0 2.5rem;
	background-color: var(--color-marca);
}

.banner-marca__interior {
	display: flex;
	flex-direction: column;
}

.banner-marca__titular {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.banner-marca__titulo {
	margin: 0;
	color: #f7f7f7;
	font-size: 30px;
	font-weight: 700;
	line-height: 36px;
	text-transform: uppercase;
}

.banner-marca__icono { display: block; width: 4rem; height: auto; }

.banner-marca__tarjeta {
	display: flex;
	flex-direction: column;
	width: 100%;
	padding-block: 2.5rem;
}

.banner-marca__imagen {
	width: 100%;
	padding-block: 8rem;
	background-position: center;
	background-size: cover;
}

.banner-marca__texto {
	display: flex;
	flex-direction: column;
	row-gap: 1.25rem;
	padding: 2rem;
	background-color: #fff;
	color: #000;
}

.banner-marca__subtitulo {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	text-transform: uppercase;
}

.banner-marca__parrafo {
	margin: 0;
	font-size: 12px;
	font-weight: 400;
	line-height: 17.8px;
}

.banner-marca__boton {
	width: fit-content;
	padding: 0.25rem 1rem;
	border: 1px solid var(--color-marca);
	background-color: var(--color-marca);
	color: #fff;
	font-size: 10px;
	font-weight: 400;
	text-decoration: none;
	text-transform: uppercase;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Productos relacionados y «Conocé más» */
.producto__secciones > * + * { margin-top: 3.5rem; }

.conoce-mas {
	padding-top: 2.5rem;
	padding-bottom: calc(2.5rem + 1.5em);
	border-top: 1px solid #000;
}

.conoce-mas > * + * { margin-top: 2.5rem; }

.conoce-mas__tarjeta {
	display: flex;
	background-color: #fff;
	color: inherit;
	text-decoration: none;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.conoce-mas__tarjeta:hover { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }

.conoce-mas__imagen {
	width: 33.333333%;
	background-position: center;
	background-size: cover;
}

.conoce-mas__texto {
	display: flex;
	flex-direction: column;
	justify-content: center;
	row-gap: 1rem;
	width: 66.666667%;
	padding: 0.75rem 1rem;
}

.conoce-mas__titular {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.conoce-mas__titulo {
	width: 83.333333%;
	margin: 0;
	color: #000;
	font-size: 14px;
	font-weight: 500;
	line-height: 16px;
	text-transform: uppercase;
}

.conoce-mas__flecha { display: block; width: 0.5rem; height: auto; }

.conoce-mas__parrafo {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	color: #000;
	font-size: 12px;
	font-weight: 400;
	line-height: 17.8px;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.conoce-mas__swiper { padding-top: 2.5rem; }

/* Flechas dentro del carrusel, como en la plantilla original (quedan recortadas) */
.conoce-mas__nav {
	position: absolute;
	top: -1.5rem;
	right: 0;
	left: 0;
	display: flex;
	column-gap: 1rem;
}

/* Popup «Comprar»: imagen enlazada o lista de distribuidores */
.popup-comprar {
	position: fixed;
	inset: 0;
	z-index: 50;
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: rgba(0, 0, 0, 0.5);
}

.popup-comprar[hidden] { display: none; }

.popup-comprar__caja {
	position: relative;
	background-color: #fff;
}

.popup-comprar__caja--imagen {
	width: 91.666667%;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.popup-comprar__caja--distribuidores {
	overflow-y: auto;
	width: 100%;
	height: 100%;
}

.popup-comprar__cerrar {
	position: absolute;
	top: 1rem;
	right: 1rem;
	z-index: 10;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.popup-comprar__cerrar img { display: block; }
.popup-comprar__imagen { display: block; width: 100%; height: 100%; }

.popup-comprar__seccion {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 1rem;
	background-color: #f7f7f7;
}

.popup-comprar__seccion--lista { min-height: 100vh; }

.popup-comprar__titulo {
	margin: 1.5rem 0;
	color: #000;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 2rem;
	text-transform: uppercase;
}

@media (min-width: 768px) {
	.producto { padding-block: 3.5rem; }
	.producto__diapositiva { width: 50%; margin-inline: auto; }
	.banner-marca { padding-block: 2.5rem; }
	.conoce-mas__imagen { padding-block: 5rem; }
}

@media (min-width: 1024px) {
	.producto { padding-block: 6rem; }
	.producto__movil { display: none; }
	.producto__escritorio { display: block; }
	.producto__compra { padding-block: 0; }
	.visor__caja,
	.popup-comprar__caja--imagen { width: 50%; }
	.popup-comprar__seccion { padding: 2rem; }
	.banner-marca__interior {
		flex-direction: row;
		justify-content: space-between;
		column-gap: 5rem;
	}
	.banner-marca__titular {
		flex-direction: column-reverse;
		justify-content: center;
		align-items: flex-start;
		row-gap: 2.5rem;
	}
	.banner-marca__icono { width: 5rem; }
	.banner-marca__tarjeta { flex-direction: row; }
	.banner-marca__texto { justify-content: center; }
	.banner-marca__boton { font-size: 14px; }
	.conoce-mas__imagen,
	.conoce-mas__texto { width: 50%; }
	.conoce-mas__texto { padding-block: 0; }
	.conoce-mas__swiper { padding-top: 0; }
	.conoce-mas__nav { top: -8rem; left: auto; }
}

@media (min-width: 1280px) {
	.producto { padding-block: 8rem; }
	.producto__titulo { font-size: 45px; line-height: 54px; }
	.producto__comprar { font-size: 18px; }
	.producto__miniatura { width: 7rem; height: 7rem; }
	.producto__secciones > * + * { margin-top: 7rem; }
	.banner-marca__interior { column-gap: 12rem; }
	.banner-marca__titulo { font-size: 55px; line-height: 57px; }
	.banner-marca__subtitulo { font-size: 24px; line-height: 20px; }
	.banner-marca__parrafo { font-size: 17px; line-height: 26px; }
	.conoce-mas {
		padding-top: 6rem;
		padding-bottom: calc(5rem + 1.5em);
	}
	.conoce-mas > * + * { margin-top: 5rem; }
	.conoce-mas__imagen { padding-block: 7rem; }
	.conoce-mas__titulo { font-size: 24px; line-height: 25px; }
	.conoce-mas__flecha { width: 0.75rem; }
	.conoce-mas__parrafo { font-size: 16px; line-height: 20px; }
}

@media (min-width: 1540px) {
	.producto__miniatura { width: 8rem; height: 8rem; }
}
