/* =====================================================================
   HDL Reseñas — estilos públicos
   Todo se controla con variables --hdlr-* (los widgets de Elementor las
   sobrescriben por instancia). Por defecto toma la tipografía del sitio y
   el color primario global de Elementor.
   ===================================================================== */

.hdlr {
	--hdlr-accent: var(--hdlr-g-accent, var(--e-global-color-primary, #111827));
	--hdlr-accent-text: var(--hdlr-g-accent-text, #ffffff);
	--hdlr-star: var(--hdlr-g-star, #f59e0b);
	--hdlr-star-empty: #e5e7eb;
	--hdlr-text: #111827;
	--hdlr-muted: #6b7280;
	--hdlr-border: #e7e9ee;
	--hdlr-card-bg: #ffffff;
	--hdlr-surface: #f8f9fb;
	--hdlr-success: #059669;
	--hdlr-danger: #dc2626;
	--hdlr-radius: 16px;
	--hdlr-radius-sm: calc(var(--hdlr-radius) * .6);
	--hdlr-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 2px 8px -2px rgba(16, 24, 40, .06);
	--hdlr-shadow-hover: 0 12px 28px -12px rgba(16, 24, 40, .18);
	--hdlr-ease: cubic-bezier(.2, .7, .2, 1);

	color: var(--hdlr-text);
	font-size: 15px;
	line-height: 1.55;
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
}
.hdlr *, .hdlr *::before, .hdlr *::after { box-sizing: border-box; }
.hdlr [hidden], .hdlr[hidden] { display: none !important; }
.hdlr-sr {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.hdlr .hdlr-icon { width: 1.1em; height: 1.1em; flex: none; }

/* ------------------------------------------------------------------ Estrellas */
.hdlr-stars {
	--s: 18px;
	position: relative; display: inline-flex; vertical-align: middle; line-height: 0;
}
.hdlr-stars--sm { --s: 15px; }
.hdlr-stars--lg { --s: 22px; }
.hdlr-stars__base, .hdlr-stars__fill { display: inline-flex; gap: 2px; white-space: nowrap; }
.hdlr-stars__fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; }
.hdlr-stars svg { width: var(--s); height: var(--s); flex: none; }
.hdlr-stars__base svg { fill: var(--hdlr-star-empty); }
.hdlr-stars__fill svg { fill: var(--hdlr-star); }

/* ------------------------------------------------------------------ Botones
   Especificidad doble para no heredar los estilos de botón de Hello Elementor
   ni del Kit global de Elementor. */
.hdlr .hdlr-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	margin: 0; padding: .78em 1.35em; min-height: 44px;
	font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; letter-spacing: 0;
	text-transform: none; text-decoration: none; white-space: nowrap;
	color: var(--hdlr-accent-text); background: var(--hdlr-accent);
	border: 1px solid var(--hdlr-accent); border-radius: 999px;
	box-shadow: none; cursor: pointer;
	transition: transform .15s var(--hdlr-ease), box-shadow .2s var(--hdlr-ease), background-color .2s, color .2s, opacity .2s;
}
.hdlr .hdlr-btn:hover, .hdlr .hdlr-btn:focus {
	color: var(--hdlr-accent-text); background: var(--hdlr-accent); border-color: var(--hdlr-accent);
	text-decoration: none; transform: translateY(-1px);
	box-shadow: 0 8px 20px -8px var(--hdlr-accent);
}
.hdlr .hdlr-btn:active { transform: translateY(0); }
.hdlr .hdlr-btn:focus-visible, .hdlr-modal .hdlr-btn:focus-visible { outline: 2px solid var(--hdlr-accent); outline-offset: 3px; }
.hdlr .hdlr-btn--outline, .hdlr .hdlr-btn--outline:focus {
	color: var(--hdlr-text); background: var(--hdlr-card-bg); border-color: var(--hdlr-border); box-shadow: none;
}
.hdlr .hdlr-btn--outline:hover {
	color: var(--hdlr-text); background: var(--hdlr-surface); border-color: color-mix(in srgb, var(--hdlr-text) 25%, var(--hdlr-border));
	box-shadow: none;
}
.hdlr .hdlr-btn--sm { min-height: 34px; padding: .45em .95em; font-size: 13px; }
.hdlr .hdlr-btn--lg { min-height: 52px; font-size: 16px; }
.hdlr .hdlr-btn--block { display: flex; width: 100%; }
.hdlr .hdlr-btn[disabled] { opacity: .6; cursor: default; transform: none; box-shadow: none; }

.hdlr .hdlr-link {
	display: inline-flex; margin: 6px 0 0; padding: 0; min-height: 0;
	font: inherit; font-size: 14px; font-weight: 600; color: var(--hdlr-text);
	background: none; border: 0; border-radius: 0; box-shadow: none;
	text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.hdlr .hdlr-link:hover, .hdlr .hdlr-link:focus { color: var(--hdlr-text); background: none; text-decoration-thickness: 2px; }

/* ------------------------------------------------------------------ Layout del bloque completo */
.hdlr-reviews { display: grid; gap: 32px; align-items: start; }
.hdlr-layout--sidebar { grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); }
.hdlr-layout--stacked { grid-template-columns: minmax(0, 1fr); }
.hdlr-layout--stacked .hdlr-reviews__aside {
	display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: stretch;
}
.hdlr-layout--stacked .hdlr-reviews__aside > :only-child { grid-column: 1 / -1; }
.hdlr-reviews__aside { display: grid; gap: 16px; }
.hdlr-layout--sidebar .hdlr-reviews__aside { position: sticky; top: var(--hdlr-sticky-top, 110px); }
.hdlr-reviews__main { min-width: 0; scroll-margin-top: var(--hdlr-sticky-top, 110px); }

@media (max-width: 900px) {
	.hdlr-layout--sidebar { grid-template-columns: minmax(0, 1fr); }
	.hdlr-layout--sidebar .hdlr-reviews__aside { position: static; }
	.hdlr-layout--stacked .hdlr-reviews__aside { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------------------ Resumen */
.hdlr-summary {
	padding: 24px; background: var(--hdlr-surface);
	border: 1px solid var(--hdlr-border); border-radius: var(--hdlr-radius);
}
.hdlr-summary__head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.hdlr-summary__score {
	font-size: 52px; font-weight: 700; line-height: 1; letter-spacing: -.03em;
	font-variant-numeric: tabular-nums; color: var(--hdlr-text);
}
.hdlr-summary__meta { display: grid; gap: 6px; }
.hdlr-summary__count { font-size: 14px; color: var(--hdlr-muted); }

.hdlr .hdlr-histogram { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.hdlr .hdlr-histogram li { margin: 0; padding: 0; list-style: none; }
.hdlr .hdlr-histogram__row {
	display: grid; grid-template-columns: 78px 1fr 40px; align-items: center; gap: 12px;
	width: 100%; margin: 0; padding: 6px 8px; min-height: 0;
	font: inherit; font-size: 14px; font-weight: 400; line-height: 1.2; text-align: left; text-transform: none;
	color: var(--hdlr-text); background: transparent; border: 0; border-radius: 8px; box-shadow: none;
}
.hdlr button.hdlr-histogram__row { cursor: pointer; transition: background-color .15s; }
.hdlr button.hdlr-histogram__row:hover, .hdlr button.hdlr-histogram__row:focus {
	color: var(--hdlr-text); background: color-mix(in srgb, var(--hdlr-text) 6%, transparent);
}
.hdlr button.hdlr-histogram__row:hover .hdlr-histogram__label { text-decoration: underline; text-underline-offset: 3px; }
.hdlr button.hdlr-histogram__row.is-active { background: color-mix(in srgb, var(--hdlr-accent) 12%, transparent); }
.hdlr button.hdlr-histogram__row:focus-visible { outline: 2px solid var(--hdlr-accent); outline-offset: 1px; }
.hdlr-histogram__label { white-space: nowrap; }
.hdlr-histogram__bar {
	position: relative; height: 10px; overflow: hidden; border-radius: 999px;
	background: color-mix(in srgb, var(--hdlr-text) 9%, transparent);
}
.hdlr-histogram__bar > span {
	position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--hdlr-star);
	transition: width .6s var(--hdlr-ease);
}
.hdlr-histogram__pct { text-align: right; color: var(--hdlr-muted); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ Invitación */
.hdlr-cta {
	padding: 22px 24px; background: var(--hdlr-card-bg);
	border: 1px solid var(--hdlr-border); border-radius: var(--hdlr-radius);
}
.hdlr-cta__title { font-size: 17px; font-weight: 700; line-height: 1.3; margin: 0 0 4px; color: var(--hdlr-text); }
.hdlr-cta__text { margin: 0 0 16px; font-size: 14px; color: var(--hdlr-muted); }

/* ------------------------------------------------------------------ Barra de herramientas */
.hdlr-toolbar {
	display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
	margin: 0 0 16px;
}
.hdlr-toolbar__info { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.hdlr-toolbar__count { font-weight: 700; font-size: 16px; }
.hdlr .hdlr-chip {
	display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 5px 8px 5px 12px; min-height: 0;
	font: inherit; font-size: 13px; font-weight: 600; line-height: 1.2; text-transform: none;
	color: var(--hdlr-text); background: color-mix(in srgb, var(--hdlr-accent) 12%, var(--hdlr-card-bg));
	border: 1px solid color-mix(in srgb, var(--hdlr-accent) 30%, transparent); border-radius: 999px;
	box-shadow: none; cursor: pointer;
}
.hdlr .hdlr-chip:hover, .hdlr .hdlr-chip:focus { color: var(--hdlr-text); background: color-mix(in srgb, var(--hdlr-accent) 20%, var(--hdlr-card-bg)); }
.hdlr .hdlr-chip[hidden] { display: none; }
.hdlr-sort { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: var(--hdlr-muted); }
.hdlr .hdlr-sort select {
	appearance: none; -webkit-appearance: none;
	margin: 0; padding: 8px 34px 8px 14px; min-height: 38px; width: auto;
	font: inherit; font-size: 14px; font-weight: 600; color: var(--hdlr-text);
	background: var(--hdlr-card-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 14px;
	border: 1px solid var(--hdlr-border); border-radius: 999px; box-shadow: none; cursor: pointer;
}

/* ------------------------------------------------------------------ Listado y tarjetas */
.hdlr-list { display: grid; gap: 16px; transition: opacity .2s; }
.hdlr-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hdlr-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1024px) { .hdlr-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .hdlr-cols-2, .hdlr-cols-3 { grid-template-columns: minmax(0, 1fr); } }
.hdlr-reviews.is-loading .hdlr-list { opacity: .45; pointer-events: none; }

.hdlr-card {
	display: flex; flex-direction: column;
	padding: 22px 24px; background: var(--hdlr-card-bg);
	border: 1px solid var(--hdlr-border); border-radius: var(--hdlr-radius);
	box-shadow: var(--hdlr-shadow);
	transition: box-shadow .25s var(--hdlr-ease), transform .25s var(--hdlr-ease);
	animation: hdlr-in .45s var(--hdlr-ease) both;
}
.hdlr-card:hover { box-shadow: var(--hdlr-shadow-hover); }
@keyframes hdlr-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.hdlr-card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.hdlr-avatar {
	display: inline-grid; place-items: center; flex: none;
	width: 42px; height: 42px; border-radius: 50%;
	font-size: 15px; font-weight: 700; letter-spacing: .02em; line-height: 1;
	color: hsl(var(--hdlr-hue, 210) 55% 30%);
	background: hsl(var(--hdlr-hue, 210) 70% 92%);
}
.hdlr-card__who { display: grid; min-width: 0; }
.hdlr-card__name { font-weight: 700; font-size: 15px; line-height: 1.3; color: var(--hdlr-text); }
.hdlr-card__company { font-size: 13px; color: var(--hdlr-muted); line-height: 1.35; }

.hdlr-card__rating { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.hdlr-card__title { font-weight: 700; font-size: 16px; line-height: 1.35; color: var(--hdlr-text); }
.hdlr-card__sub {
	display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px;
	margin: 6px 0 12px; font-size: 13px; color: var(--hdlr-muted);
}
.hdlr-verified { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--hdlr-success); }
.hdlr-verified .hdlr-icon { width: 14px; height: 14px; stroke-width: 3; }

.hdlr-card__text { font-size: 15px; line-height: 1.65; color: var(--hdlr-text); overflow-wrap: anywhere; }
.hdlr-card__text.is-clamped {
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--hdlr-clamp, 6); line-clamp: var(--hdlr-clamp, 6);
	overflow: hidden;
}
.hdlr [data-hdlr-readmore] { align-self: flex-start; }

.hdlr-reply {
	margin-top: 16px; padding: 14px 16px;
	background: var(--hdlr-surface); border-left: 3px solid var(--hdlr-accent);
	border-radius: 0 var(--hdlr-radius-sm) var(--hdlr-radius-sm) 0;
}
.hdlr-reply__head { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.hdlr-reply__text { font-size: 14px; color: var(--hdlr-muted); line-height: 1.6; }

.hdlr-card__foot {
	display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px 12px;
	margin-top: auto; padding-top: 16px;
}
.hdlr-card__helpful { margin-right: auto; font-size: 13px; color: var(--hdlr-muted); }
.hdlr .hdlr-btn.is-voted, .hdlr .hdlr-btn.is-voted:hover {
	color: var(--hdlr-success); border-color: color-mix(in srgb, var(--hdlr-success) 40%, transparent);
	background: color-mix(in srgb, var(--hdlr-success) 8%, var(--hdlr-card-bg)); transform: none;
}

.hdlr-more { display: flex; justify-content: center; margin-top: 24px; }
.hdlr .hdlr-more [hidden] { display: none; }

.hdlr-empty {
	display: grid; justify-items: center; gap: 6px; padding: 40px 24px; text-align: center;
	color: var(--hdlr-muted); background: var(--hdlr-surface);
	border: 1px dashed var(--hdlr-border); border-radius: var(--hdlr-radius);
}
.hdlr-empty > .hdlr-icon { width: 32px; height: 32px; color: var(--hdlr-star); }
.hdlr-empty__title { font-size: 17px; font-weight: 700; color: var(--hdlr-text); }
.hdlr-empty p { margin: 0 0 8px; }

/* ------------------------------------------------------------------ Botón suelto / bloque resumen */
.hdlr-form-button { display: grid; justify-content: start; }
.hdlr-align--center { justify-content: center; }
.hdlr-align--right { justify-content: end; }
.hdlr-align--stretch { justify-content: stretch; }
.hdlr-summary-block { display: grid; gap: 14px; }

/* ------------------------------------------------------------------ Insignia */
.hdlr.hdlr-badge {
	display: inline-flex; align-items: center; gap: 8px; font-size: 14px; line-height: 1.2;
	color: var(--hdlr-text); text-decoration: none;
}
.hdlr.hdlr-badge strong { font-weight: 700; }
.hdlr-badge__count { color: var(--hdlr-muted); }
.hdlr.hdlr-badge--pill {
	padding: 7px 14px; background: var(--hdlr-card-bg);
	border: 1px solid var(--hdlr-border); border-radius: 999px; box-shadow: var(--hdlr-shadow);
}
a.hdlr.hdlr-badge:hover { color: var(--hdlr-text); text-decoration: none; }
a.hdlr.hdlr-badge:hover .hdlr-badge__count { text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------------ Carrusel */
.hdlr-carousel { --hdlr-per-view: 3; --hdlr-gap: 20px; position: relative; }
@media (max-width: 1024px) { .hdlr-carousel { --hdlr-per-view: 2; } }
@media (max-width: 680px) { .hdlr-carousel { --hdlr-per-view: 1; } }
.hdlr-carousel__track {
	display: flex; gap: var(--hdlr-gap);
	overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
	padding: 6px 0 18px; margin: -6px 0 0;
	scrollbar-width: none;
}
.hdlr-carousel__track::-webkit-scrollbar { display: none; }
.hdlr-carousel__track:focus-visible { outline: 2px solid var(--hdlr-accent); outline-offset: 2px; border-radius: var(--hdlr-radius); }
.hdlr-carousel__slide {
	flex: 0 0 calc((100% - (var(--hdlr-per-view) - 1) * var(--hdlr-gap)) / var(--hdlr-per-view));
	scroll-snap-align: start; display: flex;
}
.hdlr .hdlr-quote {
	position: relative; display: flex; flex-direction: column; gap: 10px; width: 100%;
	margin: 0; padding: 26px 26px 22px;
	background: var(--hdlr-card-bg); border: 1px solid var(--hdlr-border);
	border-radius: var(--hdlr-radius); box-shadow: var(--hdlr-shadow);
}
.hdlr-quote__mark {
	position: absolute; top: 4px; right: 18px;
	font-family: Georgia, "Times New Roman", serif; font-size: 72px; line-height: 1;
	color: color-mix(in srgb, var(--hdlr-star) 35%, transparent); pointer-events: none;
}
.hdlr-quote__title { font-weight: 700; font-size: 16px; line-height: 1.35; }
.hdlr .hdlr-quote__text {
	margin: 0; padding: 0; border: 0; background: none; quotes: none;
	font-size: 15px; font-style: normal; line-height: 1.65; color: var(--hdlr-text);
}
.hdlr .hdlr-quote__text::before, .hdlr .hdlr-quote__text::after { content: none; }
.hdlr .hdlr-quote__who { font-style: normal; display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 8px; }
.hdlr-quote__who > span:last-child { display: grid; }

.hdlr-carousel__nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 6px; }
.hdlr-carousel__nav[hidden] { display: none; }
.hdlr .hdlr-carousel__arrow {
	display: grid; place-items: center; width: 40px; height: 40px; min-height: 0; margin: 0; padding: 0;
	color: var(--hdlr-text); background: var(--hdlr-card-bg);
	border: 1px solid var(--hdlr-border); border-radius: 50%; box-shadow: var(--hdlr-shadow); cursor: pointer;
	transition: background-color .2s, transform .15s;
}
.hdlr .hdlr-carousel__arrow:hover, .hdlr .hdlr-carousel__arrow:focus { color: var(--hdlr-text); background: var(--hdlr-surface); border-color: var(--hdlr-border); }
.hdlr .hdlr-carousel__arrow:active { transform: scale(.94); }
.hdlr .hdlr-carousel__arrow .hdlr-icon { width: 18px; height: 18px; }
.hdlr-carousel__dots { display: flex; align-items: center; gap: 6px; }
.hdlr .hdlr-carousel__dots button {
	width: 8px; height: 8px; min-height: 0; margin: 0; padding: 0;
	background: color-mix(in srgb, var(--hdlr-text) 18%, transparent); border: 0; border-radius: 999px;
	box-shadow: none; cursor: pointer; transition: width .3s var(--hdlr-ease), background-color .3s;
}
.hdlr .hdlr-carousel__dots button:hover, .hdlr .hdlr-carousel__dots button:focus { background: color-mix(in srgb, var(--hdlr-text) 35%, transparent); }
.hdlr .hdlr-carousel__dots button.is-active { width: 22px; background: var(--hdlr-accent); }

/* =====================================================================
   Ventana emergente + formulario
   (la ventana se mueve a <body> para quedar por encima del sticky header)
   ===================================================================== */
html.hdlr-lock, html.hdlr-lock body { overflow: hidden; }

.hdlr-modal {
	position: fixed; inset: 0; z-index: 2147483000;
	display: grid; place-items: center; padding: 16px;
	overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.hdlr-modal[hidden] { display: none; }
.hdlr-modal__backdrop {
	position: fixed; inset: 0; background: rgba(10, 12, 18, .55);
	-webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
	opacity: 0; transition: opacity .25s;
}
.hdlr-modal__dialog {
	position: relative; width: 100%; max-width: 560px; margin: auto;
	padding: 32px 32px 26px; background: var(--hdlr-card-bg);
	border-radius: calc(var(--hdlr-radius) + 4px);
	box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .35);
	opacity: 0; transform: translateY(16px) scale(.98);
	transition: opacity .25s var(--hdlr-ease), transform .3s var(--hdlr-ease);
}
.hdlr-modal__dialog:focus { outline: none; }
.hdlr-modal.is-open .hdlr-modal__backdrop { opacity: 1; }
.hdlr-modal.is-open .hdlr-modal__dialog { opacity: 1; transform: none; }
.hdlr-modal .hdlr-modal__close {
	position: absolute; top: 14px; right: 14px;
	display: grid; place-items: center; width: 38px; height: 38px; min-height: 0; margin: 0; padding: 0;
	color: var(--hdlr-muted); background: transparent; border: 0; border-radius: 50%; box-shadow: none; cursor: pointer;
}
.hdlr-modal .hdlr-modal__close:hover, .hdlr-modal .hdlr-modal__close:focus { color: var(--hdlr-text); background: var(--hdlr-surface); }
.hdlr-modal .hdlr-modal__close .hdlr-icon { width: 20px; height: 20px; }
@media (max-width: 600px) {
	.hdlr-modal { padding: 0; place-items: end stretch; }
	.hdlr-modal__dialog {
		max-width: none; margin: 0; padding: 26px 20px 20px;
		border-radius: 22px 22px 0 0; max-height: 94vh; overflow-y: auto;
		transform: translateY(40px);
	}
}

.hdlr-panel {
	padding: 30px; background: var(--hdlr-card-bg);
	border: 1px solid var(--hdlr-border); border-radius: var(--hdlr-radius); box-shadow: var(--hdlr-shadow);
}
@media (max-width: 600px) { .hdlr-panel { padding: 22px 18px; } }

.hdlr-form { display: grid; gap: 16px; margin: 0; }
.hdlr-form__head { padding-right: 36px; }
.hdlr-inline-form .hdlr-form__head { padding-right: 0; }
.hdlr-form__title { font-size: 22px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; color: var(--hdlr-text); }
.hdlr-form__intro { margin: 6px 0 0; font-size: 14px; color: var(--hdlr-muted); }

.hdlr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 520px) { .hdlr-grid { grid-template-columns: minmax(0, 1fr); } }

.hdlr-field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.hdlr-label { display: block; margin: 0; font-size: 14px; font-weight: 600; color: var(--hdlr-text); }
.hdlr-label em { font-style: normal; color: var(--hdlr-danger); }
.hdlr-label small { font-weight: 400; color: var(--hdlr-muted); font-size: 13px; }
.hdlr-hint { font-size: 12px; color: var(--hdlr-muted); }

/* Campos: !important solo en lo que el Kit de Elementor suele forzar en todos los inputs. */
.hdlr-form .hdlr-input {
	display: block; width: 100% !important; margin: 0 !important;
	padding: 12px 14px !important; min-height: 46px;
	font-family: inherit !important; font-size: 15px !important; line-height: 1.4 !important;
	color: var(--hdlr-text) !important; background: var(--hdlr-card-bg) !important;
	border: 1px solid var(--hdlr-border) !important; border-radius: var(--hdlr-radius-sm) !important;
	box-shadow: none !important; outline: none;
	transition: border-color .15s, box-shadow .15s;
}
.hdlr-form .hdlr-input::placeholder { color: color-mix(in srgb, var(--hdlr-muted) 75%, transparent); opacity: 1; }
.hdlr-form .hdlr-input:hover { border-color: color-mix(in srgb, var(--hdlr-text) 25%, var(--hdlr-border)) !important; }
.hdlr-form .hdlr-input:focus {
	border-color: var(--hdlr-accent) !important;
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--hdlr-accent) 16%, transparent) !important;
}
.hdlr-form .hdlr-textarea { min-height: 128px; resize: vertical; }
.hdlr-field.is-invalid .hdlr-input { border-color: var(--hdlr-danger) !important; }
.hdlr-field.is-invalid .hdlr-input:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--hdlr-danger) 15%, transparent) !important; }
.hdlr-field__foot { display: flex; justify-content: space-between; gap: 12px; }
.hdlr-counter { margin-left: auto; font-size: 12px; color: var(--hdlr-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hdlr-counter.is-low { color: var(--hdlr-danger); }
.hdlr-error { font-size: 13px; font-weight: 500; color: var(--hdlr-danger); }
.hdlr-error:empty { display: none; }

/* Selector de estrellas */
.hdlr-rate-wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; }
.hdlr-rate { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.hdlr-rate input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.hdlr-form .hdlr-rate label {
	display: inline-grid; place-items: center; margin: 0; padding: 3px; cursor: pointer; line-height: 0;
	border-radius: 8px; transition: transform .15s var(--hdlr-ease);
}
.hdlr-rate svg { width: 36px; height: 36px; fill: var(--hdlr-star-empty); transition: fill .15s, transform .2s var(--hdlr-ease); }
.hdlr-rate label:hover svg, .hdlr-rate label:hover ~ label svg,
.hdlr-rate input:checked ~ label svg { fill: var(--hdlr-star); }
.hdlr-rate:hover input:checked ~ label svg { fill: var(--hdlr-star-empty); }
.hdlr-rate:hover input + label:hover svg, .hdlr-rate:hover input + label:hover ~ label svg { fill: var(--hdlr-star); }
.hdlr-rate label:hover svg { transform: scale(1.12); }
.hdlr-rate input:checked + label svg { animation: hdlr-pop .35s var(--hdlr-ease); }
.hdlr-rate input:focus-visible + label { outline: 2px solid var(--hdlr-accent); outline-offset: 1px; }
@keyframes hdlr-pop { 50% { transform: scale(1.25); } }
.hdlr-rate__text { font-size: 14px; font-weight: 600; color: var(--hdlr-muted); }
.hdlr-rate__text.is-set { color: var(--hdlr-text); }
@media (max-width: 400px) { .hdlr-rate svg { width: 32px; height: 32px; } }

/* Casilla de autorización */
.hdlr-form .hdlr-check {
	display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start;
	margin: 0; font-size: 14px; font-weight: 400; color: var(--hdlr-muted); cursor: pointer;
}
.hdlr-check__text { line-height: 1.45; }
.hdlr-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hdlr-check__box {
	display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px;
	color: transparent; background: var(--hdlr-card-bg);
	border: 1.5px solid color-mix(in srgb, var(--hdlr-text) 25%, var(--hdlr-border)); border-radius: 6px;
	transition: background-color .15s, border-color .15s;
}
.hdlr-check__box .hdlr-icon { width: 14px; height: 14px; stroke-width: 3.5; }
.hdlr-check input:checked + .hdlr-check__box { color: var(--hdlr-accent-text); background: var(--hdlr-accent); border-color: var(--hdlr-accent); }
.hdlr-check input:focus-visible + .hdlr-check__box { outline: 2px solid var(--hdlr-accent); outline-offset: 2px; }
.hdlr-field.is-invalid .hdlr-check__box { border-color: var(--hdlr-danger); }

/* Honeypot: fuera de pantalla, no display:none (algunos bots lo detectan). */
.hdlr-hp { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

.hdlr-captcha { min-height: 0; }
.hdlr-captcha:empty { display: none; }

.hdlr-alert {
	padding: 12px 14px; font-size: 14px; font-weight: 500;
	color: var(--hdlr-danger); background: color-mix(in srgb, var(--hdlr-danger) 8%, var(--hdlr-card-bg));
	border: 1px solid color-mix(in srgb, var(--hdlr-danger) 25%, transparent); border-radius: var(--hdlr-radius-sm);
}
.hdlr-alert[hidden] { display: none; }

.hdlr-form .hdlr-btn .hdlr-spinner {
	display: none; width: 18px; height: 18px; border-radius: 50%;
	border: 2.5px solid currentColor; border-right-color: transparent; animation: hdlr-spin .7s linear infinite;
}
.hdlr-form.is-busy .hdlr-btn .hdlr-spinner { display: inline-block; }
@keyframes hdlr-spin { to { transform: rotate(360deg); } }

.hdlr-form__note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: -4px 0 0; font-size: 12.5px; color: var(--hdlr-muted); }
.hdlr-form__note .hdlr-icon { width: 15px; height: 15px; color: var(--hdlr-success); }

/* Éxito */
.hdlr-success { display: grid; justify-items: center; gap: 8px; padding: 20px 8px 6px; text-align: center; outline: none; }
.hdlr-success[hidden] { display: none; }
.hdlr-success__icon {
	display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 6px; border-radius: 50%;
	color: #fff; background: var(--hdlr-success);
	box-shadow: 0 0 0 8px color-mix(in srgb, var(--hdlr-success) 15%, transparent);
	animation: hdlr-pop .5s var(--hdlr-ease);
}
.hdlr-success__icon .hdlr-icon { width: 32px; height: 32px; stroke-width: 3; }
.hdlr-success__title { font-size: 22px; font-weight: 700; color: var(--hdlr-text); }
.hdlr-success__text { margin: 0 0 12px; max-width: 380px; color: var(--hdlr-muted); }
.hdlr-inline-form .hdlr-success [data-hdlr-close] { display: none; }

@media (prefers-reduced-motion: reduce) {
	.hdlr *, .hdlr-modal * { animation: none !important; transition: none !important; }
	.hdlr-carousel__track { scroll-behavior: auto; }
}
