/*
 * RCV Web · estilos propios.
 * Solo lo que añade el plugin; el diseño general sigue en el tema y en Elementor.
 */

:root {
	--rcv-wa: #0b6e63;        /* Verde WhatsApp oscuro: contraste 6,1:1 con texto blanco (medido con axe). */
	--rcv-wa-hover: #085a51;
	--rcv-ink: #101010;
	--rcv-muted: #5f5f5f;
	--rcv-line: #d9d9d9;
}

/* ── Totales: «IVA incluido» ─────────────────────────────────────────── */
.rcv-tax-note {
	display: inline-block;
	font-size: 12px;
	font-weight: 400;
	color: var(--rcv-muted);
	white-space: nowrap;
}

/* ── Pago: texto de privacidad, cláusula profesional y sellos ────────── */
.woocommerce-checkout .woocommerce-privacy-policy-text,
.woocommerce-checkout .woocommerce-privacy-policy-text p {
	font-size: 13px;
	line-height: 1.45;
	color: var(--rcv-muted);
}

.rcv-b2b-terms {
	margin: 0 0 12px;
	padding: 12px 14px;
	border: 1px solid var(--rcv-line);
	background: #faf8f5;
	font-size: 14px;
	line-height: 1.45;
}

.rcv-pay-badges {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 14px;
	font-size: 13px;
	color: var(--rcv-muted);
}
.rcv-pay-badges img.rcv-pay-icon {
	/* El tema estira las imágenes del pago al ancho de la columna: aquí van a tamaño de icono. */
	flex: 0 0 38px;
	width: 38px !important;
	height: 24px !important;
	max-width: 38px !important;
	margin: 0;
	object-fit: contain;
}
.rcv-pay-text {
	margin-right: 4px;
	font-weight: 600;
	color: var(--rcv-ink);
}

/* ── WhatsApp ────────────────────────────────────────────────────────── */
.rcv-wa-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 46px;
	padding: 10px 20px;
	border-radius: 4px;
	background: var(--rcv-wa);
	color: #fff !important;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	transition: background-color .15s ease;
}
.rcv-wa-button:hover,
.rcv-wa-button:focus-visible {
	background: var(--rcv-wa-hover);
	color: #fff;
}
.rcv-wa-product {
	margin: 12px 0 0;
}
/* En la ficha, discreto: no compite con «Añadir al carrito» (propietario, 2026-11-16). */
.rcv-wa-product .rcv-wa-button {
	gap: 7px;
	min-height: 36px;
	padding: 6px 14px;
	font-size: 14px;
	font-weight: 600;
}
.rcv-wa-product .rcv-wa-button svg,
.rcv-wa-product .rcv-wa-button .rcv-wa-icon {
	width: 18px;
	height: 18px;
}

.rcv-wa-float {
	position: fixed;
	z-index: 350;
	right: 20px;
	bottom: 20px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 52px;
	padding: 0 18px 0 14px;
	border-radius: 26px;
	background: var(--rcv-wa);
	color: #fff !important;
	font-weight: 600;
	text-decoration: none !important;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .22);
	transition: background-color .15s ease, transform .15s ease;
}
.rcv-wa-float:hover,
.rcv-wa-float:focus-visible {
	background: var(--rcv-wa-hover);
	transform: translateY(-2px);
}
.rcv-wa-float .rcv-wa-icon {
	width: 28px;
	height: 28px;
}
.rcv-wa-button:focus-visible,
.rcv-wa-float:focus-visible {
	outline: 3px solid var(--rcv-ink);
	outline-offset: 2px;
}

/* En móvil el acceso a WhatsApp va en la barra inferior del tema: sin botón flotante. */
@media (max-width: 1024px) {
	.rcv-wa-float {
		display: none;
	}
}

/* El botón «subir» del tema ocupa la misma esquina: se coloca encima. */
@media (min-width: 1025px) {
	.scrollToTop {
		bottom: 88px;
	}
}

/* ── Tienda y categorías: título principal ───────────────────────────── */
.rcv-archive-title {
	margin: 0 0 10px;
	font-size: clamp(26px, 3vw, 36px);
	line-height: 1.2;
}

@media (prefers-reduced-motion: reduce) {
	.rcv-wa-button,
	.rcv-wa-float {
		transition: none;
	}
	.rcv-wa-float:hover {
		transform: none;
	}
}

/* ── Página de contacto y formulario ─────────────────────────────────── */
.rcv-lead {
	font-size: 18px;
	line-height: 1.5;
	color: var(--rcv-ink);
	max-width: 62ch;
}
.rcv-contact {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin: 24px 0 40px;
}
.rcv-contact-card {
	padding: 24px;
	border: 1px solid var(--rcv-ink);
	background: #fff;
}
.rcv-contact-card h2 {
	margin: 0 0 10px;
	font-size: 20px;
}
.rcv-contact-card p {
	margin: 0 0 12px;
}
.rcv-contact-card p:last-child {
	margin-bottom: 0;
}
.rcv-contact-card a:not(.rcv-wa-button) {
	color: var(--rcv-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}
@media (max-width: 1024px) {
	.rcv-contact {
		grid-template-columns: 1fr;
	}
}

.wpcf7 form {
	max-width: 720px;
}
.wpcf7 form label {
	display: block;
	font-weight: 600;
	color: var(--rcv-ink);
}
.wpcf7 form .wpcf7-acceptance label {
	display: inline;
	font-weight: 400;
}
.wpcf7 form .wpcf7-list-item {
	margin: 0;
}
/* Trampa para robots: fuera de la vista y del foco, pero presente en el formulario. */
.rcv-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.rcv-form-legal {
	font-size: 13px;
	line-height: 1.5;
	color: var(--rcv-muted);
}

/* ── Mapa del sitio ──────────────────────────────────────────────────── */
.rcv-sitemap {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 30px;
}
.rcv-sitemap h2 {
	font-size: 20px;
	margin: 0 0 12px;
}
.rcv-sitemap ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.rcv-sitemap li {
	margin: 0 0 8px;
}
.rcv-sitemap a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ── Cabecera: el menú principal no debe partirse en dos líneas ──────── */
@media (min-width: 1025px) {
	.whb-general-header .wd-header-main-nav .wd-nav-main {
		flex-wrap: nowrap;
		--nav-gap: clamp(6px, 0.9vw, 20px);
	}
	.whb-general-header .wd-header-main-nav .wd-nav-main > li > a {
		font-size: clamp(13px, 1.02vw, 16px);
		white-space: nowrap;
	}
}

/* ── Barra inferior del móvil: icono del botón de WhatsApp ───────────── */
.wd-toolbar .wd-toolbar-link-1 .wd-custom-icon::before {
	content: "";
	display: block;
	width: 22px;
	height: 22px;
	margin: 0 auto;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16.04 3C8.86 3 3.03 8.82 3.03 16c0 2.29.6 4.53 1.74 6.5L3 29l6.67-1.75A12.94 12.94 0 0 0 16.04 29C23.2 29 29.03 23.18 29.03 16S23.2 3 16.04 3Zm0 23.63c-1.95 0-3.86-.52-5.53-1.51l-.4-.24-3.96 1.04 1.06-3.86-.26-.4a10.6 10.6 0 0 1-1.63-5.66c0-5.87 4.78-10.64 10.66-10.64 5.87 0 10.65 4.77 10.65 10.64 0 5.87-4.78 10.63-10.59 10.63Zm5.84-7.96c-.32-.16-1.89-.93-2.18-1.04-.29-.11-.5-.16-.72.16-.21.32-.82 1.04-1.01 1.25-.19.21-.37.24-.69.08-.32-.16-1.35-.5-2.57-1.59a9.6 9.6 0 0 1-1.78-2.21c-.19-.32-.02-.49.14-.65.14-.14.32-.37.48-.56.16-.19.21-.32.32-.53.11-.21.05-.4-.03-.56-.08-.16-.72-1.73-.98-2.37-.26-.62-.52-.54-.72-.55h-.61c-.21 0-.56.08-.85.4-.29.32-1.12 1.09-1.12 2.66 0 1.57 1.14 3.09 1.3 3.3.16.21 2.25 3.44 5.45 4.82.76.33 1.36.52 1.82.67.76.24 1.46.21 2.01.13.61-.09 1.89-.77 2.15-1.52.27-.75.27-1.39.19-1.52-.08-.13-.29-.21-.61-.37Z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16.04 3C8.86 3 3.03 8.82 3.03 16c0 2.29.6 4.53 1.74 6.5L3 29l6.67-1.75A12.94 12.94 0 0 0 16.04 29C23.2 29 29.03 23.18 29.03 16S23.2 3 16.04 3Zm0 23.63c-1.95 0-3.86-.52-5.53-1.51l-.4-.24-3.96 1.04 1.06-3.86-.26-.4a10.6 10.6 0 0 1-1.63-5.66c0-5.87 4.78-10.64 10.66-10.64 5.87 0 10.65 4.77 10.65 10.64 0 5.87-4.78 10.63-10.59 10.63Zm5.84-7.96c-.32-.16-1.89-.93-2.18-1.04-.29-.11-.5-.16-.72.16-.21.32-.82 1.04-1.01 1.25-.19.21-.37.24-.69.08-.32-.16-1.35-.5-2.57-1.59a9.6 9.6 0 0 1-1.78-2.21c-.19-.32-.02-.49.14-.65.14-.14.32-.37.48-.56.16-.19.21-.32.32-.53.11-.21.05-.4-.03-.56-.08-.16-.72-1.73-.98-2.37-.26-.62-.52-.54-.72-.55h-.61c-.21 0-.56.08-.85.4-.29.32-1.12 1.09-1.12 2.66 0 1.57 1.14 3.09 1.3 3.3.16.21 2.25 3.44 5.45 4.82.76.33 1.36.52 1.82.67.76.24 1.46.21 2.01.13.61-.09 1.89-.77 2.15-1.52.27-.75.27-1.39.19-1.52-.08-.13-.29-.21-.61-.37Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ── Mapa bajo clic ──────────────────────────────────────────────────── */
.rcv-map {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 350px;
	padding: 24px;
	border: 1px solid var(--rcv-line);
	background: #f3f1ee;
	text-align: center;
	color: var(--rcv-ink);
}
.rcv-map p {
	margin: 0;
}
.rcv-map-load {
	padding: 10px 20px;
	border: 1px solid var(--rcv-ink);
	border-radius: 4px;
	background: var(--rcv-ink);
	color: #fff;
	font-weight: 600;
	cursor: pointer;
}
.rcv-map-load:hover,
.rcv-map-load:focus-visible {
	background: #333;
}
.rcv-map-link {
	text-decoration: underline;
	text-underline-offset: 3px;
}
.rcv-map-note {
	font-size: 12px;
	color: var(--rcv-muted);
}
.rcv-map.rcv-map-loaded {
	display: block;
	padding: 0;
	border: 0;
}
.rcv-map.rcv-map-loaded iframe {
	display: block;
	width: 100%;
	height: 350px;
	border: 0;
}

/* ── Avisos en ficha, reseñas, marcas y seguimiento ──────────────────── */
.rcv-b2b-product {
	margin: 0 0 18px;
	padding: 14px 16px;
	border-left: 4px solid var(--rcv-ink);
	background: #f3f1ee;
	font-size: 14px;
	line-height: 1.5;
	color: var(--rcv-ink);
}
.rcv-b2b-product p {
	margin: 0 0 8px;
}
.rcv-b2b-product p:last-child {
	margin-bottom: 0;
}
.rcv-b2b-product a,
.rcv-product-note a,
.rcv-reviews-note a {
	font-weight: 600;
	text-decoration: underline !important; /* El tema quita el subrayado dentro de la ficha. */
	text-underline-offset: 3px;
}
.rcv-product-note {
	margin: 14px 0 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--rcv-muted);
}
.rcv-reviews-note,
.rcv-tracking {
	margin: 0 0 30px;
	padding: 16px 18px;
	border: 1px solid var(--rcv-line);
	background: #faf8f5;
}
.rcv-tracking p {
	margin: 0;
}
.rcv-tracking a {
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ── Portada: llamada a la acción de la cabecera ─────────────────────── */
.rcv-hero-cta {
	display: inline-block;
	margin-top: 6px;
	padding: 12px 26px;
	border: 2px solid #fff;
	border-radius: 4px;
	color: #fff !important;
	font-weight: 700;
	text-decoration: none !important;
	transition: background-color .15s ease, color .15s ease;
}
.rcv-hero-cta:hover,
.rcv-hero-cta:focus-visible {
	background: #fff;
	color: var(--rcv-ink) !important;
}

/* ── Ficha de producto en móvil: título y precio antes que la foto (U-05) ──
   La maqueta apila «columna de fotos» y «columna de datos», así que la primera pantalla
   era solo la foto. Sin tocar la maqueta: la columna de datos se «disuelve» en móvil
   (display: contents) y sus piezas se reordenan junto a la galería. Los navegadores que
   no entienden :has() (anteriores a 2023) se quedan con el orden de siempre. */
@media (max-width: 768px) {
	.single-product .e-con-inner:has(> .e-con > .wd-single-title) {
		flex-direction: column;
		row-gap: 14px;
	}
	.single-product .e-con:has(> .wd-single-title) {
		display: contents;
	}
	.single-product .e-con:has(> .wd-single-title) > * {
		order: 2;
	}
	.single-product .e-con:has(> .wd-single-gallery) {
		order: 1;
	}
	.single-product .e-con:has(> .wd-single-title) > .wd-el-breadcrumbs {
		order: -3;
	}
	.single-product .e-con:has(> .wd-single-title) > .wd-single-title {
		order: -2;
	}
	.single-product .e-con:has(> .wd-single-title) > .e-con:has(.wd-single-price) {
		order: -1;
	}
}

/* ── Accesibilidad: contraste suficiente (WCAG 1.4.3) ──────────────────────
   Medido con axe-core el 2026-11-14 (web/local/scripts/browser/a11y-probe.cjs). Solo se
   oscurecen grises del tema que no llegaban a 4,5:1 sobre fondo claro: subtítulos, categoría
   y precio anterior en las rejillas, y el último tramo de las migas. */
body .title-subtitle.subtitle-color-default,
body .wd-product-cats,
body .wd-product-cats a,
body .price del,
body .price del .amount,
body del .woocommerce-Price-amount,
body .wd-last-link,
body .wd-page-title:not(.color-scheme-light) .breadcrumbs a,
body .wd-page-title:not(.color-scheme-light) .wd-breadcrumbs a,
.rcv-reviews-note {
	color: var(--rcv-muted);
}

/* ── Accesibilidad: un enlace dentro de un texto se reconoce sin depender del color (WCAG 1.4.1) ──
   Solo en texto corrido (páginas legales, artículos y bloques de texto), no en menús,
   rejillas ni botones. */
.entry-content > p a:not(.btn):not(.button):not(.rcv-wa-button),
.entry-content > ul a:not(.btn):not(.button),
.entry-content > ol a:not(.btn):not(.button),
.entry-content > table a,
.elementor-widget-text-editor p a:not(.btn):not(.button),
.elementor-widget-text-editor li a:not(.btn):not(.button),
.wd-text-block p a:not(.btn):not(.button),
.wd-text-block li a:not(.btn):not(.button),
.rcv-contact-card p a:not(.rcv-wa-button),
.wd-text-block > a:not(.btn):not(.button),
.rcv-form-legal a,
.rcv-b2b-product a,
.rcv-product-note a,
.woocommerce-product-details__short-description a:not(.btn):not(.button),
.wd-single-short-desc a:not(.btn):not(.button),
.wd-single-content p a:not(.btn):not(.button),
.single-post article.post .wd-entry-content p a:not(.btn):not(.button),
.single-post article.post .wd-entry-content li a:not(.btn):not(.button) {
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* ── Checkout: datos de factura y notas del pedido ──────────────────────────
   Los dos campos de factura solo se ven al marcar «Necesito factura». Sin JavaScript se ven
   siempre (la clase rcv-invoice-off la pone el script). */
.rcv-invoice-off .rcv-invoice-field {
	display: none !important;
}
.rcv-invoice-field label .optional,
.rcv-invoice-toggle label .optional {
	display: none;
}
.woocommerce-checkout #order_comments {
	min-height: 0;
	height: auto;
}

/* ── Accesibilidad con teclado y movimiento ─────────────────────────────── */

/* Los paneles laterales cerrados (menú de móvil y carrito) están fuera de la pantalla, pero el
   teclado seguía entrando en ellos: el foco desaparecía durante una docena de pulsaciones.
   Ocultos de verdad mientras están cerrados; el retardo deja terminar la animación de cierre. */
.wd-side-hidden:not(.wd-opened) {
	visibility: hidden;
	transition: transform .5s cubic-bezier(0.19, 1, 0.22, 1), visibility 0s .5s;
}
.wd-side-hidden.wd-opened {
	visibility: visible;
	transition: transform .5s cubic-bezier(0.19, 1, 0.22, 1), visibility 0s;
}

/* El tema solo aclara un poco el borde del campo con foco. Con teclado se marca con claridad. */
body input:focus-visible,
body select:focus-visible,
body textarea:focus-visible {
	outline: 2px solid var(--rcv-ink) !important; /* El tema lo anula con «outline: none». */
	outline-offset: 1px;
}

/* Quien pide menos movimiento en su sistema no ve animaciones ni transiciones. */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		transition-delay: 0s !important;
		scroll-behavior: auto !important;
	}
}

/* Aviso de la tienda («No se han encontrado productos…»): el tema pone texto blanco sobre
   dorado (contraste 2,3:1). Con el texto oscuro pasa de 8:1. */
.woocommerce-info,
.woocommerce-info a,
.woocommerce-info::before {
	color: var(--rcv-ink) !important;
}

/* Enlaces relacionados al final de una guía o de un artículo («Ver cazadoras y abrigos · Guía de tallas»). */
.rcv-enlaces {
	margin-top: 1em;
}
.rcv-enlaces a {
	color: var(--rcv-ink);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Texto de presentación de la tienda y de las categorías: el tema lo pinta en un gris que no
   llega al contraste mínimo. */
.term-description p,
.page-description p {
	color: #4a4a4a;
	/* Ancho para que la frase de la tienda quepa en una línea en ordenador (propietario, 2026-11-16). */
	max-width: 125ch;
}

/* Formulario de contacto: casilla «No soy un robot» (includes/captcha.php). */
.rcv-captcha {
	margin: 0 0 18px;
}
.rcv-captcha .rcv-captcha-wrap {
	display: block;
}
.rcv-captcha altcha-widget {
	display: block;
	--altcha-max-width: 300px;
	--altcha-border-radius: 4px;
	--altcha-color-primary: #630709;
}
.rcv-captcha .wpcf7-not-valid-tip {
	margin-top: 6px;
}
.rcv-form-hint {
	font-size: 14px;
	color: #4a4a4a;
}

/* ── Botón de idioma de la cabecera (bandera + siglas) ───────────────── */
.wd-header-text.rcv-idioma-el {
	flex: 0 0 auto;
	margin: 0;
}
.rcv-idioma {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 44px;
	padding: 0 10px;
	color: inherit;
	font-family: var(--wd-header-el-font);
	font-size: var(--wd-header-el-font-size, 16px);
	font-weight: var(--wd-header-el-font-weight, 700);
	line-height: 1;
	text-decoration: none !important;
	white-space: nowrap;
}
.rcv-idioma:hover {
	opacity: .7;
}
.rcv-idioma:focus-visible {
	outline: 3px solid var(--rcv-ink);
	outline-offset: -3px;
}
.rcv-idioma-bandera {
	flex: none;
	width: 24px;
	height: 16px;
	border-radius: 2px;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .18);
}
/* Móviles muy estrechos: el botón se aprieta para que el carrito no se corte. */
@media (max-width: 374px) {
	.rcv-idioma {
		gap: 5px;
		padding: 0 4px;
		font-size: 14px;
	}
}

/* ── Mystery Box: cinco cajas en una fila; en móvil, rejilla de dos ──── */
.rcv-ventajas .elementor-image-box-title {
	margin-bottom: 4px;
}
@media (max-width: 767px) {
	.e-con.rcv-ventajas > .e-con-inner {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 8px;
	}
	.e-con.rcv-ventajas > .e-con-inner > .e-con {
		--width: 100%;
		width: 100%;
		min-width: 0;
	}
	.e-con.rcv-ventajas > .e-con-inner > .e-con:first-child {
		grid-column: 1 / -1;
	}
}

/* ── Barra de categorías (portada y tienda): iconos pequeños, sin borde ni círculo ── */
.rcv-categorias .wd-cats-element {
	padding-inline: 15px;
}
.rcv-categorias .cat-design-side .wd-cat-inner {
	gap: 10px;
	min-height: 64px;
	padding: 4px 10px;
}
.rcv-categorias .cat-design-side .wd-cat-thumb {
	align-self: center;
	border-radius: 0;
}
.rcv-categorias .cat-design-side .wd-cat-thumb img {
	display: block;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 0;
}
.rcv-categorias .wd-entities-title {
	margin: 0;
	line-height: 1.25;
}
@media (max-width: 767px) {
	.rcv-categorias .wd-cats-element {
		padding-inline: 10px;
	}
	.rcv-categorias .cat-design-side .wd-cat-inner {
		gap: 8px;
		min-height: 54px;
		padding: 4px 8px;
	}
}

/* ── Tienda en tableta: la fila de filtros y orden no cabe ────────────── */
/* Tienda en tableta: la fila de filtros y orden medía más que la pantalla (102 % del ancho) y
   cortaba el desplegable «Orden predeterminado». En ordenador no cambia nada. */
@media (min-width: 768px) and (max-width: 1024px) {
	.elementor-element-922302d {
		width: 100% !important;
		flex-wrap: wrap;
	}
	.elementor-element-922302d > .e-con,
	.elementor-element-922302d > .elementor-widget {
		width: auto !important;
		min-width: 0;
	}
	.elementor-element-54fa986 {
		flex-grow: 1;
		justify-content: flex-end;
	}
}

/* ── Pago: «(opcional)» junto a la etiqueta ───────────────────────────── */
/* El tema lo pinta en gris claro (#bbb, 1,9 :1): no llegaba al contraste mínimo. */
.woocommerce form .form-row label .optional {
	color: #6F6458;
}
