:root {
	--sc_azul:        #004159;
	--sc_azul_medio:  #005a7a;
	--sc_verde:       #006e4e;
	--sc_amarillo2:   #f5c842;
	--sc_gris_claro:  #f4f6f8;
	--sc_text:        #2d3748;
	--sc_text_sub:    #5a6a7a;
	--nav_h:          64px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav_h); }

body {
	font-family: 'Poppins', sans-serif;
	margin: 0;
	color: var(--sc_text);
	background: #fff;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }

img { max-width: 100%; }

.container {
	width: 100%;
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 20px;
}

.text-center { text-align: center; }

/* ── Navbar ───────────────────────────────────────── */
.navbar {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 100;
	height: var(--nav_h);
	background: rgba(0, 65, 89, 0.97);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

.nav-inner {
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.nav-logo {
	display: block;
	height: 50px;
	width: auto;
}

.nav-menu {
	list-style: none;
	display: flex;
	gap: 4px;
	margin: 0;
	padding: 0;
}

.nav-menu a {
	display: block;
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.9rem;
	letter-spacing: 0.5px;
	padding: 0.5rem 1rem;
	text-decoration: none;
	transition: color 0.2s;
}

.nav-menu a:hover { color: var(--sc_amarillo2); }

.nav-toggle {
	display: none;
	background: none;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 6px;
	padding: 8px 9px;
	cursor: pointer;
}

.nav-toggle span {
	display: block;
	width: 20px;
	height: 2px;
	background: #fff;
	margin: 4px 0;
}

@media (max-width: 767px) {
	.nav-toggle { display: block; }
	.nav-menu {
		display: none;
		position: absolute;
		top: var(--nav_h); left: 0; right: 0;
		flex-direction: column;
		background: rgba(0, 65, 89, 0.98);
		padding: 8px 20px 16px;
	}
	.nav-menu.open { display: flex; }
}

/* ── Sections — shared ────────────────────────────── */
section { padding: 90px 0 70px; }

.section-header { margin-bottom: 3rem; }

.section-header h2 {
	font-size: 2rem;
	font-weight: 700;
	color: var(--sc_azul);
	text-align: center;
}

.section-divider {
	width: 48px;
	height: 3px;
	background: var(--sc_amarillo2);
	border-radius: 2px;
	margin: 0.8rem auto 0;
}

.section-text {
	color: var(--sc_text_sub);
	font-size: 0.97rem;
	line-height: 1.85;
	margin-bottom: 1rem;
}

.section-text a {
	color: var(--sc_azul);
	text-decoration: none;
	font-weight: 600;
	white-space: nowrap;
}

.section-text a:hover { text-decoration: underline; }

.section-intro,
.section-intro-dark {
	font-size: 0.95rem;
	margin-top: 1rem;
	text-align: center;
}

.section-intro-dark { color: var(--sc_text_sub); }

.section-light { background-color: var(--sc_gris_claro); }

.section-dark {
	background: linear-gradient(145deg, var(--sc_azul) 0%, #005a60 100%);
}

.section-dark .section-header h2 { color: #fff; }
.section-dark .section-intro { color: rgba(255, 255, 255, 0.7); }

.grid-2, .grid-3 {
	display: grid;
	gap: 1.5rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

@media (max-width: 767px) {
	.grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
	.grid-3 { grid-template-columns: 1fr; }
}

/* ── Hero ─────────────────────────────────────────── */
#inicio {
	min-height: 100vh;
	display: flex;
	align-items: center;
	padding: calc(var(--nav_h) + 40px) 0 60px;
	background:
		radial-gradient(ellipse at 70% 20%, rgba(0, 121, 46, 0.35) 0%, transparent 55%),
		linear-gradient(150deg, var(--sc_azul) 0%, var(--sc_azul_medio) 60%, var(--sc_verde) 100%);
	position: relative;
	overflow: hidden;
}

#inicio::before,
#inicio::after {
	content: '';
	position: absolute;
	border-radius: 50%;
	opacity: 0.07;
	background: white;
	pointer-events: none;
}
#inicio::before { width: 600px; height: 600px; top: -200px; right: -150px; }
#inicio::after  { width: 400px; height: 400px; bottom: -150px; left: -100px; }

.hero-kicker {
	color: rgba(255, 255, 255, 0.75);
	font-size: 0.85rem;
	font-weight: 300;
	letter-spacing: 3px;
	text-transform: uppercase;
	margin-bottom: 1.2rem;
	animation: fadeInDown 0.7s ease-out both;
}

.hero-title {
	color: #fff;
	font-size: clamp(1.9rem, 5vw, 3.2rem);
	font-weight: 700;
	line-height: 1.2;
	animation: fadeInUp 0.7s ease-out 0.2s both;
}

.hero-title span { color: var(--sc_amarillo2); }

.hero-divider {
	width: 56px;
	height: 3px;
	background: var(--sc_amarillo2);
	border-radius: 2px;
	margin: 1.6rem auto 1.4rem;
	animation: expandIn 0.6s ease-out 0.5s both;
}

.hero-lead {
	color: rgba(255, 255, 255, 0.82);
	font-size: 1.05rem;
	line-height: 1.7;
	max-width: 640px;
	margin: 0 auto 2.2rem;
	animation: fadeInUp 0.7s ease-out 0.4s both;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
	animation: fadeInUp 0.7s ease-out 0.6s both;
}

.btn-hero,
.btn-ghost {
	display: inline-block;
	padding: 0.75rem 2.2rem;
	border-radius: 50px;
	font-weight: 700;
	font-size: 0.9rem;
	letter-spacing: 0.5px;
	text-decoration: none;
	transition: background 0.25s, transform 0.2s, box-shadow 0.2s;
}

.btn-hero {
	background: var(--sc_amarillo2);
	color: var(--sc_azul);
	box-shadow: 0 6px 20px rgba(245, 200, 66, 0.35);
}

.btn-hero:hover {
	background: #ffe066;
	transform: translateY(-2px);
	box-shadow: 0 10px 28px rgba(245, 200, 66, 0.45);
}

.btn-ghost {
	color: #fff;
	border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-ghost:hover {
	border-color: #fff;
	background: rgba(255, 255, 255, 0.08);
	transform: translateY(-2px);
}

/* ── Nosotros ─────────────────────────────────────── */
#nosotros .row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2.5rem;
	align-items: center;
}

@media (max-width: 767px) {
	#nosotros .row { grid-template-columns: 1fr; }
}

.col-stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.stat-box {
	background: white;
	border-radius: 14px;
	padding: 1.4rem 1rem;
	box-shadow: 0 4px 18px rgba(0, 65, 89, 0.08);
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.stat-number {
	font-size: 2rem;
	font-weight: 700;
	color: var(--sc_azul);
	line-height: 1;
}

.stat-label {
	font-size: 0.75rem;
	color: var(--sc_text_sub);
	margin-top: 0.5rem;
}

/* ── Soluciones ───────────────────────────────────── */
.service-card {
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 16px;
	padding: 2rem 1.5rem;
	text-align: center;
	transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}

.service-card:hover {
	background: rgba(255, 255, 255, 0.13);
	transform: translateY(-4px);
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
}

.service-icon {
	width: 40px;
	height: 40px;
	margin-bottom: 1rem;
	fill: none;
	stroke: var(--sc_amarillo2);
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.service-card h3 {
	color: var(--sc_amarillo2);
	font-size: 1rem;
	font-weight: 600;
	margin-bottom: 0.6rem;
}

.service-card p {
	color: rgba(255, 255, 255, 0.75);
	font-size: 0.875rem;
	line-height: 1.7;
}

.service-card strong { color: #fff; font-weight: 600; }

/* ── Proyectos ────────────────────────────────────── */
.project-card {
	background: #fff;
	border-radius: 16px;
	border-top: 4px solid var(--sc_amarillo2);
	padding: 1.8rem 1.6rem;
	box-shadow: 0 4px 18px rgba(0, 65, 89, 0.08);
	display: flex;
	flex-direction: column;
}

.project-card h3 {
	color: var(--sc_azul);
	font-size: 1.05rem;
	font-weight: 600;
	margin-bottom: 0.6rem;
}

.project-card p {
	color: var(--sc_text_sub);
	font-size: 0.9rem;
	line-height: 1.7;
	margin-bottom: 1.2rem;
	flex: 1;
}

.chips {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
}

.chips li {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--sc_azul);
	background: rgba(0, 90, 122, 0.08);
	border-radius: 50px;
	padding: 4px 12px;
}

.chips-center { justify-content: center; }

.tech {
	margin-top: 3.5rem;
	text-align: center;
}

.tech-title {
	color: var(--sc_azul);
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
	margin-bottom: 1rem;
}

.tech .chips li {
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 65, 89, 0.08);
	font-size: 0.85rem;
	padding: 6px 16px;
}

/* ── Contacto ─────────────────────────────────────── */
.contact-list {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem 2.5rem;
	margin: 0 0 2rem;
	padding: 0;
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.97rem;
}

.contact-list li {
	display: flex;
	align-items: center;
	gap: 8px;
}

.contact-list svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: var(--sc_amarillo2);
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.contact-list a {
	color: #fff;
	text-decoration: none;
	font-weight: 600;
}

.contact-list a:hover { color: var(--sc_amarillo2); }

/* ── Footer ───────────────────────────────────────── */
.footer {
	background-color: #00303f;
	color: rgba(255, 255, 255, 0.55);
	font-size: 0.75rem;
	letter-spacing: 0.4px;
	padding: 1.2rem 1rem;
}

/* ── Animations ───────────────────────────────────── */
@keyframes fadeInDown {
	from { opacity: 0; transform: translateY(-28px); }
	to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
	from { opacity: 0; transform: translateY(24px); }
	to   { opacity: 1; transform: translateY(0); }
}

@keyframes expandIn {
	from { opacity: 0; width: 0; }
	to   { opacity: 1; width: 56px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	html { scroll-behavior: auto; }
}
