/* Estilos compartidos por aviso-legal.html, privacidad.html y cookies.html.
   Misma paleta que la portada: crema, salvia, oliva y tierra. */

:root {
	--crema: #F3EFE6;
	--salvia: #CBCEAB;
	--oliva: #516927;
	--tierra: #3C342B;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--crema);
	color: var(--tierra);
	font-family: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	font-size: 16px;
	line-height: 1.75;
}

header {
	background: var(--salvia);
	border-bottom: 3px solid var(--oliva);
	padding: 30px 20px;
	text-align: center;
}

header a {
	color: var(--oliva);
	font-weight: 700;
	text-decoration: none;
	font-size: 14px;
	letter-spacing: .08em;
	text-transform: uppercase;
}

header a:hover {
	text-decoration: underline;
}

h1 {
	margin: 12px 0 4px;
	font-size: clamp(26px, 5vw, 36px);
	line-height: 1.2;
	color: var(--tierra);
	text-wrap: balance;
}

.fecha {
	margin: 0;
	font-size: 14px;
	opacity: .8;
}

main {
	max-width: 760px;
	margin: 0 auto;
	padding: 40px 20px 70px;
}

h2 {
	margin: 42px 0 12px;
	font-size: 20px;
	line-height: 1.3;
	color: var(--oliva);
	border-bottom: 2px solid var(--salvia);
	padding-bottom: 8px;
}

h2:first-of-type {
	margin-top: 0;
}

h3 {
	margin: 26px 0 8px;
	font-size: 16.5px;
	color: var(--tierra);
}

p,
li {
	margin: 0 0 14px;
}

ul {
	padding-left: 22px;
}

a {
	color: var(--oliva);
}

a:focus-visible,
button:focus-visible {
	outline: 3px solid var(--tierra);
	outline-offset: 2px;
}

.ficha {
	background: #fff;
	border-left: 5px solid var(--oliva);
	border-radius: 6px;
	padding: 20px 24px;
	margin: 0 0 14px;
}

.ficha dl {
	margin: 0;
	display: grid;
	grid-template-columns: minmax(140px, auto) 1fr;
	gap: 8px 18px;
}

.ficha dt {
	font-weight: 700;
}

.ficha dd {
	margin: 0;
}

.pendiente {
	background: #FBE9C8;
	color: #7A4A00;
	border-radius: 4px;
	padding: 1px 7px;
	font-weight: 700;
	font-size: 14px;
}

/* Las tablas de cookies son anchas: que se desplacen ellas, nunca la página. */
.tabla-envoltorio {
	overflow-x: auto;
	margin: 0 0 18px;
	border-radius: 6px;
	border: 1px solid var(--salvia);
}

table {
	border-collapse: collapse;
	width: 100%;
	min-width: 620px;
	background: #fff;
	font-size: 14.5px;
}

caption {
	caption-side: top;
	text-align: left;
	padding: 12px 14px;
	background: var(--salvia);
	font-weight: 700;
}

th,
td {
	text-align: left;
	padding: 11px 14px;
	border-bottom: 1px solid #E6E2D6;
	vertical-align: top;
}

th {
	background: #FAF8F2;
	font-weight: 700;
}

tbody tr:last-child td {
	border-bottom: 0;
}

code {
	background: #EFEBE0;
	border-radius: 4px;
	padding: 1px 6px;
	font-size: 13.5px;
}

.boton-preferencias {
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	background: var(--oliva);
	color: #fff;
	border: 2px solid var(--oliva);
	border-radius: 8px;
	padding: 12px 26px;
}

.boton-preferencias:hover {
	background: #3f5220;
}

.boton-preferencias.secundario {
	background: transparent;
	color: var(--oliva);
}

.boton-preferencias.secundario:hover {
	background: rgba(81, 105, 39, .1);
}

.botonera {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

@media (max-width:560px) {
	.botonera .boton-preferencias {
		width: 100%;
	}
}

.estado-consentimiento {
	margin: 10px 0 0;
	font-size: 14px;
	opacity: .85;
}

footer {
	background: var(--tierra);
	color: var(--crema);
	padding: 28px 20px;
	text-align: center;
	font-size: 14px;
}

footer a {
	color: var(--crema);
}

footer nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 24px;
	margin-bottom: 12px;
}

@media (max-width:560px) {
	.ficha dl {
		grid-template-columns: 1fr;
		gap: 2px;
	}

	.ficha dt {
		margin-top: 10px;
	}
}
