/* GesNat Consultores Ambientales — hoja de estilos unica del sitio */

:root {
	--color-accent: #f4524d;
	--color-text: #666;
	--color-heading: #2d2a2a;
	--color-footer-bg: #1f1f1f;
	--color-footer-bottom: #161616;
	--max-width: 1200px;
	--font-base: "Lato", Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: var(--font-base);
	font-size: 16px;
	line-height: 1.7;
	color: var(--color-text);
	background: #fff;
}

img, picture { max-width: 100%; height: auto; display: block; }

a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--color-heading); font-weight: 700; line-height: 1.3; margin: 0 0 20px; }
h1 { font-size: 32px; }
h2 { font-size: 26px; }
h3 { font-size: 20px; }
h4 { font-size: 18px; }

p { margin: 0 0 18px; }
ul.plain { margin: 0 0 18px; padding-left: 20px; }
ul.plain li { margin-bottom: 8px; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */

#site-header { position: sticky; top: 0; z-index: 500; background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.1); }
.header-inner { position: relative; max-width: var(--max-width); margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; }
.logo-link { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; }
.logo-link img { height: 50px; width: auto; border-radius: 50%; }
nav#main-nav { display: flex; align-items: center; justify-content: space-between; flex: 1; gap: 24px; }
nav#main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; flex-wrap: wrap; }
nav#main-nav a { color: var(--color-heading); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 6px 0; border-bottom: 2px solid transparent; }
nav#main-nav a:hover, nav#main-nav a[aria-current="page"] { color: var(--color-accent); border-bottom-color: var(--color-accent); text-decoration: none; }
#nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; margin-left: auto; }
#nav-toggle svg { width: 26px; height: 26px; color: var(--color-heading); }

@media (max-width: 900px) {
	.logo-link { position: static; transform: none; margin-right: auto; }
	.header-inner { justify-content: space-between; }
	nav#main-nav {
		position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px); background: #fff;
		flex-direction: column; align-items: flex-start; justify-content: flex-start; padding: 90px 28px 28px; gap: 0;
		transform: translateX(100%); transition: transform .25s ease; box-shadow: -2px 0 12px rgba(0,0,0,.15);
	}
	nav#main-nav.is-open { transform: translateX(0); }
	nav#main-nav ul { flex-direction: column; gap: 0; width: 100%; }
	nav#main-nav li { width: 100%; border-bottom: 1px solid #f0f0f0; }
	nav#main-nav a { display: block; padding: 14px 0; }
	#nav-toggle { display: block; }
	.nav-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 400; }
	.nav-backdrop.is-open { display: block; }
}

/* ---------- Hero ---------- */

.hero {
	position: relative;
	height: calc(100vh - 79px); min-height: 480px;
	background-size: cover; background-position: 65% center;
	display: flex; align-items: center; justify-content: flex-start;
	color: #fff; overflow: hidden;
}
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(10,10,10,.25); }
.hero-inner { position: relative; z-index: 2; padding: 20px 20px 20px 6vw; max-width: 700px; text-align: left; }
.hero-inner h1 { color: #fff; font-size: 68px; font-weight: 900; letter-spacing: .06em; margin-bottom: 4px; line-height: 1.1; }
.hero-inner .hero-line-blue { display: block; color: #3aa8dd; font-size: 68px; font-weight: 700; letter-spacing: .06em; margin-bottom: 4px; }
.hero-inner .hero-line-gold { display: block; color: #d4af37; font-size: 68px; font-weight: 700; letter-spacing: .06em; margin-bottom: 30px; }
.hero-inner a.btn {
	display: inline-flex; align-items: center; gap: 12px; padding: 10px 0; background: none; color: #fff;
	font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: .1em; border: none;
}
.hero-inner a.btn::before { content: ""; display: inline-block; width: 34px; height: 2px; background: #4caf50; }
.hero-inner a.btn:hover { color: #4caf50; text-decoration: none; }
@media (max-width: 900px) {
	.hero-inner h1, .hero-inner .hero-line-blue, .hero-inner .hero-line-gold { font-size: 42px; }
}
@media (max-width: 500px) {
	.hero-inner { padding-left: 20px; }
	.hero-inner h1, .hero-inner .hero-line-blue, .hero-inner .hero-line-gold { font-size: 32px; }
}

/* ---------- Layout helpers ---------- */

.page-content { padding: 50px 0 70px; }
.section-intro { text-align: center; max-width: 700px; margin: 0 auto 40px; }
.section-intro .eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; color: var(--color-accent); font-weight: 700; }

/* ---------- Service cards ---------- */

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
@media (max-width: 900px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .service-grid { grid-template-columns: 1fr; } }
.service-card { background: #fafafa; border-radius: 4px; overflow: hidden; }
.service-card .service-card-img { overflow: hidden; }
.service-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .4s ease; }
.service-card:hover img { transform: scale(1.08); }
.service-card-body { padding: 20px; }
.service-card h3 { font-size: 18px; margin-bottom: 10px; }
.service-card p { font-size: 14px; margin-bottom: 16px; }
.btn-small { display: inline-block; padding: 9px 20px; background: var(--color-accent); color: #fff; border-radius: 3px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.btn-small:hover { opacity: .9; text-decoration: none; }

/* ---------- Service detail page ---------- */

.service-detail-header { display: flex; align-items: center; gap: 24px; margin-bottom: 30px; flex-wrap: wrap; }
.service-detail-header img { width: 110px; height: 110px; object-fit: cover; border-radius: 6px; }

/* ---------- Internacional section ---------- */

.intl-section { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; margin: 60px 0; }
@media (max-width: 800px) { .intl-section { grid-template-columns: 1fr; } }
.intl-section img { border-radius: 4px; }

/* ---------- Team ---------- */

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-bottom: 40px; }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
.team-card { text-align: center; }
.team-card img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; }
.team-card h4 { font-size: 15px; margin-bottom: 4px; }
.team-card p { font-size: 13px; margin-bottom: 0; }

/* ---------- CTA band ---------- */

.cta-band { background: #fafafa; padding: 50px 0; margin-top: 60px; text-align: center; }
.cta-band h2 { margin-bottom: 10px; }
.cta-band .btn { display: inline-block; margin-top: 16px; padding: 13px 30px; background: var(--color-accent); color: #fff; border-radius: 3px; font-weight: 700; text-transform: uppercase; font-size: 14px; }
.cta-band .btn:hover { opacity: .9; text-decoration: none; }

/* ---------- Contact form ---------- */

.contact-form { max-width: 640px; }
.contact-form .field { margin-bottom: 18px; }
.contact-form label { display: block; margin-bottom: 6px; font-weight: 700; color: var(--color-heading); font-size: 14px; }
.contact-form input, .contact-form textarea {
	width: 100%; padding: 12px 14px; border: 1px solid #ddd; border-radius: 3px;
	font-family: inherit; font-size: 15px; background: #f4f4f4;
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form button {
	padding: 12px 30px; background: var(--color-accent); border: none; color: #fff;
	border-radius: 3px; font-size: 15px; font-weight: 700; text-transform: uppercase; cursor: pointer;
}
.contact-form button:hover { opacity: .9; }
.contact-form button:disabled { opacity: .6; cursor: default; }
.form-message { margin-bottom: 18px; font-size: 14px; }
.form-message.success { color: #2a7a3d; }
.form-message.error { color: #b00020; }
.contact-info { margin-top: 40px; }
.contact-info h3 { margin-bottom: 12px; }

/* ---------- Search page ---------- */

.search-page-wrap { max-width: 800px; }
.search-form-page { display: flex; gap: 10px; margin: 30px 0 40px; }
.search-form-page input[type="search"] { flex: 1; padding: 12px 16px; font-size: 16px; border: 1px solid #ccc; border-radius: 3px; }
.search-form-page button { padding: 12px 22px; font-size: 16px; border: none; border-radius: 3px; background: var(--color-accent); color: #fff; cursor: pointer; }
.search-summary { color: #999; margin-bottom: 20px; }
.search-result { padding: 20px 0; border-bottom: 1px solid #eee; }
.search-result h2 { margin: 0 0 6px; font-size: 20px; }
.search-result h2 a { color: var(--color-accent); }
.search-result p { margin: 0 0 6px; }
.search-result-link { font-size: 13px; color: #999; }
.search-hint, .search-empty { color: #999; }

/* ---------- Footer ---------- */

#site-footer { background: var(--color-footer-bg); color: #ccc; margin-top: 60px; }
.footer-main { padding: 44px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
@media (max-width: 700px) { .footer-main { grid-template-columns: 1fr; } }
.footer-main h3 { color: var(--color-accent); font-size: 18px; margin-bottom: 14px; }
.footer-main p { margin: 0 0 8px; font-size: 14px; }
.footer-main a { color: #ccc; }
.footer-bottom { background: var(--color-footer-bottom); padding: 14px 0; font-size: 12px; color: #999; }
.footer-bottom a { color: #ccc; }

.entry-title { margin-bottom: 30px; }
