/* =========================================================
   WOWDARK S.A.S — Estilos
   ========================================================= */

:root {
  --dark: #1E2D3D;
  --darker: #141E2A;
  --darkest: #0D1520;
  --accent: #00D4FF;
  --accent2: #7B61FF;
  --light: #F0F4F8;
  --mid: #8899AA;
  --white: #FFFFFF;
  --whatsapp: #25D366;
  --glass: rgba(255,255,255,0.04);
  --border: rgba(0,212,255,0.15);
  --gradient: linear-gradient(135deg, var(--accent), var(--accent2));
  --nav-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--darkest);
  color: var(--light);
  overflow-x: hidden;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Texto con degradado (títulos) */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--darker); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* FONDO: ruido + cuadrícula */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.4;
}

.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* =================== NAV =================== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 0 5%;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(13,21,32,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, box-shadow 0.3s;
}

nav.scrolled {
  background: rgba(13,21,32,0.98);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
}

.brand img { width: 36px; height: 36px; }

.brand-name {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.5px;
  text-transform: lowercase;
}

.brand-name small {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 0.7rem;
  color: var(--mid);
  margin-left: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--mid);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

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

.nav-links .nav-cta {
  background: var(--gradient);
  color: #fff;
  padding: 9px 22px;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 0 20px rgba(0,212,255,0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}

.nav-links .nav-cta:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(0,212,255,0.4);
}

/* HAMBURGUESA */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

nav.menu-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
nav.menu-open .hamburger span:nth-child(2) { opacity: 0; }
nav.menu-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =================== BOTONES =================== */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 10px;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  font-weight: 600;
  border: none;
  box-shadow: 0 4px 24px rgba(0,212,255,0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,212,255,0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--light);
  font-weight: 500;
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--glass);
  border-color: var(--accent);
  color: var(--accent);
}

/* =================== HERO =================== */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 5% 80px;
  overflow: hidden;
  z-index: 1;
}

.hero-glow-1,
.hero-glow-2 {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
}

.hero-glow-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,212,255,0.12) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  animation: pulse 6s ease-in-out infinite;
}

.hero-glow-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(123,97,255,0.1) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
  animation: pulse 8s ease-in-out infinite reverse;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
}

.hero-content {
  max-width: 820px;
  width: 100%;
  min-width: 0;
  position: relative;
  z-index: 2;
}

/* Bandera de Colombia (el emoji de bandera no se ve en Windows) */
.flag-co {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  background: linear-gradient(#FCD116 0 50%, #003893 50% 75%, #CE1126 75%);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15);
}

/* ECOSISTEMA WOWDARK EN EL INICIO: logo al centro y servicios en órbita */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
  justify-self: center;
  animation: fadeUp 0.8s 0.5s ease both;
}

.orb-glow {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,255,0.28), rgba(123,97,255,0.16) 45%, transparent 70%);
  filter: blur(24px);
  animation: latido 5s ease-in-out infinite;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0,212,255,0.14);
  animation: girar var(--t) linear infinite;
}

.ring-1 { inset: 32%; --t: 10s; border-color: rgba(123,97,255,0.3); }
.ring-2 { inset: 19%; --t: 18s; animation-direction: reverse; border-style: dashed; border-color: rgba(0,212,255,0.22); }
.ring-3 { inset: 4%; --t: 30s; }

.comet {
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px 3px rgba(0,212,255,0.7);
}

.ring-1 .comet { background: var(--accent2); box-shadow: 0 0 12px 3px rgba(123,97,255,0.7); }

.orb-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.orb-lines line {
  stroke: url(#linea);
  stroke-width: 0.3;
  stroke-linecap: round;
}

.lineas-base line { opacity: 0.25; }

.lineas-flujo line {
  stroke-dasharray: 1.2 5;
  animation: flujo 1.6s linear infinite;
}

.core {
  position: absolute;
  inset: 37%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.core-logo {
  position: relative;
  width: 80%;
  height: 80%;
  filter: drop-shadow(0 0 24px rgba(0,212,255,0.45));
  animation: latido-logo 5s ease-in-out infinite;
}

.hex-line { position: absolute; overflow: visible; }
.hex-line polygon { fill: none; stroke-width: 1; }
.hex-a { left: 0; top: 0; width: 100%; height: 100%; animation: girar 24s linear infinite; }
.hex-a polygon { stroke: rgba(0,212,255,0.35); }
.hex-b { left: -16%; top: -16%; width: 132%; height: 132%; animation: girar 36s linear infinite reverse; }
.hex-b polygon { stroke: rgba(123,97,255,0.3); stroke-dasharray: 4 6; }

.node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: rgba(20,30,42,0.9);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  animation: flotar 6s ease-in-out var(--d) infinite;
}

.node-ico {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0,212,255,0.18), rgba(123,97,255,0.18));
  border: 1px solid rgba(0,212,255,0.3);
}

.node-ico svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes girar { to { transform: rotate(360deg); } }
@keyframes flujo { to { stroke-dashoffset: -6.2; } }
@keyframes flotar { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes latido { 0%, 100% { opacity: 0.8; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes latido-logo { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.2);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
  animation: fadeUp 0.8s ease both;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
}

.hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 24px;
  animation: fadeUp 0.8s 0.15s ease both;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--mid);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 520px;
  font-weight: 300;
  animation: fadeUp 0.8s 0.3s ease both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeUp 0.8s 0.45s ease both;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  margin-top: 60px;
  animation: fadeUp 0.8s 0.6s ease both;
}

.stat strong {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
}

.stat span {
  font-size: 0.8rem;
  color: var(--mid);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* =================== SECCIONES =================== */
section {
  position: relative;
  z-index: 1;
  padding: 100px 5%;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 72px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.section-desc {
  color: var(--mid);
  font-size: 1.05rem;
  line-height: 1.7;
  font-weight: 300;
}

/* =================== NOSOTROS =================== */
#sobre { background: var(--darker); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.about-text h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.2;
}

.about-text p {
  color: var(--mid);
  line-height: 1.8;
  margin-bottom: 20px;
  font-weight: 300;
}

.about-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 8px;
}

.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.about-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.3s;
}

.about-card:hover {
  border-color: rgba(0,212,255,0.3);
  background: rgba(0,212,255,0.03);
  transform: translateY(-4px);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.about-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--white);
}

.about-card p {
  font-size: 0.85rem;
  color: var(--mid);
  line-height: 1.6;
}

/* =================== SERVICIOS =================== */
#servicios { background: var(--darkest); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 30px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform: scaleX(0);
  transition: transform 0.3s;
}

.service-card:hover::after { transform: scaleX(1); }

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0,212,255,0.25);
  background: rgba(0,212,255,0.04);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0,212,255,0.1), rgba(123,97,255,0.1));
  border: 1px solid rgba(0,212,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 22px;
}

.service-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--white);
}

.service-card p {
  font-size: 0.88rem;
  color: var(--mid);
  line-height: 1.7;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
  list-style: none;
}

.tag {
  font-size: 0.7rem;
  padding: 4px 10px;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.12);
  border-radius: 100px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.services-cta {
  text-align: center;
  max-width: 1200px;
  margin: 60px auto 0;
  padding-top: 60px;
  border-top: 1px solid var(--border);
}

.services-cta p {
  font-size: 1.15rem;
  color: var(--mid);
  margin-bottom: 28px;
  font-weight: 300;
}

/* =================== APPS PROPIAS =================== */
#apps { background: var(--darker); }

.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.app-card {
  --app: var(--accent);
  display: flex;
  flex-direction: column;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

/* Brillo de color de cada app en la esquina */
.app-card::before {
  content: '';
  position: absolute;
  top: -90px;
  right: -90px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--app) 0%, transparent 70%);
  opacity: 0.16;
  pointer-events: none;
}

.app-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--app) 45%, transparent);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.app-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  position: relative;
}

.app-head img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}

.app-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.app-for {
  display: block;
  font-size: 0.8rem;
  color: var(--mid);
  line-height: 1.4;
}

.app-card > p {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.7;
  margin-bottom: 18px;
}

/* Miniaturas de las capturas (se abren en el visor) */
.app-gallery {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 10px;
  margin: -4px -2px 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,212,255,0.3) transparent;
}

.app-gallery::-webkit-scrollbar { height: 4px; }

/* Cuando hay más capturas de las que caben, el borde derecho se desvanece */
.app-gallery.desborda {
  -webkit-mask-image: linear-gradient(to right, #000 80%, transparent);
  mask-image: linear-gradient(to right, #000 80%, transparent);
}

.gallery-label {
  font-size: 0.75rem;
  color: var(--mid);
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}

.shot {
  flex: 0 0 auto;
  width: 74px;
  aspect-ratio: 9 / 16;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--darkest);
  cursor: zoom-in;
  scroll-snap-align: start;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.shot:hover {
  transform: translateY(-3px);
  border-color: var(--app);
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

.app-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.app-features li {
  position: relative;
  padding-left: 26px;
  font-size: 0.88rem;
  color: var(--light);
  line-height: 1.5;
}

.app-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0,212,255,0.12);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.app-card .service-tags { margin-bottom: 26px; }

.btn-wa {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 12px;
  background: var(--whatsapp);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,0.2);
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.btn-wa:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,0.4);
}

/* Apps que ya están en Google Play: mismo botón, con los colores de la tienda */
.btn-play {
  background: #1a1d24;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.btn-play svg { fill: #fff; }

.btn-play:hover {
  background: #01875f;
  box-shadow: 0 8px 28px rgba(1,135,95,0.4);
}

.btn-wa svg { width: 20px; height: 20px; fill: #fff; flex-shrink: 0; }

/* =================== VISOR DE CAPTURAS =================== */
html.visor-abierto { overflow: hidden; }

.visor {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: 100vw;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--light);
}

.visor[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.visor::backdrop {
  background: rgba(5,9,14,0.88);
  backdrop-filter: blur(6px);
}

.visor-box {
  position: relative;
  display: grid;
  grid-template-columns: auto 340px;
  gap: 44px;
  align-items: center;
  width: calc(100% - 48px);
  max-width: 980px;
  max-height: calc(100dvh - 48px);
  padding: 36px 40px;
  background: var(--darker);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 30px 100px rgba(0,0,0,0.6);
}

.visor-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

#visor-img {
  display: block;
  height: min(78dvh, 720px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.visor-nav,
.visor-close {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(13,21,32,0.85);
  color: var(--white);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.visor-nav:hover,
.visor-close:hover { background: rgba(0,212,255,0.15); border-color: var(--accent); }

.visor-nav {
  top: 50%;
  width: 46px;
  height: 46px;
  margin-top: -23px;
  font-size: 1.9rem;
  line-height: 1;
  padding-bottom: 4px;
}

.visor-nav[hidden] { display: none; }
.visor-nav.prev { left: -23px; }
.visor-nav.next { right: -23px; }

.visor-close {
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  font-size: 1rem;
}

.visor-app {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.visor-app img { width: 40px; height: 40px; border-radius: 10px; }

#visor-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  color: var(--white);
}

.visor-count {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--mid);
}

#visor-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 14px;
}

#visor-text {
  color: var(--mid);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 26px;
}

.visor-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.visor-thumbs button {
  width: 44px;
  aspect-ratio: 9 / 16;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: var(--darkest);
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s, border-color 0.2s;
}

.visor-thumbs button:hover { opacity: 0.85; }
.visor-thumbs button.activa { opacity: 1; border-color: var(--accent); }

.visor-thumbs img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* =================== PROCESO =================== */
#proceso { background: var(--darkest); }

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  list-style: none;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(12.5% + 16px);
  right: calc(12.5% + 16px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent2), transparent);
  opacity: 0.4;
}

.step {
  text-align: center;
  position: relative;
}

.step-num {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 18px;
  background: var(--darkest);
  background-image: linear-gradient(135deg, rgba(0,212,255,0.1), rgba(123,97,255,0.1));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
  position: relative;
  z-index: 2;
  transition: all 0.3s;
}

.step:hover .step-num {
  border-color: var(--accent);
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(0,212,255,0.2);
}

.step h3 {
  font-family: 'Syne', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--white);
}

.step p {
  font-size: 0.82rem;
  color: var(--mid);
  line-height: 1.6;
}

/* =================== CONTACTO =================== */
#contacto { background: var(--darker); }

.contact-wrapper {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.contact-info h2 {
  font-family: 'Syne', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.contact-info h2 span {
  background: linear-gradient(135deg, var(--whatsapp), #128C7E);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-info > p {
  color: var(--mid);
  line-height: 1.7;
  margin-bottom: 32px;
  font-weight: 300;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.88rem;
}

.contact-item-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: rgba(0,212,255,0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.contact-item small {
  display: block;
  color: var(--mid);
  font-size: 0.75rem;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-item strong {
  color: var(--white);
  font-weight: 500;
}

.contact-cta {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.whatsapp-big-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 28px;
  background: var(--whatsapp);
  color: #fff;
  border-radius: 14px;
  text-decoration: none;
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  transition: all 0.3s;
  box-shadow: 0 4px 24px rgba(37,211,102,0.2);
}

.whatsapp-big-btn:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(37,211,102,0.4);
}

.wa-icon {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.wa-text small {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  opacity: 0.85;
  font-family: 'DM Sans', sans-serif;
}

/* BOTÓN FLOTANTE DE WHATSAPP */
.wa-float {
  position: fixed;
  right: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 800;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,0.35);
  transition: transform 0.3s, box-shadow 0.3s;
}

.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 32px rgba(37,211,102,0.5);
}

.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* =================== FOOTER =================== */
footer {
  padding: 60px 5% 40px;
  background: var(--darker);
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 48px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin-inline: auto;
}

.footer-brand .brand { margin-bottom: 16px; }

.footer-brand p {
  color: var(--mid);
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 280px;
}

.footer-links h4 {
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 20px;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }

.footer-links a {
  color: var(--mid);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--mid);
  font-size: 0.82rem;
}

.footer-bottom strong { color: var(--accent); font-weight: 600; }

/* =================== ANIMACIONES =================== */
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

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

/* =================== RESPONSIVE =================== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-steps::before { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-wrapper { grid-template-columns: 1fr; }
  .apps-grid { grid-template-columns: 1fr; max-width: 560px; }

  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-title { font-size: clamp(2.1rem, 9vw, 5rem); }
  .hero-visual { max-width: 440px; }
}

@media (max-width: 768px) {
  /* El visor ocupa toda la pantalla del celular */
  .visor-box {
    width: 100%;
    height: 100dvh;
    max-width: none;
    max-height: none;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 16px;
    padding: 60px 16px 20px;
    border: none;
    border-radius: 0;
    overflow-y: auto;
  }

  .visor-media { height: 100%; }
  #visor-img { height: 100%; max-height: 100%; }
  .visor-nav.prev { left: 0; }
  .visor-nav.next { right: 0; }
  .visor-app { margin-bottom: 10px; }
  #visor-title { font-size: 1.2rem; margin-bottom: 6px; }
  #visor-text { font-size: 0.9rem; line-height: 1.55; margin-bottom: 14px; }
  .visor-thumbs { display: none; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 5% 24px;
    background: rgba(13,21,32,0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    display: none;
  }

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

  .nav-links a { display: block; padding: 12px 0; font-size: 1rem; }
  .nav-links .nav-cta { text-align: center; margin-top: 8px; }

  .services-grid { grid-template-columns: 1fr; }
  .about-cards { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
  .footer-top { flex-direction: column; }
}

@media (max-width: 480px) {
  section { padding: 70px 5%; }
  .hero-actions a { width: 100%; }
  .stat strong { font-size: 1.8rem; }
  .contact-info h2 { font-size: 1.8rem; }

  .hero-visual { max-width: 340px; }
  .node { font-size: 0.72rem; gap: 6px; padding: 4px 10px 4px 4px; }
  .node-ico { width: 26px; height: 26px; }
  .node-ico svg { width: 14px; height: 14px; }
}
