/* Anova Cookies CMP — aspecto del aviso, las preferencias y los contenidos bloqueados.
   Colores y tipografías heredan los del sitio (--primary, --secondary, --accent, --marron…) con valores de respaldo. */
.acmp, .acmp-embed, .acmp-settings-sc {
	--acmp-primary: var(--primary, #243d96);
	--acmp-accent: var(--accent, #5097ff);
	--acmp-yellow: var(--secondary, #fc0);
	--acmp-brown: var(--marron, #8c4600);
	--acmp-text: var(--text, #262728);
	--acmp-grey: #f2f2f2;
	--acmp-line: #d9dde8;
	--acmp-display: var(--display-text, "Alumni Sans"), "Arial Narrow", sans-serif;
	--acmp-radius: 12px;
	--acmp-shadow: 0 18px 50px -12px rgba(36, 61, 150, .45), 0 4px 14px rgba(0, 0, 0, .12);
}
.acmp, .acmp *, .acmp-embed, .acmp-embed * { box-sizing: border-box; }
.acmp { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.5; color: var(--acmp-text); }
.acmp p { margin: 0 0 .6em; } .acmp h2, .acmp h3, .acmp-banner__title, .acmp-modal__title, .acmp-assistcard__title, .acmp-cat__title { margin: 0; font-family: var(--acmp-display); font-weight: 700; color: var(--acmp-primary); line-height: 1.1; letter-spacing: .01em; }
.acmp a, .acmp-embed a { color: var(--acmp-primary); text-decoration: underline; text-underline-offset: 2px; }
.acmp a:hover, .acmp-embed a:hover { color: #1a2c70; }
.acmp-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.acmp-muted { color: #5b6070; }
html.acmp-lock { overflow: hidden; }

/* botones: mismo estilo que los del sitio; «Rechazar» y «Aceptar» idénticos a propósito */
.acmp-btn {
	appearance: none; cursor: pointer; border: 2px solid transparent; border-radius: var(--acmp-radius);
	font-family: var(--acmp-display); font-size: 22px; font-weight: 700; line-height: 1.15; letter-spacing: .02em;
	padding: 6px 24px; min-height: 44px; text-decoration: none; transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.acmp-btn--primary { background: var(--acmp-yellow); color: var(--acmp-brown); }
.acmp-btn--primary:hover { background: #ffd633; }
.acmp-btn--outline { background: #fff; color: var(--acmp-primary); border-color: var(--acmp-primary); }
.acmp-btn--outline:hover { background: var(--acmp-primary); color: #fff; }
.acmp-btn--ghost { background: transparent; color: var(--acmp-primary); border-color: var(--acmp-line); font-size: 19px; }
.acmp-btn--ghost:hover { border-color: var(--acmp-primary); }
.acmp-btn:active { transform: translateY(1px); }
.acmp-btn:focus-visible, .acmp-link:focus-visible, .acmp-x:focus-visible, .acmp-fab:focus-visible, .acmp-assist:focus-visible, .acmp a:focus-visible, .acmp-embed a:focus-visible, .acmp-switch input:focus-visible + .acmp-switch__track {
	outline: 3px solid var(--acmp-primary); outline-offset: 2px; box-shadow: 0 0 0 5px #fff;
}
.acmp-link { appearance: none; background: none; border: 0; padding: 4px 0; margin-top: 6px; font: inherit; font-weight: 600; color: var(--acmp-primary); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.acmp-logo { display: block; border-radius: 50%; }

/* ---- aviso (primera capa): tarjeta anclada abajo, no bloquea la página ---- */
.acmp-banner {
	position: fixed; z-index: 2147483000; left: 16px; right: 16px; bottom: 16px; max-width: 1080px; margin: 0 auto;
	display: grid; grid-template-columns: auto 1fr auto; gap: 20px 24px; align-items: center;
	background: #fff; border-radius: 20px; padding: 22px 26px; box-shadow: var(--acmp-shadow); border-top: 6px solid var(--acmp-yellow);
	animation: acmp-in .35s ease-out both;
}
.acmp-banner__title { font-size: 48px; margin-bottom: 6px !important; }
.acmp-banner__text { font-size: 14.5px; max-width: 62ch; }
.acmp-banner__links { font-size: 14px; margin: 0 !important; }
.acmp-banner__actions { display: flex; flex-direction: column; gap: 10px; min-width: 190px; }
.acmp-banner__actions .acmp-btn { width: 100%; }
@keyframes acmp-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---- preferencias (segunda capa) ---- */
.acmp-overlay { position: fixed; inset: 0; z-index: 2147483001; background: rgba(20, 28, 64, .62); display: flex; align-items: center; justify-content: center; padding: 16px; backdrop-filter: blur(2px); }
.acmp-overlay[hidden] { display: none; }
.acmp-modal { background: #fff; border-radius: 20px; width: 100%; max-width: 760px; max-height: min(88vh, 860px); display: flex; flex-direction: column; box-shadow: var(--acmp-shadow); border-top: 6px solid var(--acmp-yellow); outline: none; animation: acmp-in .25s ease-out both; }
.acmp-modal__head { display: flex; align-items: center; gap: 14px; padding: 18px 22px 12px; }
.acmp-modal__head .acmp-modal__title { flex: 1; font-size: 52px; margin: 0; }
.acmp-x { appearance: none; border: 0; background: var(--acmp-grey); color: var(--acmp-primary); width: 40px; height: 40px; border-radius: 50%; font-size: 26px; line-height: 1; cursor: pointer; }
.acmp-x:hover { background: var(--acmp-primary); color: #fff; }
.acmp-modal__body { padding: 4px 22px 14px; overflow-y: auto; overscroll-behavior: contain; }
.acmp-modal__foot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; padding: 14px 22px 18px; border-top: 1px solid var(--acmp-line); background: #fafbfe; border-radius: 0 0 20px 20px; }
.acmp-cats { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 12px; }
.acmp-cat { border: 1px solid var(--acmp-line); border-radius: 14px; padding: 14px 16px; background: #fff; }
.acmp-cat__row { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; }
.acmp-cat__info { flex: 1; }
.acmp-cat__title { font-size: 38px; margin-bottom: 4px !important; }
.acmp-cat__title label { cursor: pointer; }
.acmp-cat__info p { font-size: 14px; margin: 0; color: #3d4150; }
.acmp-det { margin-top: 10px; display: grid; gap: 12px; }
.acmp-det[hidden] { display: none; }
.acmp-svc { background: var(--acmp-grey); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; }
.acmp-svc p { margin: 0 0 6px; }
.acmp-svc__name strong { color: var(--acmp-primary); font-size: 15px; }
.acmp-tablewrap { overflow-x: auto; margin: 8px 0; }
.acmp-table { width: 100%; border-collapse: collapse; font-size: 12.5px; background: #fff; border-radius: 8px; overflow: hidden; }
.acmp-table th, .acmp-table td { text-align: left; vertical-align: top; padding: 7px 9px; border-bottom: 1px solid var(--acmp-line); }
.acmp-table th { background: #e6ebf8; color: var(--acmp-primary); font-weight: 700; white-space: nowrap; }
.acmp-table td:first-child { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; word-break: break-all; }

/* interruptor accesible: es un checkbox nativo */
.acmp-switch { position: relative; display: inline-flex; align-items: center; gap: 8px; flex: none; cursor: pointer; padding-top: 4px; }
.acmp-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.acmp-switch__track { width: 52px; height: 30px; border-radius: 99px; background: #98a0b8; position: relative; transition: background-color .2s; flex: none; }
.acmp-switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s; }
.acmp-switch input:checked + .acmp-switch__track { background: var(--acmp-primary); }
.acmp-switch input:checked + .acmp-switch__track::after { transform: translateX(22px); }
.acmp-switch.is-locked { cursor: default; } .acmp-switch.is-locked input { cursor: default; }
.acmp-switch.is-locked .acmp-switch__track { background: #6f87c9; opacity: .9; }
.acmp-switch__text { font-size: 13px; font-weight: 600; color: var(--acmp-primary); white-space: nowrap; }

/* ---- botón flotante «Cookies» y lanzador del asistente ---- */
.acmp-fab, .acmp-assist {
	position: fixed; z-index: 2147482000; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
	border: 0; border-radius: 99px; background: #fff; color: var(--acmp-primary); font-family: var(--acmp-display); font-size: 20px; font-weight: 700;
	padding: 6px 18px 6px 8px; min-height: 44px; box-shadow: 0 6px 22px rgba(36, 61, 150, .35), 0 0 0 2px var(--acmp-primary) inset; transition: transform .15s, box-shadow .15s;
}
.acmp-fab { left: 16px; } .acmp-fab:hover, .acmp-assist:hover { transform: translateY(-2px); }
.acmp-assist { right: 16px; background: var(--acmp-primary); color: #fff; padding: 6px 18px 6px 14px; box-shadow: 0 6px 22px rgba(36, 61, 150, .45); }
.acmp-assist svg { flex: none; }
.acmp-assistcard { position: fixed; z-index: 2147482500; right: 16px; bottom: 72px; width: min(400px, calc(100vw - 32px)); background: #fff; border-radius: 18px; padding: 18px 20px; box-shadow: var(--acmp-shadow); border-top: 6px solid var(--acmp-yellow); font-size: 14px; animation: acmp-in .25s ease-out both; }
.acmp-assistcard__title { font-size: 42px; margin-bottom: 6px !important; }
.acmp-assistcard__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; margin-top: 10px; }

/* ---- contenido de terceros bloqueado ---- */
.acmp-embed { position: relative; display: block; max-width: 100%; margin-left: auto; margin-right: auto; font-family: Inter, system-ui, sans-serif; color: var(--acmp-text); }
.acmp-embed--fill .acmp-embed__box { border-radius: 0; }
.acmp-embed--fill { position: absolute !important; inset: 0; width: 100% !important; height: 100%; aspect-ratio: auto !important; max-width: none; margin: 0; }
.acmp-embed__box {
	position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; padding: 16px 20px; overflow: auto;
	background: linear-gradient(135deg, #eef2fc 0%, #f7f9ff 100%); border: 2px dashed #b9c4e6; border-radius: 16px;
}
.acmp-embed__title { margin: 0; font-family: var(--acmp-display); font-size: 40px; font-weight: 700; color: var(--acmp-primary); line-height: 1.1; }
.acmp-embed__label { font-family: Inter, system-ui, sans-serif; font-size: 13px; font-weight: 500; color: #5b6070; }
.acmp-embed__text { margin: 0; font-size: 13.5px; max-width: 60ch; line-height: 1.45; }
.acmp-embed__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 6px 0 2px; }
.acmp-embed__links { margin: 0; font-size: 12.5px; }
.acmp-settings-sc__status { font-size: 13.5px; color: #3d4150; word-break: break-all; }

@media (max-width: 860px) {
	.acmp-banner { grid-template-columns: 1fr; padding: 14px 14px 16px; gap: 8px; bottom: 8px; left: 8px; right: 8px; max-height: calc(100vh - 16px); overflow-y: auto; border-radius: 16px; }
	.acmp-banner__brand { display: none; }
	.acmp-banner__title { font-size: 36px; margin-bottom: 2px !important; }
	.acmp-banner__text { font-size: 13px; line-height: 1.4; max-width: none; margin-bottom: 4px !important; }
	.acmp-banner__links { font-size: 13px; }
	.acmp-banner__actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; min-width: 0; }
	.acmp-banner__actions .acmp-btn { width: 100%; font-size: 18px; padding: 4px 6px; min-height: 44px; }
}
@media (max-width: 340px) { .acmp-banner__actions { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
	.acmp-embed { aspect-ratio: auto !important; min-height: 0 !important; }
	.acmp-embed__box { position: static; min-height: 220px; padding: 14px 12px; gap: 4px; }
	.acmp-embed--fill .acmp-embed__box { position: absolute; min-height: 0; padding: 8px 10px; gap: 3px; }
	.acmp-embed--fill .acmp-embed__title { font-size: 26px; } .acmp-embed--fill .acmp-embed__text { font-size: 11.5px; line-height: 1.3; }
	.acmp-embed--fill .acmp-embed__actions { flex-direction: column; gap: 4px; margin: 2px 0; } .acmp-embed--fill .acmp-btn { font-size: 16px; min-height: 32px; padding: 2px 12px; } .acmp-embed--fill .acmp-embed__links { font-size: 11px; } .acmp-embed__title { font-size: 30px; } .acmp-embed__text { font-size: 12.5px; }
	.acmp-embed__actions .acmp-btn { font-size: 18px; padding: 4px 14px; min-height: 40px; }
	.acmp-modal { max-height: 94vh; border-radius: 16px; } .acmp-modal__head .acmp-modal__title { font-size: 40px; }
	.acmp-modal__foot .acmp-btn { flex: 1 1 100%; }
	.acmp-cat__row { flex-direction: column; gap: 8px; }
	.acmp-table thead { display: none; }
	.acmp-table, .acmp-table tbody, .acmp-table tr, .acmp-table td { display: block; width: 100%; }
	.acmp-table tr { border-bottom: 2px solid var(--acmp-line); padding: 4px 0; }
	.acmp-table td { border: 0; padding: 3px 9px; }
	.acmp-table td::before { content: attr(data-l) ": "; font-weight: 700; color: var(--acmp-primary); font-family: Inter, sans-serif; }
	.acmp-fab span { display: none; } .acmp-fab { padding: 6px; }
	.acmp-assist span { display: none; } .acmp-assist { padding: 10px; }
}
@media (prefers-reduced-motion: reduce) { .acmp *, .acmp { animation: none !important; transition: none !important; } }
@media print { .acmp-banner, .acmp-fab, .acmp-assist, .acmp-overlay, .acmp-assistcard { display: none !important; } }
.acmp .acmp-modal__title { margin: 0; }

/* identificador del consentimiento (prueba para el usuario) */
.acmp-consentid { margin: 10px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--acmp-grey); font-size: 13px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.acmp-consentid code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; background: #fff; border: 1px solid var(--acmp-line); border-radius: 8px; padding: 2px 8px; word-break: break-all; user-select: all; }
.acmp-consentid .acmp-link { margin: 0; padding: 0; font-size: 13px; }
.acmp-banner__id { margin: 8px 0 0 !important; font-size: 12.5px; color: #4a4f60; }
.acmp-banner__id code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; background: var(--acmp-grey); border-radius: 6px; padding: 1px 6px; word-break: break-all; user-select: all; }
.acmp-cat__info p.acmp-cat__title { font-size: 38px; line-height: 1.05; margin: 0 0 4px; color: var(--acmp-primary); }
