/* Nazca Ingeniería — estilos principales */

:root {
	--nz-navy: #101c2b;
	--nz-blue: #244b70;
	--nz-white: #fff;
	--nz-gray: #f3f6f8;
	--nz-text: #596575;
	--nz-accent: #19b5d6;      /* acento provisional: ajustar al logotipo real */
	--nz-accent-ink: #0b6f84;  /* variante con contraste AA sobre fondo claro */
	--nz-line: #dde3e9;
	--nz-radius: 14px;
	--nz-shadow: 0 1px 2px rgba(16, 28, 43, .06), 0 8px 24px rgba(16, 28, 43, .06);
	--nz-max: 1240px;
	--nz-font: Inter, Manrope, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
	--nz-header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--nz-font);
	font-size: 1.0625rem;
	line-height: 1.7;
	color: var(--nz-text);
	background: var(--nz-white);
	-webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--nz-accent-ink); text-underline-offset: .18em; }
a:hover { color: var(--nz-blue); }
:focus-visible { outline: 3px solid var(--nz-accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4, h5, h6 { color: var(--nz-navy); line-height: 1.15; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5vw + .5rem, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 2.6vw + .6rem, 2.7rem); }
h3 { font-size: clamp(1.3rem, 1.4vw + .8rem, 1.8rem); }
h4 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }

.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 {
	position: fixed !important; z-index: 1000; top: 8px; left: 8px; width: auto; height: auto; margin: 0;
	clip: auto; padding: .8rem 1.2rem; background: var(--nz-white); color: var(--nz-navy); box-shadow: var(--nz-shadow);
}

.nz-container { width: 100%; max-width: var(--nz-max); margin-inline: auto; padding-inline: 1.25rem; }
.nz-container--narrow { max-width: 860px; }

/* ---------- cabecera ---------- */
.nz-header {
	position: sticky; top: 0; z-index: 100; background: rgba(16, 28, 43, .92);
	backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.nz-header__inner {
	max-width: var(--nz-max); margin-inline: auto; padding: 0 1.25rem; min-height: var(--nz-header-h);
	display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.nz-logo { display: inline-flex; align-items: center; }
.nz-logo__img { height: 40px; width: auto; max-width: 220px; }
.nz-menu, .nz-menu ul { list-style: none; margin: 0; padding: 0; }
.nz-menu { display: flex; gap: .25rem; align-items: center; }
.nz-menu a {
	display: block; padding: .6rem .95rem; color: #e8eef4; text-decoration: none; font-size: .95rem;
	font-weight: 500; border-radius: 999px; transition: background .2s, color .2s;
}
.nz-menu a:hover, .nz-menu .current-menu-item > a, .nz-menu .current_page_item > a { background: rgba(255, 255, 255, .1); color: #fff; }
.nz-menu img { display: inline-block; vertical-align: middle; }

.nz-nav-toggle { display: none; background: none; border: 0; width: 46px; height: 46px; padding: 0; cursor: pointer; color: #fff; border-radius: 10px; }
.nz-nav-toggle__bars, .nz-nav-toggle__bars::before, .nz-nav-toggle__bars::after {
	display: block; width: 24px; height: 2px; background: currentColor; border-radius: 2px; margin-inline: auto; transition: transform .25s, opacity .2s;
}
.nz-nav-toggle__bars { position: relative; }
.nz-nav-toggle__bars::before, .nz-nav-toggle__bars::after { content: ""; position: absolute; left: 0; right: 0; }
.nz-nav-toggle__bars::before { top: -7px; }
.nz-nav-toggle__bars::after { top: 7px; }
.nz-nav-toggle[aria-expanded="true"] .nz-nav-toggle__bars { background: transparent; }
.nz-nav-toggle[aria-expanded="true"] .nz-nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nz-nav-toggle[aria-expanded="true"] .nz-nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
	.nz-nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
	.nz-nav {
		position: absolute; inset: var(--nz-header-h) 0 auto 0; background: var(--nz-navy);
		padding: .75rem 1.25rem 1.5rem; border-bottom: 1px solid rgba(255, 255, 255, .1);
		display: none; max-height: calc(100vh - var(--nz-header-h)); overflow-y: auto;
	}
	.nz-nav.is-open { display: block; }
	.nz-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.nz-menu a { padding: 1rem .5rem; border-radius: 8px; font-size: 1.05rem; }
}

/* ---------- secciones y módulos (contenido) ---------- */
.nz-main { min-height: 50vh; }
.nz-section { position: relative; padding: clamp(2.25rem, 4.2vw, 4rem) 0; background: var(--nz-white); overflow: hidden; }
.nz-content > .nz-section:nth-of-type(even) { background: var(--nz-gray); }
.nz-section > .nz-container, .nz-section > .nz-row { position: relative; z-index: 2; }

.nz-dark { background: var(--nz-navy) !important; color: #c9d4df; }
.nz-dark h1, .nz-dark h2, .nz-dark h3, .nz-dark h4, .nz-dark h5, .nz-dark h6 { color: #fff; }
.nz-dark a:not(.nz-button) { color: #7fe0f4; }
.nz-dark a:not(.nz-button):hover { color: #fff; }

.nz-has-bg::before {
	content: ""; position: absolute; inset: 0; z-index: 0; background: var(--nz-bg) center / cover no-repeat; opacity: .35;
}
.nz-has-bg:not(.nz-dark)::before { opacity: .12; }
.nz-bgvideo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.nz-has-video { background: #0b1420 !important; }
.nz-has-video.nz-has-bg::before { opacity: 1; }

.nz-row { display: flex; flex-wrap: wrap; gap: 1.5rem 2.25rem; align-items: flex-start; }
.nz-row + .nz-row { margin-top: 2rem; }
.nz-col { flex: var(--nz-span, 12) 1 0%; min-width: 0; }
.nz-row > .nz-col:only-child { flex-basis: 100%; max-width: 980px; margin-inline: auto; }
@media (max-width: 860px) { .nz-col { flex: 1 1 100%; } }

.nz-text { max-width: 72ch; }
.nz-col > .nz-text:only-child, .nz-col--4_4 > .nz-text { max-width: 78ch; }
.nz-text ul, .nz-text ol { padding: 0; margin: 0 0 1.4em; list-style: none; }
.nz-text li { position: relative; padding: .35em 0 .35em 1.6rem; }
.nz-text ul li::before {
	content: ""; position: absolute; left: 0; top: 1.05em; width: .6rem; height: 2px; background: var(--nz-accent);
}
.nz-text ol { counter-reset: n; }
.nz-text ol li { counter-increment: n; }
.nz-text ol li::before { content: counter(n) "."; position: absolute; left: 0; color: var(--nz-accent-ink); font-weight: 700; }
.nz-text strong, .nz-text b { color: var(--nz-navy); }
.nz-dark .nz-text strong, .nz-dark .nz-text b { color: #fff; }

.nz-image { margin: 0; }
.nz-image img { border-radius: var(--nz-radius); box-shadow: var(--nz-shadow); width: 100%; background: #fff; }
.nz-video { margin: 0 0 1.5rem; }
.nz-video iframe, .nz-code iframe[src*="youtube"], .nz-code iframe[src*="youtu.be"], .nz-code iframe[src*="vimeo"] {
	width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: var(--nz-radius);
}
.nz-video video { width: 100%; border-radius: var(--nz-radius); background: #000; }
.nz-code iframe[src*="google.com/maps"] { width: 100%; height: 420px; border: 0; border-radius: var(--nz-radius); box-shadow: var(--nz-shadow); }
.nz-divider { border: 0; border-top: 1px solid var(--nz-line); margin: 2rem 0; }

.nz-button, .nz-form button {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem; cursor: pointer;
	padding: .9rem 1.7rem; border-radius: 999px; border: 2px solid var(--nz-accent); background: var(--nz-accent);
	color: var(--nz-navy); font: 700 1rem/1.2 var(--nz-font); text-decoration: none;
	transition: transform .2s, background .2s, color .2s, box-shadow .2s;
}
.nz-button:hover, .nz-form button:hover { transform: translateY(-2px); background: #fff; border-color: #fff; color: var(--nz-navy); box-shadow: 0 8px 22px rgba(25, 181, 214, .35); }
.nz-button--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.nz-button-wrap { margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .75rem; }
.nz-section:not(.nz-dark) .nz-button { background: var(--nz-navy); border-color: var(--nz-navy); color: #fff; }
.nz-section:not(.nz-dark) .nz-button:hover { background: var(--nz-accent-ink); border-color: var(--nz-accent-ink); color: #fff; }

/* tarjetas (blurbs, proyectos, noticias) */
.nz-blurb, .nz-card {
	background: #fff; border: 1px solid var(--nz-line); border-radius: var(--nz-radius); overflow: hidden;
	box-shadow: var(--nz-shadow); display: flex; flex-direction: column; height: 100%;
	transition: transform .25s, box-shadow .25s, border-color .25s;
}
.nz-blurb:hover, .nz-card:hover { transform: translateY(-4px); border-color: var(--nz-accent); }
.nz-blurb__media, .nz-card__media { display: block; background: var(--nz-gray); }
.nz-blurb__media img, .nz-card__media img { width: 100%; height: auto; max-height: 340px; object-fit: contain; margin-inline: auto; }
.nz-card__media img { aspect-ratio: 16 / 10; }
.nz-blurb__body, .nz-card__body { padding: 1.4rem 1.5rem 1.7rem; }
.nz-blurb__title, .nz-card__title { font-size: 1.3rem; margin-bottom: .5em; }
.nz-blurb__title a, .nz-card__title a { color: var(--nz-navy); text-decoration: none; }
.nz-blurb__title a:hover, .nz-card__title a:hover { color: var(--nz-accent-ink); }
.nz-blurb__body p:last-child, .nz-card__body p:last-child { margin-bottom: 0; }
.nz-dark .nz-blurb { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .14); box-shadow: none; }
.nz-dark .nz-blurb__media { background: transparent; }
.nz-dark .nz-blurb__title a { color: #fff; }

/* en listados de proyectos y mercados las filas con varias tarjetas se alinean */
.nz-content--projects .nz-row { align-items: stretch; }
.nz-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 1.75rem; }
.nz-news-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.75rem; margin-bottom: 1.5rem; }
.nz-news-grid > * { grid-column: span 2; }
.nz-news-grid > :nth-last-child(2):nth-child(3n + 1),
.nz-news-grid > :last-child:nth-child(3n + 2) { grid-column: span 3; }
.nz-news-grid > :last-child:nth-child(3n + 1) { grid-column: span 6; }
@media (max-width: 960px) {
	.nz-news-grid > * { grid-column: span 3; }
	.nz-news-grid > :last-child:nth-child(odd) { grid-column: span 6; }
}
@media (max-width: 600px) { .nz-news-grid > * { grid-column: span 6 !important; } }
.nz-date { font-size: .85rem; letter-spacing: .06em; text-transform: capitalize; color: var(--nz-accent-ink); font-weight: 600; margin-bottom: .6rem; }
.nz-dark .nz-date { color: #7fe0f4; }

.nz-cta { text-align: center; max-width: 780px; margin-inline: auto; }

/* ---------- portada ---------- */
.nz-section--hero, .nz-front .nz-content > .nz-section:first-child {
	min-height: clamp(420px, 72vh, 720px); display: flex; align-items: center; padding-block: 4.5rem 3.5rem;
}
.nz-front .nz-content > .nz-section:first-child > .nz-container { width: 100%; }
.nz-front .nz-content > .nz-section:first-child.nz-has-bg::before { opacity: 1; }
.nz-front .nz-content > .nz-section:first-child::after { display: none; }
.nz-front .nz-content > .nz-section:first-child .nz-row { justify-content: center; align-items: center; margin: 0; }

/* panel azul: solo ocupa el texto, el resto de la cabecera deja ver el vídeo */
.nz-front .nz-content > .nz-section:first-child .nz-col,
.nz-hero__body {
	flex: 0 1 auto; max-width: min(760px, 100%); text-align: center;
	padding: clamp(1.4rem, 3vw, 2.4rem) clamp(1.4rem, 4vw, 3.2rem);
	background: var(--nz-hero-panel, rgba(11, 20, 32, .74)); border: 1px solid rgba(255, 255, 255, .12); border-radius: 18px;
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.nz-front .nz-content > .nz-section:first-child .nz-text { margin-inline: auto; }
.nz-front .nz-content > .nz-section:first-child .nz-text > :last-child { margin-bottom: 0; }
.nz-hero { display: flex; justify-content: center; }
.nz-hero__title { font-size: clamp(2.6rem, 7vw, 5.6rem); margin-bottom: .3em; }
.nz-hero__sub { font-size: clamp(1.05rem, 1.4vw + .6rem, 1.5rem); max-width: 40ch; margin-inline: auto; color: #d6e0ea; }
.nz-front .nz-content > .nz-section:first-child h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); margin-bottom: .25em; }
.nz-front .nz-content > .nz-section:first-child h2 { font-size: clamp(1.1rem, 1.4vw + .6rem, 1.5rem); font-weight: 500; margin-inline: auto; max-width: 40ch; }
.nz-front .nz-content > .nz-section:first-child ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.nz-front .nz-content > .nz-section:first-child li {
	padding: .45rem 1rem; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; background: rgba(255, 255, 255, .06); font-size: .95rem;
}
.nz-front .nz-content > .nz-section:first-child li::before { display: none; }

/* ---------- banda de llamada a la acción ---------- */
.nz-cta-band {
	text-align: center; padding-block: clamp(3rem, 6vw, 5rem);
	background:
		radial-gradient(ellipse 60% 90% at 85% 0%, rgba(25, 181, 214, .28), transparent 62%),
		radial-gradient(ellipse 50% 80% at 5% 100%, rgba(36, 75, 112, .75), transparent 65%),
		var(--nz-navy) !important;
}
.nz-cta-band::before {
	content: ""; position: absolute; inset: 0; z-index: 0; opacity: .5; pointer-events: none;
	background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
	background-size: 44px 44px;
	-webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}
.nz-cta-band::after {
	content: ""; position: absolute; left: 50%; top: 0; z-index: 2; width: 84px; height: 4px; transform: translateX(-50%);
	background: var(--nz-accent); border-radius: 0 0 4px 4px;
}
.nz-cta-band .nz-divider { display: none; }
.nz-cta-band .nz-row > .nz-col:only-child { max-width: 860px; }
.nz-cta-band h1, .nz-cta-band h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); margin-bottom: .45em; }
.nz-cta-band .nz-text { max-width: none; margin-inline: auto; }
.nz-cta-band p { color: #c9d4df; font-size: 1.15rem; max-width: 46ch; margin-inline: auto; }
.nz-cta-band .nz-button-wrap { justify-content: center; margin-top: 1.75rem; }
.nz-button--lg { padding: 1.05rem 2.1rem; font-size: 1.08rem; }
.nz-button--lg::after { content: "\2192"; font-weight: 700; transition: transform .2s; }
.nz-button--lg:hover::after { transform: translateX(5px); }
.nz-cta-band .nz-button { background: var(--nz-accent); border-color: var(--nz-accent); color: var(--nz-navy); }
.nz-cta-band .nz-button:hover { background: #fff; border-color: #fff; color: var(--nz-navy); box-shadow: 0 10px 30px rgba(25, 181, 214, .4); }

/* fondo de la cabecera (rectángulo entre el vídeo y el panel): color y opacidad desde el Personalizador */
.nz-section--hero.nz-dark { background: var(--nz-hero-bg, transparent) !important; }

/* ---------- cabecera de página ---------- */
.nz-page-hero { padding: clamp(2.25rem, 5vw, 4rem) 0 clamp(1.75rem, 3.5vw, 2.75rem); position: relative; overflow: hidden; }
.nz-page-hero::after {
	content: ""; position: absolute; right: -10%; top: -40%; width: 60vw; height: 60vw; max-width: 700px; max-height: 700px;
	background: radial-gradient(circle, rgba(25, 181, 214, .22), transparent 62%); pointer-events: none;
}
.nz-page-hero__inner { position: relative; z-index: 1; }
.nz-page-hero__title { margin: 0; font-size: clamp(2.1rem, 5vw, 4rem); max-width: 22ch; }
.nz-backlink { display: inline-block; margin-bottom: 1.2rem; font-size: .9rem; font-weight: 600; text-decoration: none; }
.nz-page-hero .nz-date { margin: 1.2rem 0 0; }

/* ---------- fichas de proyecto ---------- */
.nz-content--project .nz-section { padding-block: clamp(1.5rem, 3vw, 2.5rem); }
.nz-content--project .nz-text h5, .nz-content--project .nz-text h4 { margin-top: 1.6em; }
.nz-content--project .nz-image img { object-fit: contain; }

/* ---------- artículos ---------- */
.nz-content--article img { border-radius: var(--nz-radius); margin: 1.5rem 0; }
.nz-content--article p, .nz-content--article li { max-width: 72ch; }
.nz-post-nav { border-top: 1px solid var(--nz-line); padding: 2rem 0; }
.nz-post-nav__inner { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.nz-post-nav a { font-weight: 600; text-decoration: none; max-width: 46ch; }

/* ---------- paginación ---------- */
.nz-pagination { display: flex; justify-content: center; margin-top: 2.5rem; }
.nz-pagination .page-numbers {
	display: inline-flex; min-width: 44px; height: 44px; align-items: center; justify-content: center; margin: 0 .2rem;
	border-radius: 10px; border: 1px solid var(--nz-line); text-decoration: none; color: var(--nz-navy); font-weight: 600;
}
.nz-pagination .current { background: var(--nz-navy); color: #fff; border-color: var(--nz-navy); }
.nz-pagination a.page-numbers:hover { border-color: var(--nz-accent); }

/* ---------- formulario ---------- */
.nz-form { background: #fff; border: 1px solid var(--nz-line); border-radius: var(--nz-radius); padding: clamp(1.4rem, 3vw, 2.4rem); box-shadow: var(--nz-shadow); }
.nz-form__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; margin-bottom: 1.5rem; }
.nz-form__row { grid-column: 1 / -1; }
.nz-form__row--half { grid-column: span 1; }
.nz-form label { display: block; font-weight: 600; color: var(--nz-navy); margin-bottom: .4rem; font-size: .95rem; }
.nz-form input[type="text"], .nz-form input[type="email"], .nz-form textarea {
	width: 100%; padding: .85rem 1rem; border: 1px solid #aebac6; border-radius: 10px; font: inherit; color: var(--nz-navy); background: #fff;
}
.nz-form input:focus, .nz-form textarea:focus { border-color: var(--nz-accent-ink); outline: 3px solid rgba(25, 181, 214, .35); outline-offset: 0; }
.nz-form__trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nz-form button { background: var(--nz-navy); border-color: var(--nz-navy); color: #fff; }
.nz-form button:hover { background: var(--nz-accent-ink); border-color: var(--nz-accent-ink); color: #fff; }
.nz-form__status { padding: .9rem 1.1rem; border-radius: 10px; margin-bottom: 1.2rem; font-weight: 600; }
.nz-form__status--ok { background: #e6f6ee; color: #0e5a33; }
.nz-form__status--error { background: #fdeaea; color: #8a1c1c; }
.nz-page-contacto .nz-row { align-items: start; }

/* ---------- pie ---------- */
.nz-footer { background: var(--nz-navy); color: #b9c6d3; font-size: .98rem; }
.nz-footer__grid { display: grid; grid-template-columns: 1.4fr 1.2fr 1fr 1.2fr; gap: 2.25rem; padding-block: 3.25rem 2.25rem; }
.nz-footer__logo { height: 48px; width: auto; margin-bottom: 1.2rem; }
.nz-footer__title { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: #fff; margin-bottom: 1.1rem; }
.nz-footer ul { list-style: none; margin: 0; padding: 0; }
.nz-footer li { margin-bottom: .55rem; }
.nz-footer a { color: #d9e4ee; text-decoration: none; }
.nz-footer a:hover { color: var(--nz-accent); text-decoration: underline; }
.nz-footer address { font-style: normal; margin-bottom: 1rem; }
.nz-footer__credit { border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.3rem 0; font-size: .88rem; color: #8fa1b3; }
@media (max-width: 960px) { .nz-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .nz-footer__grid { grid-template-columns: 1fr; padding-block: 3rem 2rem; } .nz-form__fields { grid-template-columns: 1fr; } .nz-form__row--half { grid-column: 1 / -1; } }

/* ---------- visibilidad por dispositivo (atributo disable_on de Divi) ---------- */
@media (max-width: 767px) { .nz-hide-phone { display: none !important; } }
@media (min-width: 768px) and (max-width: 980px) { .nz-hide-tablet { display: none !important; } }
@media (min-width: 981px) { .nz-hide-desktop { display: none !important; } }

/* ---------- movimiento discreto ---------- */
@media (prefers-reduced-motion: no-preference) {
	.js .nz-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
	.js .nz-reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}
