/* Tecnología Directa — capa de diseño de tienda (child theme).
   Todo vive aquí; borrar este archivo devuelve el sitio a Blocksy puro. */

:root {
	--td-violet: #7c3aed;
	--td-blue: #2563eb;
	--td-magenta: #c026d3;
	--td-grad: linear-gradient(120deg, #c026d3 0%, #7c3aed 45%, #2563eb 100%);
	--td-ink: #0b1020;
	--td-body: #475569;
	--td-line: #e6e8f0;
	--td-soft: #f6f7fb;
	--td-radius: 16px;
	--td-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -12px rgba(15, 23, 42, .16);
}

/* ---------- utilidades ---------- */
.td-full { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); width: 100vw; }
.td-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.td-section { padding: 72px 0; }
.td-eyebrow {
	display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em;
	text-transform: uppercase; color: var(--td-violet); margin: 0 0 14px;
}
.td-h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 12px; color: var(--td-ink); }
.td-lead { font-size: 17px; line-height: 1.65; color: var(--td-body); margin: 0 auto; max-width: 62ch; }
.td-center { text-align: center; }

.td-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 14px 28px; border-radius: 999px; font-weight: 600; font-size: 15px;
	text-decoration: none; border: 1px solid transparent; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.td-btn--primary { background: var(--td-grad); color: #fff; box-shadow: 0 10px 26px -10px rgba(124, 58, 237, .8); }
.td-btn--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(124, 58, 237, .9); }
.td-btn--ghost { border-color: rgba(255, 255, 255, .28); color: #fff; }
.td-btn--ghost:hover { color: #fff; background: rgba(255, 255, 255, .1); }

/* ---------- portada: ocultamos el título "Products" por defecto ---------- */
.woocommerce-shop .hero-section[data-type="type-2"] { display: none; }

/* ---------- hero ---------- */
.td-hero {
	background:
		radial-gradient(900px 420px at 12% -10%, rgba(192, 38, 211, .34), transparent 60%),
		radial-gradient(900px 460px at 88% 0%, rgba(37, 99, 235, .38), transparent 62%),
		#0b1020;
	color: #fff; padding: 96px 0 88px; position: relative; overflow: hidden;
}
.td-hero::after {
	content: ""; position: absolute; inset: auto 0 -1px 0; height: 120px;
	background: linear-gradient(to bottom, transparent, #fff);
	pointer-events: none;
}
.td-hero .td-wrap { position: relative; z-index: 1; max-width: 900px; text-align: center; }
.td-hero .td-eyebrow { color: #d8b4fe; }
.td-hero h1 {
	font-size: clamp(32px, 5.2vw, 56px); line-height: 1.08; letter-spacing: -.03em;
	margin: 0 0 18px; color: #fff;
}
.td-hero h1 em { font-style: normal; background: linear-gradient(90deg, #f0abfc, #a5b4fc, #7dd3fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.td-hero p { font-size: 18px; line-height: 1.6; color: #c7cddd; margin: 0 auto 32px; max-width: 60ch; }
.td-hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- barra de confianza ---------- */
.td-trust { border-bottom: 1px solid var(--td-line); background: #fff; }
.td-trust-grid {
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
	padding: 28px 0;
}
.td-trust-item { display: flex; gap: 12px; align-items: flex-start; }
.td-trust-item svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--td-violet); margin-top: 2px; }
.td-trust-item strong { display: block; font-size: 14px; color: var(--td-ink); line-height: 1.3; }
.td-trust-item span { display: block; font-size: 13px; color: var(--td-body); line-height: 1.45; margin-top: 2px; }

/* ---------- cuadrícula de productos ---------- */
.woocommerce-shop .woocommerce-result-count,
.woocommerce-shop .woocommerce-ordering { margin-bottom: 8px; }

ul.products li.product {
	border: 1px solid var(--td-line); border-radius: var(--td-radius); overflow: hidden;
	background: #fff; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
	display: flex; flex-direction: column;
}
ul.products li.product:hover { transform: translateY(-4px); box-shadow: var(--td-shadow); border-color: #d8dbe8; }
ul.products li.product figure { margin: 0; background: var(--td-soft); }
/* normaliza alturas de tarjeta: las fotos de producto vienen en formatos distintos */
ul.products li.product figure img {
	display: block; width: 100%; height: auto; aspect-ratio: 1 / 1;
	object-fit: contain; padding: 14px; mix-blend-mode: multiply;
}
ul.products li.product .ct-woo-card-actions,
ul.products li.product > *:not(figure) { padding-left: 18px; padding-right: 18px; }
ul.products li.product .woocommerce-loop-product__title,
ul.products li.product h2 { font-size: 17px; line-height: 1.3; margin-top: 16px; }
ul.products li.product .price { font-size: 20px; font-weight: 700; color: var(--td-ink); }
ul.products li.product .price del { font-size: 15px; font-weight: 500; opacity: .5; }
ul.products li.product .price ins { text-decoration: none; }
ul.products li.product .button:last-child { margin-bottom: 18px; }

/* con 1–2 productos la rejilla de 4 columnas deja el 75% en blanco */
ul.products:has(li.product:only-child) {
	grid-template-columns: minmax(0, 340px) !important; justify-content: center;
}
ul.products:has(li.product:nth-child(2):last-child) {
	grid-template-columns: repeat(2, minmax(0, 340px)) !important; justify-content: center;
}

/* ---------- rejilla de bloques (carrito vacío, "Novedades en la tienda") ---------- */
.wc-block-grid__products {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 260px));
	justify-content: center; gap: 24px; list-style: none; margin: 32px 0 0; padding: 0;
}
/* Blocksy trae reglas propias para esta rejilla: hace falta subir la especificidad. */
.wc-block-grid .wc-block-grid__products .wc-block-grid__product {
	position: relative; border: 1px solid var(--td-line); border-radius: var(--td-radius);
	padding: 16px; background: #fff; text-align: center;
	transition: transform .2s ease, box-shadow .2s ease;
}
.wc-block-grid .wc-block-grid__products .wc-block-grid__product:hover {
	transform: translateY(-4px); box-shadow: var(--td-shadow);
}
.wc-block-grid__product-link { text-decoration: none; display: block; }
.wc-block-grid .wc-block-grid__product-image img {
	width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; mix-blend-mode: multiply;
}
.wc-block-grid .wc-block-grid__product .wc-block-grid__product-onsale {
	position: absolute !important; top: 14px !important; left: 14px !important;
	right: auto !important; bottom: auto !important; z-index: 2; margin: 0 !important;
	background: var(--td-grad) !important; color: #fff !important; border: 0 !important;
	border-radius: 999px !important; padding: 5px 12px !important;
	font-size: 12px !important; font-weight: 700; line-height: 1.2;
}
.wc-block-grid__product-title { margin-top: 12px; font-size: 16px; font-weight: 600; color: var(--td-ink); }
.wc-block-grid__product-price { margin: 6px 0 14px; font-size: 18px; font-weight: 700; color: var(--td-ink); }
.wc-block-grid__product-price del { font-size: 14px; font-weight: 500; opacity: .5; }
.wc-block-grid__product-price ins { text-decoration: none; }

/* ---------- distintivo de oferta ---------- */
.onsale, span.onsale {
	background: var(--td-grad) !important; color: #fff !important; border: 0 !important;
	font-size: 12px !important; font-weight: 700 !important; letter-spacing: .04em;
	padding: 6px 12px !important; border-radius: 999px !important;
	box-shadow: 0 6px 16px -6px rgba(124, 58, 237, .9);
}

/* ---------- botones de WooCommerce ---------- */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce .button.alt, .wc-block-components-button,
.wc-block-grid__product-add-to-cart a, .wc-block-grid__product-add-to-cart .wp-block-button__link {
	background: var(--td-grad) !important; color: #fff !important; border: 0 !important;
	border-radius: 999px !important; font-weight: 600 !important;
	transition: transform .18s ease, box-shadow .18s ease;
}
.woocommerce a.button:hover, .woocommerce button.button:hover,
.woocommerce input.button:hover, .woocommerce .button.alt:hover {
	color: #fff !important; transform: translateY(-2px);
	box-shadow: 0 12px 28px -12px rgba(124, 58, 237, .95);
}
.woocommerce .button.disabled, .woocommerce button.button:disabled { opacity: .5; transform: none; }

/* ---------- ficha de producto ---------- */
.single-product div.product .product_title { letter-spacing: -.02em; }
.single-product div.product p.price, .single-product div.product span.price {
	font-size: 32px !important; font-weight: 700; color: var(--td-ink);
}
.single-product div.product p.price del { font-size: 20px; font-weight: 500; opacity: .45; }
.single-product div.product p.price ins { text-decoration: none; }
.single-product div.product form.cart button.single_add_to_cart_button {
	width: 100%; padding: 16px 28px !important; font-size: 16px !important;
}
.single-product div.product .woocommerce-product-gallery img { mix-blend-mode: multiply; }

.td-badges { display: grid; gap: 10px; margin: 22px 0 4px; }
.td-badges div { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--td-body); line-height: 1.45; }
.td-badges svg { flex: 0 0 18px; width: 18px; height: 18px; color: #16a34a; margin-top: 2px; }
.td-badges strong { color: var(--td-ink); font-weight: 600; }

.td-pay { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--td-line); font-size: 13px; color: #94a3b8; }

/* ---------- pasos ---------- */
.td-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 44px; counter-reset: td; }
.td-step { border: 1px solid var(--td-line); border-radius: var(--td-radius); padding: 28px 24px; background: #fff; }
.td-step::before {
	counter-increment: td; content: counter(td);
	display: inline-flex; align-items: center; justify-content: center;
	width: 38px; height: 38px; border-radius: 12px; margin-bottom: 16px;
	background: var(--td-grad); color: #fff; font-weight: 700; font-size: 16px;
}
.td-step h3 { font-size: 17px; margin: 0 0 8px; color: var(--td-ink); }
.td-step p { font-size: 15px; line-height: 1.6; color: var(--td-body); margin: 0; }

/* ---------- preguntas frecuentes ---------- */
.td-faq { max-width: 780px; margin: 40px auto 0; }
.td-faq details { border: 1px solid var(--td-line); border-radius: 12px; background: #fff; margin-bottom: 12px; }
.td-faq details[open] { border-color: #c7bdf5; box-shadow: var(--td-shadow); }
.td-faq summary {
	cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 600;
	font-size: 16px; color: var(--td-ink); display: flex; justify-content: space-between; gap: 16px;
}
.td-faq summary::-webkit-details-marker { display: none; }
.td-faq summary::after { content: "+"; font-weight: 400; font-size: 22px; line-height: 1; color: var(--td-violet); transition: transform .2s ease; }
.td-faq details[open] summary::after { transform: rotate(45deg); }
.td-faq p { margin: 0; padding: 0 22px 20px; font-size: 15px; line-height: 1.65; color: var(--td-body); }

/* ---------- llamada final ---------- */
.td-cta { background: var(--td-grad); color: #fff; }
.td-cta .td-wrap { padding-top: 64px; padding-bottom: 64px; text-align: center; }
.td-cta h2 { font-size: clamp(24px, 3.2vw, 34px); margin: 0 0 12px; color: #fff; letter-spacing: -.02em; }
.td-cta p { color: rgba(255, 255, 255, .88); margin: 0 auto 26px; max-width: 55ch; font-size: 17px; }
.td-cta .td-btn { background: #fff; color: var(--td-ink); }
.td-cta .td-btn:hover { color: var(--td-ink); transform: translateY(-2px); }

/* ---------- responsivo ---------- */
@media (max-width: 999px) {
	.td-trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
	.td-steps { grid-template-columns: 1fr; }
}
@media (max-width: 689px) {
	.td-section { padding: 52px 0; }
	.td-hero { padding: 68px 0 60px; }
	.td-hero-cta .td-btn { width: 100%; }
	.td-trust-grid { grid-template-columns: 1fr; }
	ul.products:has(li.product:nth-child(2):last-child) { grid-template-columns: minmax(0, 1fr) !important; }
}
