/**
 * Humanizar — Frontend Styles
 *
 * Styles for the [humanizar-index] shortcode.
 * Logo height is fixed at 80px; layout is horizontal with gap.
 */

/* ─── Container ─────────────────────────────────────────────────── */
.humanizar-index {
	background: white;
	width: 95%;
	max-width: 800px;
	margin: 20px auto;
	border-radius: 8px;
	border: 1px solid lightgray;
	padding: 10px;
}

/* ─── Title ─────────────────────────────────────────────────────── */
.humanizar-index__title {
	font-size: 0.9em;
	font-weight: 600;
	color: #666;
	margin: 0 0 0.75em;
}

/* ─── List layout (≤ 2 items) ───────────────────────────────────── */
.humanizar-index__list {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	align-items: center;
}

/* ─── Slider layout ─────────────────────────────────────────────── */
.humanizar-index__slider {
	position: relative;
	padding: 0 35px; /* Safe zone for arrows */
}

.humanizar-index__slider .swiper-slide {
	width: auto;
	flex-shrink: 0;
	opacity: 0.2;
	transition: opacity 0.3s ease;
}

.humanizar-index__slider .swiper-slide-visible {
	opacity: 1;
}

/* ─── Navigation Arrows ─────────────────────────────────────────── */
.humanizar-index__slider .swiper-button-next,
.humanizar-index__slider .swiper-button-prev {
	color: var(--rh-red);
	width: 25px;
	height: 25px;
}

.humanizar-index__slider .swiper-button-next::after,
.humanizar-index__slider .swiper-button-prev::after {
	font-size: 16px;
	font-weight: 700;
}

.humanizar-index__slider .swiper-button-prev {
	left: 0;
}

.humanizar-index__slider .swiper-button-next {
	right: 0;
}

.humanizar-index__slider .swiper-button-disabled {
	opacity: 0;
	pointer-events: none;
}

/* ─── Links & Logos ─────────────────────────────────────────────── */
.humanizar-index__link {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.humanizar-index__link:hover {
	opacity: 0.75;
	transform: scale(1.03);
}

.humanizar-index__logo {
	height: 60px;
	width: auto;
	object-fit: contain;
}

/* ─── Fallback (text when no logo) ──────────────────────────────── */
.humanizar-index__fallback {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 60px;
	padding: 0 1.5em;
	background: #f0f0f1;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 0.95em;
	font-weight: 600;
	color: #333;
}


@media (max-width: 480px) {}

@media (max-width: 768px) {
	.humanizar-index {
		width: 90%;
	}
}


/* ═══════════════════════════════════════════════════════════════════
   CITAS — Trigger Button & Modal
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Trigger button ────────────────────────────────────────────── */
/*
.humanizar-citas__trigger {
	background: var(--rh-red, #b32d2e);
	color: #fff;
	border: none;
	border-radius: 4px;
	padding: 10px 18px;
	font-size: 0.95em;
	font-weight: 600;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: background 0.2s ease, transform 0.1s ease;
}

.humanizar-citas__trigger:hover {
	filter: brightness(0.85);
}

.humanizar-citas__trigger:active {
	transform: scale(0.98);
}

.humanizar-citas__trigger .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
}
*/

/* ─── Modal (overlay + box) ─────────────────────────────────────── */
.humanizar-citas__modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease;
}

.humanizar-citas__modal.is-open {
	opacity: 1;
	pointer-events: auto;
}

.humanizar-citas__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.4);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

/* ─── Content box ───────────────────────────────────────────────── */
.humanizar-citas__box {
	position: relative;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
	width: 90%;
	max-width: 540px;
	padding: 28px;
	box-sizing: border-box;
	z-index: 2;
	transform: scale(0.92);
	transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.humanizar-citas__modal.is-open .humanizar-citas__box {
	transform: scale(1);
}

/* ─── Close button ──────────────────────────────────────────────── */
.humanizar-citas__close {
	position: absolute;
	top: 14px;
	right: 18px;
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	color: #999;
	cursor: pointer;
	transition: color 0.15s ease;
}

.humanizar-citas__close:hover {
	color: #333;
}

/* ─── Heading ───────────────────────────────────────────────────── */
.humanizar-citas__heading {
	margin: 0 0 18px;
	font-size: 1.3em;
	font-weight: 700;
	color: #1d2327;
	border-bottom: 2px solid #f0f0f1;
	padding-bottom: 12px;
}

/* ─── Label & Select ────────────────────────────────────────────── */
.humanizar-citas__label {
	display: block;
	font-weight: 600;
	font-size: 0.9em;
	color: #50575e;
	margin-bottom: 6px;
}

.humanizar-citas__select {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	font-size: 1em;
	color: #2c3338;
	background: #fff;
	outline: none;
	cursor: pointer;
	margin-bottom: 16px;
}

.humanizar-citas__select:focus {
	border-color: var(--rh-red, #b32d2e);
	box-shadow: 0 0 0 1px var(--rh-red, #b32d2e);
}

/* ─── Preview area ──────────────────────────────────────────────── */
.humanizar-citas__preview-wrap {
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	padding: 14px 16px;
	margin-bottom: 18px;
	min-height: 70px;
}

.humanizar-citas__preview {
	font-size: 0.95em;
	line-height: 1.65;
	color: #2c3338;
	word-break: break-word;
}

.humanizar-citas__preview i { font-style: italic; }
.humanizar-citas__preview b { font-weight: bold; }

/* ─── Copy button ───────────────────────────────────────────────── */
/*
.humanizar-citas__copy {
	background: #2271b1;
	color: #fff;
	border: none;
	border-radius: 4px;
	padding: 10px 20px;
	font-size: 0.95em;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	transition: background 0.2s ease;
}

.humanizar-citas__copy:hover {
	background: #135e96;
}

.humanizar-citas__copy.is-copied {
	background: #00a32a !important;
	color: #fff !important;
}

.humanizar-citas__copy .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
}
*/
/* ═══════════════════════════════════════════════════════════════════
   INDEX SLIDER (Estilo y estructura compartida con Colaboradores)
   ═══════════════════════════════════════════════════════════════════ */
.humanizar-index-slider.swiper,
.colaboradores-slider.swiper {
	position: relative;
	width: 100%;
	padding: 10px 40px;
	box-sizing: border-box;
}

.humanizar-index-slider .swiper-wrapper,
.colaboradores-slider .swiper-wrapper {
	align-items: center;
}

.humanizar-index-slider .swiper-slide,
.colaboradores-slider .swiper-slide {
	display: flex;
	justify-content: center;
	align-items: center;
	height: auto;
}

.humanizar-index-item,
.colaborador-item {
	display: block;
	text-decoration: none;
	text-align: center;
	width: 100%;
	color: inherit;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.humanizar-index-item:hover,
.colaborador-item:hover {
	opacity: 0.85;
	transform: scale(1.03);
}

.humanizar-index-item figure,
.colaborador-item figure {
	margin: 0;
	padding: 10px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.humanizar-index-image,
.colaborador-image {
	max-height: 80px;
	max-width: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
	margin: 0 auto 8px;
}

.humanizar-index-item figcaption,
.colaborador-item figcaption {
	font-size: 0.85em;
	font-weight: 600;
	color: #444;
	margin-top: 6px;
	text-align: center;
}

.humanizar-index-fallback {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 60px;
	padding: 0 1em;
	background: #f0f0f1;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 0.9em;
	font-weight: 600;
	color: #333;
	margin-bottom: 6px;
}
