/*
Theme Name: CM Click
Theme URI: https://cmclick.local
Description: Tema hijo de Twenty Twenty-Five para el ecommerce CM Click (block theme + WooCommerce). Controla colores de marca, header y estilos; hereda plantillas y patrones del tema padre.
Author: Julio
Template: twentytwentyfive
Version: 1.0.24
Requires at least: 6.7
Requires PHP: 7.2
Text Domain: cmclick
*/

/* ==========================================================================
   NAVBAR / HEADER
   ========================================================================== */

.cmclick-header .alignwide {
	gap: 2.5rem;
}

/* Línea divisoria fina (2px) entre navbar y hero, degradado amarillo→azul de marca */
.cmclick-header { position: relative; }
.cmclick-header::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: linear-gradient(
		90deg,
		rgba(255, 212, 0, 0) 0%,
		var(--wp--preset--color--brand-yellow) 28%,
		var(--wp--preset--color--brand-blue) 72%,
		rgba(46, 134, 240, 0) 100%
	);
}

/* --- Logo de texto (CM amarillo + Click blanco) --- */
.cmclick-logo {
	display: inline-flex;
	align-items: baseline;
	font-family: system-ui, "Segoe UI", Roboto, Arial, sans-serif;
	font-weight: 800;
	font-size: 2rem;
	line-height: 1;
	letter-spacing: -1px;
	text-decoration: none;
	white-space: nowrap;
}
.cmclick-logo .cm { color: var(--wp--preset--color--brand-yellow); }
.cmclick-logo .click { color: #fff; margin-left: 0.12em; }

/* --- Menú de navegación --- */
.cmclick-header .wp-block-navigation {
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-size: 0.95rem;
}
.cmclick-header .wp-block-navigation a { color: #fff; }
.cmclick-header .wp-block-navigation .wp-block-navigation-item__content:hover,
.cmclick-header .wp-block-navigation .current-menu-item > a {
	color: var(--wp--preset--color--brand-yellow);
}

/* Item activo: subrayado amarillo */
.cmclick-header .wp-block-navigation .current-menu-item > a {
	position: relative;
}
.cmclick-header .wp-block-navigation .current-menu-item > a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -7px;
	height: 2px;
	background: var(--wp--preset--color--brand-yellow);
}

/* --- Íconos de la derecha (buscar / cuenta / carrito) --- */
.cmclick-icons {
	align-items: center;
}
.cmclick-icons svg { width: 23px; height: 23px; display: block; }

/* Buscador (ícono propio) */
.cmclick-search {
	color: #fff;
	display: inline-flex;
	transition: color 0.15s ease;
}
.cmclick-search:hover { color: var(--wp--preset--color--brand-yellow); }

/* Carrito propio: se muestra solo en mobile, donde el mini-cart de Woo no
   se pinta de forma confiable. En desktop se usa el mini-cart de Woo. */
.cmclick-cart-link {
	display: none;
	color: #fff;
	align-items: center;
	transition: color 0.15s ease;
}
.cmclick-cart-link:hover { color: var(--wp--preset--color--brand-yellow); }

/* Cuenta de WooCommerce (icon_only) */
.cmclick-icons .wp-block-woocommerce-customer-account {
	color: #fff;
}
.cmclick-icons .wp-block-woocommerce-customer-account a { color: #fff; }
.cmclick-icons .wp-block-woocommerce-customer-account a:hover { color: var(--wp--preset--color--brand-yellow); }
.cmclick-icons .wp-block-woocommerce-customer-account svg { fill: currentColor; }

/* Carrito de WooCommerce (mini-cart) */
.cmclick-icons .wc-block-mini-cart,
.cmclick-icons .wc-block-mini-cart__button {
	display: inline-flex !important;
	align-items: center;
}
.cmclick-icons .wc-block-mini-cart__button {
	color: #fff !important;
	padding: 0;
}
.cmclick-icons .wc-block-mini-cart__button:hover { color: var(--wp--preset--color--brand-yellow); }
.cmclick-icons .wc-block-mini-cart__button:hover .wc-block-mini-cart__icon { fill: var(--wp--preset--color--brand-yellow); }
.cmclick-icons .wc-block-mini-cart__icon {
	display: block !important;
	width: 24px !important;
	height: 24px !important;
	fill: #fff !important;
	color: #fff !important;
}
.cmclick-icons .wc-block-mini-cart__badge {
	background: var(--wp--preset--color--brand-yellow);
	color: var(--wp--preset--color--navy);
	font-weight: 700;
}
/* Ocultamos el importe en texto, dejamos solo el ícono + contador */
.cmclick-icons .wc-block-mini-cart__amount { display: none; }

/* ==========================================================================
   HERO (home)
   ========================================================================== */

.cmclick-hero { overflow: hidden; }

/* Sin franjas blancas entre bloques de primer nivel: todo va pegado (en todas las páginas) */
.wp-site-blocks > * { margin-block-start: 0; }

.cmclick-hero__title {
	color: #fff;
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -1px;
	text-transform: uppercase;
	font-size: clamp(2rem, 4.4vw, 3.4rem);
	margin: 0 0 1rem;
}
.cmclick-hero__title mark {
	background: transparent;
	color: var(--wp--preset--color--brand-yellow);
}

.cmclick-hero__subtitle {
	color: rgba(255, 255, 255, 0.82);
	font-size: clamp(1rem, 1.5vw, 1.15rem);
	line-height: 1.55;
	max-width: 42ch;
	margin: 0 0 2rem;
}

/* Botón CTA: pill azul con ícono de carrito */
.cmclick-hero__cta .wp-block-button__link {
	background: #1E54B7;
	color: #fff;
	border-radius: 999px;
	padding: 0.95em 2.1em;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	transition: transform 0.15s ease, filter 0.15s ease;
}
.cmclick-hero__cta .wp-block-button__link:hover {
	filter: brightness(1.08);
	transform: translateY(-1px);
}
.cmclick-hero__cta .wp-block-button__link::after {
	content: "";
	width: 20px;
	height: 20px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.6'/%3E%3Ccircle cx='18' cy='20' r='1.6'/%3E%3Cpath d='M2 3h3l2.4 12.4a1 1 0 0 0 1 .8h8.6a1 1 0 0 0 1-.8L21 7H6'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Lockup de marca a la derecha */
.cmclick-hero__art { margin: 0; }
.cmclick-hero__art img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 440px;
	margin-inline: auto;
}

/* ==========================================================================
   BARRA DE BENEFICIOS (trust bar, bajo el hero)
   ========================================================================== */

/* Pegada al hero (sin franja blanca) + divider discreto blanco/gris */
.cmclick-features {
	margin-block-start: 0;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.cmclick-features__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.cmclick-feature {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 0.95rem;
	padding-inline: 1.75rem;
	color: var(--wp--preset--color--brand-blue);
}
.cmclick-feature + .cmclick-feature {
	border-left: 1px solid rgba(255, 255, 255, 0.12);
}
.cmclick-feature--yellow {
	color: var(--wp--preset--color--brand-yellow);
}

.cmclick-feature__icon {
	flex: 0 0 auto;
	display: inline-flex;
}
.cmclick-feature__icon svg {
	width: 40px;
	height: 40px;
}

.cmclick-feature__text {
	color: #fff;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 0.88rem;
	line-height: 1.25;
	letter-spacing: 0.3px;
}

/* ==========================================================================
   TÍTULOS DE SECCIÓN (reutilizable en secciones claras)
   ========================================================================== */

.cmclick-section-title {
	font-size: clamp(1.6rem, 2.6vw, 2.1rem);
	font-weight: 800;
	letter-spacing: -0.5px;
	color: #fff;
	margin: 0 0 0.4rem;
}
.cmclick-section-subtitle {
	color: rgba(255, 255, 255, 0.55);
	font-size: 1.02rem;
	margin: 0 0 2.75rem;
}

/* ==========================================================================
   RUBROS / CATEGORÍAS (sección clara)
   ========================================================================== */

/* Divisor sutil arriba de la sección (continuidad dark) */
.cmclick-rubros { border-top: 1px solid rgba(255, 255, 255, 0.08); }

.cmclick-rubros__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
}

.cmclick-rubro {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.55rem;
	padding: 2.25rem 1.5rem;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 16px;
	text-decoration: none;
	color: #fff;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.cmclick-rubro:hover {
	transform: translateY(-5px);
	background: rgba(255, 255, 255, 0.06);
	border-color: var(--wp--preset--color--brand-blue);
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}
.cmclick-rubro__icon {
	display: inline-flex;
	color: var(--wp--preset--color--brand-blue);
	margin-bottom: 0.4rem;
}
.cmclick-rubro__icon svg { width: 46px; height: 46px; }
.cmclick-rubro h3 {
	margin: 0;
	font-size: 1.18rem;
	font-weight: 700;
	color: #fff;
}
.cmclick-rubro p {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.55);
}
.cmclick-rubro__link {
	margin-top: 0.5rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--wp--preset--color--brand-blue);
}

/* ==========================================================================
   PRODUCTOS DESTACADOS (grilla Woo, estilo minimalista)
   ========================================================================== */

.cmclick-destacados { border-top: 1px solid rgba(255, 255, 255, 0.08); }

/* Grilla: cubre el markup del bloque (wc-block-grid) y el del shortcode (ul.products) */
.cmclick-destacados .wc-block-grid,
.cmclick-destacados .wp-block-handpicked-products { width: 100% !important; max-width: 100% !important; }

.cmclick-destacados .wc-block-grid__products,
.cmclick-destacados ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: 1.75rem !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
}
.cmclick-destacados ul.products::before,
.cmclick-destacados ul.products::after { content: none; }

.cmclick-destacados .wc-block-grid__product,
.cmclick-destacados li.product {
	width: 100% !important;
	max-width: none !important;
	min-width: 0 !important;
	flex: none !important;
	margin: 0 !important;
	float: none !important;
	display: flex;
	flex-direction: column;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 16px;
	padding: 1rem 1rem 1.4rem;
	text-align: center;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.cmclick-destacados .wc-block-grid__product:hover,
.cmclick-destacados li.product:hover {
	transform: translateY(-5px);
	background: rgba(255, 255, 255, 0.06);
	border-color: var(--wp--preset--color--brand-blue);
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}
.cmclick-destacados .wc-block-grid__product-image img,
.cmclick-destacados li.product img {
	border-radius: 12px;
	margin-bottom: 0.9rem;
}
.cmclick-destacados .wc-block-grid__product-title,
.cmclick-destacados .woocommerce-loop-product__title {
	font-size: 1rem;
	font-weight: 600;
	color: #fff;
	padding: 0 0 0.4rem;
}
.cmclick-destacados .wc-block-grid__product-price,
.cmclick-destacados li.product .price {
	color: #fff;
	font-weight: 700;
	margin-bottom: 0.9rem;
}
.cmclick-destacados .price del { color: rgba(255, 255, 255, 0.4); font-weight: 400; }
/* Botón "Agregar al carrito" en azul de marca, pill */
.cmclick-destacados .wc-block-grid__product-add-to-cart .button,
.cmclick-destacados .wc-block-grid__product .wp-block-button__link,
.cmclick-destacados li.product .button {
	margin-top: auto;
	max-width: 100%;
	box-sizing: border-box;
	white-space: normal;
	background: var(--wp--preset--color--brand-blue);
	color: #fff;
	border-radius: 999px;
	padding: 0.6em 1.4em;
	font-weight: 600;
	font-size: 0.88rem;
}
/* Contenedor del botón: apila el botón y el "Ver carrito" centrados (no al costado) */
.cmclick-destacados .wc-block-grid__product-add-to-cart {
	display: flex !important;
	flex-direction: column;
	align-items: center;
	gap: 0.3rem;
	width: 100%;
	margin-top: auto;
}

/* Link "Ver carrito" que aparece tras agregar al carrito (no debe romper la card) */
.cmclick-destacados .added_to_cart,
.cmclick-shop .added_to_cart,
.cmclick-product .added_to_cart {
	display: inline-block;
	max-width: 100%;
	margin-top: 0.6rem;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--wp--preset--color--brand-blue);
	text-decoration: none;
}
.cmclick-destacados .wc-block-grid__product-add-to-cart .button:hover,
.cmclick-destacados .wc-block-grid__product .wp-block-button__link:hover,
.cmclick-destacados li.product .button:hover {
	filter: brightness(1.08);
}

/* Botón "Ver todos los productos" (outline) */
.cmclick-viewall { margin-top: 2.75rem; }
.cmclick-viewall .wp-block-button__link {
	background: transparent;
	color: #fff;
	border: 1.5px solid rgba(255, 255, 255, 0.3);
	border-radius: 999px;
	padding: 0.8em 2.2em;
	font-weight: 600;
	transition: background 0.15s ease, border-color 0.15s ease;
}
.cmclick-viewall .wp-block-button__link:hover {
	background: var(--wp--preset--color--brand-blue);
	border-color: var(--wp--preset--color--brand-blue);
	color: #fff;
}

/* ==========================================================================
   FOOTER (navy de marca)
   ========================================================================== */

.cmclick-footer {
	color: #fff;
	margin-block-start: 0; /* pegado a la sección de arriba, sin franja blanca */
}

.cmclick-footer__label {
	display: block;
	color: rgba(255, 255, 255, 0.4);
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* Fila superior: marca + contacto / redes */
.cmclick-footer__top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 2.5rem;
	flex-wrap: wrap;
}
.cmclick-footer .cmclick-logo { font-size: 1.7rem; }
.cmclick-footer__tagline {
	color: rgba(255, 255, 255, 0.45);
	font-size: 0.85rem;
	margin: 0.6rem 0 1.1rem;
}

/* Contacto (mail + whatsapp), separado de las redes */
.cmclick-footer__contact {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}
.cmclick-footer__contact li {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-size: 0.9rem;
}
.cmclick-footer__contact svg {
	width: 18px;
	height: 18px;
	color: var(--wp--preset--color--brand-blue);
	flex: 0 0 auto;
}
.cmclick-footer__contact a {
	color: rgba(255, 255, 255, 0.7);
	text-decoration: none;
}
.cmclick-footer__contact a:hover { color: var(--wp--preset--color--brand-yellow); }

/* Redes sociales */
.cmclick-footer__social {
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
}
.cmclick-footer__social-icons { display: flex; gap: 0.7rem; }
.cmclick-footer__social-icons a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	transition: background 0.15s ease, transform 0.15s ease;
}
.cmclick-footer__social-icons a:hover {
	background: var(--wp--preset--color--brand-blue);
	transform: translateY(-2px);
}
.cmclick-footer__social-icons svg { width: 19px; height: 19px; }

/* Medios de pago */
.cmclick-footer__pay {
	margin-top: 2.25rem;
	padding-top: 1.75rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	flex-wrap: wrap;
}
.cmclick-footer__pay-icons {
	display: flex;
	gap: 0.55rem;
	flex-wrap: wrap;
	align-items: center;
}
.cmclick-pay {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 30px;
	padding: 0 9px;
	background: #fff;
	border-radius: 5px;
	font-weight: 800;
	font-size: 0.8rem;
	line-height: 1;
}
.cmclick-pay--visa { color: #1a1f71; font-style: italic; letter-spacing: 0.5px; }
.cmclick-pay--amex { color: #1f72cf; }
.cmclick-pay--mp { background: #00b1ea; color: #fff; font-size: 0.72rem; font-weight: 700; }
.cmclick-pay--mc i {
	width: 17px;
	height: 17px;
	border-radius: 50%;
	display: block;
}
.cmclick-pay--mc i:first-child { background: #eb001b; }
.cmclick-pay--mc i:last-child { background: #f79e1b; margin-left: -7px; mix-blend-mode: multiply; }

/* Línea inferior: "Developed by" + copyright, centrados */
.cmclick-footer__bottom {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.4rem;
	text-align: center;
}
.cmclick-footer__made {
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.92rem;
}
.cmclick-footer__made a {
	color: var(--wp--preset--color--brand-yellow);
	font-weight: 600;
	text-decoration: none;
}
.cmclick-footer__made a:hover { text-decoration: underline; }
.cmclick-footer__copy {
	color: rgba(255, 255, 255, 0.4);
	font-size: 0.8rem;
}

/* ==========================================================================
   RESPONSIVE — Mobile / Tablet
   ========================================================================== */

/* Footer apilado y centrado en mobile */
@media (max-width: 781px) {
	.cmclick-footer__top {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 1.75rem;
	}
	.cmclick-footer__brand {
		display: flex;
		flex-direction: column;
		align-items: center;
	}
	.cmclick-footer__contact li { justify-content: center; }
	.cmclick-footer__social { align-items: center; }
}

/* ==========================================================================
   TIENDA (archive de productos)
   ========================================================================== */

.cmclick-shop-hero .cmclick-shop-title {
	text-align: center;
	color: #fff;
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 800;
	letter-spacing: -1px;
	margin: 0 0 0.4rem;
}
.cmclick-shop-hero .cmclick-section-subtitle { margin-bottom: 1.75rem; }

/* Pills de categorías */
.cmclick-shop-cats {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.6rem;
}
.cmclick-shop-cats a {
	display: inline-flex;
	padding: 0.5em 1.2em;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 600;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.cmclick-shop-cats a:hover {
	border-color: var(--wp--preset--color--brand-blue);
	color: #fff;
}
.cmclick-shop-cats a.is-active {
	background: var(--wp--preset--color--brand-blue);
	border-color: var(--wp--preset--color--brand-blue);
	color: #fff;
}

/* Toolbar (cantidad de resultados + orden) */
.cmclick-shop-toolbar {
	margin-bottom: 1.75rem;
	align-items: center;
}
.cmclick-shop .woocommerce-result-count,
.cmclick-shop .wc-block-product-results-count { color: rgba(255, 255, 255, 0.55); font-size: 0.9rem; margin: 0; }
.cmclick-shop select {
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 8px;
	padding: 0.5em 0.9em;
}
.cmclick-shop select option { color: #111; }

/* Grilla de productos (Product Collection) */
.cmclick-shop .wc-block-product-template {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 1.75rem !important;
	margin: 0;
}
.cmclick-shop .wc-block-product {
	margin: 0 !important;
	padding: 1rem 1rem 1.4rem !important;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 16px;
	display: flex;
	flex-direction: column;
	text-align: center;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.cmclick-shop .wc-block-product:hover {
	transform: translateY(-5px);
	background: rgba(255, 255, 255, 0.06);
	border-color: var(--wp--preset--color--brand-blue);
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}
.cmclick-shop .wc-block-product .wc-block-components-product-image img {
	border-radius: 12px;
	margin-bottom: 0.9rem;
}
.cmclick-shop .wc-block-product .wp-block-post-title,
.cmclick-shop .wc-block-product .wp-block-post-title a {
	color: #fff;
	font-size: 1rem;
	font-weight: 600;
}
.cmclick-shop .wc-block-product .wp-block-woocommerce-product-price { color: #fff; font-weight: 700; }
.cmclick-shop .wc-block-product .wc-block-components-product-button .wp-block-button__link {
	background: var(--wp--preset--color--brand-blue);
	color: #fff;
	border-radius: 999px;
	padding: 0.6em 1.4em;
	font-weight: 600;
	margin-top: auto;
}
.cmclick-shop .wc-block-product .wc-block-components-product-button .wp-block-button__link:hover { filter: brightness(1.08); }
/* "Comprar ya" en las cards de la tienda (compra express de productos simples) */
/* El botón de arriba trae margin-bottom:1rem inline; lo anulamos para juntarlos. */
.cmclick-shop .wc-block-product .wc-block-components-product-button .wp-block-button__link { margin-bottom: 0 !important; }
.cmclick-shop .cmclick-buy-now--card {
	align-self: center;
	margin-top: 0.5rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--wp--preset--color--brand-yellow);
	color: var(--wp--preset--color--navy) !important;
	font-weight: 700;
	font-size: 0.9rem;
	border-radius: 999px;
	padding: 0.5em 1.4em;
	text-decoration: none;
	transition: filter 0.15s ease;
}
.cmclick-shop .cmclick-buy-now--card:hover { filter: brightness(1.05); }

/* Destacados (home): Product Collection filtrado por "Destacado", 4 columnas,
   mismas tarjetas que la tienda. */
.cmclick-destacados .wc-block-product-template {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: 1.5rem !important;
	margin: 2rem 0 0 !important;
}
.cmclick-destacados .wc-block-product {
	margin: 0 !important;
	padding: 1rem 1rem 1.4rem !important;
	width: 100% !important;
	min-width: 0 !important;
	box-sizing: border-box !important;
	flex: none !important;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 16px;
	display: flex;
	flex-direction: column;
	text-align: left;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.cmclick-destacados .wc-block-product:hover {
	transform: translateY(-5px);
	background: rgba(255, 255, 255, 0.06);
	border-color: var(--wp--preset--color--brand-blue);
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}
.cmclick-destacados .wc-block-product .wc-block-components-product-image img { border-radius: 12px; margin-bottom: 0.9rem; }
.cmclick-destacados .wc-block-product .wp-block-post-title,
.cmclick-destacados .wc-block-product .wp-block-post-title a { color: #fff; font-size: 1rem; font-weight: 600; }
.cmclick-destacados .wc-block-product .wp-block-woocommerce-product-price { color: #fff; font-weight: 700; }
.cmclick-destacados .wc-block-product .wc-block-components-product-button .wp-block-button__link {
	background: var(--wp--preset--color--brand-blue);
	color: #fff;
	border-radius: 999px;
	padding: 0.6em 1.4em;
	font-weight: 600;
	margin-top: auto;
}
.cmclick-destacados .wc-block-product .wc-block-components-product-button .wp-block-button__link:hover { filter: brightness(1.08); }
/* Vista rápida (sin botón): título y precio alineados a la izquierda, prolijos */
.cmclick-destacados .wc-block-product .wp-block-post-title { margin: 0.25rem 0 0.3rem !important; }
.cmclick-destacados .wc-block-product .wp-block-woocommerce-product-price { margin: 0 !important; }
.cmclick-destacados .wc-block-product .wc-block-components-product-image { margin-bottom: 0.4rem; }
/* CTA "Ver producto →": llena el espacio inferior y empareja las cards */
.cmclick-destacados .wc-block-product .wp-block-read-more {
	margin-top: auto !important;
	padding: 0.9rem 0 0 !important;
	align-self: flex-start;
	display: inline-block;
	color: var(--wp--preset--color--brand-blue);
	font-weight: 600;
	text-decoration: none !important;
	border: 0 !important;
	background: none !important;
}
.cmclick-destacados .wc-block-product .wp-block-read-more:hover { color: var(--wp--preset--color--brand-yellow); }

/* En pantallas chicas: más ancho para las cards (menos gap y padding) */
@media (max-width: 560px) {
	.cmclick-destacados .wc-block-product-template { gap: 0.9rem !important; }
	.cmclick-destacados .wc-block-product { padding: 0.7rem 0.7rem 1rem !important; }
}

/* Paginación */
.cmclick-shop .wp-block-query-pagination { margin-top: 2.5rem; gap: 0.4rem; }
.cmclick-shop .wp-block-query-pagination a,
.cmclick-shop .wp-block-query-pagination .page-numbers { color: rgba(255, 255, 255, 0.7); }
.cmclick-shop .wp-block-query-pagination .page-numbers.current { color: var(--wp--preset--color--brand-yellow); font-weight: 700; }

/* Responsive Tienda: 3 → 2 → 1 columnas */
@media (max-width: 900px) {
	.cmclick-shop .wc-block-product-template,
	.cmclick-destacados .wc-block-product-template { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 520px) {
	.cmclick-shop .wc-block-product-template { grid-template-columns: 1fr !important; }
}

/* ==========================================================================
   PRODUCTO INDIVIDUAL (single-product)
   ========================================================================== */

.cmclick-product { color: #fff; }
.cmclick-product :is(h2, h3) { color: #fff; }

/* Breadcrumbs */
.cmclick-product .wc-block-breadcrumbs,
.cmclick-product .woocommerce-breadcrumb {
	color: rgba(255, 255, 255, 0.45);
	font-size: 0.85rem;
	margin-bottom: 1.5rem;
}
.cmclick-product .wc-block-breadcrumbs a,
.cmclick-product .woocommerce-breadcrumb a { color: rgba(255, 255, 255, 0.7); text-decoration: none; }
.cmclick-product .wc-block-breadcrumbs a:hover { color: var(--wp--preset--color--brand-yellow); }

/* Galería */
.cmclick-product .wp-block-woocommerce-product-image-gallery img { border-radius: 14px; }

/* Miniaturas: espacio entre sí y separadas de la imagen principal */
.cmclick-product .flex-control-thumbs {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	margin: 14px 0 0 !important;
	padding: 0;
	list-style: none;
}
.cmclick-product .flex-control-thumbs li {
	width: auto !important;
	float: none !important;
	margin: 0 !important;
}
.cmclick-product .flex-control-thumbs li img {
	border-radius: 10px;
	opacity: 0.65;
	transition: opacity 0.15s ease;
}
.cmclick-product .flex-control-thumbs li img:hover,
.cmclick-product .flex-control-thumbs li img.flex-active { opacity: 1; }

/* Título + precio + resumen */
.cmclick-product .wp-block-post-title {
	color: #fff;
	font-size: clamp(1.7rem, 3vw, 2.4rem);
	font-weight: 800;
	letter-spacing: -0.5px;
	margin: 0 0 0.6rem;
}
.cmclick-product .wp-block-woocommerce-product-price,
.cmclick-product .price { color: #fff; font-weight: 700; }
.cmclick-product .price del { color: rgba(255, 255, 255, 0.4); font-weight: 400; }
.cmclick-product .price ins { text-decoration: none; }
.cmclick-product .wp-block-post-excerpt {
	color: rgba(255, 255, 255, 0.7);
	line-height: 1.6;
	margin: 1.2rem 0;
}

/* Formulario agregar al carrito */
.cmclick-product form.cart { margin: 1.5rem 0; display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.cmclick-product .quantity { display: inline-flex; }
.cmclick-product .quantity input.qty {
	background: rgba(255, 255, 255, 0.07);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 12px;
	height: 54px;
	width: 5.5em;
	padding: 0 0.4em 0 0.9em;
	font-size: 1.05rem;
	font-weight: 600;
	text-align: center;
}
.cmclick-product .quantity input.qty:focus {
	outline: none;
	border-color: var(--wp--preset--color--brand-blue);
	background: rgba(255, 255, 255, 0.1);
}
.cmclick-product form.cart .single_add_to_cart_button,
.cmclick-product .wp-block-button__link {
	background: var(--wp--preset--color--brand-blue);
	color: #fff;
	border-radius: 999px;
	padding: 0.9em 2.2em;
	font-weight: 700;
	border: 0;
	transition: filter 0.15s ease;
}
.cmclick-product form.cart .single_add_to_cart_button {
	min-height: 54px;
	display: inline-flex;
	align-items: center;
}
.cmclick-product form.cart .single_add_to_cart_button:hover { filter: brightness(1.08); }

/* "Comprar ya" (compra directa → checkout): CTA primario en amarillo */
.cmclick-product form.cart .cmclick-buy-now {
	background: var(--wp--preset--color--brand-yellow);
	color: var(--wp--preset--color--navy);
	border: 0;
	border-radius: 999px;
	padding: 0.9em 2.2em;
	min-height: 54px;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: filter 0.15s ease;
}
.cmclick-product form.cart .cmclick-buy-now:hover { filter: brightness(1.05); }

/* --- Producto variable: selector de longitud --- */
/* El form variable se apila (tabla arriba, precio + botón abajo) */
.cmclick-product form.variations_form.cart { display: block; }
.cmclick-product table.variations {
	width: 100%;
	margin: 0 0 1.2rem;
	border: 0;
	border-collapse: separate;
	border-spacing: 0;
}
.cmclick-product table.variations tr { display: flex; align-items: center; flex-wrap: wrap; gap: 0.9rem; }
.cmclick-product table.variations th.label {
	color: #fff;
	font-weight: 700;
	text-align: left;
	padding: 0;
	white-space: nowrap;
}
.cmclick-product table.variations td.value {
	padding: 0;
	flex: 1;
	min-width: 200px;
	display: flex;
	align-items: center;
	gap: 0.6rem;
}
.cmclick-product table.variations select {
	flex: 1;
	min-width: 180px;
	background-color: rgba(255, 255, 255, 0.06);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 12px;
	height: 54px;
	padding: 0 2.6rem 0 1rem;
	font-size: 1rem;
	font-weight: 600;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	appearance: none !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 1rem center !important;
	background-size: 16px !important;
	cursor: pointer;
}
.cmclick-product table.variations select:focus {
	outline: none;
	border-color: var(--wp--preset--color--brand-blue);
	background-color: rgba(255, 255, 255, 0.1);
}
.cmclick-product table.variations select option { background-color: #0a1230; color: #fff; }
.cmclick-product .reset_variations {
	color: var(--wp--preset--color--brand-blue);
	font-size: 0.85rem;
	text-decoration: none;
}
.cmclick-product .reset_variations:hover { text-decoration: underline; }
/* Precio de la variación elegida + fila cantidad/botón */
.cmclick-product .single_variation .price { color: #fff; font-weight: 700; font-size: 1.5rem; }
.cmclick-product .woocommerce-variation-add-to-cart {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	flex-wrap: wrap;
	margin-top: 1.2rem;
}

/* Meta (SKU / categoría) */
.cmclick-product .wp-block-woocommerce-product-meta {
	margin-top: 1.75rem;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.5);
	font-size: 0.88rem;
}
.cmclick-product .wp-block-woocommerce-product-meta a { color: var(--wp--preset--color--brand-blue); text-decoration: none; }

/* Pestañas de detalles */
.cmclick-product .wp-block-woocommerce-product-details { margin-top: 3rem; }
.cmclick-product .wc-tabs li a { color: rgba(255, 255, 255, 0.6); text-decoration: none; }
.cmclick-product .wc-tabs li.active a,
.cmclick-product .wc-tabs li a:hover { color: #fff; }
.cmclick-product .woocommerce-Tabs-panel,
.cmclick-product .wp-block-woocommerce-product-details p { color: rgba(255, 255, 255, 0.7); line-height: 1.65; }

.cmclick-product .wc-tabs,
.cmclick-product .woocommerce-tabs ul.tabs { border-color: rgba(255, 255, 255, 0.12); }

/* Pestaña "Video" del producto: marco responsivo, centrado.
   Horizontal 16:9 por defecto; con .is-vertical pasa a 9:16 (tipo teléfono).
   Se usa padding-top para que la proporción funcione en todos los navegadores. */
.cmclick-product .cmclick-video { margin: 0.5rem 0; }
.cmclick-product .cmclick-video__frame {
	position: relative;
	width: 100%;
	max-width: 680px;
	margin: 0 auto;
	padding-top: 56.25%;
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: #000;
}
.cmclick-product .cmclick-video.is-vertical .cmclick-video__frame {
	max-width: 340px;
	padding-top: 177.78%;
}
.cmclick-product .cmclick-video__frame iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Productos relacionados → mismas tarjetas oscuras */
.cmclick-product .wc-block-product-template {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: 1.75rem !important;
	margin: 0;
}
.cmclick-product .wc-block-product {
	box-sizing: border-box !important;
	width: 100% !important;
	max-width: none !important;
	min-width: 0 !important;
	flex: none !important;
	margin: 0 !important;
	padding: 1rem 1rem 1.4rem !important;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 16px;
	display: flex;
	flex-direction: column;
	text-align: center;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.cmclick-product .wc-block-product:hover {
	transform: translateY(-5px);
	background: rgba(255, 255, 255, 0.06);
	border-color: var(--wp--preset--color--brand-blue);
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}
.cmclick-product .wc-block-product .wc-block-components-product-image img { border-radius: 12px; margin-bottom: 0.9rem; }
.cmclick-product .wc-block-product .wp-block-post-title,
.cmclick-product .wc-block-product .wp-block-post-title a { color: #fff; font-size: 1rem; font-weight: 600; }
.cmclick-product .wc-block-product .wp-block-woocommerce-product-price { color: #fff; font-weight: 700; }
.cmclick-product .wc-block-product .wc-block-components-product-button .wp-block-button__link {
	background: var(--wp--preset--color--brand-blue);
	border-radius: 999px;
	padding: 0.6em 1.4em;
	font-weight: 600;
	margin-top: auto;
}

/* Responsive producto: columnas apiladas + relacionados 2 col */
@media (max-width: 781px) {
	.cmclick-product .wp-block-columns { flex-direction: column; }
	.cmclick-product .wp-block-column { flex-basis: 100% !important; }
}
@media (max-width: 900px) {
	.cmclick-product .wc-block-product-template { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* ==========================================================================
   CARRITO + CHECKOUT (dark)
   ========================================================================== */

.cmclick-page-title {
	color: #fff;
	font-size: clamp(1.8rem, 3.5vw, 2.6rem);
	font-weight: 800;
	letter-spacing: -0.5px;
	margin: 0 0 2.5rem;
}

/* Texto general claro */
.cmclick-cart-page,
.cmclick-checkout-page { color: #fff; }
.cmclick-cart-page :is(h2, h3, label, .wc-block-components-product-name),
.cmclick-checkout-page :is(h2, h3, label, .wc-block-components-product-name) { color: #fff; }
.cmclick-cart-page a,
.cmclick-checkout-page a { color: var(--wp--preset--color--brand-blue); }

/* Tablas / filas de productos del carrito */
.cmclick-cart-page .wc-block-cart-items__row,
.cmclick-cart-page .wc-block-cart-items th,
.cmclick-cart-page table.wc-block-cart-items { border-color: rgba(255, 255, 255, 0.12); }
.cmclick-cart-page .wc-block-cart-item__total,
.cmclick-cart-page .wc-block-components-product-price { color: #fff; }
.cmclick-cart-page .wc-block-cart-item__prices .wc-block-components-product-price__value { color: rgba(255, 255, 255, 0.7); }

/* Selector de cantidad */
.cmclick-cart-page .wc-block-components-quantity-selector,
.cmclick-checkout-page .wc-block-components-quantity-selector {
	border-color: rgba(255, 255, 255, 0.2);
	border-radius: 10px;
}
.cmclick-cart-page .wc-block-components-quantity-selector__input,
.cmclick-checkout-page .wc-block-components-quantity-selector__input { color: #fff; }
.cmclick-cart-page .wc-block-components-quantity-selector__button { color: #fff; }

/* Paneles de totales / resumen → tarjeta sutil */
.cmclick-cart-page .wc-block-cart__totals-title,
.cmclick-checkout-page .wc-block-components-totals-item__label { color: rgba(255, 255, 255, 0.7); }
.cmclick-cart-page .wc-block-cart__sidebar .wc-block-components-totals-wrapper,
.cmclick-checkout-page .wc-block-components-checkout-order-summary {
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.1) !important;
	border-radius: 16px;
}
/* La lista interna del resumen NO lleva borde propio (evita tarjeta dentro de tarjeta) */
.cmclick-checkout-page .wc-block-components-order-summary { border: 0 !important; background: transparent !important; }
.cmclick-cart-page .wc-block-components-totals-item,
.cmclick-checkout-page .wc-block-components-totals-item { color: #fff; }
.cmclick-cart-page .wc-block-components-totals-footer-item,
.cmclick-checkout-page .wc-block-components-totals-footer-item { color: #fff; }
.cmclick-cart-page .wc-block-components-divider,
.cmclick-checkout-page .wc-block-components-divider { border-color: rgba(255, 255, 255, 0.12); }

/* Campos de formulario del checkout */
.cmclick-checkout-page .wc-block-components-text-input input,
.cmclick-checkout-page .wc-block-components-select .components-form-token-field__input,
.cmclick-checkout-page .wc-block-components-text-input textarea,
.cmclick-checkout-page select,
.cmclick-checkout-page input[type="text"],
.cmclick-checkout-page input[type="email"],
.cmclick-checkout-page input[type="tel"] {
	background: rgba(255, 255, 255, 0.06) !important;
	color: #fff !important;
	border: 1px solid rgba(255, 255, 255, 0.18) !important;
	border-radius: 10px !important;
}
.cmclick-checkout-page .wc-block-components-text-input label,
.cmclick-checkout-page .wc-block-components-checkout-step__title { color: rgba(255, 255, 255, 0.85); }
.cmclick-checkout-page .wc-block-components-text-input.is-active label { color: var(--wp--preset--color--brand-blue); }
.cmclick-checkout-page .wc-block-checkout__main,
.cmclick-checkout-page .wc-block-components-checkout-step { border-color: rgba(255, 255, 255, 0.1); }

/* Espaciado y alineación de los campos de dirección (billing/shipping).
   Corrige: (1) el País que quedaba pegado al campo de arriba, y
   (2) el desfase entre input y select en las filas de 2 columnas. */
.cmclick-checkout-page .wc-block-components-address-form { align-items: flex-start !important; }
/* El select interno no aporta su propio margen (evita el desfase input ↔ select) */
.cmclick-checkout-page .wc-block-checkout__form .wc-blocks-components-select { margin-top: 0 !important; }
/* Margen superior uniforme para TODOS los campos (gap parejo, país no pegado) */
.cmclick-checkout-page .wc-block-components-address-form .wc-block-components-text-input,
.cmclick-checkout-page .wc-block-components-address-form .wc-block-components-select-input,
.cmclick-checkout-page .wc-block-components-address-form .wc-block-components-state-input,
.cmclick-checkout-page .wc-block-components-address-form .wc-block-components-country-input {
	margin-top: 1rem !important;
}

/* Botones principales (ir a checkout / realizar pedido) → azul de marca */
.cmclick-cart-page .wc-block-cart__submit-button,
.cmclick-cart-page .wc-block-components-button.contained,
.cmclick-checkout-page .wc-block-components-checkout-place-order-button,
.cmclick-checkout-page .wc-block-components-button.contained {
	background: var(--wp--preset--color--brand-blue) !important;
	color: #fff !important;
	border-radius: 999px !important;
	font-weight: 700 !important;
}
.cmclick-cart-page .wc-block-components-button.contained:hover,
.cmclick-checkout-page .wc-block-components-button.contained:hover { filter: brightness(1.08); }

/* En mobile el botón "Pasar al pago" queda sticky: WooCommerce le pone fondo
   blanco y una sombra clara. Lo pasamos a navy para que no rompa el dark mode. */
@media (max-width: 782px) {
	.cmclick-cart-page .wc-block-cart__submit-container--sticky {
		background: var(--wp--preset--color--navy) !important;
		border-top: 1px solid rgba(255, 255, 255, 0.1);
	}
	.cmclick-cart-page .wc-block-cart__submit-container--sticky::before {
		box-shadow: none !important;
		color: transparent !important;
	}
}

/* Carrito vacío */
.cmclick-cart-page .wc-block-cart__empty-cart__title { color: #fff; }

/* Padding interno de las cajas de totales del carrito (texto no pegado al borde) */
.cmclick-cart-page .wc-block-cart__sidebar .wc-block-components-totals-wrapper { padding: 0.7rem 1.25rem; }
.cmclick-cart-page .wc-block-components-totals-coupon { padding-inline: 1.25rem; }
.cmclick-cart-page .wc-block-components-totals-item { padding-inline: 0; }

/* Separación entre las cajas del resumen (cupón / total) y el botón de pago:
   venían pegadas entre sí y al botón. */
.cmclick-cart-page .wc-block-cart__sidebar .wc-block-components-totals-wrapper { margin-bottom: 1rem !important; }
.cmclick-cart-page .wc-block-cart__sidebar .wc-block-components-totals-coupon { margin-bottom: 1rem !important; }
.cmclick-cart-page .wc-block-cart__submit { margin-top: 0.25rem; }

/* País / provincia (select nativo): opciones legibles en el desplegable */
.cmclick-checkout-page select option {
	background-color: #0a1230 !important;
	color: #fff !important;
}

/* País / provincia (combobox de Woo): control e input oscuros */
.cmclick-checkout-page .wc-block-components-combobox-control,
.cmclick-checkout-page .wc-block-components-combobox-control input,
.cmclick-checkout-page .wc-block-components-combobox input {
	background-color: rgba(255, 255, 255, 0.06) !important;
	color: #fff !important;
	border-radius: 10px !important;
}
.cmclick-checkout-page .wc-block-components-combobox-control input { border: 1px solid rgba(255, 255, 255, 0.18) !important; }

/* Lista de sugerencias del combobox (desplegable) */
.cmclick-checkout-page .components-form-token-field__suggestions-list {
	background-color: #0a1230 !important;
	border: 1px solid rgba(255, 255, 255, 0.15) !important;
}
.cmclick-checkout-page .components-form-token-field__suggestion { color: #fff !important; }
.cmclick-checkout-page .components-form-token-field__suggestion.is-selected {
	background-color: var(--wp--preset--color--brand-blue) !important;
	color: #fff !important;
}

/* Caja cerrada del combobox (la que se veía blanca) */
.cmclick-checkout-page .components-combobox-control,
.cmclick-checkout-page .components-form-token-field,
.cmclick-checkout-page .components-form-token-field__input-container {
	background-color: rgba(255, 255, 255, 0.06) !important;
	border-color: rgba(255, 255, 255, 0.18) !important;
	color: #fff !important;
	border-radius: 10px !important;
}
.cmclick-checkout-page .components-form-token-field__input {
	background-color: transparent !important;
	color: #fff !important;
}
.cmclick-checkout-page .components-form-token-field__input::placeholder { color: rgba(255, 255, 255, 0.5) !important; }
.cmclick-checkout-page .components-form-token-field__token,
.cmclick-checkout-page .components-form-token-field__token-text { color: #fff !important; }

/* Select de país/provincia de Woo (clase "wc-blockS-components", en plural) */
.cmclick-checkout-page .wc-blocks-components-select,
.cmclick-checkout-page .wc-blocks-components-select__container,
.cmclick-checkout-page .wc-blocks-components-select__select {
	background-color: rgba(255, 255, 255, 0.06) !important;
	color: #fff !important;
	border-color: rgba(255, 255, 255, 0.18) !important;
	border-radius: 10px !important;
}
.cmclick-checkout-page .wc-blocks-components-select__select option {
	background-color: #0a1230 !important;
	color: #fff !important;
}
.cmclick-checkout-page .wc-blocks-components-select__label { color: rgba(255, 255, 255, 0.85) !important; }

/* Padding interno del resumen del pedido (que el contenido no quede pegado al borde) */
.cmclick-checkout-page .wc-block-components-checkout-order-summary { padding: 1.5rem !important; }

/* Badge de cantidad en el resumen del pedido: WooCommerce lo pinta con
   background:currentColor y el número en color "background" → en dark mode
   quedaba blanco sobre blanco (invisible). Lo pasamos a círculo azul + número blanco. */
.cmclick-checkout-page .wc-block-components-order-summary-item__quantity,
.cmclick-cart-page .wc-block-components-order-summary-item__quantity {
	background: var(--wp--preset--color--brand-blue) !important;
}
.cmclick-checkout-page .wc-block-components-order-summary-item__quantity span,
.cmclick-cart-page .wc-block-components-order-summary-item__quantity span {
	color: #fff !important;
}
.cmclick-checkout-page .wc-block-components-checkout-order-summary__content { padding: 0 !important; }

/* Flecha del select de país: appearance:none + chevron blanco propio */
.cmclick-checkout-page .wc-blocks-components-select__select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 1rem center !important;
	background-size: 14px !important;
	padding-right: 2.4rem !important;
}
/* Por si la flecha es un SVG propio de Woo, lo aclaramos también */
.cmclick-checkout-page .wc-blocks-components-select svg { fill: rgba(255, 255, 255, 0.6) !important; }

/* Más aire vertical entre los campos del formulario */
.cmclick-checkout-page .wc-block-components-address-form { row-gap: 1.25rem !important; }
.cmclick-checkout-page .wc-blocks-components-select { margin-block: 0.5rem; }

/* ==========================================================================
   MI CUENTA (my-account)
   ========================================================================== */

.cmclick-account-page { color: #fff; }
.cmclick-account-page a { color: var(--wp--preset--color--brand-blue); }
.cmclick-account-page a:hover { color: var(--wp--preset--color--brand-yellow); }

/* Navegación lateral */
.cmclick-account-page .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; }
.cmclick-account-page .woocommerce-MyAccount-navigation li { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.cmclick-account-page .woocommerce-MyAccount-navigation li a {
	display: block;
	padding: 0.85rem 0.25rem;
	color: rgba(255, 255, 255, 0.75);
	font-weight: 600;
	text-decoration: none;
}
.cmclick-account-page .woocommerce-MyAccount-navigation li a:hover { color: #fff; }
.cmclick-account-page .woocommerce-MyAccount-navigation li.is-active a { color: var(--wp--preset--color--brand-yellow); }

/* Contenido */
.cmclick-account-page .woocommerce-MyAccount-content { color: rgba(255, 255, 255, 0.8); line-height: 1.65; }

/* Tablas (pedidos, direcciones) */
.cmclick-account-page table,
.cmclick-account-page .shop_table { color: #fff; border-color: rgba(255, 255, 255, 0.12); }
.cmclick-account-page th,
.cmclick-account-page td { border-color: rgba(255, 255, 255, 0.12) !important; }

/* Inputs (login / detalles de la cuenta) */
.cmclick-account-page input[type="text"],
.cmclick-account-page input[type="email"],
.cmclick-account-page input[type="password"],
.cmclick-account-page input[type="tel"] {
	background: rgba(255, 255, 255, 0.06) !important;
	color: #fff !important;
	border: 1px solid rgba(255, 255, 255, 0.18) !important;
	border-radius: 10px !important;
}
.cmclick-account-page label { color: rgba(255, 255, 255, 0.85); }

/* Botones */
.cmclick-account-page .button,
.cmclick-account-page .woocommerce-button,
.cmclick-account-page button[type="submit"] {
	background: var(--wp--preset--color--brand-blue) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 999px !important;
	font-weight: 700 !important;
}
.cmclick-account-page .button:hover { filter: brightness(1.08); }

/* Responsive: navegación arriba del contenido en mobile */
@media (max-width: 781px) {
	.cmclick-account-page .woocommerce-MyAccount-navigation,
	.cmclick-account-page .woocommerce-MyAccount-content { width: 100% !important; float: none !important; }
}

/* ==========================================================================
   NOSOTROS (page-nosotros)
   ========================================================================== */

.cmclick-about-intro .cmclick-page-title { text-align: left; margin-bottom: 1.2rem; }
.cmclick-about-text p {
	color: rgba(255, 255, 255, 0.75);
	line-height: 1.7;
	font-size: 1.05rem;
}
.cmclick-about-art img {
	display: block;
	width: 100%;
	max-width: 420px;
	height: auto;
	margin-inline: auto;
}

/* Sección de valores con divisor sutil */
.cmclick-values { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.cmclick-values__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}
.cmclick-value {
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 16px;
	padding: 2.25rem 1.5rem;
	text-align: center;
}
.cmclick-value__icon {
	display: inline-flex;
	color: var(--wp--preset--color--brand-blue);
	margin-bottom: 0.9rem;
}
.cmclick-value__icon svg { width: 46px; height: 46px; }
.cmclick-value h3 { margin: 0 0 0.5rem; color: #fff; font-size: 1.2rem; font-weight: 700; }
.cmclick-value p { margin: 0; color: rgba(255, 255, 255, 0.6); font-size: 0.92rem; line-height: 1.55; }

/* CTA de cierre */
.cmclick-about-cta { border-top: 1px solid rgba(255, 255, 255, 0.08); }

@media (max-width: 781px) {
	.cmclick-values__grid { grid-template-columns: 1fr; }
	.cmclick-about-intro .cmclick-page-title { text-align: center; }
	.cmclick-about-text { text-align: center; }
}

/* ==========================================================================
   CONTACTO (page-contacto)
   ========================================================================== */

/* Botón de WhatsApp */
.cmclick-wa-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	background: #25d366;
	color: #fff;
	font-weight: 700;
	padding: 0.85em 1.6em;
	border-radius: 999px;
	text-decoration: none;
	margin-bottom: 2.25rem;
	transition: filter 0.15s ease;
}
.cmclick-wa-btn:hover { filter: brightness(1.05); }
.cmclick-wa-btn svg { width: 22px; height: 22px; }

/* Lista de datos de contacto */
.cmclick-contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.3rem; }
.cmclick-contact-list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.cmclick-contact-list svg { width: 22px; height: 22px; color: var(--wp--preset--color--brand-blue); flex: 0 0 auto; margin-top: 2px; }
.cmclick-contact-list .label { display: block; color: rgba(255, 255, 255, 0.5); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.15rem; }
.cmclick-contact-list a,
.cmclick-contact-list .val { color: #fff; text-decoration: none; }
.cmclick-contact-list a:hover { color: var(--wp--preset--color--brand-yellow); }

/* Formulario */
.cmclick-contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.cmclick-contact-form label {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	color: rgba(255, 255, 255, 0.85);
	font-weight: 600;
	font-size: 0.9rem;
}
.cmclick-contact-form input,
.cmclick-contact-form textarea {
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 10px;
	padding: 0.8em 0.95em;
	font: inherit;
}
.cmclick-contact-form input:focus,
.cmclick-contact-form textarea:focus { outline: none; border-color: var(--wp--preset--color--brand-blue); }
.cmclick-contact-form button {
	align-self: flex-start;
	background: var(--wp--preset--color--brand-blue);
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 0.9em 2.4em;
	font-weight: 700;
	cursor: pointer;
	transition: filter 0.15s ease;
}
.cmclick-contact-form button:hover { filter: brightness(1.08); }

/* Mensajes de éxito / error */
.cmclick-form-success,
.cmclick-form-error { padding: 1rem 1.25rem; border-radius: 12px; font-weight: 600; color: #fff; }
.cmclick-form-success { background: rgba(37, 211, 102, 0.12); border: 1px solid rgba(37, 211, 102, 0.45); }
.cmclick-form-error { background: rgba(235, 0, 27, 0.12); border: 1px solid rgba(235, 0, 27, 0.45); margin-bottom: 1.2rem; }

/* Mapa (dentro de la columna de datos, bajo los contactos) */
.cmclick-map {
	margin-top: 2rem;
	border-radius: 14px;
	overflow: hidden;
	line-height: 0;
	border: 1px solid rgba(255, 255, 255, 0.1);
}
.cmclick-map iframe {
	width: 100%;
	height: 240px;
	border: 0;
	display: block;
	filter: invert(0.92) hue-rotate(180deg) grayscale(0.15);
}

@media (max-width: 781px) {
	.cmclick-contact-cols .wp-block-column:first-child { margin-bottom: 2.5rem; }
}

/* ==========================================================================
   MINI-CARRITO (drawer del navbar) — dark
   ========================================================================== */

.wc-block-mini-cart__drawer.wc-block-components-drawer,
.wc-block-mini-cart__drawer .wc-block-components-drawer__content,
.wc-block-mini-cart__template-part,
.wp-block-woocommerce-mini-cart-contents,
.wp-block-woocommerce-filled-mini-cart-contents-block,
.wp-block-woocommerce-empty-mini-cart-contents-block,
.wc-block-mini-cart__footer {
	background-color: #0a1230 !important;
	color: #fff !important;
}
.wc-block-components-drawer__close,
.wc-block-mini-cart__title,
.wc-block-mini-cart__template-part .wc-block-components-product-name,
.wc-block-mini-cart__template-part a { color: #fff !important; }
.wc-block-mini-cart__template-part .wc-block-components-product-price { color: rgba(255, 255, 255, 0.85) !important; }
.wc-block-mini-cart__template-part .wc-block-components-product-metadata,
.wc-block-mini-cart__template-part .wc-block-components-product-metadata__description { color: rgba(255, 255, 255, 0.55) !important; }
.wc-block-mini-cart__template-part .wc-block-cart-items__row,
.wc-block-mini-cart-items .wc-block-cart-item { border-color: rgba(255, 255, 255, 0.1) !important; }

/* Selector de cantidad */
.wc-block-mini-cart__template-part .wc-block-components-quantity-selector { border-color: rgba(255, 255, 255, 0.2) !important; }
.wc-block-mini-cart__template-part .wc-block-components-quantity-selector__input,
.wc-block-mini-cart__template-part .wc-block-components-quantity-selector__button { color: #fff !important; }

/* Footer / subtotal */
.wc-block-mini-cart__footer {
	border-color: rgba(255, 255, 255, 0.12) !important;
	color: #fff !important;
}
.wc-block-mini-cart__footer-subtotal,
.wc-block-mini-cart__footer .wc-block-components-totals-item__label,
.wc-block-mini-cart__footer .wc-block-components-totals-item__value { color: #fff !important; }

/* Botones del footer del mini-carrito */
.wc-block-mini-cart__footer-checkout {
	background: var(--wp--preset--color--brand-blue) !important;
	color: #fff !important;
}
.wc-block-mini-cart__footer-cart,
.wc-block-mini-cart__shopping-button {
	background: transparent !important;
	color: #fff !important;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3) !important;
}

/* Carrito vacío */
.wc-block-mini-cart__empty-cart-wrapper,
.wc-block-mini-cart__empty-cart-wrapper * { color: #fff !important; }

/* Destacados: 4 → 2 columnas */
@media (max-width: 900px) {
	.cmclick-destacados .wc-block-grid__products,
	.cmclick-destacados ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 480px) {
	.cmclick-destacados .wc-block-grid__products,
	.cmclick-destacados ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 1rem !important; }
}

/* Rubros: 4 → 2 → 1 columnas */
@media (max-width: 900px) {
	.cmclick-rubros__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
	.cmclick-rubros__grid { grid-template-columns: 1fr; }
}

/* Barra de beneficios como lista (bullets): íconos alineados, texto en 1 línea,
   bloque centrado en la pantalla. */
@media (max-width: 781px) {
	.cmclick-features__row {
		flex-direction: column;
		gap: 0;
		width: max-content;
		max-width: 100%;
		margin-inline: auto;
	}
	.cmclick-feature {
		flex: none;
		width: 100%;
		justify-content: flex-start;
		padding: 0.95rem 0.5rem;
		gap: 1rem;
	}
	.cmclick-feature + .cmclick-feature {
		border-left: 0;
		border-top: 1px solid rgba(255, 255, 255, 0.12);
	}
	/* Ancho fijo del ícono → todos los íconos quedan alineados en columna */
	.cmclick-feature__icon {
		width: 40px;
		justify-content: center;
	}
	.cmclick-feature__icon svg {
		width: 34px;
		height: 34px;
	}
	.cmclick-feature__text {
		font-size: 0.85rem;
		white-space: nowrap;
		text-align: left;
	}
	/* En mobile el texto va en una sola línea (anulamos el salto del diseño desktop) */
	.cmclick-feature__text br { display: none; }
}

/* Pantallas muy finas: dejamos que el texto vuelva a dos líneas y ocupe el ancho */
@media (max-width: 360px) {
	.cmclick-features__row { width: 100%; }
	.cmclick-feature { justify-content: center; }
	.cmclick-feature__text { white-space: normal; }
	.cmclick-feature__text br { display: inline; }
}

/* Hero en mobile: solo texto + botón, centrados, sin el lockup */
@media (max-width: 781px) {
	.cmclick-hero .wp-block-column:first-child { text-align: center; }
	.cmclick-hero__subtitle { max-width: 100%; margin-inline: auto; }
	.cmclick-hero__cta { justify-content: center; }
	.cmclick-hero .wp-block-column:last-child { display: none; }
}

/* En móvil el menú colapsa en hamburguesa (overlay).
   Patrón ecommerce: hamburguesa izquierda · logo centrado · cuenta+carrito derecha. */
@media (max-width: 781px) {
	.cmclick-header .alignwide {
		position: relative;
		gap: 0.5rem;
		flex-wrap: nowrap;
	}

	/* Hamburguesa a la izquierda */
	.cmclick-header .wp-block-navigation { order: 1; }
	.cmclick-header .wp-block-navigation__responsive-container-open {
		color: #fff;
		padding: 0;
	}

	/* Logo centrado de forma absoluta (SOLO en el navbar; no afecta al footer) */
	.cmclick-header .cmclick-logo {
		order: 2;
		position: absolute;
		left: 50%;
		top: 50%;
		transform: translate(-50%, -50%);
		font-size: 1.55rem;
		margin: 0;
	}

	/* Cuenta + carrito a la derecha */
	.cmclick-icons {
		order: 3;
		margin-left: auto;
		gap: 1.2rem !important;
	}

	/* El buscador sale del header en mobile (irá dentro del menú) */
	.cmclick-search { display: none; }

	/* En mobile el mini-cart de Woo no se pinta bien (dejaba un hueco vacío):
	   lo ocultamos y mostramos nuestro ícono de carrito propio, que sí renderiza. */
	.cmclick-icons .wc-block-mini-cart { display: none !important; }
	.cmclick-cart-link { display: inline-flex !important; }

	/* El subrayado absoluto del item activo no aplica dentro del overlay */
	.cmclick-header .wp-block-navigation .current-menu-item > a::after { display: none; }
}

/* Pantallas muy chicas: achicamos un poco el logo */
@media (max-width: 420px) {
	.cmclick-header .cmclick-logo { font-size: 1.4rem; }
	.cmclick-icons { gap: 1rem !important; }
}

/* ==========================================================================
   SUBMENÚ "CATEGORÍAS" DENTRO DEL OVERLAY MOBILE
   Con openSubmenusOnClick el submenú arranca colapsado y se abre al tocar.
   Le damos un diferencial visual para que se entienda la jerarquía.
   ========================================================================== */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	position: static !important;
	min-width: 0 !important;
	margin: 0.5rem auto 0 !important;
	padding: 0.6rem 0 0.2rem !important;
	border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
	width: fit-content;
}
/* Items del submenú: más chicos, tenues y con guion, distintos de los principales */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	font-size: 0.92rem !important;
	font-weight: 500 !important;
	color: rgba(255, 255, 255, 0.72) !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content::before {
	content: "– ";
	color: var(--wp--preset--color--brand-blue);
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	color: #fff !important;
}
/* El padre "Categorías" con su chevron bien visible para invitar a tocar */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu__toggle .wp-block-navigation__submenu-icon {
	color: var(--wp--preset--color--brand-yellow);
}

/* ==========================================================================
   NOSOTROS — eslogan de cierre
   ========================================================================== */
.cmclick-about-slogan {
	margin-top: 1.4rem;
	color: var(--wp--preset--color--brand-yellow);
	font-weight: 700;
	font-size: 1.15rem;
	letter-spacing: 0.2px;
}

/* ==========================================================================
   CONTACTO — redes sociales (reemplaza al mapa, no hay local físico)
   ========================================================================== */
.cmclick-contact-social {
	margin-top: 1.8rem;
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
}
.cmclick-contact-social .label {
	color: rgba(255, 255, 255, 0.85);
	font-weight: 600;
	font-size: 0.95rem;
}
.cmclick-contact-social__icons { display: flex; gap: 0.7rem; }
.cmclick-contact-social__icons a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	transition: background 0.15s ease, transform 0.15s ease;
}
.cmclick-contact-social__icons a:hover {
	background: var(--wp--preset--color--brand-blue);
	transform: translateY(-2px);
}
.cmclick-contact-social__icons svg { width: 20px; height: 20px; }

/* ==========================================================================
   FOOTER — Botón de Arrepentimiento (link legal, visible en todo el sitio)
   ========================================================================== */
.cmclick-footer__legal {
	margin-top: 1.8rem;
	display: flex;
	justify-content: center;
}
.cmclick-arrepentimiento-link {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.6rem 1.2rem;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 999px;
	color: #fff;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.15s ease, background 0.15s ease;
}
.cmclick-arrepentimiento-link:hover {
	border-color: var(--wp--preset--color--brand-blue);
	background: rgba(46, 134, 240, 0.12);
}
.cmclick-arrepentimiento-link svg { width: 18px; height: 18px; }

/* ==========================================================================
   PÁGINA BOTÓN DE ARREPENTIMIENTO
   ========================================================================== */
.cmclick-arr-info { color: rgba(255, 255, 255, 0.88); }
.cmclick-arr-info h2 {
	color: #fff;
	font-size: 1.3rem;
	margin: 1.6rem 0 0.7rem;
}
.cmclick-arr-info h2:first-child { margin-top: 0; }
.cmclick-arr-info p { line-height: 1.6; margin: 0 0 0.9rem; }
.cmclick-arr-info strong { color: #fff; }
.cmclick-arr-steps {
	list-style: none;
	margin: 0 0 1.2rem;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}
.cmclick-arr-steps li {
	display: flex;
	align-items: flex-start;
	gap: 0.7rem;
	line-height: 1.5;
}
.cmclick-arr-steps li span {
	flex: none;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--wp--preset--color--brand-blue);
	color: #fff;
	font-size: 0.85rem;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.cmclick-arr-note {
	font-size: 0.88rem;
	color: rgba(255, 255, 255, 0.6);
	border-left: 3px solid var(--wp--preset--color--brand-yellow);
	padding-left: 0.9rem;
}
