/*
Theme Name: Istrice Illustration
Theme URI: https://istriceillustration.com/
Description: Tema propio de la web de Andrea (Istrice Illustration), hijo de Twenty Twenty-Five. Colores, fuentes, cabecera, pie y plantillas reproducidos de la web anterior (istriceillustra.com), medidos allí. Todo lo que se cambie de aspecto se cambia aquí, en el tema, no en los contenidos.
Author: Istrice Illustration
Template: twentytwentyfive
Version: 0.6.9
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 8.1
Text Domain: istrice
License: GNU General Public License v2 or later
*/

/* ------------------------------------------------------------------
   Retoques que no caben en theme.json. Medidos en la vieja (23/09/2026).
   ------------------------------------------------------------------ */

/* Precios: verde, en todos los sitios donde WooCommerce los pinta */
.woocommerce .price, .wc-block-components-product-price, .wc-block-grid__product-price,
.woocommerce-Price-amount, .wp-block-woocommerce-product-price {
	color: var(--wp--preset--color--accent-2);
}

/* Botones de WooCommerce (carrito, pago, cuenta): como el botón del tema */
.woocommerce .button, .woocommerce button.button, .wc-block-components-button,
.wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button,
.wp-element-button {
	font-family: var(--wp--preset--font-family--outfit);
	font-size: 0.8125rem;
	font-weight: 500;
	text-transform: capitalize;
	letter-spacing: normal;
	border-radius: 3px;
	border: 0;
	background: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--white);
}
.woocommerce .button:hover, .woocommerce button.button:hover, .wc-block-components-button:hover,
.wp-element-button:hover {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--white);
}

/* Nombres de producto en los listados: título en «bright», negro, como la vieja */
.wc-block-components-product-name, .wp-block-post-title.wc-block-components-product-title,
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.wc-block-grid__product-title {
	font-family: var(--wp--preset--font-family--bright);
	font-weight: 400;
	color: var(--wp--preset--color--contrast);
}

/* Selector de talla y campos de formulario: fondo rosa claro, sin borde, como la vieja */
.woocommerce .variations select, .wc-block-components-product-form select,
.wp-block-woocommerce-add-to-cart-with-options-variation-selector select {
	background-color: var(--wp--preset--color--rosa-claro);
	border: 0;
	padding: 0 12px;
	font-size: 0.875rem;
	color: var(--wp--preset--color--contrast);
}

/* Portada (plantilla templates/front-page.html): el mosaico a todo el ancho, sin título y
   pegado a la cabecera, como la vieja (Raúl, 23/09). */
.home main.wp-block-group.alignfull { max-width: none; }
.home main.wp-block-group.alignfull > .entry-content { margin-top: 0; margin-bottom: 0; }
.home .istrice-mosaic { margin-left: 0; margin-right: 0; }

/* ------------------------------------------------------------------
   Cabecera (parts/header.html), como la vieja: 100 px de alto, logo a la izquierda (220 px),
   menú centrado de verdad (rejilla de tres columnas), iconos a la derecha.
   ------------------------------------------------------------------ */
.istrice-header__inner.is-layout-flex {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 24px;
}
.istrice-header__inner > .istrice-header__logo { justify-self: start; margin: 0; }
.istrice-header__inner > .istrice-header__menu { justify-self: center; }
.istrice-header__inner > .istrice-header__icons { justify-self: end; }
.istrice-header__logo img { width: 220px; height: auto; display: block; }
.istrice-header__menu .wp-block-navigation-item__content { font-weight: 500; color: var(--wp--preset--color--contrast); }
.istrice-header__menu .wp-block-navigation-item__content:hover,
.istrice-header__menu .current-menu-item > .wp-block-navigation-item__content,
.istrice-header__menu .current-menu-ancestor > .wp-block-navigation-item__content { color: var(--wp--preset--color--accent-5); }
.istrice-header__menu .wp-block-navigation__submenu-container { background: var(--wp--preset--color--base); border: 0; box-shadow: 0 6px 20px rgba(0,0,0,.08); min-width: 200px; }
.istrice-header__icons .wc-block-mini-cart__button,
.istrice-header__icons .wc-block-customer-account__account-icon,
.istrice-header__icons .wp-block-search__button { color: var(--wp--preset--color--contrast); }
.istrice-header__icons .wp-block-search__button { background: transparent; border: 0; padding: 0; margin: 0; }
.istrice-header__icons .wp-block-search__button svg { width: 24px; height: 24px; }
.istrice-header__icons .wc-block-mini-cart__badge { background: var(--wp--preset--color--accent-1); color: var(--wp--preset--color--white); border: 0; }

@media (max-width: 900px) {
	.istrice-header { padding-left: 24px !important; padding-right: 24px !important; }
	.istrice-header__inner.is-layout-flex { grid-template-columns: auto 1fr auto; gap: 16px; }
	.istrice-header__inner > .istrice-header__menu { justify-self: end; }
	.istrice-header__logo img { width: 160px; }
}

/* Cabecera: los tres iconos de la derecha, alineados y del mismo tamaño (Raúl, 23/09) */
.istrice-header__icons.is-layout-flex { display: flex; align-items: center; gap: 18px; }
.istrice-header__icons > * { display: flex; align-items: center; margin: 0; line-height: 1; }
.istrice-header__icons .wp-block-woocommerce-customer-account,
.istrice-header__icons .wc-block-customer-account__account-icon,
.istrice-header__icons .wc-block-mini-cart__button,
.istrice-header__icons .wp-block-search__button { display: flex; align-items: center; justify-content: center; padding: 0; margin: 0; min-height: 0; height: 24px; }
.istrice-header__icons svg { width: 22px; height: 22px; display: block; }
.istrice-header__icons .wc-block-mini-cart__quantity-badge { display: flex; align-items: center; }
/* Contador del carrito: círculo verde (#125e2e) de 20 px con número blanco, medido de la vieja; bien visible (Raúl, 23/09: «ni marca
   que tengo compra»). WooCommerce le pone colores en línea; aquí mandan los del tema. */
.istrice-header__icons .wc-block-mini-cart__quantity-badge { position: relative; }
.istrice-header__icons .wc-block-mini-cart__badge { position: absolute; top: -10px; left: auto; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; box-sizing: border-box; border: 0 !important; border-radius: 10px; background: var(--wp--preset--color--accent-2) !important; color: var(--wp--preset--color--white) !important; font-family: var(--wp--preset--font-family--outfit, inherit); font-size: 12px; font-weight: 500; line-height: 20px; text-align: center; display: flex; align-items: center; justify-content: center; transform: none !important; margin: 0 !important; }
.istrice-header__icons .wc-block-mini-cart__badge[hidden], .istrice-header__icons .wc-block-mini-cart__badge:empty { display: none; }
/* En Carrito y Pago WooCommerce esconde el carrito de la cabecera; el tema pone uno fijo
   que lleva al carrito y enseña el número (functions.php). */
.istrice-mini-cart-static .wc-block-mini-cart__button { text-decoration: none; }
.istrice-header__icons .wp-block-search__inside-wrapper { align-items: center; }

/* ------------------------------------------------------------------
   Pie (parts/footer.html), medido en la vieja: verde #233f25, 70 px arriba, cuatro columnas,
   títulos en «bright» blancos, enlaces blancos, redes en círculos de 45 px, newsletter con
   campo blanco de 48 px y botón de flecha, línea de copyright de 14 px.
   ------------------------------------------------------------------ */
.istrice-footer a { color: var(--wp--preset--color--white); text-decoration: none; }
.istrice-footer a:hover { color: var(--wp--preset--color--accent-5); }
.istrice-footer h2, .istrice-footer h3 { margin-top: 0; margin-bottom: 18px; }
.istrice-footer__links { list-style: none; padding: 0; margin: 0; }
.istrice-footer__links li { margin: 0 0 8px; }
.istrice-footer__social .wp-social-link { width: 45px; height: 45px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; display: flex; align-items: center; justify-content: center; background: transparent !important; }
.istrice-footer__social .wp-block-social-link.wp-social-link { display: flex !important; }
.istrice-footer__social .wp-social-link a { padding: 0; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.istrice-footer__social .wp-social-link svg { width: 16px; height: 16px; fill: var(--wp--preset--color--white); }
.istrice-footer__social .wp-social-link:hover { background: rgba(255,255,255,.1) !important; }
.istrice-footer__newsletter-text { margin-top: 14px; }
.istrice-footer__bottom { border-top: 1px solid rgba(255,255,255,.15); }
.istrice-footer__bottom p { margin: 0; }

/* Newsletter (formulario de Contact Form 7 dentro del pie) */
.istrice-newsletter .wpcf7 form { margin: 0; }
.istrice-newsletter .istrice-newsletter__row { display: flex; margin: 0; }
.istrice-newsletter .wpcf7-form-control-wrap { flex: 1 1 auto; display: block; min-width: 0; }
.istrice-newsletter input[type="email"] { box-sizing: border-box; width: 100%; height: 48px; border: 0; border-radius: 0; background: var(--wp--preset--color--white); color: var(--wp--preset--color--accent-4); padding: 0 16px; font-family: inherit; font-size: 1rem; }
.istrice-newsletter input[type="email"]::placeholder { color: #8a8a8a; }
.istrice-newsletter .istrice-newsletter__button { flex: 0 0 48px; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 0; cursor: pointer; text-transform: none; color: transparent; font-size: 0; background: var(--wp--preset--color--white) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23181818' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14'/><path d='M13 6l6 6-6 6'/></svg>") center / 22px 22px no-repeat; }
.istrice-newsletter .istrice-newsletter__button:hover { background-color: var(--wp--preset--color--accent-1); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14'/><path d='M13 6l6 6-6 6'/></svg>"); }
.istrice-newsletter .wpcf7-spinner { display: none; }
.istrice-newsletter .wpcf7-response-output { margin: 10px 0 0; padding: 0; border: 0; font-size: 0.875rem; color: var(--wp--preset--color--white); }
.istrice-newsletter .wpcf7-not-valid-tip { font-size: 0.8125rem; color: #ffd2d3; margin-top: 6px; }

@media (max-width: 900px) {
	.istrice-footer { padding-left: 24px !important; padding-right: 24px !important; }
	.istrice-footer__columns { flex-wrap: wrap; }
	.istrice-footer__columns .wp-block-column { flex-basis: 100% !important; }
}

/* ------------------------------------------------------------------
   Tienda: listados y ficha, según lo medido en la vieja.
   ------------------------------------------------------------------ */
/* Listados: 3 columnas de fotos cuadradas, sin título de página ni miga (la vieja no los tiene) */
.post-type-archive-product h1.wp-block-query-title,
.tax-product_cat h1.wp-block-query-title,
.post-type-archive-product .wp-block-woocommerce-breadcrumbs,
.tax-product_cat .wp-block-woocommerce-breadcrumbs { display: none; }
.wc-block-product-template,
.wc-block-product-template.wc-block-product-template__responsive,
.wc-block-product-template.columns-3,
.wc-block-product-template.columns-4 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 21px !important; }
@media (max-width: 900px) { .wc-block-product-template, .wc-block-product-template.wc-block-product-template__responsive { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 16px !important; } }
@media (max-width: 600px) { .wc-block-product-template, .wc-block-product-template.wc-block-product-template__responsive { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; } }
.wc-block-product-template .wp-block-post-title,
.wc-block-product-template .wc-block-components-product-title { font-family: var(--wp--preset--font-family--bright); font-weight: 400; font-size: 2.25rem !important; line-height: 1.1; color: var(--wp--preset--color--contrast); margin: 14px 0 0; text-align: left !important; }
@media (max-width: 900px) { .wc-block-product-template .wp-block-post-title { font-size: 1.75rem !important; } }
.wc-block-product-template .wp-block-post-title a { color: inherit; }
.wc-block-product-template .wc-block-components-product-image img { width: 100%; height: auto; }
.wc-block-components-product-image { margin: 0; }

/* Formularios y desplegables: con la fuente del tema */
select, input, textarea, button { font-family: inherit; }

/* Miga de pan de la ficha: HOME / ILLUSTRATIONS / Nombre, como la vieja */
.wp-block-woocommerce-breadcrumbs, .woocommerce-breadcrumb { font-size: 0.8125rem; letter-spacing: 0.06em; color: var(--wp--preset--color--contrast); }
.wp-block-woocommerce-breadcrumbs a, .woocommerce-breadcrumb a { text-transform: uppercase; color: var(--wp--preset--color--contrast); }

/* Ficha: selector de talla (flecha propia y sitio para el texto) y cantidad con − / + */
.woocommerce div.product form.cart .variations select,
.wp-block-woocommerce-add-to-cart-form select,
.wp-block-woocommerce-add-to-cart-with-options select {
	-webkit-appearance: none; appearance: none;
	background-color: var(--wp--preset--color--rosa-claro);
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23181818' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
	background-repeat: no-repeat; background-position: right 14px center; background-size: 16px 16px;
	border: 0; border-radius: 0; height: 48px; min-width: 330px; max-width: 100%;
	padding: 0 44px 0 16px; font-size: 0.9375rem; color: var(--wp--preset--color--contrast); cursor: pointer;
}
.woocommerce div.product form.cart .variations select:focus { outline: 2px solid var(--wp--preset--color--accent-1); outline-offset: 2px; }
.woocommerce div.product form.cart .variations td.label label { font-weight: 500; color: var(--wp--preset--color--contrast); }
.woocommerce div.product form.cart .variations td.value { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.woocommerce div.product form.cart .reset_variations { font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--wp--preset--color--accent-4); }
.woocommerce div.product form.cart .reset_variations:hover { color: var(--wp--preset--color--contrast); }
.woocommerce div.product form.cart .woocommerce-variation-add-to-cart,
.woocommerce div.product form.cart:not(.variations_form) { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.woocommerce div.product form.cart .quantity { display: inline-flex; align-items: stretch; height: 52px; border: 1px solid var(--wp--preset--color--accent-6); border-radius: 5px; background: var(--wp--preset--color--white); overflow: hidden; margin: 0; }
.woocommerce div.product form.cart .quantity .qty { -moz-appearance: textfield; appearance: textfield; width: 56px; height: 100%; border: 0; border-radius: 0; background: transparent; text-align: center; font-size: 1rem; font-weight: 500; color: var(--wp--preset--color--contrast); padding: 0; margin: 0; }
.woocommerce div.product form.cart .quantity .qty::-webkit-outer-spin-button,
.woocommerce div.product form.cart .quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.woocommerce div.product form.cart .quantity .qty:focus { outline: none; }
.istrice-qty__btn { display: flex; align-items: center; justify-content: center; width: 46px; height: 100%; border: 0; border-radius: 0; background: transparent; color: var(--wp--preset--color--contrast); cursor: pointer; padding: 0; margin: 0; }
.istrice-qty__btn:hover { background: var(--wp--preset--color--rosa-claro); color: var(--wp--preset--color--contrast); }
.istrice-qty__btn:disabled { color: #c4c4c4; cursor: default; background: transparent; }
.istrice-qty__btn svg { display: block; }
.istrice-qty__btn:focus { outline: none; }
.istrice-qty__btn:focus-visible { box-shadow: inset 0 0 0 2px var(--wp--preset--color--accent-1); }
.woocommerce div.product form.cart .single_add_to_cart_button { height: 52px; margin: 0; }

/* ------------------------------------------------------------------
   Blog (templates/home.html y single.html): una columna de 930 px, como la vieja.
   ------------------------------------------------------------------ */
.istrice-blog__meta p, .istrice-blog__meta .wp-block-post-author-name, .istrice-blog__meta .wp-block-post-date { margin: 0; color: var(--wp--preset--color--accent-4); }
.istrice-blog .wp-block-post-title a { color: var(--wp--preset--color--contrast); }
.istrice-blog__pagination a, .istrice-post__nav a { text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.875rem; font-weight: 500; }



/* ------------------------------------------------------------------
   Instagram al final de la portada (parts/instagram.html), medido en la vieja: 6 fotos en
   3 columnas de 266 px con 9 px de hueco (816 px), centrado, con el nombre de la cuenta
   encima. Fotos puestas a mano (últimas publicaciones), cada una enlaza a su publicación.
   ------------------------------------------------------------------ */
.istrice-instagram__handle { font-weight: 500; margin: 0; }
.istrice-instagram__handle a { color: var(--wp--preset--color--contrast); }
.istrice-instagram__grid.is-layout-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.istrice-instagram__item { margin: 0; }
.istrice-instagram__item img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; display: block; transition: opacity .3s ease; }
.istrice-instagram__item a:hover img { opacity: .85; }
.istrice-instagram__follow .wp-block-button__link { background: transparent; color: var(--wp--preset--color--contrast); border: 1px solid var(--wp--preset--color--contrast); }
.istrice-instagram__follow .wp-block-button__link:hover { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--white); }
@media (max-width: 600px) { .istrice-instagram__grid.is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ------------------------------------------------------------------
   Blog con barra lateral (parts/sidebar-blog.html), medido en la vieja: columna de 930 px y
   barra de 320 px con buscador, categorías, archivo (desplegable), calendario y últimas
   entradas. El calendario sirve para moverse por las publicaciones por fecha (Raúl).
   ------------------------------------------------------------------ */
.istrice-blog__layout { display: grid; grid-template-columns: 930px 320px; gap: 25px; justify-content: center; }
.istrice-blog__main { min-width: 0; }
.istrice-sidebar { padding-top: 12px; }
.istrice-sidebar__title { font-family: var(--wp--preset--font-family--outfit); font-size: 1rem; font-weight: 500; color: var(--wp--preset--color--contrast); margin: 0 0 14px; }
.istrice-sidebar__search .wp-block-search__inside-wrapper { border: 1px solid var(--wp--preset--color--accent-6); background: var(--wp--preset--color--white); border-radius: 0; padding: 2px; }
.istrice-sidebar__search .wp-block-search__input { border: 0; background: transparent; font-size: 0.875rem; padding: 8px 12px; }
.istrice-sidebar__search .wp-block-search__button { background: transparent; border: 0; color: var(--wp--preset--color--contrast); padding: 0 10px; }
.istrice-sidebar__categories, .istrice-sidebar__recent { list-style: none; padding: 0; margin: 0; }
.istrice-sidebar__categories li, .istrice-sidebar__recent li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 0.9375rem; }
.istrice-sidebar__categories li a { color: var(--wp--preset--color--accent-4); }
.istrice-sidebar__categories li a:hover { color: var(--wp--preset--color--contrast); }
.istrice-sidebar__recent li { display: block; }
.istrice-sidebar__recent .wp-block-latest-posts__post-date { display: block; font-size: 0.8125rem; color: #8a8a8a; margin-bottom: 2px; }
.istrice-sidebar__recent a { color: var(--wp--preset--color--contrast); font-weight: 500; }
.istrice-sidebar__archives select, .wp-block-archives-dropdown select { width: 100%; border: 1px solid var(--wp--preset--color--accent-6); background: var(--wp--preset--color--white); border-radius: 0; padding: 10px 12px; font-size: 0.875rem; color: var(--wp--preset--color--accent-4); }
.istrice-sidebar__calendar .wp-block-calendar table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; color: #777777; }
.istrice-sidebar__calendar .wp-block-calendar caption { font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--wp--preset--color--accent-4); padding: 10px 0; background: rgba(255,255,255,.35); }
.istrice-sidebar__calendar .wp-block-calendar th { font-size: 0.75rem; font-weight: 500; color: var(--wp--preset--color--contrast); padding: 8px 0; border: 0; }
.istrice-sidebar__calendar .wp-block-calendar td { padding: 8px 0; text-align: center; border: 0; }
.istrice-sidebar__calendar .wp-block-calendar td a { color: var(--wp--preset--color--contrast); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.istrice-sidebar__calendar .wp-block-calendar #today { color: var(--wp--preset--color--accent-5); font-weight: 600; }
.istrice-sidebar__calendar .wp-calendar-nav { display: flex; justify-content: space-between; font-size: 0.8125rem; padding-top: 6px; }
@media (max-width: 1320px) { .istrice-blog__layout { grid-template-columns: minmax(0, 1fr) 300px; } }
@media (max-width: 900px) { .istrice-blog { padding-left: 24px !important; padding-right: 24px !important; } .istrice-blog__layout { grid-template-columns: 1fr; } .istrice-sidebar { padding-top: 40px; } }
.istrice-post .entry-content { max-width: 100%; }
.istrice-post .entry-content > * { max-width: 100%; }
.istrice-post .entry-content img { height: auto; }

/* Blog: etiqueta de categoría sobre la foto, enlace de vuelta y sin «Read more» (como la vieja) */
.istrice-blog__media { position: relative; }
.istrice-blog__media .wp-block-post-featured-image { margin: 0; }
.istrice-blog__badge { position: absolute; top: 30px; right: 38px; margin: 0; background: var(--wp--preset--color--white); color: #000; font-size: 0.875rem; line-height: 30px; height: 30px; padding: 0 15px; border-radius: 30px; }
.istrice-blog__badge a { color: inherit; }
.istrice-blog__badge .wp-block-post-terms__separator { display: none; }
.istrice-blog__excerpt .wp-block-post-excerpt__more-text { margin-top: 22px; }
.istrice-blog__excerpt .wp-block-post-excerpt__more-link { display: inline-block; background: var(--wp--preset--color--white); color: var(--wp--preset--color--contrast); font-size: 1rem; font-weight: 500; line-height: 52px; padding: 0 30px; border-radius: 100px; text-transform: none; letter-spacing: normal; }
.istrice-blog__excerpt .wp-block-post-excerpt__more-link:hover { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--white); }
.istrice-blog__crumbs { margin: 0 0 14px; font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; }
.istrice-blog__crumbs a { color: var(--wp--preset--color--accent-4); }
.istrice-blog__crumbs a:hover { color: var(--wp--preset--color--contrast); }
.istrice-blog__crumbs span { margin: 0 6px; color: #9a9a9a; }
.istrice-blog .wp-block-query-title { word-break: break-word; }

/* Blog: la foto destacada rellena la caja de 930×419 recortando (como la vieja), nunca con bandas */
.istrice-blog .wp-block-post-featured-image { aspect-ratio: 20 / 9; overflow: hidden; background: transparent; }
.istrice-blog .wp-block-post-featured-image a, .istrice-blog .wp-block-post-featured-image img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Cursos (plugin istrice-cursos + templates/single-curso.html) */
.istrice-curso-single__format { margin: 0; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wp--preset--color--accent-4); }
.istrice-curso-single__price { margin: 0; font-size: 1.25rem; color: var(--wp--preset--color--accent-2); }
.istrice-cursos .wp-element-button { display: inline-block; }


/* Selector de idioma propio en la cabecera: «ES · EN», pequeño, el actual en negro y los demás
   en gris; sin banderas ni cajas. */
.istrice-lang { display: flex; align-items: center; gap: 6px; height: 24px; margin-left: 6px; font-family: var(--wp--preset--font-family--outfit); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.08em; line-height: 1; }
.istrice-lang__item { color: var(--wp--preset--color--accent-4); text-decoration: none; padding: 2px 0; }
.istrice-lang__item:hover { color: var(--wp--preset--color--accent-5); }
.istrice-lang__item.is-current { color: var(--wp--preset--color--contrast); border-bottom: 1.5px solid var(--wp--preset--color--contrast); }
.istrice-lang__sep { color: #b5b5b5; }

/* Hueco entre la cabecera y el contenido: el mismo en todas las páginas menos la portada
   (Raúl, 23/09: «desde la cabecera hasta el título hay demasiado espacio, unificarlo; la
   portada pegada arriba»). La vieja tiene 40–50 px. Antes: páginas 140, blog 60, tienda 19.
   50 px en ordenador, 32 px en móvil. */
body:not(.home) .wp-site-blocks > header + * { margin-top: 0 !important; }
body:not(.home) .wp-site-blocks > main,
body:not(.home) .wp-site-blocks > header + .wp-block-group > main { margin-top: 0 !important; padding-top: clamp(32px, 3.5vw, 50px) !important; }
body:not(.home) .wp-site-blocks main > :first-child { margin-top: 0 !important; }
body:not(.home) .wp-site-blocks main > .wp-block-group.alignfull:first-child { padding-top: 0 !important; }
body:not(.home) .wp-site-blocks main > .wp-block-post-content:first-child > .wp-block-woocommerce-checkout:first-child { padding-top: 0 !important; }

/* Revisión general (Raúl, 23/09): textos descuadrados */
/* Tienda: el título «Tienda» alineado con la rejilla de categorías (en la vieja, igual). */
body.page-id-9 .wp-site-blocks main .wp-block-post-title { max-width: var(--wp--style--global--wide-size) !important; }
/* Listados y Carrito: sin los 19 px de más encima del primer elemento (queda en 50 como el resto). */
body:not(.home) .wp-site-blocks main > .wc-block-store-notices + .wp-block-group { margin-top: 0 !important; }
body.woocommerce-cart .wp-site-blocks main > .wp-block-post-title,
body.woocommerce-checkout .wp-site-blocks main > .wp-block-post-title { margin-top: 0 !important; }
/* Ficha en móvil: el selector de tamaño cabía mal y la página se iba 6 px hacia el lado. */
@media (max-width: 600px) {
	.woocommerce div.product form.cart table.variations,
	.woocommerce div.product form.cart table.variations tbody { display: block; width: 100%; }
	.woocommerce div.product form.cart table.variations tr { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
	.woocommerce div.product form.cart table.variations th,
	.woocommerce div.product form.cart table.variations td { display: block; width: 100%; padding: 0; }
	.woocommerce div.product form.cart .variations td.value { display: flex; }
	.woocommerce div.product form.cart .variations select { min-width: 0; width: 100%; flex: 1 1 auto; }
}
/* Móvil: el mismo margen lateral que el logo (24 px) en todas las páginas. */
@media (max-width: 900px) { body { --wp--style--root--padding-left: 24px !important; --wp--style--root--padding-right: 24px !important; } }

/* Formulario de Contacto como el de la vieja (medido 23/09): campos de 605 px × 48, borde gris
   fino, esquinas de 3 px, etiquetas 16 px 500, botón rosa. El del pie (newsletter) no se toca. */
main .wpcf7 form > p { margin: 0 0 20px; }
main .wpcf7 label { display: block; font-size: 1rem; font-weight: 500; color: var(--wp--preset--color--contrast); }
main .wpcf7 .wpcf7-form-control-wrap { display: block; margin-top: 8px; }
main .wpcf7 input[type="text"], main .wpcf7 input[type="email"], main .wpcf7 input[type="tel"], main .wpcf7 textarea { box-sizing: border-box; width: 100%; max-width: 605px; height: 48px; padding: 0 12px; background: transparent; border: 1px solid #d1d1d6; border-radius: 3px; font-family: inherit; font-size: 0.875rem; color: var(--wp--preset--color--contrast); }
main .wpcf7 textarea { height: 206px; padding: 12px; resize: vertical; display: block; }
main .wpcf7 input:focus-visible, main .wpcf7 textarea:focus-visible { outline: 2px solid var(--wp--preset--color--accent-1); outline-offset: 1px; }
main .wpcf7 input[type="submit"] { background: var(--wp--preset--color--accent-1); color: var(--wp--preset--color--white); border: 0; border-radius: 3px; padding: 16px 32px 15px; font-family: inherit; font-size: 0.8125rem; font-weight: 500; text-transform: capitalize; cursor: pointer; }
main .wpcf7 input[type="submit"]:hover { background: var(--wp--preset--color--contrast); }

/* Textos pequeños de carrito, carrito lateral y pago en Outfit: en la letra de títulos no se
   leían (Raúl, 23/09). Los títulos grandes («Carrito», «Tu carrito») siguen en «bright». */
.wc-block-components-product-name { font-family: var(--wp--preset--font-family--outfit) !important; font-size: 1rem !important; font-weight: 500 !important; line-height: 1.3; color: var(--wp--preset--color--contrast); text-decoration: none; }
.wc-block-components-checkout-step__title,
.wc-block-components-checkout-order-summary__title-text,
.wc-block-cart__totals-title { font-family: var(--wp--preset--font-family--outfit) !important; font-weight: 600 !important; }
.wc-block-components-checkout-step__title { font-size: 1.125rem !important; }

/* Ficha de producto de un solo tamaño: el «clearfix» de WooCommerce (::before/::after) contaba
   como hueco del flex y la cantidad salía 16 px a la derecha del precio y del texto. */
.woocommerce div.product form.cart:not(.variations_form)::before,
.woocommerce div.product form.cart:not(.variations_form)::after,
.woocommerce div.product .woocommerce-variation-add-to-cart::before,
.woocommerce div.product .woocommerce-variation-add-to-cart::after { content: none; display: none; }

/* Descripción corta de la ficha con sus párrafos (functions.php). */
.istrice-short-description p { margin: 0 0 8px; }
.istrice-short-description p:last-child { margin-bottom: 0; }

/* Iconos de compartir en la ficha (functions.php): pequeños, oscuros, sin fondo, como la vieja. */
.istrice-share-box { margin: 4px 0 24px; }
.istrice-share-box .wp-block-social-links.istrice-share { gap: 14px; margin: 0; padding: 0; }
.istrice-share-box .wp-social-link { background: none !important; color: var(--wp--preset--color--contrast) !important; border-radius: 0; }
.istrice-share-box .wp-social-link a { padding: 0; }
.istrice-share-box .wp-social-link svg { width: 16px; height: 16px; }
.istrice-share-box .wp-social-link:hover { color: var(--wp--preset--color--accent-1) !important; transform: none; }

/* Redes en cuadrados rosas (página Encargos), como en la vieja: 52 px, 5 px de hueco. */
.istrice-social-squares.wp-block-social-links { gap: 5px; margin: 0; padding: 0; }
.istrice-social-squares .wp-social-link { width: 52px; height: 52px; border-radius: 3px; background: var(--wp--preset--color--accent-1) !important; color: var(--wp--preset--color--white) !important; display: flex !important; align-items: center; justify-content: center; }
.istrice-social-squares .wp-social-link a { padding: 0; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.istrice-social-squares .wp-social-link svg { width: 26px; height: 26px; }
.istrice-social-squares .wp-social-link:hover { background: var(--wp--preset--color--contrast) !important; transform: none; }

/* Páginas con contenido ancho (Encargos, Tienda): el título alineado con el contenido. */
.wp-site-blocks main:has(.wp-block-post-content > .alignwide:first-child) .wp-block-post-title { max-width: var(--wp--style--global--wide-size) !important; }
