/* =========================================================================
 * Academia Barraza — Tienda digital · estilo profesional agro/editorial
 * ====================================================================== */

.aba {
	--ink: #16201a;
	--paper: #ffffff;
	--cream: #e6f1e4;
	--line: #d6e6d3;
	--muted: #5f6e62;
	--green: #1c7a39;
	--green-d: #125c2a;
	--green-deep: #0e4624;
	--green-ink: #06270f;
	--berry: #9d2449;
	--radius: 16px;
	--radius-lg: 22px;
	--ease: cubic-bezier(0.23, 1, 0.32, 1);
	--font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	font-family: var(--font);
	color: var(--ink);
	line-height: 1.6;
	max-width: 1180px;
	margin-inline: auto;
	padding: clamp(20px, 5vw, 56px) clamp(18px, 5vw, 40px) 64px;
	-webkit-font-smoothing: antialiased;
}
.aba *, .aba *::before, .aba *::after { box-sizing: border-box; }
.aba img { max-width: 100%; height: auto; display: block; }
.aba a { color: inherit; text-decoration: none; }
.aba ul { margin: 0; padding: 0; list-style: none; }
.aba h1, .aba h2, .aba p { margin: 0; }

/* ----- Hero (banda verde) ----- */
.aba-hero { max-width: none; margin-bottom: clamp(28px, 4vw, 48px); background: linear-gradient(135deg, var(--green-deep) 0%, #176a30 100%); color: #fff; padding: clamp(28px, 4vw, 52px); border-radius: var(--radius-lg); box-shadow: 0 22px 50px rgba(14,70,36,.22); }
.aba-kicker { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #93dca8; margin-bottom: 14px; }
.aba-hero__title { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; color: #fff; max-width: 18ch; }
.aba-hero__lead { margin-top: 16px; font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: #d4e8d8; max-width: 56ch; }
.aba-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 24px; }
.aba-trust li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #eaf4ec; }
.aba-trust .aba-ic { width: 18px; height: 18px; color: #93dca8; }

/* ----- Grilla ----- */
.aba-grid { display: grid; gap: clamp(18px, 2.4vw, 28px); grid-template-columns: repeat(3, 1fr); }
.aba[data-cols="2"] .aba-grid { grid-template-columns: repeat(2, 1fr); }
.aba[data-cols="4"] .aba-grid { grid-template-columns: repeat(4, 1fr); }

/* ----- Tarjeta ----- */
.aba-card {
	display: flex; flex-direction: column;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	overflow: hidden;
	transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.aba-card__media { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--cream); overflow: hidden; }
.aba-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.aba-card__ph { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(120% 120% at 20% 0%, rgba(23,106,48,.10), transparent 50%), linear-gradient(150deg, var(--cream), #ece9df); }
.aba-card__ph .aba-ic { width: 54px; height: 54px; color: #b7b09c; stroke-width: 1.4; }
.aba-badge { position: absolute; top: 12px; left: 12px; background: var(--berry); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; }
.aba-card__body { display: flex; flex-direction: column; gap: 12px; padding: 22px; flex: 1; }
.aba-card__title { font-size: 19px; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
.aba-card__title a:hover { color: var(--green); }
.aba-card__desc { font-size: 14.5px; color: var(--muted); }
.aba-card__desc p { margin: 0; }
.aba-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.aba-price { font-size: 20px; font-weight: 800; color: var(--ink); }
.aba-price .amount, .aba-price bdi { font-weight: 800; }
.aba-soon { font-size: 14px; font-weight: 700; color: var(--muted); }
.aba-detail { font-size: 13.5px; font-weight: 600; color: var(--green); }
.aba-detail:hover { color: var(--green-d); }

/* ----- Hover (solo mouse) ----- */
@media (hover: hover) and (pointer: fine) {
	.aba-card:hover { transform: translateY(-4px); box-shadow: 0 22px 48px rgba(20,30,18,.1); border-color: #cfd8c8; }
	.aba-card:hover .aba-card__media img { transform: scale(1.05); }
}

/* ----- Botones ----- */
.aba-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 20px; border-radius: 999px;
	font-weight: 700; font-size: 14.5px; line-height: 1.2;
	border: 1.5px solid transparent; cursor: pointer;
	transition: background .18s var(--ease), transform .14s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.aba-btn .aba-ic { width: 17px; height: 17px; }
.aba-btn--buy, .aba-btn--buy:link, .aba-btn--buy:visited { background: var(--green); color: #fff !important; }
.aba-btn--buy:hover { background: var(--green-d); transform: translateY(-1px); box-shadow: 0 12px 26px rgba(23,106,48,.28); }
.aba-btn--buy:active { transform: scale(0.97); }
.aba-btn--ghost, .aba-btn--ghost:link, .aba-btn--ghost:visited { background: transparent; color: var(--ink) !important; border-color: var(--line); }
.aba-btn--ghost:hover { border-color: var(--ink); }

/* ----- Descripción desplegable ----- */
.aba-more { border-top: 1px solid var(--line); padding-top: 12px; }
.aba-more summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--green); list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.aba-more summary::-webkit-details-marker { display: none; }
.aba-more summary::after { content: "▾"; font-size: 11px; }
.aba-more[open] summary::after { content: "▴"; }
.aba-more__content { margin-top: 12px; font-size: 14.5px; color: var(--muted); }
.aba-more__content p { margin: 0 0 10px; }
.aba-more__content ul { list-style: disc; padding-left: 18px; margin: 8px 0; }
.aba-more__content li { margin-bottom: 4px; }
.aba-more__content strong { color: var(--ink); }

/* ----- Pie ----- */
.aba-secure { display: inline-flex; align-items: center; gap: 8px; margin-top: clamp(28px, 4vw, 44px); font-size: 13.5px; color: var(--muted); }
.aba-secure .aba-ic { width: 17px; height: 17px; color: var(--green); }
.aba-empty { padding: 48px 0; text-align: center; color: var(--muted); font-size: 16px; }

/* =========================================================================
 * Armonización ligera de páginas WooCommerce (carrito/checkout/producto)
 * ====================================================================== */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce #respond input#submit,
.woocommerce input.button,
.woocommerce input.button.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
	background: #176a30 !important;
	color: #fff !important;
	border-radius: 999px !important;
	font-weight: 700 !important;
	padding: 12px 22px !important;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce input.button.alt:hover,
.woocommerce a.button.alt:hover { background: #0f4f24 !important; }
.woocommerce .price, .woocommerce-Price-amount { font-weight: 800; }

/* ----- Responsive ----- */
@media (max-width: 980px) {
	.aba-grid, .aba[data-cols="4"] .aba-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.aba-grid, .aba[data-cols="2"] .aba-grid, .aba[data-cols="4"] .aba-grid { grid-template-columns: 1fr; }
	/* Compactar para que el botón Comprar aparezca pronto al entrar */
	.aba { padding-top: 10px; }
	.aba-hero { padding: 16px 18px; margin-bottom: 12px; border-radius: 16px; }
	.aba-kicker { margin-bottom: 8px; font-size: 11.5px; }
	.aba-hero__title { font-size: 1.5rem; }
	.aba-hero__lead { margin-top: 8px; font-size: .95rem; }
	.aba-trust { gap: 5px 14px; margin-top: 12px; }
	.aba-trust li { font-size: 12.5px; }
	.aba-card__media { aspect-ratio: auto; height: 140px; }
	.aba-card__ph .aba-ic { width: 36px; height: 36px; }
	.aba-card__body { padding: 16px; gap: 10px; }
	.aba-card__title { font-size: 18px; }
	.aba-card__foot { flex-direction: column; align-items: stretch; gap: 10px; }
	.aba-btn--buy { width: 100%; padding: 14px; }
	/* La descripción larga queda en el desplegable; mantenemos visible lo esencial */
	.aba-card__desc { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
	.aba *, .aba *::before, .aba *::after { transition: none !important; }
}

.aba a:focus-visible, .aba button:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 8px; }

/* =========================================================================
 * Chrome de la tienda (plantilla autónoma): header, footer, contenedor woo
 * ====================================================================== */
body.aba-page { margin: 0; background: #eaf4e7; color: #16201a; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
.aba-top { position: sticky; top: 0; z-index: 100; background: rgba(233,244,230,.95); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid #cfe2cb; }
.aba-top__in { max-width: 1180px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px clamp(18px, 5vw, 40px); }
.aba-top__brand { font-weight: 800; font-size: 18px; letter-spacing: -.02em; color: #181c17; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.aba-top__brand img { max-height: 38px; width: auto; display: block; }
.aba-top__nav { display: flex; align-items: center; gap: 18px; }
.aba-top__link { font-weight: 600; font-size: 15px; color: #3a3f37; text-decoration: none; }
.aba-top__link:hover { color: #176a30; }
.aba-top__cart { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; color: #176a30; text-decoration: none; padding: 9px 16px; border: 1.5px solid #176a30; border-radius: 999px; transition: background .18s ease, color .18s ease; }
.aba-top__cart:hover { background: #176a30; color: #fff; }
.aba-top__cart .aba-ic { width: 17px; height: 17px; }

.aba-main--woo { max-width: 1100px; margin-inline: auto; padding: clamp(24px, 5vw, 56px) clamp(18px, 5vw, 40px) 72px; }
.aba-main--woo h1, .aba-main--woo h2 { letter-spacing: -.02em; }

.aba-foot { border-top: 1px solid #cfe2cb; background: #0e4624; color: #cfe3d3; }
.aba-foot__in { max-width: 1180px; margin-inline: auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 26px clamp(18px, 5vw, 40px); font-size: 13px; color: #aecdb5; }
