/* Boreal · Magal · Boreal Studio · https://borealstudio.mx
   Sólo lo que theme.json no puede expresar: estilos de bloque, encabezado,
   pie, tallas y detalles de WooCommerce. */

/* ---------- Estilos de bloque ---------- */

/* Etiqueta: Oswald 12 px, mayúsculas, espaciada. */
.is-style-etiqueta {
	font-family: var(--wp--preset--font-family--label);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 400;
	font-style: normal;
	letter-spacing: .24em;
	line-height: 1.4;
	text-transform: uppercase;
}
.is-style-etiqueta:not(.has-text-color) { color: var(--wp--preset--color--muted); }
@media (max-width: 767px) { .is-style-etiqueta { font-size: 11px; } }

/* Enlace subrayado: «Comprar ALMA», «Conoce más». */
.is-style-enlace {
	font-family: var(--wp--preset--font-family--label);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 400;
	letter-spacing: .2em;
	line-height: 1.4;
	text-transform: uppercase;
}
.is-style-enlace a {
	display: inline-block;
	padding: 0 2px 5px;
	border-bottom: 1px solid currentColor;
	color: inherit;
	text-decoration: none;
	transition: opacity .2s;
}
.is-style-enlace a:hover { opacity: .7; text-decoration: none; }
.is-style-enlace:not(.has-text-color) { color: var(--wp--preset--color--primary); }

/* Grupo con línea arriba (columnas de «Hecha con las manos»). */
.wp-block-group.is-style-linea-superior {
	border-top: 1px solid var(--wp--preset--color--arena);
	padding-top: 20px;
}

/* Botón claro: papel con texto chocolate. */
.wp-block-button.is-style-claro .wp-block-button__link {
	background-color: var(--wp--preset--color--crema-clara);
	color: var(--wp--preset--color--contrast);
	padding: 18px 36px;
	font-size: 13px;
	letter-spacing: .22em;
}
.wp-block-button.is-style-claro .wp-block-button__link:hover,
.wp-block-button.is-style-claro .wp-block-button__link:focus {
	background-color: #fff;
	color: var(--wp--preset--color--contrast);
}
.wp-element-button:hover, .wp-block-button__link:hover { transform: none; }

/* Énfasis en cursiva de Bodoni dentro de títulos. */
h1 em, h2 em, h3 em, h4 em, .wp-block-heading em { font-style: italic; }

/* ---------- Secciones de la portada ---------- */

/* Columnas de ancho completo sin hueco (hero, historia). */
.wp-block-columns.is-magal-split { gap: 0; margin-block: 0; }
.wp-block-columns.is-magal-split > .wp-block-column { margin: 0; }
.wp-block-columns.is-magal-split .wp-block-cover { height: 100%; }
@media (max-width: 781px) {
	.wp-block-columns.is-magal-split .wp-block-cover { min-height: 70vh !important; }
}

/* Imágenes editoriales del lookbook (recorte fijo). */
.wp-block-image.is-magal-photo img { width: 100%; object-fit: cover; }
.wp-block-image.is-magal-photo a { display: block; overflow: hidden; }
.wp-block-image.is-magal-photo a img { transition: transform .8s ease; }
.wp-block-image.is-magal-photo a:hover img { transform: scale(1.03); }
@media (max-width: 781px) {
	.wp-block-image.is-magal-photo img { height: auto !important; aspect-ratio: 4 / 5; }
}

/* ---------- Barra de anuncio ---------- */

.magal-anuncio p {
	margin: 0;
	font-family: var(--wp--preset--font-family--label);
	font-size: 11px;
	font-weight: 400;
	letter-spacing: .22em;
	line-height: 16px;
	text-transform: uppercase;
}
@media (max-width: 599px) { .magal-anuncio p { letter-spacing: .18em; } }

/* ---------- Portada (diseño 2026-11) ---------- */

/* Hero */
.is-magal-hero .is-style-etiqueta { letter-spacing: .4em; }
.is-magal-hero h1 { font-size: 44px; }
.magal-hero-logo img { width: min(460px, 80%) !important; height: auto; }
.magal-hero-logo { width: 100%; }
.magal-hero-sub { font-size: 19px; margin-top: -6px; }
@media (max-width: 781px) {
	/* Foto a sangre con el texto encima, sobre un degradado. */
	.is-magal-hero { position: relative; }
	.is-magal-hero > .wp-block-column:first-child .wp-block-boreal-hero { min-height: 82svh !important; --bb-hero-min-h: 82svh; }
	.is-magal-hero > .wp-block-column:last-child {
		position: absolute; inset: auto 0 0 0; background: linear-gradient(to bottom, rgba(46,31,27,0), rgba(46,31,27,.66)) !important;
	}
	.is-magal-hero > .wp-block-column:last-child > .wp-block-group { min-height: 0 !important; padding: 120px 24px 48px !important; gap: 18px; }
	.is-magal-hero h1 { font-size: 30px; }
	.magal-hero-logo img { width: 250px !important; }
	.magal-hero-sub { font-size: 16px; }
}

/* Manifiesto */
.magal-manifiesto h2 { font-size: clamp(1.8125rem, 1rem + 3vw, 3.125rem); line-height: 1.15; }
.magal-manifiesto h2 em { color: var(--wp--preset--color--primary); }
.magal-manifiesto p:not(.is-style-etiqueta) { max-width: 720px; margin-inline: auto; font-size: clamp(1rem, .9rem + .4vw, 1.1875rem); }
.magal-manifiesto .is-style-etiqueta { letter-spacing: .3em; }

/* Encabezados de sección: en móvil la etiqueta va arriba del título. */
@media (max-width: 781px) {
	.is-magal-head { flex-direction: column-reverse; align-items: flex-start !important; gap: 8px; }
}

/* Diferenciadores */
.magal-diferenciadores .is-style-linea-superior { border-top-color: #C9B9A4; padding-top: 28px; gap: 16px; }
.magal-diferenciadores h3.is-style-etiqueta { font-size: 15px; letter-spacing: .18em; }
@media (max-width: 781px) {
	.magal-diferenciadores { row-gap: 32px !important; column-gap: 18px !important; }
	.magal-diferenciadores .is-style-linea-superior { border-top: 0; padding-top: 0; gap: 12px; }
	.magal-diferenciadores .wp-block-image img { width: 64px !important; height: 64px !important; }
	.magal-diferenciadores h3.is-style-etiqueta { font-size: 14px; letter-spacing: .14em; }
	.magal-diferenciadores p { font-size: 14px; line-height: 1.45; }
}

/* Banda */
@media (max-width: 781px) {
	.wp-block-boreal-marquee { font-size: 13px !important; }
}

/* Historia: en móvil primero el texto y luego la foto. */
@media (max-width: 781px) {
	.is-magal-historia > .wp-block-column:first-child { order: 2; }
	.is-magal-historia > .wp-block-column:first-child .wp-block-boreal-hero { min-height: 260px !important; --bb-hero-min-h: 260px; }
	.magal-historia-texto { min-height: 0 !important; padding: 64px 24px 40px !important; gap: 26px; }
	.magal-historia-texto h2 { font-size: 34px; }
}

/* Instagram */
.magal-ig h2 { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem); }
.magal-ig__usuario { margin: 0; font-family: var(--wp--preset--font-family--label); font-size: 13px; letter-spacing: .14em; white-space: nowrap; }
.magal-ig__usuario a { color: var(--wp--preset--color--primary); text-decoration: none; }
@media (max-width: 781px) {
	.magal-ig__cta { display: none; }
	.magal-ig { padding-top: 56px !important; }
}

/* ---------- Encabezado ---------- */

.magal-header { border-bottom: 1px solid #E6DACD; }
.magal-header__bar { min-height: 84px; padding: 0 40px; align-items: center; }
.magal-header .wp-block-navigation,
.magal-header .wp-block-navigation a { color: var(--wp--preset--color--contrast); letter-spacing: .22em; }
.magal-header .wp-block-navigation .wp-block-navigation__container { gap: 32px; }
.magal-header .magal-logo { margin: 0; }
.magal-header .magal-logo img { height: 38px !important; width: auto; display: block; }
.magal-header .wp-block-navigation__responsive-container-open svg { width: 26px; height: 26px; }
.magal-header .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--base);
	padding: 2rem 24px;
}
.magal-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	gap: 1.5rem;
	font-size: 1rem;
}
.magal-cart-count { font-variant-numeric: tabular-nums; }
@media (max-width: 781px) {
	.magal-header__bar { min-height: 56px; padding: 0 8px; }
	.magal-header .magal-logo img { height: 24px !important; }
	.magal-header__util .wp-block-navigation-item:not(.magal-cart) { display: none; }
	/* Carrito como ícono con contador. */
	.magal-cart > a { position: relative; display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; font-size: 0; letter-spacing: 0; }
	.magal-cart > a::before {
		content: "";
		width: 20px;
		height: 22px;
		background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='22' viewBox='0 0 20 22' fill='none' stroke='%232E1F1B' stroke-width='1.4'%3E%3Cpath d='M2 6h16l-1.2 15H3.2z'/%3E%3Cpath d='M6.5 8V5a3.5 3.5 0 0 1 7 0v3'/%3E%3C/svg%3E") center / contain no-repeat;
	}
	.magal-cart .magal-cart-count:not(:empty) {
		position: absolute; top: 6px; right: 4px; min-width: 16px; height: 16px; border-radius: 8px;
		background: var(--wp--preset--color--accent); color: var(--wp--preset--color--contrast);
		font-family: var(--wp--preset--font-family--label); font-size: 10px; line-height: 16px; text-align: center;
	}
	.magal-cart .magal-cart-paren { display: none; }
}
.wp-block-navigation-item.current-menu-item > a,
.wp-block-navigation-item a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }

/* ---------- Pie ---------- */

.magal-footer .magal-cierre .wp-block-image img { width: min(620px, 78vw) !important; height: auto; }
.magal-footer .wp-block-navigation { font-family: var(--wp--preset--font-family--body); font-size: 15px; letter-spacing: 0; text-transform: none; font-weight: 300; }
.magal-footer .wp-block-navigation,
.magal-footer .wp-block-navigation a { color: var(--wp--preset--color--texto-claro); }
.magal-footer .wp-block-navigation a:hover { color: #fff; }
.magal-footer .wp-block-navigation .wp-block-navigation__container { gap: 12px; }
.magal-newsletter { width: min(440px, 100%); }
.magal-newsletter .is-style-etiqueta { letter-spacing: .22em; font-size: 13px; }
.magal-newsletter .wp-block-boreal-email-form { width: 100%; margin: 0; }
.magal-newsletter .bb-email-form__row { display: flex; gap: 0; border-bottom: 1px solid #8C7A70; }
.magal-newsletter .bb-email-form__input {
	flex: 1; min-width: 0; height: 48px; padding: 0; background: transparent; border: 0; border-radius: 0;
	color: var(--wp--preset--color--crema-clara); font-family: var(--wp--preset--font-family--body); font-size: 16px;
}
.magal-newsletter .bb-email-form__input::placeholder { color: #B8A89C; }
.magal-newsletter .bb-email-form__input:focus { outline: none; }
.magal-newsletter .bb-email-form__row:focus-within { border-bottom-color: var(--wp--preset--color--crema-clara); }
.magal-newsletter .bb-email-form__button.wp-element-button {
	height: 48px; padding: 0 0 0 16px; background: transparent; color: var(--wp--preset--color--crema-clara);
	font-size: 12px; letter-spacing: .2em;
}
.magal-newsletter .bb-email-form__button.wp-element-button:hover { background: transparent; color: #fff; }
.magal-newsletter .bb-email-form__note { color: #B8A89C; font-size: 14px; margin: 8px 0 0; }
.magal-footer__bar { border-top: 1px solid #4A3630; }
.magal-footer__bar .wp-block-image { margin: 0; }
.magal-footer__bar .wp-block-image img { height: 32px !important; width: auto; display: block; }
.magal-footer__lema.is-style-etiqueta { color: #B8A89C; font-size: 11px; letter-spacing: .2em; margin: 0; }
@media (max-width: 781px) {
	.magal-footer__links { display: grid !important; grid-template-columns: 1fr 1fr; gap: 14px !important; width: 100%; }
	.magal-footer__links .wp-block-navigation { font-size: 14px; }
}

/* ---------- Ficha de producto: tallas como botones ---------- */

.magal-select-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.magal-sizes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.magal-size {
	height: 50px;
	padding: 0;
	border: 1px solid var(--wp--preset--color--border);
	background: transparent;
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--label);
	font-size: 15px;
	letter-spacing: .04em;
	cursor: pointer;
	transition: border-color .2s, background-color .2s, color .2s;
}
.magal-size:hover { border-color: var(--wp--preset--color--primary); }
.magal-size.is-selected { background: var(--wp--preset--color--primary); border-color: var(--wp--preset--color--primary); color: var(--wp--preset--color--crema-clara); }
.magal-size.is-out { color: var(--wp--preset--color--deshabilitado); text-decoration: line-through; cursor: not-allowed; }
.magal-sizes.is-nudge .magal-size:not(.is-out) { border-color: var(--wp--preset--color--primary); }
.magal-size-hint { margin: 12px 0 0; font-size: 14px; font-weight: 300; color: var(--wp--preset--color--muted); }
.magal-guide { float: right; font-family: var(--wp--preset--font-family--body); font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--wp--preset--color--primary); text-decoration: underline; text-underline-offset: 4px; }
.variations_form table.variations th.label,
.variations_form table.variations th.label label {
	font-family: var(--wp--preset--font-family--label);
	font-size: 12px;
	font-weight: 400;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--wp--preset--color--contrast);
}
.magal-size-val { color: var(--wp--preset--color--muted); }
.variations_form table.variations,
.variations_form table.variations tbody,
.variations_form table.variations tr,
.variations_form table.variations th,
.variations_form table.variations td { display: block; width: 100%; padding: 0; text-align: left; }
.variations_form table.variations { margin-bottom: 20px; }
.variations_form table.variations th.label { display: flex !important; justify-content: space-between; align-items: center; }
.magal-guide { float: none; }

/* ---------- WooCommerce general ---------- */

.wc-block-components-product-price, .woocommerce-Price-amount { font-family: var(--wp--preset--font-family--label); font-weight: 400; }
.wp-block-woocommerce-product-template .wp-block-post-title { font-family: var(--wp--preset--font-family--heading); letter-spacing: .04em; }
.wp-block-woocommerce-product-image img, .wc-block-components-product-image img { background: var(--wp--preset--color--surface); }

/* ---------- Ficha de producto (diseño 2026-11) ---------- */

.magal-product { align-items: flex-start !important; margin: 0; }
.magal-product__info { position: sticky; top: 24px; padding-top: 20px; }
.magal-coleccion-etiqueta { margin: 0; font-size: 11px; letter-spacing: .22em; }
.magal-coleccion-etiqueta a { color: inherit; text-decoration: none; }
.magal-product__title { margin: 0; font-size: clamp(2.875rem, 2rem + 2.6vw, 4.5rem); letter-spacing: .06em; line-height: 1; }
.magal-product__sub, .magal-product__sub p { margin: 0; font-size: 16px; font-weight: 300; text-transform: lowercase; }
.magal-product__sub p::first-letter { text-transform: uppercase; }
.magal-product__price { align-items: baseline !important; }
.magal-product__price .wc-block-components-product-price,
.magal-product__price .woocommerce-Price-amount { font-family: var(--wp--preset--font-family--label); font-size: 26px; font-weight: 400; letter-spacing: .04em; color: var(--wp--preset--color--contrast); }
.magal-product__cur { margin: 0; font-family: var(--wp--preset--font-family--label); font-size: 26px; letter-spacing: .04em; color: var(--wp--preset--color--contrast); }
.magal-product__desc > * { margin: 0 0 14px; font-size: 16px; font-weight: 300; line-height: 1.6; color: var(--wp--preset--color--parrafo); }
.magal-product__desc > p:first-child { font-family: var(--wp--preset--font-family--heading); font-style: italic; font-weight: 400; font-size: 24px; line-height: 1.3; color: var(--wp--preset--color--primary); }
.magal-product .quantity { display: none !important; }
.magal-product form.cart .single_variation_wrap .woocommerce-variation-add-to-cart,
.magal-product form.cart:not(.variations_form) { display: flex; flex-direction: column; gap: 10px; }
.magal-product .single_add_to_cart_button {
	width: 100%; height: 60px; margin: 0 !important; padding: 0 20px;
	background: var(--wp--preset--color--primary); color: var(--wp--preset--color--crema-clara);
	font-family: var(--wp--preset--font-family--label); font-size: 14px; letter-spacing: .22em; text-transform: uppercase; border-radius: 0;
}
.magal-product .single_add_to_cart_button.disabled { background: #8A7068; opacity: 1; }
.magal-buy-now {
	width: 100%; height: 54px; border: 1px solid var(--wp--preset--color--contrast); background: transparent; color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--label); font-size: 13px; letter-spacing: .22em; text-transform: uppercase; cursor: pointer;
	transition: background-color .2s, color .2s;
}
.magal-buy-now:hover { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--crema-clara); }
.magal-product__perks p { margin: 0; font-size: 13px; font-weight: 400; }
.magal-acordeones .wp-block-details { border-bottom: 1px solid var(--wp--preset--color--border); margin: 0; }
.magal-acordeones .wp-block-details summary {
	display: flex; justify-content: space-between; align-items: center; min-height: 58px; cursor: pointer; list-style: none;
	font-family: var(--wp--preset--font-family--label); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--wp--preset--color--contrast);
}
.magal-acordeones .wp-block-details summary::-webkit-details-marker { display: none; }
.magal-acordeones .wp-block-details summary::after { content: "+"; font-family: var(--wp--preset--font-family--body); font-size: 20px; font-weight: 300; letter-spacing: 0; color: var(--wp--preset--color--primary); }
.magal-acordeones .wp-block-details[open] summary::after { content: "−"; }
.magal-acordeones .wp-block-details p { margin: 0 0 18px; font-size: 15px; font-weight: 300; line-height: 1.7; color: var(--wp--preset--color--parrafo); }
.magal-link-underline { margin: 0; }
.magal-link-underline a { color: var(--wp--preset--color--primary); text-decoration: underline; }

/* Galería */
.magal-galeria__track { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.magal-galeria__foto { position: relative; margin: 0; background: var(--wp--preset--color--surface); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.magal-galeria__foto img { width: 100%; height: 100%; object-fit: contain; }
.magal-galeria__foto.is-hero { grid-column: span 6; height: min(900px, 90vh); padding: 8% 0; box-sizing: border-box; }
.magal-galeria__foto.is-hero img { width: auto; max-width: 90%; }
.magal-galeria__foto.is-third { grid-column: span 2; height: 350px; }
.magal-galeria__foto.is-half { grid-column: span 3; height: 530px; }
.magal-galeria__foto.is-full { grid-column: span 6; height: 900px; }
.magal-galeria__foto:not(.is-hero) { background: #fff; }
.magal-galeria__foto.is-third img, .magal-galeria__foto.is-half img { object-fit: cover; }
.magal-galeria__foto.is-full img { object-fit: contain; }
.magal-galeria__foto figcaption {
	position: absolute; left: 14px; bottom: 12px; margin: 0; padding: 4px 8px; background: var(--wp--preset--color--base);
	font-family: var(--wp--preset--font-family--label); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--muted);
}
.magal-galeria__total { display: none; }

/* Otras maneras */
.magal-otras { margin-top: 110px; display: flex; flex-direction: column; gap: 28px; }
.magal-otras__titulo { margin: 0; font-size: clamp(1.625rem, 1.2rem + 1.2vw, 2.5rem); }
.magal-otras__lista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.magal-otras__lista a { display: flex; flex-direction: column; gap: 10px; color: var(--wp--preset--color--contrast); text-decoration: none; }
.magal-otras__img { height: 320px; background: var(--wp--preset--color--surface); display: flex; align-items: center; justify-content: center; }
.magal-otras__img img { width: 70%; height: 80%; object-fit: contain; transition: transform .5s ease; }
.magal-otras__lista a:hover img { transform: scale(1.04); }
.magal-otras__fila { display: flex; justify-content: space-between; gap: 8px; }
.magal-otras__nombre { font-family: var(--wp--preset--font-family--label); font-size: 14px; letter-spacing: .2em; }
.magal-otras__precio { font-family: var(--wp--preset--font-family--label); font-size: 13px; color: var(--wp--preset--color--muted); }

/* Barra fija de compra (móvil) */
.magal-sticky-buy { display: none; }

@media (max-width: 781px) {
	.magal-ficha { padding: 0 0 var(--wp--preset--spacing--60) !important; }
	.magal-product { gap: 0 !important; }
	.magal-product__info { position: static; padding: 22px 20px 0; }
	.magal-galeria__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 0; }
	.magal-galeria__track::-webkit-scrollbar { display: none; }
	.magal-galeria__foto { flex: 0 0 100%; scroll-snap-align: start; height: 460px !important; padding: 0 !important; }
	.magal-galeria__foto.is-hero img { max-width: none; height: 400px; width: auto; }
	.magal-galeria__total { display: inline; }
	.magal-galeria__foto figcaption { left: 16px; bottom: 14px; color: var(--wp--preset--color--primary); }
	.magal-otras { margin-top: 44px; padding-left: 20px; }
	.magal-otras__lista { display: flex; overflow-x: auto; scrollbar-width: none; gap: 10px; padding-right: 20px; }
	.magal-otras__lista li { flex: 0 0 160px; }
	.magal-otras__img { height: 210px; }
	.magal-sticky-buy {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; align-items: center; gap: 12px;
		height: 72px; padding: 0 16px; background: var(--wp--preset--color--base); border-top: 1px solid var(--wp--preset--color--border);
		box-shadow: 0 -8px 24px rgba(46,31,27,.08); transform: translateY(110%); transition: transform .3s ease;
	}
	.magal-sticky-buy.is-visible { transform: none; }
	.magal-sticky-buy__info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
	.magal-sticky-buy__name { font-family: var(--wp--preset--font-family--label); font-size: 14px; letter-spacing: .18em; color: var(--wp--preset--color--contrast); }
	.magal-sticky-buy__meta { font-family: var(--wp--preset--font-family--label); font-size: 13px; color: var(--wp--preset--color--muted); }
	.magal-sticky-buy__btn {
		height: 48px; padding: 0 20px; border: 0; background: var(--wp--preset--color--primary); color: var(--wp--preset--color--crema-clara);
		font-family: var(--wp--preset--font-family--label); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; cursor: pointer;
	}
}
@media (prefers-reduced-motion: reduce) { .magal-sticky-buy { transition: none; } }

/* ---------- Pago (diseño 2026-11) ---------- */

.magal-checkout-back, .magal-checkout-secure { margin: 0; font-family: var(--wp--preset--font-family--label); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.magal-checkout-back a { color: var(--wp--preset--color--contrast); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.magal-checkout-back a::before { content: ""; width: 16px; height: 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='12' viewBox='0 0 16 12' fill='none' stroke='%232E1F1B' stroke-width='1.4'%3E%3Cpath d='M16 6H1M6 1L1 6l5 5'/%3E%3C/svg%3E") center / contain no-repeat; }
.magal-checkout-secure { display: flex; justify-content: flex-end; align-items: center; gap: 8px; color: var(--wp--preset--color--contrast); }
.magal-checkout-secure::before { content: ""; width: 14px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='16' viewBox='0 0 14 16' fill='none' stroke='%232E1F1B' stroke-width='1.3'%3E%3Crect x='1' y='7' width='12' height='8'/%3E%3Cpath d='M4 7V4.5a3 3 0 0 1 6 0V7'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (max-width: 781px) {
	.magal-checkout-back a, .magal-checkout-secure { font-size: 0; letter-spacing: 0; }
	.magal-checkout-back a { width: 44px; height: 44px; justify-content: center; }
}

.magal-checkout .wc-block-checkout { counter-reset: paso; }
.magal-checkout .wc-block-components-checkout-step__title {
	font-family: var(--wp--preset--font-family--label); font-size: 13px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; color: var(--wp--preset--color--contrast);
}
.magal-checkout .wc-block-components-checkout-step__title::before { counter-increment: paso; content: counter(paso) " · "; }
.magal-checkout .wc-block-components-checkout-step__container::after { display: none; }
.magal-checkout .wc-block-components-checkout-step::after { display: none !important; }
.magal-checkout .wc-block-components-checkout-step { padding-left: 0 !important; }
.magal-checkout .wc-block-components-text-input input,
.magal-checkout .wc-block-components-text-input textarea,
.magal-checkout .wc-blocks-components-select select,
.magal-checkout .wc-block-components-combobox input,
.magal-checkout textarea {
	min-height: 50px; border: 1px solid var(--wp--preset--color--border) !important; border-radius: 0 !important; background: #fff !important;
	font-family: var(--wp--preset--font-family--body); font-size: 16px; color: var(--wp--preset--color--contrast); box-shadow: none !important;
}
.magal-checkout .wc-block-components-text-input input:focus,
.magal-checkout .wc-blocks-components-select select:focus { border-color: var(--wp--preset--color--primary) !important; }
.magal-checkout .wc-block-components-text-input label,
.magal-checkout .wc-blocks-components-select__label { color: var(--wp--preset--color--muted); }
.magal-checkout .wc-block-components-radio-control__option,
.magal-checkout .wc-block-components-radio-control-accordion-option {
	border: 1px solid var(--wp--preset--color--border); border-radius: 0 !important; background: #fff; box-shadow: none !important;
}
.magal-checkout .wc-block-components-radio-control__option-checked,
.magal-checkout .wc-block-components-radio-control-accordion-option--checked-option-highlighted { border-color: var(--wp--preset--color--primary) !important; }
.magal-checkout .wc-block-components-radio-control__input:checked { border-color: var(--wp--preset--color--primary); }
.magal-checkout .wc-block-components-radio-control__input:checked::before { background: var(--wp--preset--color--primary); }
.magal-checkout .wc-block-components-checkout-place-order-button,
.magal-checkout .wc-block-cart__submit-button {
	min-height: 58px; border-radius: 0; background: var(--wp--preset--color--primary); color: var(--wp--preset--color--crema-clara);
	font-family: var(--wp--preset--font-family--label); font-size: 15px; letter-spacing: .2em; text-transform: uppercase;
}
.magal-checkout .wc-block-components-checkout-place-order-button:hover { background: var(--wp--preset--color--contrast); }
.magal-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__label { font-family: var(--wp--preset--font-family--label); font-size: 14px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; }
.magal-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font-family: var(--wp--preset--font-family--label); font-size: 20px; font-weight: 400; }
.magal-checkout .wc-block-components-order-summary-item__image img { background: var(--wp--preset--color--surface); }
.magal-checkout .wc-block-components-product-name { font-family: var(--wp--preset--font-family--label); letter-spacing: .18em; font-size: 13px; color: var(--wp--preset--color--contrast); }
.magal-checkout .wc-block-checkout__sidebar { background: var(--wp--preset--color--surface); padding: 20px; }
.magal-checkout .wc-block-components-checkout-order-summary__title-text,
.magal-checkout .wc-block-components-title { font-family: var(--wp--preset--font-family--label); font-size: 13px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; }
.magal-checkout a { color: var(--wp--preset--color--primary); }
@media (max-width: 781px) {
	.magal-checkout { padding-top: 0 !important; }
	.magal-checkout .wc-block-components-sidebar-layout { display: flex; flex-direction: column; }
	.magal-checkout .wc-block-checkout__sidebar { order: -1; width: 100%; margin: 0 0 24px; padding: 4px 16px; box-sizing: border-box; }
	.magal-checkout .wc-block-components-checkout-order-summary__title { border: 0 !important; }
}

/* Carrito */
.wp-block-woocommerce-cart .wc-block-components-product-name { font-family: var(--wp--preset--font-family--label); letter-spacing: .18em; font-size: 14px; color: var(--wp--preset--color--contrast); text-decoration: none; }
.wp-block-woocommerce-cart .wc-block-cart-items__header { font-family: var(--wp--preset--font-family--label); letter-spacing: .2em; font-size: 12px; }
.wp-block-woocommerce-cart .wc-block-cart__submit-button {
	min-height: 58px; border-radius: 0; background: var(--wp--preset--color--primary); color: var(--wp--preset--color--crema-clara);
	font-family: var(--wp--preset--font-family--label); font-size: 14px; letter-spacing: .2em; text-transform: uppercase;
}

/* ---------- Íconos sociales del pie ---------- */
.magal-social { margin: 0; }
.magal-social .wp-social-link { transition: opacity .2s, transform .2s; }
.magal-social .wp-social-link:hover { opacity: .75; transform: translateY(-1px); }
.magal-social .wp-social-link svg { width: 22px; height: 22px; }

/* ---------- Páginas de ayuda ---------- */
.magal-legal h2 { margin-top: var(--wp--preset--spacing--40); }
.magal-legal ul { padding-left: 1.2em; }
.magal-legal .wp-block-details { border-bottom: 1px solid var(--wp--preset--color--border); padding: 0; margin: 0; }
.magal-legal .wp-block-details summary {
	display: flex; justify-content: space-between; align-items: center; min-height: 58px; cursor: pointer; list-style: none;
	font-family: var(--wp--preset--font-family--label); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--wp--preset--color--contrast);
}
.magal-legal .wp-block-details summary::-webkit-details-marker { display: none; }
.magal-legal .wp-block-details summary::after { content: "+"; font-family: var(--wp--preset--font-family--body); font-size: 20px; font-weight: 300; color: var(--wp--preset--color--primary); }
.magal-legal .wp-block-details[open] summary::after { content: "−"; }
.magal-legal .wp-block-details p { margin: 0 0 18px; }
.magal-tabla table { border-collapse: collapse; width: 100%; font-family: var(--wp--preset--font-family--label); font-size: 14px; text-align: center; }
.magal-tabla th { background: var(--wp--preset--color--surface); font-weight: 400; letter-spacing: .14em; text-transform: uppercase; padding: 12px; border: 0; }
.magal-tabla td { padding: 10px; border: 0; border-bottom: 1px solid #E6DACD; }
.magal-tabla thead { border: 0; }

/* ---------- Lookbook ---------- */
.magal-lookbook .wp-block-boreal-product-filter { gap: 28px; }
.magal-lookbook .bb-looks__heading { font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4.5rem); line-height: 1; margin-top: 28px; }
.magal-lookbook .bb-looks__desc { font-size: clamp(1.125rem, 1rem + .6vw, 1.5rem); max-width: 52ch; }
.magal-lookbook .bb-looks__photo { --bb-looks-photo-h: clamp(460px, 78vh, 820px); --bb-looks-photo-h-m: 52vh; }
.magal-lookbook > .alignwide:first-child p { margin: 0; }

/* ---------- Próximamente (mientras se desarrolla) ---------- */

.magal-pronto { min-height: 100svh; }
.magal-pronto__cols { margin: 0 !important; gap: 0 !important; min-height: 100svh; align-items: stretch !important; }
.magal-pronto__foto { margin: 0; }
.magal-pronto__foto .wp-block-boreal-hero { height: 100%; min-height: 100svh !important; }
.magal-pronto__panel { margin: 0; display: flex; flex-direction: column; align-items: center; padding: 64px clamp(24px, 7.6vw, 110px) 48px; text-align: center; box-sizing: border-box; min-height: 100svh; }
.magal-pronto__arriba { margin: 0; letter-spacing: .34em; }
.magal-pronto__centro { flex: 1; width: 100%; justify-content: center !important; align-items: center !important; padding: 32px 0; }
.magal-pronto__centro .wp-block-image { margin: 0; }
.magal-pronto__centro .wp-block-image img { width: min(400px, 70vw) !important; }
.magal-pronto__pronto { margin: 0; font-family: var(--wp--preset--font-family--heading); font-style: italic; font-size: 46px; line-height: 1; }
.magal-pronto__texto { margin: 0; max-width: 460px; font-size: 18px; line-height: 1.6; color: var(--wp--preset--color--parrafo); }
.magal-pronto__form { width: min(480px, 100%); margin-top: 8px; }
.magal-pronto__form .is-style-etiqueta { margin: 0; letter-spacing: .22em; }
.magal-pronto .wp-block-boreal-email-form { width: 100%; margin: 0; }
.magal-pronto .bb-email-form__row { display: flex; gap: 0; }
.magal-pronto .bb-email-form__input {
	flex: 1; min-width: 0; height: 56px; padding: 0 16px; border: 1px solid var(--wp--preset--color--border); border-right: 0; border-radius: 0;
	background: #fff; font-family: var(--wp--preset--font-family--body); font-size: 16px; color: var(--wp--preset--color--contrast);
}
.magal-pronto .bb-email-form__input::placeholder { color: #8E7B72; }
.magal-pronto .bb-email-form__input:focus { outline: none; border-color: var(--wp--preset--color--primary); }
.magal-pronto .bb-email-form__button.wp-element-button { height: 56px; padding: 0 30px; border-radius: 0; font-size: 13px; letter-spacing: .2em; }
.magal-pronto .bb-email-form__note:not(:empty) { margin: 14px 0 0; padding: 20px 0; border-top: 1px solid var(--wp--preset--color--border); border-bottom: 1px solid var(--wp--preset--color--border); font-family: var(--wp--preset--font-family--heading); font-style: italic; font-size: 22px; color: var(--wp--preset--color--primary); }
.magal-pronto__abajo { width: 100%; }
.magal-mini { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; align-items: end; }
.magal-mini li { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.magal-mini img { width: 72px; height: 86px; object-fit: contain; }
.magal-mini span { font-family: var(--wp--preset--font-family--label); font-size: 10px; letter-spacing: .2em; color: var(--wp--preset--color--contrast); }
.magal-pronto__pie { width: 100%; padding-top: 16px; border-top: 1px solid var(--wp--preset--color--border); }
.magal-pronto__pie p { margin: 0; font-size: 11px; letter-spacing: .2em; }
.magal-pronto__redes { display: flex; gap: 24px; }
.magal-pronto__redes a { color: var(--wp--preset--color--primary); text-decoration: none; }
.magal-pronto__redes a:hover { text-decoration: underline; }
.magal-pronto__sobre { display: none; }

@media (max-width: 781px) {
	.magal-pronto__cols { flex-direction: column; }
	.magal-pronto__foto { flex-basis: auto !important; }
	.magal-pronto__foto .wp-block-boreal-hero { height: 600px; min-height: 600px !important; --bb-hero-min-h: 600px; }
	.magal-pronto__foto .bb-hero__media { object-position: 50% 0 !important; }
	.magal-pronto__foto .wp-block-boreal-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 300px; background: linear-gradient(to bottom, rgba(46,31,27,0), rgba(46,31,27,.78)); z-index: -1; pointer-events: none; }
	.magal-pronto__foto .wp-block-boreal-hero::before {
		content: ""; position: absolute; top: 22px; left: 50%; width: 82px; height: 26px; transform: translateX(-50%);
		background: url("/wp-content/themes/boreal-magal/assets/img/logo-cafe.svg") center / contain no-repeat;
	}
	.magal-pronto__sobre { display: flex; padding-bottom: 24px; gap: 8px !important; }
	.magal-pronto__sobre .wp-block-image img { width: 200px !important; }
	.magal-pronto__sobre .wp-block-image { margin: 0; }
	.magal-pronto__sobre .is-style-etiqueta { letter-spacing: .32em; font-size: 11px; margin: 0; }
	.magal-pronto__sobre .magal-pronto__pronto { font-size: 30px; }
	.magal-pronto__panel { min-height: 0; padding: 26px 24px 24px; }
	.magal-pronto__centro { padding: 0; gap: 20px !important; }
	.magal-pronto__texto { font-size: 16px; line-height: 1.55; }
	.magal-pronto__form { margin-top: 0; }
	.magal-pronto .bb-email-form__row { flex-direction: column; gap: 8px; }
	.magal-pronto .bb-email-form__input { height: 50px; border-right: 1px solid var(--wp--preset--color--border); }
	.magal-pronto .bb-email-form__button.wp-element-button { height: 52px; width: 100%; }
	.magal-pronto__abajo { margin-top: 20px; }
	.magal-pronto__pie { border-top: 0; padding-top: 0; justify-content: center !important; }
	.magal-pronto__redes { gap: 22px; font-size: 12px !important; }
	.magal-pronto__redes a { min-height: 44px; display: inline-flex; align-items: center; }
}
