/* ==========================================================================
   Amets Biotechnology · rediseño (maquetas Figma aprobadas, D33/D40)
   Paleta del logo (DESIGN_DIRECTION.md §2). Texto normal sobre pastel: --am-ink.
   Movimiento: suave, motivado, siempre desactivado con prefers-reduced-motion.
   ========================================================================== */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/poppins-300-latin.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400-latin.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500-latin.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600-latin.woff2") format("woff2"); }

:root {
	--am-white: #ffffff;
	--am-ink: #1d1d1d;
	--am-ink-soft: #4a4458;
	--am-purple: #6f5c9d;
	--am-purple-deep: #574883;
	--am-purple-grad: #ad97c8;
	--am-mauve: #b284ba;
	--am-pink: #e6a2b6;
	--am-pink-dot: #dd95c1;
	--am-pink-lav: #e9bfdb;
	--am-lilac: #e2dcef;
	--am-lilac-soft: #f6f3fb;
	--am-blue: #8dbae5;
	--am-blue-dot: #a0d4eb;
	--am-blue-light: #bbccea;
	--am-teal: #bde1e2;
	--am-peach: #fdf5e8;
	--am-mist: #fbf9fe;

	--am-font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--am-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
	--am-ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

	--am-gutter: clamp(20px, 4vw, 40px);
	--am-max: 1200px;
	--am-header-h: 84px;
	--am-section-y: clamp(72px, 9vw, 128px);
	--am-r-lg: 32px;
	--am-r-md: 20px;
	--am-petal: 6px 32px 32px 32px;
	--am-shadow: 0 24px 60px -28px rgb(87 72 131 / 0.28);
}

/* Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--am-header-h) + 72px); }
body { margin: 0; font-family: var(--am-font); font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem); line-height: 1.6; color: var(--am-ink); background: var(--am-white); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--am-purple); text-underline-offset: 0.18em; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.15; }
p, ul, ol, figure, dl, blockquote { margin: 0; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--am-purple); outline-offset: 3px; border-radius: 6px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.am-skip { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 12px 20px; border-radius: 999px; background: var(--am-purple); color: var(--am-white); font-weight: 500; text-decoration: none; }
.am-skip:focus { top: 12px; }
.am-container { position: relative; z-index: 2; width: 100%; max-width: calc(var(--am-max) + 2 * var(--am-gutter)); margin-inline: auto; padding-inline: var(--am-gutter); }
.am-center { text-align: center; }
.am-icon { width: 1em; height: 1em; flex: none; }

/* Tipografía y botones --------------------------------------------------- */
.am-h2 { font-size: clamp(2rem, 1.4rem + 2vw, 2.875rem); font-weight: 300; letter-spacing: -0.02em; line-height: 1.12; color: var(--am-purple); }
.am-h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 300; letter-spacing: -0.01em; color: var(--am-purple); }
.am-lead { max-width: 62ch; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); font-weight: 300; line-height: 1.6; }
.am-section-head { display: grid; gap: 16px; margin-bottom: clamp(36px, 4vw, 56px); }

.am-button {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px;
	padding: 13px 28px; border: 1.5px solid var(--am-purple); border-radius: 999px;
	background: var(--am-purple); color: var(--am-white); font-weight: 500; text-decoration: none; cursor: pointer;
	transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, transform 160ms var(--am-ease-out);
}
.am-button:active { transform: scale(0.97); }
.am-button--ghost { background: rgb(255 255 255 / 0.65); color: var(--am-purple); }
@media (hover: hover) and (pointer: fine) {
	.am-button:hover { background: var(--am-purple-deep); border-color: var(--am-purple-deep); }
	.am-button--ghost:hover { background: var(--am-white); color: var(--am-purple-deep); }
}
.am-link { font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; }
.am-link--icon { display: inline-flex; align-items: center; gap: 8px; }
.am-link--icon .am-icon { width: 20px; height: 20px; }


/* Provisional, avisos y banners ------------------------------------------ */
.am-provisional { display: inline-flex; align-items: center; gap: 6px; width: fit-content; margin-top: 10px; padding: 2px 10px; border: 1px dashed var(--am-mauve); border-radius: 8px; background: var(--am-white); color: var(--am-ink); font-size: 0.75rem; font-weight: 500; }
.am-provisional::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--am-pink-dot); }
.am-editor-note { width: calc(100% - 2 * var(--am-gutter)); max-width: var(--am-max); margin: 24px auto; padding: 12px 16px; border: 1px dashed var(--am-mauve); border-radius: 8px; background: var(--am-lilac-soft); font-size: 0.875rem; }
.am-preview-bar { margin: 0; padding: 6px var(--am-gutter); background: var(--am-lilac-soft); border-bottom: 1px dashed var(--am-mauve); font-size: 0.8125rem; font-weight: 500; text-align: center; }
.am-review-banner { position: relative; z-index: 3; margin: var(--am-header-h) 0 0; padding: 10px var(--am-gutter); background: var(--am-ink); color: var(--am-white); font-size: 0.875rem; font-weight: 500; text-align: center; }
.am-review-banner + .am-page-hero { padding-top: clamp(48px, 6vw, 88px); }

/* Fondos en degradado y AAV ---------------------------------------------- */
.am-gradient { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.am-gradient i { position: absolute; border-radius: 50%; }
.am-gradient i:nth-child(1) { width: 60vw; height: 60vw; left: -18vw; top: -24vw; background: radial-gradient(closest-side, var(--g1, rgb(226 220 239 / 0.95)), transparent); }
.am-gradient i:nth-child(2) { width: 55vw; height: 55vw; right: -14vw; top: -22vw; background: radial-gradient(closest-side, var(--g2, rgb(233 191 219 / 0.6)), transparent); }
.am-gradient i:nth-child(3) { width: 60vw; height: 60vw; right: -20vw; bottom: -30vw; background: radial-gradient(closest-side, var(--g3, rgb(187 204 234 / 0.75)), transparent); }
.am-gradient i:nth-child(4) { width: 50vw; height: 50vw; left: 10vw; bottom: -30vw; background: radial-gradient(closest-side, var(--g4, rgb(253 245 232 / 1)), transparent); }
.am-gradient--hero { background: var(--am-mist); --g2: rgb(233 191 219 / 0.7); --g3: rgb(187 204 234 / 0.85); }
.am-gradient--soft { --g1: rgb(226 220 239 / 0.7); --g2: rgb(189 225 226 / 0.45); --g3: rgb(187 204 234 / 0.45); --g4: rgb(253 245 232 / 0.9); }
.am-gradient--warm { --g1: rgb(253 245 232 / 1); --g2: rgb(233 191 219 / 0.5); --g3: rgb(226 220 239 / 0.6); --g4: rgb(253 245 232 / 0.8); }
.am-gradient--cool { --g1: rgb(187 204 234 / 0.6); --g2: rgb(189 225 226 / 0.6); --g3: rgb(226 220 239 / 0.8); --g4: rgb(233 191 219 / 0.35); }
/* Sin cortes entre secciones: el degradado se funde con el blanco arriba y abajo
   (en las cabeceras, solo abajo, porque arriba queda bajo el menú). */
.am-section > .am-gradient { --fade: min(160px, 22%); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent); mask-image: linear-gradient(to bottom, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent); }
.am-hero > .am-gradient, .am-page-hero > .am-gradient { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - min(180px, 26%)), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - min(180px, 26%)), transparent); }

.am-aav-field { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.am-aav-field--full { position: fixed; z-index: 1; }
.am-aav { position: absolute; display: block; will-change: transform; }
.am-aav img { width: 100%; height: auto; }
.am-aav--xl { width: clamp(220px, 30vw, 440px); }
.am-aav--lg { width: clamp(180px, 22vw, 320px); }
.am-aav--md { width: clamp(110px, 12vw, 180px); }
.am-aav--sm { width: clamp(64px, 7vw, 100px); }
.am-aav--xs { width: clamp(40px, 4.5vw, 64px); }
.am-aav--blur { filter: blur(14px); opacity: 0.55; }
.am-aav--soft { filter: blur(3px); opacity: 0.7; }
.am-aav-field--hero .am-aav--n1 { right: 4%; top: 16%; }
.am-aav-field--hero .am-aav--n2 { right: 12%; top: 58%; }
.am-aav-field--hero .am-aav--n3 { right: 42%; top: 72%; }
.am-aav-field--hero .am-aav--n4 { right: 3%; top: 12%; }
.am-aav-field--page .am-aav--n1 { right: -3%; top: 8%; opacity: 0.4; }
.am-aav-field--page .am-aav--n2 { right: 24%; bottom: 10%; }
.am-aav-field--full .am-aav--n1 { left: -5%; top: 34%; }
.am-aav-field--full .am-aav--n2 { right: 7%; top: 16%; }
.am-aav-field--full .am-aav--n3 { right: 34%; bottom: 10%; }
.am-aav-field--full .am-aav--n4 { left: 34%; top: 74%; }
.am-aav-field--full .am-aav--n5 { right: -4%; bottom: -6%; }
.am-dot { position: absolute; border-radius: 50%; }
.am-dot--pink { width: 18px; height: 18px; right: 46%; top: 22%; background: var(--am-pink-dot); }
.am-dot--blue { width: 10px; height: 10px; right: 44%; top: 30%; background: var(--am-blue-dot); }
.am-dot--teal { width: 16px; height: 16px; right: 20%; bottom: 14%; background: var(--am-teal); }
.am-dot--lilac { width: 12px; height: 12px; right: 6%; top: 44%; background: var(--am-purple-grad); }
.am-aav-field--page .am-dot--pink, .am-aav-field--page .am-dot--blue { right: 30%; }

/* Movimiento orgánico: pequeños desplazamientos y giros con varios puntos, sin trayectorias circulares. */
@media (prefers-reduced-motion: no-preference) {
	.am-aav--n1 { animation: am-drift-a 26s ease-in-out infinite alternate; }
	.am-aav--n2 { animation: am-drift-b 19s ease-in-out infinite alternate; }
	.am-aav--n3 { animation: am-drift-c 23s ease-in-out infinite alternate; }
	.am-aav--n4 { animation: am-drift-b 17s ease-in-out -6s infinite alternate-reverse; }
	.am-aav--n5 { animation: am-drift-a 30s ease-in-out -10s infinite alternate-reverse; }
	.am-dot { animation: am-bob 9s ease-in-out infinite alternate; }
	.am-dot--blue { animation-duration: 7s; animation-delay: -3s; }
	.am-dot--teal { animation-duration: 11s; animation-delay: -5s; }
}
@keyframes am-drift-a { 0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); } 30% { transform: translate3d(-14px, 10px, 0) rotate(-6deg) scale(1.02); } 65% { transform: translate3d(8px, 22px, 0) rotate(4deg) scale(0.99); } 100% { transform: translate3d(18px, -8px, 0) rotate(9deg) scale(1.01); } }
@keyframes am-drift-b { 0% { transform: translate3d(0, 0, 0) rotate(0deg); } 40% { transform: translate3d(12px, -16px, 0) rotate(10deg); } 75% { transform: translate3d(-6px, -6px, 0) rotate(-4deg); } 100% { transform: translate3d(-14px, 12px, 0) rotate(-12deg); } }
@keyframes am-drift-c { 0% { transform: translate3d(0, 0, 0) rotate(0deg); } 35% { transform: translate3d(-10px, -12px, 0) rotate(-8deg); } 70% { transform: translate3d(12px, -4px, 0) rotate(6deg); } 100% { transform: translate3d(4px, 14px, 0) rotate(14deg); } }
@keyframes am-bob { 0% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(6px, -10px, 0); } 100% { transform: translate3d(-4px, 6px, 0); } }

/* Aparición al hacer scroll (solo con JS; sin JS todo está visible) ------- */
@media (prefers-reduced-motion: no-preference) {
	.am-js .am-reveal { opacity: 0; transform: translate3d(0, 22px, 0); transition: opacity 700ms ease-out calc(var(--d, 0) * 90ms), transform 800ms var(--am-ease-out) calc(var(--d, 0) * 90ms), translate 300ms var(--am-ease-out), box-shadow 300ms ease; }
	.am-js .am-reveal.is-visible { opacity: 1; transform: none; }
}

/* Cabecera ---------------------------------------------------------------- */
.am-header { position: fixed; inset: 0 0 auto 0; z-index: 50; background: rgb(255 255 255 / 0.38); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); border-bottom: 1px solid rgb(255 255 255 / 0.5); transition: background-color 250ms ease, border-color 250ms ease, box-shadow 250ms ease; }
.am-header.is-scrolled { background: rgb(255 255 255 / 0.96); border-bottom-color: var(--am-lilac); box-shadow: 0 10px 30px -24px rgb(87 72 131 / 0.4); }
.am-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: calc(var(--am-max) + 2 * var(--am-gutter)); height: var(--am-header-h); margin-inline: auto; padding-inline: var(--am-gutter); }
.am-header__brand { display: block; flex: none; border-radius: 10px; }
.am-header__logo { width: auto; height: 72px; mix-blend-mode: multiply; transition: height 300ms var(--am-ease-out); }
.am-header.is-scrolled .am-header__logo { height: 54px; }
.am-nav { display: flex; align-items: center; gap: 28px; }
.am-nav__list, .am-lang { display: flex; align-items: center; gap: 4px 30px; margin: 0; padding: 0; list-style: none; }
.am-nav a, .am-lang a { color: var(--am-ink); font-weight: 500; text-decoration: none; }
.am-nav__item { position: relative; display: flex; align-items: center; }
.am-nav__link { padding-block: 10px; }
.am-nav__link[aria-current="page"] { color: var(--am-purple); box-shadow: inset 0 -2px 0 var(--am-purple); }
.am-nav__sub-toggle { display: inline-grid; place-items: center; width: 26px; height: 44px; padding: 0; border: 0; background: none; color: var(--am-ink); cursor: pointer; }
.am-nav__sub-toggle::before { content: ""; width: 7px; height: 7px; margin-top: -4px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform 200ms var(--am-ease-out); }
.am-nav__sub-toggle[aria-expanded="true"]::before { transform: translateY(4px) rotate(-135deg); }
.am-nav__sub { display: none; margin: 0; padding: 10px; list-style: none; background: rgb(255 255 255 / 0.97); border: 1px solid var(--am-lilac); border-radius: 20px; box-shadow: var(--am-shadow); }
.am-nav__sub a { display: block; padding: 9px 14px; border-radius: 12px; font-weight: 400; white-space: nowrap; }
.am-nav__item.is-open > .am-nav__sub { display: block; }
.am-nav__cta { min-height: 44px; padding: 9px 24px; }
.am-nav .am-nav__cta { color: var(--am-white); }
.am-lang { gap: 12px; padding-left: 20px; border-left: 1px solid var(--am-lilac); }
@media (hover: hover) and (pointer: fine) {
	.am-nav__link:hover, .am-lang a:hover { color: var(--am-purple); }
	.am-nav__sub a:hover { background: var(--am-lilac-soft); color: var(--am-purple); }
}
@media (min-width: 1081px) {
	.am-nav__sub { position: absolute; top: calc(100% + 6px); left: -16px; min-width: 250px; z-index: 60; }
	.am-nav__item:hover > .am-nav__sub, .am-nav__item:focus-within > .am-nav__sub { display: block; animation: am-pop 180ms var(--am-ease-out); }
	.am-nav__item.has-children::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }
}
@keyframes am-pop { from { opacity: 0; transform: translateY(-4px) scale(0.98); } to { opacity: 1; transform: none; } }

.am-header__toggle { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 8px 4px; border: 0; background: none; color: var(--am-ink); font-weight: 500; cursor: pointer; }
.am-header__toggle-icon { position: relative; width: 22px; height: 2px; background: currentColor; }
.am-header__toggle-icon::before, .am-header__toggle-icon::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: currentColor; transition: transform 220ms var(--am-ease-out); }
.am-header__toggle-icon::before { transform: translateY(-7px); }
.am-header__toggle-icon::after { transform: translateY(7px); }
.am-header__toggle[aria-expanded="true"] .am-header__toggle-icon { background: transparent; }
.am-header__toggle[aria-expanded="true"] .am-header__toggle-icon::before { transform: rotate(45deg); }
.am-header__toggle[aria-expanded="true"] .am-header__toggle-icon::after { transform: rotate(-45deg); }

@media (max-width: 1080px) {
	:root { --am-header-h: 72px; }
	.am-header__logo { height: 58px; }
	.am-header.is-scrolled .am-header__logo, .am-header.is-menu .am-header__logo { height: 46px; }
	.am-header__toggle { display: inline-flex; }
	/* Altura explícita: el backdrop-filter de la cabecera convierte a la cabecera en el bloque contenedor del panel fijo, y con inset abajo el panel quedaba sin altura. */
	.am-nav { position: fixed; inset: var(--am-header-h) 0 auto 0; height: calc(100vh - var(--am-header-h)); height: calc(100dvh - var(--am-header-h)); z-index: 49; flex-direction: column; align-items: stretch; gap: 20px; padding: 24px var(--am-gutter) 40px; background: var(--am-white); overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity 200ms ease, transform 220ms var(--am-ease-out), visibility 0s linear 220ms; }
	.am-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity 200ms ease, transform 220ms var(--am-ease-out); }
	.am-nav__list { flex-direction: column; align-items: stretch; gap: 0; font-size: 1.25rem; }
	.am-nav__item { flex-wrap: wrap; justify-content: space-between; border-bottom: 1px solid var(--am-lilac-soft); }
	.am-nav__link { padding-block: 14px; }
	.am-nav__sub-toggle { width: 44px; }
	.am-nav__sub { width: 100%; margin-bottom: 10px; border: 0; box-shadow: none; background: var(--am-lilac-soft); font-size: 1rem; }
	.am-nav__cta { align-self: flex-start; }
	.am-lang { padding: 16px 0 0; border-left: 0; }
	body.am-nav-open { overflow: hidden; }
	.am-header.is-menu { background: var(--am-white); }
}

/* Hero de portada -------------------------------------------------------- */
.am-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: 100vh; min-height: 100svh; padding: calc(var(--am-header-h) + clamp(24px, 5vh, 64px)) 0 clamp(40px, 7vh, 96px); }
.am-hero__inner { display: grid; justify-items: start; gap: clamp(18px, 3vh, 28px); }
/* El título se ajusta al ancho y también al alto de la ventana para que el hero quepa entero en un portátil. */
.am-hero__title { max-width: 18ch; font-size: clamp(2.25rem, min(1.2rem + 3vw, 7.4vh), 4rem); font-weight: 300; line-height: 1.08; letter-spacing: -0.03em; color: var(--am-purple); }
.am-hero__lead { max-width: 52ch; font-size: clamp(1.0625rem, min(0.95rem + 0.45vw, 2.6vh), 1.3125rem); font-weight: 300; line-height: 1.55; }
.am-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
@media (max-width: 760px) {
	.am-aav-field--hero .am-aav--n1 { right: -20%; top: 4%; opacity: 0.35; }
	.am-aav-field--hero .am-aav--n2 { right: 4%; top: auto; bottom: 4%; }
	.am-aav-field--hero .am-aav--n3, .am-aav-field--hero .am-dot--pink, .am-aav-field--hero .am-dot--blue { display: none; }
}

/* Cabecera de páginas interiores ----------------------------------------- */
.am-page-hero { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--am-header-h) + clamp(48px, 6vw, 96px)) 0 clamp(56px, 6vw, 88px); }
.am-page-hero__inner { display: grid; gap: 18px; }
.am-page-hero__title { max-width: 22ch; font-size: clamp(2.25rem, 1.5rem + 2.8vw, 3.75rem); font-weight: 300; line-height: 1.08; letter-spacing: -0.025em; color: var(--am-purple); }
.am-page-hero__lead { max-width: 60ch; font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem); font-weight: 300; }

/* Secciones --------------------------------------------------------------- */
.am-section { position: relative; isolation: isolate; overflow: hidden; padding-block: var(--am-section-y); }
.am-main > .am-page:first-child, .am-main > .am-single:first-child { margin-top: var(--am-header-h); }
.am-intro { padding-top: clamp(40px, 5vw, 64px); }

/* Claves (tarjetas pastel con icono) */
.am-keys__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.am-key { display: flex; flex-direction: column; gap: 14px; min-height: 280px; padding: 30px 28px 32px; border-radius: var(--am-petal); background: var(--am-lilac); }
.am-key--peach { background: var(--am-peach); }
.am-key--lilac { background: var(--am-lilac); }
.am-key--blue { background: var(--am-blue-light); }
.am-key--teal { background: var(--am-teal); }
.am-key__icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: rgb(255 255 255 / 0.85); color: var(--am-purple); font-size: 28px; flex: none; }
.am-key__icon--tint { background: var(--am-lilac-soft); }
.am-key__top { display: flex; align-items: center; gap: 16px; }
.am-key__figure { font-size: clamp(2.25rem, 1.9rem + 1.2vw, 2.875rem); font-weight: 300; line-height: 1; letter-spacing: -0.03em; color: var(--am-purple); }
.am-key__title { font-size: 1.1875rem; font-weight: 500; line-height: 1.3; }
.am-key__text { font-size: 0.9375rem; color: var(--am-ink-soft); }

/* Borde degradado de la paleta que aparece en hover (anillo con máscara, respeta el radio de cada tarjeta).
   --fill: además, un velo de degradado suave detrás del contenido. */
.am-glow { position: relative; isolation: isolate; }
.am-glow::before, .am-glow--fill::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 350ms ease; }
.am-glow::before { z-index: 1; padding: 2px; background: linear-gradient(135deg, var(--am-purple-grad), var(--am-pink-dot) 40%, var(--am-blue) 75%, var(--am-teal)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.am-glow--fill::after { z-index: -1; background: linear-gradient(140deg, var(--am-lilac-soft), #fbeef4 45%, #eef4fb 80%, #eef8f8); }
@media (hover: hover) and (pointer: fine) {
	.am-key, .am-card-soft { transition: translate 300ms var(--am-ease-out), box-shadow 300ms ease, opacity 700ms ease-out, transform 800ms var(--am-ease-out); }
	.am-key:hover, .am-card-soft:hover { translate: 0 -4px; box-shadow: var(--am-shadow); }
	.am-glow:hover::before, .am-glow--fill:hover::after { opacity: 1; }
	.am-card-soft:hover .am-key__icon { background: var(--am-white); }
}
@media (max-width: 1080px) { .am-keys__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .am-keys__grid { grid-template-columns: 1fr; } .am-key { min-height: 0; } }

/* Tarjetas con persiana (A disease without answers) */
.am-answers__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.am-flip { position: relative; min-height: 260px; overflow: hidden; border-radius: var(--am-r-lg); background: rgb(255 255 255 / 0.85); border: 1px solid var(--am-lilac); }
.am-flip--problem { background: var(--am-purple-deep); border-color: var(--am-purple-deep); border-top-left-radius: 6px; color: var(--am-white); }
.am-flip--dose { background: var(--am-teal); border-color: var(--am-teal); }
.am-flip__toggle { position: relative; z-index: 2; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; width: 100%; padding: 30px 32px; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.am-flip__icon { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: rgb(255 255 255 / 0.85); color: var(--am-purple); font-size: 26px; }
.am-flip--problem .am-flip__icon { background: rgb(255 255 255 / 0.14); color: var(--am-pink-lav); }
.am-flip__title { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem); font-weight: 500; line-height: 1.25; }
.am-flip--problem .am-flip__title { color: var(--am-pink-lav); }
.am-flip__plus { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid currentColor; font-size: 20px; transition: transform 350ms var(--am-ease-out); }
.am-flip.is-open .am-flip__plus { transform: rotate(45deg); }
.am-flip__panel { position: absolute; inset: 104px 0 0; z-index: 1; padding: 6px 32px 32px; font-size: 1.0625rem; font-weight: 300; line-height: 1.6; }
.am-js .am-flip__panel { transform: translateY(102%); transition: transform 520ms var(--am-ease-out); }
.am-js .am-flip.is-open .am-flip__panel { transform: none; }
.am-js .am-flip__panel { background: inherit; }
.am-flip__hint { position: absolute; left: 32px; bottom: 28px; z-index: 0; display: inline-flex; align-items: center; gap: 8px; font-size: 0.875rem; font-weight: 500; opacity: 0.75; transition: opacity 300ms ease; }
.am-flip__hint .am-icon { width: 18px; height: 18px; }
.am-flip.is-open .am-flip__hint { opacity: 0; }
.am-flip--problem .am-flip__panel { color: var(--am-white); }
.am-js .am-flip:not(.is-open) .am-flip__panel { visibility: hidden; transition: transform 520ms var(--am-ease-out), visibility 0s linear 520ms; }
@media (hover: hover) and (pointer: fine) { .am-flip:hover { translate: 0 -3px; } }
@media (max-width: 760px) { .am-answers__grid { grid-template-columns: 1fr; } .am-flip { min-height: 230px; } }

/* Validación */
.am-validation__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.am-card-soft { display: grid; align-content: start; gap: 14px; padding: 32px 30px 36px; border: 1px solid var(--am-lilac); border-radius: var(--am-r-lg); background: rgb(255 255 255 / 0.9); }
.am-card-soft__title { font-size: 1.3125rem; font-weight: 500; }
.am-card-soft p { color: var(--am-ink-soft); }
.am-key__icon { transition: background-color 300ms ease; }
@media (max-width: 900px) { .am-validation__grid { grid-template-columns: 1fr; } }
/* Validación y plan de desarrollo se leen juntos: menos aire entre ambos. */
.am-validation { padding-bottom: clamp(24px, 3vw, 40px); }

/* Hoja de ruta: línea de tiempo horizontal -------------------------------- */
.am-timeline { --tl-dot: 18px; }
.am-timeline__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--am-gutter); scrollbar-width: none; margin-inline: calc(-1 * var(--am-gutter)); padding: 18px var(--am-gutter) 8px; outline-offset: -3px; }
.am-timeline__viewport::-webkit-scrollbar { display: none; }
.am-timeline__list { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); margin: 0; padding: 0; list-style: none; }
.am-timeline__item { position: relative; display: grid; align-content: start; gap: 16px; padding-right: 22px; scroll-snap-align: start; }
.am-timeline__rail { position: relative; display: flex; align-items: center; height: 32px; }
.am-timeline__rail::before, .am-timeline__rail::after { content: ""; position: absolute; left: var(--tl-dot); right: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 3px; }
.am-timeline__rail { margin-right: -22px; }
.am-timeline__rail::before { background: var(--am-lilac); }
.am-timeline__rail::after { background: linear-gradient(90deg, var(--am-purple), var(--am-mauve) 55%, var(--am-pink-dot)); transform-origin: left; }
.am-timeline__item.is-now .am-timeline__rail::after { background: linear-gradient(90deg, var(--am-pink-dot), var(--am-blue) 60%, transparent); }
.am-timeline__item.is-next .am-timeline__rail::after, .am-timeline__item:last-child .am-timeline__rail::before, .am-timeline__item:last-child .am-timeline__rail::after { display: none; }
.am-timeline__dot { position: relative; z-index: 1; flex: none; width: var(--tl-dot); height: var(--tl-dot); border-radius: 50%; border: 3px solid var(--am-purple-grad); background: var(--am-white); }
.am-timeline__item.is-done .am-timeline__dot { border-color: var(--am-purple); background: var(--am-purple); box-shadow: inset 0 0 0 3px var(--am-white); }
.am-timeline__item.is-now .am-timeline__dot { width: 26px; height: 26px; margin-left: -4px; border: 0; background: linear-gradient(135deg, var(--am-purple), var(--am-pink-dot)); box-shadow: 0 0 0 6px rgb(233 191 219 / 0.55); }
.am-timeline__body { display: grid; align-content: start; gap: 6px; }
.am-timeline__year { font-size: clamp(1.75rem, 1.5rem + 0.8vw, 2.25rem); font-weight: 300; line-height: 1.05; letter-spacing: -0.02em; color: var(--am-purple); }
.am-timeline__title { font-size: 1rem; font-weight: 600; line-height: 1.3; }
.am-timeline__text { font-size: 0.9375rem; line-height: 1.55; color: var(--am-ink-soft); }
.am-timeline__item.is-next .am-timeline__year { color: var(--am-purple-grad); }
/* "We are here": tarjeta con el degradado suave de la paleta y píldora de color. */
.am-timeline__item.is-now .am-timeline__body { margin: -12px -10px 0 -16px; padding: 12px 10px 18px 16px; border-radius: 6px 24px 24px 24px; background: linear-gradient(150deg, #fbeef4, var(--am-lilac-soft) 50%, #eaf4f8); }
.am-timeline__item.is-now .am-timeline__year { font-weight: 500; color: var(--am-purple-deep); }
.am-timeline__here { width: fit-content; margin-bottom: 4px; padding: 4px 12px; border-radius: 999px; background: linear-gradient(90deg, var(--am-purple), var(--am-mauve) 60%, var(--am-pink-dot)); color: var(--am-white); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; }
.am-timeline__controls { display: flex; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--am-lilac); }
.am-timeline__controls[hidden] { display: none; }
.am-timeline__arrow { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--am-lilac); border-radius: 50%; background: var(--am-white); color: var(--am-purple); font-size: 20px; cursor: pointer; transition: border-color 200ms ease, opacity 200ms ease; }
.am-timeline__arrow[data-dir="-1"] .am-icon { transform: scaleX(-1); }
.am-timeline__arrow:disabled { opacity: 0.4; cursor: default; }
@media (hover: hover) and (pointer: fine) { .am-timeline__arrow:not(:disabled):hover { border-color: var(--am-purple); } }
@media (prefers-reduced-motion: no-preference) {
	.am-js .am-timeline__rail::after { transform: scaleX(0); transition: transform 700ms var(--am-ease-in-out) calc(200ms + var(--i) * 260ms); }
	.am-js .am-timeline.is-drawn .am-timeline__rail::after { transform: none; }
	.am-js .am-timeline__dot, .am-js .am-timeline__body { opacity: 0; transform: translateY(10px); transition: opacity 500ms ease calc(var(--i) * 200ms), transform 600ms var(--am-ease-out) calc(var(--i) * 200ms); }
	.am-js .am-timeline.is-drawn .am-timeline__dot, .am-js .am-timeline.is-drawn .am-timeline__body { opacity: 1; transform: none; }
	.am-timeline__item.is-now .am-timeline__dot::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid var(--am-pink-dot); animation: am-pulse 2.4s ease-out infinite; }
}
@keyframes am-pulse { from { transform: scale(0.7); opacity: 0.9; } to { transform: scale(1.5); opacity: 0; } }

/* Expertise: fotos circulares desde el CPT */
.am-people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 28px; margin: 0 0 48px; padding: 0; list-style: none; }
.am-person { display: grid; align-content: start; gap: 6px; }
.am-person .am-member__media { width: min(220px, 100%); aspect-ratio: 1; margin-bottom: 14px; border-radius: 50%; background: var(--am-lilac); overflow: hidden; }
.am-person:nth-child(4n+2) .am-member__media { background: var(--am-peach); }
.am-person:nth-child(4n+3) .am-member__media { background: var(--am-blue-light); }
.am-person:nth-child(4n+4) .am-member__media { background: var(--am-teal); }
.am-person__name { font-size: 1.1875rem; font-weight: 500; }
.am-person__role { font-size: 0.9375rem; font-weight: 500; color: var(--am-purple); }
.am-person__bio { font-size: 0.9375rem; color: var(--am-ink-soft); }
@media (max-width: 1080px) { .am-people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .am-people { grid-template-columns: 1fr; } }

/* Logos de partners */
.am-partners .am-h3 { margin-bottom: 28px; }
.am-logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.am-logos__item { display: flex; align-items: center; justify-content: center; min-height: 112px; padding: 20px 24px; border: 1px solid var(--am-lilac); border-radius: var(--am-r-md); background: var(--am-white); }
.am-logos__link { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 72px; text-decoration: none; }
.am-logos__img { width: auto; max-width: 190px; max-height: 64px; object-fit: contain; filter: grayscale(1); opacity: 0.8; transition: filter 250ms ease, opacity 250ms ease; }
.am-logos__name { font-size: 1.0625rem; font-weight: 500; text-align: center; color: var(--am-ink); }
.am-logos__link:focus-visible .am-logos__img { filter: none; opacity: 1; }
@media (hover: hover) and (pointer: fine) { .am-logos__link:hover .am-logos__img { filter: none; opacity: 1; } }

/* Bloque de contacto (Join us) */
.am-connect__panel { position: relative; isolation: isolate; overflow: hidden; padding: clamp(40px, 6vw, 80px); border-radius: 40px; }
.am-connect__inner { position: relative; z-index: 2; display: grid; gap: 22px; max-width: 760px; }
.am-connect__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
.am-connect__card { display: grid; gap: 8px; padding: 24px; border: 1px solid rgb(255 255 255 / 0.75); border-radius: var(--am-r-md); background: rgb(255 255 255 / 0.32); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.am-connect__card h3 { font-size: 1.25rem; font-weight: 500; }
@media (max-width: 640px) { .am-connect__cards { grid-template-columns: 1fr; } }

/* About: subnavegación fija ---------------------------------------------- */
.am-subnav { position: sticky; top: var(--am-header-h); z-index: 30; background: rgb(255 255 255 / 0.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--am-lilac); }
.am-subnav__inner { display: flex; gap: 10px; padding-block: 14px; overflow-x: auto; }
.am-subnav__link { flex: none; padding: 9px 20px; border-radius: 999px; background: var(--am-lilac-soft); color: var(--am-ink); font-weight: 500; text-decoration: none; transition: background-color 250ms ease, color 250ms ease; }
.am-subnav__link.is-active { background: var(--am-purple); color: var(--am-white); }

/* Equipo (tarjetas pétalo + modal) */
.am-team__group + .am-team__group { margin-top: var(--am-section-y); }
.am-team__group .am-h2 { margin-bottom: 14px; }
.am-team__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 26px; margin-top: 32px; }
@media (max-width: 1080px) { .am-team__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .am-team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .am-team__grid { grid-template-columns: 1fr; } }
.am-member { position: relative; display: grid; align-content: start; gap: 6px; }
.am-member__media { aspect-ratio: 4 / 5; margin-bottom: 12px; overflow: hidden; isolation: isolate; border-radius: 6px 32px 32px 32px; background: var(--am-lilac); }
.am-member--peach .am-member__media, .am-member__media.am-member--peach { background: var(--am-peach); }
.am-member--blue .am-member__media, .am-member__media.am-member--blue { background: var(--am-blue-light); }
.am-member--teal .am-member__media, .am-member__media.am-member--teal { background: var(--am-teal); }
.am-member__img { width: 100%; height: 100%; object-fit: cover; transform: scale(1) translateZ(0); backface-visibility: hidden; will-change: transform; transition: transform 600ms var(--am-ease-out); }
.am-avatar { width: 100%; height: 100%; }
.am-avatar__shape { fill: var(--am-purple-grad); opacity: 0.55; }
.am-avatar__dot { fill: var(--am-white); opacity: 0.7; }
.am-member__name { font-size: 1.125rem; font-weight: 500; }
.am-member__open { padding: 0; border: 0; background: none; color: inherit; font-weight: 500; text-align: left; cursor: pointer; }
.am-member__open::after { content: ""; position: absolute; inset: 0; border-radius: 32px; }
.am-member__open:focus-visible { outline: none; }
.am-member:has(.am-member__open:focus-visible) { outline: 3px solid var(--am-purple); outline-offset: 6px; border-radius: 12px; }
.am-member__credentials { font-weight: 400; }
.am-member__position { font-size: 0.9375rem; font-weight: 500; color: var(--am-purple); }
.am-member__bio { font-size: 0.9375rem; color: var(--am-ink-soft); }
@media (hover: hover) and (pointer: fine) { .am-member:hover .am-member__img { transform: scale(1.03) translateZ(0); } .am-member:hover .am-member__open { color: var(--am-purple); } }

.am-dialog { width: min(820px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: var(--am-r-lg); background: var(--am-white); color: var(--am-ink); box-shadow: var(--am-shadow); }
.am-dialog::backdrop { background: rgb(87 72 131 / 0.25); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.am-dialog[open] { animation: am-dialog-in 260ms var(--am-ease-out); }
@keyframes am-dialog-in { from { opacity: 0; transform: scale(0.96) translateY(8px); } to { opacity: 1; transform: none; } }
.am-dialog__panel { position: relative; display: grid; grid-template-columns: 240px 1fr; gap: 36px; padding: 44px; }
.am-dialog__media { margin: 0; }
.am-dialog__title { font-size: 1.75rem; font-weight: 300; color: var(--am-purple); outline: none; }
.am-dialog__bio { margin: 16px 0; color: var(--am-ink-soft); }
.am-dialog__close { position: absolute; top: 14px; right: 14px; display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--am-lilac); border-radius: 50%; background: var(--am-white); font-size: 20px; cursor: pointer; }
@media (max-width: 640px) { .am-dialog { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; } .am-dialog__panel { grid-template-columns: 1fr; padding: 72px 20px 32px; } .am-dialog__media { max-width: 200px; } }

/* About: partners y financiación */
.am-orgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; margin: 32px 0 0; padding: 0; list-style: none; }
.am-org { display: grid; align-content: start; gap: 12px; padding: 30px; border-radius: var(--am-r-lg); background: rgb(255 255 255 / 0.9); }
.am-org__logo { display: flex; align-items: center; min-height: 96px; }
.am-org__logo .am-logos__img { max-width: 220px; max-height: 84px; filter: none; opacity: 1; }
.am-org__name { font-size: 1.1875rem; font-weight: 500; }
.am-org__text { color: var(--am-ink-soft); font-size: 0.9375rem; }
.am-orgs__slot { display: grid; place-items: center; width: 180px; height: 64px; border: 1px dashed var(--am-ink-soft); border-radius: 12px; font-size: 0.8125rem; }
.am-funding__cols { display: grid; gap: 20px; margin-top: 32px; }
.am-funding__col { padding: 34px; border-radius: var(--am-petal); background: rgb(187 204 234 / 0.55); }
.am-funding__col--peach { background: var(--am-peach); }
.am-funding__title { margin-bottom: 18px; font-size: 1.375rem; font-weight: 500; }
/* Financiadores: el logo, a color y grande, es el protagonista de cada tarjeta. */
.am-funders { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.am-funder { display: grid; grid-template-columns: minmax(180px, 280px) minmax(0, 1fr); align-items: center; gap: clamp(16px, 3vw, 36px); padding: 16px clamp(16px, 3vw, 32px) 16px 16px; border-radius: 22px; background: rgb(255 255 255 / 0.9); transition: transform 300ms var(--am-ease-out), box-shadow 300ms ease; }
.am-funder__logo { display: flex; align-items: center; justify-content: center; min-height: 128px; padding: 18px; border-radius: 16px; background: var(--am-white); }
.am-funder__logo .am-logos__img { width: auto; max-width: 100%; max-height: 92px; filter: none; opacity: 1; }
.am-funder__logo .am-logos__name { font-size: 1rem; }
.am-funder > div:last-child { display: grid; gap: 6px; }
@media (max-width: 640px) { .am-funder { grid-template-columns: 1fr; padding: 16px 16px 20px; } }
@media (hover: hover) and (pointer: fine) { .am-funder:hover { transform: translateY(-3px); box-shadow: var(--am-shadow); } }
.am-funder__name { font-weight: 500; }
.am-funder__text { font-size: 0.875rem; color: var(--am-ink-soft); }

/* Science ------------------------------------------------------------------ */
.am-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.am-split__text { display: grid; gap: 18px; }
@media (max-width: 960px) { .am-split { grid-template-columns: 1fr; } }
.am-checklist { display: grid; gap: 12px; margin: 6px 0 0; padding: 0; list-style: none; font-weight: 500; }
.am-checklist li { display: flex; gap: 12px; align-items: baseline; }
.am-checklist li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--am-purple); transform: translateY(-1px); }

/* Donut interactivo */
.am-donut { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 28px; align-items: center; }
.am-donut__chart { position: relative; }
.am-donut__svg { width: 100%; overflow: visible; }
.am-donut__seg { cursor: pointer; transform-box: view-box; transition: transform 300ms var(--am-ease-out), opacity 300ms ease, filter 300ms ease; }
.am-donut__seg.is-active { transform: translate(var(--dx), var(--dy)); filter: drop-shadow(0 6px 10px rgb(87 72 131 / 0.25)); }
.am-donut.has-focus .am-donut__seg:not(.is-active) { opacity: 0.45; }
.am-donut__center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.am-donut__value { font-size: clamp(2.25rem, 1.8rem + 2vw, 3rem); font-weight: 300; line-height: 1; color: var(--am-purple); }
.am-donut__label { max-width: 12ch; margin-inline: auto; font-size: 0.9375rem; font-weight: 500; line-height: 1.3; }
.am-donut__legend { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.am-donut__key { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 10px; border: 0; border-radius: 10px; background: none; color: var(--am-ink); font-size: 0.875rem; text-align: left; cursor: pointer; transition: background-color 200ms ease; }
.am-donut__key i { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.am-donut__key b { margin-left: auto; font-weight: 500; }
.am-donut__key.is-active { background: var(--am-lilac-soft); color: var(--am-purple); }
.am-donut__source { grid-column: 1 / -1; margin-top: 14px; font-size: 0.8125rem; color: var(--am-ink-soft); }
.am-donut figcaption { display: contents; }
@media (prefers-reduced-motion: no-preference) {
	.am-js .am-reveal:not(.is-visible) .am-donut__seg { opacity: 0; transform: scale(0.9); }
	.am-js .am-reveal.is-visible .am-donut__seg { animation: am-seg 600ms var(--am-ease-out) both; animation-delay: calc(var(--i) * 70ms); }
}
@keyframes am-seg { from { opacity: 0; transform: rotate(-8deg) scale(0.92); } }
@media (max-width: 640px) { .am-donut { grid-template-columns: 1fr; } }

.am-feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); padding: clamp(32px, 5vw, 64px); border-radius: 6px 40px 40px 40px; background: rgb(255 255 255 / 0.88); box-shadow: var(--am-shadow); }
.am-feature__head { display: grid; align-content: start; gap: 18px; }
.am-feature__body { display: grid; gap: 16px; font-weight: 300; font-size: 1.0625rem; }
.am-feature__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
@media (max-width: 900px) { .am-feature { grid-template-columns: 1fr; } }

/* Enfoque: entradilla, claves con icono y nota final (en vez de párrafos seguidos) */
.am-feature__lead { font-size: clamp(1.125rem, 1.02rem + 0.4vw, 1.3125rem); font-weight: 300; line-height: 1.55; }
.am-feature strong, .am-amb strong { font-weight: 600; }
.am-points { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.am-point { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 16px 20px; border-radius: 18px; background: var(--am-lilac-soft); font-weight: 400; }
.am-point--peach { background: var(--am-peach); }
.am-point--blue { background: rgb(187 204 234 / 0.45); }
.am-point__icon { display: inline-grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--am-white); color: var(--am-purple); font-size: 24px; }
.am-feature__note { padding: 18px 0 0 20px; border-top: 1px solid var(--am-lilac); }

/* AMB-01 (texto del cliente) */
.am-amb__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.am-amb__text { display: grid; gap: 20px; }
.am-amb__keys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.am-amb__keys .am-key { min-height: 168px; justify-content: space-between; }
.am-amb__keys .am-key:nth-child(even) { margin: 28px 0 -28px; }
.am-contrast { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px; align-items: stretch; margin-top: clamp(56px, 7vw, 88px); }
.am-contrast__side { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 20px 24px; border: 1px solid var(--am-lilac); border-radius: var(--am-r-md); background: var(--am-white); color: var(--am-ink-soft); }
.am-contrast__side strong { display: block; color: var(--am-ink); }
.am-contrast__side--amb { border-color: transparent; background: linear-gradient(120deg, #fbeef4, var(--am-lilac-soft) 50%, #eaf4f8); color: var(--am-ink); }
.am-contrast__side--amb strong { color: var(--am-purple); }
.am-contrast__arrow { align-self: center; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--am-purple); color: var(--am-white); font-size: 20px; }
@media (max-width: 960px) { .am-amb__grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .am-contrast { grid-template-columns: 1fr; justify-items: center; } .am-contrast__side { width: 100%; } .am-contrast__arrow { transform: rotate(90deg); } }
@media (max-width: 480px) { .am-amb__keys .am-key:nth-child(even) { margin: 0; } }

/* Extended: capítulos y reto del hígado que crece */
.am-chapter { display: flex; align-items: center; gap: 14px; padding-top: clamp(48px, 6vw, 80px); }
.am-chapter--inline { padding-top: 0; margin-bottom: 20px; }
.am-chapter + .am-section { padding-top: clamp(28px, 3vw, 44px); }
.am-chapter__num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--am-purple), var(--am-pink-dot)); color: var(--am-white); font-size: 0.875rem; font-weight: 600; }
.am-chapter__label { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--am-purple); }
.am-integration .am-section-head { max-width: 900px; }
.am-challenge { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 56px); align-items: center; padding: clamp(24px, 4vw, 48px); border-radius: 6px 40px 40px 40px; background: rgb(255 255 255 / 0.9); box-shadow: var(--am-shadow); }
.am-challenge__text { display: grid; gap: 16px; }
.am-challenge__text p { color: var(--am-ink-soft); }
.am-challenge__text strong { font-weight: 600; color: var(--am-ink); }
.am-challenge__amb strong { color: var(--am-purple); font-weight: 600; }
.am-value .am-contrast { margin-top: clamp(40px, 5vw, 64px); }
@media (max-width: 960px) { .am-challenge { grid-template-columns: 1fr; } }

/* Extended: cita, mecanismo, esquema BSEP */
.am-quote { position: relative; max-width: 980px; margin: 0 0 clamp(48px, 6vw, 80px); padding-top: clamp(48px, 5vw, 64px); }
.am-quote::before { content: "\201C"; position: absolute; left: -4px; top: -18px; font-size: clamp(6rem, 5rem + 4vw, 9rem); font-weight: 300; line-height: 1; color: var(--am-purple-grad); opacity: 0.6; }
.am-quote p { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); font-weight: 300; line-height: 1.4; color: var(--am-purple); }
.am-mechanism .am-h3 { margin-bottom: 10px; }
.am-steps__hint { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 5px 14px 5px 8px; border-radius: 999px; background: var(--am-lilac-soft); font-size: 0.8125rem; font-weight: 500; color: var(--am-ink-soft); }
.am-steps__hint .am-icon { width: 18px; height: 18px; padding: 2px; border-radius: 50%; background: var(--am-purple); color: var(--am-white); }
.am-steps__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.am-step__btn { position: relative; display: grid; justify-items: center; gap: 14px; width: 100%; padding: 12px; border: 0; background: none; color: var(--am-ink); cursor: pointer; }
.am-step__circle { position: relative; display: grid; place-items: center; width: clamp(120px, 14vw, 170px); aspect-ratio: 1; border-radius: 50%; border: 8px solid var(--am-white); background: var(--am-lilac-soft); box-shadow: 0 0 0 1px var(--am-lilac); overflow: hidden; font-size: clamp(2.25rem, 1.8rem + 2vw, 3.25rem); font-weight: 300; color: var(--am-purple); transition: transform 300ms var(--am-ease-out); }
.am-step__circle::before { content: ""; position: absolute; inset: 0; background: var(--fill, var(--am-lilac)); transform: translateY(100%); transition: transform 700ms var(--am-ease-out); }
.am-step__circle span { position: relative; }
.am-step--blue { --fill: var(--am-blue-light); }
.am-step--lilac { --fill: var(--am-lilac); }
.am-step--teal { --fill: var(--am-teal); }
.am-steps.is-filled .am-step__circle::before { transform: none; transition-delay: calc(var(--i, 0) * 350ms); }
.am-step__btn[aria-pressed="true"] .am-step__circle { transform: scale(1.06); box-shadow: 0 0 0 3px var(--am-purple); }
.am-step__title { font-size: 1.1875rem; font-weight: 500; }
.am-step:not(:last-child) .am-step__btn::after { content: ""; position: absolute; top: calc(12px + clamp(60px, 7vw, 85px)); right: -12%; width: 24%; height: 2px; background: linear-gradient(90deg, var(--am-purple-grad), transparent); }
.am-steps__detail { max-width: 640px; margin: 24px auto 0; padding: 20px 26px; border-radius: var(--am-r-md); background: var(--am-lilac-soft); text-align: center; }
@media (max-width: 640px) { .am-steps__list { grid-template-columns: 1fr; } .am-step:not(:last-child) .am-step__btn::after { display: none; } }

/* Esquema BSEP (imagen de Amets + capa animada en sus mismas coordenadas) */
.am-bsep { margin: 0; }
.am-bsep__scroller { overflow-x: auto; scrollbar-width: thin; }
.am-bsep__stage { position: relative; min-width: 680px; }
.am-bsep__img { width: 100%; }
.am-bsep__fx { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.am-bsep__acid { fill: #3f9b4f; stroke: var(--am-white); stroke-width: 2.5; }
.am-bsep__ring { fill: none; stroke: var(--am-blue); stroke-width: 4; transform-box: fill-box; transform-origin: center; animation: am-ring 2.4s ease-out infinite; }
.am-bsep__ring--warn { stroke: var(--am-pink-dot); }
.am-bsep__acid--stuck { transform-box: fill-box; animation: am-stuck 2.8s var(--am-ease-in-out) infinite; }
.am-bsep__spark { fill: var(--am-white); opacity: 0; animation: am-spark 2.4s ease-in-out infinite; animation-delay: calc(var(--i) * 0.6s); }
@keyframes am-ring { from { transform: scale(0.7); opacity: 0.9; } to { transform: scale(1.6); opacity: 0; } }
@keyframes am-stuck { 0%, 100% { transform: translate(0, 0); } 45% { transform: translate(42px, 26px); } 58% { transform: translate(32px, 19px); } }
@keyframes am-spark { 0% { transform: translateX(0); opacity: 0; } 15%, 85% { opacity: 0.95; } 100% { transform: translateX(240px); opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
	.am-js .am-bsep__img { clip-path: inset(0 100% 0 0); transition: clip-path 1600ms var(--am-ease-in-out); }
	.am-js .am-bsep.is-shown .am-bsep__img { clip-path: inset(0 0 0 0); }
	.am-js .am-bsep__fx { opacity: 0; transition: opacity 600ms ease 1400ms; }
	.am-js .am-bsep.is-shown .am-bsep__fx { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .am-bsep__fx { display: none; } }
.am-bsep figcaption { margin-top: 18px; font-size: 0.9375rem; color: var(--am-ink-soft); }
.am-bsep__outro { margin-top: 32px; }

/* Interactivo: el hígado crece (gen integrado frente a vector no integrado) */
.am-growth { display: grid; gap: 22px; margin: 0; }
.am-growth__panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.am-growth__panel { display: grid; align-content: start; gap: 8px; padding: 22px 22px 20px; border-radius: 6px 28px 28px 28px; background: var(--am-white); border: 1px solid var(--am-lilac); }
.am-growth__panel--integrated { background: linear-gradient(160deg, var(--am-white) 40%, #fbeef4); }
.am-growth__panel--episomal { background: linear-gradient(160deg, var(--am-white) 40%, #eef4fb); }
.am-growth__title { font-weight: 600; line-height: 1.3; }
.am-growth__panel--integrated .am-growth__title { color: var(--am-purple); }
.am-growth__sub { font-size: 0.875rem; color: var(--am-ink-soft); }
.am-growth__svg { width: 100%; max-width: 300px; margin: 6px auto 0; overflow: visible; }
.am-growth__cell polygon { fill: var(--am-peach); stroke: #f0d9c4; stroke-width: 1.5; transition: fill 400ms ease; }
.am-growth__cell circle { fill: #ead7c9; transition: fill 400ms ease, opacity 400ms ease; }
.am-growth__panel--integrated .has-gene polygon { fill: var(--am-pink-lav); stroke: var(--am-mauve); }
.am-growth__panel--integrated .has-gene circle { fill: var(--am-purple); }
/* Vector no integrado: las células iniciales lo conservan, pero cada vez más diluido (--dose). */
.am-growth__panel--episomal .has-gene polygon { fill: rgb(141 186 229 / calc(0.25 + 0.6 * var(--dose, 1))); stroke: var(--am-blue); }
.am-growth__panel--episomal .has-gene circle { fill: var(--am-purple); opacity: calc(0.2 + 0.8 * var(--dose, 1)); }
.am-growth__cell { transform-box: fill-box; transform-origin: center; transition: transform 450ms var(--am-ease-out), opacity 350ms ease; }
.am-growth__cell.is-hidden { opacity: 0; transform: scale(0.3); }
.am-growth__meter { display: grid; gap: 8px; margin-top: 6px; }
.am-growth__bar { display: block; height: 10px; border-radius: 999px; background: var(--am-lilac-soft); overflow: hidden; }
.am-growth__bar i { display: block; height: 100%; border-radius: inherit; transition: width 400ms var(--am-ease-out); }
.am-growth__panel--integrated .am-growth__bar i { background: linear-gradient(90deg, var(--am-purple), var(--am-pink-dot)); }
.am-growth__panel--episomal .am-growth__bar i { background: linear-gradient(90deg, var(--am-blue), var(--am-teal)); }
.am-growth__value { display: grid; gap: 6px; font-size: 0.875rem; color: var(--am-ink-soft); }
/* La frase va siempre debajo del porcentaje y reserva dos líneas: la sección no salta al mover la barra. */
.am-growth__value span { min-height: 2.9em; line-height: 1.45; }
.am-growth__value b { font-size: 1.75rem; font-weight: 300; line-height: 1; color: var(--am-purple); font-variant-numeric: tabular-nums; }
.am-growth__control { display: grid; gap: 10px; padding: 18px 22px; border-radius: var(--am-r-md); background: var(--am-lilac-soft); }
.am-growth__label { font-weight: 500; }
.am-growth__range { width: 100%; height: 28px; margin: 0; background: transparent; accent-color: var(--am-purple); cursor: pointer; -webkit-appearance: none; appearance: none; }
.am-growth__range::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--am-purple) 0 var(--p, 100%), var(--am-lilac) var(--p, 100%)); }
.am-growth__range::-moz-range-track { height: 8px; border-radius: 999px; background: var(--am-lilac); }
.am-growth__range::-moz-range-progress { height: 8px; border-radius: 999px; background: var(--am-purple); }
.am-growth__range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border: 4px solid var(--am-white); border-radius: 50%; background: linear-gradient(135deg, var(--am-purple), var(--am-pink-dot)); box-shadow: 0 4px 12px rgb(87 72 131 / 0.35); }
.am-growth__range::-moz-range-thumb { width: 20px; height: 20px; border: 4px solid var(--am-white); border-radius: 50%; background: var(--am-purple); box-shadow: 0 4px 12px rgb(87 72 131 / 0.35); }
.am-growth__range:focus-visible { outline: 3px solid var(--am-purple); outline-offset: 4px; }
.am-growth__ticks { display: flex; justify-content: space-between; font-size: 0.8125rem; font-weight: 500; color: var(--am-ink-soft); }
.am-growth__note { font-size: 0.8125rem; color: var(--am-ink-soft); }
@media (max-width: 560px) { .am-growth__panels { grid-template-columns: 1fr 1fr; gap: 10px; } .am-growth__panel { padding: 14px 12px; } .am-growth__value span { font-size: 0.8125rem; } }

/* Pipeline */
.am-table-wrap { margin-top: 28px; overflow-x: auto; }
.am-pipeline { width: 100%; min-width: 760px; border-collapse: collapse; }
.am-pipeline th, .am-pipeline td { padding: 16px 12px; border-bottom: 1px solid var(--am-lilac); text-align: left; font-size: 0.875rem; }
.am-pipeline thead th { font-weight: 500; color: var(--am-ink-soft); }
.am-pipeline__prog { display: grid; gap: 2px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.am-pipeline__code { font-size: 1.125rem; font-weight: 600; color: var(--am-purple); }
.am-pipeline__ind { font-size: 0.875rem; color: var(--am-ink-soft); }
.am-pipeline__track { display: block; height: 16px; border-radius: 999px; background: var(--am-lilac-soft); overflow: hidden; }
.am-pipeline__bar { display: block; height: 100%; width: calc(var(--reach) * 100%); border-radius: 999px; background: linear-gradient(90deg, var(--am-purple), var(--am-mauve) 60%, var(--am-blue)); transform-origin: left; }
@media (prefers-reduced-motion: no-preference) {
	.am-js .am-reveal .am-pipeline__bar { transform: scaleX(0); transition: transform 1200ms var(--am-ease-in-out) 300ms; }
	.am-js .am-reveal.is-visible .am-pipeline__bar { transform: none; }
}
.am-pipeline__stage { display: block; margin-top: 8px; font-weight: 500; }
.am-program { display: grid; gap: 18px; margin-top: 28px; padding: clamp(28px, 4vw, 44px); border-radius: var(--am-petal); background: var(--am-lilac-soft); }
.am-program__head { display: grid; gap: 10px; }
.am-program__code { font-size: 2rem; font-weight: 300; color: var(--am-purple); }
.am-facts { display: flex; flex-wrap: wrap; gap: 12px 36px; }
.am-facts dt { font-size: 0.8125rem; font-weight: 500; color: var(--am-ink-soft); }
.am-facts dd { margin: 2px 0 0; }

/* Publicaciones */
.am-pubs { display: grid; grid-template-columns: 140px 1fr; gap: 28px; padding-block: 36px; border-top: 1px solid var(--am-lilac); }
.am-pubs:first-child, .am-filter + .am-pubs, .am-filter.is-filtered ~ .am-pubs { border-top: 0; padding-top: 0; }
.am-pubs[hidden] { display: none; }
.am-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(32px, 4vw, 48px); }
.am-filter[hidden] { display: none; }
.am-filter__btn { min-height: 44px; padding: 9px 20px; border: 1px solid var(--am-lilac); border-radius: 999px; background: var(--am-white); color: var(--am-ink); font-weight: 500; cursor: pointer; transition: background-color 250ms ease, color 250ms ease, border-color 250ms ease; }
.am-filter__btn[aria-pressed="true"] { border-color: var(--am-purple); background: var(--am-purple); color: var(--am-white); }
@media (hover: hover) and (pointer: fine) { .am-filter__btn:not([aria-pressed="true"]):hover { border-color: var(--am-purple-grad); background: var(--am-lilac-soft); } }
.am-pubs__year { font-size: 2.25rem; font-weight: 300; color: var(--am-purple); line-height: 1.1; }
.am-pubs__list { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.am-pub { display: grid; gap: 10px; padding: 28px 30px; border: 1px solid var(--am-lilac); border-radius: var(--am-r-lg); background: var(--am-white); transition: box-shadow 300ms ease, translate 300ms var(--am-ease-out); }
.am-pub__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.am-pub__journal { font-style: italic; font-weight: 500; color: var(--am-purple); }
.am-pub__title { font-size: 1.25rem; font-weight: 500; line-height: 1.35; }
.am-pub__authors, .am-pub__abstract { font-size: 0.9375rem; color: var(--am-ink-soft); }
.am-pub__links { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 4px; }
@media (hover: hover) and (pointer: fine) { .am-pub:hover { box-shadow: var(--am-shadow); translate: 0 -2px; } }
@media (max-width: 640px) { .am-pubs { grid-template-columns: 1fr; gap: 12px; } }
.am-badge { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 0.8125rem; font-weight: 500; color: var(--am-ink); background: var(--am-lilac); }
.am-badge--accepted { background: var(--am-blue-light); }
.am-badge--upcoming { background: var(--am-teal); }
.am-badge--past { background: var(--am-lilac); }
.am-badge--press { background: var(--am-pink-lav); }

/* Noticias y eventos */
.am-section > .am-container > .am-h2 { margin-bottom: 28px; }
.am-block + .am-block { margin-top: clamp(56px, 7vw, 96px); }
.am-block-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-bottom: clamp(24px, 3vw, 36px); padding-bottom: 18px; border-bottom: 1px solid var(--am-lilac); }
.am-block-head__more { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; text-decoration: none; }
.am-block-head__more .am-icon { width: 18px; height: 18px; transition: translate 250ms var(--am-ease-out); }
@media (hover: hover) and (pointer: fine) { .am-block-head__more:hover .am-icon { translate: 4px 0; } }
.am-block--past .am-event { background: rgb(255 255 255 / 0.7); }
.am-news__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 22px; }
/* Primera noticia destacada: ocupa dos columnas con la imagen a la izquierda. */
.am-card.am-card--feature { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.am-card--feature .am-card__media { aspect-ratio: auto; min-height: 280px; }
.am-card--feature .am-card__body { justify-content: center; padding: clamp(24px, 3vw, 40px); }
.am-card--feature .am-card__title { font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem); font-weight: 400; }
@media (max-width: 760px) { .am-card.am-card--feature { grid-column: auto; grid-template-columns: 1fr; } .am-card--feature .am-card__media { aspect-ratio: 16 / 10; min-height: 0; } }
.am-news__more { margin-top: 28px; }
.am-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--am-r-lg); background: var(--am-white); border: 1px solid var(--am-lilac); transition: box-shadow 300ms ease, translate 300ms var(--am-ease-out); }
.am-card__media { aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, var(--am-lilac), var(--am-peach) 55%, var(--am-blue-light)); }
.am-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--am-ease-out); }
.am-card__mark { width: auto; height: 58%; opacity: 0.75; mix-blend-mode: multiply; }
.am-entry__badges { display: flex; flex-wrap: wrap; gap: 6px; }
.am-card__body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 26px; }
.am-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 0.875rem; font-weight: 500; }
.am-card__title { font-size: 1.1875rem; font-weight: 500; line-height: 1.3; }
.am-card__link { color: var(--am-ink); text-decoration: none; }
.am-card__link::after { content: ""; position: absolute; inset: 0; }
.am-card__detail { font-size: 0.9375rem; color: var(--am-ink-soft); }
@media (hover: hover) and (pointer: fine) { .am-card:hover { box-shadow: var(--am-shadow); translate: 0 -3px; } .am-card:hover .am-card__img { transform: scale(1.04); } .am-card:hover .am-card__link { color: var(--am-purple); } }
/* Premios (D53): medalla con trofeo en el degradado del logo. */
.am-awards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 22px; }
.am-award { position: relative; display: flex; flex-direction: column; border-radius: var(--am-petal); background: var(--am-white); border: 1px solid var(--am-lilac); transition: box-shadow 300ms ease, translate 300ms var(--am-ease-out); }
.am-award__media { position: relative; aspect-ratio: 16 / 9; border-radius: 6px 31px 0 0; background: radial-gradient(120% 140% at 85% 0%, #fbeef4 0%, transparent 55%), radial-gradient(90% 120% at 0% 100%, #eef4fb 0%, transparent 60%), var(--am-peach); }
.am-award__img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.am-award__medal { position: absolute; left: 24px; bottom: 0; translate: 0 50%; z-index: 2; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; color: var(--am-white); background: linear-gradient(140deg, var(--am-purple-grad), var(--am-pink-dot) 45%, var(--am-blue) 100%); box-shadow: 0 0 0 5px var(--am-white), 0 14px 28px -12px rgb(87 72 131 / 0.55); }
.am-award__medal .am-icon { width: 30px; height: 30px; transition: rotate 500ms var(--am-ease-out); }
.am-award__medal::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(115deg, transparent 35%, rgb(255 255 255 / 0.55) 50%, transparent 65%); background-size: 250% 100%; background-position: 120% 0; transition: background-position 700ms var(--am-ease-out); }
.am-award--plain .am-award__media { aspect-ratio: auto; height: 96px; }
.am-award__body { display: flex; flex-direction: column; gap: 8px; padding: 46px 26px 26px; }
.am-award__by { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--am-purple); }
.am-award__title { font-size: 1.1875rem; font-weight: 500; line-height: 1.3; }
.am-award__date { font-size: 0.9375rem; color: var(--am-ink-soft); }
.am-award__medal--side { position: static; translate: none; box-shadow: 0 0 0 5px var(--am-white), 0 14px 28px -12px rgb(87 72 131 / 0.55); }
@media (hover: hover) and (pointer: fine) {
	.am-award:hover { box-shadow: var(--am-shadow); translate: 0 -3px; }
	.am-award:hover .am-card__link { color: var(--am-purple); }
	.am-award:hover .am-award__medal .am-icon { rotate: -10deg; }
	.am-award:hover .am-award__medal::after { background-position: -20% 0; }
}
@media (prefers-reduced-motion: reduce) { .am-award__medal .am-icon, .am-award__medal::after { transition: none; } }
.am-events { display: grid; gap: 16px; }
.am-event { position: relative; display: grid; grid-template-columns: 120px 1fr; gap: 26px; padding: 26px 28px; border: 1px solid var(--am-lilac); border-radius: var(--am-r-lg); background: var(--am-white); transition: box-shadow 300ms ease, translate 300ms var(--am-ease-out); }
.am-event__date { display: grid; align-content: center; justify-items: center; padding: 14px 8px; border-radius: 20px; background: var(--am-lilac-soft); }
.am-event--upcoming .am-event__date { background: var(--am-teal); }
.am-event__day { font-size: 2.5rem; font-weight: 300; line-height: 1; color: var(--am-purple); }
.am-event__month { margin-top: 4px; font-size: 0.8125rem; font-weight: 500; }
.am-event__title { margin-top: 6px; font-size: 1.25rem; font-weight: 500; }
.am-event__detail { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 6px; font-size: 0.9375rem; color: var(--am-ink-soft); }
@media (hover: hover) and (pointer: fine) { .am-event:hover { box-shadow: var(--am-shadow); translate: 0 -2px; } }
@media (max-width: 640px) { .am-event { grid-template-columns: 1fr; gap: 10px; } .am-event__date { display: none; } }
.am-pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.am-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 14px; border-radius: 999px; color: var(--am-ink); text-decoration: none; font-weight: 500; }
.am-pagination .page-numbers.current { background: var(--am-purple); color: var(--am-white); }

/* Careers (acordeón) */
.am-jobs { display: grid; gap: 14px; }
.am-job { border: 1px solid var(--am-lilac); border-radius: var(--am-r-lg); background: var(--am-white); overflow: hidden; transition: box-shadow 300ms ease; }
.am-job.is-open { box-shadow: var(--am-shadow); }
.am-job__toggle { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; width: 100%; padding: 24px 28px; border: 0; background: none; color: var(--am-ink); text-align: left; cursor: pointer; }
.am-job__head { display: grid; gap: 6px; }
.am-job__title { font-size: 1.25rem; font-weight: 500; }
.am-job__head .am-facts { margin: 0; gap: 4px 24px; }
.am-job__head .am-facts dd { font-size: 0.9375rem; }
.am-job__plus { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1.5px solid var(--am-purple); border-radius: 50%; color: var(--am-purple); font-size: 20px; transition: transform 300ms var(--am-ease-out); }
.am-job.is-open .am-job__plus { transform: rotate(45deg); }
.am-jobs__closed-title { margin: 56px 0 18px; color: var(--am-ink-soft, var(--am-ink)); }
.am-job--closed { background: color-mix(in srgb, var(--am-white) 70%, transparent); }
.am-job--closed .am-job__title { color: var(--am-ink-soft, var(--am-ink)); }
.am-job__title .am-badge { margin-left: 8px; vertical-align: middle; }
.am-job__panel { padding: 0 28px 28px 104px; }
.am-job__panel .am-button { margin-top: 18px; }
.am-job > .am-provisional { margin: 0 28px 20px; }
@media (max-width: 640px) { .am-job__panel { padding: 0 20px 24px; } .am-job__toggle { grid-template-columns: 1fr auto; } .am-job__toggle > .am-key__icon { display: none; } }
.am-empty { display: grid; justify-items: start; gap: 14px; max-width: 640px; padding: clamp(28px, 5vw, 48px); border-radius: var(--am-petal); background: var(--am-lilac-soft); }

/* Formularios ------------------------------------------------------------- */
.am-route-contact .am-section, .am-route-contact .am-page-hero__inner, .am-route-apply .am-section { position: relative; z-index: 2; }
.am-form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.am-form-layout__side { display: grid; gap: 20px; }
@media (max-width: 900px) { .am-form-layout { grid-template-columns: 1fr; } }
.am-form { display: grid; gap: 20px; max-width: 700px; padding: clamp(24px, 4vw, 44px); border-radius: var(--am-r-lg); background: rgb(255 255 255 / 0.88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: var(--am-shadow); }
.am-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .am-form__row { grid-template-columns: 1fr; } }
.am-field { display: grid; gap: 6px; }
.am-field__label { font-weight: 500; }
.am-field input:not([type="checkbox"]), .am-field select, .am-field textarea { width: 100%; min-height: 50px; padding: 11px 16px; border: 1px solid #8f87a3; border-radius: 14px; background: var(--am-white); font: inherit; color: var(--am-ink); transition: border-color 200ms ease, box-shadow 200ms ease; }
.am-field input[type="file"] { padding: 11px; }
.am-field textarea { resize: vertical; }
.am-field input:focus-visible, .am-field select:focus-visible, .am-field textarea:focus-visible { outline: none; border-color: var(--am-purple); box-shadow: 0 0 0 3px rgb(111 92 157 / 0.25); }
.am-field__check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.am-field__check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--am-purple); }
.am-field__error { font-size: 0.875rem; font-weight: 500; }
.am-field.has-error input, .am-field.has-error select, .am-field.has-error textarea { border: 2px solid var(--am-mauve); }
.am-field.has-error .am-field__error::before { content: "! "; color: var(--am-purple); }
.am-form__status:empty { display: none; }
.am-form__status { padding: 14px 16px; border-radius: 14px; font-weight: 500; outline: none; }
.am-form__status.is-success { background: var(--am-teal); }
.am-form__status.is-error { background: var(--am-lilac-soft); border: 1px dashed var(--am-mauve); }
.am-button[aria-busy="true"] { opacity: 0.7; cursor: progress; }
.am-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.am-notice { padding: 26px; }
.am-notice p + p, .am-notice ul + p { margin-top: 12px; }
.am-notice__list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 0.9375rem; }
.am-notice__list strong { font-weight: 600; }
.am-petal { padding: clamp(28px, 4vw, 48px); border-radius: var(--am-petal); }
.am-petal--lilac { background: var(--am-lilac); }
.am-petal--peach { background: var(--am-peach); }
.am-petal--teal { background: var(--am-teal); }
.am-petal--closing { border-radius: 32px 32px 6px 32px; }
.am-contact-data { padding: 26px; border-radius: var(--am-r-md); background: rgb(255 255 255 / 0.85); }
.am-contact-data__title { margin-bottom: 10px; font-size: 1.125rem; font-weight: 500; }
.am-contact-data__list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.am-contact-data__list li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; overflow-wrap: anywhere; }
.am-contact-data__list .am-point__icon { width: 40px; height: 40px; font-size: 20px; background: var(--am-lilac-soft); }
/* Contacto: ubicación y mapa (se carga bajo demanda) */
.am-location__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.am-location__text { display: grid; gap: 22px; }
.am-location__text strong { font-weight: 600; }
.am-location__card { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; width: fit-content; padding: 22px 26px; border-radius: 6px 24px 24px 24px; background: rgb(255 255 255 / 0.88); }
.am-location__card address { font-style: normal; line-height: 1.7; }
.am-location__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.am-location__actions .am-button .am-icon { width: 20px; height: 20px; }
.am-map { position: relative; overflow: hidden; min-height: 400px; border-radius: 40px 40px 40px 6px; background: linear-gradient(140deg, var(--am-lilac-soft), #fbeef4 45%, #eaf4f8); box-shadow: var(--am-shadow); }
.am-map::before { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--am-lilac) 1px, transparent 1px) 0 0 / 44px 44px, linear-gradient(90deg, var(--am-lilac) 1px, transparent 1px) 0 0 / 44px 44px; opacity: 0.55; -webkit-mask: radial-gradient(circle at 50% 45%, #000 20%, transparent 75%); mask: radial-gradient(circle at 50% 45%, #000 20%, transparent 75%); }
.am-map.is-loaded::before { display: none; }
.am-map__facade { position: relative; display: grid; justify-items: center; align-content: center; gap: 14px; min-height: 400px; padding: 40px clamp(24px, 4vw, 56px); text-align: center; }
.am-map__pin { display: inline-grid; place-items: center; width: 68px; height: 68px; border-radius: 50% 50% 50% 6px; background: linear-gradient(135deg, var(--am-purple), var(--am-pink-dot)); color: var(--am-white); font-size: 32px; rotate: -45deg; margin-bottom: 12px; box-shadow: 0 0 0 10px rgb(255 255 255 / 0.6); }
.am-map__pin .am-icon { rotate: 45deg; }
.am-map__title { font-size: 1.375rem; font-weight: 500; color: var(--am-purple); }
.am-map__text { max-width: 40ch; color: var(--am-ink-soft); }
.am-map__note { font-size: 0.8125rem; color: var(--am-ink-soft); }
.am-map__frame { display: block; width: 100%; height: 100%; min-height: 400px; border: 0; }
@media (prefers-reduced-motion: no-preference) { .am-map__pin { animation: am-bob 4s ease-in-out infinite alternate; } }
@media (max-width: 900px) { .am-location__grid { grid-template-columns: 1fr; } }

.am-cta__title { max-width: 28ch; margin-bottom: 16px; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 300; color: var(--am-purple); }
.am-cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 16px; }

/* Fichas de noticia y evento: galería arriba, texto debajo y datos en el lateral */
.am-page-hero__eyebrow { width: fit-content; padding: 5px 14px; border-radius: 999px; background: rgb(255 255 255 / 0.7); font-size: 0.875rem; font-weight: 500; color: var(--am-purple); }
.single .am-page-hero__title { max-width: 30ch; font-size: clamp(1.875rem, 1.3rem + 2vw, 3rem); }
.am-entry { padding-top: clamp(40px, 5vw, 64px); }
.am-entry__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.am-entry__main { display: grid; gap: clamp(28px, 4vw, 40px); min-width: 0; }
.am-entry__text { max-width: 720px; font-size: 1.0625rem; }
.am-entry__side { position: sticky; top: calc(var(--am-header-h) + 24px); display: grid; gap: 22px; padding: 28px; border-radius: 6px 28px 28px 28px; background: var(--am-lilac-soft); }
.am-entry__facts { display: grid; gap: 16px; margin: 0; }
.am-entry__facts dt { font-size: 0.8125rem; font-weight: 500; color: var(--am-ink-soft); }
.am-entry__facts dd { margin: 2px 0 0; font-weight: 500; }
.am-entry__actions { display: grid; gap: 10px; }
.am-entry__actions .am-icon { width: 20px; height: 20px; }
.am-entry__back { padding-top: 18px; border-top: 1px solid var(--am-lilac); }
.am-entry__back-icon { display: inline-flex; rotate: 180deg; }
@media (max-width: 900px) { .am-entry__grid { grid-template-columns: 1fr; } .am-entry__side { position: static; } }

.am-gallery { position: relative; display: grid; gap: 14px; }
.am-gallery__track { position: relative; display: grid; overflow: hidden; border-radius: 6px 32px 32px 32px; background: var(--am-lilac-soft); }
.am-gallery__slide { grid-area: 1 / 1; margin: 0; aspect-ratio: 16 / 9; }
.am-gallery__img { width: 100%; height: 100%; object-fit: cover; }
.am-js .am-gallery--multi .am-gallery__slide { opacity: 0; visibility: hidden; transition: opacity 700ms ease, visibility 0s linear 700ms; }
.am-js .am-gallery--multi .am-gallery__slide.is-active { opacity: 1; visibility: visible; transition: opacity 700ms ease; }
html:not(.am-js) .am-gallery__track { gap: 12px; grid-auto-flow: row; }
html:not(.am-js) .am-gallery__slide { grid-area: auto; }
html:not(.am-js) .am-gallery__controls { display: none; }
.am-gallery__controls { display: flex; align-items: center; gap: 10px; }
.am-gallery__btn, .am-gallery__pause { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--am-lilac); border-radius: 50%; background: var(--am-white); color: var(--am-purple); font-size: 20px; cursor: pointer; transition: border-color 200ms ease; }
.am-gallery__btn[data-dir="-1"] .am-icon { transform: scaleX(-1); }
.am-gallery__dots { display: flex; gap: 2px; }
.am-gallery__dot { display: inline-grid; place-items: center; width: 24px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.am-gallery__dot::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--am-purple-grad); transition: width 300ms var(--am-ease-out), background-color 300ms ease; }
.am-gallery__dot[aria-current="true"]::before { width: 20px; background: var(--am-purple); }
.am-gallery__pause { margin-left: auto; }
.am-gallery__pause-icon { width: 12px; height: 12px; border-inline: 4px solid currentColor; }
.am-gallery__pause[aria-pressed="true"] .am-gallery__pause-icon { width: 0; height: 0; border-inline: 0; border-block: 7px solid transparent; border-left: 11px solid currentColor; margin-left: 3px; }
@media (hover: hover) and (pointer: fine) { .am-gallery__btn:hover, .am-gallery__pause:hover { border-color: var(--am-purple); } }

/* Fichas y páginas genéricas */
.am-single { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 80px); align-items: start; padding-block: clamp(40px, 5vw, 72px) var(--am-section-y); }
.am-single__main { max-width: 760px; }
.am-single__main > .am-facts { margin-bottom: 24px; }
.am-single__main .am-card__media { margin-bottom: 24px; border-radius: var(--am-r-lg); }
.am-single__meta { margin-bottom: 24px; }
.am-single__side { position: sticky; top: calc(var(--am-header-h) + 24px); }
.am-single__links { display: grid; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.am-single__back { margin-top: 32px; }
@media (max-width: 900px) { .am-single { grid-template-columns: 1fr; } .am-single__side { position: static; } }
.am-prose > * + * { margin-top: 1em; }
.am-prose h2 { margin-top: 1.6em; font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem); font-weight: 400; color: var(--am-purple); }
.am-prose h3 { margin-top: 1.4em; font-size: 1.1875rem; }
.am-prose ol { padding-left: 1.25em; }
/* Listas con viñeta de la paleta (ofertas, fichas, textos legales). */
.am-prose ul { display: grid; gap: 10px; padding-left: 0; list-style: none; }
.am-prose ul > li { position: relative; padding-left: 26px; }
.am-prose ul > li::before { content: ""; position: absolute; left: 4px; top: 0.62em; width: 9px; height: 9px; border-radius: 50%; background: linear-gradient(135deg, var(--am-purple), var(--am-pink-dot)); }
.am-prose li > ul { margin-top: 10px; }
.am-prose li strong { color: var(--am-ink); }
.am-job__panel .am-prose h3 { margin-top: 1.6em; font-size: 1.125rem; font-weight: 600; color: var(--am-purple); }
.am-job__panel .am-prose > h3:first-child { margin-top: 0; }
.am-job__panel .am-prose { max-width: 880px; }
.am-prose img { border-radius: var(--am-r-md); }
.am-article > * { max-width: 760px; }
.am-legal { max-width: 780px; }
.am-legal h2 { margin-top: 2em; }
.am-legal__updated { font-size: 0.875rem; color: var(--am-ink-soft); }
.am-legal__table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.9375rem; }
.am-legal__table th, .am-legal__table td { padding: 12px 10px; border-bottom: 1px solid var(--am-lilac); text-align: left; vertical-align: top; }
.am-legal__table th { font-weight: 500; color: var(--am-ink-soft); }
.am-legal__table td:first-child { font-family: ui-monospace, Consolas, monospace; font-size: 0.8125rem; white-space: nowrap; }
.am-page { max-width: calc(760px + 2 * var(--am-gutter)); margin-inline: auto; padding: var(--am-section-y) var(--am-gutter); }
.am-page__title { margin-bottom: 24px; font-size: clamp(2.125rem, 1.6rem + 2vw, 3.25rem); font-weight: 300; color: var(--am-purple); letter-spacing: -0.02em; }
.am-404__links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 32px 0 0; padding: 0; list-style: none; font-weight: 500; }
.am-figure-slot { display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: center; margin: 32px 0 0; padding: 24px; border: 1px dashed var(--am-mauve); border-radius: var(--am-r-md); background: var(--am-lilac-soft); }
.am-figure-slot img { width: auto; height: 96px; opacity: 0.6; }

/* Pie --------------------------------------------------------------------- */
.am-footer { position: relative; z-index: 2; background: var(--am-white); }
.am-footer__ribbons { width: 100%; height: clamp(40px, 4.5vw, 64px); }
.am-footer__ribbon { mix-blend-mode: multiply; fill-opacity: 0.8; }
.am-footer__ribbon--blue { fill: #bccbec; }
.am-footer__ribbon--pink { fill: #f0c3cb; }
.am-footer__ribbon--teal { fill: #c3e4e5; }
.am-footer__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); gap: 32px; max-width: calc(var(--am-max) + 2 * var(--am-gutter)); margin-inline: auto; padding: 48px var(--am-gutter) 32px; }
.am-footer__logo { width: auto; height: 72px; mix-blend-mode: multiply; }
.am-footer__nav ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.am-footer__nav a, .am-footer__contact a { color: var(--am-ink); text-decoration: none; font-weight: 500; }
.am-footer__contact { display: grid; gap: 8px; font-style: normal; }
.am-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; max-width: calc(var(--am-max) + 2 * var(--am-gutter)); margin-inline: auto; padding: 20px var(--am-gutter) 32px; border-top: 1px solid var(--am-lilac); font-size: 0.875rem; color: var(--am-ink-soft); }
.am-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.am-footer__legal a { color: var(--am-ink-soft); }
@media (hover: hover) and (pointer: fine) { .am-footer__nav a:hover, .am-footer__contact a:hover { color: var(--am-purple); } }
@media (max-width: 900px) { .am-footer__inner { grid-template-columns: 1fr; } }

/* Movimiento reducido: todo visible y estático ----------------------------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}

/* Aviso de cookies ---------------------------------------------------------- */
.am-cookies { position: fixed; left: 50%; bottom: 20px; z-index: 70; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; width: min(920px, calc(100% - 2 * var(--am-gutter))); padding: 18px 20px 18px 22px; border: 1px solid rgb(255 255 255 / 0.8); border-radius: 6px 28px 28px 28px; background: rgb(255 255 255 / 0.9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 24px 60px -24px rgb(87 72 131 / 0.4); opacity: 0; transform: translate(-50%, 16px); transition: opacity 400ms ease, transform 500ms var(--am-ease-out); }
.am-cookies[hidden] { display: none; }
.am-cookies.is-visible { opacity: 1; transform: translate(-50%, 0); }
.am-cookies__icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--am-lilac-soft); color: var(--am-purple); font-size: 24px; }
.am-cookies__text { font-size: 0.9375rem; line-height: 1.5; }
.am-cookies__text a { margin-left: 4px; font-weight: 500; }
.am-cookies__accept { min-height: 44px; padding: 9px 26px; }
@media (max-width: 640px) { .am-cookies { grid-template-columns: 1fr; gap: 12px; bottom: 12px; } .am-cookies__icon { display: none; } .am-cookies__accept { width: 100%; } }
