/* =========================================================================
 * CERVO — FICHA · RESEÑAS (Valoraciones)
 *
 * Migrado del CSS que vivía en el Personalizador (con @import de Playfair +
 * DM Sans y varios !important/z-index:9999 que eran parches contra Elementor).
 * Aquí:
 *   - Fuentes de la ficha: Cormorant (título) + Jost (texto). Cero fuentes extra.
 *   - Sin @import, sin !important de fuerza, sin z-index gigantes.
 *   - Clases propias `cres-*` (no chocan con el snippet viejo).
 *   - Se conserva el MISMO look que ya gustaba (tarjetas, avatares, dorado).
 *
 * Solo se encola en la vista previa de la ficha (?cervo=1).
 * ========================================================================= */

/* Ocultar la lista y el título nativos de WooCommerce (los sustituye .cres).
   El formulario para dejar reseña se conserva. Scopeado a la ficha nueva. */
body.cervo-fluid #reviews .commentlist,
body.cervo-fluid #reviews > #comments > .woocommerce-Reviews-title,
body.cervo-fluid #reviews .woocommerce-noreviews {
	display: none;
}

/* ---- Contenedor ---------------------------------------------------------- */
.cres {
	font-family: var(--cv-sans);
	color: var(--cv-ink);
}

/* ---- Cabecera ------------------------------------------------------------ */
.cres-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--cv-s4);
	margin-bottom: var(--cv-s5);
	padding: 0 4px;
}

.cres-title {
	font-family: var(--cv-serif);
	font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem); /* 22 → 28 */
	font-weight: 500;
	line-height: 1.1;
	color: var(--cv-ink);
	margin: 0 0 8px;
}

.cres-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--cv-bg-soft);
	border-radius: var(--cv-radius-sm);
	padding: 5px 11px;
	font-size: 12.5px;
	color: var(--cv-mut);
}

.cres-badge strong {
	color: var(--cv-ink);
	font-weight: 600;
}

.cres-badge-sep {
	opacity: 0.5;
}

.cres-badge-stars {
	display: inline-flex;
	gap: 1px;
}

.cres-badge-stars svg {
	width: 13px;
	height: 13px;
	fill: #e8b84b;
}

/* ---- Flechas de navegación (solo aportan, la lista scrollea igual) ------- */
.cres-nav {
	display: flex;
	gap: 6px;
	align-items: center;
	margin-top: 4px;
	flex-shrink: 0;
}

.cres-arrow {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 1px solid var(--cv-line);
	background: var(--cv-bg);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--cv-ink-soft);
	font-size: 15px;
	line-height: 1;
	padding: 0;
	transition: background var(--cv-fast) var(--cv-ease-io),
		border-color var(--cv-fast) var(--cv-ease-io),
		color var(--cv-fast) var(--cv-ease-io);
}

.cres-arrow:hover {
	background: var(--cv-bg-soft);
	border-color: var(--cv-mut);
	color: var(--cv-ink);
}

/* ---- Carrusel ------------------------------------------------------------ */
.cres-track {
	display: flex;
	gap: 14px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding: 4px 4px 16px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
	cursor: grab;
}

.cres-track::-webkit-scrollbar {
	display: none;
}

.cres-track.cres-grabbing {
	cursor: grabbing;
	user-select: none;
	scroll-behavior: auto;
}

/* ---- Tarjeta ------------------------------------------------------------- */
.cres-card {
	flex: 0 0 260px;
	scroll-snap-align: start;
	background: var(--cv-bg);
	border: 1px solid var(--cv-line-soft);
	border-radius: var(--cv-radius);
	padding: 1.2rem;
	display: flex;
	flex-direction: column;
	gap: 10px;
	box-sizing: border-box;
	transition: border-color var(--cv-fast) var(--cv-ease-io),
		box-shadow var(--cv-fast) var(--cv-ease-io);
}

.cres-card:hover {
	border-color: var(--cv-line);
	box-shadow: var(--cv-shadow);
}

.cres-card-top {
	display: flex;
	align-items: center;
	gap: 10px;
}

/* Avatar con iniciales (paleta pastel del diseño original) */
.cres-av {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 600;
	flex-shrink: 0;
}

.cres-av-a { background: #e1f5ee; color: #0f6e56; }
.cres-av-b { background: #eeedfe; color: #534ab7; }
.cres-av-c { background: #faeeda; color: #854f0b; }
.cres-av-d { background: #fbeaf0; color: #993556; }
.cres-av-e { background: #e6f1fb; color: #185fa5; }

.cres-who {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.cres-name {
	font-size: 14px;
	font-weight: 500;
	color: var(--cv-ink);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cres-date {
	font-size: 11px;
	color: var(--cv-mut);
}

.cres-stars {
	display: flex;
	gap: 2px;
	flex-shrink: 0;
}

.cres-stars svg {
	width: 12px;
	height: 12px;
	fill: #e8b84b;
}

.cres-text {
	font-size: 13px;
	color: var(--cv-ink-soft);
	line-height: 1.65;
	margin: 0;
	flex: 1;
}

.cres-img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: var(--cv-radius-sm);
	display: block;
}

/* Se puede ampliar: que se note. El visor lo monta cervo-resenas.js. */
.cres-img[data-cres-full] {
	cursor: zoom-in;
	transition: transform .35s cubic-bezier(.2, .7, .3, 1), filter .35s ease;
}

.cres-img[data-cres-full]:hover,
.cres-img[data-cres-full]:focus-visible {
	transform: scale(1.03);
	filter: brightness(1.04);
}

/* ---- Vídeo del cliente --------------------------------------------------- */
.cres-video {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: var(--cv-radius-sm);
	display: block;
	background: #0b0b0b;
}

/* =========================================================================
 * VISOR DE VÍDEO — VENTANA PROPIA
 *
 * POR QUÉ NO SE USA LA PANTALLA COMPLETA DEL NAVEGADOR: Chrome mantiene el
 * `object-fit: cover` de la miniatura al pasar a pantalla completa, así que
 * un vídeo vertical salía recortado a lo ancho. Se puede parchear con
 * `:fullscreen`, y se probó, pero aun arreglado el resultado es el
 * reproductor del sistema ocupando toda la pantalla — no una ventana de la
 * tienda. Se cambió por un visor propio, que además se ve igual en todos los
 * navegadores.
 *
 * El vídeo va con `max-height` y `max-width` en VIEWPORT y `object-fit:
 * contain`: así uno vertical se ve VERTICAL, alto y estrecho, y uno apaisado
 * se ve ancho. Manda el archivo, no la ventana.
 * ========================================================================= */
.cres-visor {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: grid;
	place-items: center;
	padding: 24px;
	background: rgba(8, 8, 10, .88);
	backdrop-filter: blur(6px);
	opacity: 0;
	transition: opacity .28s ease;
}

.cres-visor.is-abierto {
	opacity: 1;
}

.cres-visor video {
	max-width: min(100%, 900px);
	max-height: 86vh;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
	border-radius: 10px;
	background: #000;
	box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
	transform: scale(.96);
	transition: transform .28s cubic-bezier(.2, .7, .3, 1);
}

.cres-visor.is-abierto video {
	transform: scale(1);
}

.cres-visor__cerrar {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 42px;
	height: 42px;
	display: grid;
	place-items: center;
	padding: 0;
	border: 0;
	border-radius: 999px;
	color: #fff;
	background: rgba(255, 255, 255, .14);
	cursor: pointer;
	transition: background .25s ease, transform .25s ease;
}

.cres-visor__cerrar:hover,
.cres-visor__cerrar:focus-visible {
	background: rgba(255, 255, 255, .26);
	transform: rotate(90deg);
}

/* Con el visor abierto, la página de detrás no se mueve. */
body.cres-visor-abierto {
	overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
	.cres-visor,
	.cres-visor video,
	.cres-visor__cerrar {
		transition: none;
	}
}

/* ⚠️ NINGUNA MINIATURA CAMBIA DE ALTURA SEGÚN LA ORIENTACIÓN.
 *
 * Se intentó DOS veces —primero fotos y vídeos, luego solo vídeos— y las dos
 * estiraba la tarjeta y descuadraba la fila. La solución no estaba en la
 * miniatura: estaba en tener un visor decente también para el vídeo.
 * No reintroducir `.cres-media--vert`.
 *
 * Todas van a 3/2 recortadas; lo vertical se ve entero al abrir. */

/* ---- Botón de ampliar sobre el vídeo -------------------------------------
 * El vídeo se reproduce en la tarjeta, pero para verlo en grande manda el
 * visor propio, no la pantalla completa del navegador. Por eso este botón
 * y el `controlsList="nofullscreen"` de la plantilla van juntos: si se quita
 * uno, vuelve el recorte a lo ancho al ampliar.
 * -------------------------------------------------------------------------- */
.cres-video-caja {
	position: relative;
}

.cres-ampliar {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 32px;
	height: 32px;
	display: grid;
	place-items: center;
	padding: 0;
	border: 0;
	border-radius: 999px;
	color: #fff;
	background: rgba(0, 0, 0, .55);
	backdrop-filter: blur(4px);
	cursor: pointer;
	opacity: .85;
	transition: opacity .25s ease, transform .25s ease, background .25s ease;
}

.cres-ampliar:hover,
.cres-ampliar:focus-visible {
	opacity: 1;
	transform: scale(1.08);
	background: rgba(0, 0, 0, .75);
}

/* ---- Puntos (dots) ------------------------------------------------------- */
.cres-dots {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 4px;
}

.cres-dots:empty {
	display: none;
}

.cres-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--cv-line);
	border: none;
	padding: 0;
	cursor: pointer;
	transition: width var(--cv-fast) var(--cv-ease-io),
		background var(--cv-fast) var(--cv-ease-io);
}

.cres-dot.active {
	background: var(--cv-mut);
	width: 18px;
	border-radius: 3px;
}

/* ---- Móvil --------------------------------------------------------------- */
@media (max-width: 600px) {
	.cres-card {
		flex-basis: 220px;
	}

	.cres-nav {
		display: none; /* en móvil se navega con swipe */
	}
}

/* =========================================================================
 * FORMULARIO "AÑADIR UNA VALORACIÓN"
 *
 * El markup NO es nuestro: lo generan WooCommerce (#respond, .comment-form,
 * p.stars) y el plugin CusRev (.cr-upload-local-images). Por eso aquí solo hay
 * OVERRIDES por selector; no se toca ni el plugin ni el markup, así que una
 * actualización del plugin no rompe nada (como mucho, deja de aplicar algo).
 *
 * Todo va prefijado con `body.cervo-fluid` → solo afecta a la ficha nueva
 * (?cervo=1). La tienda real sigue viéndose exactamente igual.
 *
 * Qué se corrige (lo que imponían el tema y WooCommerce):
 *   · el bloque se estiraba a todo el ancho de la sección (2200px en monitor)
 *   · `input[type=submit]` salía AZUL #0286e7 y naranja #e26143 en hover
 *   · `textarea` con height:150px, padding:20px y foco azul #3da6ff
 *   · fuente Inter 15px heredada del tema en vez de Jost
 *   · estrellas de 24px sin color de marca ni separación
 *
 * Orden: mobile-first (base = móvil, y al final el bloque de ≥768px).
 * ========================================================================= */

/* 👉 AJUSTES RÁPIDOS del formulario */
body.cervo-fluid #review_form_wrapper {
	--crf-max: 780px;   /* ancho máximo de la tarjeta */
	--crf-star: 30px;   /* tamaño de las estrellas */
}

/* ---- Tarjeta contenedora ------------------------------------------------- */
body.cervo-fluid #review_form_wrapper {
	max-width: var(--crf-max);
	margin: var(--cv-s6) auto 0;
	padding: var(--cv-s5);
	background: var(--cv-bg-soft);
	border: 1px solid var(--cv-line-soft);
	border-radius: var(--cv-radius);
	box-sizing: border-box;
	font-family: var(--cv-sans);
	color: var(--cv-ink);
}

/* El tema mete su propio margen/borde en #respond; aquí sobra (ya lo da la tarjeta). */
body.cervo-fluid #review_form_wrapper #respond {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}

/* ---- Título -------------------------------------------------------------- */
/* Es un <span>, no un <h#>: hay que declararle display:block a mano. */
body.cervo-fluid #review_form_wrapper .comment-reply-title {
	display: block;
	font-family: var(--cv-serif);
	font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem); /* 20 → 26 */
	font-weight: 500;
	line-height: var(--cv-lh-tight);
	color: var(--cv-ink);
	margin: 0 0 var(--cv-s5);
	padding-bottom: var(--cv-s3);
	border-bottom: 1px solid var(--cv-line);
}

/* Textos de cortesía de WordPress (aviso de campos, "Estás conectado como…"). */
body.cervo-fluid #review_form_wrapper .comment-notes,
body.cervo-fluid #review_form_wrapper .logged-in-as {
	font-size: var(--cv-t-sm);
	color: var(--cv-mut);
	margin: 0 0 var(--cv-s4);
}

/* ---- Etiquetas de campo (mismo trato para todas) ------------------------- */
body.cervo-fluid #review_form_wrapper label {
	display: block;
	font-size: var(--cv-t-xs);
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--cv-mut);
	margin-bottom: var(--cv-s2);
}

body.cervo-fluid #review_form_wrapper .required {
	color: var(--cv-warn);
	text-decoration: none;
}

/* ---- Estrellas de puntuación --------------------------------------------- */
body.cervo-fluid #review_form_wrapper .comment-form-rating {
	margin-bottom: var(--cv-s5);
}

body.cervo-fluid #review_form_wrapper p.stars {
	margin: 0;
	line-height: 1;
}

body.cervo-fluid #review_form_wrapper p.stars a {
	font-size: var(--crf-star);
	margin-right: 10px;   /* WooCommerce las deja pegadas */
	transition: transform var(--cv-fast) var(--cv-ease-io);
}

body.cervo-fluid #review_form_wrapper p.stars a:hover {
	transform: scale(1.12);
}

/*
 * COLOR de las estrellas.
 *
 * ⚠️ WooCommerce decide LLENA vs VACÍA cambiando el glifo con `content`
 * (\e020 = llena · \e021 = vacía) mediante selectores de hermanos. Ese juego NO
 * se toca: aquí solo se calca su MISMA lista de selectores para dar el color
 * que toca a cada estado. Si se tocaran los `content`, se rompería el widget.
 */
body.cervo-fluid #review_form_wrapper p.stars a::before {
	color: var(--cv-line);        /* vacía */
}

body.cervo-fluid #review_form_wrapper p.stars:hover a::before,
body.cervo-fluid #review_form_wrapper p.stars.selected a.active::before,
body.cervo-fluid #review_form_wrapper p.stars.selected a:not(.active)::before {
	color: #e8b84b;               /* llena — el mismo dorado de las tarjetas */
}

body.cervo-fluid #review_form_wrapper p.stars a:hover ~ a::before,
body.cervo-fluid #review_form_wrapper p.stars.selected a.active ~ a::before {
	color: var(--cv-line);        /* vuelven a vacías las de la derecha */
}

/* ---- Campos de texto ----------------------------------------------------- */
body.cervo-fluid #review_form_wrapper textarea,
body.cervo-fluid #review_form_wrapper input[type="text"],
body.cervo-fluid #review_form_wrapper input[type="email"] {
	width: 100%;
	box-sizing: border-box;
	font-family: var(--cv-sans);
	font-size: var(--cv-t-md);
	line-height: var(--cv-lh-body);
	color: var(--cv-ink);
	background: var(--cv-bg);
	border: 1px solid var(--cv-line);
	border-radius: var(--cv-radius-sm);
	padding: 12px 14px;
	transition: border-color var(--cv-fast) var(--cv-ease-io),
		box-shadow var(--cv-fast) var(--cv-ease-io);
}

/* El tema fija height:150px y padding:20px en todo textarea. */
body.cervo-fluid #review_form_wrapper textarea {
	height: auto;
	min-height: 130px;
	padding: 14px;
	resize: vertical;
}

/* Foco: el tema lo pone azul #3da6ff; aquí va el dorado de la marca. */
body.cervo-fluid #review_form_wrapper textarea:focus,
body.cervo-fluid #review_form_wrapper input[type="text"]:focus,
body.cervo-fluid #review_form_wrapper input[type="email"]:focus {
	border-color: var(--cv-gold);
	box-shadow: 0 0 0 3px rgba(200, 169, 110, 0.18);
	outline: none;
}

body.cervo-fluid #review_form_wrapper .comment-form-comment {
	margin-bottom: var(--cv-s5);
}

/* ---- Subida de fotos/vídeo (CusRev) -------------------------------------- */
body.cervo-fluid #review_form_wrapper .cr-upload-local-images {
	margin-bottom: var(--cv-s5);
}

/*
 * El <input type="file"> crudo es feo y no se puede estilar de verdad. Se
 * esconde de la VISTA pero NO del teclado ni del lector de pantalla (nada de
 * display:none), y quien hace de botón es su <label>, que ya lo apunta con
 * `for`. El JS de CusRev sigue escuchando el mismo input: no se entera.
 */
body.cervo-fluid #review_form_wrapper #cr_review_image {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

body.cervo-fluid #review_form_wrapper .cr-upload-images-status {
	display: flex;
	flex-direction: column;   /* ícono arriba, texto debajo → tarjeta de subida */
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 104px;
	padding: var(--cv-s5) var(--cv-s4);
	text-align: center;
	background: var(--cv-bg);
	border: 1.5px dashed var(--cv-line);
	border-radius: var(--cv-radius-sm);
	cursor: pointer;
	/* Se anula el trato de "etiqueta de campo" de más arriba. */
	font-size: var(--cv-t-sm);
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	color: var(--cv-mut);
	margin-bottom: 0;
	transition: border-color var(--cv-fast) var(--cv-ease-io),
		background var(--cv-fast) var(--cv-ease-io),
		color var(--cv-fast) var(--cv-ease-io);
}

/* Ícono de imagen sobre el texto. Es una MÁSCARA (SVG inline en data-URI), así
   que su color lo controla `background-color` y cambia con el hover. */
body.cervo-fluid #review_form_wrapper .cr-upload-images-status::before {
	content: '';
	width: 28px;
	height: 28px;
	background-color: var(--cv-mut);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='M21 15l-5-5L5 21'/%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 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='M21 15l-5-5L5 21'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: background-color var(--cv-fast) var(--cv-ease-io);
}

body.cervo-fluid #review_form_wrapper .cr-upload-images-status:hover {
	border-color: var(--cv-gold);
	background: var(--cv-bg-soft);
	color: var(--cv-ink);
}

body.cervo-fluid #review_form_wrapper .cr-upload-images-status:hover::before {
	background-color: var(--cv-gold-deep);
}

/* Cuando el input tiene el foco por teclado, que se vea igual que en hover. */
body.cervo-fluid #review_form_wrapper #cr_review_image:focus + .cr-upload-images-status,
body.cervo-fluid #review_form_wrapper #cr_review_image:focus-visible + .cr-upload-images-status {
	border-color: var(--cv-gold);
	box-shadow: 0 0 0 3px rgba(200, 169, 110, 0.18);
}

/* Miniaturas de lo ya subido. */
body.cervo-fluid #review_form_wrapper .cr-upload-images-preview:not(:empty) {
	display: flex;
	flex-wrap: wrap;
	gap: var(--cv-s2);
	margin-bottom: var(--cv-s3);
}

/* ---- Consentimiento del cliente (CusRev) --------------------------------
 * El snippet global lo ocultaba (`.cr-customer-consent{display:none}`). Al
 * retirarlo, esta casilla aparece: aquí se integra como una línea discreta
 * (casilla + texto pequeño), NO con el trato de etiqueta-mayúscula del resto. */
body.cervo-fluid #review_form_wrapper .cr-customer-consent {
	display: flex;
	align-items: flex-start;
	gap: var(--cv-s2);
	margin: 0 0 var(--cv-s5);
	font-size: var(--cv-t-sm);
	line-height: 1.5;
	color: var(--cv-mut);
}

body.cervo-fluid #review_form_wrapper .cr-customer-consent input[type="checkbox"] {
	margin: 3px 0 0;
	flex-shrink: 0;
	accent-color: var(--cv-gold-deep);
}

body.cervo-fluid #review_form_wrapper .cr-customer-consent label {
	/* Anula el estilo de etiqueta de campo (mayúsculas, tracking, block). */
	display: inline;
	margin: 0;
	font-size: var(--cv-t-sm);
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	color: var(--cv-mut);
}

body.cervo-fluid #review_form_wrapper .cr-upload-images-preview img,
body.cervo-fluid #review_form_wrapper .cr-upload-images-preview video {
	width: 68px;
	height: 68px;
	object-fit: cover;
	border-radius: var(--cv-radius-sm);
	border: 1px solid var(--cv-line);
}

/* ---- Botón enviar -------------------------------------------------------- */
/*
 * ⚠️ EL GOTCHA DE SIEMPRE: el tema pinta TODOS los botones en
 * `.btn-general,.button,button,input[type=submit]{background-color:#0286e7}` y
 * en hover `#e26143` (naranja). Ese selector vale (0,1,1); el de aquí lleva ID
 * + clase de body, así que gana de sobra y NO hace falta !important.
 */
body.cervo-fluid #review_form_wrapper .form-submit {
	margin: 0;
}

body.cervo-fluid #review_form_wrapper input#submit {
	width: 100%;                /* móvil: a todo lo ancho, cómodo para el dedo */
	font-family: var(--cv-sans);
	font-size: var(--cv-t-md);
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--cv-bg);
	background-color: var(--cv-ink);
	border: 1px solid var(--cv-ink);
	border-radius: var(--cv-radius-sm);
	padding: 15px 28px;
	cursor: pointer;
	transition: background-color var(--cv-fast) var(--cv-ease-io),
		border-color var(--cv-fast) var(--cv-ease-io),
		color var(--cv-fast) var(--cv-ease-io);
}

body.cervo-fluid #review_form_wrapper input#submit:hover {
	background-color: var(--cv-gold-deep);
	border-color: var(--cv-gold-deep);
	color: var(--cv-bg);
}

/* El tema pone `outline:1px dotted #ffbf3f` al enfocar; aquí, el aro de marca. */
body.cervo-fluid #review_form_wrapper input#submit:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(200, 169, 110, 0.35);
}

/* ---- Tablet y escritorio (≥768px) ---------------------------------------- */
@media (min-width: 768px) {

	body.cervo-fluid #review_form_wrapper {
		padding: var(--cv-s6);
	}

	/* Nombre y correo (solo salen si NO has iniciado sesión) van a la par. */
	body.cervo-fluid #review_form_wrapper .comment-form-author,
	body.cervo-fluid #review_form_wrapper .comment-form-email {
		display: inline-block;
		width: calc(50% - 8px);
		vertical-align: top;
		box-sizing: border-box;
	}

	body.cervo-fluid #review_form_wrapper .comment-form-author {
		margin-right: 12px;
	}

	/* Con ratón no hace falta el botón a todo lo ancho. */
	body.cervo-fluid #review_form_wrapper input#submit {
		width: auto;
		min-width: 220px;
	}
}

/* ---- Accesibilidad ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.cres-track {
		scroll-behavior: auto;
	}

	body.cervo-fluid #review_form_wrapper p.stars a:hover {
		transform: none;
	}
}

/* =========================================================================
 * FECHAS DE LAS RESEÑAS — OCULTAS
 *
 * Las reseñas se van sembrando a mano, así que todas nacen con la fecha de
 * hoy y en la ficha se ve una tira de fechas idénticas. Se ocultan.
 *
 * Nuestro <span class="cres-date"> ya no se imprime siquiera (ver el filtro
 * `cervo_resenas_fecha` en template-parts/producto/resenas.php). Lo de aquí
 * es para el <time> que pinta CusRev por su cuenta, que no tiene filtro:
 * lo construye concatenando cadenas en class-cr-reviews.php:1384.
 *
 * ⚠️ Se OCULTA, no se borra: el <time datetime="…"> es el que leen Google y
 * los datos estructurados de reseña. Quitarlo del HTML perjudicaría al SEO.
 * ========================================================================= */
body.cervo-fluid .woocommerce-review__published-date,
body.cervo-fluid .cr-review-date,
body.cervo-fluid #reviews time.woocommerce-review__published-date {
	display: none !important;
}
