: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);
}

/* ── Aplicaciones ── */
.apps-hero {
  padding-bottom: 1.4rem;
}

.app-card {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem;
}

.app-card h2 {
  margin: 0.45rem 0 0.65rem;
}

.app-card p {
  margin: 0 auto 1.35rem;
  max-width: 56ch;
  color: var(--text-soft);
}

.app-store-button[aria-disabled="true"] {
  cursor: default;
  opacity: 0.78;
}

.app-store-button[aria-disabled="true"]:hover {
  transform: none;
  box-shadow: none;
}

.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;
  }
}

/* Juegos: misma tarjeta, paleta y ritmo que Aplicaciones. */
.nav { gap: 1rem; }
.nav-links { justify-content: center; }
.nav-links a[aria-current="page"] { border-color: var(--accent-2); background: rgba(0, 211, 255, 0.12); }
.intro-center { text-align: center; }
.intro-center p.lead { margin-inline: auto; }
.game-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-block: 1.5rem; }
.game-features > div { padding: 1rem; border: 1px solid var(--card-border); border-radius: 14px; }
.game-features h3 { margin: 0 0 .5rem; }
.game-features p { margin: 0; }
.game-card .tool-status { font-size: .875rem; }
.game-card .btn { white-space: normal; text-align: center; min-height: 44px; }
.game-card .beta-note,
.game-card .release-note { margin: 1rem auto 0; font-size: .875rem; }
.operator-card { overflow: hidden; }
.operator-logo-wrap,
.spendly-logo-wrap {
  width: min(220px, 58vw);
  margin: -0.25rem auto 0.9rem;
  line-height: 0;
}
.operator-logo,
.spendly-logo {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 26%;
  box-shadow: 0 14px 34px rgba(0, 211, 255, 0.14);
}
.legal-content { max-width: 850px; margin-inline: auto; overflow-wrap: anywhere; }
.legal-content h2 { margin-top: 2.5rem; }
.legal-content h3 { margin-top: 1.5rem; }
.legal-content p, .legal-content li { line-height: 1.75; color: var(--text-soft); }
.legal-content a:not(.btn), footer a { color: #96e6ff; }
.legal-back { margin-block: 1rem 2rem; }
#operator-ops, #spendly-travel { scroll-margin-top: 12rem; }
@media (max-width: 640px) {
  .game-features { grid-template-columns: 1fr; }
  .game-card { padding: 1.25rem; }
}

.nav .brand { flex-shrink: 0; }
.nav .nav-links { justify-content: flex-end; }
@media (max-width: 930px) { .nav .nav-links { justify-content: center; } }

/* Portada: apps y juegos primero; servicios web como complemento. */
.featured-projects .project-card { display: flex; flex-direction: column; align-items: stretch; padding: 1.6rem; }
.project-card .tool-status { align-self: center; font-size: .875rem; }
.project-card h3 { font-size: 1.6rem; margin: .5rem 0; }
.project-card p { color: var(--text-soft); flex: 1; margin: .25rem 0 1.5rem; }
.web-service { margin-top: 1.5rem; }
.web-service p { max-width: 75ch; margin: 0 auto 1rem; color: var(--text-soft); }
.primary-offers { align-items: stretch; }
.web-pricing { margin-top: 2rem; }
.web-pricing summary { cursor: pointer; padding: 1.2rem; border: 1px solid var(--card-border); border-radius: 14px; background: var(--glass); font-weight: 700; }
.web-pricing[open] summary { margin-bottom: 1.5rem; }
main .btn { white-space: normal; text-align: center; min-height: 44px; }
.btn:focus-visible, summary:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 4px; }
main section[id], #opciones-web, #desarrollo-web { scroll-margin-top: 12rem; }
@media (max-width: 480px) { .hero-stats { grid-template-columns: 1fr; } .hero-stats .stat { min-height: auto; } }

/* ── Correcciones visuales móviles y precios web siempre visibles ── */
.web-pricing > summary {
  cursor: default;
  pointer-events: none;
  list-style: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  line-height: 1.35;
  text-align: center;
  margin: 0 0 1.5rem;
}
.web-pricing > summary::-webkit-details-marker { display: none; }
.web-pricing > summary::marker { content: ""; }
.web-pricing > .grid-3,
.web-pricing > .grid-2 { display: grid !important; }
.web-pricing > .price-note { display: block !important; }
.web-pricing[open] > summary { margin-bottom: 1.5rem; }

@media (max-width: 930px) {
  .site-header {
    position: static;
  }

  .nav {
    padding: 0.8rem 0 1rem;
  }

  .nav-links {
    width: 100%;
    justify-content: center !important;
    gap: 0.55rem 0.65rem;
  }

  .nav-links a {
    font-size: 0.86rem;
    padding: 0.38rem 0.7rem;
  }

  main section[id],
  #opciones-web,
  #desarrollo-web,
  #operator-ops,
  #spendly-travel {
    scroll-margin-top: 1.5rem;
  }

  .web-service {
    margin-top: 1.25rem;
  }
}

@media (max-width: 640px) {
  .grid-2,
  .grid-3 {
    gap: 1.25rem;
  }

  .web-pricing {
    margin-top: 2.25rem;
  }

  .web-pricing > summary {
    margin-bottom: 1.25rem;
    padding-inline: 0.5rem;
  }

  .whatsapp-float {
    right: 0.85rem;
    bottom: calc(0.85rem + env(safe-area-inset-bottom));
    padding: 0.58rem 0.82rem;
    font-size: 0.82rem;
  }

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


/* Soy el Impostor: mantiene el lenguaje visual de la página de Juegos. */
.impostor-card {
  overflow: hidden;
}
.impostor-logo-wrap {
  width: min(280px, 72vw);
  margin: -0.35rem auto 0.65rem;
  line-height: 0;
}
.impostor-logo {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  mix-blend-mode: screen;
  filter: contrast(1.06) saturate(1.08);
}
#soy-el-impostor {
  scroll-margin-top: 12rem;
}
@media (max-width: 930px) {
  #soy-el-impostor {
    scroll-margin-top: 1.5rem;
  }
}
