/*
 * AppleTech — la única hoja de estilos del tema.
 * Look 2026: limpio, técnico, azul Apple, superficies claras y esquinas suaves.
 * Base de maquetación heredada del patrón atelier-pnv, reestilizada para tienda de recambios.
 */

/* ============ FUENTES (variables, alojadas en el tema) ============ */
@font-face {
	font-family: 'Space Grotesk';
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url('../fonts/space-grotesk-var.woff2') format('woff2');
}
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('../fonts/inter-var.woff2') format('woff2');
}

/* ============ VARIABLES ============ */
:root {
	--ink: #0E1116;
	--ink-soft: #5B6472;
	--brand: #0071E3;
	--brand-dark: #005BB5;
	--brand-soft: #E8F1FE;
	--ok: #1E9E5A;
	--warn: #E8590C;
	--bg: #FFFFFF;
	--tint: #F5F7FA;
	--line: #E6E9EF;
	--r-sm: 10px;
	--r: 16px;
	--r-lg: 24px;
	--shadow: 0 12px 34px rgba(14, 17, 22, 0.10);
	--shadow-soft: 0 4px 14px rgba(14, 17, 22, 0.06);
	--ui: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--display: 'Space Grotesk', -apple-system, 'Segoe UI', sans-serif;
}

/* ============ BASE ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--body);
	font-size: 15.5px;
	line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--brand-dark); }
::selection { background: var(--brand); color: #fff; }
h1, h2, h3, h4, h5 { font-family: var(--ui); color: var(--ink); line-height: 1.28; margin: 0 0 .5em; }
.at-h1, h1 { font-family: var(--display); font-size: clamp(27px, 3.6vw, 40px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.18; }
.at-h2, h2 { font-family: var(--display); font-size: clamp(21px, 2.6vw, 29px); font-weight: 700; letter-spacing: -0.015em; }
.at-container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.at-main { padding-bottom: 28px; }
.at-section { margin-top: 54px; }
button { font-family: var(--ui); cursor: pointer; }

/* ============ BARRA DE CONFIANZA (superior) ============ */
.at-announce {
	background: var(--ink); color: #E8EAF0;
	font-family: var(--ui); font-size: 12.5px; font-weight: 500; letter-spacing: 0.01em;
}
.at-announce .at-announce-in { max-width: none; }
.at-announce-in { display: flex; align-items: center; justify-content: center; gap: 2.4em; padding: 9px 20px; position: relative; }
.at-announce-in > span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.at-announce-in > span svg { color: #4FA3F7; flex-shrink: 0; }
.at-announce-left { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); font-weight: 600; }
.at-announce-stars { color: #FFC93C; letter-spacing: 0.1em; font-size: 12px; }
.at-announce-account { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: #fff; font-weight: 600; opacity: .9; }
.at-announce-account:hover { opacity: 1; color: #fff; text-decoration: underline; }
@media (max-width: 980px) {
	.at-announce-in > span:nth-child(3), .at-announce-in > span:nth-child(4), .at-announce-account { display: none; }
	.at-announce-in { padding: 6px 12px; gap: 12px; flex-wrap: wrap; justify-content: center; }
	.at-announce-in > .at-announce-left { position: static; transform: none; }
}

/* ============ CABECERA ============ */
.at-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 900; }
.at-header.is-stuck { box-shadow: var(--shadow-soft); }
.at-header-in { display: flex; align-items: center; gap: 26px; padding-top: 12px; padding-bottom: 12px; }
.at-logo { flex-shrink: 0; }
.at-logo img { max-height: 54px; width: auto; display: block; }
.at-logo-text { font-family: var(--display); font-weight: 700; font-size: 23px; letter-spacing: -0.02em; color: var(--ink); }

/* Navegación central */
.at-nav { flex: 1; min-width: 0; }
.at-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 4px; }
.at-menu > li { position: static; }
.at-menu > li > a {
	display: flex; align-items: center; gap: 5px;
	font-family: var(--ui); font-weight: 600; font-size: 14px; color: var(--ink);
	padding: 8px 12px; border-radius: 10px; transition: background .15s ease, color .15s ease;
}
.at-menu > li > a:hover, .at-menu > li.current-menu-item > a { background: var(--brand-soft); color: var(--brand-dark); }
.at-caret { opacity: .5; margin-top: 1px; transition: transform .18s ease; }
.at-menu > li.is-abierto .at-caret { transform: rotate(180deg); }
.at-menu > li.is-abierto > a { background: var(--brand-soft); color: var(--brand-dark); }

/* Panel mega-menú a todo el ancho */
.at-menu .sub-menu {
	list-style: none; margin: 0; padding: 24px 30px 28px;
	position: absolute; left: 0; right: 0; top: 100%;
	display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 26px;
	background: #fff; border-top: 1px solid var(--line);
	border-radius: 0 0 20px 20px; box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(4px);
	transition: opacity .12s ease, transform .12s ease, visibility 0s linear .12s;
	z-index: 950;
}
.at-menu > li.is-abierto > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); transition: opacity .12s ease, transform .12s ease; }
.at-menu .sub-menu li a {
	display: flex; flex-direction: column; align-items: center; gap: 10px;
	width: 148px; text-align: center;
	font-family: var(--ui); font-weight: 600; font-size: 13.5px; line-height: 1.3; color: var(--ink-soft);
	padding: 4px; border-radius: 14px; transition: color .14s ease;
}
.at-menu .sub-menu li a:hover { color: var(--brand-dark); }
.at-menu .sub-menu .at-menu-img, .at-menu .sub-menu .at-menu-icono { width: 108px; height: 108px; }
.at-menu .sub-menu .at-menu-icono svg { width: 40px; height: 40px; }
.at-menu .sub-menu .at-ver-todo a { color: var(--brand-dark); font-weight: 700; }
.at-menu .sub-menu li a:hover .at-menu-img, .at-menu .sub-menu li a:hover .at-menu-icono { border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.at-menu-img {
	width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
	border: 2px solid var(--brand-soft); background: var(--tint);
}
.at-menu-icono {
	display: inline-flex; align-items: center; justify-content: center;
	width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
	background: var(--brand-soft); color: var(--brand-dark);
	border: 2px solid transparent; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.at-menu-icono svg { width: 24px; height: 24px; }
.at-cat-svg { display: inline-flex; }
.at-menu .sub-menu .sub-menu { display: none; }

/* Herramientas */
.at-header-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-left: auto; }
.at-search { width: 250px; }
.at-tool { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; color: var(--ink); position: relative; transition: background .15s ease, color .15s ease; }
.at-tool:hover { background: var(--brand-soft); color: var(--brand-dark); }
.at-cart-count {
	position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; padding: 0 4px;
	background: var(--brand); color: #fff; border-radius: 999px;
	font-family: var(--ui); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}

/* Buscador en píldora */
.at-search form { position: relative; margin: 0; }
.at-search input[type="search"], .at-search input[type="text"],
.at-search-mobile input[type="search"] {
	width: 100%; border: 1.5px solid var(--line); border-radius: 12px; background: var(--tint);
	padding: 10px 42px 10px 16px; font-family: var(--body); font-size: 14px; color: var(--ink);
	transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.at-search input:focus, .at-search-mobile input:focus {
	outline: none; background: #fff; border-color: var(--brand);
	box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}
.at-search button[type="submit"], .at-search-mobile button[type="submit"] {
	position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
	width: 34px; height: 34px; border: none; border-radius: 9px; background: transparent;
	color: var(--ink-soft); font-size: 0;
}
.at-search button[type="submit"]::before, .at-search-mobile button[type="submit"]::before {
	content: ""; display: block; width: 16px; height: 16px; margin: 0 auto; background: currentColor;
	-webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round"><circle cx="11" cy="11" r="7"/><path d="M21 21l-4.5-4.5"/></svg>') center / contain no-repeat;
	mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round"><circle cx="11" cy="11" r="7"/><path d="M21 21l-4.5-4.5"/></svg>') center / contain no-repeat;
}
.at-search-mobile { display: none; padding-bottom: 12px; }

/* Hamburguesa */
.at-burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; border: none; background: transparent; border-radius: 12px; }
.at-burger span { display: block; width: 22px; height: 2.5px; margin: 0 auto; background: var(--ink); border-radius: 2px; }

/* Cajón móvil */
.at-drawer {
	position: fixed; top: 0; left: 0; bottom: 0; width: min(88vw, 380px); z-index: 1100;
	background: #fff; overflow: hidden; padding: 18px 20px 16px;
	display: flex; flex-direction: column;
	transform: translateX(-102%); transition: transform .25s ease; box-shadow: var(--shadow);
}
.at-drawer.is-open { transform: translateX(0); }
.at-drawer-head { display: flex; align-items: center; justify-content: space-between; font-family: var(--ui); font-weight: 700; font-size: 17px; margin-bottom: 10px; flex-shrink: 0; }
.at-drawer-close { border: none; background: var(--tint); width: 38px; height: 38px; border-radius: 50%; font-size: 22px; line-height: 1; color: var(--ink); }
.at-drawer-menu { list-style: none; margin: 0; padding: 0; flex: 1; overflow-y: auto; }
.at-drawer-menu > li { border-bottom: 1px solid var(--line); }
.at-drawer-menu > li:last-child { border-bottom: none; }
.at-drawer-menu a { display: flex; align-items: center; gap: 12px; padding: 11px 4px; font-family: var(--ui); font-weight: 600; font-size: 15.5px; color: var(--ink); }
.at-drawer-menu .at-caret { display: none; }
.at-drawer-menu .at-menu-img, .at-drawer-menu .at-menu-icono { width: 46px; height: 46px; }
.at-drawer-menu .at-menu-icono svg { width: 22px; height: 22px; }
.at-drawer-menu li.menu-item-has-children > a { position: relative; padding-right: 34px; }
.at-drawer-menu li.menu-item-has-children > a::after {
	content: ""; position: absolute; right: 12px; top: 50%; width: 9px; height: 9px;
	border-right: 2.2px solid var(--brand); border-bottom: 2.2px solid var(--brand);
	transform: translateY(-50%) rotate(-45deg);
}
.at-drawer-menu .sub-menu {
	list-style: none; margin: 0; padding: 16px 20px 30px;
	position: absolute; inset: 0; z-index: 5; background: #fff; overflow-y: auto;
	transform: translateX(103%); transition: transform .25s ease;
}
.at-drawer-menu li.is-open > .sub-menu { transform: translateX(0); }
.at-drawer-menu .sub-menu li { border-bottom: 1px solid var(--line); }
.at-drawer-menu .sub-menu li:last-child { border-bottom: none; }
.at-drawer-menu .sub-menu a { font-weight: 600; font-size: 15px; color: var(--ink); padding: 10px 2px; }
.at-sub-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 12px; margin-bottom: 4px; }
.at-sub-head strong { flex: 1; text-align: center; font-family: var(--ui); font-size: 17px; color: var(--brand-dark); }
.at-sub-back, .at-sub-close { border: none; background: var(--tint); width: 38px; height: 38px; border-radius: 50%; font-size: 20px; line-height: 1; color: var(--ink); flex-shrink: 0; }
.at-drawer-menu .sub-menu .at-ver-todo a { color: var(--brand-dark); font-weight: 700; }
.at-drawer-foot { margin-top: 14px; display: flex; gap: 14px; flex-shrink: 0; }
.at-drawer-foot a { font-family: var(--ui); font-weight: 700; }
.at-overlay { position: fixed; inset: 0; background: rgba(14, 17, 22, .45); z-index: 1000; }

/* ============ BOTONES ============ */
.at-btn, .button, button[type="submit"], input[type="submit"],
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt,
.woocommerce #respond input#submit, .single_add_to_cart_button, .checkout-button,
.wc-block-components-button {
	display: inline-block;
	background: var(--brand); color: #fff !important;
	border: none; border-radius: 12px;
	font-family: var(--ui); font-weight: 700; font-size: 14.5px; letter-spacing: 0.005em;
	padding: 12px 26px; text-align: center;
	box-shadow: 0 6px 16px rgba(0, 113, 227, 0.26);
	transition: background .15s ease, box-shadow .15s ease, transform .12s ease;
	cursor: pointer;
}
.at-btn:hover, .button:hover, button[type="submit"]:hover, input[type="submit"]:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover,
.single_add_to_cart_button:hover, .checkout-button:hover {
	background: var(--brand-dark); color: #fff !important;
	box-shadow: 0 8px 22px rgba(0, 91, 181, 0.30); transform: translateY(-1px);
}
.at-btn:active { transform: translateY(0); }
.at-btn-sm { padding: 10px 18px; font-size: 13.5px; }
.at-btn-ghost { background: #fff; color: var(--ink) !important; border: 1.5px solid var(--line); box-shadow: none; }
.at-btn-ghost:hover { background: var(--tint); color: var(--brand-dark) !important; border-color: var(--brand); box-shadow: none; }

/* ============ MIGAS DE PAN ============ */
.at-breadcrumb { font-size: 12.5px; color: #6E7484; padding: 16px 0 4px; }
.at-breadcrumb a { color: var(--ink-soft); }
.at-breadcrumb a:hover { color: var(--brand); }

/* ============ PORTADA · HÉROE ============ */
.at-hero {
	display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 30px;
	background: radial-gradient(1200px 400px at 15% 0%, #EAF2FE 0%, #F3F7FC 45%, #FFFFFF 100%);
	border: 1px solid var(--line); border-radius: var(--r-lg); padding: 46px 48px; margin-top: 24px; overflow: hidden;
}
.at-chip {
	display: inline-block; background: #fff; color: var(--brand-dark);
	font-family: var(--ui); font-weight: 700; font-size: 12px; letter-spacing: 0.03em;
	border: 1px solid var(--brand-soft); border-radius: 999px; padding: 6px 14px; margin-bottom: 16px; box-shadow: var(--shadow-soft);
}
.at-hero h1 { margin-bottom: 14px; }
.at-hero p { color: var(--ink-soft); font-size: 16.5px; max-width: 52ch; margin: 0 0 22px; }
.at-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.at-hero-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.at-hero-points li { position: relative; padding-left: 26px; font-size: 14px; color: var(--ink); font-weight: 500; }
.at-hero-points li::before {
	content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%;
	background: var(--brand-soft) url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%230071E3" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12l4 4 10-10"/></svg>') center / 12px no-repeat;
}
.at-hero-card {
	background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px 24px; box-shadow: var(--shadow);
	display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
}
.at-hero-badge {
	width: 52px; height: 52px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-dark);
	display: inline-flex; align-items: center; justify-content: center;
}
.at-hero-badge svg { width: 28px; height: 28px; }
.at-hero-card strong { font-family: var(--ui); font-size: 18px; }
.at-hero-card p { font-size: 14px; color: var(--ink-soft); margin: 0 0 6px; }
.at-hero-card .at-btn { margin-top: auto; }

.at-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.at-link-more { font-family: var(--ui); font-weight: 600; font-size: 14px; white-space: nowrap; }

/* ============ PORTADA · TARJETAS DE CATEGORÍA ============ */
.at-cat-cards {
	list-style: none; margin: 20px 0 6px; padding: 0;
	display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px;
}
.at-cat-cards a {
	display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
	background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px;
	transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
	height: 100%;
}
.at-cat-cards a:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow); }
.at-cat-media {
	width: 56px; height: 56px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-dark);
	display: inline-flex; align-items: center; justify-content: center; margin-bottom: 6px; overflow: hidden;
}
.at-cat-media img { width: 100%; height: 100%; object-fit: cover; }
.at-cat-media .at-cat-svg svg, .at-cat-media svg { width: 28px; height: 28px; }
.at-cat-name { font-family: var(--ui); font-weight: 700; font-size: 15.5px; color: var(--ink); }
.at-cat-cards a:hover .at-cat-name { color: var(--brand-dark); }
.at-cat-count { font-size: 12.5px; color: var(--ink-soft); }

/* Círculos de subcategorías (páginas de categoría) */
.at-cat-circles {
	list-style: none; margin: 18px 0 6px; padding: 0;
	display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 18px 12px;
}
.at-cat-circles a { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.at-cat-circle-img {
	display: flex; align-items: center; justify-content: center; width: 108px; height: 108px; border-radius: 50%; overflow: hidden;
	border: 2px solid var(--brand-soft); background: var(--tint); color: var(--brand-dark);
	transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.at-cat-circle-img svg { width: 40px; height: 40px; }
.at-cat-circles a:hover .at-cat-circle-img { border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.at-cat-circle-img img { width: 100%; height: 100%; object-fit: cover; }
.at-cat-circle-name {
	font-family: var(--ui); font-weight: 600; font-size: 13.5px; color: var(--ink); line-height: 1.3;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.at-cat-circles a:hover .at-cat-circle-name { color: var(--brand-dark); }

/* ============ BARRA DE CONFIANZA (portada) ============ */
.at-trust { background: var(--tint); margin-top: 54px; padding: 34px 0; }
.at-trust-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.at-trust-item { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: var(--brand); }
.at-trust-item strong { font-family: var(--ui); font-size: 15px; color: var(--ink); }
.at-trust-item span { font-size: 13px; color: var(--ink-soft); }

/* ============ BLOG ============ */
.at-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 16px; }
.at-blog-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.at-blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.at-blog-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; background: var(--tint); }
.at-blog-card h2, .at-blog-card h3 { font-size: 16.5px; font-weight: 700; margin: 14px 16px 6px; color: var(--ink); }
.at-blog-card:hover h2, .at-blog-card:hover h3 { color: var(--brand-dark); }
.at-blog-card p { margin: 0 16px 8px; font-size: 13.5px; color: var(--ink-soft); }
.at-blog-date { display: block; margin: 0 16px 16px; font-family: var(--ui); font-size: 12px; font-weight: 500; color: #6E7484; }

/* ============ TEXTO SEO ============ */
.at-seo-text { background: var(--tint); border-radius: var(--r-lg); padding: 30px 34px; }
.at-seo-text h2 { font-size: 20px; }
.at-seo-text p { color: var(--ink-soft); margin: 0; }
.at-seo-text a { text-decoration: underline; text-decoration-color: rgba(0, 113, 227, .4); text-underline-offset: 3px; }

/* ============ REJILLA DE PRODUCTOS (WooCommerce) ============ */
ul.products { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 22px 18px; grid-template-columns: repeat(4, 1fr); }
ul.products.columns-3 { grid-template-columns: repeat(3, 1fr); }
ul.products li.product {
	position: relative; display: flex; flex-direction: column; text-align: center;
	background: #fff; border: 1px solid var(--line); border-radius: var(--r);
	padding: 12px 14px 18px; margin: 0; width: auto; float: none;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product,
.woocommerce ul.products[class*="columns-"] li.product, .woocommerce-page ul.products[class*="columns-"] li.product { float: none; clear: none; width: auto; margin: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after,
.woocommerce-page ul.products::before, .woocommerce-page ul.products::after,
ul.products::before, ul.products::after { content: none; }
ul.products li.product:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #CFE1FB; }
ul.products li.product { align-self: stretch; }
ul.products li.product .button,
.woocommerce ul.products li.product .button, .woocommerce-page ul.products li.product .button { margin-top: auto; }
ul.products li.product a img { border-radius: var(--r-sm); background: var(--tint); }
ul.products li.product .woocommerce-loop-product__title,
ul.products li.product .woocommerce-loop-product__title a {
	font-family: var(--body); font-weight: 600; font-size: 14px; line-height: 1.4; color: var(--ink); padding: 10px 0 2px;
}
ul.products li.product .woocommerce-loop-product__title a:hover { color: var(--brand-dark); }
ul.products li.product .star-rating { margin: 4px auto; }
ul.products li.product .price { display: block; font-family: var(--ui); font-weight: 700; font-size: 17px; color: var(--ink); margin: 4px 0 10px; }
ul.products li.product .price del { color: #8B90A0; font-weight: 500; font-size: 14px; margin-right: 6px; }
ul.products li.product .price ins { text-decoration: none; color: var(--brand); }
.woocommerce-price-suffix { font-size: 11px; color: #6E7484; font-weight: 500; }
ul.products li.product .button { margin-top: auto; width: 100%; padding: 11px 10px; font-size: 13.5px; }

/* Insignia de oferta */
.onsale {
	position: absolute; top: 16px; left: 16px; z-index: 5; background: var(--warn); color: #fff;
	font-family: var(--ui); font-weight: 700; font-size: 12.5px; border-radius: 999px; padding: 5px 11px; box-shadow: var(--shadow-soft);
}
.star-rating { color: #E8A400; }
.star-rating::before { color: #E4E7EE; }
.star-rating span::before { color: #E8A400; }

/* Cabecera de categoría / toolbar */
.woocommerce-products-header { padding: 6px 0 2px; }
.woocommerce-products-header__title { margin-bottom: 4px; }
.term-description { color: var(--ink-soft); font-size: 14.5px; line-height: 1.65; max-width: 90ch; }
.at-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; margin: 10px 0 2px; }
.at-toolbar .woocommerce-result-count, .woocommerce .at-toolbar .woocommerce-result-count,
.at-toolbar .woocommerce-ordering, .woocommerce .at-toolbar .woocommerce-ordering { float: none; margin: 0; }
.woocommerce-result-count { color: #6E7484; font-size: 13px; }
.woocommerce-ordering select {
	border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 14px;
	font-family: var(--ui); font-weight: 500; font-size: 13.5px; color: var(--ink); background: #fff;
}

/* Paginación WooCommerce */
.woocommerce nav.woocommerce-pagination, .at-pagination { text-align: center; margin: 34px 0 8px; }
.woocommerce nav.woocommerce-pagination ul, .at-pagination .nav-links { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 8px; border: none; margin: 0; padding: 0; }
.woocommerce nav.woocommerce-pagination ul li { border: none; margin: 0; overflow: visible; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span,
.at-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 10px;
	border-radius: 10px; background: #fff; border: 1.5px solid var(--line);
	font-family: var(--ui); font-weight: 600; font-size: 14.5px; line-height: 1; color: var(--ink); transition: all .15s ease;
}
.woocommerce nav.woocommerce-pagination ul li a:hover, .at-pagination a.page-numbers:hover { background: var(--tint); border-color: var(--brand); color: var(--brand-dark); }
.woocommerce nav.woocommerce-pagination ul li span.current, .at-pagination .page-numbers.current { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ============ FICHA DE PRODUCTO ============ */
.single-product div.product { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 18px; }
.single-product div.product .woocommerce-product-gallery { flex: 1 1 46%; max-width: 560px; float: none; }
.single-product div.product .entry-summary { flex: 1 1 46%; float: none; margin: 0; }
.single-product div.product .woocommerce-product-gallery__wrapper img { border-radius: var(--r); }
.single-product div.product .woocommerce-product-gallery ol.flex-control-thumbs { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; padding: 0; }
.single-product div.product .woocommerce-product-gallery ol.flex-control-thumbs li { width: 76px; list-style: none; }
.single-product div.product .woocommerce-product-gallery ol.flex-control-thumbs img { border-radius: var(--r-sm); border: 2px solid transparent; cursor: pointer; }
.single-product div.product .woocommerce-product-gallery ol.flex-control-thumbs img.flex-active { border-color: var(--brand); }
.single-product div.product .product_title { font-family: var(--display); font-size: clamp(22px, 2.8vw, 30px); font-weight: 700; letter-spacing: -0.02em; }
.single-product div.product .entry-summary .price { font-family: var(--ui); font-weight: 700; font-size: 26px; color: var(--ink); }
.single-product div.product .entry-summary .price del { color: #8B90A0; font-size: 19px; }
.single-product div.product .entry-summary .price ins { text-decoration: none; color: var(--brand); }
.single-product div.product .woocommerce-product-details__short-description { color: var(--ink-soft); }
.single-product div.product form.cart { margin: 18px 0; }
.single-product .quantity .qty { border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 8px; width: 74px; font-family: var(--ui); font-weight: 600; text-align: center; }
.single-product div.product .single_add_to_cart_button { padding: 14px 34px; font-size: 15px; }
.wc-pao-addon input[type="text"], .wc-pao-addon textarea, .wc-pao-addon select,
form.cart input[type="text"], form.cart textarea, form.cart select {
	width: 100%; border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 10px 14px; font-family: var(--body); font-size: 14px; background: #fff;
}

/* Pestañas */
.woocommerce-tabs { width: 100%; margin-top: 24px; }
.woocommerce-tabs ul.tabs { list-style: none; margin: 0 0 18px; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; border-bottom: 1.5px solid var(--line); }
.woocommerce-tabs ul.tabs li { margin: 0; }
.woocommerce-tabs ul.tabs li a { display: block; padding: 10px 18px; font-family: var(--ui); font-weight: 600; font-size: 14px; color: var(--ink-soft); border-radius: 10px 10px 0 0; border-bottom: 3px solid transparent; }
.woocommerce-tabs ul.tabs li.active a { color: var(--brand-dark); border-bottom-color: var(--brand); }
.related.products, .up-sells.products { width: 100%; margin-top: 34px; }
.related.products > h2, .up-sells.products > h2 { font-size: 22px; }

/* ============ AVISOS ============ */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	border: 1px solid var(--line); border-left: 5px solid var(--brand); border-radius: var(--r-sm);
	background: #fff; box-shadow: var(--shadow-soft); color: var(--ink); padding: 14px 18px 14px 48px; margin-bottom: 20px; list-style: none; position: relative; line-height: 1.55;
}
.woocommerce-error li, .woocommerce-message li, .woocommerce-info li { list-style: none; margin: 0; }
.woocommerce-message { border-left-color: var(--ok); }
.woocommerce-error { border-left-color: #E03131; }

/* ============ CESTA / PAGO / CUENTA ============ */
.woocommerce table.shop_table { border: 1px solid var(--line); border-radius: var(--r); border-collapse: separate; border-spacing: 0; overflow: hidden; width: 100%; }
.woocommerce table.shop_table th { background: var(--tint); font-family: var(--ui); font-weight: 600; font-size: 13.5px; padding: 12px 14px; text-align: left; }
.woocommerce table.shop_table td { padding: 12px 14px; border-top: 1px solid var(--line); }
.woocommerce table.shop_table img { border-radius: var(--r-sm); width: 64px; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 11px 14px; font-family: var(--body); font-size: 14px; }
.woocommerce form .form-row input.input-text:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(0,113,227,0.10); }
.woocommerce form .form-row label { font-family: var(--ui); font-weight: 600; font-size: 13.5px; }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation li a { display: block; padding: 10px 14px; border-radius: var(--r-sm); font-family: var(--ui); font-weight: 500; color: var(--ink-soft); }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a, .woocommerce-account .woocommerce-MyAccount-navigation li a:hover { background: var(--brand-soft); color: var(--brand-dark); }

/* ============ PÁGINAS Y ARTÍCULOS ============ */
.at-page-head { padding: 10px 0 6px; }
.at-page-sub { color: var(--ink-soft); margin-top: -4px; }
.at-entry { max-width: 820px; }
.at-article-wrap { max-width: 900px; }
.at-article-head { padding: 8px 0 4px; }
.at-article-meta { color: var(--ink-soft); font-family: var(--ui); font-size: 13px; }
.at-article-img { margin: 0 0 22px; }
.at-article-img img { width: 100%; border-radius: var(--r-lg); }
.at-entry h2 { margin-top: 1.4em; }
.at-entry h2:first-child { margin-top: 0.4em; }
.at-entry h3 { margin-top: 1.2em; }
.at-entry ul, .at-entry ol { padding-left: 22px; margin: 0.6em 0 1em; }
.at-entry li { margin-bottom: 6px; line-height: 1.7; }
.at-entry img { border-radius: var(--r); }
.at-entry a { font-weight: 600; text-decoration: underline; text-decoration-color: rgba(0,113,227,.35); text-underline-offset: 3px; }
.at-entry a:hover { text-decoration-color: var(--brand); }
.at-entry blockquote { margin: 1.2em 0; padding: 12px 18px; border-left: 4px solid var(--brand); background: var(--tint); border-radius: var(--r-sm); }
.at-article-tags { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.at-article-tags a { display: inline-block; padding: 5px 12px; background: var(--tint); border-radius: 999px; font-family: var(--ui); font-size: 12.5px; font-weight: 500; color: var(--ink-soft); text-decoration: none; }
.at-post-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-family: var(--ui); font-weight: 600; font-size: 14px; }
.at-blog-grid-archive { grid-template-columns: repeat(3, 1fr); }

/* 404 */
.at-404 { text-align: center; padding: 70px 20px; max-width: 560px; margin: 0 auto; }
.at-404-search { margin: 22px auto 26px; max-width: 420px; }

/* ============ PIE DE PÁGINA ============ */
.at-footer { background: var(--ink); color: #C7CCD6; margin-top: 36px; }
.at-footer a { color: #C7CCD6; }
.at-footer a:hover { color: #fff; }
.at-footer-cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 36px; padding-top: 46px; padding-bottom: 40px; }
.at-footer-brand img { max-height: 44px; width: auto; margin-bottom: 12px; filter: brightness(0) invert(1); }
.at-footer-brand .at-logo-text { color: #fff; display: inline-block; margin-bottom: 10px; }
.at-footer-brand p { font-size: 13.5px; color: #99A0AD; max-width: 40ch; }
.at-social { display: flex; gap: 10px; margin-top: 14px; }
.at-social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #fff; transition: all .15s ease; }
.at-social a:hover { background: var(--ok); border-color: var(--ok); color: #fff; transform: translateY(-2px); }
.at-footer-col h3 { font-family: var(--ui); font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.at-footer-col ul { list-style: none; margin: 0; padding: 0; }
.at-footer-col li { margin-bottom: 9px; font-size: 14px; color: #99A0AD; }
.at-footer-legal { border-top: 1px solid rgba(255,255,255,.10); }
.at-footer-legal-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; font-size: 12.5px; color: #8B92A0; }
.at-footer-legal a { color: #8B92A0; margin-left: 16px; }
.at-footer-legal a:hover { color: #fff; }

/* WhatsApp flotante */
.at-wa-fab { position: fixed; right: 18px; bottom: 18px; z-index: 950; width: 54px; height: 54px; border-radius: 50%; background: #25D366; color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(37, 211, 102, .40); transition: transform .15s ease; }
.at-wa-fab:hover { transform: scale(1.06); color: #fff; }

/* ============ «MÁS DE ESTA CATEGORÍA» ============ */
.at-more-cat { margin: 30px 0 8px; }
.at-more-cat h2 { font-family: var(--ui); font-size: 15px; font-weight: 700; color: var(--ink); margin: 0 0 12px; }
.at-more-cat ul { display: flex; gap: 12px; list-style: none; margin: 0; padding: 0 0 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.at-more-cat ul::-webkit-scrollbar { display: none; }
.at-more-cat li { flex: 0 0 auto; }
.at-more-cat img { width: 84px; height: 84px; object-fit: cover; display: block; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--tint); transition: transform .15s ease, border-color .15s ease; }
.at-more-cat a:hover img { border-color: var(--brand); transform: translateY(-2px); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) {
	.at-nav { display: none; }
	.at-burger { display: flex; }
	.at-header-in { gap: 14px; position: relative; justify-content: space-between; }
	.at-logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
	.at-search { display: none; }
	.at-search-mobile { display: block; }
	ul.products { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
	.at-hero { grid-template-columns: 1fr; padding: 30px 24px; gap: 22px; }
	.at-hero-card { order: -1; }
	.at-trust-in { grid-template-columns: repeat(2, 1fr); }
	.at-blog-grid, .at-blog-grid-archive { grid-template-columns: 1fr 1fr; }
	.at-footer-cols { grid-template-columns: 1fr 1fr; }
	.single-product div.product { gap: 24px; }
}
@media (max-width: 640px) {
	body { font-size: 15px; }
	.at-logo img { max-height: 46px; }
	ul.products, ul.products.columns-3 { grid-template-columns: repeat(2, 1fr); gap: 14px 10px; }
	ul.products li.product { padding: 8px 8px 14px; }
	ul.products li.product .button { font-size: 12.5px; padding: 10px 6px; }
	.at-blog-grid, .at-blog-grid-archive { grid-template-columns: 1fr; }
	.at-footer-cols { grid-template-columns: 1fr; gap: 26px; }
	.at-cat-cards { grid-template-columns: 1fr 1fr; gap: 12px; }
	.at-cat-cards a { padding: 16px; }
	.at-section { margin-top: 40px; }
	.onsale { top: 12px; left: 12px; font-size: 11.5px; padding: 4px 9px; }
	.at-cat-circles { display: flex; overflow-x: auto; gap: 16px; padding: 4px 2px 12px; scroll-snap-type: x mandatory; scrollbar-width: none; }
	.at-cat-circles::-webkit-scrollbar { display: none; }
	.at-cat-circles li { flex: 0 0 auto; width: 100px; scroll-snap-align: start; }
	.at-cat-circle-img { width: 92px; height: 92px; }
}

/* ============ REFINAMIENTOS v1.1 (feedback) ============ */
:root { --brand-grad: linear-gradient(135deg, #0A84FF 0%, #0059CC 100%); }

/* Botones con más vida (degradado) */
.at-btn, .button, button[type="submit"], input[type="submit"],
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce a.button.alt, .woocommerce button.button.alt,
.single_add_to_cart_button, .checkout-button, .wc-block-components-button {
	background: var(--brand-grad);
}
.at-btn-ghost { background: #fff; }

/* Héroe con más color y profundidad */
.at-hero {
	background:
		radial-gradient(760px 420px at 88% -14%, #CDE2FF 0%, rgba(205,226,255,0) 60%),
		radial-gradient(560px 340px at -5% 115%, #E6EEFF 0%, rgba(230,238,255,0) 55%),
		linear-gradient(180deg, #F2F7FF 0%, #FFFFFF 100%);
	border-color: #DCE7F8;
}
.at-hero-badge { background: var(--brand-grad); color: #fff; }
.at-cat-cards a:hover .at-cat-media { background: var(--brand-grad); color: #fff; }

/* Menú legal en línea (no lista vertical suelta) */
.at-legal-menu { list-style: none; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin: 0; padding: 0; }
.at-legal-menu li { margin: 0; }
.at-legal-menu a { color: #8B92A0; }
.at-legal-menu a:hover { color: #fff; }

/* Añadir al carrito — legible en cualquier tarjeta y en móvil */
.single-product div.product form.cart { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
ul.products li.product .button { white-space: normal; line-height: 1.25; min-height: 42px; display: flex; align-items: center; justify-content: center; }
@media (max-width: 640px) {
	.single-product div.product form.cart { gap: 8px; }
	.single-product div.product form.cart .quantity { flex: 0 0 auto; }
	.single-product div.product .single_add_to_cart_button { flex: 1 1 auto; width: 100%; padding: 14px 18px; }
	ul.products li.product .price { font-size: 16px; }
	ul.products li.product .button { font-size: 13px; padding: 11px 8px; min-height: 40px; }
	.at-wa-fab { width: 50px; height: 50px; right: 14px; bottom: 14px; }
}
