/* ============================================================
   CaFra – Personalized Digital Services
   Main Stylesheet
   ============================================================ */

/* ── Custom Properties ── */
:root {
  --color-bg:           #070b14;
  --color-bg-2:         #0c1220;
  --color-bg-card:      rgba(15, 22, 40, 0.85);
  --color-border:       rgba(100, 130, 255, 0.12);
  --color-border-hover: rgba(130, 100, 255, 0.35);

  --color-primary:      #5865f2;
  --color-primary-h:    #7c87ff;
  --color-secondary:    #8b5cf6;
  --color-accent:       #06b6d4;
  --color-green:        #22c55e;
  --color-orange:       #f97316;

  --grad-primary: linear-gradient(135deg, #5865f2, #8b5cf6);
  --grad-hero:    linear-gradient(135deg, #070b14 0%, #0d1530 50%, #100d25 100%);
  --grad-text:    linear-gradient(135deg, #818cf8, #c084fc, #67e8f9);
  --grad-glow:    radial-gradient(ellipse 60% 60% at 50% 50%, rgba(88, 101, 242, 0.18), transparent);

  --font-head:   'Outfit', sans-serif;
  --font-body:   'Inter', sans-serif;

  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-xl:   28px;

  --shadow-card: 0 4px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(100, 130, 255, 0.08);
  --shadow-glow: 0 0 40px rgba(88, 101, 242, 0.25);
  --transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
body { cursor: none; }
a, button, [role="button"], input, select, textarea { cursor: none; }

.cursor {
  position: fixed;
  width: 12px;
  height: 12px;
  background: #818cf8;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, background 0.2s ease, opacity 0.2s ease;
  mix-blend-mode: screen;
  box-shadow: 0 0 12px 4px rgba(129, 140, 248, 0.6);
}

.cursor-trail {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(129, 140, 248, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: transform 0.12s ease, width 0.25s ease, height 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 0 20px rgba(129, 140, 248, 0.15);
}

.cursor.cursor--hover {
  width: 20px;
  height: 20px;
  background: #c084fc;
  box-shadow: 0 0 20px 8px rgba(192, 132, 252, 0.5);
}
.cursor-trail.cursor--hover {
  width: 56px;
  height: 56px;
  border-color: rgba(192, 132, 252, 0.5);
}
.cursor.cursor--click {
  width: 8px;
  height: 8px;
  background: #ffffff;
}

/* ============================================================
   INTERACTIVE ENHANCEMENTS
   ============================================================ */

/* Typewriter cursor */
.typewriter-cursor {
  display: inline-block;
  color: var(--color-primary-h);
  font-weight: 300;
  animation: blink-cursor 1s step-end infinite;
  margin-left: 1px;
}
@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Hero brand name — animated shimmer + floating */
@keyframes shimmer-brand {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.hero__brand-name {
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    #c7d2fe 25%,
    #a78bfa 45%,
    #67e8f9 55%,
    #a78bfa 70%,
    #c7d2fe 80%,
    #ffffff 100%
  );
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer-brand 4s linear infinite;
}

/* Animated gradient on hero title gradient span */
@keyframes grad-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero__title--gradient {
  background: linear-gradient(270deg, #818cf8, #c084fc, #67e8f9, #818cf8);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: grad-shift 5s ease infinite;
}

/* Ripple effect on buttons */
.btn {
  position: relative;
  overflow: hidden;
}
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: ripple-expand 0.6s linear;
  pointer-events: none;
}
@keyframes ripple-expand {
  to { transform: scale(4); opacity: 0; }
}

/* 3D Tilt — driven by CSS custom props set via JS */
.service-card {
  transform-style: preserve-3d;
  transform: perspective(800px)
    rotateX(var(--tilt-x, 0deg))
    rotateY(var(--tilt-y, 0deg));
  will-change: transform;
}
.service-card:hover {
  transform: perspective(800px)
    rotateX(var(--tilt-x, 0deg))
    rotateY(var(--tilt-y, 0deg))
    translateY(-6px);
}

/* Glowing highlight dot that follows cursor inside cards */
.service-card__glow {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(88, 101, 242, 0.18) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  opacity: 0;
}
.service-card:hover .service-card__glow { opacity: 1; }

/* Hero mockup — glow pulse */
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(88,101,242,0.15), 0 32px 80px rgba(0,0,0,0.6), 0 0 40px rgba(88,101,242,0.10); }
  50%       { box-shadow: 0 0 0 1px rgba(139,92,246,0.3), 0 32px 80px rgba(0,0,0,0.6), 0 0 80px rgba(139,92,246,0.25); }
}
.hero__mockup-screen {
  animation: float-mockup 6s ease-in-out infinite, glow-pulse 3s ease-in-out infinite;
}

/* Stat cards — number pop on hover */
.stat-card:hover .stat-card__number {
  transform: scale(1.08);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.stat-card__number { display: block; transition: transform 0.3s ease; }

/* Section tag — pulse ring */
.section-tag {
  position: relative;
}
.section-tag::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 100px;
  border: 1px solid rgba(88, 101, 242, 0.4);
  animation: ring-pulse 2.5s ease-out infinite;
}
@keyframes ring-pulse {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* App screen — 3D lift on hover */
.app-screens:hover .app-screen--main {
  transform: scale(1.03) translateY(-6px) rotateY(-2deg);
  box-shadow: 0 20px 60px rgba(88,101,242,0.3), 0 0 0 1px rgba(130,100,255,0.3);
}
.app-screens:hover .app-screen--secondary {
  transform: scale(1.02) translateX(6px) rotateY(2deg);
  box-shadow: 0 12px 40px rgba(139,92,246,0.25), 0 0 0 1px rgba(130,100,255,0.25);
}
.app-screen {
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.45s ease;
}

/* Contact channel — slide + glow */
.contact__channel:hover {
  transform: translateX(8px);
  box-shadow: -4px 0 0 0 var(--color-primary), 0 4px 24px rgba(88,101,242,0.12);
}

/* Animated gradient border on mockup */
@keyframes border-rotate {
  to { --angle: 360deg; }
}
@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
.hero__mockup-screen {
  border: 1px solid;
  border-image: conic-gradient(from var(--angle), #5865f2, #8b5cf6, #67e8f9, #5865f2) 1;
  border-radius: var(--radius-lg);
  animation:
    float-mockup 6s ease-in-out infinite,
    glow-pulse 3s ease-in-out infinite,
    border-rotate 4s linear infinite;
}

/* Nav link hover — underline slide */
.nav__link { transition: color var(--transition); }

/* Scroll indicator — glow dot */
.hero__scroll-line {
  background: linear-gradient(to bottom, #818cf8, transparent);
  box-shadow: 0 0 8px rgba(129,140,248,0.5);
}

/* Footer logo wrap — hover glow */
.footer__logo-wrap {
  transition: box-shadow var(--transition), background var(--transition);
}
.footer__logo-wrap:hover {
  box-shadow: 0 0 24px rgba(129,140,248,0.2);
}

/* CTA band — animated shine sweep */
.cta-band {
  overflow: hidden;
}
.cta-band::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  animation: cta-shine 3.5s ease-in-out infinite;
}
@keyframes cta-shine {
  0%   { left: -100%; }
  40%  { left: 120%; }
  100% { left: 120%; }
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background-color: var(--color-bg);
  color: #e2e8f0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

/* ── Premium Scrollbar ── */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
  background: rgba(88, 101, 242, 0.3);
  border-radius: 10px;
  border: 2px solid var(--color-bg);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(88, 101, 242, 0.6);
}

/* ── Text Selection ── */
::selection {
  background: rgba(139, 92, 246, 0.3);
  color: #ffffff;
}

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Utilities ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary-h);
  background: rgba(88, 101, 242, 0.12);
  border: 1px solid rgba(88, 101, 242, 0.25);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: #f1f5f9;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: #94a3b8;
  max-width: 560px;
  margin: 0 auto;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 28px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(88, 101, 242, 0.35);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(88, 101, 242, 0.5);
  filter: brightness(1.1);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn--orange {
  background: linear-gradient(135deg, #f97316, #ea580c);
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.35);
}
.btn--orange:hover {
  box-shadow: 0 8px 32px rgba(249, 115, 22, 0.5);
}

.btn--light {
  background: #fff;
  color: #1e1b4b;
  font-weight: 700;
}
.btn--light:hover {
  background: #e0e7ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,255,255,0.2);
}

.btn--wa {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}
.btn--wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.45);
}

.btn--full { width: 100%; justify-content: center; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.header.scrolled {
  background: rgba(7, 11, 20, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(100,130,255,0.1);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo {
  display: flex;
  align-items: center;
}

.nav__logo-img {
  height: 52px;
  width: auto;
  /* Eliminar el fondo blanco del PNG via brightness+invert:
     brightness(0) → todo negro, invert(1) → todo blanco.
     El resultado es el logo en blanco puro sin fondo visible. */
  filter: brightness(0) invert(1);
  opacity: 0.92;
  transition: opacity var(--transition);
}
.nav__logo-img:hover { opacity: 0.65; }

/* ── CSS Text Logo (nav + footer) ── */
.logo-text {
  font-family: var(--font-head);
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.025em;
  line-height: 1;
  transition: opacity var(--transition);
  display: inline-block;
}
.logo-text--lg {
  font-size: 2.1rem;
  background: linear-gradient(135deg, #ffffff 0%, #c7d2fe 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
a:hover .logo-text { opacity: 0.7; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__link {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.9rem;
  color: #94a3b8;
  transition: color var(--transition);
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-primary);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav__link:hover, .nav__link.active { color: #f1f5f9; }
.nav__link:hover::after, .nav__link.active::after { transform: scaleX(1); }

.nav__link--cta {
  background: var(--grad-primary);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 12px rgba(88,101,242,0.3);
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 20px rgba(88,101,242,0.5);
  transform: translateY(-1px);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #e2e8f0;
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--grad-hero);
  overflow: hidden;
  padding-top: 72px;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(88, 101, 242, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88, 101, 242, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black, transparent);
}

/* Particles */
.hero__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--color-primary-h);
  border-radius: 50%;
  animation: float-particle linear infinite;
  opacity: 0;
}

@keyframes float-particle {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-100px) scale(1); opacity: 0; }
}

.hero__content {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding-top: 60px;
  padding-bottom: 80px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary-h);
  background: rgba(88, 101, 242, 0.1);
  border: 1px solid rgba(88, 101, 242, 0.2);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}

/* Hero Brand Display – big typographic logo */
.hero__brand-display {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 20px;
}

.hero__brand-name {
  font-family: var(--font-head);
  font-size: clamp(4rem, 10vw, 7.5rem);
  font-weight: 900;
  line-height: 0.95;
  background: linear-gradient(135deg, #ffffff 0%, #c7d2fe 40%, #a78bfa 70%, #67e8f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
  filter: drop-shadow(0 0 40px rgba(139, 92, 246, 0.4));
}

.hero__brand-sub {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #64748b;
  padding-left: 4px;
}

.hero__title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: #f1f5f9;
  line-height: 1.12;
  margin-bottom: 20px;
}

.hero__title--gradient {
  display: block;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: #94a3b8;
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero Mockup */
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__mockup {
  position: relative;
  width: 100%;
  max-width: 560px;
}

.hero__mockup-screen {
  position: relative;
  background: rgba(15, 22, 40, 0.9);
  border: 1px solid rgba(88, 101, 242, 0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(88, 101, 242, 0.15),
    0 32px 80px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(88, 101, 242, 0.08);
  animation: float-mockup 6s ease-in-out infinite;
}

@keyframes float-mockup {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

.hero__mockup-screen::before {
  content: '';
  display: block;
  height: 32px;
  background: rgba(20, 30, 52, 0.95);
  border-bottom: 1px solid rgba(88, 101, 242, 0.1);
  display: flex;
  align-items: center;
  padding: 0 12px;
}

.hero__mockup-img {
  width: 100%;
  display: block;
}

.hero__mockup-glow {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 60px;
  background: radial-gradient(ellipse, rgba(88, 101, 242, 0.4), transparent);
  filter: blur(20px);
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  color: #475569;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, #5865f2, transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; height: 30px; }
  50%       { opacity: 1;   height: 50px; }
}

/* ============================================================
   STATS
   ============================================================ */
.stats {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-2) 100%);
  padding: 40px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--color-border);
}

.stat-card {
  background: var(--color-bg-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  text-align: center;
  transition: var(--transition);
}
.stat-card:hover { background: rgba(88, 101, 242, 0.05); }

.stat-card__number {
  font-family: var(--font-head);
  font-size: 2.25rem;
  font-weight: 900;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-card__label {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  padding: 100px 0;
  background: var(--color-bg-2);
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--color-primary));
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}
.service-card:hover::before { opacity: 0.04; }

.service-card__icon {
  width: 56px;
  height: 56px;
  background: rgba(88, 101, 242, 0.1);
  border: 1px solid rgba(88, 101, 242, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-h);
  margin-bottom: 20px;
  transition: var(--transition);
}

.service-card:hover .service-card__icon {
  background: rgba(88, 101, 242, 0.18);
  box-shadow: 0 0 20px rgba(88, 101, 242, 0.25);
}

.service-card__title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 10px;
}

.service-card__desc {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.65;
}

/* ============================================================
   APPS SECTION
   ============================================================ */
.apps {
  padding: 100px 0;
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}

.apps__bg-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  pointer-events: none;
}

.apps__bg-glow--left {
  left: -300px;
  top: 20%;
  background: radial-gradient(circle, rgba(88, 101, 242, 0.06) 0%, transparent 70%);
}

.apps__bg-glow--right {
  right: -300px;
  bottom: 10%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.06) 0%, transparent 70%);
}

/* App Showcase Layout */
.app-showcase {
  margin-bottom: 80px;
}

.app-showcase__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.app-showcase--reverse .app-showcase__content {
  direction: rtl;
}
.app-showcase--reverse .app-showcase__content > * {
  direction: ltr;
}

.app-showcase__badge { margin-bottom: 16px; }

.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
}

.app-badge--green {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #4ade80;
}

.app-badge--orange {
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.25);
  color: #fb923c;
}

.app-showcase__title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: #f1f5f9;
  margin-bottom: 8px;
  line-height: 1.1;
}

.app-showcase__tagline {
  font-size: 1rem;
  color: var(--color-primary-h);
  font-weight: 500;
  margin-bottom: 16px;
}

.app-showcase__desc {
  font-size: 0.97rem;
  color: #94a3b8;
  line-height: 1.75;
  margin-bottom: 24px;
}

.app-showcase__features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.app-showcase__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #cbd5e1;
}

.app-showcase__features li svg {
  color: var(--color-green);
  flex-shrink: 0;
}

.app-showcase__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.app-showcase__live {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--color-green);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
  box-shadow: 0 0 6px var(--color-green);
}

.live-dot--orange {
  background: var(--color-orange);
  box-shadow: 0 0 6px var(--color-orange);
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.3); opacity: 0.7; }
}

/* App Screens Stack */
.app-screens {
  position: relative;
  height: 340px;
}

.app-screen {
  position: absolute;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  transition: transform 0.4s ease;
}
.app-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.app-screen--main {
  width: 70%;
  height: 260px;
  top: 40px;
  left: 0;
  z-index: 3;
}
.app-screen--secondary {
  width: 55%;
  height: 200px;
  top: 0;
  right: 0;
  z-index: 2;
}
.app-screen--tertiary {
  width: 45%;
  height: 160px;
  bottom: 0;
  right: 30px;
  z-index: 1;
  opacity: 0.75;
}

.app-screens--mobile .app-screen--main {
  width: 48%;
  height: 300px;
  left: 0;
  top: 20px;
}
.app-screens--mobile .app-screen--wide {
  width: 50%;
  height: 220px;
  right: 0;
  top: 60px;
  z-index: 2;
}

.app-screen--phone { border-radius: var(--radius-xl); }

.app-screens:hover .app-screen--main { transform: scale(1.02) translateY(-4px); }
.app-screens:hover .app-screen--secondary { transform: scale(1.01) translateX(4px); }

/* Divider */
.apps__divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0 80px;
}

.apps__divider-line {
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.apps__divider-icon {
  color: var(--color-primary-h);
  font-size: 1rem;
  opacity: 0.5;
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: var(--grad-primary);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

.cta-band__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cta-band__text h2 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.cta-band__text p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: 100px 0;
  background: var(--color-bg-2);
  position: relative;
  overflow: hidden;
}

.contact__bg-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(88, 101, 242, 0.07), transparent);
  pointer-events: none;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact__info .section-title {
  text-align: left;
  margin-top: 8px;
}

.contact__info-desc {
  color: #64748b;
  font-size: 0.97rem;
  line-height: 1.7;
  margin: 20px 0 36px;
}

.contact__channels {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact__channel {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.contact__channel:hover {
  border-color: var(--color-border-hover);
  transform: translateX(6px);
  background: rgba(88, 101, 242, 0.08);
}

.contact__channel-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact__channel-icon--wa {
  background: rgba(37, 211, 102, 0.12);
  color: #4ade80;
  border: 1px solid rgba(37, 211, 102, 0.2);
}

.contact__channel-icon--mail {
  background: rgba(88, 101, 242, 0.12);
  color: var(--color-primary-h);
  border: 1px solid rgba(88, 101, 242, 0.2);
}

.contact__channel-info { display: flex; flex-direction: column; }
.contact__channel-label { font-size: 0.75rem; color: #475569; font-weight: 500; margin-bottom: 2px; }
.contact__channel-value { font-size: 0.9rem; color: #e2e8f0; font-weight: 600; }

/* Contact Form */
.contact__form-wrap {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  box-shadow: var(--shadow-card);
}

.contact__form { display: flex; flex-direction: column; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.04em;
}

.form-input {
  background: rgba(7, 11, 20, 0.5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: #f1f5f9;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.15);
}

.form-input::placeholder { color: #334155; }

.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='1 3 6 9 11 3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-select option { background: #0c1220; color: #f1f5f9; }

.form-textarea { resize: vertical; min-height: 110px; }

.form-note {
  text-align: center;
  font-size: 0.82rem;
  color: #475569;
  margin: -4px 0 -4px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: 40px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__brand { display: flex; flex-direction: column; gap: 8px; }

/* Footer logo: show PNG in a subtle white pill so it looks intentional */
.footer__logo-wrap {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 8px 16px;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}
.footer__logo-wrap:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.2);
}

.footer__logo {
  height: 44px;
  width: auto;
  /* same brightness(0)+invert trick: renders pure white logo */
  filter: brightness(0) invert(1);
  opacity: 0.75;
}

.footer__tagline {
  font-size: 0.72rem;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer__links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer__link {
  font-size: 0.85rem;
  color: #475569;
  transition: color var(--transition);
}
.footer__link:hover { color: #e2e8f0; }

.footer__legal {
  font-size: 0.8rem;
  color: #334155;
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9999;
  background: rgba(15, 22, 40, 0.95);
  border: 1px solid rgba(88, 101, 242, 0.3);
  border-radius: var(--radius-md);
  padding: 14px 22px;
  font-size: 0.9rem;
  color: #e2e8f0;
  backdrop-filter: blur(12px);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

/* ============================================================
   AOS (Animate on Scroll - CSS only)
   ============================================================ */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-aos="fade-left"] { transform: translateX(30px); }
[data-aos="fade-right"] { transform: translateX(-30px); }
[data-aos].aos-visible { opacity: 1; transform: translate(0, 0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .hero__content {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
    padding-top: 32px;
  }
  .hero__subtitle { margin: 0 auto 36px; }
  .hero__actions { justify-content: center; }
  .hero__visual { justify-content: center; }
  .hero__mockup { max-width: 520px; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); }

  .services__grid { grid-template-columns: repeat(2, 1fr); }

  .app-showcase__content { grid-template-columns: 1fr; gap: 40px; }

  /* Don Alfredito: en columna, mostrar texto ARRIBA e imágenes ABAJO */
  .app-showcase--reverse .app-showcase__content {
    direction: ltr;
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  .app-showcase--reverse .app-showcase__info,
  .app-showcase--reverse .app-showcase__visuals {
    width: 100%;
  }
  .app-showcase--reverse .app-showcase__info    { order: 1; } /* texto primero */
  .app-showcase--reverse .app-showcase__visuals { order: 2; } /* imágenes después */

  .app-screens { height: 260px; }
  .app-screen--main { height: 200px; }
  .app-screen--secondary { height: 160px; }
  .app-screen--tertiary { display: none; }

  /* Mobile screens: altura suficiente para el frame de teléfono */
  .app-screens--mobile { height: 300px; overflow: hidden; }
  .app-screens--mobile .app-screen--main { height: 280px; }
  .app-screens--mobile .app-screen--wide { height: 210px; }

  .contact__grid { grid-template-columns: 1fr; gap: 48px; }
  .contact__info .section-title { text-align: left; }
}

/* Mobile */
@media (max-width: 768px) {
  .nav__menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(7, 11, 20, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    gap: 8px;
    padding: 16px 0 24px;
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s ease, opacity 0.4s ease;
    z-index: 999;
  }
  .nav__menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav__link {
    display: block;
    padding: 16px 24px;
    width: 100%;
    font-size: 1.1rem;
    text-align: center;
  }
  .nav__link--cta {
    margin: 8px 24px 0;
    width: calc(100% - 48px);
    text-align: center;
    justify-content: center;
  }
  .nav__toggle { display: flex; }
  .nav__toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav__toggle.active span:nth-child(2) { opacity: 0; }
  .nav__toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .hero__content { padding: 20px 0 60px; }
  .hero__title { font-size: 2.1rem; }
  .hero__scroll { display: none; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); }

  .services__grid { grid-template-columns: 1fr; }

  /* Don Alfredito en mobile: recalcular alturas */
  .app-screens--mobile { height: 240px; }
  .app-screens--mobile .app-screen--main { width: 52%; height: 220px; top: 10px; }
  .app-screens--mobile .app-screen--wide { width: 46%; height: 175px; top: 40px; }

  .app-screens { height: 200px; }
  .app-screen--main { height: 160px; width: 65%; }
  .app-screen--secondary { height: 130px; width: 50%; }
  .app-screen--tertiary { display: none; }

  .apps__bg-glow { display: none; }

  .cta-band__inner { flex-direction: column; text-align: center; }

  .contact__form-wrap { padding: 28px 20px; }

  .footer__inner { flex-direction: column; text-align: center; }
  .footer__links { justify-content: center; }

  .toast { right: 16px; left: 16px; bottom: 20px; text-align: center; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 1.8rem; }
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .app-showcase__actions { flex-direction: column; align-items: flex-start; }
}
