:root {
	--color-primary: #1565c0;
	--color-primary-dark: #0d47a1;
	--color-accent: #00acc1;
	--color-text: #2c3338;
	--color-text-light: #6b7280;
	--color-bg: #ffffff;
	--color-bg-alt: #f5f7fa;
	--color-border: #e2e6ea;
	--max-width: 1140px;
	--radius: 8px;
	font-size: 16px;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--color-text);
	background: var(--color-bg);
	line-height: 1.6;
}

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

a {
	color: var(--color-primary);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

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

/* Topbar */
.topbar {
	background: var(--color-bg-alt);
	border-bottom: 1px solid var(--color-border);
	font-size: 0.85rem;
	color: var(--color-text-light);
}

.topbar .container {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	padding-top: 8px;
	padding-bottom: 8px;
}

/* Header / Nav */
.site-header {
	border-bottom: 1px solid var(--color-border);
	position: sticky;
	top: 0;
	background: var(--color-bg);
	z-index: 100;
}

.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 14px;
	padding-bottom: 14px;
}

.site-header .logo img {
	height: 42px;
}

.main-nav ul {
	list-style: none;
	display: flex;
	gap: 28px;
	margin: 0;
	padding: 0;
}

.main-nav a {
	color: var(--color-text);
	font-weight: 500;
}

.main-nav a.active,
.main-nav a:hover {
	color: var(--color-primary);
}

.nav-toggle {
	display: none;
	background: none;
	border: none;
	font-size: 1.5rem;
	cursor: pointer;
}

@media (max-width: 760px) {
	.nav-toggle {
		display: block;
	}
	.main-nav {
		display: none;
		width: 100%;
	}
	.main-nav.open {
		display: block;
	}
	.main-nav ul {
		flex-direction: column;
		gap: 0;
		padding: 12px 0;
	}
	.main-nav li {
		border-top: 1px solid var(--color-border);
	}
	.main-nav a {
		display: block;
		padding: 12px 0;
	}
	.site-header .container {
		flex-wrap: wrap;
	}
}

/* Hero: ver reglas de .hero / .hero-slide mas abajo (seccion "Hero carousel") */

.hero-actions {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
}

.btn {
	display: inline-block;
	padding: 12px 26px;
	border-radius: 999px;
	font-weight: 600;
	border: 2px solid transparent;
	cursor: pointer;
	font-size: 1rem;
}

.btn-primary {
	background: #fff;
	color: var(--color-primary-dark);
}

.btn-primary:hover {
	background: #eef3fb;
	text-decoration: none;
}

.btn-outline {
	background: transparent;
	color: #fff;
	border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
	background: rgba(255, 255, 255, 0.12);
	text-decoration: none;
}

.btn-solid {
	background: var(--color-primary);
	color: #fff;
}

.btn-solid:hover {
	background: var(--color-primary-dark);
	text-decoration: none;
}

/* Sections */
.section {
	padding: 64px 0;
}

.section-alt {
	background: var(--color-bg-alt);
}

.section h2 {
	font-size: 1.8rem;
	text-align: center;
	margin-bottom: 8px;
}

.section-subtitle {
	text-align: center;
	color: var(--color-text-light);
	max-width: 680px;
	margin: 0 auto 40px;
}

.grid {
	display: grid;
	gap: 28px;
}

.grid-3 {
	grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
	grid-template-columns: repeat(2, 1fr);
}

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

.card {
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 28px;
}

.card h3 {
	margin-top: 0;
	font-size: 1.15rem;
}

.card-icon {
	font-size: 1.8rem;
	margin-bottom: 12px;
}

/* Stats */
.stats {
	display: flex;
	justify-content: center;
	gap: 64px;
	flex-wrap: wrap;
	text-align: center;
}

.stat-number {
	font-size: 2.4rem;
	font-weight: 700;
	color: var(--color-primary);
}

.stat-label {
	color: var(--color-text-light);
}

/* Forms */
.form-field {
	margin-bottom: 18px;
}

.form-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	font-size: 0.95rem;
}

.form-field input,
.form-field select,
.form-field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	font-size: 1rem;
	font-family: inherit;
}

.form-note {
	font-size: 0.85rem;
	color: var(--color-text-light);
}

/* Campo trampa para bots del formulario de contacto */
.form-trap {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Tables (pricing) */
.table-wrap {
	overflow-x: auto;
	margin: 24px 0;
}

table.tarifas {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.92rem;
}

table.tarifas th,
table.tarifas td {
	border: 1px solid var(--color-border);
	padding: 8px 10px;
	text-align: center;
}

table.tarifas thead th {
	background: var(--color-bg-alt);
}

.check-icon::before {
	content: "✔";
	color: #2e7d32;
}

/* Calculator */
.calculadora {
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	max-width: 520px;
	margin: 0 auto;
}

.calculadora-heading {
	background: var(--color-bg-alt);
	padding: 14px 20px;
	font-weight: 700;
	border-bottom: 1px solid var(--color-border);
	border-radius: var(--radius) var(--radius) 0 0;
}

.calculadora-body {
	padding: 20px;
}

.calc-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 14px;
}

.calc-row label {
	font-weight: 600;
}

.calc-row input[readonly] {
	background: var(--color-bg-alt);
	font-weight: 700;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 8px 10px;
	text-align: right;
	width: 160px;
}

.calc-row input[type="number"] {
	width: 120px;
	padding: 8px 10px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
}

/* Project cards */
.project {
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 24px;
	margin-bottom: 24px;
	display: flex;
	gap: 24px;
	align-items: flex-start;
}

.project-image {
	flex-shrink: 0;
	width: 180px;
	height: 135px;
	object-fit: cover;
	border-radius: var(--radius);
}

@media (max-width: 640px) {
	.project {
		flex-direction: column;
	}
	.project-image {
		width: 100%;
		height: auto;
	}
}

.project-body {
	flex: 1;
}

.project h3 {
	margin-top: 0;
}

.project-meta {
	display: flex;
	gap: 4px 20px;
	flex-wrap: wrap;
	font-size: 0.9rem;
	color: var(--color-text-light);
	margin-bottom: 12px;
}

/* Footer */
.site-footer {
	background: #1c2330;
	color: #c3c9d4;
	padding: 48px 0 24px;
}

.footer-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
	margin-bottom: 32px;
}

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

.site-footer h4 {
	color: #fff;
	margin-top: 0;
}

.site-footer a {
	color: #c3c9d4;
}

.site-footer a:hover {
	color: #fff;
}

.footer-bottom {
	text-align: center;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding-top: 20px;
	font-size: 0.85rem;
}

.social-links {
	display: flex;
	gap: 14px;
	margin-top: 10px;
}

/* Downloads */
.download-item {
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 24px;
	margin-bottom: 20px;
}

.download-item .btn {
	margin-top: 10px;
}

/* Hero carousel */
.hero {
	position: relative;
	overflow: hidden;
	padding: 0;
	min-height: 460px;
}

.hero-slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.6s ease;
	background-size: cover;
	background-position: center;
}

.hero-slide.is-active {
	position: relative;
	min-height: 460px;
	opacity: 1;
	visibility: visible;
}

.hero-slide::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(13, 71, 161, 0.88), rgba(21, 101, 192, 0.8));
}

.hero-slide .container {
	position: relative;
	z-index: 1;
	padding: 72px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
}

.hero-slide h1 {
	font-size: 2.2rem;
	line-height: 1.25;
	margin: 0 0 16px;
	color: #fff;
	max-width: 640px;
}

.hero-slide p {
	font-size: 1.1rem;
	color: rgba(255, 255, 255, 0.92);
	margin-bottom: 28px;
	max-width: 560px;
}

.hero-slide-product {
	flex-shrink: 0;
	max-height: 320px;
	max-width: 380px;
	filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35));
}

@media (max-width: 760px) {
	.hero-slide .container {
		flex-direction: column;
		text-align: center;
	}
	.hero-slide-product {
		max-height: 180px;
		order: -1;
	}
}

.hero-dots {
	position: absolute;
	bottom: 20px;
	left: 0;
	right: 0;
	z-index: 2;
	display: flex;
	justify-content: center;
	gap: 10px;
}

.hero-dot {
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.45);
	border: none;
	cursor: pointer;
	padding: 0;
}

.hero-dot.is-active {
	background: #fff;
}

.hero-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	background: rgba(255, 255, 255, 0.2);
	border: none;
	color: #fff;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	font-size: 1.3rem;
	cursor: pointer;
}

.hero-arrow:hover {
	background: rgba(255, 255, 255, 0.35);
}

.hero-arrow.prev {
	left: 16px;
}

.hero-arrow.next {
	right: 16px;
}

@media (max-width: 760px) {
	.hero-arrow {
		display: none;
	}
}

/* Client logo carousel */
.clients-carousel {
	overflow: hidden;
	position: relative;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.clients-track {
	display: flex;
	align-items: center;
	gap: 64px;
	width: max-content;
	animation: clients-scroll 24s linear infinite;
}

.clients-carousel:hover .clients-track {
	animation-play-state: paused;
}

.clients-track img {
	height: 60px;
	width: auto;
	max-width: 160px;
	object-fit: contain;
	filter: grayscale(100%);
	opacity: 0.7;
	transition: filter 0.2s, opacity 0.2s;
}

.clients-track a:hover img,
.clients-track img:hover {
	filter: grayscale(0%);
	opacity: 1;
}

@keyframes clients-scroll {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}
