/*
Theme Name: UMAR Ingeniería en agua
Theme URI: https://umar.com.ar
Author: UMAR
Description: Tema institucional de UMAR. Riego y agroindustria, agua y saneamiento, minería e industria. Incluye proyectos, productos, formulario de contacto y SEO local.
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: umar
*/

:root {
	--navy: #0E2A47;
	--navy-dark: #0A1F35;
	--celeste: #109CD3;
	--verde: #3E9B63;
	--grafito: #2E3439;
	--link: #0B6A9C;
	--niebla: #F2F6F8;
	--borde: #DCE5EA;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: #FFFFFF;
	color: #1E2A33;
	font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--link); }
a:hover { color: var(--navy); }
input, select, textarea, button { font-family: inherit; font-size: 16px; max-width: 100%; }
input, select, textarea { width: 100%; }
input[type="file"] { background: #FFFFFF; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--celeste); outline-offset: 2px; }
[id] { scroll-margin-top: 90px; }

.screen-reader-text, .skip-link:not(:focus) {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; background: #FFFFFF; padding: 10px 14px; border-radius: 4px; }

/* ---------- Cabecera ---------- */
.u-header {
	position: sticky; top: 0; z-index: 50;
	background: #FFFFFF; border-bottom: 1px solid var(--borde);
}
.admin-bar .u-header { top: 32px; }
.u-header__in {
	max-width: 1240px; margin: 0 auto; padding: 14px 32px;
	display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.u-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.u-brand__txt { display: flex; flex-direction: column; gap: 4px; }
.u-brand__txt img { height: 24px; width: 89px; display: block; }
.u-brand__txt span { font-family: 'Montserrat', sans-serif; font-size: 8px; letter-spacing: 0.06em; color: var(--celeste); }
.u-nav { display: flex; align-items: center; gap: 6px 22px; font-size: 15px; font-weight: 600; }
.u-nav a { color: var(--grafito); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.u-nav a:hover { color: var(--link); }
.u-nav a[aria-current="page"] { color: var(--link); border-bottom-color: var(--celeste); }
.u-nav a.u-nav__cta { background: var(--navy); color: #FFFFFF; padding: 11px 18px; border-radius: 6px; border: 0; }
.u-nav a.u-nav__cta:hover { background: var(--navy-dark); color: #FFFFFF; }
.u-burger {
	display: none; background: transparent; border: 1px solid var(--borde); border-radius: 6px;
	width: 46px; height: 46px; align-items: center; justify-content: center; color: var(--navy);
}
.u-burger svg { display: block; }

/* ---------- Pie ---------- */
.u-footer { background: #071626; color: #9FB4C4; font-size: 15px; }
.u-footer a { color: #9FB4C4; text-decoration: none; }
.u-footer a:hover { color: #FFFFFF; }
.u-footer__in { max-width: 1240px; margin: 0 auto; padding: 56px 32px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.u-footer__col { display: flex; flex-direction: column; gap: 8px; }
.u-footer__col strong { color: #FFFFFF; }
.u-footer__legal { max-width: 1240px; margin: 0 auto; padding: 20px 32px 32px; border-top: 1px solid #FFFFFF1A; font-size: 13px; color: #7F95A6; }

/* ---------- WhatsApp ---------- */
.u-wa {
	position: fixed; right: 20px; bottom: 20px; z-index: 60;
	width: 58px; height: 58px; border-radius: 29px; background: #25D366; color: #FFFFFF;
	display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(10, 31, 53, 0.25);
}
.u-wa:hover { color: #FFFFFF; transform: translateY(-1px); }

/* ---------- Formularios ---------- */
.u-hp { position: absolute !important; left: -9999px !important; }
.u-notice { grid-column: 1 / -1; padding: 14px 16px; border-radius: 6px; font-weight: 700; font-size: 15px; }
.u-notice--ok { background: #E4F2EA; color: #1F5E38; }
.u-notice--error { background: #FBE9E7; color: #8A2A1B; }
#umar-form button[type="submit"]:hover { filter: brightness(1.15); }

/* ---------- Contenido editable (proyectos y páginas) ---------- */
.u-content { max-width: 820px; margin: 0 auto; padding: 56px 24px 72px; font-size: 17px; line-height: 1.7; color: var(--grafito); }
.u-content h2 { font-size: 28px; line-height: 1.2; color: var(--navy); margin: 40px 0 12px; }
.u-content h3 { font-size: 21px; color: var(--navy); margin: 28px 0 8px; }
.u-content img { height: auto; border-radius: 8px; }
.u-content figure { margin: 28px 0; }
.u-content ul, .u-content ol { padding-left: 22px; }
.alignwide { max-width: 1100px; }
.wp-block-image img { border-radius: 8px; }

.u-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; }
.u-card { background: #FFFFFF; border: 1px solid var(--borde); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: box-shadow .15s ease; }
.u-card:hover { box-shadow: 0 10px 28px rgba(14, 42, 71, 0.10); color: inherit; }
.u-card img { width: 100%; height: 220px; object-fit: cover; display: block; }
.u-card__body { padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.u-chip { display: inline-block; background: var(--niebla); color: var(--grafito); padding: 6px 12px; border-radius: 20px; font-size: 13px; font-weight: 700; text-decoration: none; }
.u-chip--on { background: var(--navy); color: #FFFFFF; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.u-nav { gap: 6px 16px; font-size: 14px; }
}
@media (max-width: 980px) {
	.u-burger { display: inline-flex; }
	.u-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		background: #FFFFFF; border-bottom: 1px solid var(--borde);
		flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px;
		box-shadow: 0 16px 30px rgba(14, 42, 71, 0.12); font-size: 17px;
	}
	.u-nav.is-open { display: flex; }
	.u-nav a { padding: 14px 0; border-bottom: 1px solid var(--borde); }
	.u-nav a[aria-current="page"] { border-bottom-color: var(--borde); }
	.u-nav a.u-nav__cta { margin-top: 14px; text-align: center; padding: 15px 18px; }
	.u-header__in { position: relative; }
}
@media (max-width: 782px) {
	.admin-bar .u-header { top: 46px; }
}
@media (max-width: 768px) {
	.u-header__in { padding: 12px 20px; }
	.u-wrap { padding-left: 20px !important; padding-right: 20px !important; }
	.u-wrap[style*="padding: 1"], .u-wrap[style*="padding: 9"], .u-wrap[style*="padding: 8"], .u-wrap[style*="padding: 7"], .u-wrap[style*="padding: 6"] {
		padding-top: 56px !important; padding-bottom: 56px !important;
	}
	.u-hero .u-wrap { padding-top: 72px !important; padding-bottom: 72px !important; }
	.u-h1 { font-size: 36px !important; line-height: 1.08 !important; letter-spacing: -0.02em !important; }
	.u-h2 { font-size: 28px !important; line-height: 1.15 !important; }
	.u-tall { height: 260px !important; }
	.u-wrap [style*="gap: 64px"] , .u-wrap[style*="gap: 64px"] { gap: 32px !important; }
	.u-wrap p[style*="font-size: 21px"], .u-wrap p[style*="font-size: 19px"] { font-size: 17px !important; }
	.u-wrap [style*="font-size: 44px"], .u-wrap [style*="font-size: 40px"] { font-size: 32px !important; }
	.u-wrap [style*="border-right: 1px solid #E3EAEE"] { border-right: 0 !important; border-bottom: 1px solid #E3EAEE; padding-left: 0 !important; }
	.u-footer__in { padding: 44px 20px 20px; }
	.u-footer__legal { padding: 20px 20px 28px; }
	.u-content { padding: 40px 20px 56px; }
	.u-wa { right: 14px; bottom: 14px; width: 54px; height: 54px; }
}
@media (max-width: 420px) {
	.u-h1 { font-size: 31px !important; }
	.u-wrap a[style*="padding: 17px 26px"], .u-wrap a[style*="padding: 16px 24px"] { width: 100%; text-align: center; }
}
@media print {
	.u-header, .u-wa, .u-footer { display: none; }
}

/* Cifras del inicio en celular: 2 x 2 */
@media (max-width: 768px) {
	section[aria-label="UMAR en números"] .u-wrap { grid-template-columns: 1fr 1fr !important; }
	section[aria-label="UMAR en números"] .u-wrap > div { padding: 22px 12px 22px 0 !important; border-right: 0 !important; border-bottom: 1px solid #E3EAEE; }
	section[aria-label="UMAR en números"] .u-wrap > div > div:first-child { font-size: 30px !important; }
}
img[style*="calc(100% + 48px)"] { max-width: none; }
