/* INTIPALKA — diseño moderno */

:root {
	--ink: #0A0F1C;
	--ink-2: #111827;
	--ink-3: #1B2436;
	--line-dark: rgba(255, 255, 255, .08);
	--text-on-dark: #E5E7EB;
	--muted-on-dark: #9AA7BD;

	--bg: #F7F8FB;
	--surface: #FFFFFF;
	--line: #E4E8F0;
	--text: #0F172A;
	--muted: #4B5568;

	--sun: #F5B301;
	--sun-2: #FFCF4D;
	--green: #10B981;
	--green-2: #34D399;
	--grad: linear-gradient(120deg, var(--sun) 0%, #F59E0B 35%, var(--green) 100%);

	--radius: 16px;
	--radius-lg: 24px;
	--shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
	--shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, .55);
	--ease: cubic-bezier(.22, .61, .36, 1);

	--font-head: 'Space Grotesk', system-ui, sans-serif;
	--font-body: 'Inter', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }

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

.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 1000;
	background: var(--sun); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

/* ---------- botones ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	min-height: 44px; padding: 10px 20px; border-radius: 12px; border: 1px solid transparent;
	font: 600 15px/1 var(--font-body); text-decoration: none; cursor: pointer;
	transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, border-color .2s;
}
.btn:active { transform: scale(.97); }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 16px; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--sun); color: var(--ink); box-shadow: 0 8px 24px -8px rgba(245, 179, 1, .6); }
.btn-primary:hover { background: var(--sun-2); transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(245, 179, 1, .7); }
.btn-ghost { color: var(--text-on-dark); border-color: rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .04); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .08); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); transform: translateY(-2px); }

/* ---------- nav ---------- */
.nav {
	position: fixed; inset: 0 0 auto; z-index: 100;
	transition: background .3s, border-color .3s, backdrop-filter .3s;
	border-bottom: 1px solid transparent;
}
.nav.scrolled, .nav.open {
	background: rgba(10, 15, 28, .82);
	backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
	border-color: var(--line-dark);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
	width: 36px; height: 36px; border-radius: 10px;
	background: url(../images/logo.png) 0 50% / auto 36px no-repeat;
}
.brand-name { font: 700 20px/1 var(--font-head); color: #fff; letter-spacing: .02em; }

.nav-menu { display: flex; align-items: center; gap: 6px; }
.nav-menu a:not(.btn) {
	color: var(--muted-on-dark); text-decoration: none; font-weight: 500; font-size: 15px;
	padding: 10px 14px; border-radius: 10px; transition: color .2s, background .2s;
}
.nav-menu a:not(.btn):hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav-menu a.active { color: #fff; }
.nav-menu .btn { margin-left: 8px; }

.nav-toggle {
	display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
	flex-direction: column; justify-content: center; align-items: center; gap: 5px; border-radius: 10px;
}
.nav-toggle span { width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
	position: relative; overflow: hidden; isolation: isolate;
	background: var(--ink); color: var(--text-on-dark);
	padding: 140px 0 90px;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.glow-sun { width: 520px; height: 520px; background: var(--sun); top: -180px; right: -120px; opacity: .28; }
.glow-green { width: 600px; height: 600px; background: var(--green); bottom: -260px; left: -200px; opacity: .22; }
.grid-lines {
	position: absolute; inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
}

.hero-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }

.badge {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 500;
	color: var(--text-on-dark); background: rgba(255, 255, 255, .05); border: 1px solid var(--line-dark);
	margin-bottom: 22px;
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-2); box-shadow: 0 0 0 4px rgba(52, 211, 153, .18); }

.hero h1 { font-size: clamp(38px, 5.4vw, 64px); color: #fff; font-weight: 700; }
.text-gradient { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted-on-dark); max-width: 520px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.screen-frame {
	position: relative; border-radius: var(--radius-lg); padding: 18px;
	background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
	border: 1px solid var(--line-dark); box-shadow: var(--shadow-lg);
}
.screen-frame::before {
	content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: -1;
	background: linear-gradient(140deg, rgba(245, 179, 1, .6), transparent 40%, transparent 60%, rgba(16, 185, 129, .6));
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor; mask-composite: exclude;
}
.screen-frame.light { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow); }
.screen-frame.light::before { display: none; }

/* pilares */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 80px; }
.pillar {
	padding: 28px; border-radius: var(--radius);
	background: rgba(255, 255, 255, .03); border: 1px solid var(--line-dark);
	transition: border-color .25s, background .25s, transform .25s var(--ease);
}
.pillar:hover { border-color: rgba(245, 179, 1, .35); background: rgba(255, 255, 255, .05); transform: translateY(-3px); }
.pillar h3 { font-size: 19px; color: #fff; margin-top: 18px; }
.pillar p { color: var(--muted-on-dark); margin: 0; font-size: 15px; }
.icon-box {
	width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
	font-size: 20px; color: var(--ink); background: var(--grad);
}

/* ---------- secciones ---------- */
.section { padding: 110px 0; position: relative; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head h2, .split-copy h2 { font-size: clamp(30px, 3.6vw, 44px); }
.section-head p { color: var(--muted); font-size: 18px; }
.eyebrow {
	display: inline-block; font: 600 13px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase;
	color: #B7791F; margin-bottom: 14px;
}
.contact .eyebrow { color: var(--sun); }

/* grilla de features */
.feature-grid {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.feature-grid li {
	display: flex; align-items: center; gap: 16px;
	padding: 20px 22px; border-radius: var(--radius);
	background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
	font-weight: 500; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.feature-grid li:hover { transform: translateY(-3px); border-color: rgba(16, 185, 129, .45); box-shadow: 0 16px 36px -14px rgba(16, 185, 129, .35); }
.feature-grid li i {
	flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
	font-size: 18px; color: #0B7A57; background: #E7F8F1;
}

/* split */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.check-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; color: var(--muted); font-size: 16px; }
.check-list i {
	flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
	font-size: 11px; color: #fff; background: var(--green); margin-top: 1px;
}

/* CTA */
.cta-band {
	position: relative; overflow: hidden;
	display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
	padding: 56px; border-radius: 28px; background: var(--grad); color: var(--ink);
}
.cta-band::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .35), transparent 45%);
}
.cta-copy { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(30px, 3.6vw, 44px); }
.cta-band p { font-size: 18px; margin-bottom: 28px; color: rgba(10, 15, 28, .82); }
.cta-visual { position: relative; z-index: 1; }
.cta-visual img { filter: drop-shadow(0 24px 40px rgba(10, 15, 28, .35)); }

/* a medida */
.link-arrow { color: #0B7A57; font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-arrow i { font-size: .8em; transition: transform .2s var(--ease); }
.link-arrow:hover { text-decoration: underline; }
.link-arrow:hover i { transform: translateX(3px); }
.clients-title { text-align: center; font-size: 15px; font-family: var(--font-body); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 24px; }
.clients-grid { --cols: 5; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.clients-grid .client { flex: 0 0 calc((100% - (var(--cols) - 1) * 16px) / var(--cols)); }
.client {
	display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 20px;
	border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line);
	transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.client { min-width: 0; position: relative; }
.client img { position: absolute; inset: 18px; width: calc(100% - 36px); height: calc(100% - 36px); object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
a.client:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #CBD3E1; }
.client:hover img { filter: none; opacity: 1; }

/* ---------- contacto ---------- */
.contact { background: var(--ink); color: var(--text-on-dark); overflow: hidden; isolation: isolate; }
.contact .glow-green { bottom: auto; top: -240px; left: auto; right: -200px; }
.contact-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact h2 { font-size: clamp(30px, 3.6vw, 44px); color: #fff; }
.contact-info p { color: var(--muted-on-dark); }
.contact-cards { display: grid; gap: 12px; margin-top: 28px; }
.contact-card {
	display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 14px;
	background: rgba(255, 255, 255, .04); border: 1px solid var(--line-dark); text-decoration: none; color: #fff;
	transition: border-color .2s, background .2s;
	word-break: break-word;
}
.contact-card:hover { border-color: rgba(245, 179, 1, .45); background: rgba(255, 255, 255, .07); }
.contact-card i { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(245, 179, 1, .14); color: var(--sun); font-size: 18px; }
.contact-card small { display: block; font-size: 12px; color: var(--muted-on-dark); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2px; }
.contact-card span { font-weight: 500; }

.contact-form {
	display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
	padding: 32px; border-radius: var(--radius-lg);
	background: rgba(17, 24, 39, .75); border: 1px solid var(--line-dark);
	backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 500; color: var(--text-on-dark); }
.field .opt { color: var(--muted-on-dark); font-weight: 400; }
.field input, .field textarea {
	width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px;
	font: 16px/1.4 var(--font-body); color: #fff;
	background: var(--ink); border: 1px solid #2A3448;
	transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sun); box-shadow: 0 0 0 4px rgba(245, 179, 1, .18); }

/* ---------- footer ---------- */
.footer { background: #070B15; color: var(--muted-on-dark); border-top: 1px solid var(--line-dark); padding: 28px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer p { margin: 0; font-size: 14px; }

/* ---------- whatsapp flotante ---------- */
.whatsapp-float {
	position: fixed; right: 20px; bottom: 20px; z-index: 90;
	width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
	background: #25D366; color: #fff; font-size: 30px; text-decoration: none;
	box-shadow: 0 10px 30px -6px rgba(37, 211, 102, .6);
	transition: transform .2s var(--ease);
}
.whatsapp-float:hover { transform: scale(1.06); }

/* ---------- preloader ---------- */
.preloader { position: fixed; inset: 0; z-index: 999; display: none; place-items: center; background: rgba(10, 15, 28, .8); backdrop-filter: blur(4px); }
.preloader.show { display: grid; }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .15); border-top-color: var(--sun); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.reveal { opacity: 1; transform: none; transition: none; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
	.feature-grid { grid-template-columns: repeat(2, 1fr); }
	.clients-grid { --cols: 3; }
}

@media (max-width: 900px) {
	.nav-toggle { display: flex; }
	.nav-menu {
		position: absolute; top: 72px; left: 0; right: 0;
		flex-direction: column; align-items: stretch; gap: 4px; padding: 12px 20px 20px;
		background: rgba(10, 15, 28, .96); border-bottom: 1px solid var(--line-dark);
		opacity: 0; visibility: hidden; transform: translateY(-8px);
		transition: opacity .2s, transform .2s var(--ease), visibility .2s;
	}
	.nav.open .nav-menu { opacity: 1; visibility: visible; transform: none; }
	.nav-menu a:not(.btn) { padding: 14px; }
	.nav-menu .btn { margin: 8px 0 0; }

	.hero { padding: 120px 0 70px; }
	.hero-inner, .split, .contact-inner, .cta-band { grid-template-columns: 1fr; }
	.hero-copy { text-align: center; }
	.hero-copy .lead { margin-inline: auto; }
	.hero-actions { justify-content: center; }
	.pillars { grid-template-columns: 1fr; margin-top: 56px; }
	.section { padding: 80px 0; }
	.cta-band { padding: 40px 28px; text-align: center; }
}

@media (max-width: 600px) {
	.container { padding: 0 16px; }
	.feature-grid { grid-template-columns: 1fr; }
	.clients-grid { --cols: 2; }
	.contact-form { grid-template-columns: 1fr; padding: 22px; }
	.hero-actions .btn { width: 100%; }
	.screen-frame { padding: 10px; }
	.footer-inner { justify-content: center; text-align: center; }
}
