/* Alterfocus — cookie banner (Sistema de Marca v5) */
.afc {
	position: fixed; z-index: 99999; left: 16px; bottom: 16px;
	width: min(420px, calc(100vw - 32px));
	font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	color: #050505;
	opacity: 0; transform: translateY(16px); pointer-events: none;
	transition: opacity .45s cubic-bezier(0.16, 1, 0.3, 1), transform .45s cubic-bezier(0.16, 1, 0.3, 1);
}
.afc.afc-open { opacity: 1; transform: none; pointer-events: auto; }
.afc-card {
	background: #F8F7F5; border: 1px solid #DAD8D3; border-radius: 4px;
	box-shadow: 0 12px 40px rgba(5, 5, 5, .18);
	padding: 22px 22px 18px; max-height: calc(100vh - 32px); overflow-y: auto;
}
.afc-title { font-family: 'Lora', Georgia, serif; font-weight: 700; font-size: 20px; line-height: 1.2; margin: 0 0 8px; }
.afc-text { font-size: 13.5px; line-height: 1.55; margin: 0 0 16px; color: #3A3A39; }
.afc-text a { color: #050505; text-decoration: underline; text-underline-offset: 2px; }

.afc-prefs { border-top: 1px solid #DAD8D3; margin: 0 0 16px; }
.afc-prefs[hidden] { display: none; }
.afc-row { display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; border-bottom: 1px solid #DAD8D3; cursor: pointer; }
.afc-row-txt { flex: 1; font-size: 12.5px; line-height: 1.5; color: #6E6D6A; }
.afc-row-txt strong { display: block; color: #050505; font-size: 13.5px; font-weight: 600; margin-bottom: 2px; }

.afc-switch { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 40px; height: 22px; margin: 2px 0 0;
	border-radius: 999px; background: #B9B6AF; cursor: pointer; transition: background .25s cubic-bezier(0.16, 1, 0.3, 1); }
.afc-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff;
	transition: transform .25s cubic-bezier(0.16, 1, 0.3, 1); }
.afc-switch:checked { background: #FF0A50; }
.afc-switch:checked::after { transform: translateX(18px); }
.afc-switch:disabled { opacity: .55; cursor: not-allowed; }
.afc-switch:focus-visible { outline: 2px solid #050505; outline-offset: 2px; }

.afc-actions { display: flex; flex-direction: column; gap: 10px; }
.afc-btn { width: 100%; border: 0; border-radius: 999px; padding: 14px 20px; font: 600 14px/1 'Montserrat', sans-serif;
	letter-spacing: .02em; cursor: pointer; transition: transform .2s cubic-bezier(0.16, 1, 0.3, 1), background .2s; }
.afc-btn[hidden] { display: none; }
.afc-accept { background: #FF0A50; color: #fff; }
.afc-accept:hover { background: #e00646; }
.afc-btn:active { transform: scale(.98); }
.afc-save { background: #050505; color: #F8F7F5; }
.afc-secondary { display: flex; justify-content: space-between; gap: 10px; }
.afc-link { flex: 1; background: transparent; border: 1px solid #DAD8D3; border-radius: 999px; padding: 10px 12px;
	font: 600 12.5px/1 'Montserrat', sans-serif; color: #3A3A39; cursor: pointer; }
.afc-link:hover { border-color: #8A8985; color: #050505; }
.afc-btn:focus-visible, .afc-link:focus-visible { outline: 2px solid #050505; outline-offset: 2px; }

@media (max-width: 767px) {
	.afc { left: 8px; right: 8px; bottom: 8px; width: auto; }
	.afc-card { padding: 18px 18px 14px; }
	.afc-title { font-size: 18px; }
	.afc-text { font-size: 13px; margin-bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) { .afc, .afc-switch, .afc-switch::after { transition: none; } }

/* ---------- External media: aviso "clic para cargar" (inc/af-privacy.php + AF.loadFrame) ---------- */
.af-xm { display:flex; align-items:center; justify-content:center; box-sizing:border-box; padding:20px; text-align:center; background:var(--af-n-100); color:var(--af-ink); }
.af-xm-box { max-width:440px; display:flex; flex-direction:column; align-items:center; gap:12px; font-family:var(--af-font-sans); }
.af-xm-place { font-family:var(--af-font-serif); font-weight:700; font-size:17px; line-height:1.35; margin:0; }
.af-xm-text { font-size:13px; line-height:1.55; margin:0; opacity:0.8; }
.af-xm-text a { color:inherit; text-decoration:underline; }
.af-xm-btn { font-family:inherit; font-weight:600; font-size:13px; letter-spacing:0.02em; border:0; border-radius:999px; padding:11px 22px; cursor:pointer; background:var(--af-ink); color:var(--af-bg); transition:background 0.3s var(--ease-fluid); }
.af-xm-btn:hover, .af-xm-btn:focus-visible { background:var(--af-accent); }
.af-xm-always { display:flex; align-items:center; gap:8px; font-size:12px; opacity:0.75; cursor:pointer; }
.af-xm-always input { accent-color:var(--af-accent); margin:0; }
.af-xm-gate { position:absolute; inset:0; z-index:3; background:var(--af-ink); color:var(--af-bg); }
.af-xm-gate .af-xm-btn { background:var(--af-bg); color:var(--af-ink); }
.af-xm-gate .af-xm-btn:hover, .af-xm-gate .af-xm-btn:focus-visible { background:var(--af-accent); color:var(--af-bg); }
.af-xm-frame { border:0; display:block; }
