/*
Theme Name: ArKiA Tienda
Theme URI: https://tienda.arkiaestructuras.com
Author: ArKiA Estructuras
Author URI: https://www.arkiaestructuras.com
Description: Tema de la tienda online de ArKiA Estructuras. Estilo limpio, blanco, negro y verde ArKiA. Hijo de Twenty Twenty-Five, preparado para WooCommerce.
Template: twentytwentyfive
Version: 1.0.6
Requires at least: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: arkia-tienda
*/

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
::selection { background: #4ab25d; color: #fff; }
:where(a, button, input, select, textarea):focus-visible { outline: 2px solid #4ab25d; outline-offset: 2px; }

/* ---------- Cabecera ---------- */
.arkia-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255,255,255,.82);
	backdrop-filter: saturate(180%) blur(20px);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	border-bottom: 1px solid rgba(0,0,0,.08);
}
.admin-bar .arkia-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .arkia-header { top: 46px; } }
.arkia-header .arkia-logo img { height: 34px; width: auto; display: block; }
.arkia-header .wp-block-navigation { font-size: 14px; letter-spacing: -.01em; }
.arkia-header .wp-block-navigation a { color: #1d1d1f; opacity: .85; transition: opacity .2s; }
.arkia-header .wp-block-navigation a:hover { opacity: 1; text-decoration: none; }
.arkia-header .wc-block-mini-cart__button { padding: 6px; }
.arkia-header .wc-block-mini-cart__badge { background: #4ab25d; color: #fff; border: 0; }

/* ---------- Botones estilo Apple ---------- */
.wp-element-button, .wp-block-button__link { transition: background-color .2s, color .2s, transform .1s; }
.wp-element-button:active, .wp-block-button__link:active { transform: scale(.98); }
.is-style-arkia-link .wp-block-button__link { background: transparent !important; color: #2e8b41 !important; padding-left: 0 !important; padding-right: 0 !important; }
.is-style-arkia-link .wp-block-button__link::after { content: " ›"; }
.is-style-arkia-link .wp-block-button__link:hover { text-decoration: underline; }

/* ---------- Portada ---------- */
.arkia-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.arkia-hero h1 { letter-spacing: -.035em; }
.arkia-hero-media { border-radius: 28px; overflow: hidden; }
.arkia-hero-media img { width: 100%; aspect-ratio: 16/8; object-fit: cover; display: block; }
.arkia-placeholder {
	border-radius: 28px; aspect-ratio: 16/8;
	background: radial-gradient(120% 120% at 80% 0%, #e9f6ec 0%, #f5f5f7 55%, #f5f5f7 100%);
	display: flex; align-items: center; justify-content: center;
}
.arkia-placeholder img { width: 22%; max-width: 220px; opacity: .9; }

.arkia-cat {
	border-radius: 24px; overflow: hidden; background: #f5f5f7;
	transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
	height: 100%;
}
.arkia-cat:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.08); }
.arkia-cat .wp-block-cover, .arkia-cat figure img { border-radius: 0; }
.arkia-cat-img { aspect-ratio: 4/3; background: linear-gradient(160deg,#eef7f0,#e8e8ed); display:flex; align-items:center; justify-content:center; }
.arkia-cat-img img { width: 100%; height: 100%; object-fit: cover; }
.arkia-cat-img .arkia-cat-icon { width: 30%; height: auto; object-fit: contain; opacity: .55; }

.arkia-step-num {
	width: 44px; height: 44px; border-radius: 50%;
	background: #1d1d1f; color: #fff; display: inline-flex; align-items: center; justify-content: center;
	font-weight: 600;
}
.arkia-card { background: #fff; border-radius: 22px; height: 100%; }
.arkia-perk svg { width: 28px; height: 28px; stroke: #4ab25d; }

/* ---------- WooCommerce ---------- */
.wc-block-components-product-image img, .wc-block-grid__product-image img, .wp-block-woocommerce-product-image-gallery img { border-radius: 18px; background: #f5f5f7; }
.wc-block-product-template .wc-block-components-product-image, .wp-block-post-template .wc-block-components-product-image { border-radius: 18px; overflow: hidden; background: #f5f5f7; }
.wc-block-components-product-price, .wp-block-woocommerce-product-price { font-weight: 600; }
.wc-block-components-product-price__value.is-discounted { color: #2e8b41; }
.woocommerce-price-suffix { font-size: .72em; color: #6e6e73; font-weight: 400; margin-left: .3em; }
.wp-block-woocommerce-product-button .wp-block-button__link, .wc-block-components-product-button__button,
.single_add_to_cart_button, .wc-block-components-checkout-place-order-button, .wc-block-cart__submit-button {
	border-radius: 980px !important; background: #1d1d1f !important; color: #fff !important; border: 0 !important; font-weight: 500 !important;
}
.wc-block-components-product-button__button:hover, .single_add_to_cart_button:hover,
.wc-block-components-checkout-place-order-button:hover, .wc-block-cart__submit-button:hover { background: #4ab25d !important; }
.single-product .product_title, .wp-block-post-title { letter-spacing: -.03em; }
.wc-block-components-sale-badge, .onsale { background: #4ab25d !important; color: #fff !important; border: 0 !important; border-radius: 980px !important; }
.woocommerce div.product form.cart .variations select, .wc-block-components-select select { border-radius: 12px; }
.wc-block-components-notice-banner.is-success { border-color: #4ab25d; }
.wc-block-components-notice-banner.is-success > svg { background-color: #4ab25d; }

/* ---------- Pie ---------- */
.arkia-footer a { color: #a1a1a6; text-decoration: none; transition: color .2s; }
.arkia-footer a:hover { color: #fff; }
.arkia-footer .arkia-footer-logo img { height: 40px; width: auto; }
.arkia-footer ul { list-style: none; padding: 0; margin: 0; }
.arkia-footer li { margin: 0 0 .55em; }

/* ---------- WhatsApp flotante ---------- */
.arkia-wa {
	position: fixed; right: 18px; bottom: 18px; z-index: 999;
	width: 56px; height: 56px; border-radius: 50%;
	background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center;
	box-shadow: 0 8px 24px rgba(0,0,0,.18); transition: transform .2s;
}
.arkia-wa:hover { transform: scale(1.06); }
.arkia-wa svg { width: 30px; height: 30px; fill: #fff; }
.arkia-wa-label { display: none; }
@media (min-width: 1025px) { .arkia-wa { width: auto; height: 52px; padding: 0 20px 0 14px; border-radius: 980px; gap: 8px; text-decoration: none; font-weight: 500; font-size: 15px; } .arkia-wa-label { display: inline; color: #fff; } .arkia-wa svg { width: 26px; height: 26px; } }

/* ---------- Ajustes v1.0.1 ---------- */
.wp-site-blocks > footer.wp-block-template-part, .wp-site-blocks > main + footer { margin-block-start: 0; }
.wp-site-blocks > main > .entry-content > .alignfull:last-child { margin-bottom: 0; }
.arkia-header .wc-block-customer-account a { color: #1d1d1f; }
.arkia-header .wc-block-customer-account svg { width: 20px; height: 20px; }
.arkia-footer h3 { margin-bottom: .9em; }
.entry-content > .alignfull + .alignfull { margin-block-start: 0; }
.arkia-desist input, .arkia-desist textarea { width: 100%; padding: 12px 14px; border: 1px solid #d2d2d7; border-radius: 12px; font: inherit; margin-top: 4px; }
.arkia-desist-msg { padding: 16px 20px; border-radius: 14px; }
.arkia-desist-msg.is-ok { background: #e9f6ec; }
.arkia-desist-msg.is-error { background: #fdecec; }
.arkia-install { margin-top: 24px; padding: 18px 20px; border-radius: 16px; background: #f5f5f7; font-size: 15px; }
.arkia-install p { margin: 0 0 6px; }
.arkia-install p:last-child { margin: 0; }
.single-product .wp-block-post-title, .single-product h1.product_title { font-size: clamp(30px, 3.6vw, 44px) !important; line-height: 1.1; }
.single-product .wp-block-woocommerce-product-price { font-size: 24px; }
.single-product .wp-block-post-terms, .single-product .wp-block-woocommerce-product-meta { display: none; }
.arkia-wa-product { margin: 14px 0 0; }
.arkia-wa-product a { display: inline-flex; align-items: center; gap: 8px; background: #25d366; color: #fff !important; border-radius: 980px; padding: 12px 22px; font-weight: 500; text-decoration: none !important; transition: background .2s; }
.arkia-wa-product a:hover { background: #1ebe5b; }
.arkia-wa-product a::before { content: ""; width: 20px; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='white'%3E%3Cpath d='M16 3C9.4 3 4 8.4 4 15c0 2.1.6 4.2 1.6 6L4 29l8.2-1.6c1.2.4 2.5.6 3.8.6 6.6 0 12-5.4 12-12S22.6 3 16 3Zm5.3 15.5c-.3-.1-1.7-.8-2-.9-.3-.1-.5-.1-.7.1-.2.3-.8.9-.9 1.1-.2.2-.3.2-.6.1-.3-.1-1.2-.5-2.3-1.4-.9-.8-1.4-1.7-1.6-2-.2-.3 0-.4.1-.6l.4-.5c.1-.2.2-.3.3-.5.1-.2 0-.4 0-.5l-.9-2.2c-.2-.6-.5-.5-.7-.5h-.6c-.2 0-.5.1-.8.4-.3.3-1 1-1 2.4s1 2.8 1.2 3c.1.2 2 3.1 4.9 4.3 2.4 1 2.9.8 3.4.7.6-.1 1.7-.7 1.9-1.4.2-.7.2-1.2.2-1.4-.1-.1-.3-.2-.6-.3Z'/%3E%3C/svg%3E") center/contain no-repeat; }
.arkia-medida { margin: 0 0 18px; padding: 14px 18px; border-radius: 14px; background: #fff6e0; border: 1px solid #f1d08a; font-size: 15px; }
