/* ==========================================================================
   Academia Pinoso — estilos principales
   ========================================================================== */

@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/poppins-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 100 900; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); }

:root {
	--ap-primary: #5b3df5;
	--ap-accent: #ff7a45;
	--ap-ink: #15122e;
	--ap-text: #3e3a5c;
	--ap-muted: #6c6889;
	--ap-line: #e7e5f2;
	--ap-bg: #ffffff;
	--ap-tint: #f6f5fc;
	--ap-dark: #110e26;
	--ap-wa: #25d366;

	--ap-kids-1: #ff8a4c; --ap-kids-2: #ff4f8b;
	--ap-adults-1: #13c296; --ap-adults-2: #0b9bb5;
	--ap-biz-1: var(--ap-primary); --ap-biz-2: #2d7bff;

	--ap-font-head: "Poppins", system-ui, sans-serif;
	--ap-font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--ap-radius: 20px;
	--ap-radius-sm: 12px;
	--ap-shadow-sm: 0 1px 2px rgb(21 18 46 / .06), 0 2px 8px rgb(21 18 46 / .04);
	--ap-shadow: 0 10px 30px -10px rgb(21 18 46 / .18), 0 4px 10px -4px rgb(21 18 46 / .06);
	--ap-shadow-lg: 0 30px 60px -20px rgb(41 26 140 / .35);
	--ap-container: 1200px;
	--ap-header-h: 76px;
	--ap-ease: cubic-bezier(.2, .7, .2, 1);
}

/* Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--ap-header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: clip; font-family: var(--ap-font-body); font-size: 1.0625rem; line-height: 1.65; color: var(--ap-text); background: var(--ap-bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--ap-primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--ap-font-head); color: var(--ap-ink); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; text-wrap: balance; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--ap-primary) 60%, white); outline-offset: 3px; border-radius: 6px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.ap-skip { position: absolute; left: 16px; top: -60px; z-index: 999; background: var(--ap-ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.ap-skip:focus { top: 12px; }
.ap-icon { width: 1.25em; height: 1.25em; flex: none; }
.ap-muted { color: var(--ap-muted); }
.ap-center { text-align: center; margin-top: 48px; }
.ap-rounded { border-radius: var(--ap-radius); }

.ap-container { width: 100%; max-width: var(--ap-container); margin-inline: auto; padding-inline: 24px; }
.ap-container--narrow { max-width: 780px; }

/* Botones ---------------------------------------------------------------- */
.ap-btn { --bg: var(--ap-ink); --fg: #fff; display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: .8em 1.35em; border-radius: 999px; border: 2px solid transparent; background: var(--bg); color: var(--fg); font-family: var(--ap-font-head); font-weight: 600; font-size: .98rem; line-height: 1.2; text-decoration: none; white-space: nowrap; transition: transform .2s var(--ap-ease), box-shadow .2s var(--ap-ease), background-color .2s; }
.ap-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -8px color-mix(in srgb, var(--bg) 70%, transparent); }
.ap-btn .ap-icon { width: 1.15em; height: 1.15em; transition: transform .2s var(--ap-ease); }
.ap-btn:hover .ap-icon { transform: translateX(2px); }
.ap-btn--primary { --bg: var(--ap-primary); }
.ap-btn--accent { --bg: var(--ap-accent); }
.ap-btn--wa { --bg: var(--ap-wa); --fg: #fff; }
.ap-btn--wa:hover .ap-icon { transform: none; }
.ap-btn--ghost { --bg: transparent; --fg: var(--ap-ink); border-color: var(--ap-line); background: #fff; }
.ap-btn--ghost:hover { border-color: var(--ap-ink); box-shadow: none; }
.ap-btn--outline { --bg: transparent; --fg: var(--ap-primary); border-color: currentColor; color: var(--ap-primary); }
.ap-btn--outline:hover { background: var(--ap-primary); color: #fff; box-shadow: none; }
.ap-btn--lg { padding: 1em 1.6em; font-size: 1.02rem; }
.ap-btn--block { width: 100%; }

/* Cabecera --------------------------------------------------------------- */
.ap-header { position: sticky; top: 0; z-index: 100; background: rgb(255 255 255 / .82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.admin-bar .ap-header { top: 32px; }
.ap-header.is-scrolled { border-color: var(--ap-line); box-shadow: 0 6px 24px -18px rgb(21 18 46 / .4); }
.ap-header__inner { height: var(--ap-header-h); display: flex; align-items: center; gap: 28px; }
.ap-brand { white-space: nowrap; flex: none; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ap-ink); font-family: var(--ap-font-head); font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; }
.ap-brand__logo { max-height: 48px; width: auto; }
.ap-brand__mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--ap-primary), var(--ap-accent)); box-shadow: 0 6px 16px -6px var(--ap-primary); }
.ap-brand__mark .ap-icon { width: 20px; height: 20px; }
.ap-brand--light { color: #fff; }

.ap-nav { margin-left: auto; }
.ap-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.ap-nav .menu a { display: block; white-space: nowrap; padding: 8px 10px; border-radius: 10px; color: var(--ap-text); text-decoration: none; font-weight: 500; font-size: .95rem; transition: background-color .2s, color .2s; }
.ap-nav .menu a:hover, .ap-nav .current-menu-item > a, .ap-nav .current-menu-ancestor > a { background: var(--ap-tint); color: var(--ap-primary); }
.ap-nav .sub-menu { list-style: none; position: absolute; min-width: 220px; margin: 6px 0 0; padding: 8px; background: #fff; border: 1px solid var(--ap-line); border-radius: 14px; box-shadow: var(--ap-shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s var(--ap-ease); }
.ap-nav .menu > li { position: relative; }
.ap-nav .menu > li:hover > .sub-menu, .ap-nav .menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.ap-nav__cta-mobile { display: none; }
.ap-header__actions { display: flex; align-items: center; gap: 10px; }
.ap-burger { display: none; width: 44px; height: 44px; border: 1px solid var(--ap-line); border-radius: 12px; background: #fff; color: var(--ap-ink); place-items: center; }
.ap-burger .is-close { display: none; }

@media (max-width: 1520px) {
	.ap-hide-sm { display: none; }
}
@media (max-width: 1180px) {
	.ap-burger { display: grid; }
	.ap-header__cta { display: none; }
	.ap-nav { position: fixed; inset: var(--ap-header-h) 0 auto 0; margin: 0; padding: 16px 24px 28px; background: #fff; border-bottom: 1px solid var(--ap-line); box-shadow: 0 30px 40px -30px rgb(21 18 46 / .35); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: .25s var(--ap-ease); max-height: calc(100dvh - var(--ap-header-h)); overflow-y: auto; }
	.admin-bar .ap-nav { top: calc(var(--ap-header-h) + 46px); }
	.ap-nav .menu { flex-direction: column; gap: 2px; }
	.ap-nav .menu a { padding: 12px 14px; font-size: 1.05rem; }
	.ap-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 14px; margin: 0; }
	.ap-nav__cta-mobile { display: flex; margin-top: 14px; width: 100%; }
	.is-nav-open .ap-nav { transform: none; opacity: 1; visibility: visible; }
	.is-nav-open .ap-burger .is-open { display: none; }
	.is-nav-open .ap-burger .is-close { display: block; }
}
@media (max-width: 782px) { .admin-bar .ap-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .ap-header { top: 0; } }

/* Secciones -------------------------------------------------------------- */
.ap-section { padding-block: clamp(64px, 9vw, 112px); }
.ap-section--tight { padding-block: clamp(40px, 6vw, 72px); }
.ap-section--tint { background: var(--ap-tint); }
.ap-section--dark { background: var(--ap-dark); color: #c9c6e0; position: relative; overflow: hidden; }
.ap-section--dark::before { content: ""; position: absolute; width: 600px; height: 600px; right: -200px; top: -260px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--ap-primary) 55%, transparent), transparent); opacity: .6; pointer-events: none; }
.ap-section--dark .ap-section__title, .ap-section--dark h3 { color: #fff; }
.ap-section__head { max-width: 680px; margin-bottom: 44px; position: relative; }
.ap-section__head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.ap-section__title { font-size: clamp(1.85rem, 3.6vw, 2.75rem); margin: 0; }
.ap-kicker { display: inline-block; margin-bottom: 12px; font-family: var(--ap-font-head); font-weight: 600; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ap-primary); }
.ap-section--dark .ap-kicker { color: color-mix(in srgb, var(--ap-accent) 85%, white); }

/* Héroe ------------------------------------------------------------------ */
.ap-hero { position: relative; overflow: hidden; padding-block: clamp(48px, 8vw, 104px) clamp(64px, 9vw, 120px); }
.ap-hero__bg { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, color-mix(in srgb, var(--ap-primary) 6%, white), #fff 85%); }
.ap-hero__bg span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.ap-hero__bg span:nth-child(1) { width: 460px; height: 460px; background: color-mix(in srgb, var(--ap-primary) 45%, white); top: -140px; right: 8%; }
.ap-hero__bg span:nth-child(2) { width: 340px; height: 340px; background: color-mix(in srgb, var(--ap-accent) 45%, white); bottom: -80px; right: 34%; opacity: .45; }
.ap-hero__bg span:nth-child(3) { width: 300px; height: 300px; background: #b8f3e4; top: 30%; left: -120px; opacity: .5; }
.ap-hero__bg::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgb(21 18 46 / .07) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, #000, transparent 70%); }
.ap-hero__grid > *, .ap-course-hero__grid > *, .ap-cta-box > * { min-width: 0; }
.ap-hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.ap-eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--ap-line); box-shadow: var(--ap-shadow-sm); font-size: .88rem; font-weight: 600; color: var(--ap-ink); margin-bottom: 22px; }
.ap-dot { width: 8px; height: 8px; border-radius: 50%; background: #18c37e; box-shadow: 0 0 0 4px rgb(24 195 126 / .18); animation: ap-pulse 2s infinite; }
@keyframes ap-pulse { 50% { box-shadow: 0 0 0 7px rgb(24 195 126 / .05); } }
.ap-hero__title { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; margin-bottom: 22px; }
.ap-hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ap-muted); max-width: 560px; margin-bottom: 32px; }
.ap-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ap-hero__trust { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: .93rem; font-weight: 500; color: var(--ap-ink); }
.ap-hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.ap-hero__trust .ap-icon { color: var(--ap-primary); width: 18px; height: 18px; }
.ap-hero__trust .is-star { color: #f5a623; }

.ap-hero__visual { position: relative; padding: 28px 20px; }
.ap-hero__photo { border-radius: 28px; overflow: hidden; box-shadow: var(--ap-shadow-lg); transform: rotate(1.5deg); aspect-ratio: 4 / 3.2; }
.ap-hero__photo img { width: 100%; height: 100%; object-fit: cover; }

.ap-mock { position: relative; border-radius: 24px; background: #1a1636; box-shadow: var(--ap-shadow-lg); padding: 0 0 26px; transform: rotate(1.5deg); overflow: hidden; }
.ap-mock__bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; background: rgb(255 255 255 / .05); border-bottom: 1px solid rgb(255 255 255 / .06); }
.ap-mock__bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.ap-mock__bar i:nth-child(2) { background: #febc2e; } .ap-mock__bar i:nth-child(3) { background: #28c840; }
.ap-mock__bar span { margin-left: 10px; font: 500 .8rem/1 ui-monospace, Menlo, monospace; color: #9b97c0; }
.ap-mock__code { padding: 22px 24px 6px; font: 500 clamp(.78rem, 1.2vw, .95rem)/1.9 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: #e6e3ff; }
.ap-mock__code p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-mock__code .in { padding-left: 2ch; }
.ap-mock__code .k { color: #c792ea; font-weight: 500; } .ap-mock__code .f { color: #82aaff; font-weight: 500; } .ap-mock__code .v { color: #f78c6c; font-weight: 500; } .ap-mock__code .c { color: #6f6a9a; }
.ap-mock__ai { display: flex; gap: 12px; align-items: center; margin: 16px 24px 0; padding: 14px 16px; border-radius: 16px; background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .08); color: #fff; }
.ap-mock__ai strong { display: block; font-size: .88rem; } .ap-mock__ai span { font-size: .82rem; color: #b3afd6; }
.ap-mock__ai-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, var(--ap-primary), var(--ap-accent)); flex: none; }
.ap-mock__ai-icon .ap-icon { width: 20px; height: 20px; }

.ap-float { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; background: #fff; border-radius: 18px; box-shadow: var(--ap-shadow); font-size: .9rem; animation: ap-floaty 6s ease-in-out infinite; }
.ap-float strong { display: block; color: var(--ap-ink); font-family: var(--ap-font-head); font-weight: 600; line-height: 1.2; }
.ap-float small { color: var(--ap-muted); font-size: .8rem; }
.ap-float--a { left: -14px; bottom: 6px; }
.ap-float--b { right: -6px; top: -4px; animation-delay: -3s; }
.ap-float__ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: #fff; }
.ap-float__ic.is-kids { background: linear-gradient(135deg, var(--ap-kids-1), var(--ap-kids-2)); }
.ap-float__ic.is-business { background: linear-gradient(135deg, var(--ap-biz-1), var(--ap-biz-2)); }
@keyframes ap-floaty { 50% { transform: translateY(-8px); } }

@media (max-width: 900px) {
	.ap-hero__grid { grid-template-columns: 1fr; }
	.ap-hero__visual { max-width: 560px; margin-inline: auto; width: 100%; }
}
@media (max-width: 520px) {
	.ap-hero__actions .ap-btn { width: 100%; white-space: normal; }
	.ap-hero__visual { padding-inline: 8px; }
	.ap-float { font-size: .82rem; padding: 9px 14px 9px 9px; }
	.ap-float__ic { width: 34px; height: 34px; }
	.ap-float--a { left: 0; } .ap-float--b { right: 0; }
}

/* Segmentos -------------------------------------------------------------- */
.ap-segments__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ap-segment { --c1: var(--ap-primary); --c2: var(--ap-primary); position: relative; display: flex; flex-direction: column; padding: 32px 28px 26px; border-radius: var(--ap-radius); background: #fff; border: 1px solid var(--ap-line); text-decoration: none; color: var(--ap-text); overflow: hidden; isolation: isolate; transition: transform .3s var(--ap-ease), box-shadow .3s var(--ap-ease), border-color .3s; }
.ap-segment::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(140deg, var(--c1), var(--c2)); opacity: 0; transition: opacity .35s var(--ap-ease); }
.ap-segment h3 { font-size: 1.35rem; margin: 22px 0 8px; transition: color .3s; }
.ap-segment p { color: var(--ap-muted); margin-bottom: 26px; transition: color .3s; }
.ap-segment__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; color: #fff; background: linear-gradient(140deg, var(--c1), var(--c2)); box-shadow: 0 10px 20px -10px var(--c1); transition: background .3s; }
.ap-segment__icon .ap-icon { width: 26px; height: 26px; }
.ap-segment__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: .92rem; color: var(--ap-ink); transition: color .3s; }
.ap-segment__go { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ap-tint); color: var(--ap-ink); transition: .3s var(--ap-ease); }
.ap-segment__go .ap-icon { width: 18px; height: 18px; }
.ap-segment:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -24px var(--c1); border-color: transparent; }
.ap-segment:hover::before { opacity: 1; }
.ap-segment:hover h3, .ap-segment:hover p, .ap-segment:hover .ap-segment__foot { color: #fff; }
.ap-segment:hover .ap-segment__icon { background: rgb(255 255 255 / .2); box-shadow: none; }
.ap-segment:hover .ap-segment__go { background: #fff; color: var(--c1); transform: rotate(-45deg); }
.is-kids { --c1: var(--ap-kids-1); --c2: var(--ap-kids-2); }
.is-adults { --c1: var(--ap-adults-1); --c2: var(--ap-adults-2); }
.is-business, .is-default { --c1: var(--ap-biz-1); --c2: var(--ap-biz-2); }
@media (max-width: 900px) { .ap-segments__grid { grid-template-columns: 1fr; } }

/* Filtros ---------------------------------------------------------------- */
.ap-filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; background: #fff; border: 1px solid var(--ap-line); border-radius: 999px; box-shadow: var(--ap-shadow-sm); }
.ap-filters button, .ap-filters a { padding: 9px 16px; border: 0; border-radius: 999px; background: transparent; color: var(--ap-text); font-weight: 600; font-size: .9rem; text-decoration: none; transition: .2s; }
.ap-filters button:hover, .ap-filters a:hover { color: var(--ap-primary); }
.ap-filters .is-active { background: var(--ap-ink); color: #fff !important; }
.ap-filters--links { display: inline-flex; margin-top: 28px; }
@media (max-width: 640px) {
	.ap-filters { border-radius: 18px; width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
	.ap-filters button, .ap-filters a { white-space: nowrap; }
}

/* Tarjetas de curso ------------------------------------------------------ */
.ap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 26px; }
.ap-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--ap-radius); border: 1px solid var(--ap-line); overflow: hidden; transition: transform .3s var(--ap-ease), box-shadow .3s var(--ap-ease); }
.ap-card:hover { transform: translateY(-6px); box-shadow: var(--ap-shadow); }
.ap-card.is-hidden { display: none; }
.ap-card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ap-tint); }
.ap-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ap-ease); }
.ap-card:hover .ap-card__media img { transform: scale(1.05); }
.ap-card__art { position: absolute; inset: 0; display: grid; place-items: center; color: rgb(255 255 255 / .95); background: radial-gradient(circle at 20% 15%, rgb(255 255 255 / .35), transparent 40%), linear-gradient(135deg, var(--c1, var(--ap-primary)), var(--c2, var(--ap-accent))); }
.ap-card__art::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgb(255 255 255 / .22) 1.2px, transparent 1.2px); background-size: 18px 18px; mask-image: linear-gradient(135deg, transparent 30%, #000); }
.ap-card__art .ap-icon { width: 30%; height: auto; max-width: 96px; stroke-width: 1.5; filter: drop-shadow(0 10px 20px rgb(0 0 0 / .15)); transition: transform .5s var(--ap-ease); }
.ap-card:hover .ap-card__art .ap-icon { transform: scale(1.08) rotate(-6deg); }
.ap-card__art--big { position: relative; inset: auto; aspect-ratio: 4 / 3; border-radius: 28px; }
.ap-badge { position: absolute; left: 14px; top: 14px; padding: 6px 12px; border-radius: 999px; background: rgb(255 255 255 / .92); backdrop-filter: blur(6px); color: var(--ap-ink); font-size: .78rem; font-weight: 700; letter-spacing: .01em; box-shadow: var(--ap-shadow-sm); }
.ap-badge::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: linear-gradient(135deg, var(--c1, var(--ap-primary)), var(--c2, var(--ap-primary))); vertical-align: 1px; }
.ap-badge--static { position: static; display: inline-block; }
.ap-card__body { flex: 1; display: flex; flex-direction: column; padding: 22px 24px 24px; }
.ap-card__title { font-size: 1.2rem; margin: 10px 0 8px; line-height: 1.3; }
.ap-card__title a { color: inherit; text-decoration: none; }
.ap-card__title a:hover { color: var(--ap-primary); }
.ap-card__excerpt { font-size: .96rem; color: var(--ap-muted); margin-bottom: 16px; }
.ap-card__meta { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ap-card__meta li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; background: var(--ap-tint); font-size: .8rem; font-weight: 500; color: var(--ap-text); }
.ap-card__meta .ap-icon { width: 14px; height: 14px; color: var(--c1, var(--ap-primary)); }
.ap-card__link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-family: var(--ap-font-head); font-weight: 600; font-size: .95rem; color: var(--ap-ink); text-decoration: none; padding-top: 16px; border-top: 1px solid var(--ap-line); }
.ap-card__link .ap-icon { width: 18px; height: 18px; color: var(--c1, var(--ap-primary)); transition: transform .25s var(--ap-ease); }
.ap-card:hover .ap-card__link .ap-icon { transform: translateX(4px); }

.ap-status { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #0f9a62; }
.ap-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ap-status.is-pocas { color: #e46a12; }
.ap-status.is-completo { color: #c2334d; }
.ap-status.is-proximamente { color: var(--ap-muted); }

.ap-empty, .ap-empty-filter, .ap-admin-hint { padding: 28px; border-radius: var(--ap-radius); background: #fff; border: 1px dashed var(--ap-line); text-align: center; color: var(--ap-muted); }
.ap-admin-hint { background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .2); color: #c9c6e0; }

/* Ventajas --------------------------------------------------------------- */
.ap-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.ap-feature { padding: 30px 26px; border-radius: var(--ap-radius); background: var(--ap-tint); transition: background-color .3s, transform .3s var(--ap-ease); }
.ap-feature:hover { background: #fff; box-shadow: var(--ap-shadow); transform: translateY(-4px); }
.ap-feature__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; margin-bottom: 20px; background: #fff; color: var(--ap-primary); box-shadow: var(--ap-shadow-sm); }
.ap-feature:nth-child(2n) .ap-feature__icon { color: var(--ap-accent); }
.ap-feature h3 { font-size: 1.12rem; margin-bottom: 6px; }
.ap-feature p { font-size: .95rem; color: var(--ap-muted); margin: 0; }
@media (max-width: 1000px) { .ap-features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ap-features { grid-template-columns: 1fr; } }

/* Testimonios ------------------------------------------------------------ */
.ap-carousel { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 22px) / 3); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 4px; }
.ap-carousel::-webkit-scrollbar { display: none; }
.ap-quote { scroll-snap-align: start; margin: 0; display: flex; flex-direction: column; padding: 30px 28px; border-radius: var(--ap-radius); background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .1); }
.ap-quote__stars { display: flex; gap: 3px; color: #ffc145; margin-bottom: 16px; }
.ap-quote__stars .ap-icon { width: 17px; height: 17px; }
.ap-quote blockquote { margin: 0 0 24px; color: #ebe9f8; font-size: 1.02rem; line-height: 1.6; }
.ap-quote blockquote p:last-child { margin: 0; }
.ap-quote figcaption { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.ap-quote figcaption strong { display: block; color: #fff; font-size: .95rem; }
.ap-quote figcaption small { color: #9e9ac0; font-size: .84rem; }
.ap-quote__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.ap-quote__avatar--initial { display: grid; place-items: center; background: linear-gradient(135deg, var(--ap-primary), var(--ap-accent)); color: #fff; font-family: var(--ap-font-head); font-weight: 700; }
.ap-carousel__nav { display: flex; gap: 8px; }
.ap-carousel__nav button { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .2); background: transparent; color: #fff; transition: .2s; }
.ap-carousel__nav button:hover { background: #fff; color: var(--ap-dark); }
.ap-google { position: relative; display: inline-flex; align-items: center; gap: 14px; margin-top: 32px; padding: 12px 20px 12px 12px; border-radius: 999px; background: #fff; color: var(--ap-ink); text-decoration: none; box-shadow: var(--ap-shadow); }
.ap-google__g { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: conic-gradient(#ea4335 0 25%, #fbbc05 0 50%, #34a853 0 75%, #4285f4 0); color: #fff; font: 700 1.1rem/1 var(--ap-font-head); }
.ap-google strong { display: inline-flex; align-items: center; gap: 4px; font-family: var(--ap-font-head); }
.ap-google strong .ap-icon { color: #f5a623; width: 16px; height: 16px; }
.ap-google small { display: block; color: var(--ap-muted); }
.ap-google > .ap-icon { width: 18px; height: 18px; }
@media (max-width: 1000px) { .ap-carousel { grid-auto-columns: calc((100% - 22px) / 2); } }
@media (max-width: 640px) { .ap-carousel { grid-auto-columns: 88%; } }

/* Solicitud / formulario ------------------------------------------------- */
.ap-cta-box { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.ap-cta-box__text p { color: var(--ap-muted); font-size: 1.08rem; margin: 18px 0 24px; }
.ap-checks { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 12px; }
.ap-checks li { display: flex; gap: 12px; align-items: center; font-weight: 500; color: var(--ap-ink); }
.ap-checks .ap-icon { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: color-mix(in srgb, var(--ap-primary) 12%, white); color: var(--ap-primary); stroke-width: 3; }
.ap-cta-box__form { padding: clamp(24px, 4vw, 40px); border-radius: 26px; background: #fff; border: 1px solid var(--ap-line); box-shadow: var(--ap-shadow); }
.ap-form { display: grid; gap: 16px; }
.ap-field label { display: block; margin-bottom: 6px; font-size: .9rem; font-weight: 600; color: var(--ap-ink); }
.ap-optional { color: var(--ap-muted); font-weight: 400; }
.ap-field input, .ap-field select, .ap-field textarea { width: 100%; padding: 13px 15px; border-radius: var(--ap-radius-sm); border: 1.5px solid var(--ap-line); background: #fbfbfe; font: inherit; font-size: 1rem; color: var(--ap-ink); transition: border-color .2s, box-shadow .2s, background-color .2s; }
.ap-field input:focus, .ap-field select:focus, .ap-field textarea:focus { outline: none; border-color: var(--ap-primary); background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--ap-primary) 15%, transparent); }
.ap-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ap-check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ap-muted); }
.ap-check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--ap-primary); flex: none; }
.ap-hp { position: absolute; left: -9999px; }
.ap-form-ok, .ap-form-error { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; margin-bottom: 18px; }
.ap-form-ok { background: #e7f8f0; color: #0b6b44; }
.ap-form-ok .ap-icon { width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: #18c37e; color: #fff; stroke-width: 3; }
.ap-form-ok p { margin: 2px 0 0; }
.ap-form-error { background: #fdecef; color: #9b1c33; }
@media (max-width: 900px) { .ap-cta-box { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .ap-field-row { grid-template-columns: 1fr; } }

/* Cabeceras de página / ficha de curso ----------------------------------- */
.ap-page-hero { padding-block: clamp(48px, 7vw, 88px) clamp(36px, 5vw, 56px); background: linear-gradient(180deg, color-mix(in srgb, var(--c1, var(--ap-primary)) 9%, white), #fff); }
.ap-page-hero--center { text-align: center; padding-block: 120px; }
.ap-page-hero--center .ap-page-hero__lead { margin-inline: auto; }
.ap-page-hero__title { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 14px; }
.ap-page-hero__lead { font-size: 1.12rem; color: var(--ap-muted); max-width: 640px; margin: 0; }

.ap-course-hero { padding-block: clamp(36px, 5vw, 64px) clamp(48px, 6vw, 80px); background: linear-gradient(180deg, color-mix(in srgb, var(--c1) 10%, white), #fff); }
.ap-course-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.ap-crumbs { font-size: .88rem; color: var(--ap-muted); margin-bottom: 22px; }
.ap-crumbs a { color: var(--ap-muted); text-decoration: none; }
.ap-crumbs a:hover { color: var(--ap-primary); }
.ap-course-hero__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 16px; }
.ap-course-hero__tags .ap-status { align-self: center; }
.ap-course-hero__title { font-size: clamp(2rem, 4.4vw, 3.25rem); font-weight: 800; letter-spacing: -.03em; }
.ap-course-hero__lead { font-size: 1.15rem; color: var(--ap-muted); margin-bottom: 28px; max-width: 600px; }
.ap-course-hero__media img { border-radius: 28px; box-shadow: var(--ap-shadow-lg); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
@media (max-width: 900px) { .ap-course-hero__grid { grid-template-columns: 1fr; } .ap-course-hero__media { order: -1; } }

.ap-course { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(32px, 5vw, 64px); padding-block: clamp(40px, 6vw, 72px); align-items: start; }
.ap-course__aside { position: sticky; top: calc(var(--ap-header-h) + 24px); }
.ap-facts { padding: 28px; border-radius: 24px; background: #fff; border: 1px solid var(--ap-line); box-shadow: var(--ap-shadow); display: grid; gap: 10px; }
.ap-facts__title { font-size: 1.15rem; margin-bottom: 6px; }
.ap-facts dl { margin: 0 0 12px; }
.ap-facts dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--ap-line); font-size: .94rem; }
.ap-facts dl > div:last-child { border-bottom: 0; }
.ap-facts dt { display: inline-flex; align-items: center; gap: 8px; color: var(--ap-muted); white-space: nowrap; }
.ap-facts dt .ap-icon { width: 17px; height: 17px; color: var(--c1, var(--ap-primary)); }
.ap-facts dd { margin: 0; font-weight: 600; color: var(--ap-ink); text-align: right; }
.ap-learn { padding: 30px; border-radius: 24px; background: var(--ap-tint); margin-bottom: 40px; }
.ap-learn h2 { font-size: 1.4rem; margin-bottom: 18px; }
.ap-learn ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px 24px; }
.ap-learn li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; color: var(--ap-ink); }
.ap-learn .ap-icon { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--ap-primary); color: #fff; stroke-width: 3; margin-top: 1px; }
@media (max-width: 960px) { .ap-course { grid-template-columns: 1fr; } .ap-course__aside { position: static; order: -1; } }

/* Contenido del editor --------------------------------------------------- */
.ap-prose > * + * { margin-top: 1.1em; }
.ap-prose h2 { font-size: 1.7rem; margin-top: 1.6em; }
.ap-prose h3 { font-size: 1.3rem; margin-top: 1.4em; }
.ap-prose ul, .ap-prose ol { padding-left: 1.3em; }
.ap-prose li + li { margin-top: .35em; }
.ap-prose img, .ap-prose .wp-block-image img { border-radius: var(--ap-radius-sm); }
.ap-prose blockquote { margin-inline: 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--ap-primary); font-size: 1.12rem; color: var(--ap-ink); }
.ap-prose .wp-block-button__link { border-radius: 999px; background: var(--ap-primary); font-family: var(--ap-font-head); font-weight: 600; }
.ap-prose > :first-child { margin-top: 0; }
.alignwide { margin-inline: calc(50% - min(50vw, 600px) + 24px); }
.alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; }

/* Paginación ------------------------------------------------------------- */
.nav-links { display: flex; justify-content: center; gap: 6px; margin-top: 48px; }
.page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--ap-line); text-decoration: none; color: var(--ap-ink); font-weight: 600; }
.page-numbers.current { background: var(--ap-ink); color: #fff; border-color: var(--ap-ink); }

/* Pie -------------------------------------------------------------------- */
.ap-footer { background: var(--ap-dark); color: #aaa6c8; padding-top: 80px; font-size: .95rem; }
.ap-footer a { color: #e5e3f5; text-decoration: none; }
.ap-footer a:hover { color: #fff; text-decoration: underline; }
.ap-footer__grid { display: grid; grid-template-columns: 1.2fr 1.1fr .8fr 1.3fr; gap: 40px; padding-bottom: 56px; }
.ap-footer__brand p { margin: 16px 0 20px; max-width: 280px; }
.ap-footer__title { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.ap-contact-list, .ap-footer__links, .ap-social, .ap-legal { list-style: none; margin: 0; padding: 0; }
.ap-contact-list { display: grid; gap: 12px; }
.ap-contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.ap-contact-list .ap-icon { width: 18px; height: 18px; margin-top: 3px; color: var(--ap-accent); }
.ap-footer__links { display: grid; gap: 10px; }
.ap-social { display: flex; gap: 8px; }
.ap-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgb(255 255 255 / .07); color: #fff; transition: .2s; }
.ap-social a:hover { background: var(--ap-primary); text-decoration: none; }
.ap-social .ap-icon { width: 18px; height: 18px; }
.ap-map { position: relative; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; background: #1d1940 radial-gradient(rgb(255 255 255 / .08) 1px, transparent 1px) 0 0 / 16px 16px; }
.ap-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ap-map__load { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; border: 0; background: transparent; color: #fff; text-align: center; }
.ap-map__load .ap-icon { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--ap-accent); box-shadow: 0 0 0 8px rgb(255 255 255 / .08); }
.ap-map__load strong { display: block; } .ap-map__load small { color: #9e9ac0; }
.ap-map__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 600; }
.ap-map__link .ap-icon { width: 16px; height: 16px; }
.ap-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding-block: 24px; border-top: 1px solid rgb(255 255 255 / .08); font-size: .86rem; }
.ap-legal { display: flex; flex-wrap: wrap; gap: 20px; }
@media (max-width: 1000px) { .ap-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ap-footer__grid { grid-template-columns: 1fr; } }

/* WhatsApp flotante ------------------------------------------------------ */
.ap-wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; align-items: center; gap: 10px; height: 58px; padding: 0 16px; border-radius: 999px; background: var(--ap-wa); color: #fff; text-decoration: none; box-shadow: 0 14px 30px -10px rgb(37 211 102 / .7); font-weight: 600; transition: transform .25s var(--ap-ease); }
.ap-wa-float:hover { transform: translateY(-3px) scale(1.03); }
.ap-wa-float .ap-icon { width: 28px; height: 28px; }
.ap-wa-float__label { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .4s var(--ap-ease); }
.ap-wa-float:hover .ap-wa-float__label, .ap-wa-float.is-intro .ap-wa-float__label { max-width: 200px; }
.ap-wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--ap-wa); animation: ap-ring 2.4s infinite; }
@keyframes ap-ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.35); opacity: 0; } }

/* Animación de entrada --------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ap-ease), transform .7s var(--ap-ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.js [data-reveal] { opacity: 1; transform: none; }
}

/* Textos resaltados con *asteriscos* ---------------------------------- */
.ap-hl { background: linear-gradient(100deg, var(--ap-primary), var(--ap-accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ap-section--dark .ap-hl { background: linear-gradient(100deg, color-mix(in srgb, var(--ap-primary) 50%, white), var(--ap-accent)); -webkit-background-clip: text; background-clip: text; }

/* Imágenes responsive ------------------------------------------------- */
.ap-hero__photo picture, .ap-hero__photo img { display: block; width: 100%; height: 100%; }
@media (max-width: 700px) {
	.ap-hero__photo { aspect-ratio: 1 / 1; transform: none; border-radius: 22px; }
	.ap-mock { transform: none; }
}

/* Tarjetas de público con imagen */
.ap-segment__body { display: flex; flex-direction: column; flex: 1; }
.ap-segment.has-image { padding: 0; }
.ap-segment.has-image .ap-segment__body { padding: 8px 28px 26px; }
.ap-segment__media { position: relative; display: block; aspect-ratio: 16 / 10; margin-bottom: 24px; }
.ap-segment__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ap-ease); }
.ap-segment:hover .ap-segment__media img { transform: scale(1.04); }
.ap-segment__media .ap-segment__icon { position: absolute; left: 28px; bottom: -24px; border: 4px solid #fff; width: 60px; height: 60px; }
.ap-segment.has-image:hover .ap-segment__media .ap-segment__icon { background: linear-gradient(140deg, var(--c1), var(--c2)); border-color: transparent; }
.ap-segment.has-image h3 { margin-top: 18px; }

/* Cabecera de público con imagen */
.ap-page-hero__grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.ap-page-hero__grid > * { min-width: 0; }
.has-image .ap-page-hero__grid { grid-template-columns: 1.15fr .85fr; }
.ap-page-hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; box-shadow: var(--ap-shadow-lg); }
@media (max-width: 900px) {
	.has-image .ap-page-hero__grid { grid-template-columns: 1fr; }
	.ap-page-hero__media { order: -1; }
	.ap-page-hero__media img { aspect-ratio: 16 / 9; }
}

/* Imagen en la sección de solicitud */
.ap-cta-box__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 22px; margin-bottom: 28px; box-shadow: var(--ap-shadow); }

/* Textos en móvil */
@media (max-width: 520px) {
	body { font-size: 1rem; }
	.ap-container { padding-inline: 18px; }
	.ap-section__head { margin-bottom: 32px; }
	.ap-segment { padding: 26px 22px 22px; }
	.ap-segment.has-image .ap-segment__body { padding: 8px 22px 22px; }
	.ap-segment__media .ap-segment__icon { left: 22px; }
	.ap-cta-box__form, .ap-facts, .ap-learn { padding: 22px; border-radius: 20px; }
	.ap-facts dl > div { flex-direction: column; gap: 2px; }
	.ap-facts dd { text-align: left; }
	.ap-wa-float { right: 14px; bottom: 14px; height: 54px; padding: 0 13px; }
}

/* Slider de portada ---------------------------------------------------- */
.ap-slider { position: relative; overflow: hidden; background: var(--ap-dark); color: #fff; isolation: isolate; touch-action: pan-y; }
.ap-slider__track { position: relative; display: grid; }
.ap-slide { grid-area: 1 / 1; position: relative; display: flex; align-items: center; min-height: clamp(540px, 82vh, 780px); opacity: 0; visibility: hidden; transition: opacity .9s var(--ap-ease), visibility 0s linear .9s; }
.ap-slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s var(--ap-ease), visibility 0s; z-index: 1; }
.ap-slide__bg { position: absolute; inset: 0; z-index: -2; }
.ap-slide__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 7s linear; }
.ap-slide.is-active .ap-slide__bg img { transform: scale(1); }
.ap-slide::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(17 14 38 / var(--o1)) 0%, rgb(17 14 38 / var(--o2)) 55%, rgb(17 14 38 / var(--o3)) 100%), linear-gradient(0deg, rgb(17 14 38 / .55), transparent 40%); }
.ap-slide.is-dark-suave { --o1: .55; --o2: .25; --o3: .05; }
.ap-slide.is-dark-medio { --o1: .78; --o2: .45; --o3: .15; }
.ap-slide.is-dark-fuerte { --o1: .9; --o2: .7; --o3: .5; }
.ap-slide.no-image { background: radial-gradient(circle at 80% 20%, color-mix(in srgb, var(--ap-primary) 70%, transparent), transparent 55%), radial-gradient(circle at 15% 90%, color-mix(in srgb, var(--ap-accent) 55%, transparent), transparent 50%), var(--ap-dark); }
.ap-slide__inner { position: relative; width: 100%; padding-block: 72px 120px; }
.ap-slide__content { max-width: 680px; }
.ap-slide.is-centro .ap-slide__content { margin-inline: auto; text-align: center; }
.ap-slide.is-centro .ap-hero__actions { justify-content: center; }
.ap-slide.is-centro::before { background: rgb(17 14 38 / calc(var(--o2) + .1)); }
.ap-slide__title { color: #fff; font-size: clamp(2.2rem, 5.4vw, 4.2rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; margin-bottom: 20px; text-shadow: 0 2px 30px rgb(0 0 0 / .25); }
.ap-slide__title .ap-hl { background: linear-gradient(100deg, color-mix(in srgb, var(--ap-accent) 85%, white), color-mix(in srgb, var(--ap-primary) 45%, white)); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.ap-slide__text { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgb(255 255 255 / .86); margin-bottom: 32px; max-width: 560px; }
.ap-slide.is-centro .ap-slide__text { margin-inline: auto; }
.ap-eyebrow--glass { background: rgb(255 255 255 / .12); border-color: rgb(255 255 255 / .22); color: #fff; backdrop-filter: blur(10px); box-shadow: none; }
.ap-btn--glass { --bg: rgb(255 255 255 / .12); --fg: #fff; border-color: rgb(255 255 255 / .35); backdrop-filter: blur(10px); }
.ap-btn--glass:hover { background: #fff; color: var(--ap-ink); box-shadow: none; }

/* Entrada del texto en cada cambio */
.ap-slide .ap-slide__content > * { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ap-ease), transform .7s var(--ap-ease); }
.ap-slide.is-active .ap-slide__content > * { opacity: 1; transform: none; }
.ap-slide.is-active .ap-slide__content > :nth-child(2) { transition-delay: .12s; }
.ap-slide.is-active .ap-slide__content > :nth-child(3) { transition-delay: .24s; }
.ap-slide.is-active .ap-slide__content > :nth-child(4) { transition-delay: .36s; }

/* Controles */
.ap-slider__controls { position: absolute; left: 0; right: 0; bottom: 32px; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 20px; pointer-events: none; }
.ap-slider__controls > * { pointer-events: auto; }
.ap-slider__dots { display: flex; gap: 8px; }
.ap-slider__dots button { position: relative; width: 34px; height: 30px; padding: 0; border: 0; background: none; }
.ap-slider__dots button span { position: absolute; left: 0; right: 0; top: 13px; height: 4px; border-radius: 4px; background: rgb(255 255 255 / .3); overflow: hidden; transition: background-color .3s; }
.ap-slider__dots button.is-active { width: 58px; }
.ap-slider__dots button span::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.ap-slider__dots button.is-active span::after { animation: ap-progress var(--ap-delay, 6000ms) linear forwards; }
.ap-slider.is-paused .ap-slider__dots button.is-active span::after { animation-play-state: paused; }
@keyframes ap-progress { to { transform: scaleX(1); } }
.ap-slider__arrows { display: flex; gap: 10px; }
.ap-slider__arrows button { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .35); background: rgb(255 255 255 / .08); color: #fff; backdrop-filter: blur(10px); transition: .2s; }
.ap-slider__arrows button:hover { background: #fff; color: var(--ap-ink); }

/* Slider debajo de la sección principal: bloque redondeado */
.ap-slider:not(.ap-slider--main) { width: calc(100% - 48px); max-width: calc(var(--ap-container) - 48px); margin: 0 auto clamp(24px, 4vw, 48px); border-radius: 28px; box-shadow: var(--ap-shadow-lg); }
.ap-slider:not(.ap-slider--main) .ap-slide { min-height: clamp(440px, 60vh, 560px); }
.ap-slider:not(.ap-slider--main) .ap-slide__inner { padding-inline: clamp(24px, 5vw, 64px); }
.ap-slider:not(.ap-slider--main) .ap-slider__controls { padding-inline: clamp(24px, 5vw, 64px); }

@media (max-width: 700px) {
	.ap-slide { min-height: max(560px, 86svh); align-items: flex-end; }
	.ap-slide::before { background: linear-gradient(0deg, rgb(17 14 38 / calc(var(--o1) + .1)) 0%, rgb(17 14 38 / var(--o2)) 55%, rgb(17 14 38 / var(--o3)) 100%); }
	.ap-slide__inner { padding-block: 56px 104px; }
	.ap-slider__arrows button { width: 44px; height: 44px; }
	.ap-slider__controls { bottom: 24px; }
	.ap-slider:not(.ap-slider--main) { width: calc(100% - 36px); border-radius: 22px; }
	.ap-slider:not(.ap-slider--main) .ap-slide { min-height: 520px; }
}
@media (prefers-reduced-motion: reduce) {
	.ap-slide__bg img { transform: none !important; }
	.ap-slide .ap-slide__content > * { opacity: 1; transform: none; }
}

/* Foto de la fachada en el pie */
.ap-fachada { position: relative; margin: 0 0 14px; border-radius: 18px; overflow: hidden; }
.ap-fachada img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.ap-fachada figcaption { position: absolute; left: 12px; bottom: 12px; padding: 5px 12px; border-radius: 999px; background: rgb(17 14 38 / .75); backdrop-filter: blur(6px); color: #fff; font-size: .8rem; font-weight: 600; }
.ap-fachada + .ap-map { aspect-ratio: 16 / 7; }
