/* Copia en bloques del diseño de Elementor. Valores medidos en producción (2026-11-13, 1440 px). */
:root {
	--av-green: #225a4e;
	--av-gold: #edc461;
	--av-box: 1140px;
}
.av-gold { color: #edc461; }

/* Bloques a ancho completo dentro del contenedor de Astra (diseño «page-builder»). */
.page-template-page-bloques .entry-content > * { margin-block: 0; }
.page-template-page-bloques .entry-content { margin: 0; }

/* Cabecera: logo, menú y redes. Anchos de Elementor: 7 % / 75 % / 15 % del ancho útil. */
body .entry-content > .av-navbar.wp-block-group,
.av-site-header > .av-navbar.wp-block-group {
	display: flex;
	gap: 5px;
	align-items: center;
	min-height: 10vh;
	padding: 10px;
	background: #fff;
	box-sizing: border-box;
}
.av-navbar > * { margin-block: 0; }
.av-navbar .av-navbar__logo { margin: 0; width: 7%; flex: none; text-align: center; }
.av-navbar__logo img { width: 60%; height: auto; aspect-ratio: 1; border-radius: 65%; }
.av-navbar__menu { flex: 0 1 75%; }
.av-navbar .av-navbar__menu .wp-block-navigation-item__content {
	padding: 15px;
	font-size: 19px;
	line-height: 19px;
	color: var(--av-green);
}
.av-navbar__menu .wp-block-navigation__container { gap: 0; }
.av-navbar__menu .wp-block-navigation__responsive-container-open,
.av-navbar__menu .wp-block-navigation__responsive-container-close { color: var(--av-green); }
/* Carrito: ocupa el sitio de las redes (15 %), pegado a la derecha, y también se ve en móvil. */
.av-navbar .av-navbar__shop {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	width: 15%;
	padding: 10px;
	box-sizing: border-box;
	flex: none;
}
/* Astra pinta todos los botones en dorado: aquí es solo un icono, como las redes que sustituye. */
body .av-navbar__shop .wc-block-mini-cart__button {
	padding: 10px;
	background: transparent;
	color: var(--av-green);
	box-shadow: none;
}
.av-navbar__shop .wc-block-mini-cart__button:hover { background: transparent; opacity: .7; }
/* «body .av-navbar» gana a la regla de WooCommerce que dejaba el icono en 19–21 px. */
body .av-navbar .av-navbar__shop .wc-block-mini-cart__icon { width: 28px; height: 28px; }
/* Búsqueda de productos (patrón aviario/cabecera): lupa junto al carrito, mismo tamaño y color; el campo se abre
   bajo la cabecera, a la derecha. */
.av-navbar.wp-block-group { position: relative; }
.av-navbar__shop > * { margin-block: 0; } /* el diseño «flow» separaba el carrito de la lupa */
.av-search__toggle { display: flex; align-items: center; justify-content: center; padding: 10px; color: var(--av-green); list-style: none; cursor: pointer; }
.av-search__toggle::-webkit-details-marker { display: none; }
.av-search__toggle:hover { opacity: .7; }
.av-search__toggle:focus-visible { outline: 2px solid var(--av-green); outline-offset: 2px; }
.av-search__toggle svg { width: 28px; height: 28px; }
.av-search__panel {
	position: absolute;
	top: 100%;
	right: 10px;
	z-index: 100;
	display: flex;
	gap: 8px;
	align-items: center;
	width: min(440px, calc(100% - 20px));
	padding: 12px;
	border: 1px solid #d5dbd9;
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
	box-sizing: border-box;
}
.av-search__panel form { display: flex; flex: 1; gap: 8px; min-width: 0; margin: 0; }
.av-search__panel .search-field { flex: 1; min-width: 0; min-height: 44px; }
body .av-search__panel form button { min-height: 44px; padding: 0 16px; border: 0; border-radius: 6px; background: var(--av-green); color: #fff; }
body .av-search__panel form button:hover { background: #edc461; color: var(--av-green); }
body .av-search__panel .av-search__close { min-width: 44px; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--av-green); font-size: 28px; line-height: 1; }
body .av-search__panel button:focus-visible { outline: 2px solid var(--av-green) !important; outline-offset: 2px; }
html:not(.av-js) .av-search__close { display: none; }
@media (max-width: 1024px) {
	.av-navbar { justify-content: space-between; }
	.av-navbar .av-navbar__shop { width: auto; }
}
/* Móvil (el menú se pliega en el botón de 3 rayas): logo a la izquierda; carrito y menú juntos a la derecha. */
@media (max-width: 600px) {
	.av-navbar .av-navbar__shop { order: 2; margin-left: auto; padding: 10px 0; }
	.av-navbar .av-navbar__menu { order: 3; flex: none; }
	/* Menú desplegado: margen a los lados (los enlaces salían pegados al borde). */
	body .av-navbar__menu .wp-block-navigation__responsive-container.is-menu-open { padding: 24px; }
	/* Iconos de carrito y menú a 34 px, con zona táctil de 44 px (antes 28 y 24 px). */
	body .av-navbar .av-navbar__shop .wc-block-mini-cart__icon { width: 34px; height: 34px; }
	.av-navbar__shop .wc-block-mini-cart__button { padding: 5px; min-width: 44px; min-height: 44px; }
	.av-navbar__menu .wp-block-navigation__responsive-container-open { padding: 5px; min-width: 44px; min-height: 44px; }
	.av-navbar__menu .wp-block-navigation__responsive-container-open svg { width: 34px; height: 34px; }
	.av-search__toggle { min-width: 44px; min-height: 44px; padding: 5px; box-sizing: border-box; }
	.av-search__toggle svg { width: 34px; height: 34px; }
	.av-search__panel { left: 16px; right: 16px; width: auto; }
}

/* Las secciones de primer nivel llevan «body .entry-content >» para ganar a Astra, que fija
   ancho y relleno de los grupos (.ast-page-builder-template .entry-content[data-ast-blocks-layout] > *). */

/* Hero con foto, capa negra al 30 % y onda inferior. */
body .entry-content > .av-hero.wp-block-group {
	position: relative;
	min-height: 420px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 20px;
	padding: 10px max(10px, calc((100% - var(--av-box)) / 2 + 10px));
	box-sizing: border-box;
	overflow: hidden;
}
.av-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: #000;
	opacity: .3;
}
.av-hero > * { position: relative; z-index: 1; }
.av-hero .av-hero__kicker {
	margin: 0;
	font-size: 16px;
	line-height: 24px;
	color: var(--av-gold);
}
.av-hero .av-hero__title {
	margin: 0;
	width: fit-content;
	font-size: 50px;
	line-height: 70px;
	font-weight: 400;
	letter-spacing: -3px;
	color: #fff;
	text-align: center;
}
.av-hero .av-hero__title--second { margin-top: -40px; }
.av-hero .av-hero__kicker--up { margin-top: -20px; }
.av-hero--bottom { background-position: 50% 100% !important; }

/* Las ondas superiores sobresalen de la ventana: sin barra horizontal. */
.page-template-page-bloques #page { overflow-x: clip; }

/* Ondas de Elementor («waves», volteadas): máscara sobre assets/waves.svg. */
.av-wave-bottom::after,
.av-wave-top::before {
	content: "";
	position: absolute;
	left: 50%;
	background: var(--av-green);
	-webkit-mask: url(waves.svg) center / 100% 100% no-repeat;
	mask: url(waves.svg) center / 100% 100% no-repeat;
	pointer-events: none;
}
.av-wave-bottom::after {
	bottom: -1px;
	width: 150%;
	height: 160px;
	transform: translateX(-50%) rotate(180deg) scaleX(-1);
	z-index: 1;
}
.av-wave-top { position: relative; }
/* La sección va en caja, pero en Elementor la onda ocupa el ancho de la ventana. */
.av-wave-top::before {
	top: -1px;
	width: 218vw;
	height: 44.8px;
	transform: translateX(-50%) scaleX(-1);
}

/* Sección de contenido en caja de 1140 px. */
body .entry-content > .av-section.wp-block-group {
	max-width: var(--av-box);
	margin: 0 auto;
	padding: 100px 10px 20px;
	box-sizing: border-box;
}
.av-section .av-section__title { margin: 10px; font-size: 30px; line-height: 39px; font-weight: 400; color: var(--av-green); }
/* Contenedor en caja por defecto de Elementor: 10 px de relleno, 1140 de contenido y 20 de separación. */
body .entry-content > .av-section.av-section--box.wp-block-group { display: flex; flex-direction: column; gap: 20px; max-width: calc(var(--av-box) + 20px); padding: 10px; }
.av-section--box > * { margin-block: 0; }

/* Pestañas (antes Essential Addons «Advanced Tabs»). El script las monta a partir de cada .av-tab. */
.av-tabs { margin-top: 30px; box-shadow: 0 0 10px rgba(0, 0, 0, .5); }
.av-tabs__nav { display: flex; margin: 0; padding: 0; list-style: none; }
.av-tabs__nav button {
	flex: 1 1 auto;
	display: flex;
	gap: 8px;
	align-items: center;
	justify-content: center;
	padding: 16px 24px;
	border: 0;
	border-radius: 0;
	background: #f1f1f1;
	color: #333;
	font: inherit;
	font-size: 16px;
	line-height: 27.2px;
	cursor: pointer;
	position: relative;
}
.av-tabs__nav button[aria-selected="true"] { background: #444; color: #fff; }
.av-tabs__nav button[aria-selected="true"]::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -10px;
	transform: translateX(-50%);
	border: 9.6px solid transparent;
	border-bottom: 0;
	border-top-color: #444;
}
.av-tabs__nav button::before {
	content: "";
	width: 16px;
	height: 16px;
	background: currentColor;
	-webkit-mask: var(--av-icon) center / contain no-repeat;
	mask: var(--av-icon) center / contain no-repeat;
}
.av-icon-lightbulb { --av-icon: url(fa-lightbulb.svg); }
.av-icon-list-alt { --av-icon: url(fa-list-alt.svg); }
.av-icon-question-circle { --av-icon: url(fa-question-circle.svg); }
.av-tabs > .av-tab { margin-block: 0; background: #f6f8f5; padding: 16px; }
.av-tabs.is-ready .av-tab__label { display: none; }
.av-tab[hidden] { display: none; }
.av-indent { padding-left: 2.5em; }

/* Ficha del producto dentro de «Información» (antes plantilla 2312). */
.av-product { max-width: 1200px; margin: 90px auto 50px !important; gap: 0 !important; }
.wp-block-columns.av-product .wp-block-column:not(:last-child) { margin-bottom: 0; }
.av-product__media { padding: 10px 10px 10px 90px; }
.av-product__media img { width: 100%; height: auto; }
.av-product__body { padding: 10px 10px 10px 50px; display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.av-product__body > * { margin-block: 0; }
.av-product__body h2 { margin: 0; font-size: 30px; line-height: 39px; font-weight: 400; color: var(--av-green); }
.av-product__text { padding-right: 120px; }
.av-product__text p { margin: 0; font-size: 15px; line-height: 30px; color: #333; text-align: justify; }
.av-product .av-product__price {
	margin: 10px 0 14px 1px;
	font-size: 23px;
	line-height: 31px;
	font-weight: 400;
	letter-spacing: -1px;
	color: var(--av-green);
}

/* Tableta y móvil (valores de producción a 390 px). */
@media (max-width: 1024px) {
	body .entry-content > .av-hero.wp-block-group { min-height: 330px; }
	.av-wave-bottom::after { height: 80px; width: calc(300vw + 1.3px); }
	.av-wave-top::before { height: 36px; width: 180vw; }
}
@media (max-width: 767px) {
	.av-navbar .av-navbar__logo { width: auto; }
	.av-navbar__logo img { width: 55px; height: 55px; }
	.av-hero .av-hero__kicker { font-size: 14px; }
	.av-hero .av-hero__title { width: auto; font-size: 44px; line-height: 61.6px; }
	.av-hero .av-hero__kicker--up { margin-top: -25px; }
	body .entry-content > .av-section.wp-block-group { padding: 93px 20px 20px; }
	.av-section .av-section__title,
	.av-product__body h2 { font-size: 25px; line-height: 32.5px; }
	.av-tabs__nav { flex-wrap: wrap; }
	.av-tabs__nav button { padding: 14.6px 21.9px; font-size: 14.6px; line-height: 24.8px; }
	.av-tabs > .av-tab { padding: 14.6px; }
	.av-product { margin: 60px 0 !important; flex-direction: column; }
	.av-product__media { padding: 0 20px 20px; }
	.av-product__body { padding: 0 20px; }
	.av-product__text { padding-right: 0; }
	.av-product .av-product__price { margin: -6px 0 10px; font-size: 19px; }
}

/* Contacto (página 16). Cada columna apila sus bloques con 20 px, como los contenedores de Elementor. */
body .entry-content > .av-contact.wp-block-group { padding: 120px 0; display: flex; flex-direction: column; align-items: center; gap: 20px; }
body .entry-content > .av-contact.wp-block-group > * { margin-block: 0; }
.av-contact .av-contact__cols { width: 100%; max-width: var(--av-box); margin: 0; gap: 0; }
.wp-block-columns.av-contact__cols .wp-block-column:not(:last-child) { margin-bottom: 0; }
.av-contact__where, .av-contact__form { display: flex; flex-direction: column; gap: 20px; }
.av-contact__where > *, .av-contact__form > * { margin-block: 0; }
.av-contact__where { padding: 0 50px; }
.av-contact__form { padding: 0 50px 0 0; }
.av-contact .av-contact__title { margin: 0; padding-bottom: 15px; font-size: 40px; line-height: 56px; letter-spacing: -2px; font-weight: 400; color: var(--av-green); }
.av-contact__where figure { margin: 0; }
.av-contact__where img { width: 100%; height: auto; }
.av-contact__item { padding: 6px 0 25px; color: var(--av-green); }
.av-contact__item > * { margin-block: 0; }
.av-contact__item h6 { margin: 0 0 5px; font-size: 14px; line-height: 18px; font-weight: 400; color: var(--av-green); }
.av-contact__item p { margin: 0; font-size: 18px; line-height: 30px; }
.av-social { display: flex; gap: 12px; justify-content: center; }
.av-social__icon {
	width: 46.2px;
	height: 46.2px;
	border-radius: 50%;
	background: var(--av-green);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.av-social__icon::before {
	content: "";
	width: 22px;
	height: 22px;
	background: #fff;
	-webkit-mask: var(--av-icon) center / contain no-repeat;
	mask: var(--av-icon) center / contain no-repeat;
}
.av-icon-instagram { --av-icon: url(fa-instagram.svg); }
.av-icon-youtube { --av-icon: url(fa-youtube.svg); }
.av-icon-tiktok { --av-icon: url(fa-tiktok.svg); }
.av-icon-facebook-f { --av-icon: url(fa-facebook-f.svg); }
/* Móvil: el formulario va primero (column-reverse de Elementor) y todo centrado. */
@media (max-width: 767px) {
	body .entry-content > .av-contact.wp-block-group { padding: 40px 20px 70px; }
	.av-contact .av-contact__cols { flex-direction: column-reverse; }
	.av-contact__where { padding: 40px 0 0; text-align: center; }
	.av-contact__form { padding: 0; }
	.av-contact .av-contact__title { font-size: 36px; line-height: 50.4px; text-align: center; }
	.av-contact__item { padding: 7px 0 15px; }
	.av-contact__item h6 { margin-bottom: 8px; font-size: 13px; }
	.av-contact__item p { font-size: 17px; }
	.av-contact .av-social { gap: 13px; }
	body .entry-content > .av-contact.wp-block-group > .av-social { margin-top: 15px; }
	.av-social__icon { width: 42px; height: 42px; }
}

/* Visibilidad por dispositivo (puntos de corte de Elementor: tableta ≤1024 px, móvil ≤767 px). */
@media (max-width: 1024px) { .av-desktop-only { display: none !important; } }
@media (max-width: 767px) { .av-hide-mobile { display: none !important; } }
@media (min-width: 768px) { .av-only-mobile { display: none !important; } }

/* Inicio (página 11). */
.av-navbar:has(+ .av-home-hero) { background: #eee; }
body .entry-content > .av-home-hero.wp-block-group {
	position: relative;
	overflow: hidden;
	display: flex;
	min-height: 90vh;
	/* 40 px abajo: el contenedor vacío final de Elementor (20 px) y su separación (20 px). */
	padding: 50px 0 40px;
	box-sizing: border-box;
}
.av-home-hero::before { content: ""; position: absolute; inset: 0; background: #000; opacity: .3; }
.av-home-hero.av-wave-bottom::after { width: 150vw; height: 10rem; }
.av-home-hero .av-home-hero__wave {
	position: absolute;
	top: -1px;
	left: 50%;
	z-index: 1;
	width: 218%;
	height: 2.8rem;
	background: #eee;
	-webkit-mask: url(waves.svg) center / 100% 100% no-repeat;
	mask: url(waves.svg) center / 100% 100% no-repeat;
	transform: translateX(-50%) scaleX(-1);
	pointer-events: none;
}
.av-home-hero > * { margin-block: 0; }
.av-home-hero .av-home-hero__content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-end;
	gap: 20px;
	width: 100%;
	max-width: var(--av-box);
	margin: 0 auto;
}
.av-home-hero__content > * { margin-block: 0; }
.av-home-hero__spacer { height: 50px; }
.av-home-hero .av-home-hero__title {
	width: fit-content;
	margin: -50px 0 0;
	font-size: 117px;
	line-height: 1.4;
	font-weight: 400;
	letter-spacing: -3px;
	color: #fdfdfd;
	text-align: center;
}
.av-home-hero .av-home-hero__text { width: fit-content; margin-top: -20px; text-align: end; color: #fff; }
.av-home-hero__text p { margin: 0; font-size: 16px; line-height: 24px; }
.av-home-hero .av-home-hero__buttons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	width: 40%;
	padding: 10px;
	box-sizing: border-box;
}
.av-home-hero__buttons .av-btn { margin: 10px 0 0; text-align: center; }
.av-home-hero__buttons .av-btn .wp-block-button__link { width: auto; }
.av-btn .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 17px;
	padding: 17px 40px;
	border: 0;
	border-radius: 30px;
	background: var(--av-green);
	box-shadow: 0 0 10px rgba(0, 0, 0, .5);
	color: #fdfdfd;
	font-size: 14px;
	line-height: 14px;
	font-weight: 400;
}
.av-btn.av-btn--light .wp-block-button__link { background: #bccfcb91; }
.av-btn--icon-edit .wp-block-button__link::after {
	content: "";
	width: 15.75px;
	height: 14px;
	background: currentColor;
	-webkit-mask: url(fa-edit.svg) center / contain no-repeat;
	mask: url(fa-edit.svg) center / contain no-repeat;
}

/* Inicio: secciones. */
body .entry-content > .av-home-cards.wp-block-group { position: relative; padding: 70px 0; }
.av-wave-top--180::before { width: 180%; height: 2.5rem; }
.av-box { display: flex; flex-direction: column; gap: 20px; max-width: var(--av-box); margin: 0 auto; padding: 10px; box-sizing: border-box; }
.wp-block-group.av-box > * { margin-block: 0; }
.av-home-title { margin: 0; font-size: 40px; line-height: 1.3; font-weight: 400; letter-spacing: -2px; color: var(--av-green); }
.av-home-title.av-home-title--spaced { margin: 20px 20px 20px 0; }
.av-cards.wp-block-columns { gap: 0; margin: 0; padding-top: 25px; }
.wp-block-columns.av-cards .wp-block-column:not(:last-child) { margin-bottom: 0; }
.av-card { display: flex; flex-direction: column; gap: 20px; padding: 15px; transition: background .3s; }
.av-card:hover { background: #e9ece9; }
.av-card > * { margin-block: 0; }
.av-card figure { margin: 0; }
.av-card img { display: block; width: 100%; height: 500px; border-radius: 2px; }
.av-card .av-card__body { padding: 6px 10px 0; color: var(--av-green); }
.av-card__body h3 { margin: 0 0 10px; font-size: 20px; line-height: 26px; font-weight: 400; color: var(--av-green); }
.av-card__body p { margin: 0; font-size: 16px; line-height: 27.2px; }
body .entry-content > .av-band.wp-block-group {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 10px max(10px, calc((100% - var(--av-box)) / 2));
	box-sizing: border-box;
}
.av-band > * { margin-block: 0; }
.av-band.av-band--grey { background: #e9ece9; }
.av-band__spacer { height: 2rem; }
.av-video { aspect-ratio: 21 / 9; border-radius: 20px; overflow: hidden; }
.av-video iframe { display: block; width: 100%; height: 100%; border: 0; }

/* Vídeos de YouTube (antes carrusel de Unlimited Elements; sus 3 vídeos caben a la vez). */
.av-videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin: 0; padding: 0 0 27px; list-style: none; }
.av-videos__item {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 360 / 202;
	padding: 0;
	border: 0;
	border-radius: 15px;
	overflow: hidden;
	background: none;
	cursor: pointer;
}
.av-videos__item img { width: 100%; height: 100%; object-fit: cover; }
.av-videos__item::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .32); }
.av-videos__item::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 60px;
	height: 60px;
	border-radius: 100%;
	background: rgba(255, 255, 255, .21);
	transform: translate(-50%, -50%);
}
.av-videos__play {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 1;
	width: 26.25px;
	height: 30px;
	background: #fff;
	-webkit-mask: url(fa-play.svg) center / contain no-repeat;
	mask: url(fa-play.svg) center / contain no-repeat;
	transform: translate(-45%, -50%);
}
.av-videos iframe { display: block; width: 100%; aspect-ratio: 360 / 202; border: 0; border-radius: 15px; }

/* Últimas entradas (antes «Basic Posts» de UAE). */
.av-posts .wp-block-post-template { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 20px; margin: 0; padding: 0; list-style: none; }
.av-posts .wp-block-post { margin: 0; background: #f6f6f6; }
.av-posts .wp-block-post-featured-image { margin: 0; }
.av-posts .wp-block-post-featured-image img { display: block; width: 100%; height: auto; }
.av-posts .av-posts__content { padding: 20px; }
.av-posts__content > * { margin-block: 0; }
.av-posts .wp-block-post-title { margin: 0 0 5px; font-size: 20px; line-height: 26px; font-weight: 400; }
.av-posts .wp-block-post-title a { color: var(--av-green); text-decoration: none; }
.av-posts .wp-block-post-date { margin: 0 0 15px; font-size: 12px; line-height: 15.6px; color: #000; }
.av-posts .wp-block-post-excerpt { margin: 0; }
.av-posts .wp-block-post-excerpt__excerpt { margin: 0 0 15px; font-size: 16px; line-height: 27.2px; color: #000; }
.av-posts .wp-block-post-excerpt__more-text { margin: 0; font-size: 16px; line-height: 27.2px; }
.av-posts .wp-block-post-excerpt__more-link { color: var(--av-green); text-decoration: none; }
.av-blog-banner { margin: 0; border-radius: 10px; }
.av-blog-banner a { display: block; }
.av-blog-banner img { display: block; width: 100%; height: auto; border-radius: 20px; }

/* Carrusel de patrocinadores (antes «Image Carousel» de Elementor): 3 / 2 / 1 por vista. */
.av-carousel { --per-view: 3; position: relative; overflow: hidden; padding-bottom: 30px; }
.av-carousel__track { display: flex; margin: 0; padding: 0; list-style: none; transition: transform .5s; }
.av-carousel__track li { flex: 0 0 calc(100% / var(--per-view)); text-align: center; }
.av-carousel__track img { display: inline-block; width: 150px; height: 150px; }
.av-carousel__arrow {
	position: absolute;
	top: 75px;
	width: 25px;
	height: 25px;
	padding: 0;
	border: 0;
	background: var(--av-green);
	-webkit-mask: var(--av-icon) center / contain no-repeat;
	mask: var(--av-icon) center / contain no-repeat;
	transform: translateY(-50%);
	cursor: pointer;
}
.av-carousel__arrow--prev { left: 10px; --av-icon: url(eicon-chevron-left.svg); }
.av-carousel__arrow--next { right: 10px; --av-icon: url(eicon-chevron-right.svg); }
.av-carousel__dots { position: absolute; bottom: 13px; left: 0; right: 0; display: flex; justify-content: center; margin: 0; padding: 0; list-style: none; }
.av-carousel__dots button { width: 6px; height: 6px; margin: 0 6px; padding: 0; border: 0; border-radius: 50%; background: #000; opacity: .2; cursor: pointer; }
.av-carousel__dots button[aria-current="true"] { opacity: 1; }

@media (max-width: 1024px) {
	body .entry-content > .av-home-hero.wp-block-group { min-height: 480px; padding: 85px 15px 65px; background-position: 0% 100% !important; }
	.av-home-hero .av-home-hero__title { margin-top: -45px; font-size: 98px; letter-spacing: -2px; }
	.av-home-hero__text p { font-size: 18px; }
	.av-home-hero .av-home-hero__buttons { width: 500px; }
	.av-btn .wp-block-button__link { padding: 16px 32px; font-size: 16px; }
	.av-home-title { font-size: 38px; }
	.av-card img { height: 400px; }
	.av-carousel { --per-view: 2; }
}
@media (max-width: 767px) {
	body .entry-content > .av-home-hero.wp-block-group { min-height: 414px; padding: 79px 15px 55px; }
	.av-home-hero.av-wave-bottom::after { width: 300vw; height: 5.5rem; }
	.av-home-hero .av-home-hero__buttons { grid-template-columns: 1fr; width: 100%; }
	.av-home-hero__buttons .av-btn { margin: 0; }
	.av-btn .wp-block-button__link { padding: 15px 28px; font-size: 14px; }
	body .entry-content > .av-home-cards.wp-block-group { padding: 50px 0; }
	.av-home-title { font-size: 34px; }
	.av-cards.wp-block-columns { padding-top: 0; }
	.av-card { padding: 30px 15px 40px; }
	.av-card:last-child { padding-bottom: 0; }
	.av-card__body p { font-size: 14.592px; line-height: 24.8064px; }
	.av-video { aspect-ratio: 16 / 9; }
	.av-carousel { --per-view: 1; }
}

/* Cabecera de la tienda: botones de categoría (antes botones de Elementor en la plantilla 3451 de UAE). */
.av-site-header .wp-block-buttons.rq-cat-pills { gap: 10px; max-width: 1200px; margin: 0 auto; padding: 30px 20px 0; box-sizing: content-box; }
.rq-cat-pills .rq-pill { margin: 0; }
.rq-pill .wp-block-button__link {
	display: inline-block;
	padding: 8px 18px;
	border: 1px solid var(--av-green);
	border-radius: 999px;
	background: #fff;
	color: var(--av-green);
	font-size: 15px;
	line-height: 15px;
	font-weight: 400;
	text-decoration: none;
	transition: all .2s;
}
/* Astra pone el texto de los botones en blanco al pasar el ratón: aquí se mantiene el verde sobre el gris. */
.rq-cat-pills .rq-pill:not(.is-active) .wp-block-button__link:hover,
.rq-cat-pills .rq-pill:not(.is-active) .wp-block-button__link:focus { background: #e9ece9; color: var(--av-green); }
.rq-pill.is-active .wp-block-button__link { background: var(--av-green); color: #fff; }

/* Botones de la tienda (ficha, relacionados, carrito, pago y mini-carrito) en el verde de la marca, como las
   tarjetas del listado; Astra los pintaba en dorado. El dorado queda para el hover, igual que en el listado. */
body.woocommerce-page .button,
body.woocommerce-page button.button,
body.woocommerce-page a.button,
body.woocommerce-page #place_order,
body .single_add_to_cart_button,
body .wc-block-mini-cart__footer .wc-block-components-button {
	background-color: var(--av-green) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 6px !important;
}
body.woocommerce-page .button:hover,
body.woocommerce-page button.button:hover,
body.woocommerce-page a.button:hover,
body.woocommerce-page #place_order:hover,
body .single_add_to_cart_button:hover,
body .wc-block-mini-cart__footer .wc-block-components-button:hover { background-color: #edc461 !important; color: var(--av-green) !important; }

/* Paginación de la tienda: la página actual tenía fondo y número verdes (número invisible). */
body .woocommerce-pagination ul.page-numbers li span.current { background-color: var(--av-green); color: #fff; }
body .woocommerce-pagination ul.page-numbers li a.page-numbers:hover { background-color: var(--av-green); color: #fff; }

/* Botones de variación (assets/swatches.js): mismo estilo que los botones de categoría de la tienda. */
.av-js .av-swatch-select { display: none !important; }
html:not(.av-js) .av-swatches { display: none; }
.av-swatches { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
body .av-swatches .av-swatch {
	min-width: 44px;
	min-height: 40px;
	padding: 8px 14px;
	border: 1px solid var(--av-green);
	border-radius: 999px;
	background: #fff;
	color: var(--av-green);
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
}
body .av-swatches .av-swatch:hover { background: #e9ece9; }
body .av-swatches .av-swatch.is-selected { background: var(--av-green); color: #fff; }
body .av-swatches .av-swatch:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; background: #fff; color: var(--av-green); }
body .av-swatches .av-swatch:focus-visible { outline: 2px solid var(--av-green); outline-offset: 2px; }

/* Tarjetas del listado y de «Productos relacionados»: precio y botón al pie, a la misma altura en toda la fila
   aunque el título ocupe más líneas. */
body ul.products li.product { display: flex; flex-direction: column; }
body ul.products li.product .astra-shop-summary-wrap { flex: 1 1 auto; display: flex; flex-direction: column; }
body ul.products li.product .astra-shop-summary-wrap .price { margin-top: auto; }
body ul.products li.product .astra-shop-summary-wrap .button { white-space: nowrap; }

/* Ficha de un pack: «Por separado: … · Ahorras …» bajo el precio (functions.php). */
.single-product .summary .av-pack-saving { margin: -.5em 0 1em; font-size: 15px; line-height: 1.4; color: var(--av-green); }

/* Galería de la ficha con varias fotos (flechas en functions.php). La galería pasa a rejilla para que las flechas se
   centren sobre la foto grande y no sobre foto + miniaturas; siempre visibles (en móvil no hay hover). */
.woocommerce-product-gallery:has(> .flex-viewport) { display: grid; grid-template-columns: minmax(0, 1fr); }
.woocommerce-product-gallery > .flex-viewport,
.woocommerce-product-gallery > .flex-direction-nav { grid-area: 1 / 1; }
/* Por debajo de la lupa y la etiqueta de oferta (z-index 9); fuera de las flechas el clic y el deslizar siguen llegando a la foto. */
.woocommerce-product-gallery .flex-direction-nav { z-index: 8; display: flex; justify-content: space-between; align-items: center; margin: 0; padding: 0 8px; list-style: none; pointer-events: none; }
.woocommerce-product-gallery .flex-direction-nav li { margin: 0; }
.woocommerce-product-gallery .flex-direction-nav a {
	position: relative;
	display: block;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .85);
	box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
	font-size: 0; /* el texto «Anterior»/«Siguiente» queda para lectores de pantalla */
	pointer-events: auto;
	transition: opacity .2s;
}
.woocommerce-product-gallery .flex-direction-nav a::before {
	content: "";
	position: absolute;
	inset: 12px;
	background: var(--av-green);
	-webkit-mask: var(--av-icon) center / contain no-repeat;
	mask: var(--av-icon) center / contain no-repeat;
}
.woocommerce-product-gallery .flex-prev { --av-icon: url(eicon-chevron-left.svg); }
.woocommerce-product-gallery .flex-next { --av-icon: url(eicon-chevron-right.svg); }
/* !important: custom.css quita el contorno de foco a todos los enlaces y botones (a:focus { outline: none !important }). */
.woocommerce-product-gallery .flex-direction-nav a:focus-visible,
.woocommerce-product-gallery .woocommerce-product-gallery__trigger:focus-visible { outline: 2px solid var(--av-green) !important; outline-offset: 2px; }
.woocommerce-product-gallery .flex-direction-nav a.flex-disabled { opacity: .35; cursor: default; }
/* Miniaturas: la activa con borde verde, las demás con borde gris y atenuadas. */
body div.product div.images .flex-control-thumbs { margin-top: 12px; }
body div.product div.images .flex-control-thumbs li img { box-sizing: border-box; border: 2px solid #d5dbd9; border-radius: 6px; opacity: .6; transition: opacity .2s, border-color .2s; }
body div.product div.images .flex-control-thumbs li img:hover { opacity: 1; }
body div.product div.images .flex-control-thumbs li img.flex-active { border-color: var(--av-green); opacity: 1; }

/* Ejemplares (página de bloques, fuera de WooCommerce). Tarjetas, rejilla, título, recuento y paginación son los de la
   tienda (marcado de functions.php y reglas agrupadas en custom.css); aquí solo el contenedor de la tienda
   (1200 px + 20 de margen, 64 px arriba y abajo), la etiqueta de sexo sobre la foto y el nombre en dos niveles. */
body .entry-content > .av-ejemplares-seccion.wp-block-group { max-width: 1240px; margin: 0 auto; padding: 64px 20px; box-sizing: border-box; }
.av-ejemplares-seccion > * { margin-block: 0; }
/* Sin el desplegable de orden de la tienda, el recuento lleva su margen inferior (40 px hasta la rejilla). */
.av-ejemplares-lista .woocommerce-result-count { margin-bottom: 41px; }
.av-ejemplares-lista ul.products li.product { cursor: default; }
/* En la tienda la foto va dentro del enlace y Astra le da 0,8 em de margen inferior (.woocommerce ul.products li.product a img). */
.av-ejemplares-lista ul.products li.product .astra-shop-thumbnail-wrap img { margin-bottom: .8em; }
.av-ejemplares-lista .astra-shop-thumbnail-wrap { position: relative; }
.av-ejemplares-lista .av-ejemplar__sexo { position: absolute; top: 10px; left: 10px; padding: 3px 10px; border-radius: 999px; background: var(--av-green); color: #fff; font-size: 13px; font-weight: 500; line-height: 1.4; }
body .av-ejemplares-lista ul.products li.product .woocommerce-loop-product__title { font-size: 16px; line-height: 1.3; margin: 0; }
.av-ejemplares-lista .av-ejemplar__linea { margin: 4px 0 0; font-size: 13px; line-height: 1.35; color: #5f6b67; }
@media (max-width: 544px) {
	body .av-ejemplares-lista ul.products li.product .astra-shop-summary-wrap { padding: 0 12px; }
	body .av-ejemplares-lista ul.products li.product .woocommerce-loop-product__title { font-size: 14px; }
	.av-ejemplares-lista .av-ejemplar__linea { font-size: 12px; }
	body .av-ejemplares-seccion .page-title { font-size: 30px; line-height: 1.2; letter-spacing: -1px; text-wrap: balance; }
}

/* Prefooter de la formación (patrón aviario/prefooter-formacion): la ficha de Cursos (.av-product: imagen y texto en
   columnas) sobre una banda verde, con el título en dorado y el botón estándar de la web. Círculos del Figma tras la guía. */
/* Raya blanca del Figma: separa la banda del pie, que es del mismo verde. */
body .entry-content > .av-prefooter.wp-block-group { padding: 70px 0; border-bottom: 3px solid #fff; background: var(--av-green); }
body .av-prefooter .av-product { margin: 0 auto !important; }
.av-prefooter .av-product__body p { margin: 0; color: #fff; }
.av-prefooter .av-product__media figure { position: relative; isolation: isolate; margin: 0; }
.av-prefooter .av-product__media figure::before,
.av-prefooter .av-product__media figure::after { content: ""; position: absolute; z-index: -1; width: 55.1%; aspect-ratio: 355 / 321; border-radius: 50%; }
.av-prefooter .av-product__media figure::before { left: 48.8%; top: 40%; background: var(--av-gold); }
.av-prefooter .av-product__media figure::after { left: 39.4%; top: .6%; background: #abbfbb; }
