/*!
Theme Name: VIS Portada
Description: VIS Foundation international and local website selector.
Author: GMD
Version: 5.0.0
Requires at least: 5.7
Requires PHP: 7.4
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: visportada
*/

:root {
	color-scheme: light;
	--page: #79ab14;
	--surface: #6e9b12;
	--ink: #142006;
	--highlight: #f5f5eb;
	--line: #344b0d;
	--panel: #91b83c;
	--panel-line: #536e1c;
	font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--ink);
	background: var(--page);
	-webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; min-height: 100vh; background: var(--page); font-size: 16px; line-height: 1.5; }
body::before { content: ""; display: block; height: 4px; background: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--ink); outline-offset: 5px; }
ul { margin: 0; padding: 0; list-style: none; }

.skip-link { position: fixed; top: 12px; left: 16px; z-index: 100000; transform: translateY(-200%); padding: 12px 18px; border-radius: 4px; background: var(--ink); color: var(--highlight); font-weight: 600; }
.skip-link:focus { transform: translateY(0); }
.page-shell { width: min(100% - 96px, 1180px); margin: 0 auto; padding: 48px 0 28px; }
.site-header { display: flex; align-items: center; gap: 40px; margin-bottom: 48px; }
.site-header::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), #344b0d40); }
.brand-title { flex: 0 1 370px; margin: 0; padding: 16px 18px; line-height: 1; }
.brand { width: 100%; }
main { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: 38px; align-items: stretch; }
h2 { margin: 0; font-weight: 600; letter-spacing: -0.045em; line-height: 1.07; }

.international-section {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 56px;
	min-width: 0;
	min-height: 430px;
	padding: 36px 32px 32px;
	border-radius: 8px;
	background: var(--panel);
	color: var(--ink);
	isolation: isolate;
}
.international-section h2 { position: relative; z-index: 1; font-size: clamp(2.1rem, 3.7vw, 3.25rem); overflow-wrap: anywhere; }
.international-section h2 span { display: block; }
.international-section h2 span:last-child { font-weight: 400; }
.globe { position: absolute; z-index: -1; top: 110px; right: 18px; width: 210px; max-width: 65%; stroke: currentColor; stroke-width: .75; opacity: .18; pointer-events: none; }

.language-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.language-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	min-height: 54px;
	height: 100%;
	padding: 12px 16px;
	border: 1px solid var(--panel-line);
	border-radius: 4px;
	background: #ffffff08;
	font-size: 1rem;
	font-weight: 600;
	transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
	overflow-wrap: anywhere;
}
.international-section a:focus-visible { outline-color: var(--ink); }
.local-section { min-width: 0; padding-top: 3px; }
.local-section h2 { margin-bottom: 28px; font-size: clamp(1.75rem, 3vw, 2.5rem); }
.country-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.country-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 112px;
	height: 100%;
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: 5px;
	background: var(--surface);
	font-size: clamp(1.125rem, 1.9vw, 1.625rem);
	font-weight: 500;
	letter-spacing: -.025em;
	transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
	overflow-wrap: anywhere;
}
.link-arrow { flex-shrink: 0; font-size: 1.125rem; line-height: 1; }
.country-list .link-arrow { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); }

@media (hover: hover) {
	.language-list a:hover { border-color: var(--ink); background: var(--ink); color: var(--highlight); }
	.country-list a:hover { border-color: var(--ink); background: var(--ink); color: var(--highlight); }
	.country-list a:hover .link-arrow { border-color: #f5f5eb80; color: var(--highlight); }
}
.language-list a:active { background: var(--ink); color: var(--highlight); }
.country-list a:active { background: var(--ink); color: var(--highlight); }
.country-list a:active .link-arrow { color: var(--highlight); }
.site-footer { display: flex; justify-content: flex-end; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); }
.slogan { width: 280px; }

@media (max-width: 1000px) {
	.page-shell { width: calc(100% - 64px); }
	main { gap: 24px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
	.international-section { padding: 28px 24px 24px; }
	.country-list { gap: 12px; }
	.country-list a { min-height: 112px; padding: 20px 16px; gap: 8px; }
	.language-list a { padding-inline: 12px; font-size: .9375rem; }
}
@media (max-width: 760px) {
	.page-shell { width: calc(100% - 40px); padding-top: 28px; padding-bottom: 24px; }
	.site-header { gap: 24px; margin-bottom: 28px; }
	.brand-title { flex-basis: 330px; padding: 12px 14px; }
	main { display: block; }
	.international-section { min-height: 280px; gap: 36px; padding: 28px 24px 24px; }
	.international-section h2 { font-size: clamp(2rem, 8vw, 3rem); }
	.globe { top: 24px; right: 24px; width: 175px; }
	.language-list a { min-height: 50px; padding: 12px 14px; font-size: 1rem; }
	.local-section { margin-top: 28px; padding-top: 0; }
	.local-section h2 { margin-bottom: 20px; font-size: 1.75rem; }
	.country-list { gap: 10px; }
	.country-list a { min-height: 82px; padding: 18px 16px; font-size: 1.125rem; }
	.country-list .link-arrow { width: 28px; height: 28px; font-size: 1rem; }
	.site-footer { margin-top: 28px; padding-top: 20px; }
	.slogan { width: 240px; }
}
@media (max-width: 380px) {
	.page-shell { width: calc(100% - 32px); }
	.site-header::after { display: none; }
	.international-section { padding: 24px 20px 20px; }
	.language-list a { padding-inline: 10px; font-size: .9375rem; }
	.country-list a { padding: 16px 12px; gap: 6px; font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
	.language-list a, .country-list a { transition: none; }
}
@media (forced-colors: active) {
	.globe { display: none; }
	.slogan { filter: brightness(0) invert(1); opacity: 1; }
	.brand { background: white; forced-color-adjust: none; }
}
