/*
Theme Name: Novotextil
Theme URI: https://www.novotextil.es
Author: ecomm360
Description: Tema a medida para Novotextil. Base tipográfica y cabecera con menú desplegable.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: novotextil
*/

/* Inter variable, alojada en el tema (sin llamadas a terceros) */
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--nt-font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
	--nt-text: #181818;
	--nt-muted: #5c5c5c;
	--nt-bg: #f6f6f6;
	--nt-bar: #e4e4e4;
	--nt-line: rgba(24, 24, 24, .12);
	--nt-gutter: 16px;
	--nt-header-h: 52px;
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--nt-bg); -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--nt-bg);
	color: var(--nt-text);
	font-family: var(--nt-font);
	font-size: 14px;
	font-weight: 300;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--nt-font); font-weight: 300; line-height: 1.2; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--nt-text); }
img { display: block; }
img, video, iframe, embed, object { max-width: 100%; }
img, video { height: auto; }
body { overflow-x: clip; }
button, input, select, textarea { font: inherit; color: inherit; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; margin: 0; overflow: visible;
	top: 8px; left: 8px; z-index: 1000; padding: 8px 12px; background: #fff; color: var(--nt-text);
}

.nt-main { min-height: 50vh; }
.nt-content { max-width: 1200px; margin: 0 auto; padding: 32px var(--nt-gutter); }

/* Pie mínimo (se desarrollará después) */
/* Textos largos (páginas legales, quiénes somos): líneas de lectura cómoda */
.nt-content > p, .nt-content > ul, .nt-content > ol, .nt-content > h2, .nt-content > h3 { max-width: 760px; }
.nt-content > h2 { margin-top: 32px; }
.nt-content > table { width: 100%; max-width: 960px; border-collapse: collapse; margin: 16px 0; font-size: 13px; }
.nt-content > table th, .nt-content > table td { text-align: left; vertical-align: top; padding: 10px 16px 10px 0; border-bottom: 1px solid var(--nt-line); }
.nt-content > table th { font-weight: 400; color: var(--nt-muted); }
@media (max-width: 700px) {
	.nt-content > table { display: block; overflow-x: auto; }
}

/* ---------- Pie ---------- */
.nt-footer { border-top: 1px solid var(--nt-line); background: var(--nt-bg); }
.nt-footer__cols { display: flex; flex-wrap: wrap; }
.nt-footer__col {
	flex: 1 1 0;
	min-width: 0;
	padding: 40px var(--nt-gutter);
	border-right: 1px solid var(--nt-line);
}
.nt-footer__col:last-child { border-right: 0; }
.nt-footer__col--contact { flex: 2 1 0; }
.nt-footer__title { margin: 0 0 20px; }
.nt-footer__title--lead { font-size: 18px; line-height: 27px; margin-bottom: 12px; }
.nt-footer__lead { margin: 0 0 24px; max-width: 340px; }
.nt-footer__address { font-style: normal; margin: 0 0 12px; }
.nt-footer__list { list-style: none; margin: 0; padding: 0; }
.nt-footer__col--contact .nt-footer__list { margin-bottom: 12px; }
.nt-footer__hours { margin: 0; color: var(--nt-muted); }
.nt-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.nt-footer__base {
	border-top: 1px solid var(--nt-line);
	padding: 24px var(--nt-gutter);
	color: var(--nt-muted);
}
.nt-footer__base p { margin: 0; }

@media (max-width: 900px) {
	.nt-footer__col { flex: 1 1 50%; border-right: 0; border-bottom: 1px solid var(--nt-line); padding: 24px var(--nt-gutter); }
	.nt-footer__col--contact { flex-basis: 100%; }
	.nt-footer__col:nth-child(odd):not(.nt-footer__col--contact) { border-right: 1px solid var(--nt-line); }
	.nt-footer__title { margin-bottom: 12px; }
}
@media (max-width: 560px) {
	.nt-footer__col,
	.nt-footer__col:nth-child(odd):not(.nt-footer__col--contact) { flex-basis: 100%; border-right: 0; }
}
