/* Telemeriendas: the pages about it (acerca/, fuentes/, terminos/, compatibilidad/, contacto/;
   owner, 2026-10-29). A chocolate heading like the guide's, the pages' menu as pills, then the
   text on a cream card, at a reading width. Loaded after style.css */

.info {
	display: grid;
	grid-template-columns: minmax(0, 1fr);  /* (a wide table scrolls in its box, not the page) */
	gap: 22px;
	width: min(100%, 880px);
	margin: 0 auto;
	padding: 40px 16px 48px;  /* 48px clear above the footer */
}

/* ---- Heading ---------------------------------------------------------------------------- */
.info-head {
	padding: 28px 28px 24px;
	background: linear-gradient(to bottom, #5e3520, #43251a);
	border-radius: 18px;
	box-shadow: 0 10px 24px rgba(91, 52, 32, 0.18);
	color: #f3dfc0;
}
.info-kicker {
	color: #e3c49a;
	font-size: 0.8125rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}
.info-head h2 {
	margin: 6px 0 0;
	color: var(--cola-cao);
	font-family: var(--font-display);
	font-size: clamp(1.9rem, 5vw, 2.6rem);
	font-weight: 700;
	line-height: 1.1;
	text-shadow: 3px 3px 0 var(--accent-bg);
	text-wrap: balance;
}
.info-lead {
	max-width: 62ch;
	margin-top: 10px;
	font-size: 1.0625rem;
	font-weight: 600;
	text-wrap: pretty;
}

/* ---- The pages' menu (nav.php, tmInfoNav()) --------------------------------------------- */
.info-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.info-nav a {
	display: inline-block;
	padding: 7px 14px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 999px;
	color: var(--text);
	font-size: 0.875rem;
	font-weight: 700;
	text-decoration: none;
}
.info-nav a:hover {
	background: var(--surface-hover);
	border-color: var(--border-hover);
}
.info-nav a[aria-current="page"] {
	background: var(--cocoa);
	border-color: var(--cocoa);
	color: var(--cola-cao);
}

/* ---- Text --------------------------------------------------------------------------------- */
.info-body {
	padding: 28px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 18px;
	box-shadow: 0 10px 24px rgba(91, 52, 32, 0.12);
	line-height: 1.6;
}
.info-body > * + * {
	margin-top: 14px;
}
.info-body h3 {
	margin-top: 28px;
	color: var(--cocoa);
	font-family: var(--font-display);
	font-size: 1.3rem;
	font-weight: 600;
	line-height: 1.25;
}
.info-body h3:first-child {
	margin-top: 0;
}
.info-body p,
.info-body li {
	max-width: 68ch;
	text-wrap: pretty;
}
.info-body ul {
	padding-left: 1.25em;
}
.info-body li + li {
	margin-top: 6px;
}
.info-body a {
	color: var(--accent);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.info-body a:hover {
	text-decoration-thickness: 2px;
}
.info-updated {
	color: var(--muted);
	font-size: 0.875rem;
}

/* Figures (acerca/): the site in numbers, in the OSD's VT323 */
.info-body .info-figures {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 12px;
	padding: 0;
	list-style: none;
}
.info-body .info-figures li {
	margin: 0;
	padding: 14px 16px;
	background: var(--bg);
	border-radius: 12px;
	line-height: 1.3;
}
.info-figures strong {
	display: block;
	color: var(--accent);
	font-family: "VT323", ui-monospace, monospace;
	font-size: 2.2rem;
	font-weight: 400;
	line-height: 1;
}

/* Tables (compatibilidad/, 2026-10-30): a header row on the guide's chocolate, the first column
   in bold; wider than the page on phones, they scroll sideways in their wrapper. Yes / partly / no
   cells in green, amber and red, with their words (not the colour alone) */
.info-table-wrap {
	overflow-x: auto;
	border: 1px solid var(--border);
	border-radius: 12px;
}
.info-body > .info-table-wrap {
	max-width: none;
}
.info-table {
	width: 100%;
	min-width: 560px;
	border-collapse: collapse;
	font-size: 0.875rem;
	line-height: 1.4;
}
.info-table th,
.info-table td {
	padding: 9px 12px;
	border-top: 1px solid var(--border);
	text-align: left;
	vertical-align: top;
}
.info-table thead th {
	border-top: 0;
	background: var(--cocoa);
	color: var(--cola-cao);
	font-family: var(--font-display);
	font-weight: 600;
}
.info-table tbody th {
	font-weight: 700;
}
.info-table tbody tr:nth-child(even) {
	background: rgba(91, 52, 32, 0.05);
}
.info-table .is-yes {
	color: #2f7a2b;
	font-weight: 700;
}
.info-table .is-part {
	color: #a0620b;
	font-weight: 700;
}
.info-table .is-no {
	color: #b92e1c;
	font-weight: 700;
}

/* ---- Contact form (contacto/) --------------------------------------------------------------- */
.contact-form {
	display: grid;
	gap: 16px;
	max-width: 560px;
}
.contact-field {
	display: grid;
	gap: 6px;
}
.contact-field label {
	font-weight: 800;
}
.contact-field .contact-hint {
	color: var(--muted);
	font-size: 0.875rem;
	font-weight: 600;
}
.contact-field input,
.contact-field textarea {
	width: 100%;
	padding: 10px 12px;
	background: #fffaf2;
	border: 1px solid var(--border-hover);
	border-radius: 10px;
	color: var(--text);
	font: inherit;
}
.contact-field textarea {
	min-height: 180px;
	resize: vertical;
}
.contact-field input[aria-invalid="true"],
.contact-field textarea[aria-invalid="true"] {
	border-color: var(--danger);
	box-shadow: 0 0 0 1px var(--danger);
}
/* The trap for robots: off screen, out of the tab order (contacto/index.php) */
.contact-trap {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.contact-send {
	justify-self: start;
	padding: 11px 24px;
	background: linear-gradient(#d0412f, #8e2318);
	border: 1px solid #5e160e;
	border-radius: 999px;
	box-shadow: 0 2px 0 #5e160e;
	color: #ffffff;
	font: inherit;
	font-family: var(--font-display);
	font-size: 1.0625rem;
	font-weight: 600;
	cursor: pointer;
}
.contact-send:hover {
	filter: brightness(1.12);
}
.contact-send:active {
	box-shadow: none;
	transform: translateY(2px);
}
/* The answer after sending: green when it went, red when it didn't */
.contact-result {
	padding: 14px 16px;
	border-radius: 12px;
	font-weight: 700;
}
.contact-result.is-sent {
	background: rgba(42, 110, 52, 0.12);
	border: 1px solid rgba(42, 110, 52, 0.4);
	color: var(--term);
}
.contact-result.is-error {
	background: rgba(200, 57, 43, 0.1);
	border: 1px solid rgba(200, 57, 43, 0.4);
	color: var(--accent);
}

@media only screen and (max-width: 520px) {
	.info {
		padding-top: 22px;
	}
	.info-head,
	.info-body {
		padding: 20px 18px;
	}
	.contact-send {
		justify-self: stretch;
	}
}
