/*
Theme Name: Zikra Lab
Theme URI: https://zikralab.com
Author: ZIKRA LAB S.A.S.
Description: Tema de bloques de Zikra Lab: azul noche, arenas y acentos alegres con estilo "sticker". Listo para WooCommerce y editable desde el Editor del sitio.
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zikralab
Tags: block-theme, e-commerce, full-site-editing, custom-colors
*/

/* ---------- Base ---------- */
html { scroll-behavior: smooth; overflow-x: clip; }
body { -webkit-font-smoothing: antialiased; overflow-x: hidden; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
:focus-visible { outline: 3px solid var(--wp--preset--color--cielo); outline-offset: 2px; }
img { height: auto; }
.zk-nowrap { white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Botones sticker ---------- */
.wp-element-button, .wp-block-button__link {
	transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.wp-element-button:hover, .wp-block-button__link:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--wp--preset--color--navy); }
.wp-element-button:active, .wp-block-button__link:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--wp--preset--color--navy); }
.is-style-zk-claro .wp-block-button__link,
.wp-block-button.is-style-zk-claro .wp-block-button__link { background: var(--wp--preset--color--card); color: var(--wp--preset--color--navy); }
.wp-block-button.is-style-zk-navy .wp-block-button__link { background: var(--wp--preset--color--navy); color: var(--wp--preset--color--cream); }
.wp-block-button.is-style-zk-navy .wp-block-button__link:hover { background: var(--wp--preset--color--mandarina); color: var(--wp--preset--color--navy); }
.zk-on-navy .wp-block-button__link { border-color: var(--wp--preset--color--cream); box-shadow: 4px 4px 0 #05080D; }
.zk-on-navy .wp-block-button__link:hover { box-shadow: 6px 6px 0 #05080D; }

/* ---------- Tarjeta sticker (estilo de bloque Grupo) ---------- */
.is-style-zk-sticker {
	background-color: var(--wp--preset--color--card);
	border: 2px solid var(--wp--preset--color--navy);
	border-radius: 16px;
	box-shadow: 5px 5px 0 var(--wp--preset--color--navy);
	overflow: hidden;
}
.zk-on-navy .is-style-zk-sticker { border-color: var(--wp--preset--color--cream); box-shadow: 6px 6px 0 #05080D; }
.is-style-zk-sticker.has-background { color: var(--wp--preset--color--navy); }

/* Imagen con marco sticker */
.wp-block-image.is-style-zk-marco img {
	border: 2px solid var(--wp--preset--color--navy);
	border-radius: 20px;
	box-shadow: 8px 8px 0 var(--wp--preset--color--navy);
}
.zk-on-navy .wp-block-image.is-style-zk-marco img { border-color: rgba(242,234,223,.85); box-shadow: 10px 10px 0 #05080D; }

/* Texto "a mano" (estilo de párrafo) */
p.is-style-zk-a-mano {
	font-family: var(--wp--preset--font-family--hand);
	font-weight: 700;
	font-size: 1.75rem;
	line-height: 1;
	color: var(--wp--preset--color--mandarina);
	transform: rotate(-2deg);
	transform-origin: left;
	margin-bottom: .35rem;
}
.zk-on-navy p.is-style-zk-a-mano { color: var(--wp--preset--color--maiz); }
.has-text-align-center.is-style-zk-a-mano { transform-origin: center; }

/* Palabra resaltada en títulos: <mark class="zk-hl"> */
.zk-hl, mark.zk-hl {
	display: inline-block;
	background: var(--wp--preset--color--maiz) !important;
	color: var(--wp--preset--color--navy) !important;
	padding: .04em .14em 0;
	border-radius: .1em;
	line-height: 1;
	transform: rotate(-2deg);
	border: 3px solid var(--wp--preset--color--cream);
	box-shadow: 5px 5px 0 #05080D;
	margin: .06em 0;
}

/* Chips / etiquetas */
.zk-chip {
	display: inline-flex; align-items: center; gap: 6px;
	font-weight: 700; font-size: .78rem; line-height: 1;
	padding: 7px 11px; border-radius: 99px;
	border: 2px solid var(--wp--preset--color--navy);
	background: var(--wp--preset--color--maiz); color: var(--wp--preset--color--navy);
	text-transform: uppercase; letter-spacing: .06em;
}

/* ---------- Cinta animada ---------- */
.zk-ticker { overflow: hidden; white-space: nowrap; }
.zk-ticker .zk-ticker__track { display: inline-flex; flex-wrap: nowrap; gap: 0; width: max-content; animation: zk-tick 38s linear infinite; }
.zk-ticker .zk-ticker__track > * {
	margin: 0 !important; padding-right: 30px; white-space: nowrap;
	font-family: var(--wp--preset--font-family--display); font-weight: 600; font-size: .86rem;
	letter-spacing: .08em; text-transform: uppercase;
}
.zk-ticker .zk-ticker__track > *::after { content: "✦"; color: var(--wp--preset--color--maiz); padding-left: 30px; }
.zk-ticker:hover .zk-ticker__track { animation-play-state: paused; }
@keyframes zk-tick { to { transform: translateX(-50%); } }
.editor-styles-wrapper .zk-ticker .zk-ticker__track { animation: none; flex-wrap: wrap; white-space: normal; }

/* ---------- Cabecera ---------- */
.zk-header { position: sticky; top: 0; z-index: 30; }
.admin-bar .zk-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .zk-header { top: 46px; } }
.zk-header .wp-block-navigation a { text-decoration: none; position: relative; }
.zk-header .wp-block-navigation-item__content::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; border-radius: 3px;
	background: var(--wp--preset--color--mandarina); transform: scaleX(0); transition: transform .15s;
}
.zk-header .wp-block-navigation-item__content:hover::after { transform: scaleX(1); }
.zk-header .wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--cream); }
.zk-logo img { width: 150px; }
@media (max-width: 680px) { .zk-logo img { width: 124px; } }
.zk-header .wc-block-mini-cart__button {
	border: 2px solid var(--wp--preset--color--navy); border-radius: 12px; background: var(--wp--preset--color--maiz);
	box-shadow: 3px 3px 0 var(--wp--preset--color--navy); padding: 8px 12px; font-weight: 700;
}
.zk-header .wc-block-mini-cart__badge { background: var(--wp--preset--color--menta); color: var(--wp--preset--color--navy); border: 2px solid var(--wp--preset--color--navy); }

/* ---------- Héroe ---------- */
.zk-hero { position: relative; overflow: hidden; }
.zk-hero::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: radial-gradient(60% 80% at 85% 40%, rgba(255,122,69,.18), transparent 60%), radial-gradient(40% 60% at 10% 90%, rgba(110,193,255,.12), transparent 60%);
}
.zk-hero > * { position: relative; }
.zk-hero h1 { color: var(--wp--preset--color--cream); }
.zk-proof { border-top: 1px solid rgba(242,234,223,.2); padding-top: 20px; }
.zk-proof > .wp-block-group { flex: 1; }
.zk-proof > .wp-block-group + .wp-block-group { border-left: 1px solid rgba(242,234,223,.2); padding-left: 16px; }
.zk-proof .zk-proof__n { font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: 2.1rem; line-height: 1; color: var(--wp--preset--color--maiz); margin: 0; }
.zk-proof p:not(.zk-proof__n) { font-size: .85rem; color: #C9C1B1; margin: 4px 0 0; }
.zk-hero-art { position: relative; }
.zk-sticker-circle {
	position: absolute; z-index: 2; display: grid; place-items: center; text-align: center;
	width: 104px; height: 104px; border-radius: 50%;
	background: var(--wp--preset--color--maiz); color: var(--wp--preset--color--navy);
	border: 2px solid var(--wp--preset--color--navy); box-shadow: 3px 3px 0 var(--wp--preset--color--navy);
	font: 700 14px/1.05 var(--wp--preset--font-family--display); text-transform: uppercase; letter-spacing: .03em;
	right: -10px; top: -26px; transform: rotate(12deg); margin: 0 !important;
}
.zk-sticker-circle strong { display: block; font-size: 26px; line-height: 1; }
@media (max-width: 680px) { .zk-sticker-circle { width: 84px; height: 84px; font-size: 12px; right: -4px; top: -30px; } .zk-sticker-circle strong { font-size: 20px; } }

/* ---------- Beneficios ---------- */
.zk-perks { border-block: 2px solid var(--wp--preset--color--navy); }
.zk-perks > .wp-block-group { border-left: 2px solid var(--wp--preset--color--navy); }
.zk-perks > .wp-block-group:first-child { border-left: 0; }
.zk-perks .zk-perk-ico {
	flex: none; width: 52px; height: 44px; border-radius: 12px; border: 2px solid var(--wp--preset--color--navy);
	display: grid; place-items: center; margin: 0; font: 700 15px var(--wp--preset--font-family--display); color: var(--wp--preset--color--navy);
}
.zk-perks h3 { font-size: 1rem; margin: 0; }
.zk-perks p { font-size: .85rem; color: var(--wp--preset--color--muted); margin: 2px 0 0; }
@media (max-width: 980px) {
	.zk-perks { display: grid !important; grid-template-columns: 1fr 1fr; }
	.zk-perks > .wp-block-group:nth-child(3) { border-left: 0; }
	.zk-perks > .wp-block-group:nth-child(n+3) { border-top: 2px solid var(--wp--preset--color--navy); }
}
@media (max-width: 600px) {
	.zk-perks { grid-template-columns: 1fr; }
	.zk-perks > .wp-block-group { border-left: 0 !important; }
	.zk-perks > .wp-block-group + .wp-block-group { border-top: 2px solid var(--wp--preset--color--navy); }
}

/* Párrafos con fondo usados como íconos/chips: sin el relleno que WordPress agrega */
p.zk-num.has-background, p.zk-perk-ico.has-background { padding: 0 !important; }
p.zk-chip.has-background { padding: 7px 11px !important; width: fit-content; }

/* ---------- Números de pasos ---------- */
.zk-num {
	display: grid !important; place-items: center; width: 52px; height: 52px; border-radius: 50%;
	border: 2px solid var(--wp--preset--color--navy); box-shadow: 3px 3px 0 var(--wp--preset--color--navy);
	font: 700 1.5rem/1 var(--wp--preset--font-family--display); color: var(--wp--preset--color--navy); margin: 0;
}

/* ---------- Preguntas ---------- */
.wp-block-details summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; font: 700 24px/1 var(--wp--preset--font-family--display); color: var(--wp--preset--color--mandarina); }
.wp-block-details[open] summary::after { content: "–"; }
.wp-block-details > :not(summary) { color: var(--wp--preset--color--muted); }

/* ---------- Pie ---------- */
.zk-footer a { color: var(--wp--preset--color--cream); }
.zk-footer h2, .zk-footer h3, .zk-footer h4 { color: var(--wp--preset--color--sand-light); letter-spacing: .1em; }

/* ---------- WhatsApp flotante ---------- */
.zk-fab {
	position: fixed; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 45;
	display: flex; align-items: center; gap: 10px; text-decoration: none !important;
	background: var(--wp--preset--color--menta); color: var(--wp--preset--color--navy) !important;
	border-radius: 99px; padding: 12px 18px 12px 14px; font-weight: 700; font-size: 15px;
	border: 2px solid var(--wp--preset--color--navy); box-shadow: 4px 4px 0 var(--wp--preset--color--navy);
	transition: transform .12s, box-shadow .12s;
}
.zk-fab:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--wp--preset--color--navy); }
.zk-fab svg { width: 24px; height: 24px; flex: none; }
@media (max-width: 680px) { .zk-fab span { display: none; } .zk-fab { padding: 14px; } }

/* ---------- WooCommerce ---------- */
.wc-block-components-product-price, .wc-block-grid__product-price, .wp-block-woocommerce-product-price { font-family: var(--wp--preset--font-family--display); font-weight: 700; }
.wc-block-components-product-badge, .wc-block-components-product-sale-badge, .onsale {
	background: var(--wp--preset--color--maiz) !important; color: var(--wp--preset--color--navy) !important;
	border: 2px solid var(--wp--preset--color--navy) !important; border-radius: 8px !important; font-weight: 700; text-transform: uppercase;
}
.wc-block-product-template .wc-block-product,
.wp-block-woocommerce-product-template > li,
ul.products li.product {
	background: var(--wp--preset--color--card); border: 2px solid var(--wp--preset--color--navy); border-radius: 16px;
	box-shadow: 5px 5px 0 var(--wp--preset--color--navy); padding: 12px 12px 18px; overflow: hidden;
}
.wc-block-components-product-image img, .wp-block-woocommerce-product-image img { border-radius: 10px; }
.wc-block-components-button:not(.is-link), .wp-block-woocommerce-product-button .wp-block-button__link,
.single_add_to_cart_button, .woocommerce a.button, .woocommerce button.button {
	border: 2px solid var(--wp--preset--color--navy) !important; border-radius: 12px !important;
	background: var(--wp--preset--color--mandarina) !important; color: var(--wp--preset--color--navy) !important;
	box-shadow: 3px 3px 0 var(--wp--preset--color--navy); font-weight: 700 !important;
}
.wc-block-components-button:not(.is-link):hover, .single_add_to_cart_button:hover { background: var(--wp--preset--color--maiz) !important; }
.wc-block-components-text-input input, .wc-block-components-combobox .components-combobox-control__input,
.wc-blocks-components-select .wc-blocks-components-select__select, .wc-block-components-textarea, .woocommerce form .input-text {
	border: 2px solid var(--wp--preset--color--navy) !important; border-radius: 10px !important; background: var(--wp--preset--color--card) !important;
}
.wc-block-components-notice-banner { border-radius: 12px; border-width: 2px; }
.wp-block-woocommerce-cart .wc-block-cart__totals-title, .wc-block-components-totals-item__label { font-weight: 700; }

/* ---------- Responsivo general ---------- */
@media (max-width: 781px) {
	.zk-stack-mobile { flex-direction: column !important; }
	.zk-hide-mobile { display: none !important; }
}
