/* ==========================================================================
   portal.css — Master Timing / cronometrajes.es
   Unica hoja de estilos del portal. Sustituye a cronometrajes.mobile.min.css,
   livetiming.css, homeCarrousel.min.css y al <style> incrustado en index.php.
   ========================================================================== */

@font-face {
	font-family: "Cabin Condensed";
	src: url("../fonts/cabincondensed-regular-webfont.woff") format("woff");
	font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
	font-family: "Cabin Condensed";
	src: url("../fonts/cabincondensed-bold-webfont.woff2") format("woff2");
	font-weight: 700; font-style: normal; font-display: swap;
}

:root {
	--bg:         #0a0b0d;
	--surface:    #121418;
	--surface-2:  #1a1d23;
	--surface-3:  #22262d;
	--line:       #262a31;
	--line-2:     #363b44;
	--text:       #eef0f3;
	--text-2:     #c3c8cf;
	--muted:      #8e96a1;

	--accent:     #e10600;
	--accent-hi:  #ff2a20;
	--live:       #22c55e;
	--live-hi:    #3ee07a;
	--upcoming:   #f5b301;

	--radius:     16px;
	--radius-sm:  10px;
	--header-h:   64px;
	--gutter:     16px;

	--font-display: "Cabin Condensed", "Barlow Condensed", "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
	--font-body:    system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--shadow: 0 10px 30px rgba(0, 0, 0, .45);
	color-scheme: dark;
}
@media (min-width: 720px) { :root { --gutter: 24px; } }

/* ---------------- Base ---------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 16px/1.55 var(--font-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: #fff; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.container--narrow { max-width: 860px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: #fff; padding: 10px 14px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 12px; }

svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------- Botones ---------------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 44px; padding: 0 20px; border-radius: 999px;
	background: var(--accent); color: #fff;
	font: 700 .85rem/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase;
	transition: background .2s, transform .2s;
}
.btn:hover { background: var(--accent-hi); }
.btn:active { transform: translateY(1px); }
.btn-sm { height: 36px; padding: 0 18px; }
.btn-ghost { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); }

/* ==========================================================================
   CABECERA
   ========================================================================== */
.site-header {
	position: sticky; top: 0; z-index: 50;
	height: var(--header-h);
	border-bottom: 1px solid transparent;
	transition: border-color .25s, box-shadow .25s;
}
/* El desenfoque va en un pseudo-elemento: si estuviera en la propia cabecera,
   el menu movil (position: fixed) quedaria atrapado dentro de sus 64 px. */
.site-header::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: rgba(10, 11, 13, .82);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	backdrop-filter: saturate(160%) blur(14px);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }
.site-header::after {   /* filo rojo de marca */
	content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
	background: linear-gradient(90deg, var(--accent) 0 30%, transparent 30%);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand img { height: 34px; width: auto; }

.nav-toggle { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; margin-right: -8px; }
.nav-toggle svg { width: 26px; height: 26px; }
.nav-toggle:hover { background: var(--surface-2); }

/* ---- Menu movil: panel lateral ---- */
.site-nav {
	position: fixed; z-index: 70; top: 0; right: 0; bottom: 0;
	width: min(88vw, 380px);
	background: var(--surface);
	border-left: 1px solid var(--line);
	padding: 0 20px 32px;
	overflow-y: auto; overscroll-behavior: contain;
	transform: translateX(100%);
	visibility: hidden;
	transition: transform .3s cubic-bezier(.2, .8, .2, 1), visibility 0s .3s;
}
.nav-open .site-nav { transform: none; visibility: visible; transition-delay: 0s; box-shadow: -20px 0 60px rgba(0, 0, 0, .5); }
.nav-open { overflow: hidden; }

.nav-backdrop {
	position: fixed; inset: 0; z-index: 60;
	background: rgba(0, 0, 0, .6);
	opacity: 0; pointer-events: none; transition: opacity .3s;
}
.nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }

.nav-panel-head { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.nav-panel-logo { height: 30px; width: auto; }
.nav-close { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; margin-right: -10px; }
.nav-close svg { width: 24px; height: 24px; }
.nav-close:hover { background: var(--surface-2); }

.nav-list { display: flex; flex-direction: column; }
.nav-link {
	width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px;
	padding: 16px 2px;
	font: 700 1.15rem/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase;
	border-bottom: 1px solid var(--line);
	text-align: left;
}
.nav-link .chev { width: 18px; height: 18px; color: var(--muted); transition: transform .25s; }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); color: var(--text); }
.nav-link .ext { width: 16px; height: 16px; color: var(--muted); }
.nav-link.is-current { color: var(--accent-hi); }

.nav-sub { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .28s ease, visibility 0s .28s; }
.nav-sub > ul { min-height: 0; overflow: hidden; }
.nav-link[aria-expanded="true"] + .nav-sub { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }
.nav-sub ul { padding: 4px 0 12px; }
.nav-sub a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: var(--radius-sm); color: var(--text-2); font-size: .95rem; }
.nav-sub a:hover, .nav-sub a[aria-current="page"] { background: var(--surface-2); color: var(--text); }
.sub-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }

.nav-cta {
	display: flex; align-items: center; justify-content: center;
	margin-top: 24px; height: 48px; border-radius: 999px;
	background: var(--accent); color: #fff;
	font: 700 .9rem/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase;
	transition: background .2s;
}
.nav-cta:hover { background: var(--accent-hi); }

/* ---- Menu escritorio ---- */
@media (min-width: 1000px) {
	.nav-toggle, .nav-panel-head, .nav-backdrop { display: none; }
	.site-nav {
		position: static; width: auto; padding: 0; background: none; border: 0;
		overflow: visible; transform: none; visibility: visible; transition: none;
	}
	.nav-list { flex-direction: row; align-items: center; gap: 2px; }
	.nav-item { position: relative; }
	.nav-link {
		width: auto; padding: 10px 14px; border: 0; border-radius: var(--radius-sm);
		font-size: 1rem; color: var(--text-2);
		transition: background .2s, color .2s;
	}
	.nav-link:hover, .nav-link[aria-expanded="true"], .nav-item:hover > .nav-link { background: var(--surface-2); color: var(--text); }
	.nav-link .chev { width: 15px; height: 15px; }

	.nav-sub {
		display: block; position: absolute; top: calc(100% + 10px); left: 0;
		min-width: 250px; padding: 8px;
		background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
		box-shadow: var(--shadow);
		opacity: 0; visibility: hidden; transform: translateY(-6px);
		transition: opacity .18s, transform .18s, visibility 0s .18s;
	}
	.nav-sub--wide { min-width: 320px; }
	.nav-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* puente para el hover */
	.nav-sub > ul { overflow: visible; padding: 0; }
	.nav-item:hover > .nav-sub,
	.nav-item:focus-within > .nav-sub,
	.nav-link[aria-expanded="true"] + .nav-sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
	.nav-sub a { padding: 10px 12px; font-size: .92rem; }

	.nav-cta { margin: 0 0 0 10px; height: 40px; padding: 0 20px; font-size: .8rem; }
}

/* ==========================================================================
   CARRUSEL
   ========================================================================== */
.carousel { position: relative; border-radius: 14px; overflow: hidden; background: var(--surface); }
.carousel-track {
	display: flex; overflow-x: auto; overflow-y: hidden;
	scroll-snap-type: x mandatory; scroll-behavior: auto;
	scrollbar-width: none; -ms-overflow-style: none;
	overscroll-behavior-x: contain;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:focus-visible { outline-offset: -3px; }
.carousel-slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.carousel-slide img { width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.carousel::after { /* degradado inferior para que los puntos se lean siempre */
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 80px; pointer-events: none;
	background: linear-gradient(to top, rgba(0, 0, 0, .45), transparent);
}
.carousel-cta {
	position: absolute; left: 20px; bottom: 44px; z-index: 2;
	display: inline-flex; align-items: center; height: 42px; padding: 0 20px; border-radius: 999px;
	background: var(--accent); color: #fff; font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
}
.carousel-cta:hover { background: var(--accent-hi); }

.carousel-dots { position: absolute; z-index: 2; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; }
.carousel-dot { width: 8px; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .5); transition: width .3s, background .3s; position: relative; }
.carousel-dot::before { content: ""; position: absolute; inset: -10px -4px; } /* zona tactil */
.carousel-dot.is-active { width: 26px; background: var(--accent); }

.carousel-arrow {
	position: absolute; z-index: 2; top: 50%; translate: 0 -50%;
	width: 46px; height: 46px; border-radius: 50%;
	display: none; place-items: center;
	background: rgba(10, 11, 13, .55); border: 1px solid rgba(255, 255, 255, .18);
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	opacity: 0; transition: opacity .2s, background .2s;
}
.carousel-arrow svg { width: 20px; height: 20px; }
.carousel-arrow:hover { background: rgba(225, 6, 0, .85); }
.carousel-prev { left: 16px; }
.carousel-next { right: 16px; }
@media (hover: hover) and (min-width: 720px) {
	.carousel-arrow { display: grid; }
	.carousel:hover .carousel-arrow, .carousel:focus-within .carousel-arrow { opacity: 1; }
}
@media (min-width: 720px) { .carousel { border-radius: 20px; } }

/* ==========================================================================
   SECCIONES
   ========================================================================== */
.hero { padding-top: 16px; }
@media (min-width: 720px) { .hero { padding-top: 24px; } }

.section { padding: 48px 0; }
@media (min-width: 720px) { .section { padding: 72px 0; } }
.section--alt { background: linear-gradient(180deg, var(--bg), #0e1013 30%, #0e1013); border-top: 1px solid var(--line); }

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.section-head h2 {
	font: 700 clamp(1.9rem, 1.3rem + 2.2vw, 2.9rem)/1 var(--font-display);
	letter-spacing: .01em; text-transform: uppercase;
}
.eyebrow {
	display: inline-flex; align-items: center; gap: 10px; margin-bottom: 10px;
	color: var(--accent-hi); font: 700 .78rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase;
}
.pulse { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--accent-hi); }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 1.6s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }

.lt-status { color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.lt-status.is-error { color: var(--upcoming); }

/* ==========================================================================
   TABLA DE EVENTOS  (tbody#ultimos_eventos lo rellena portal.js)
   ========================================================================== */
.events-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tabla-eventos { width: 100%; border-collapse: collapse; }
.tabla-eventos th {
	padding: 14px 20px; text-align: left;
	font: 700 .72rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
	background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.tabla-eventos td { padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tabla-eventos tbody tr:last-child td { border-bottom: 0; }
.tabla-eventos tbody tr.ev:not(.ev--msg):not(.ev--skeleton) { transition: background .15s; }
.tabla-eventos tbody tr.ev:not(.ev--msg):not(.ev--skeleton):hover { background: rgba(255, 255, 255, .03); }

.ev-name { font-weight: 650; font-size: 1rem; line-height: 1.3; }
.ev-session { color: var(--text-2); }
.ev-time { white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
.ev-time time { display: inline-flex; gap: 8px; align-items: baseline; }
.ev-clock { color: var(--text); font-weight: 600; }
.ev-action { width: 1%; white-space: nowrap; text-align: right; }

.ev--live td:first-child { box-shadow: inset 3px 0 0 var(--live); }
.ev--live { background: linear-gradient(90deg, rgba(34, 197, 94, .07), transparent 60%); }

/* Botones de estado (mismas clases que antes) */
.boton-resultados {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-width: 118px; height: 38px; padding: 0 16px; border-radius: 999px;
	font: 700 .78rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase;
	border: 1px solid transparent;
	transition: background .2s, border-color .2s, color .2s, transform .15s;
}
.boton-resultados:active { transform: translateY(1px); }
.st-ico { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }

.boton-live { background: var(--live); color: #03150a; box-shadow: 0 0 0 0 rgba(34, 197, 94, .5); animation: livering 2s infinite; }
.boton-live:hover { background: var(--live-hi); }
.boton-live .st-ico { background: #03150a; animation: blink 1.2s steps(2, start) infinite; }
@keyframes livering { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .45); } 70%, 100% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } }
@keyframes blink { to { visibility: hidden; } }

.boton-finished { background: var(--surface-3); border-color: var(--line-2); color: var(--text); }
.boton-finished:hover { border-color: var(--text-2); }
.boton-finished .st-ico {
	width: 14px; height: 14px; border-radius: 0; background: none;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 21h8M12 17v4M7 4h10v5a5 5 0 0 1-10 0z'/%3E%3Cpath d='M17 5h3v2a3 3 0 0 1-3 3M7 5H4v2a3 3 0 0 0 3 3'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 21h8M12 17v4M7 4h10v5a5 5 0 0 1-10 0z'/%3E%3Cpath d='M17 5h3v2a3 3 0 0 1-3 3M7 5H4v2a3 3 0 0 0 3 3'/%3E%3C/svg%3E") center / contain no-repeat;
	background-color: currentColor;
}

.boton-upcoming { background: rgba(245, 179, 1, .1); border-color: rgba(245, 179, 1, .4); color: var(--upcoming); }
.boton-upcoming:hover { background: rgba(245, 179, 1, .18); }

/* Estados de carga / vacio / error */
.ev--msg td { text-align: center; color: var(--muted); padding: 40px 20px; }
.sk { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; }
.sk-btn { width: 118px; height: 38px; border-radius: 999px; margin-left: auto; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Movil: cada evento es una tarjeta */
@media (max-width: 719px) {
	.tabla-eventos thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.tabla-eventos, .tabla-eventos tbody { display: block; }
	.tabla-eventos tr.ev {
		display: grid; grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas: "event action" "session action" "time action";
		column-gap: 14px; row-gap: 3px; align-items: center;
		padding: 14px 16px; border-bottom: 1px solid var(--line);
	}
	.tabla-eventos tr.ev:last-child { border-bottom: 0; }
	.tabla-eventos tr.ev td { display: block; padding: 0; border: 0; }
	.tabla-eventos tr.ev--msg { display: block; }
	.tabla-eventos tr.ev--msg td { padding: 28px 8px; }
	.ev-event { grid-area: event; }
	.ev-session { grid-area: session; font-size: .92rem; }
	.ev-time { grid-area: time; font-size: .85rem; }
	.ev-action { grid-area: action; width: auto; }
	.ev--live td:first-child { box-shadow: none; }
	.ev--live { box-shadow: inset 3px 0 0 var(--live); }
	.boton-resultados { min-width: 100px; height: 36px; padding: 0 12px; font-size: .72rem; }
	.sk-btn { width: 100px; height: 36px; }
}

/* Campeonatos */
.championships { margin-top: 32px; }
.championships h3 { margin-bottom: 14px; color: var(--muted); font: 700 .78rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
	display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px;
	border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface);
	color: var(--text-2); font-size: .9rem; transition: border-color .2s, color .2s, background .2s;
}
.chip:hover { border-color: var(--accent); color: var(--text); background: var(--surface-2); }

/* ==========================================================================
   FAMILIAS DE PRODUCTO
   ========================================================================== */
.families { display: grid; gap: 16px; }
@media (min-width: 900px) { .families { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.family {
	position: relative; isolation: isolate; overflow: hidden;
	min-height: 340px; display: flex; flex-direction: column; justify-content: flex-end;
	border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface);
}
.family-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.family::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 11, 13, .15) 0%, rgba(10, 11, 13, .7) 45%, rgba(10, 11, 13, .96) 100%); }
.family:hover .family-bg { transform: scale(1.05); }
.family-body { padding: 24px; }
.family-icon { width: 40px; height: 40px; object-fit: contain; margin-bottom: 14px; }
.family h3 { font: 700 1.9rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .02em; margin-bottom: 12px; }
.family p { color: var(--text-2); margin-bottom: 18px; max-width: 34ch; }
.family-links li + li { border-top: 1px solid rgba(255, 255, 255, .1); }
.family-links a { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; color: var(--text-2); font-size: .95rem; transition: color .2s, padding .2s; }
.family-links a::after { content: "→"; color: var(--accent-hi); opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .2s; }
.family-links a:hover { color: var(--text); }
.family-links a:hover::after { opacity: 1; transform: none; }

/* ==========================================================================
   PAGINAS DE PRODUCTO / LEGAL
   ========================================================================== */
.product, .legal { padding: 20px 0 64px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: .85rem; margin-bottom: 28px; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb [aria-current] { color: var(--text-2); }
.product-head { margin-bottom: 28px; max-width: 760px; }
.product-head h1 { font: 700 clamp(2.4rem, 1.6rem + 3.4vw, 4rem)/.95 var(--font-display); text-transform: uppercase; letter-spacing: .01em; margin-bottom: 16px; }
.lead { color: var(--text-2); font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); line-height: 1.6; }

.product-body { display: grid; gap: 32px; margin-top: 40px; }
@media (min-width: 900px) { .product-body { grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: start; } }

.prose { color: var(--text-2); line-height: 1.75; }
.prose h2 { color: var(--text); font: 700 1.5rem/1.1 var(--font-display); text-transform: uppercase; letter-spacing: .03em; margin: 36px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { color: var(--text); font-size: 1.1rem; margin: 28px 0 10px; }
.prose p { margin: 0 0 1em; max-width: 70ch; }
.prose ul { margin: 0 0 1.2em; }
.prose ul li { position: relative; padding-left: 20px; margin-bottom: 6px; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.prose a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.prose a:hover { color: var(--accent-hi); }

.facts { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
@media (min-width: 900px) { .facts { position: sticky; top: calc(var(--header-h) + 20px); } }
.facts h2 { font: 700 .78rem/1.3 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-hi); margin-bottom: 8px; }
.facts dl { margin: 0 0 22px; }
.facts dl:last-child { margin-bottom: 0; }
.facts dl > div { display: grid; grid-template-columns: 42% 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.facts dl > div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); font-size: .88rem; }
.facts dd { margin: 0; color: var(--text); font-size: .92rem; font-weight: 550; }
.facts a { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }

.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.data-table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 520px; }
.data-table th, .data-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.data-table th { background: var(--surface-2); color: var(--text); font-weight: 650; }
.data-table tr:last-child td { border-bottom: 0; }

/* ==========================================================================
   PIE
   ========================================================================== */
.site-footer { border-top: 1px solid var(--line); background: #08090b; padding: 56px 0 24px; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer-logo { height: 34px; width: auto; margin-bottom: 16px; }
.footer-brand p { color: var(--muted); max-width: 36ch; margin-bottom: 18px; font-size: .95rem; }
.social { display: flex; gap: 10px; }
.social a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); transition: border-color .2s, background .2s; }
.social a:hover { border-color: var(--accent); background: var(--surface-2); }
.social img { width: 18px; height: 18px; object-fit: contain; }
.footer-col h2 { font: 700 .76rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer-col li + li { margin-top: 10px; }
.footer-col a { color: var(--text-2); font-size: .95rem; }
.footer-col a:hover { color: var(--text); }

.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.to-top { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .85rem; }
.to-top svg { width: 16px; height: 16px; }
.to-top:hover { color: var(--text); }

/* Aviso de cookies */
.cookie-bar {
	position: fixed; z-index: 80; left: 12px; right: 12px; bottom: 12px; bottom: max(12px, env(safe-area-inset-bottom));
	display: flex; align-items: center; gap: 14px;
	max-width: 520px; padding: 14px 14px 14px 18px;
	background: rgba(26, 29, 35, .96); border: 1px solid var(--line-2); border-radius: 14px;
	box-shadow: var(--shadow);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	animation: rise .35s cubic-bezier(.2, .8, .2, 1);
	transition: opacity .25s, transform .25s;
}
.cookie-bar[hidden] { display: none; }
.cookie-bar.is-leaving { opacity: 0; transform: translateY(12px); }
.cookie-bar p { font-size: .85rem; color: var(--text-2); line-height: 1.45; }
.cookie-bar a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.cookie-bar .btn { flex: none; }
@media (min-width: 720px) { .cookie-bar { left: 24px; bottom: 24px; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* ---------------- Accesibilidad: menos movimiento ---------------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
