/* ===== Base / dark theme tokens ===== */
:root {
	--bg-0: #05070d;
	--bg-1: #0a0f1c;
	--bg-2: #111827;
	--card: rgba(255, 255, 255, 0.04);
	--card-border: rgba(255, 255, 255, 0.08);
	--text-0: #f4f6fb;
	--text-1: #b9c2d4;
	--text-2: #7c869c;
	--accent-1: #7c5cff;
	--accent-2: #00d4ff;
	--accent-3: #00ffc2;
	--grad: linear-gradient(135deg, var(--accent-1), var(--accent-2) 55%, var(--accent-3));
	--radius: 16px;
	--maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg-0);
	color: var(--text-0);
	font-family: "Inter", "Segoe UI", Arial, sans-serif;
	overflow-x: hidden;
}

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

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

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

.grad-text {
	background: var(--grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.eyebrow {
	display: inline-block;
	font-size: 13px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--accent-2);
	font-weight: 600;
	margin-bottom: 14px;
}

section { position: relative; }
section[id] { scroll-margin-top: 90px; }
#servicios, #contacto { overflow-x: hidden; }

h1, h2, h3 { font-family: "Poppins", "Inter", sans-serif; line-height: 1.15; margin: 0 0 16px; }
h2 { font-size: clamp(28px, 4vw, 42px); }
h3 { font-size: 20px; }
p { color: var(--text-1); line-height: 1.7; }

.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 28px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 15px;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
	background: var(--grad);
	color: #04101a;
	box-shadow: 0 10px 30px -8px rgba(0, 212, 255, 0.45);
}
.btn-primary:hover { box-shadow: 0 14px 36px -6px rgba(0, 212, 255, 0.6); }

.btn-ghost {
	background: transparent;
	border-color: var(--card-border);
	color: var(--text-0);
}
.btn-ghost:hover { border-color: var(--accent-2); }

/* ===== Header ===== */
header.site-header {
	position: sticky;
	top: 0; left: 0; right: 0;
	z-index: 100;
	min-height: 74px;
	background: rgba(7, 9, 16, 0.92);
	border-bottom: 1px solid rgba(255,255,255,0.06);
	transition: box-shadow 0.2s ease;
}
@media (min-width: 861px) {
	header.site-header {
		-webkit-backdrop-filter: blur(14px);
		backdrop-filter: blur(14px);
		background: rgba(5, 7, 13, 0.55);
	}
}
header.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(0,0,0,0.35); }
.site-header .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 74px;
}
.brand { display: flex; align-items: center; gap: 12px; font-family: "Poppins", sans-serif; font-weight: 700; font-size: 19px; }
.brand img { height: 38px; width: 38px; }
.brand span strong { font-weight: 700; }

nav.main-nav { display: flex; align-items: center; gap: 32px; }
nav.main-nav a {
	font-size: 14.5px;
	font-weight: 500;
	color: var(--text-1);
	transition: color 0.2s;
}
nav.main-nav a:hover { color: var(--accent-2); }

.nav-toggle { display: none; background: none; border: none; color: var(--text-0); font-size: 26px; cursor: pointer; }

.lang-switch-single {
	position: relative;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 1px solid var(--card-border);
	background: transparent;
	cursor: pointer;
	padding: 0;
	flex-shrink: 0;
	overflow: hidden;
	transition: border-color 0.2s ease, transform 0.2s ease;
}
.lang-switch-single:hover { border-color: var(--accent-2); transform: scale(1.06); }
.lang-switch-single img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: none;
}
.lang-switch-single[data-lang="es"] .lang-flag-en { display: block; }
.lang-switch-single[data-lang="en"] .lang-flag-es { display: block; }

/* ===== Parallax sections ===== */
.parallax {
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	background-attachment: fixed;
	position: relative;
}
.parallax::before {
	content: "";
	position: absolute;
	inset: 0;
	background: inherit;
	z-index: -1;
}

.hero {
	min-height: 100vh;
	display: flex;
	align-items: center;
	background:
		radial-gradient(ellipse 60% 50% at 20% 15%, rgba(124,92,255,0.35), transparent 60%),
		radial-gradient(ellipse 55% 45% at 85% 25%, rgba(0,212,255,0.28), transparent 60%),
		radial-gradient(ellipse 70% 60% at 50% 100%, rgba(0,255,194,0.12), transparent 65%),
		var(--bg-0);
}
.hero-grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
	background-size: 44px 44px;
	mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 0%, transparent 75%);
	pointer-events: none;
}
.hero-content { position: relative; z-index: 2; padding: 86px 0 100px; text-align: center; margin: 0 auto; }
.hero h1 { font-size: clamp(38px, 6.5vw, 68px); max-width: 900px; margin: 0 auto 20px; }
.hero h1 .h1-small { font-size: 0.8em; }
.hero .lead { font-size: clamp(16px, 2vw, 19px); max-width: 640px; margin: 0 auto 40px; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(60px);
	opacity: 0.5;
	z-index: 1;
	animation: float 9s ease-in-out infinite;
}
.orb-1 { width: 260px; height: 260px; background: var(--accent-1); top: 8%; left: 6%; }
.orb-2 { width: 220px; height: 220px; background: var(--accent-2); bottom: 6%; right: 8%; animation-delay: 2.5s; }
.orb-3 { width: 180px; height: 180px; background: var(--accent-3); top: 45%; right: 22%; animation-delay: 5s; }
@keyframes float {
	0%, 100% { transform: translateY(0px); }
	50% { transform: translateY(-26px); }
}

/* section shell */
.section { padding: 110px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-alt { background: var(--bg-1); }
.divider-wave { display: block; width: 100%; height: 80px; }

/* ===== Services ===== */
.services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 22px;
}
@media (min-width: 860px) {
	.services-grid { grid-template-columns: repeat(3, 1fr); }
}
.service-card {
	position: relative;
	overflow: hidden;
	background: var(--card);
	border: 1px solid var(--card-border);
	border-radius: var(--radius);
	padding: 34px 26px;
	transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, opacity 0.6s ease;
}
.service-card::before {
	content: "";
	position: absolute;
	top: -60%; left: -20%;
	width: 70%; height: 140%;
	background: var(--grad);
	opacity: 0;
	filter: blur(50px);
	transition: opacity 0.4s ease;
	z-index: 0;
	pointer-events: none;
}
.service-card::after {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 3px;
	background: var(--grad);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.35s ease;
}
.service-card:hover {
	transform: translateY(-8px);
	border-color: rgba(0, 212, 255, 0.45);
	background: rgba(255,255,255,0.06);
	box-shadow: 0 20px 45px -18px rgba(0, 212, 255, 0.35);
}
.service-card:hover::before { opacity: 0.16; }
.service-card:hover::after { transform: scaleX(1); }
.service-card:hover .service-icon {
	transform: scale(1.12) rotate(-6deg);
	box-shadow: 0 10px 26px -8px rgba(0, 212, 255, 0.55);
}
.service-card > * { position: relative; z-index: 1; }
.service-badge {
	position: absolute;
	top: 18px; right: 18px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(0, 255, 194, 0.14);
	color: var(--accent-3);
	z-index: 2;
}
.service-icon {
	width: 56px; height: 56px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 16px;
	background: var(--grad);
	font-size: 26px;
	margin-bottom: 20px;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ===== Payments ===== */
.pay-parallax {
	background:
		linear-gradient(180deg, rgba(5,7,13,0.86), rgba(5,7,13,0.94)),
		repeating-linear-gradient(135deg, rgba(124,92,255,0.10) 0 2px, transparent 2px 26px);
}
.pay-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	margin-bottom: 44px;
}
.pay-tab {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 20px;
	border-radius: 999px;
	background: var(--card);
	border: 1px solid var(--card-border);
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	color: var(--text-1);
	transition: all 0.2s ease;
}
.pay-tab img { height: 20px; width: 20px; object-fit: contain; }
.pay-tab.active, .pay-tab:hover { border-color: var(--accent-2); color: var(--text-0); background: rgba(0,212,255,0.08); }

.pay-panel { display: none; }
.pay-panel.active { display: block; animation: fadein 0.35s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.pay-card {
	max-width: 760px;
	margin: 0 auto;
	background: var(--card);
	border: 1px solid var(--card-border);
	border-radius: var(--radius);
	padding: 36px;
}
.pay-card-head { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.pay-card-head img { height: 44px; width: 44px; object-fit: contain; flex-shrink: 0; }
.pay-card-head h3 { min-width: 0; }
.fee-tag {
	display: inline-block;
	font-size: 12.5px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(0,255,194,0.12);
	color: var(--accent-3);
	margin-left: auto;
}

.currency-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 20px 0;
}
.currency-row button {
	background: rgba(255,255,255,0.04);
	border: 1px solid var(--card-border);
	border-radius: 12px;
	padding: 8px;
	cursor: pointer;
}
.currency-row button img { height: 30px; width: 30px; }
.currency-row button.active { border-color: var(--accent-2); background: rgba(0,212,255,0.1); }

.detail-box {
	display: none;
	background: rgba(0,0,0,0.28);
	border: 1px solid var(--card-border);
	border-radius: 12px;
	padding: 20px 22px;
	margin-top: 12px;
	font-size: 14.5px;
}
.detail-box.active { display: block; }
.detail-box strong { color: var(--text-0); }
.detail-box code {
	background: rgba(255,255,255,0.08);
	padding: 2px 8px;
	border-radius: 6px;
	color: var(--accent-3);
	word-break: break-all;
}
.detail-box hr { border: none; border-top: 1px solid var(--card-border); margin: 14px 0; }
.detail-box img.qr { width: 150px; margin-top: 10px; border-radius: 8px; }

.simple-pay-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 18px; }

.notes-box {
	max-width: 760px;
	margin: 40px auto 0;
	font-size: 13.5px;
	color: var(--text-2);
	text-align: center;
}

/* ===== Brand icon circles (WhatsApp / Telegram / Mail) ===== */
.icon-circle {
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	flex-shrink: 0;
}
.icon-circle svg { width: 55%; height: 55%; }
.icon-whatsapp { background: #17c964; }
.icon-telegram { background: #229ed9; }
.icon-mail { background: var(--grad); }
.icon-mail svg { fill: #ffffff; }
.icon-whatsapp svg, .icon-telegram svg { fill: #ffffff; }

/* ===== Contact ===== */
.contact-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 22px;
	max-width: 900px;
	margin: 0 auto;
}
.contact-card {
	position: relative;
	overflow: hidden;
	background: var(--card);
	border: 1px solid var(--card-border);
	border-radius: var(--radius);
	padding: 30px 24px;
	text-align: center;
	transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, opacity 0.6s ease;
}
.contact-card::before {
	content: "";
	position: absolute;
	top: -60%; left: -20%;
	width: 70%; height: 140%;
	background: var(--grad);
	opacity: 0;
	filter: blur(50px);
	transition: opacity 0.4s ease;
	z-index: 0;
	pointer-events: none;
}
.contact-card::after {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 3px;
	background: var(--grad);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.35s ease;
}
.contact-card:hover {
	transform: translateY(-8px);
	border-color: rgba(0, 212, 255, 0.45);
	background: rgba(255,255,255,0.06);
	box-shadow: 0 20px 45px -18px rgba(0, 212, 255, 0.35);
}
.contact-card:hover::before { opacity: 0.16; }
.contact-card:hover::after { transform: scaleX(1); }
.contact-card:hover .icon-circle {
	transform: scale(1.12) rotate(-6deg);
	box-shadow: 0 10px 26px -8px rgba(0, 212, 255, 0.55);
}
.contact-card > * { position: relative; z-index: 1; }
.contact-card .icon-circle {
	width: 64px;
	height: 64px;
	margin: 0 auto 16px;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ===== Footer ===== */
footer.site-footer {
	padding: 46px 0 36px;
	border-top: 1px solid rgba(255,255,255,0.06);
	background: var(--bg-1);
	text-align: center;
	color: var(--text-2);
	font-size: 13.5px;
}
footer.site-footer .footer-top {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 100px;
	flex-wrap: wrap;
	margin-bottom: 20px;
}
footer.site-footer .brand { justify-content: center; margin-bottom: 0; }
footer.site-footer .footer-cta { margin-bottom: 0; padding: 11px 24px; font-size: 14px; }

/* ===== Floating action buttons ===== */
.fab-stack {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 200;
	display: flex;
	flex-direction: column;
	gap: 14px;
	align-items: flex-end;
}
.fab {
	box-shadow: 0 6px 20px rgba(0,0,0,0.45);
	transition: transform 0.2s ease;
}
.fab:hover { transform: scale(1.08); }
.fab.icon-circle { width: 60px; height: 60px; }

@keyframes fab-bounce {
	0%, 66.6%, 100% { transform: translateY(0); }
	77.7% { transform: translateY(-18px); }
	88.8% { transform: translateY(2px); }
	94% { transform: translateY(-6px); }
}
.fab-bounce { animation: fab-bounce 4.5s ease-in-out infinite; }
.fab-bounce:hover { animation-play-state: paused; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
	nav.main-nav {
		position: fixed;
		top: 74px; left: 0; right: 0;
		background: var(--bg-1);
		flex-direction: column;
		gap: 0;
		border-bottom: 1px solid var(--card-border);
		transform: translateY(-150%);
		transition: transform 0.3s ease;
	}
	nav.main-nav.open { transform: translateY(0); }
	nav.main-nav a { padding: 16px 24px; border-bottom: 1px solid rgba(255,255,255,0.05); }
	.lang-switch-single { margin: 16px 24px; }
	.nav-toggle { display: block; }
	/* Lighter blur + no animation on mobile GPUs to avoid render glitches during scroll */
	.orb { filter: blur(22px); animation: none; }
	.orb-1 { width: 170px; height: 170px; }
	.orb-2 { width: 150px; height: 150px; }
	.orb-3 { width: 120px; height: 120px; }
	.hero-parallax { transform: none !important; }
	/* Drop the heavy blur glow (9 elements) that forces constant GPU compositing on scroll */
	.service-card::before, .contact-card::before { display: none; }
	.pay-card-head h3 { font-size: 15px; }
	.pay-card-head { flex-wrap: wrap; row-gap: 8px; }
	.pay-card-head .fee-tag { margin-left: 60px; flex-basis: 100%; }
	.parallax { background-attachment: scroll; }
	.section { padding: 70px 0; }
	.fab { width: 52px; height: 52px; }
	footer.site-footer .footer-top { flex-direction: column; gap: 18px; }
	.wrap { padding: 0 32px; }
	.hero h1 { font-size: 32px; }
}

/* ===== Scroll-reveal animations ===== */
.hero-parallax {
	position: absolute;
	inset: 0;
	pointer-events: none;
	will-change: transform;
}

.reveal { opacity: 0; }
.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.reveal-up {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view { opacity: 1; transform: translate(0, 0); }

@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1; transform: none; }
	.hero-parallax { transform: none !important; }
}
