@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --bg-dark: #0e1024;
  --bg-mid: #151b3d;
  --bg-soft: #1f2a57;
  --text-main: #edf2ff;
  --text-soft: #cdd7ff;
  --accent-1: #7d5cff;
  --accent-2: #00d3ff;
  --accent-3: #ff6fcf;
  --success: #34d8ad;
  --warning: #ffd166;
  --danger: #ff6b6b;
  --card-border: rgba(255, 255, 255, 0.22);
  --glass: linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04));
  --shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 10% 15%, rgba(125, 92, 255, 0.23), transparent 30%),
    radial-gradient(circle at 85% 10%, rgba(0, 211, 255, 0.2), transparent 33%),
    radial-gradient(circle at 70% 85%, rgba(255, 111, 207, 0.14), transparent 35%),
    linear-gradient(145deg, var(--bg-dark), var(--bg-mid) 45%, var(--bg-soft));
  background-attachment: fixed;
  line-height: 1.6;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(12, 14, 30, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.5px;
}

.brand span {
  color: var(--accent-2);
}

.nav-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: #dfe7ff;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.42rem 0.82rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.nav-links a:hover {
  color: #fff;
  border-color: rgba(151, 230, 255, 0.65);
  background: rgba(151, 230, 255, 0.14);
  transform: translateY(-1px);
}

.nav-links a:focus-visible {
  outline: none;
  border-color: rgba(151, 230, 255, 0.85);
  box-shadow: 0 0 0 3px rgba(151, 230, 255, 0.24);
}

.hero {
  padding: 4.4rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1.4rem;
  align-items: stretch;
}

.card {
  border: 1px solid var(--card-border);
  border-radius: 20px;
  background: var(--glass);
  box-shadow: var(--shadow);
  padding: 1.3rem;
}

.hero h1 {
  margin: 0;
  max-width: 100%;
  font-size: clamp(1.24rem, 2.5vw, 1.9rem);
  line-height: 1.24;
  letter-spacing: -0.02em;
}

.hero h1 strong {
  color: #fff;
  text-shadow: 0 1px 14px rgba(125, 92, 255, 0.25);
}

.headline-accent {
  background: linear-gradient(90deg, #edf2ff 0%, #c5d7ff 45%, #95e8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  color: var(--text-soft);
  margin: 0.9rem 0 1.2rem;
  font-size: 0.98rem;
  max-width: 100%;
}

.hero-copy {
  padding: 1.15rem;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0 1.85rem;
}

.badge {
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #f8faff;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.86rem;
  background: rgba(255, 255, 255, 0.06);
}

.actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.35rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.2px;
  text-decoration: none;
  padding: 0.62rem 0.9rem;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2), var(--accent-3));
  background-size: 180% 180%;
  box-shadow: 0 8px 24px rgba(125, 92, 255, 0.35);
  animation: glowShift 5s ease infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 11px 26px rgba(0, 211, 255, 0.35);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: none;
  animation: none;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.stat {
  border-radius: 14px;
  padding: 0.95rem;
  background: rgba(10, 12, 26, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.16);
  min-height: 210px;
}

.stat .label {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.stat .value {
  font-size: 1.25rem;
  font-weight: 800;
  margin-top: 0.15rem;
}

.stat-note {
  margin-top: 0.6rem;
  color: #dbe2ff;
  font-size: 0.92rem;
}

.section {
  padding: 1rem 0 2.1rem;
}

.section h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.4rem, 3.8vw, 2rem);
}

.section p.lead {
  margin: 0 0 1rem;
  color: var(--text-soft);
  max-width: 75ch;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.tool-card h3,
.service-card h3 {
  margin: 0.2rem 0 0.45rem;
}

.tool-card p,
.service-card p,
.contact-box p,
.stack-list {
  color: #dbe2ff;
}

.tool-status {
  display: inline-flex;
  font-weight: 700;
  font-size: 0.78rem;
  border-radius: 999px;
  padding: 0.2rem 0.56rem;
  margin-bottom: 0.45rem;
}

.tool-status.good {
  color: #d9fff5;
  background: rgba(52, 216, 173, 0.25);
}

.tool-status.warn {
  color: #fff5d2;
  background: rgba(255, 209, 102, 0.25);
}

.tool-status.hot {
  color: #ffe2e2;
  background: rgba(255, 107, 107, 0.25);
}

.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.stack-list .badge {
  background: rgba(52, 216, 173, 0.16);
}

.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1rem;
}

.contact-box p {
  margin: 0.2rem 0;
}

.contact-box a {
  color: #96e6ff;
  text-decoration: none;
}

.contact-form label {
  display: block;
  margin-top: 0.7rem;
  font-weight: 600;
  color: var(--text-soft);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  margin-top: 0.35rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(10, 12, 26, 0.42);
  color: var(--text-main);
  padding: 0.7rem 0.8rem;
  outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #b9c5f3;
}

.contact-form textarea {
  min-height: 110px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: #9be4ff;
  box-shadow: 0 0 0 3px rgba(155, 228, 255, 0.2);
}

.form-note {
  margin-top: 0.8rem;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.form-note.success {
  color: #cffff2;
}

.form-note.error {
  color: #ffd7d7;
}

footer {
  padding: 1.4rem 0 2.2rem;
  text-align: center;
  color: var(--text-soft);
}

/* ── Fade-in al scroll ── */
.fade-in {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
	opacity: 1;
	transform: translateY(0);
}

/* ── Proceso ── */
.process-card {
	text-align: center;
	padding: 2rem 1.5rem;
}
.process-number {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: linear-gradient(135deg, #3b82f6, #7c3aed);
	color: #fff;
	font-size: 1.4rem;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1rem;
}

/* ── Precios ── */
.grid-2 {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
	margin-top: 1.5rem;
}
.price-card {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	position: relative;
}
.price-badge {
	position: absolute;
	top: -12px;
	left: 1.5rem;
	background: linear-gradient(135deg, #3b82f6, #7c3aed);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 700;
	padding: 3px 12px;
	border-radius: 99px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.price-range {
	font-size: 1.6rem;
	font-weight: 800;
	color: #e2e8f0;
	line-height: 1.2;
}
.price-range span {
	font-size: 0.9rem;
	font-weight: 500;
	color: #94a3b8;
}
.price-desc {
	color: #94a3b8;
	font-size: 0.92rem;
}
.price-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	font-size: 0.88rem;
	color: #cbd5e1;
	flex: 1;
}
.price-note {
	margin-top: 2rem;
}
.price-note h3 {
	margin-bottom: 0.75rem;
}
.price-extra {
	margin-top: 1.5rem;
}

/* ── WhatsApp flotante ── */
.whatsapp-float {
	position: fixed;
	bottom: 1.75rem;
	right: 1.75rem;
	z-index: 999;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	background: #25d366;
	color: #fff;
	font-weight: 700;
	font-size: 0.9rem;
	padding: 0.65rem 1.2rem 0.65rem 0.9rem;
	border-radius: 99px;
	text-decoration: none;
	box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-float:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
}

/* ── Responsive precios y proceso ── */
@media (max-width: 640px) {
	.grid-2 {
		grid-template-columns: 1fr;
	}
	.price-range {
		font-size: 1.3rem;
	}
}

@media (max-width: 930px) {
  .hero-grid,
  .contact-wrap,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .actions {
    grid-template-columns: 1fr;
  }

  .nav {
    flex-direction: column;
    gap: 0.6rem;
  }
}
