/* ==========================================================================
   Tregua — Landing page styles
   ========================================================================== */

:root {
	--color-bg: #0a0a0a;
	--color-bg-alt: #121212;
	--color-surface: #1a1a1a;
	--color-border: #2a2a2a;
	--color-text: #f5f5f5;
	--color-text-muted: #a8a8a8;
	--color-teal: #00b7b7;
	--color-teal-light: #02e6fb;
	--color-blue: #4080ff;
	--font-heading: "Helvetica Neue", Arial, sans-serif;
	--font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	--container-width: 1280px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-body);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: inherit;
	text-decoration: none;
}

h1, h2, h3 {
	font-family: var(--font-heading);
	font-weight: 700;
	line-height: 1.15;
	margin: 0 0 .5em;
}

h2 {
	font-size: clamp(1.9rem, 3.4vw, 3.1rem);
}

h3 {
	font-size: 1.15rem;
	color: var(--color-teal-light);
}

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

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--color-teal);
	color: #000;
	padding: 12px 20px;
	z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 28px;
	border-radius: 999px;
	font-weight: 700;
	font-size: .95rem;
	white-space: nowrap;
	transition: transform .15s ease, background .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
	background: var(--color-teal);
	color: #06181a;
}
.btn-primary:hover { background: var(--color-teal-light); }

.btn-ghost {
	border: 1px solid var(--color-border);
	color: var(--color-text);
}
.btn-ghost:hover { border-color: var(--color-teal); color: var(--color-teal-light); }

.btn-whatsapp {
	background: #1f1f1f;
	border: 1px solid var(--color-border);
	color: var(--color-text);
	padding: 10px 20px;
}
.btn-whatsapp:hover { border-color: var(--color-teal); color: var(--color-teal-light); }

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(10,10,10,.9);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--color-border);
}

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

.brand img { height: 42px; width: auto; }

.site-nav {
	display: flex;
	align-items: center;
	gap: 28px;
}

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

.site-nav a:not(.btn) {
	font-size: .95rem;
	color: var(--color-text-muted);
}
.site-nav a:not(.btn):hover { color: var(--color-text); }

.nav-toggle {
	display: none;
	background: none;
	border: none;
	width: 40px;
	height: 40px;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	cursor: pointer;
}
.nav-toggle span {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--color-text);
}

/* ---------- Hero ---------- */
.hero {
	padding: 100px 0 80px;
	background:
		radial-gradient(ellipse at top right, rgba(0,183,183,.18), transparent 55%),
		radial-gradient(ellipse at bottom left, rgba(64,128,255,.14), transparent 55%),
		var(--color-bg);
	border-bottom: 1px solid var(--color-border);
}

.hero-inner { max-width: 1080px; }

.eyebrow {
	color: var(--color-teal-light);
	text-transform: uppercase;
	letter-spacing: .08em;
	font-size: clamp(.8rem, 1vw, .95rem);
	font-weight: 700;
	margin-bottom: 18px;
}

.hero-statement {
	font-size: clamp(1.4rem, 2.8vw, 2.1rem);
	font-weight: 700;
	color: var(--color-text);
	max-width: 780px;
	margin: 0 0 20px;
}

.hero h1 {
	font-size: clamp(2.4rem, 5.5vw, 4.6rem);
	max-width: 920px;
}

.hero-lead {
	color: var(--color-text-muted);
	font-size: clamp(1.1rem, 1.3vw, 1.3rem);
	max-width: 700px;
	margin: 20px 0 36px;
}

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

.hero-microcopy {
	color: var(--color-text-muted);
	font-size: .85rem;
	margin: 16px 0 0;
}

/* ---------- Sections ---------- */
.section {
	padding: 80px 0;
	border-bottom: 1px solid var(--color-border);
}
.section.alt { background: var(--color-bg-alt); }

.section-lead {
	color: var(--color-text-muted);
	max-width: 780px;
	font-size: clamp(1.05rem, 1.2vw, 1.2rem);
	margin-bottom: 40px;
}

.section-lead-wide {
	max-width: 950px;
}

/* Why section */
.why-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 24px;
}
.why-card {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: 12px;
	padding: 28px;
}
.why-card p { color: var(--color-text-muted); margin: 0; }

/* Services */
.services-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 14px;
}
.services-grid li {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: 10px;
	padding: 18px 20px;
	font-weight: 600;
	position: relative;
	padding-left: 44px;
}
.services-grid li::before {
	content: "";
	position: absolute;
	left: 18px;
	top: 50%;
	transform: translateY(-50%);
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--color-teal);
}

/* Sectores */
.tag-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}
.tag-list li {
	border: 1px solid var(--color-teal);
	color: var(--color-teal-light);
	border-radius: 999px;
	padding: 10px 22px;
	font-weight: 700;
	font-size: .95rem;
}

/* Nosotros */
.nosotros-grid p { color: var(--color-text-muted); max-width: 780px; font-size: clamp(1rem, 1.1vw, 1.15rem); }

/* Video embed */
.video-embed {
	position: relative;
	width: 100%;
	padding-top: 56.25%;
	border-radius: 12px;
	overflow: hidden;
	background: #000;
	border: 1px solid var(--color-border);
}
.video-embed iframe {
	position: absolute;
	top: 0; left: 0;
	width: 100%; height: 100%;
	border: 0;
}

/* Contact */
.contact-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px;
}
.contact-card {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: 12px;
	padding: 28px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	transition: border-color .15s ease, transform .15s ease;
}
.contact-card:hover { border-color: var(--color-teal); transform: translateY(-2px); }
.contact-card-highlight {
	border-color: var(--color-teal);
	background: linear-gradient(135deg, rgba(0,183,183,.12), transparent);
}
.contact-label {
	text-transform: uppercase;
	letter-spacing: .06em;
	font-size: .75rem;
	color: var(--color-text-muted);
	font-weight: 700;
}
.contact-value {
	font-size: 1.2rem;
	font-weight: 700;
}

/* ---------- Footer ---------- */
.site-footer {
	padding: 48px 0;
}
.footer-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.footer-logo { height: 36px; width: auto; opacity: .85; }
.social-nav {
	list-style: none;
	display: flex;
	gap: 20px;
	margin: 0;
	padding: 0;
}
.social-nav a { color: var(--color-text-muted); font-size: .9rem; }
.social-nav a:hover { color: var(--color-teal-light); }
.copyright { color: var(--color-text-muted); font-size: .85rem; margin: 0; width: 100%; text-align: center; }

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float {
	position: fixed;
	bottom: 24px;
	right: 24px;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: var(--color-teal);
	color: #06181a;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 20px rgba(0,0,0,.4);
	z-index: 200;
	transition: transform .15s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
	.nav-toggle { display: flex; }

	.site-nav {
		position: fixed;
		top: 70px;
		right: 0;
		bottom: 0;
		left: 0;
		height: calc(100vh - 70px);
		background: var(--color-bg);
		flex-direction: column;
		align-items: flex-start;
		padding: 32px 24px;
		gap: 24px;
		transform: translateX(100%);
		transition: transform .25s ease;
		overflow-y: auto;
	}
	.site-nav.is-open { transform: translateX(0); }
	.site-nav ul {
		flex-direction: column;
		gap: 20px;
		width: 100%;
	}
	.site-nav a:not(.btn) { font-size: 1.1rem; }
	.btn-whatsapp { width: 100%; justify-content: center; }

	.hero { padding: 70px 0 56px; }
	.section { padding: 56px 0; }
}
