/* AY Motion · v1.0.0 */
:root {
	--aym-ink: #0e0e0e;
	--aym-paper: #ffffff;
	--aym-mist: #ececea;
	--aym-glass: rgba(232, 232, 230, .78);
	--aym-glass-dark: rgba(18, 18, 18, .5);
	--aym-accent: #f5d90a;
	--aym-radius: 28px;
	--aym-font: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--aym-ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Ocultar cabecera / pie del tema ---------- */
body.aym-hide-header .elementor-location-header,
body.aym-hide-header > header.site-header,
body.aym-hide-footer .elementor-location-footer,
body.aym-hide-footer > footer.site-footer { display: none !important; }

body.aym-on { background: var(--aym-paper); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- UI fija ---------- */
.aym-ui { font-family: var(--aym-font); }
.aym-ui .aym-top {
	position: fixed; inset: 0 0 auto 0; z-index: 9990;
	display: flex; align-items: center; justify-content: center;
	height: 112px; padding: 0 32px; pointer-events: none;
}
body.admin-bar .aym-ui .aym-top { top: 32px; }
.aym-ui .aym-top__logo {
	pointer-events: auto; text-decoration: none; color: var(--aym-ink);
	font-weight: 700; font-size: 30px; letter-spacing: -.04em; line-height: 1;
	transition: color .4s var(--aym-ease), opacity .4s;
}
.aym-ui .aym-top__logo img { height: 30px; width: auto; display: block; transition: filter .4s; }
.aym-ui .aym-top .aym-top__cta.aym-pill { position: absolute; right: 32px; top: 50%; transform: translateY(-50%); pointer-events: auto; }
.aym-ui .aym-top .aym-top__cta.aym-pill:hover { transform: translateY(-50%) scale(1.03); }
html.aym-ui-dark .aym-ui .aym-top__logo { color: #fff; }
html.aym-ui-dark .aym-ui .aym-top__logo img { filter: brightness(0) invert(1); }

.aym-ui .aym-pill.aym-pill {
	all: unset; box-sizing: border-box; cursor: pointer;
	display: inline-flex; align-items: center; gap: 14px;
	height: 52px; padding: 0 6px 0 22px; border-radius: 999px;
	font-family: var(--aym-font); font-size: 15px; font-weight: 500; letter-spacing: -.01em;
	color: var(--aym-ink); background: var(--aym-glass);
	-webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
	transition: background .4s var(--aym-ease), color .4s var(--aym-ease), transform .5s var(--aym-ease);
}
.aym-ui .aym-pill__icon {
	position: relative; width: 40px; height: 40px; border-radius: 50%; background: #fff; flex: none;
	transition: transform .5s var(--aym-ease);
}
.aym-ui .aym-pill__icon::before, .aym-ui .aym-pill__icon::after {
	content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.6px; background: var(--aym-ink);
	transform: translate(-50%, -50%);
}
.aym-ui .aym-pill__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.aym-ui .aym-pill:hover .aym-pill__icon { transform: rotate(90deg); }

.aym-ui .aym-menu-btn.aym-pill {
	position: fixed; left: 50%; bottom: 28px; z-index: 9990; transform: translateX(-50%);
	height: 60px; padding-left: 26px; font-size: 18px;
}
.aym-ui .aym-menu-btn.aym-pill:hover { transform: translateX(-50%) scale(1.04); }
.aym-ui .aym-menu-btn .aym-pill__icon { width: 46px; height: 46px; }
html.aym-ui-dark-bottom .aym-ui .aym-menu-btn.aym-pill { background: var(--aym-glass-dark); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
html.aym-ui-dark .aym-ui .aym-top__cta.aym-pill { background: rgba(240, 240, 238, .9); }
html.aym-panel-open .aym-ui .aym-menu-btn.aym-pill { opacity: 0; pointer-events: none; }

/* ---------- Scrim + paneles ---------- */
.aym-ui .aym-scrim {
	position: fixed; inset: 0; z-index: 9991; background: rgba(10, 10, 10, .18);
	opacity: 0; pointer-events: none; transition: opacity .5s var(--aym-ease);
}
html.aym-panel-open .aym-ui .aym-scrim { opacity: 1; pointer-events: auto; }

.aym-ui .aym-menu, .aym-ui .aym-dialog { font-family: var(--aym-font); }
.aym-ui .aym-menu[hidden], .aym-ui .aym-dialog[hidden] { display: block !important; visibility: hidden; }

.aym-ui .aym-menu {
	position: fixed; z-index: 9992; left: 50%; bottom: 28px;
	width: min(420px, calc(100vw - 32px)); max-height: calc(100vh - 56px); overflow: auto;
	padding: 18px; border-radius: var(--aym-radius);
	background: rgba(236, 236, 234, .82);
	-webkit-backdrop-filter: blur(30px) saturate(1.5); backdrop-filter: blur(30px) saturate(1.5);
	box-shadow: 0 30px 80px rgba(0, 0, 0, .18), inset 0 0 0 1px rgba(255, 255, 255, .5);
	transform: translate(-50%, 24px) scale(.92); transform-origin: 50% 100%; opacity: 0;
	transition: transform .6s var(--aym-ease), opacity .45s var(--aym-ease), visibility 0s .6s;
}
.aym-ui .aym-menu.is-open { transform: translate(-50%, 0) scale(1); opacity: 1; visibility: visible; transition-delay: 0s; }
.aym-ui .aym-menu__head, .aym-ui .aym-dialog__head {
	display: flex; align-items: center; justify-content: space-between; font-size: 15px; font-weight: 500; margin: 0 0 22px 6px;
}
.aym-ui .aym-menu__list { list-style: none; margin: 0 0 22px; padding: 0 6px; }
.aym-ui .aym-menu__list li { margin: 0; overflow: hidden; }
.aym-ui .aym-menu__list a {
	display: inline-block; text-decoration: none; color: rgba(14, 14, 14, .42);
	font-size: clamp(28px, 4vw, 36px); line-height: 1.12; letter-spacing: -.035em; font-weight: 400;
	transform: translateY(110%); transition: color .3s, transform .7s var(--aym-ease);
}
.aym-ui .aym-menu.is-open .aym-menu__list a { transform: none; }
.aym-ui .aym-menu.is-open .aym-menu__list li:nth-child(2) a { transition-delay: .04s; }
.aym-ui .aym-menu.is-open .aym-menu__list li:nth-child(3) a { transition-delay: .08s; }
.aym-ui .aym-menu.is-open .aym-menu__list li:nth-child(4) a { transition-delay: .12s; }
.aym-ui .aym-menu.is-open .aym-menu__list li:nth-child(5) a { transition-delay: .16s; }
.aym-ui .aym-menu.is-open .aym-menu__list li:nth-child(6) a { transition-delay: .2s; }
.aym-ui .aym-menu__list a:hover, .aym-ui .aym-menu__list .current-menu-item > a { color: var(--aym-ink); }
.aym-ui .aym-menu__mail {
	position: relative; display: block; text-decoration: none; color: var(--aym-ink);
	background: rgba(255, 255, 255, .75); border-radius: 20px; padding: 16px 64px 16px 18px; margin-bottom: 12px;
}
.aym-ui .aym-menu__mail small { display: block; font-size: 12px; opacity: .55; margin-bottom: 4px; }
.aym-ui .aym-menu__mail strong { font-weight: 500; font-size: 17px; }
.aym-ui .aym-menu__mail .aym-arrow { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); }
.aym-ui .aym-menu__foot { display: flex; flex-wrap: wrap; gap: 8px; }

.aym-ui .aym-chip.aym-chip {
	all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center;
	height: 36px; padding: 0 14px; border-radius: 999px; font-size: 13px; color: var(--aym-ink);
	background: rgba(255, 255, 255, .7); transition: background .3s;
}
.aym-ui .aym-chip.aym-chip:hover { background: #fff; }
.aym-ui .aym-chip.aym-chip--accent { background: var(--aym-accent); }

.aym-ui .aym-x.aym-x {
	all: unset; cursor: pointer; position: relative; width: 36px; height: 36px; border-radius: 50%; background: #fff; flex: none;
}
.aym-ui .aym-x::before, .aym-ui .aym-x::after {
	content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px; background: var(--aym-ink);
	transform: translate(-50%, -50%) rotate(45deg);
}
.aym-ui .aym-x::after { transform: translate(-50%, -50%) rotate(-45deg); }
.aym-ui .aym-x.aym-x--light { background: rgba(255, 255, 255, .12); }
.aym-ui .aym-x--light::before, .aym-ui .aym-x--light::after { background: #fff; }

.aym-ui .aym-arrow {
	display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--aym-ink);
}
.aym-ui .aym-arrow::before { content: "→"; font-size: 15px; line-height: 1; }

/* Diálogo */
.aym-ui .aym-dialog {
	position: fixed; z-index: 9993; top: 20px; right: 20px;
	width: min(460px, calc(100vw - 40px)); max-height: calc(100vh - 40px); overflow: auto; overscroll-behavior: contain;
	padding: 18px 22px 22px; border-radius: var(--aym-radius); background: #0b0b0b; color: #fff;
	box-shadow: 0 40px 100px rgba(0, 0, 0, .35);
	transform: translateY(-16px) scale(.96); transform-origin: 100% 0; opacity: 0;
	transition: transform .6s var(--aym-ease), opacity .45s var(--aym-ease), visibility 0s .6s;
}
body.admin-bar .aym-ui .aym-dialog { top: 52px; max-height: calc(100vh - 72px); }
.aym-ui .aym-dialog.is-open { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
.aym-ui .aym-dialog__head { margin-left: 0; margin-bottom: 14px; font-size: 13px; color: rgba(255, 255, 255, .8); }
.aym-ui .aym-tabs { display: flex; gap: 6px; margin-bottom: 18px; }
.aym-ui .aym-tabs button {
	all: unset; cursor: pointer; height: 32px; padding: 0 14px; border-radius: 999px; font-size: 13px; color: rgba(255, 255, 255, .55);
	transition: background .3s, color .3s;
}
.aym-ui .aym-tabs button.is-active { background: rgba(255, 255, 255, .14); color: #fff; }
.aym-ui .aym-tabpanel[hidden] { display: none; }
.aym-ui .aym-dialog__avatar {
	width: 128px; height: 128px; margin: 0 auto 18px; border-radius: 50%; overflow: hidden;
	background: radial-gradient(circle at 50% 30%, #2b2b2b, #0b0b0b);
}
.aym-ui .aym-dialog__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.aym-ui .aym-form { margin: 0; }
.aym-ui .aym-form__step-label { font-size: 12px; color: rgba(255, 255, 255, .5); margin: 0 0 8px; }
.aym-ui .aym-form__step-label b { font-weight: 500; color: rgba(255, 255, 255, .8); }
.aym-ui .aym-progress { height: 2px; background: rgba(255, 255, 255, .12); border-radius: 2px; margin-bottom: 18px; overflow: hidden; }
.aym-ui .aym-progress i { display: block; height: 100%; width: 20%; background: var(--aym-accent); transition: width .6s var(--aym-ease); }
.aym-ui .aym-step { border: 0; margin: 0; padding: 0; display: none; }
.aym-ui .aym-step.is-active { display: block; animation: aym-in .55s var(--aym-ease); }
@keyframes aym-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.aym-ui .aym-step legend { font-size: 26px; line-height: 1.15; letter-spacing: -.025em; margin: 0 0 18px; padding: 0; color: #fff; font-weight: 400; }
.aym-ui .aym-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.aym-ui .aym-choice { position: relative; cursor: pointer; }
.aym-ui .aym-choice input { position: absolute; opacity: 0; pointer-events: none; }
.aym-ui .aym-choice span {
	display: inline-flex; align-items: center; min-height: 34px; padding: 6px 14px; border-radius: 999px; font-size: 13px;
	background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .85); transition: background .25s, color .25s;
}
.aym-ui .aym-choice:hover span { background: rgba(255, 255, 255, .18); }
.aym-ui .aym-choice input:checked + span { background: var(--aym-accent); color: var(--aym-ink); }
.aym-ui .aym-choice input:focus-visible + span { outline: 2px solid var(--aym-accent); outline-offset: 2px; }
.aym-ui .aym-input {
	box-sizing: border-box; width: 100%; display: block; margin: 0 0 10px; padding: 14px 16px; border-radius: 16px;
	border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); color: #fff;
	font: 400 16px/1.4 var(--aym-font); outline: none; transition: border-color .25s, background .25s;
}
.aym-ui .aym-input:focus { border-color: var(--aym-accent); background: rgba(255, 255, 255, .1); }
.aym-ui .aym-input::placeholder { color: rgba(255, 255, 255, .4); }
.aym-ui textarea.aym-input { resize: vertical; min-height: 110px; }
.aym-ui .aym-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: rgba(255, 255, 255, .7); cursor: pointer; }
.aym-ui .aym-check input { margin-top: 2px; accent-color: var(--aym-accent); }
.aym-ui .aym-check a { color: #fff; }
.aym-ui .aym-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.aym-ui .aym-form__error { min-height: 18px; margin: 12px 0 0; font-size: 13px; color: #ffb4a8; }
.aym-ui .aym-form__nav { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.aym-ui .aym-btn.aym-btn {
	all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 10px;
	height: 44px; padding: 0 6px 0 18px; border-radius: 999px; background: #fff; color: var(--aym-ink); font-size: 14px; font-weight: 500;
	transition: transform .3s var(--aym-ease), background .3s;
}
.aym-ui .aym-btn .aym-arrow { width: 32px; height: 32px; background: var(--aym-ink); color: #fff; }
.aym-ui .aym-btn.aym-btn:hover { transform: translateX(2px); }
.aym-ui .aym-btn.aym-btn[hidden] { display: none; }
.aym-ui .aym-btn.aym-btn--ghost { background: transparent; color: rgba(255, 255, 255, .7); padding: 0 16px; }
.aym-ui .aym-btn.aym-btn[disabled] { opacity: .5; pointer-events: none; }
.aym-ui .aym-done { padding: 30px 0 10px; }
.aym-ui .aym-done[hidden] { display: none; }
.aym-ui .aym-done__title { font-size: 34px; letter-spacing: -.03em; margin: 0 0 8px; }
.aym-ui .aym-done p { color: rgba(255, 255, 255, .7); }
.aym-ui .aym-contact { list-style: none; margin: 0; padding: 0; }
.aym-ui .aym-contact li { padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.aym-ui .aym-contact small { display: block; font-size: 12px; color: rgba(255, 255, 255, .45); margin-bottom: 4px; }
.aym-ui .aym-contact a, .aym-ui .aym-contact span { color: #fff; text-decoration: none; font-size: 20px; letter-spacing: -.02em; }

/* ---------- Imágenes dentro del texto ---------- */
.aym-inline {
	display: inline-block; vertical-align: middle; overflow: hidden; position: relative;
	height: .92em; margin: -.1em .08em 0; border-radius: 999px;
	transform: scale(var(--s, 1)); transition: transform .2s linear;
}
.aym-inline img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aym-inline--pill { width: 1.9em; }
.aym-inline--wide { width: 2.6em; }
.aym-inline--circle { width: .92em; }
.aym-inline--square { width: .92em; border-radius: .22em; }

/* ---------- Texto que se revela ---------- */
.aym-u { opacity: calc(.14 + .86 * var(--t, 0)); }
.aym-chars .aym-u, .aym-steps .aym-u { opacity: calc(.1 + .9 * var(--t, 0)); }
.aym-w { display: inline-block; white-space: nowrap; }
.aym-words .aym-inline { --s: calc(.4 + .6 * var(--t, 0)); }

/* ---------- Hero fijo con telón ---------- */
body.aym-on .aym-hero { position: sticky !important; top: 0; z-index: 0; height: 100vh; min-height: 100vh; overflow: hidden; }
body.aym-on .aym-hero ~ * { position: relative; z-index: 2; }
.aym-hero video, .aym-hero .aym-hero-media { transform: scale(calc(1 + var(--p, 0) * .22)); transform-origin: 50% 40%; will-change: transform; }
.aym-hero::after {
	content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: #000;
	opacity: calc(var(--p, 0) * .55);
}
.aym-hero .aym-hero-content { position: relative; z-index: 3; }
.aym-hero .aym-hero-content > * { opacity: calc(1 - var(--p, 0) * 1.3); transform: translateY(calc(var(--p, 0) * -60px)); }

/* ---------- Servicios fijados ---------- */
body.aym-on .aym-steps { position: relative; }
body.aym-on .aym-steps-pin { position: sticky !important; top: 0; height: 100vh; overflow: hidden; }
.aym-steps-nums { position: relative; overflow: hidden; height: 1em; line-height: 1; }
.aym-steps-nums > * { position: absolute !important; left: 0; top: 0; margin: 0 !important; line-height: 1 !important; transform: translateY(110%); transition: transform .8s var(--aym-ease), opacity .8s; opacity: 0; }
.aym-steps-nums > .is-active { transform: none; opacity: 1; }
.aym-steps-nums > .is-past { transform: translateY(-110%); }
.aym-steps-cards { position: relative; }
.aym-steps-cards > * {
	position: absolute !important; inset: 0; margin: 0 !important;
	clip-path: inset(100% 0 0 0 round 48px); transition: clip-path 1s var(--aym-ease);
}
.aym-steps-cards > .is-past { clip-path: inset(0 0 0 0 round 48px); }
.aym-steps-cards > .is-active { clip-path: inset(0 0 0 0 round 48px); z-index: 2; }
.aym-steps-cards img { transform: scale(calc(1.12 - var(--lp, 0) * .12)); transition: transform .2s linear; }
.aym-steps-texts { position: relative; }
.aym-steps-texts > * { position: absolute !important; left: 0; right: 0; top: 0; margin: 0 !important; opacity: 0; visibility: hidden; transition: opacity .4s; }
.aym-steps-texts > .is-active { position: relative !important; opacity: 1; visibility: visible; }
.aym-steps-deco > * { will-change: transform; transition: transform .2s linear; }

/* ---------- Título que se desenfoca ---------- */
body.aym-on .aym-blur { position: relative; }
body.aym-on .aym-blur-pin { position: sticky !important; top: 0; height: 100vh; overflow: hidden; }
.aym-blur .aym-blur-bg { opacity: var(--p, 0); transform: scale(calc(1.25 - var(--p, 0) * .25)); }
.aym-blur .aym-blur-title { filter: blur(calc(var(--p, 0) * 22px)); opacity: calc(1 - var(--p, 0) * .75); transform: scale(calc(1 + var(--p, 0) * .08)); }

/* ---------- Lista con foco ---------- */
.aym-focus-item { opacity: calc(.18 + .82 * var(--t, 0)); transform: translateX(calc((1 - var(--t, 0)) * -24px)); transition: opacity .15s linear; }
.aym-focus-item .aym-focus-desc { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--aym-ease), opacity .5s; }
.aym-focus-item.is-active .aym-focus-desc { max-height: 200px; opacity: 1; }
body.aym-on .aym-focus-media { position: sticky !important; top: 22vh; }
.aym-focus-media > * { position: absolute !important; inset: 0; margin: 0 !important; opacity: 0; transform: scale(.94) rotate(-2deg); transition: opacity .6s var(--aym-ease), transform .8s var(--aym-ease); }
.aym-focus-media > .is-active { opacity: 1; transform: none; }

/* ---------- Imagen a pantalla completa que se encoge ---------- */
body.aym-on .aym-shrink { position: relative; }
body.aym-on .aym-shrink-pin { position: sticky !important; top: 0; height: 100vh; overflow: hidden; }
.aym-shrink .aym-shrink-media {
	clip-path: inset(calc(var(--p, 0) * 14%) calc(var(--p, 0) * 18%) calc(var(--p, 0) * 18%) calc(var(--p, 0) * 18%) round calc(var(--p, 0) * 48px));
}
.aym-shrink .aym-shrink-media img, .aym-shrink img.aym-shrink-media { transform: scale(calc(1.15 - var(--p, 0) * .15)); }
.aym-shrink .aym-shrink-over { opacity: clamp(0, calc(var(--p, 0) * 2 - .8), 1); transform: translateY(calc((1 - var(--p, 0)) * 30px)); }

/* ---------- Carrusel continuo ---------- */
.aym-marquee { display: flex !important; flex-wrap: nowrap !important; width: max-content !important; animation: aym-marquee var(--aym-marquee, 45s) linear infinite; }
.aym-marquee:hover { animation-play-state: paused; }
@keyframes aym-marquee { to { transform: translateX(-50%); } }

/* ---------- Abanico de tarjetas ---------- */
.aym-fan { position: relative !important; display: block !important; height: var(--aym-fan-h, 480px); }
.aym-fan > * {
	position: absolute !important; left: 50%; top: 50%; width: min(360px, 78vw) !important; margin: 0 !important;
	transform: translate(-50%, -50%) translateX(calc(var(--o, 0) * 64%)) rotate(calc(var(--o, 0) * 4deg)) scale(calc(1 - var(--a, 0) * .12));
	z-index: calc(10 - var(--a, 0)); opacity: calc(1 - max(0, var(--a, 0) - 1) * 1);
	transition: transform .8s var(--aym-ease), opacity .6s var(--aym-ease); cursor: pointer;
}
.aym-fan > .is-active { cursor: default; }
.aym-fan-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 22px; font-family: var(--aym-font); font-size: 13px; color: rgba(14, 14, 14, .55); }
body.aym-on .aym-fan-nav button { all: unset; cursor: pointer; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--aym-mist); color: var(--aym-ink); font-size: 18px; transition: background .3s; }
body.aym-on .aym-fan-nav button:hover { background: var(--aym-accent); }

/* ---------- Acordeones: el «+» gira al abrir ---------- */
body.aym-on details > summary::-webkit-details-marker { display: none; }
body.aym-on details > summary::after { transition: transform .4s var(--aym-ease); }
body.aym-on details[open] > summary::after { transform: rotate(45deg); }

/* ---------- Revelados genéricos ---------- */
.aym-reveal { opacity: var(--p, 0); transform: translateY(calc((1 - var(--p, 0)) * 48px)); }
.aym-wordmark { filter: blur(calc((1 - var(--p, 0)) * 18px)); opacity: calc(.2 + var(--p, 0) * .8); transform: translateY(calc((1 - var(--p, 0)) * 40px)) scale(calc(.94 + var(--p, 0) * .06)); }
.aym-par { transform: translateY(var(--y, 0px)); will-change: transform; }

/* ---------- Móvil ---------- */
@media (max-width: 767px) {
	.aym-ui .aym-top { height: 84px; padding: 0 16px; justify-content: flex-start; }
	.aym-ui .aym-top .aym-top__cta.aym-pill { right: 16px; height: 44px; padding-left: 16px; font-size: 14px; }
	.aym-ui .aym-top__cta .aym-pill__icon { width: 34px; height: 34px; }
	.aym-ui .aym-menu-btn.aym-pill { bottom: 18px; height: 54px; }
	.aym-ui .aym-dialog { inset: auto 0 0 0; width: 100%; max-height: 88vh; border-radius: 28px 28px 0 0; transform: translateY(40px); transform-origin: 50% 100%; }
	body.admin-bar .aym-ui .aym-dialog { top: auto; max-height: 88vh; }
	.aym-ui .aym-step legend { font-size: 22px; }
	.aym-focus-item { transform: none; }
	.aym-fan > * { transform: translate(-50%, -50%) translateX(calc(var(--o, 0) * 82%)) rotate(calc(var(--o, 0) * 3deg)) scale(calc(1 - var(--a, 0) * .1)); }
}

/* ---------- Accesibilidad: sin movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
	.aym-u { opacity: 1 !important; }
	.aym-hero video, .aym-hero .aym-hero-content, .aym-blur .aym-blur-title, .aym-wordmark, .aym-reveal, .aym-par { transform: none !important; filter: none !important; opacity: 1 !important; }
	.aym-marquee { animation: none; }
}

/* Evita estilos de botón del tema dentro de la UI */
.aym-ui button:focus-visible, body.aym-on .aym-fan-nav button:focus-visible { outline: 2px solid var(--aym-accent); outline-offset: 2px; }

/* ---------- Formulario dentro de una página ---------- */
.aym-ui.aym-formwrap--inline {
	position: relative; box-sizing: border-box; width: 100%; max-width: 640px;
	padding: 32px; border-radius: 36px; background: #0b0b0b; color: #fff; text-align: left;
}
.aym-ui.aym-formwrap--inline .aym-dialog__avatar { width: 96px; height: 96px; margin: 0 0 22px; }
@media (max-width: 767px) { .aym-ui.aym-formwrap--inline { padding: 22px; border-radius: 26px; } }

/* ---------- Pie común ---------- */
.aym-foot {
	position: relative; z-index: 2; box-sizing: border-box; font-family: var(--aym-font);
	background: #e4e4e2; color: var(--aym-ink); padding: 40px 40px 120px; overflow: hidden;
}
.aym-foot a { text-decoration: none; color: inherit; }
.aym-foot__top { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; margin-bottom: 120px; }
.aym-foot__logo { display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 20px; background: #fff; font-weight: 700; font-size: 22px; letter-spacing: -.04em; }
.aym-foot__mail { position: relative; display: block; padding: 22px 80px 22px 26px; border-radius: 26px; background: #f2f2f0; margin-bottom: 10px; transition: background .3s; }
.aym-foot__mail:hover { background: #fff; }
.aym-foot__mail small { display: block; font-size: 13px; color: rgba(14, 14, 14, .5); margin-bottom: 6px; }
.aym-foot__mail strong { font-weight: 400; font-size: 30px; letter-spacing: -.03em; }
.aym-foot__mail .aym-arrow { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); }
.aym-foot__links { display: flex; flex-wrap: wrap; gap: 10px; }
.aym-foot__chip { display: inline-flex; align-items: center; padding: 20px 24px; border-radius: 22px; background: #f2f2f0; font-size: 16px; transition: background .3s; }
.aym-foot__chip:hover { background: #fff; }
.aym-foot__chip--accent { background: var(--aym-accent); }
.aym-foot__chip--accent:hover { background: #fff; }
.aym-foot__wordmark {
	margin: 0 0 28px; font-weight: 400; font-size: 15.6vw; line-height: .82; letter-spacing: -.065em; white-space: nowrap;
}
.aym-foot__wordmark sup { font-size: .2em; vertical-align: top; letter-spacing: 0; position: relative; top: .3em; }
.aym-foot__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.aym-foot__legal { display: flex; flex-wrap: wrap; gap: 8px; }
.aym-foot__legal a { padding: 10px 16px; border-radius: 12px; background: #ededeb; font-size: 14px; color: rgba(14, 14, 14, .6); }
.aym-foot__legal a:hover { color: var(--aym-ink); }
.aym-foot__copy { margin: 0; font-size: 13px; color: rgba(14, 14, 14, .5); }
@media (max-width: 767px) {
	.aym-foot { padding: 24px 16px 110px; }
	.aym-foot__top { grid-template-columns: 1fr; margin-bottom: 72px; }
	.aym-foot__mail strong { font-size: 24px; }
	.aym-foot__wordmark { font-size: 14.6vw; }
}

/* ---------- Páginas y entradas sin Elementor ---------- */
body.aym-on:not(.elementor-page):not([class*="elementor-page-"]) .site-main {
	box-sizing: border-box; max-width: 860px; margin: 0 auto; padding: 170px 24px 140px; font-family: var(--aym-font); color: var(--aym-ink);
}
body.aym-on:not(.elementor-page):not([class*="elementor-page-"]) .site-main .entry-title {
	font-family: var(--aym-font); font-weight: 400; font-size: clamp(40px, 7vw, 88px); line-height: 1; letter-spacing: -.05em; margin: 0 0 48px;
}
body.aym-on:not(.elementor-page):not([class*="elementor-page-"]) .site-main .page-content { font-size: 18px; line-height: 1.7; }
body.aym-on:not(.elementor-page):not([class*="elementor-page-"]) .site-main h2,
body.aym-on:not(.elementor-page):not([class*="elementor-page-"]) .site-main h3 { font-family: var(--aym-font); font-weight: 400; letter-spacing: -.03em; line-height: 1.15; margin: 1.8em 0 .6em; }
body.aym-on:not(.elementor-page):not([class*="elementor-page-"]) .site-main a { color: var(--aym-ink); text-decoration: underline; text-decoration-color: var(--aym-accent); text-decoration-thickness: 3px; text-underline-offset: 3px; }

/* ---------- Contenido de las entradas (plantilla de Elementor) ---------- */
body.aym-on .aym-prose { font-family: var(--aym-font); font-size: 19px; line-height: 1.75; color: rgba(14, 14, 14, .82); }
body.aym-on .aym-prose h2 { font-weight: 400; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -.035em; color: var(--aym-ink); margin: 1.8em 0 .55em; }
body.aym-on .aym-prose h3 { font-weight: 500; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; letter-spacing: -.02em; color: var(--aym-ink); margin: 1.6em 0 .5em; }
body.aym-on .aym-prose p { margin: 0 0 1.25em; }
body.aym-on .aym-prose a { color: var(--aym-ink); text-decoration: underline; text-decoration-color: var(--aym-accent); text-decoration-thickness: 3px; text-underline-offset: 3px; }
body.aym-on .aym-prose ul, body.aym-on .aym-prose ol { padding-left: 1.2em; margin: 0 0 1.4em; }
body.aym-on .aym-prose li { margin: 0 0 .5em; }
body.aym-on .aym-prose img { max-width: 100%; height: auto; border-radius: 24px; }
body.aym-on .aym-prose blockquote { margin: 1.8em 0; padding: 24px 28px; border-radius: 24px; background: #f2f2f0; font-size: 22px; line-height: 1.45; letter-spacing: -.015em; color: var(--aym-ink); }
body.aym-on .aym-prose strong { color: var(--aym-ink); }
body.aym-on .aym-prose table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 0 0 1.6em; }
body.aym-on .aym-prose th, body.aym-on .aym-prose td { padding: 12px 14px; border-bottom: 1px solid rgba(14, 14, 14, .12); text-align: left; }

/* ---------- Proyectos: tarjetas ---------- */
.aym-projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; font-family: var(--aym-font); }
.aym-project {
	display: flex; flex-direction: column; padding: 14px 14px 22px; border-radius: 36px; background: #f2f2f0;
	color: var(--aym-ink) !important; text-decoration: none !important; transition: background .4s var(--aym-ease);
}
.aym-project:hover { background: #ededeb; }
.aym-project__media { position: relative; display: block; overflow: hidden; border-radius: 26px; aspect-ratio: 4 / 3; margin-bottom: 20px; background: #e4e4e2; }
.aym-project__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s var(--aym-ease); }
.aym-project:hover .aym-project__media img { transform: scale(1.05); }
.aym-project__go {
	position: absolute; right: 14px; top: 14px; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
	background: #fff; font-size: 18px; transition: background .3s, transform .5s var(--aym-ease);
}
.aym-project:hover .aym-project__go { background: var(--aym-accent); transform: rotate(-45deg); }
.aym-project__meta { display: flex; align-items: center; gap: 10px; padding: 0 10px; margin-bottom: 12px; }
.aym-project__num { font-size: 13px; color: rgba(14, 14, 14, .45); }
.aym-project__tag { font-size: 12px; padding: 5px 12px; border-radius: 999px; background: var(--aym-accent); }
.aym-project__title { padding: 0 10px; font-size: 32px; line-height: 1.1; letter-spacing: -.03em; margin-bottom: 8px; }
.aym-project__desc { padding: 0 10px; font-size: 16px; line-height: 1.5; color: rgba(14, 14, 14, .65); }
@media (max-width: 1024px) { .aym-projects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .aym-projects { grid-template-columns: 1fr; } .aym-project__title { font-size: 26px; } }

/* ---------- Ficha (proyectos) ---------- */
body.aym-on .aym-single { font-family: var(--aym-font); color: var(--aym-ink); background: #fff; }
.aym-sh { padding: 190px 48px 64px; max-width: 1320px; margin: 0 auto; box-sizing: border-box; }
.aym-sh__back { display: inline-flex; padding: 9px 16px; border-radius: 999px; background: #ededeb; color: var(--aym-ink) !important; text-decoration: none !important; font-size: 14px; margin-bottom: 40px; }
.aym-sh__tag { display: inline-block; margin: 0 0 18px; font-size: 13px; padding: 6px 13px; border-radius: 999px; background: var(--aym-accent); }
.aym-sh__title { margin: 0 0 28px; font-family: var(--aym-font); font-weight: 400; font-size: clamp(48px, 8.4vw, 132px); line-height: .95; letter-spacing: -.055em; color: var(--aym-ink); }
.aym-sh__lead { max-width: 720px; margin: 0 0 36px; font-size: clamp(19px, 1.8vw, 24px); line-height: 1.45; letter-spacing: -.01em; color: rgba(14, 14, 14, .72); }
.aym-sh__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.aym-cta {
	display: inline-flex; align-items: center; padding: 17px 28px; border-radius: 999px; background: #ededeb;
	color: var(--aym-ink) !important; text-decoration: none !important; font-size: 16px; font-weight: 500; transition: background .3s, color .3s;
}
.aym-cta:hover { background: var(--aym-ink); color: #fff !important; }
.aym-cta--accent { background: var(--aym-accent); }
.aym-sh__figure { margin: 0 auto 80px; padding: 0 48px; max-width: 1420px; box-sizing: border-box; }
.aym-sh__figure img { width: 100%; height: auto; max-height: 78vh; object-fit: cover; border-radius: 40px; display: block; }
.aym-sh__body { max-width: 780px; margin: 0 auto; padding: 0 24px 120px; box-sizing: border-box; }
.aym-sh__more { padding: 40px 48px 160px; max-width: 1420px; margin: 0 auto; box-sizing: border-box; }
.aym-sh__more-title { font-family: var(--aym-font); font-weight: 400; font-size: clamp(36px, 5vw, 72px); letter-spacing: -.05em; line-height: 1; margin: 0 0 40px; }
@media (max-width: 767px) {
	.aym-sh { padding: 130px 16px 40px; }
	.aym-sh__figure, .aym-sh__more { padding-left: 16px; padding-right: 16px; }
	.aym-sh__figure img { border-radius: 24px; }
}

/* Unidades de texto como elementos propios (no heredan los estilos «& span» de Elementor) */
aym-u { display: inline; }
aym-w { display: inline-block; white-space: nowrap; }
