/* About imágenes v4.0.0 */
.ab-wrap {
	--ab-h: 430px;
	--ab-c1: 55%;
	--ab-lh: 86%;
	--ab-gap: 12px;
	--ab-rad: 14px;
	--ab-zoom: 1.06;
	--ab-spin: 14s;
	--ab-rd: 1000ms;

	--ab-bs: 150px;
	--ab-bx: 56%;
	--ab-by: 50%;
	--ab-bg: #025E90;
	--ab-bg-h: #EA7412;
	--ab-bd: #fff;
	--ab-bw: 4px;
	--ab-txt: #fff;
	--ab-core: 34%;
	--ab-core-bg: #fff;
	--ab-core-ic: #025E90;
	--ab-core-ic-h: #EA7412;
	--ab-core-isz: 18px;

	position: relative;
	display: grid;
	grid-template-columns: var(--ab-c1) minmax(0, 1fr);
	gap: var(--ab-gap);
	width: 100%;
	height: var(--ab-h);
}
@media (max-width: 1024px) { .ab-wrap { --ab-h: 400px; } }
@media (max-width: 767px)  { .ab-wrap { --ab-h: 330px; --ab-bs: 110px; } }

.ab-col { min-width: 0; min-height: 0; }
.ab-col-l { align-self: end; height: var(--ab-lh); }
.ab-col-r { display: grid; grid-template-rows: 1fr 1fr; gap: var(--ab-gap); }

/* ---------- Imagen ---------- */
.ab-wrap .ab-img {
	position: relative;
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	border-radius: var(--ab-rad);
	isolation: isolate;
	background: #dfe9f0;
}
/* La imagen siempre rellena el recuadro al 100% (ancho y alto) */
.ab-wrap .ab-img img {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	right: auto !important;
	bottom: auto !important;
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	min-width: 100% !important;
	min-height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	margin: 0 !important;
	border-radius: 0 !important;
	object-fit: cover;
	object-position: center;
	transition: transform 1.2s cubic-bezier(.2, .8, .2, 1);
	-webkit-user-drag: none;
}
.ab-wrap .ab-img:hover img { transform: scale(var(--ab-zoom)); }
.ab-ph {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 80% 15%, rgba(234, 116, 18, .35), transparent 45%),
		linear-gradient(135deg, #025E90, #033a59);
}

/* Cristal: borde de luz + brillo */
.ab-wrap .ab-img::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	border-radius: inherit;
	pointer-events: none;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28), inset 0 1px 0 rgba(255, 255, 255, .55);
	background: linear-gradient(180deg, rgba(255, 255, 255, .12), transparent 38%);
}
.ab-wrap .ab-img::after {
	content: "";
	position: absolute;
	inset: -10% 0;
	z-index: 3;
	pointer-events: none;
	opacity: 0;
	transform: translateX(-140%) skewX(-18deg);
	background: linear-gradient(105deg,
		transparent 30%,
		rgba(255, 255, 255, .22) 42%,
		rgba(255, 255, 255, .7) 50%,
		rgba(255, 255, 255, .22) 58%,
		transparent 70%);
}
.ab-wrap.ab-shine .ab-img:hover::after { animation: ab-sheen 1.1s cubic-bezier(.4, 0, .2, 1) 1; }
.ab-wrap.ab-shine-auto .ab-img::after { animation: ab-sheen-auto 5.5s ease-in-out infinite; }
.ab-wrap.ab-shine-auto .ab-i2::after { animation-delay: .5s; }
.ab-wrap.ab-shine-auto .ab-i3::after { animation-delay: 1s; }
@keyframes ab-sheen {
	0%   { opacity: 1; transform: translateX(-140%) skewX(-18deg); }
	100% { opacity: 1; transform: translateX(140%) skewX(-18deg); }
}
@keyframes ab-sheen-auto {
	0%   { opacity: 1; transform: translateX(-140%) skewX(-18deg); }
	22%  { opacity: 1; transform: translateX(140%) skewX(-18deg); }
	100% { opacity: 1; transform: translateX(140%) skewX(-18deg); }
}

/* ---------- Aparición ---------- */
.ab-wrap[data-reveal="wipe"] .ab-img,
.ab-wrap[data-reveal="up"] .ab-img { transition: clip-path var(--ab-rd) cubic-bezier(.77, 0, .18, 1); clip-path: inset(0 0 0 0); }
.ab-wrap[data-reveal="zoom"] .ab-img { transition: opacity var(--ab-rd) ease, transform var(--ab-rd) cubic-bezier(.2, .8, .2, 1); }
.ab-wrap[data-reveal="wipe"]:not(.is-in) .ab-img { clip-path: inset(0 100% 0 0); }
.ab-wrap[data-reveal="up"]:not(.is-in) .ab-img { clip-path: inset(100% 0 0 0); }
.ab-wrap[data-reveal="zoom"]:not(.is-in) .ab-img { opacity: 0; transform: scale(.9); }
.ab-wrap[data-reveal="wipe"]:not(.is-in) .ab-img img,
.ab-wrap[data-reveal="up"]:not(.is-in) .ab-img img { transform: scale(1.3); }
.ab-wrap[data-reveal]:not([data-reveal="none"]) .ab-i2 { transition-delay: .15s; }
.ab-wrap[data-reveal]:not([data-reveal="none"]) .ab-i3 { transition-delay: .3s; }

/* ---------- Círculo ---------- */
.ab-badge-pos {
	position: absolute;
	z-index: 6;
	left: var(--ab-bx);
	top: var(--ab-by);
	width: var(--ab-bs);
	height: var(--ab-bs);
	transform: translate(-50%, -50%);
}
.ab-badge {
	position: relative;
	display: block;
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: var(--ab-bg);
	border: var(--ab-bw) solid var(--ab-bd);
	box-shadow: 0 16px 34px -14px rgba(2, 40, 66, .55);
	color: var(--ab-txt);
	text-decoration: none;
	transition: background .4s ease, transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .4s ease;
}
.ab-wrap .ab-badge:hover { background: var(--ab-bg-h); box-shadow: 0 20px 40px -14px rgba(234, 116, 18, .6); }
.ab-wrap[data-reveal]:not([data-reveal="none"]) .ab-badge { transition: background .4s ease, transform .9s cubic-bezier(.2, .9, .3, 1.2) .5s, box-shadow .4s ease; }
.ab-wrap[data-reveal]:not([data-reveal="none"]):not(.is-in) .ab-badge { transform: scale(0) rotate(-120deg); }

.ab-ring {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
	animation: ab-spin var(--ab-spin) linear infinite;
}
.ab-ring text { fill: var(--ab-txt); white-space: pre; font-size: 22px; font-weight: 700; }
.ab-rev .ab-ring { animation-direction: reverse; }
.ab-nospin .ab-ring { animation: none; }
.ab-pause .ab-badge:hover .ab-ring { animation-play-state: paused; }
@keyframes ab-spin { to { transform: rotate(360deg); } }

.ab-core {
	position: absolute;
	top: 50%;
	left: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--ab-core);
	aspect-ratio: 1;
	border-radius: 50%;
	transform: translate(-50%, -50%);
	background: var(--ab-core-bg);
	color: var(--ab-core-ic);
	fill: var(--ab-core-ic);
	font-size: var(--ab-core-isz);
	line-height: 1;
	box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .35);
	transition: color .4s ease, fill .4s ease, transform .4s ease;
}
.ab-core i, .ab-core svg { color: inherit; fill: currentColor; font-size: inherit; width: 1em; height: 1em; }
.ab-wrap .ab-badge:hover .ab-core { color: var(--ab-core-ic-h); fill: var(--ab-core-ic-h); transform: translate(-50%, -50%) scale(1.08); }

@media (prefers-reduced-motion: reduce) {
	.ab-ring { animation: none; }
	.ab-wrap .ab-img::after { animation: none !important; }
	.ab-wrap * { transition-duration: .01ms !important; transition-delay: 0s !important; }
}
