/*
Theme Name: Acción Comics
Theme URI: https://accioncomics.cl
Author: Acción Comics
Description: Tema de bloques de la editorial Acción Comics: home con hero en pestañas, tienda, blog, fichas de autores y proceso de compra con el diseño de la marca. Fuentes Barlow servidas desde el sitio. Requiere el plugin "Acción Comics — Funciones".
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.0.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: accion-comics
*/

/* ==========================================================================
   Base
   ========================================================================== */

body.ach {
	--ach-rojo: var(--wp--preset--color--rojo);
	--ach-rojo-oscuro: var(--wp--preset--color--rojo-oscuro);
	--ach-negro: var(--wp--preset--color--negro);
	--ach-negro-puro: var(--wp--preset--color--negro-puro);
	--ach-blanco: var(--wp--preset--color--blanco);
	--ach-gris-claro: var(--wp--preset--color--gris-claro);
	--ach-gris-linea: var(--wp--preset--color--gris-linea);
	--ach-gris-texto: var(--wp--preset--color--gris-texto);
	--ach-gris-suave: var(--wp--preset--color--gris-suave);
	--ach-ancho: 1280px;
	--ach-margen: max(24px, calc((100% - var(--ach-ancho)) / 2));
	--ach-f-texto: var(--wp--preset--font-family--barlow);
	--ach-f-titulo: var(--wp--preset--font-family--barlow-condensed);
	--ach-f-etiqueta: var(--wp--preset--font-family--barlow-semi-condensed);
	--ach-sesgo: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}
.ach *, .ach *::before, .ach *::after { box-sizing: border-box; }
.ach img { max-width: 100%; height: auto; }
.ach :focus-visible { outline: 3px solid var(--ach-rojo); outline-offset: 2px; }
.ach .wp-site-blocks > * { margin-block: 0; }

.ach .screen-reader-text, .ach-oculto {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.ach .skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; background: #fff; padding: 10px 14px; clip: auto; width: auto; height: auto; }

/* Componentes del diseño: sin márgenes de navegador y con enlaces que heredan el color
   de su fondo (cada componente define el suyo cuando hace falta). */
.ach :is(.ach-hero, .ach-accesos, .ach-tienda, .ach-blog, .ach-notas, .ach-gratis, .ach-prensa, .ach-autores-seccion, .ach-cierre, .ach-social, .ach-tienda-pag, .ach-cabecera, .ach-pie, .ach-banda, .ach-equipo, .ach-tarjeta, .ach-autor-ficha, .ach-libro)
	:where(h1, h2, h3, h4, p, figure, ul, ol) { margin: 0; }
.ach :is(.ach-hero, .ach-accesos, .ach-tienda, .ach-notas, .ach-gratis, .ach-prensa, .ach-autores-seccion, .ach-cierre, .ach-social, .ach-tienda-pag, .ach-cabecera, .ach-pie, .ach-banda, .ach-equipo, .ach-tarjeta)
	a:where(:not(.wp-element-button)) { color: inherit; }
.ach :is(.ach-hero, .ach-productos, .ach-nota, .ach-gratis, .ach-autores, .ach-equipo, .ach-tarjeta) img { display: block; }

/* Lienzo completo (home y tienda): las secciones se tocan entre sí y los bloques internos
   no suman márgenes a los espacios que ya define cada componente. */
body.ach .ach-lienzo > *,
body.ach .ach-lienzo :where(.is-layout-flow, .is-layout-constrained) > * { margin-block: 0; }
body.ach .ach-lienzo { padding-inline: 0; }

/* El título de los componentes no hereda las mayúsculas de los encabezados del tema
   donde el diseño las quiere en minúscula. */
.ach .ach-nota:not(.ach-nota--principal) .ach-nota__titulo { text-transform: none; letter-spacing: 0; }

/* ==========================================================================
   Componentes (heredados del home y la tienda del plugin)
   ========================================================================== */

/* Tipografía compartida */
.ach .ach-titulo-seccion {
	font-family: var(--ach-f-titulo); font-weight: 900; font-size: clamp(34px, 4.2vw, 48px);
	line-height: 1; text-transform: uppercase; letter-spacing: .3px; color: inherit;
}
.ach .ach-antetitulo, .ach .ach-etiqueta {
	font-family: var(--ach-f-etiqueta); font-weight: 600; font-size: 14px; letter-spacing: 4px; text-transform: uppercase;
}
.ach .ach-enlace-flecha a {
	font-family: var(--ach-f-etiqueta); font-weight: 700; font-size: 14px; letter-spacing: 1px; text-transform: uppercase;
}

/* Botones */
.ach .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.ach .wp-block-button__link {
	display: inline-flex; align-items: center; min-height: 48px; padding: 14px 30px; border: 0; border-radius: 0;
	font-family: var(--ach-f-etiqueta); font-weight: 700; font-size: 15px; letter-spacing: 1px; text-transform: uppercase;
	line-height: 1.1; text-decoration: none;
}
.ach .ach-boton .wp-block-button__link { background: var(--ach-rojo); color: #fff; clip-path: var(--ach-sesgo); }
.ach .ach-boton .wp-block-button__link:hover { background: var(--ach-rojo-oscuro); color: #fff; }
.ach .ach-boton--negro .wp-block-button__link { background: var(--ach-negro); }
.ach .ach-boton--negro .wp-block-button__link:hover { background: #333; }
.ach .ach-boton-texto .wp-block-button__link { background: transparent; color: inherit; padding-inline: 0; }
.ach .ach-botones--centro { justify-content: center; }

/* ---------- Hero ---------- */
.ach .ach-hero {
	position: relative; min-height: clamp(460px, 48vw, 640px); display: flex; align-items: center;
	background: var(--ach-negro); color: #fff; overflow: hidden;
	padding: 72px var(--ach-margen) 104px;
}
.ach .ach-hero__fondo { position: absolute; inset: 0; margin: 0; }
.ach .ach-hero__fondo img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; transform: scale(1.03); }
.ach .ach-hero__fondo::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.7) 38%, rgba(0,0,0,.1) 72%, rgba(0,0,0,0) 100%);
}
.ach .ach-hero__contenido { position: relative; z-index: 1; max-width: 560px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.ach .ach-hero .ach-etiqueta { border: 1px solid #fff; padding: 6px 10px; font-size: 12px; letter-spacing: 1.2px; }
.ach .ach-hero__titulo {
	font-family: var(--ach-f-titulo); font-weight: 900; font-size: clamp(44px, 6vw, 76px); line-height: .92;
	text-transform: uppercase; letter-spacing: .5px; color: #fff;
}
.ach .ach-hero__bajada { font-size: 18px; color: #EDEDED; }
.ach .ach-hero__precio { font-family: var(--ach-f-titulo); font-weight: 800; font-size: 36px; line-height: 1; }
.ach .ach-hero__precio del { font-size: .55em; opacity: .7; margin-right: 8px; }
.ach .ach-hero__precio ins { text-decoration: none; }
.ach .ach-hero .ach-boton-texto .wp-block-button__link { color: #fff; }

@media (max-width: 760px) {
	.ach .ach-hero { padding-top: 48px; align-items: flex-end; }
	.ach .ach-hero__fondo::after { background: linear-gradient(0deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.75) 55%, rgba(0,0,0,.15) 100%); }
}

/* ---------- Accesos rápidos ---------- */
.ach .ach-accesos {
	position: relative; z-index: 2; width: min(1072px, calc(100% - 48px)); margin: -32px auto 0;
	background: #fff; box-shadow: 0 6px 24px rgba(0,0,0,.12);
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 45%), 1fr));
}
.ach .ach-accesos a, .ach .ach-categorias a, .ach .ach-productos .button, .ach .ach-productos a { text-decoration: none; }
.ach .ach-accesos p { border-top: 4px solid transparent; }
.ach .ach-accesos p:first-child { border-top-color: var(--ach-rojo); }
.ach .ach-accesos a {
	display: block; height: 100%; padding: 16px 18px; text-decoration: none;
	font-family: var(--ach-f-etiqueta); font-weight: 700; font-size: 15px; line-height: 1.25;
}

/* ---------- Tienda ---------- */
.ach .ach-tienda { margin-top: 64px; padding-bottom: 8px; }
.ach .ach-tienda__banda {
	background: var(--ach-negro); color: #fff; clip-path: polygon(0 0, 100% 0, 100% 78%, 0 100%);
	padding: 48px var(--ach-margen) 132px;
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px;
}
.ach .ach-tienda__banda .ach-antetitulo { color: #E2E2E2; }
.ach .ach-tienda__cabecera .ach-titulo-seccion { margin-top: 6px; }
.ach .ach-categorias { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.ach .ach-categorias a {
	display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid #8A8A8A; color: #fff; text-decoration: none;
	font-family: var(--ach-f-etiqueta); font-weight: 600; font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase;
}
.ach .ach-categorias a:hover { border-color: #fff; color: #fff; }
.ach .ach-tienda__panel {
	position: relative; width: min(1232px, calc(100% - 48px)); margin: -104px auto 0;
	background: #fff; padding: 20px; box-shadow: 0 6px 24px rgba(0,0,0,.10);
}
.ach .ach-tienda > .wp-block-buttons { margin: 28px 0 0; }

/* Grilla de productos (marcado de WooCommerce) */
.ach .ach-productos .woocommerce { width: 100%; }
.ach .ach-productos ul.products {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px;
	margin: 0; padding: 0; list-style: none;
}
@media (min-width: 640px) { .ach .ach-productos ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 18px; } }
@media (min-width: 1000px) { .ach .ach-productos ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; } }
@media (max-width: 639px) {
	.ach .ach-tienda__panel { padding: 12px; width: calc(100% - 24px); }
	.ach .ach-productos .woocommerce-loop-product__title { font-size: 15px !important; }
	.ach .ach-productos li.product .button { font-size: 12px !important; letter-spacing: .5px; }
}
.ach .ach-productos ul.products::before, .ach .ach-productos ul.products::after { display: none; content: none; }
.ach .ach-productos ul.products li.product {
	width: auto !important; float: none !important; margin: 0 !important; padding: 0;
	position: relative; display: flex; flex-direction: column; gap: 8px; text-align: left;
}
.ach .ach-productos li.product a.woocommerce-LoopProduct-link { display: flex; flex-direction: column; gap: 8px; text-decoration: none; position: relative; }
.ach .ach-productos li.product img {
	width: 100%; aspect-ratio: 2 / 3; object-fit: cover; object-position: top; margin: 0 !important; background: var(--ach-gris-claro);
}
.ach .ach-productos .woocommerce-loop-product__title {
	font-family: var(--ach-f-titulo) !important; font-weight: 700; font-size: 17px !important; line-height: 1.15;
	text-transform: uppercase; padding: 4px 0 0 !important; margin: 0 !important; color: var(--ach-negro);
}
.ach .ach-productos .price {
	display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin: 0 !important;
	font-family: var(--ach-f-titulo); font-weight: 800; font-size: 20px !important; color: var(--ach-negro) !important;
}
.ach .ach-productos .price del { order: 2; font-family: var(--ach-f-texto); font-weight: 400; font-size: 14px; color: #666; opacity: 1; }
.ach .ach-productos .price ins { text-decoration: none; }
.ach .ach-productos .star-rating { display: none; }
.ach .ach-productos li.product .button {
	margin-top: auto !important; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; width: 100%;
	background: var(--ach-negro) !important; color: #fff !important; border: 0; border-radius: 0 !important; clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
	font-family: var(--ach-f-etiqueta) !important; font-weight: 700; font-size: 13px !important; letter-spacing: 1px; text-transform: uppercase; padding: 0 12px !important;
}
.ach .ach-productos li.product .button:hover { background: #333 !important; }
.ach .ach-productos li.product .button.loading { opacity: .6; }
.ach .ach-productos li.product .button.added::after { content: " ✓"; margin-left: 4px; }
.ach .ach-productos li.product .added_to_cart {
	font-family: var(--ach-f-etiqueta); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; text-align: center; padding: 6px 0 0;
}
.ach .ach-productos .ach-insignia,
.ach .ach-productos span.onsale {
	position: absolute; left: 0; top: 10px; right: auto; z-index: 2; margin: 0;
	min-width: 0; min-height: 0; width: auto; height: auto; border-radius: 0; line-height: 1.3;
	background: var(--ach-rojo); color: #fff; padding: 4px 14px 4px 8px;
	clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
	font-family: var(--ach-f-etiqueta); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
}

/* ---------- Blog ---------- */
.ach .ach-blog { padding: 72px var(--ach-margen) 64px; }
.ach-notas__cabecera {
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 16px;
	border-bottom: 1px solid var(--ach-gris-linea); margin-bottom: 32px;
}
.ach-notas__cabecera .ach-titulo-seccion { margin-bottom: 12px; }
.ach-notas__filtros { display: flex; flex-wrap: wrap; gap: 0 20px; }
.ach .ach-notas__filtros button {
	min-height: 44px; padding: 0 2px; background: none; border: 0; border-bottom: 4px solid transparent; border-radius: 0;
	color: var(--ach-negro); cursor: pointer;
	font-family: var(--ach-f-etiqueta); font-weight: 700; font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase;
}
.ach .ach-notas__filtros button[aria-pressed="true"] { border-bottom-color: var(--ach-rojo); }
.ach-notas__cuerpo { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); column-gap: 40px; align-items: start; }
.ach-nota[hidden], .ach-nota__vacio[hidden] { display: none !important; }
.ach-nota { grid-column: 2; display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--ach-gris-linea); }
.ach-nota__imagen { flex: 0 0 128px; display: block; }
.ach-nota__imagen img { width: 128px; height: 88px; object-fit: cover; }
.ach-nota__texto { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ach .ach-nota__etiqueta {
	font-family: var(--ach-f-etiqueta); font-weight: 700; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ach-rojo);
}
.ach .ach-nota__titulo { font-family: var(--ach-f-texto); font-weight: 700; font-size: 16px; line-height: 1.3; }
.ach .ach-nota__titulo a { text-decoration: none; }
.ach .ach-nota__extracto { display: none; color: #444; }
.ach .ach-nota__libro a { font-family: var(--ach-f-etiqueta); font-weight: 600; font-size: 14px; }
.ach .ach-nota__fecha { font-size: 12px; color: #666; }

.ach-nota--principal { grid-column: 1; grid-row: 1 / span 4; flex-direction: column; gap: 12px; padding: 0; border: 0; }
.ach-nota--principal .ach-nota__imagen { flex: none; }
.ach-nota--principal .ach-nota__imagen img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.ach .ach-nota--principal .ach-nota__etiqueta { font-size: 12px; }
.ach .ach-nota--principal .ach-nota__titulo {
	font-family: var(--ach-f-titulo); font-weight: 800; font-size: clamp(26px, 3vw, 34px); line-height: 1.05; text-transform: uppercase;
}
.ach .ach-nota--principal .ach-nota__extracto { display: block; font-size: 16px; }
.ach-nota__vacio { grid-column: 1 / -1; color: var(--ach-gris-texto); }
.ach-notas > .ach-enlace-flecha { margin-top: 24px; }

@media (max-width: 900px) {
	.ach-notas__cuerpo { grid-template-columns: minmax(0, 1fr); }
	.ach-nota, .ach-nota--principal { grid-column: 1; grid-row: auto; }
	.ach-nota--principal { padding-bottom: 18px; border-bottom: 1px solid var(--ach-gris-linea); }
}

/* ---------- Lee gratis ---------- */
.ach .ach-gratis {
	background: var(--ach-rojo); color: #fff; clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
	padding: 80px var(--ach-margen); display: flex; flex-wrap: wrap; gap: 32px; align-items: center;
}
.ach .ach-gratis__texto { flex: 1 1 320px; display: flex; flex-direction: column; gap: 10px; }
.ach .ach-gratis__texto p:not(.ach-antetitulo) { font-size: 17px; }
.ach .ach-gratis__tarjetas { flex: 2 1 480px; display: flex; flex-wrap: wrap; gap: 16px; }
.ach .ach-gratis__tarjeta { flex: 1 1 260px; background: var(--ach-negro); display: flex; gap: 16px; padding: 16px; align-items: center; }
.ach .ach-gratis__portada { flex: 0 0 72px; margin: 0; }
.ach .ach-gratis__portada img { width: 72px; aspect-ratio: 2 / 3; object-fit: cover; }
.ach .ach-gratis__info { display: flex; flex-direction: column; gap: 6px; color: #D6D6D6; font-size: 14px; }
.ach .ach-gratis__titulo { font-family: var(--ach-f-titulo); font-weight: 800; font-size: 24px; line-height: 1; text-transform: uppercase; color: #fff; }
.ach .ach-gratis__info .ach-enlace-flecha a { color: #fff; font-size: 13px; }

/* ---------- Prensa ---------- */
.ach .ach-prensa { padding: 72px var(--ach-margen) 64px; }
.ach .ach-prensa .ach-antetitulo { color: var(--ach-gris-texto); }
.ach .ach-prensa .ach-titulo-seccion { margin: 6px 0 28px; font-size: clamp(30px, 3.6vw, 40px); }
.ach .ach-prensa__grilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.ach .ach-cita { background: var(--ach-gris-claro); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.ach .ach-cita__texto { font-family: var(--ach-f-etiqueta); font-weight: 600; font-size: 22px; line-height: 1.3; }
.ach .ach-cita__fuente {
	font-family: var(--ach-f-etiqueta); font-weight: 600; font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ach-gris-texto);
}

/* ---------- Autores ---------- */
.ach .ach-autores-seccion { background: var(--ach-negro); color: #fff; padding: 56px var(--ach-margen); }
.ach .ach-cabecera-fila { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 28px; }
.ach .ach-autores-seccion .ach-titulo-seccion { font-size: clamp(30px, 3.6vw, 40px); }
.ach .ach-autores-seccion .ach-enlace-flecha a { color: #fff; }
.ach .ach-autores { display: flex; flex-wrap: wrap; gap: 24px; list-style: none; padding: 0; }
.ach .ach-autor a { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 136px; text-decoration: none; color: #fff; }
.ach .ach-autor__foto { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; object-position: top; border: 3px solid var(--ach-rojo); background: #333; }
.ach .ach-autor__nombre { font-family: var(--ach-f-titulo); font-weight: 700; font-size: 16px; line-height: 1.15; text-transform: uppercase; text-align: center; }
.ach .ach-autor a:hover .ach-autor__nombre { text-decoration: underline; }

/* ---------- Eventos + newsletter ---------- */
.ach .ach-cierre { padding: 64px var(--ach-margen); display: flex; flex-wrap: wrap; gap: 40px; }
.ach .ach-eventos { flex: 1 1 360px; }
.ach .ach-eventos .ach-titulo-seccion { font-size: clamp(30px, 3.6vw, 40px); margin-bottom: 18px; }
.ach .ach-evento { display: flex; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--ach-gris-linea); }
.ach .ach-evento strong { font-family: var(--ach-f-titulo); font-weight: 800; font-size: 18px; min-width: 96px; text-transform: uppercase; }
.ach .ach-newsletter { flex: 1 1 360px; background: var(--ach-gris-claro); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.ach .ach-newsletter .ach-titulo-seccion { font-size: 32px; line-height: 1.05; }
.ach .ach-newsletter p { color: #444; }


@media (prefers-reduced-motion: reduce) {
	.ach * { scroll-behavior: auto !important; transition: none !important; }
}

/* 2. Espacios entre textos y botones */
.ach .ach-hero .ach-botones { margin-top: 6px; }
.ach .ach-hero__precio { margin-top: 2px; }
.ach .ach-tienda .ach-botones--centro { margin-top: 28px; }

/* 3. Botón "Agregar al carrito": texto centrado y proporcionado */
.ach .ach-productos ul.products li.product { gap: 6px; }
.ach .ach-productos li.product a.woocommerce-LoopProduct-link { margin-bottom: 6px; }
.ach .ach-productos ul.products li.product .button {
  display: inline-flex !important; align-items: center; justify-content: center; align-self: flex-start;
  width: auto !important; min-height: 42px; height: auto !important; margin-top: auto !important;
  padding: 11px 26px !important; line-height: 1.15 !important; text-align: center;
  font-size: 14px !important; letter-spacing: 0.8px;
}
@media (max-width: 639px) {
  .ach .ach-productos ul.products li.product .button { width: 100% !important; padding: 10px 8px !important; font-size: 12px !important; }
}

/* 4. Categoría que agrega el tema bajo cada portada */
.ach .ach-productos .woocommerce-loop-product__cat {
  font-family: var(--ach-f-etiqueta); font-weight: 600; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: #666;
}

/* 5. Insignia "Oferta" siempre arriba a la izquierda */
.ach .ach-productos span.onsale, .ach .ach-productos .ach-insignia { left: 0 !important; right: auto !important; top: 10px !important; margin: 0 !important; }

/* 6. Prensa: tres citas en una fila en escritorio */
@media (min-width: 900px) { .ach .ach-prensa__grilla { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Hero con pestañas (v1.1.0) ---------- */
/* Sin JavaScript: solo se ve el primer destacado. */
.ach .ach-hero-tabs .ach-hero ~ .ach-hero { display: none; }
.ach .ach-hero-tabs.is-activo .ach-hero { display: none; }
.ach .ach-hero-tabs.is-activo .ach-hero.is-activa { display: flex; animation: achAparece .45s ease both; }
.ach .ach-hero-tabs .ach-hero[hidden] { display: none !important; }
@keyframes achAparece { from { opacity: 0; } to { opacity: 1; } }
.ach .ach-hero-tabs .ach-hero.is-activa .ach-hero__contenido { animation: achSube .5s ease both; }
@keyframes achSube { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Mismo alto para todos los destacados, para que la página no salte. */
.ach .ach-hero-tabs .ach-hero { min-height: clamp(500px, 46vw, 620px); }

/* Pestañas (la barra de accesos) */
.ach .ach-hero-tabs .ach-accesos { position: relative; }
.ach .ach-hero-tabs.is-activo .ach-accesos p { border-top-color: transparent; }
.ach .ach-tab {
	position: relative; display: block; width: 100%; height: 100%; min-height: 64px; margin: 0; padding: 16px 18px; text-align: left;
	background: #fff; border: 0; border-radius: 0; color: var(--ach-negro); cursor: pointer;
	font-family: var(--ach-f-etiqueta); font-weight: 700; font-size: 15px; line-height: 1.25; letter-spacing: 0; text-transform: none;
	box-shadow: inset 0 4px 0 transparent; transition: box-shadow .2s ease, color .2s ease;
}
.ach .ach-tab:hover { color: var(--ach-rojo-oscuro); box-shadow: inset 0 4px 0 #CFCFCF; }
.ach .ach-tab[aria-selected="true"] { box-shadow: inset 0 4px 0 var(--ach-rojo); color: var(--ach-negro); }
.ach .ach-tab:focus-visible { outline-offset: -3px; }
/* Barra de progreso cuando rotan solos */
.ach .ach-hero-tabs.is-corriendo .ach-tab[aria-selected="true"]::before {
	content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: var(--ach-negro);
	transform-origin: left; animation: achProgreso var(--ach-duracion, 8000ms) linear both; opacity: .35;
}
@keyframes achProgreso { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.ach .ach-tab-pausa {
	position: absolute; right: 0; top: -52px; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.6); border-radius: 50%;
	background: rgba(0,0,0,.45); color: #fff; font-size: 12px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}

/* Variante "portada": para destacados sin ilustración horizontal. La portada va a la derecha. */
.ach .ach-hero--portada { background: linear-gradient(115deg, var(--ach-negro) 0%, var(--ach-negro) 52%, #3a0606 100%); justify-content: space-between; gap: 48px; }
.ach .ach-hero--portada .ach-hero__fondo {
	position: relative; inset: auto; order: 2; flex: 0 0 auto; width: clamp(200px, 22vw, 300px); margin: 0 4% 0 auto; z-index: 1;
}
.ach .ach-hero--portada .ach-hero__fondo::after { display: none; }
.ach .ach-hero--portada .ach-hero__fondo img {
	width: 100%; height: auto; object-fit: contain; transform: rotate(2deg); box-shadow: 18px 18px 0 var(--ach-rojo), 0 24px 48px rgba(0,0,0,.5);
}
@media (max-width: 760px) {
	.ach .ach-hero--portada { flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 28px; }
	.ach .ach-hero--portada .ach-hero__fondo { order: 0; width: 150px; margin: 0; }
	.ach .ach-hero--portada .ach-hero__fondo img { box-shadow: 10px 10px 0 var(--ach-rojo); }
	.ach .ach-tab { font-size: 14px; padding: 14px; min-height: 56px; }
}

/* ---------- Redes sociales (v1.2.0) ---------- */
/* Franja "Síguenos" en el home */
.ach .ach-social {
	background: var(--ach-gris-claro); padding: 56px var(--ach-margen);
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px;
}
.ach .ach-social__texto { flex: 1 1 420px; display: flex; flex-direction: column; gap: 8px; }
.ach .ach-social .ach-antetitulo { color: var(--ach-gris-texto); }
.ach .ach-social__usuario {
	font-family: var(--ach-f-titulo); font-weight: 900; font-size: clamp(40px, 6vw, 72px);
	line-height: .95; letter-spacing: .3px; text-transform: uppercase;
}
.ach .ach-social__usuario a { text-decoration: none; color: var(--ach-negro); }
.ach .ach-social__usuario a:hover { color: var(--ach-rojo); }
.ach .ach-social__bajada { font-size: 17px; color: #444; max-width: 520px; }
.ach .ach-social .ach-botones { flex: 0 1 auto; }


/* ---------- Tienda y categorías (v1.3.0) ---------- */
.ach .ach-tienda-cabecera {
	background: var(--ach-negro); color: #fff; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 56px), 0 100%);
	padding: 36px var(--ach-margen) 140px; display: flex; flex-direction: column; gap: 12px;
}
.ach .ach-migas { font-size: 13px; color: var(--ach-gris-suave); }
.ach .ach-migas a { color: var(--ach-gris-suave); text-decoration: none; }
.ach .ach-migas a:hover { color: #fff; text-decoration: underline; }
.ach .ach-tienda-cabecera .ach-antetitulo { color: #E2E2E2; margin-top: 12px; }
.ach .ach-tienda-cabecera__titulo { font-size: clamp(40px, 5vw, 64px); }
.ach .ach-tienda-cabecera__desc { max-width: 640px; color: #D6D6D6; font-size: 17px; }
.ach .ach-tienda-cabecera__desc p { margin: 0; }
.ach .ach-tienda-cats { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.ach .ach-categorias a[aria-current="page"] { background: #fff; border-color: #fff; color: var(--ach-negro); }
.ach .ach-categorias__n { font-weight: 500; opacity: .7; margin-left: 6px; letter-spacing: 0; }
.ach .ach-categorias--sub a { min-height: 34px; border-style: dashed; }

.ach .ach-tienda-panel {
	position: relative; width: min(1232px, calc(100% - 48px)); margin: -112px auto 64px;
	background: #fff; padding: 24px; box-shadow: 0 6px 24px rgba(0,0,0,.10);
}

/* Barra: cantidad de resultados, búsqueda y orden */
.ach .ach-tienda-barra {
	display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
	padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--ach-gris-linea);
}
.ach .ach-tienda-barra .woocommerce-notices-wrapper { flex: 1 1 100%; }
.ach .ach-tienda-barra .woocommerce-notices-wrapper:empty { display: none; }
.ach .ach-tienda-barra .woocommerce-result-count {
	order: 1; margin: 0 auto 0 0 !important; float: none !important; color: var(--ach-gris-texto);
	font-family: var(--ach-f-etiqueta); font-weight: 600; font-size: 13px; letter-spacing: 1px; text-transform: uppercase;
}
.ach .ach-tienda-barra .ach-tienda-buscar { order: 2; }
.ach .ach-tienda-barra .woocommerce-ordering { order: 3; margin: 0 !important; float: none !important; }
.ach .woocommerce-ordering select,
.ach .woocommerce-product-search input[type="search"] {
	height: 44px; border: 1px solid #999; border-radius: 0; background: #fff; color: var(--ach-negro);
	font: 500 15px/1 var(--ach-f-texto); padding: 0 12px;
}
.ach .woocommerce-ordering select { padding-right: 36px; cursor: pointer; }
.ach .woocommerce-product-search { display: flex; gap: 0; margin: 0; }
.ach .woocommerce-product-search input[type="search"] { width: 240px; border-right: 0; }
.ach .woocommerce-product-search button {
	height: 44px; padding: 0 18px; border: 0; border-radius: 0; background: var(--ach-negro); color: #fff; cursor: pointer;
	font-family: var(--ach-f-etiqueta); font-weight: 700; font-size: 13px; letter-spacing: 1px; text-transform: uppercase;
}
.ach .woocommerce-product-search button:hover { background: var(--ach-rojo); }

/* Paginación */
.ach .ach-tienda-paginacion .woocommerce-pagination { margin-top: 40px; text-align: center; }
.ach .woocommerce-pagination ul.page-numbers {
	display: inline-flex !important; flex-wrap: wrap; gap: 6px; border: 0 !important; margin: 0; padding: 0; list-style: none;
}
.ach .woocommerce-pagination ul.page-numbers li { border: 0 !important; float: none !important; overflow: visible !important; }
.ach .woocommerce-pagination .page-numbers a,
.ach .woocommerce-pagination .page-numbers span {
	display: inline-flex !important; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px !important;
	border: 1px solid var(--ach-gris-linea); background: #fff; color: var(--ach-negro); text-decoration: none;
	font-family: var(--ach-f-titulo); font-weight: 700; font-size: 18px; line-height: 1;
}
.ach .woocommerce-pagination .page-numbers a:hover { border-color: var(--ach-negro); background: #fff; color: var(--ach-negro); }
.ach .woocommerce-pagination .page-numbers span.current { background: var(--ach-negro) !important; border-color: var(--ach-negro); color: #fff !important; }

/* Sin resultados */
.ach .ach-tienda-vacia { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px 0; }
.ach .ach-tienda-vacia .woocommerce-info {
	margin: 0; padding: 16px 20px; border: 0; border-left: 4px solid var(--ach-rojo); background: var(--ach-gris-claro); color: var(--ach-negro);
}
.ach .ach-tienda-vacia .woocommerce-info::before { display: none; }

/* Avisos de WooCommerce (p. ej. "se agregó al carrito") */
.ach .woocommerce-message, .ach .woocommerce-error, .ach .woocommerce-info {
	border-top: 0; border-left: 4px solid var(--ach-rojo); background: var(--ach-gris-claro); color: var(--ach-negro); margin: 0 0 8px;
}
.ach .woocommerce-message .button {
	background: var(--ach-negro); color: #fff; border-radius: 0; font-family: var(--ach-f-etiqueta); font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
}

@media (max-width: 760px) {
	.ach .ach-tienda-cabecera { padding-bottom: 120px; }
	.ach .ach-tienda-cats .ach-categorias { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
	.ach .ach-tienda-cats .ach-categorias::-webkit-scrollbar { display: none; }
	.ach .ach-tienda-cats .ach-categorias a { white-space: nowrap; }
	.ach .ach-tienda-panel { width: calc(100% - 24px); padding: 12px; margin-top: -96px; }
	.ach .ach-tienda-barra .woocommerce-result-count { flex: 1 1 100%; }
	.ach .ach-tienda-barra .ach-tienda-buscar, .ach .woocommerce-product-search { flex: 1 1 100%; }
	.ach .woocommerce-product-search input[type="search"] { flex: 1; width: auto; min-width: 0; }
	.ach .ach-tienda-barra .woocommerce-ordering { flex: 1 1 100%; }
	.ach .woocommerce-ordering select { width: 100%; }
}
.ach .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ach .ach-productos .woocommerce-loop-product__cat {
	font-family: var(--ach-f-etiqueta); font-weight: 600; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: #666;
}

/* ==========================================================================
   Header
   ========================================================================== */

.ach .ach-cabecera { position: relative; z-index: 30; background: #fff; }
.ach .ach-cabecera__fila {
	padding: 8px var(--ach-margen); gap: 8px 32px; border-bottom: 1px solid var(--ach-gris-linea);
}
.ach .ach-cabecera__logo { margin: 0; flex: 0 0 auto; }
.ach .ach-cabecera__logo img { width: 84px; height: auto; display: block; }

.ach .ach-nav { flex: 1 1 auto; min-width: 0; }
.ach .ach-nav .wp-block-navigation__container { gap: 0 24px; }
.ach .ach-nav .wp-block-navigation-item__content {
	display: block; padding: 14px 0; color: var(--ach-negro); text-decoration: none; border-bottom: 3px solid transparent;
}
.ach .ach-nav .wp-block-navigation-item__content:hover,
.ach .ach-nav .current-menu-item > .wp-block-navigation-item__content { border-bottom-color: var(--ach-rojo); color: var(--ach-negro); }

.ach .ach-cabecera__acciones { flex: 0 0 auto; gap: 4px; align-items: center; }
.ach .ach-buscar { margin: 0; }
.ach .ach-buscar .wp-block-search__button {
	width: 44px; height: 44px; padding: 0; margin: 0; display: inline-flex; align-items: center; justify-content: center;
	background: transparent; color: var(--ach-negro); border: 0;
}
.ach .ach-buscar .wp-block-search__button svg { width: 24px; height: 24px; fill: currentColor; }
.ach .ach-buscar .wp-block-search__inside-wrapper { border: 0; padding: 0; }
.ach .ach-buscar .wp-block-search__input {
	height: 44px; border: 1px solid #999; border-radius: 0; padding: 0 12px; font: 500 15px/1 var(--ach-f-texto); min-width: 220px;
}
.ach .wc-block-customer-account a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; color: var(--ach-negro); }
.ach .wc-block-mini-cart__button { padding: 0 6px; min-height: 44px; color: var(--ach-negro); }
.ach .wc-block-mini-cart__badge { background: var(--ach-rojo) !important; color: #fff !important; border-color: #fff !important; font-weight: 700; }

.ach .ach-aviso {
	margin: 0; background: var(--ach-negro-puro); color: #fff; text-align: center; padding: 10px 16px;
	font-family: var(--ach-f-etiqueta); font-weight: 600; font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase;
}
.ach .ach-aviso:empty { display: none; }

/* Menú en móvil (el botón de tres líneas lo pone WordPress bajo 600 px) */
.ach .ach-nav .wp-block-navigation__responsive-container-open { width: 44px; height: 44px; justify-content: center; align-items: center; color: var(--ach-negro); }
.ach .ach-nav .wp-block-navigation__responsive-container.is-menu-open { background: #fff; color: var(--ach-negro); padding: 24px; }
.ach .ach-nav .is-menu-open .wp-block-navigation__container { gap: 4px; }
.ach .ach-nav .is-menu-open .wp-block-navigation-item__content { font-size: 22px; padding: 10px 0; }
@media (max-width: 599px) {
	.ach .ach-cabecera__fila { padding-inline: 16px; gap: 8px; }
	.ach .ach-nav { order: 3; flex: 0 0 auto; }
	.ach .ach-cabecera__acciones { margin-left: auto; }
	.ach .ach-buscar .wp-block-search__input { min-width: 0; width: 160px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.ach .ach-pie { background: var(--ach-negro-puro); color: var(--ach-gris-suave); font-size: 14px; line-height: 1.6; }
.ach .ach-pie__columnas { max-width: var(--ach-ancho); margin: 0 auto; padding: 48px 24px; display: flex; flex-wrap: wrap; gap: 32px; }
.ach .ach-pie__marca { flex: 2 1 300px; display: flex; flex-direction: column; gap: 14px; }
.ach .ach-pie__marca img { width: 110px; height: auto; display: block; }
.ach .ach-pie__col { flex: 1 1 160px; }
.ach .ach-pie__titulo {
	color: #fff; margin-bottom: 10px; font-family: var(--ach-f-etiqueta); font-weight: 700; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
}
.ach .ach-pie ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ach .ach-pie a { color: var(--ach-gris-suave); text-decoration: none; }
.ach .ach-pie a:hover { color: #fff; text-decoration: underline; }
.ach .ach-pie a.ach-red {
	display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
	border: 1px solid #555; color: #fff; text-decoration: none;
	font-family: var(--ach-f-etiqueta); font-weight: 700; font-size: 13px; letter-spacing: 1px; text-transform: uppercase;
}
.ach .ach-pie a.ach-red span { font-weight: 600; letter-spacing: .3px; text-transform: none; color: var(--ach-gris-suave); }
.ach .ach-pie a.ach-red:hover { background: var(--ach-rojo); border-color: var(--ach-rojo); color: #fff; text-decoration: none; }
.ach .ach-pie a.ach-red:hover span { color: #fff; }
.ach .ach-pie__legal {
	border-top: 1px solid #2A2A2A; padding: 16px 24px; text-align: center;
	font-family: var(--ach-f-etiqueta); font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase;
}

/* ==========================================================================
   Banda de cabecera (blog, archivos, búsqueda, 404) y panel blanco encima
   ========================================================================== */

.ach .ach-banda {
	background: var(--ach-negro); color: #fff; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 56px), 0 100%);
	padding: 40px var(--ach-margen) 140px; display: flex; flex-direction: column; gap: 12px;
}
.ach .ach-banda .ach-antetitulo { color: #E2E2E2; }
.ach .ach-banda h1, .ach .ach-banda .wp-block-query-title { font-size: clamp(40px, 5vw, 64px); color: #fff; }
.ach .ach-banda .wp-block-term-description, .ach .ach-banda .ach-banda__bajada { max-width: 640px; color: #D6D6D6; font-size: 17px; }
.ach .ach-banda .wp-block-term-description p { margin: 0; }
.ach .ach-banda .ach-categorias { margin-top: 12px; }
.ach .ach-banda .wp-block-search { max-width: 520px; margin-top: 8px; }

.ach .ach-panel {
	position: relative; width: min(1232px, calc(100% - 48px)); margin: -112px auto 72px;
	background: #fff; padding: 28px; box-shadow: 0 6px 24px rgba(0,0,0,.10);
}

/* Buscador sobre fondo oscuro o claro */
.ach .wp-block-search__inside-wrapper { border: 0; padding: 0; gap: 0; }
.ach .wp-block-search:not(.ach-buscar) .wp-block-search__input {
	height: 48px; border: 1px solid #999; border-right: 0; border-radius: 0; background: #fff; color: var(--ach-negro); padding: 0 14px; font: 500 16px/1 var(--ach-f-texto);
}
.ach .wp-block-search:not(.ach-buscar) .wp-block-search__button {
	margin: 0; height: 48px; padding: 0 20px; border: 0; border-radius: 0; background: var(--ach-rojo); color: #fff;
	font-family: var(--ach-f-etiqueta); font-weight: 700; font-size: 14px; letter-spacing: 1px; text-transform: uppercase;
}

/* ==========================================================================
   Tarjetas de notas (blog, archivos, búsqueda, "más notas")
   ========================================================================== */

.ach .ach-rejilla .wp-block-post-template { gap: 40px 28px; }
.ach .ach-tarjeta { display: flex; flex-direction: column; gap: 10px; }
.ach .ach-tarjeta .wp-block-post-featured-image { margin: 0; }
.ach .ach-tarjeta .wp-block-post-featured-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.ach .ach-tarjeta .wp-block-post-featured-image:empty,
.ach .ach-tarjeta .wp-block-post-featured-image:not(:has(img)) { display: none; }
.ach .ach-tarjeta .wp-block-post-title { font-size: 22px; line-height: 1.1; }
.ach .ach-tarjeta .wp-block-post-title a { text-decoration: none; color: var(--ach-negro); }
.ach .ach-tarjeta .wp-block-post-title a:hover { color: var(--ach-rojo-oscuro); }
.ach .ach-tarjeta .wp-block-post-excerpt { font-size: 15px; color: #444; }
.ach .ach-tarjeta .wp-block-post-excerpt__excerpt { margin: 0; }
.ach .ach-tarjeta .wp-block-post-excerpt__more-text { display: none; }

.ach .wp-block-query-pagination { margin-top: 48px; gap: 6px; justify-content: center; }
.ach .wp-block-query-pagination a,
.ach .wp-block-query-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px;
	border: 1px solid var(--ach-gris-linea); color: var(--ach-negro); text-decoration: none; line-height: 1;
}
.ach .wp-block-query-pagination a:hover { border-color: var(--ach-negro); }
.ach .wp-block-query-pagination .page-numbers.current { background: var(--ach-negro); border-color: var(--ach-negro); color: #fff; }
.ach .wp-block-query-no-results { padding: 16px 20px; border-left: 4px solid var(--ach-rojo); background: var(--ach-gris-claro); }

/* Categorías del blog como etiquetas */
.ach .ach-banda .ach-categorias a { color: #fff; }

/* ==========================================================================
   Páginas
   ========================================================================== */

.ach .ach-pagina { padding-block: 56px 80px; }
.ach .ach-pagina > .wp-block-post-title { margin-bottom: 8px; }
.ach .ach-pagina .wp-block-post-content { font-size: 18px; line-height: 1.7; }
.ach .ach-pagina .wp-block-post-content :where(h2, h3) { margin-top: 1.6em; }

/* Páginas hechas con Elementor: su contenido usa todo el ancho y conserva su diseño */
.ach .is-layout-constrained > .elementor { max-width: none !important; width: 100%; }
.ach .ach-pagina .wp-block-post-content:has(> .elementor) { font-size: inherit; line-height: inherit; }

/* ==========================================================================
   Nota del blog
   ========================================================================== */

.ach .ach-nota-pag { padding-block: 48px 0; }
.ach .ach-nota-pag__cabecera { display: flex; flex-direction: column; gap: 14px; }
.ach .ach-nota-pag__cabecera .wp-block-post-title { font-size: clamp(36px, 5vw, 60px); line-height: .98; }
.ach .ach-nota-pag__imagen { margin-block: 36px 0 !important; }
.ach .ach-nota-pag__imagen img { width: 100%; height: auto; max-height: 680px; object-fit: cover; }
.ach .ach-nota-pag .wp-block-post-content { font-size: 19px; line-height: 1.7; margin-top: 40px; }
.ach .ach-nota-pag .wp-block-post-content > p:first-child { font-size: 22px; line-height: 1.55; }
.ach .ach-nota-pag .wp-block-post-content :where(h2, h3) { margin-top: 1.5em; }
.ach .ach-nota-pag .wp-block-post-content img { height: auto; }

.ach .ach-libro {
	display: flex; gap: 24px; align-items: center; margin-block: 48px 0 !important; padding: 20px;
	background: var(--ach-gris-claro); border-left: 4px solid var(--ach-rojo);
}
.ach .ach-libro__portada { flex: 0 0 96px; }
.ach .ach-libro__portada img { width: 96px; aspect-ratio: 2 / 3; object-fit: cover; display: block; }
.ach .ach-libro__texto { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.ach .ach-libro__etiqueta { font-family: var(--ach-f-etiqueta); font-weight: 700; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ach-gris-texto); }
.ach .ach-libro__titulo { font-family: var(--ach-f-titulo); font-weight: 800; font-size: 26px; line-height: 1.05; text-transform: uppercase; }
.ach .ach-libro__titulo a { text-decoration: none; color: var(--ach-negro); }
.ach .ach-libro__precio { font-family: var(--ach-f-titulo); font-weight: 800; font-size: 22px; }
.ach .ach-libro__precio del { font-size: .7em; opacity: .6; margin-right: 6px; }
.ach .ach-libro__precio ins { text-decoration: none; }
.ach .ach-libro .wp-element-button { clip-path: var(--ach-sesgo); text-decoration: none; margin-top: 4px; }

.ach .ach-mas-notas { margin-top: 72px !important; padding: 56px var(--ach-margen) 72px; background: var(--ach-gris-claro); }
.ach .ach-mas-notas > .ach-titulo-seccion { margin-bottom: 28px; }
.ach .ach-mas-notas__rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 32px 24px; list-style: none; padding: 0; margin: 0; }

/* ==========================================================================
   Autores: grilla [ourteam] y ficha de cada autor
   ========================================================================== */

.ach .ach-equipo {
	display: grid; grid-template-columns: repeat(var(--ach-col, 3), minmax(0, 1fr)); gap: 36px 24px; list-style: none; padding: 0; margin: 0;
}
@media (max-width: 760px) { .ach .ach-equipo { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; } }
.ach .ach-equipo__item a { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ach-negro); }
.ach .ach-equipo__foto { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top; background: var(--ach-gris-claro); display: block; }
.ach .ach-equipo__foto--vacia { content: ""; }
.ach .ach-equipo__nombre { margin-top: 6px; font-family: var(--ach-f-titulo); font-weight: 800; font-size: 22px; line-height: 1.05; text-transform: uppercase; }
.ach .ach-equipo__cargo { font-family: var(--ach-f-etiqueta); font-weight: 600; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--ach-gris-texto); }
.ach .ach-equipo__resumen { font-size: 15px; color: #444; }
.ach .ach-equipo__item a:hover .ach-equipo__nombre { color: var(--ach-rojo-oscuro); }

.ach .ach-autor-pag { padding-block: 56px 80px; }
.ach .ach-autor-pag__cabecera { gap: 40px; align-items: center; margin-bottom: 40px !important; }
.ach .ach-autor-pag__foto { flex: 0 0 auto; margin: 0; }
.ach .ach-autor-pag__foto img { width: 240px; height: 240px; object-fit: cover; object-position: top; border-radius: 50%; border: 4px solid var(--ach-rojo); display: block; }
.ach .ach-autor-pag__datos { flex: 1 1 320px; display: flex; flex-direction: column; gap: 12px; }
.ach .ach-autor-pag__datos .wp-block-post-title { font-size: clamp(40px, 5vw, 64px); }
.ach .ach-autor-ficha { display: flex; flex-direction: column; gap: 14px; }
.ach .ach-autor-ficha__cargo { font-family: var(--ach-f-etiqueta); font-weight: 700; font-size: 15px; letter-spacing: 2px; text-transform: uppercase; color: var(--ach-rojo); }
.ach .ach-autor-ficha__redes { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.ach .ach-autor-ficha a.ach-red {
	display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--ach-negro); color: var(--ach-negro); text-decoration: none;
	font-family: var(--ach-f-etiqueta); font-weight: 700; font-size: 13px; letter-spacing: 1px; text-transform: uppercase;
}
.ach .ach-autor-ficha a.ach-red:hover { background: var(--ach-negro); color: #fff; }
.ach .ach-autor-pag .wp-block-post-content { font-size: 18px; line-height: 1.7; }
.ach .ach-autor-titulos { margin-top: 64px; display: flex; flex-direction: column; gap: 28px; }
.ach .ach-autor-pag .ach-enlace-flecha { margin-top: 48px; }
@media (max-width: 640px) {
	.ach .ach-autor-pag__cabecera { flex-direction: column; align-items: flex-start; gap: 24px; }
	.ach .ach-autor-pag__foto img { width: 160px; height: 160px; }
}

/* ==========================================================================
   WooCommerce: ficha de producto (plantilla clásica), carrito, pago y cuenta
   ========================================================================== */

.ach .ach-producto-pag { padding: 32px var(--ach-margen) 80px; }
.ach .woocommerce-breadcrumb { font-size: 13px; color: var(--ach-gris-texto); margin-bottom: 24px !important; }
.ach .woocommerce-breadcrumb a { color: var(--ach-gris-texto); text-decoration: none; }
.ach .woocommerce-breadcrumb a:hover { color: var(--ach-negro); text-decoration: underline; }

.ach .ach-producto-pag div.product .product_title {
	font-family: var(--ach-f-titulo); font-weight: 900; font-size: clamp(36px, 4.4vw, 56px); line-height: .98; text-transform: uppercase; margin: 0 0 16px;
}
.ach .ach-producto-pag div.product p.price,
.ach .ach-producto-pag div.product span.price { font-family: var(--ach-f-titulo); font-weight: 800; font-size: 34px; color: var(--ach-negro); }
.ach .ach-producto-pag div.product p.price del { font-size: .6em; opacity: .55; margin-right: 8px; }
.ach .ach-producto-pag div.product p.price ins { text-decoration: none; }
.ach .ach-producto-pag .woocommerce-product-details__short-description { font-size: 17px; line-height: 1.65; margin-block: 16px; }
.ach .ach-producto-pag div.product form.cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; margin-block: 24px; }
.ach .ach-producto-pag div.product form.cart .quantity input.qty { height: 52px; width: 80px; border: 1px solid #999; border-radius: 0; font: 600 18px/1 var(--ach-f-texto); text-align: center; }
.ach .ach-producto-pag .woocommerce-product-gallery img { background: var(--ach-gris-claro); }
.ach .ach-producto-pag .product_meta {
	font-size: 14px; color: var(--ach-gris-texto); display: flex; flex-direction: column; gap: 4px;
	padding-top: 16px; border-top: 1px solid var(--ach-gris-linea);
}
.ach .ach-producto-pag .product_meta a { color: var(--ach-negro); }
.ach .ach-producto-pag .woocommerce-tabs { margin-top: 48px; clear: both; }
.ach .ach-producto-pag .woocommerce-tabs ul.tabs { display: flex; flex-wrap: wrap; gap: 0 24px; padding: 0 !important; margin: 0 0 24px !important; border-bottom: 1px solid var(--ach-gris-linea); list-style: none; }
.ach .ach-producto-pag .woocommerce-tabs ul.tabs::before, .ach .ach-producto-pag .woocommerce-tabs ul.tabs li::before, .ach .ach-producto-pag .woocommerce-tabs ul.tabs li::after { display: none !important; }
.ach .ach-producto-pag .woocommerce-tabs ul.tabs li { border: 0 !important; background: none !important; margin: 0 !important; padding: 0 !important; border-radius: 0 !important; }
.ach .ach-producto-pag .woocommerce-tabs ul.tabs li a {
	display: block; padding: 12px 2px !important; border-bottom: 4px solid transparent; color: var(--ach-negro); text-decoration: none;
	font-family: var(--ach-f-etiqueta); font-weight: 700; font-size: 14px; letter-spacing: 1.2px; text-transform: uppercase;
}
.ach .ach-producto-pag .woocommerce-tabs ul.tabs li.active a { border-bottom-color: var(--ach-rojo); }
.ach .ach-producto-pag .woocommerce-Tabs-panel { font-size: 17px; line-height: 1.7; max-width: 820px; }
.ach .ach-producto-pag .woocommerce-Tabs-panel > h2:first-child { display: none; }
.ach .ach-producto-pag :is(.related, .upsells) > h2 {
	font-family: var(--ach-f-titulo); font-weight: 900; font-size: clamp(30px, 3.6vw, 40px); text-transform: uppercase; margin: 64px 0 24px;
}

/* Botones de WooCommerce con el estilo de la marca */
.ach .woocommerce :is(a.button, button.button, input.button, #respond input#submit),
.ach :is(a, button).button.wc-forward {
	background: var(--ach-negro) !important; color: #fff !important; border: 0 !important; border-radius: 0 !important;
	font-family: var(--ach-f-etiqueta) !important; font-weight: 700 !important; font-size: 14px !important; letter-spacing: 1px; text-transform: uppercase;
	padding: 14px 24px !important; line-height: 1.15 !important; text-decoration: none !important;
}
.ach .woocommerce :is(a.button, button.button, input.button):hover { background: #333 !important; }
.ach .woocommerce :is(a.button.alt, button.button.alt, input.button.alt, #place_order, .checkout-button),
.ach .ach-producto-pag .single_add_to_cart_button {
	background: var(--ach-rojo) !important; clip-path: var(--ach-sesgo); padding-inline: 34px !important; min-height: 52px; font-size: 16px !important;
}
.ach .woocommerce :is(a.button.alt, button.button.alt, #place_order, .checkout-button):hover,
.ach .ach-producto-pag .single_add_to_cart_button:hover { background: var(--ach-rojo-oscuro) !important; }

.ach .ach-woo-pag { padding-block: 48px 80px; }
.ach .ach-woo-pag > .wp-block-post-title { margin-bottom: 24px; }
.ach .woocommerce :is(input.input-text, textarea, select),
.ach .woocommerce-page :is(input.input-text, textarea, select) {
	border: 1px solid #999; border-radius: 0; padding: 10px 12px; min-height: 44px; font: 500 16px/1.3 var(--ach-f-texto); background: #fff;
}
.ach .woocommerce form .form-row label { font-family: var(--ach-f-etiqueta); font-weight: 600; font-size: 14px; letter-spacing: .5px; }
.ach .woocommerce table.shop_table { border-radius: 0; border-color: var(--ach-gris-linea); }
.ach .woocommerce table.shop_table th { font-family: var(--ach-f-etiqueta); font-weight: 700; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.ach .woocommerce :is(.cart_totals, .woocommerce-checkout-review-order) h2,
.ach .woocommerce #order_review_heading,
.ach .woocommerce-billing-fields > h3,
.ach .woocommerce-shipping-fields > h3 { font-family: var(--ach-f-titulo); font-weight: 800; font-size: 28px; text-transform: uppercase; }
.ach .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--ach-gris-linea); }
.ach .woocommerce-MyAccount-navigation li a {
	display: block; padding: 12px 0; border-bottom: 1px solid var(--ach-gris-linea); text-decoration: none; color: var(--ach-negro);
	font-family: var(--ach-f-etiqueta); font-weight: 700; font-size: 14px; letter-spacing: 1px; text-transform: uppercase;
}
.ach .woocommerce-MyAccount-navigation li.is-active a { color: var(--ach-rojo); }

/* ==========================================================================
   404
   ========================================================================== */

.ach .ach-404__numero { font-family: var(--ach-f-titulo); font-weight: 900; font-size: clamp(96px, 16vw, 200px); line-height: .85; color: var(--ach-rojo); }
.ach .ach-404__accesos { display: flex; flex-wrap: wrap; gap: 16px; }
.ach .ach-404__accesos .wp-element-button { clip-path: var(--ach-sesgo); text-decoration: none; }
.ach .ach-404__accesos .is-style-outline .wp-element-button { background: var(--ach-negro); }

/* Categorías en las tarjetas y notas: se oculta "Sin categoría" */
.ach .wp-block-post-terms a { margin-right: 10px; }
.ach .wp-block-post-terms a:last-child { margin-right: 0; }
.ach .wp-block-post-terms :is(a[href*="/sin-categoria/"], a[href*="/uncategorized/"], a[href*="/sin-categorizar/"]) { display: none; }
.ach .wp-block-post-terms__separator { display: none; }
.ach .ach-mas-notas .wp-block-post-terms span { color: var(--ach-rojo); }

/* ==========================================================================
   Nosotros
   ========================================================================== */

.ach .ach-nos-banda { padding-bottom: 150px; }
.ach .ach-nos-intro { max-width: 900px; padding: 40px 48px; display: flex; flex-direction: column; gap: 18px; font-size: 18px; line-height: 1.7; }
.ach .ach-nos-intro__lead { font-size: 22px; line-height: 1.55; }
.ach .ach-nos-intro .ach-botones { margin-top: 8px; }
.ach .ach-nos-datos {
	max-width: var(--ach-ancho); margin: 0 auto; padding: 8px 24px 72px;
	display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px;
}
.ach .ach-nos-dato { border-top: 4px solid var(--ach-rojo); padding-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.ach .ach-nos-dato__cifra { font-family: var(--ach-f-titulo); font-weight: 900; font-size: clamp(44px, 5vw, 64px); line-height: .9; text-transform: uppercase; }
.ach .ach-nos-dato__titulo { font-family: var(--ach-f-etiqueta); font-weight: 700; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: var(--ach-gris-texto); }
.ach .ach-nos-equipo { background: var(--ach-negro); color: #fff; padding: 64px var(--ach-margen); display: flex; flex-direction: column; gap: 28px; }
.ach .ach-nos-equipo__grilla { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.ach .ach-nos-persona { border: 1px solid #3A3A3A; padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.ach .ach-nos-persona__nombre { font-family: var(--ach-f-titulo); font-weight: 800; font-size: 28px; line-height: 1; text-transform: uppercase; }
.ach .ach-nos-persona__cargo { font-family: var(--ach-f-etiqueta); font-weight: 600; font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ach-gris-suave); }
.ach .ach-nos-proyectos { margin-block: 0; }
@media (max-width: 640px) { .ach .ach-nos-intro { padding: 24px; } }

/* ==========================================================================
   Ajustes de espaciado y estructura
   ========================================================================== */

/* Componentes que ya separan sus hijos con "gap": sin márgenes extra del editor */
.ach :is(.ach-tarjeta, .ach-nota-pag__cabecera, .ach-autor-pag__datos, .ach-banda, .ach-nos-intro, .ach-nos-dato, .ach-nos-persona, .ach-nos-equipo, .ach-pie__marca, .ach-pie__col, .ach-cabecera, .ach-cabecera__fila, .ach-cabecera__acciones) > * { margin-block: 0; }
.ach .ach-pie > * { margin-block: 0; }

/* Etiqueta activa en la banda oscura */
.ach .ach-banda .ach-categorias a[aria-current="page"] { background: #fff; border-color: #fff; color: var(--ach-negro); }

/* Botón secundario (contorno) */
.ach .wp-block-button.is-style-outline .wp-element-button { background: var(--ach-negro); color: #fff; border: 0; }
.ach .wp-block-button.is-style-outline .wp-element-button:hover { background: #333; color: #fff; }

/* El pie queda abajo aunque la página sea corta */
.ach .wp-site-blocks { min-height: 100vh; display: flex; flex-direction: column; }
.ach .wp-site-blocks > main, .ach .wp-site-blocks > .ach-zona-pie { flex: 0 0 auto; }
.ach .wp-site-blocks > .ach-zona-pie { margin-top: auto; }

/* Hero en móvil: el recorte se corre hacia la zona focal recomendada (55–72 % del ancho, mitad superior) */
@media (max-width: 760px) {
	.ach .ach-hero:not(.ach-hero--portada) .ach-hero__fondo img { object-position: 64% 25%; }
}

/* Notas hechas con Elementor (por ejemplo, "Lee gratis"): el carrusel de páginas usa el ancho amplio
   (hasta 1280 px) en vez de la columna de texto, para que las páginas del cómic se puedan leer. */
.ach .wp-block-post-content .elementor-widget-image-carousel {
	width: min(var(--wp--style--global--wide-size, 1280px), calc(100vw - 48px)) !important;
	max-width: none !important;
	margin-left: calc(50% - min(var(--wp--style--global--wide-size, 1280px) / 2, 50vw - 24px)) !important;
}
