/* ==========================================================================
   Dragon Media Solutions — stylesheet
   ========================================================================== */

:root {
	--bg: #0a0b0c;
	--surface: #141618;
	--surface-2: #1c1f22;
	--border: #2b2e32;
	--text: #f0f1f2;
	--text-muted: #9a9fa5;
	--accent: #c9d1d6;
	--accent-dark: #a3aeb4;
	--accent-2: #7c8a94;
	--success: #6fd66a;
	--danger: #e25a5a;
	--radius: 10px;
	--container: 1140px;
	--font-heading: 'Montserrat', sans-serif;
	--font-body: 'Open Sans', sans-serif;
	--header-h: 76px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

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

h1, h2, h3, h4 {
	font-family: var(--font-heading);
	font-weight: 700;
	margin: 0 0 .5em;
	color: var(--text);
}

p {
	margin: 0 0 1em;
	color: var(--text-muted);
}

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

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

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

.section {
	padding: 96px 0;
	scroll-margin-top: var(--header-h);
}

.section-elevated {
	background: var(--surface);
}

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

/* ---------- Section dividers ---------- */
.section-divider {
	width: 100%;
	line-height: 0;
	overflow: hidden;
}

.section-divider svg {
	display: block;
	width: 100%;
	height: 70px;
}

.section-head {
	text-align: center;
	max-width: 640px;
	margin: 0 auto 56px;
}

.section-head h2 {
	font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.eyebrow {
	display: inline-block;
	font-family: var(--font-heading);
	font-size: .75rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: .75em;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible {
	opacity: 1;
	transform: none;
}

/* ---------- Hero / header ---------- */
.hero {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: calc(var(--header-h) + 40px) 24px 80px;
	background: var(--bg);
}

.hero-logo {
	width: 180px;
	height: 180px;
	object-fit: contain;
	margin: 0 auto 28px;
}

.hero h1 {
	font-size: clamp(2.1rem, 5vw, 3.4rem);
	letter-spacing: -.01em;
}

.hero-tagline {
	display: block;
	margin: 18px auto 0;
	max-width: 460px;
	color: var(--text-muted);
	font-family: var(--font-heading);
	font-weight: 400;
	font-size: clamp(1rem, 2vw, 1.2rem);
	letter-spacing: .04em;
}

/* ---------- Nav ---------- */
.main-nav {
	position: sticky;
	top: 0;
	z-index: 100;
	height: var(--header-h);
	display: flex;
	align-items: center;
	background: rgba(10, 14, 13, .78);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border);
}

.main-nav .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
}

.nav-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-heading);
	font-weight: 700;
	color: var(--text);
}

.nav-brand img {
	width: 52px;
	height: 52px;
	object-fit: contain;
}

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

.nav-links a {
	display: block;
	padding: 10px 16px;
	color: var(--text);
	font-family: var(--font-heading);
	font-size: .88rem;
	letter-spacing: .02em;
	border-radius: 6px;
	transition: color .2s ease, background .2s ease;
}

.nav-links a:hover {
	color: var(--accent);
	background: var(--surface-2);
}

.nav-toggle {
	display: none;
	background: none;
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 8px;
	color: var(--text);
	cursor: pointer;
}

.nav-toggle svg {
	width: 22px;
	height: 22px;
	display: block;
}

/* ---------- Services / products ---------- */
.product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
	gap: 32px;
}

.product-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	transition: transform .25s ease;
}

.product-card:hover {
	transform: translateY(-6px);
}

.product-card img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-bottom: 1px solid var(--border);
}

.product-card-body {
	padding: 28px 26px 32px;
}

.product-card h3 {
	font-size: 1.3rem;
}

.product-card > .product-card-body > p {
	font-size: .95rem;
}

.product-card-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.product-card-list li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: .9rem;
	color: var(--text-muted);
}

.product-card-list svg {
	flex: none;
	width: 18px;
	height: 18px;
	margin-top: 2px;
	color: var(--accent);
}

/* ---------- Gallery / Trabajos ---------- */
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 20px;
}

.gallery-item {
	position: relative;
	display: block;
	width: 100%;
	text-align: left;
	font: inherit;
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--border);
	background: var(--surface);
	cursor: zoom-in;
	padding: 0;
}

.gallery-item img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform .4s ease;
}

.gallery-item:hover img {
	transform: scale(1.06);
}

.gallery-caption {
	position: absolute;
	inset: auto 0 0 0;
	padding: 18px 16px 14px;
	background: rgba(0, 0, 0, .55);
	text-align: left;
}

.gallery-caption h3 {
	font-size: .95rem;
	margin: 0;
	color: #fff;
}

.gallery-caption span {
	font-size: .8rem;
	color: rgba(255, 255, 255, .75);
}

.gallery-note {
	text-align: center;
	color: var(--text-muted);
	font-size: .85rem;
	margin-top: 28px;
}

#lightbox {
	border: none;
	background: transparent;
	max-width: 90vw;
	max-height: 90vh;
	padding: 0;
}

#lightbox::backdrop {
	background: rgba(5, 8, 7, .9);
}

#lightbox img {
	max-width: 90vw;
	max-height: 85vh;
	border-radius: var(--radius);
}

#lightbox button {
	position: absolute;
	top: -14px;
	right: -14px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: none;
	background: var(--accent);
	color: #08110d;
	font-size: 1.1rem;
	cursor: pointer;
}

/* ---------- Contact ---------- */
.contact-simple {
	max-width: 420px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 40px;
	text-align: left;
}

.contact-info {
	display: flex;
	flex-direction: column;
	gap: 22px;
	width: 100%;
}

.contact-info-item {
	display: flex;
	gap: 14px;
	align-items: flex-start;
}

.contact-info-item svg {
	flex: none;
	width: 20px;
	height: 20px;
	color: var(--accent);
	margin-top: 3px;
}

.contact-info-item h3 {
	font-size: .78rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--text-muted);
	margin-bottom: .2em;
}

.contact-info-item span {
	color: var(--text);
}

.btn-whatsapp {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 16px 32px;
	background: #25d366;
	color: #06140c;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 1rem;
	letter-spacing: .02em;
	border-radius: 999px;
	transition: background .2s ease, transform .2s ease;
}

.btn-whatsapp svg {
	width: 24px;
	height: 24px;
}

.btn-whatsapp:hover {
	background: #1fb955;
	transform: translateY(-1px);
}

/* ---------- Footer ---------- */
.site-footer {
	border-top: 1px solid var(--border);
	padding: 36px 0;
	text-align: center;
	color: var(--text-muted);
	font-size: .85rem;
}

.site-footer img {
	width: 64px;
	height: 64px;
	object-fit: contain;
	margin: 0 auto 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
	.nav-links {
		position: absolute;
		top: var(--header-h);
		left: 0;
		right: 0;
		flex-direction: column;
		background: var(--bg);
		border-bottom: 1px solid var(--border);
		padding: 10px;
		display: none;
	}

	.nav-links.is-open {
		display: flex;
	}

	.nav-links a {
		padding: 14px 16px;
	}

	.nav-toggle {
		display: inline-flex;
	}

	.section {
		padding: 64px 0;
	}
}
