/* ==============================================
   ION SOFTWARE · style.css
   Diseño: oscuro, tecnológico, limpio, moderno
   ============================================== */

/* --- Variables globales --- */
:root {
  --bg-primary:    #070b16;
  --bg-secondary:  #0c1220;
  --bg-card:       #0f1828;
  --bg-card-hover: #141f35;

  --border:        rgba(0, 210, 255, 0.08);
  --border-hover:  rgba(0, 210, 255, 0.28);

  --cyan:          #00d2ff;
  --blue:          #3b82f6;
  --purple:        #8b5cf6;
  --green:         #22c55e;
  --yellow:        #eab308;

  --cyan-glow:     rgba(0, 210, 255, 0.12);
  --shadow-card:   0 4px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow:   0 0 40px rgba(0, 210, 255, 0.08);

  --text-primary:  #f0f6ff;
  --text-secondary:#94a3b8;
  --text-muted:    #4e6280;

  --font-display:  'Space Grotesk', sans-serif;
  --font-body:     'Inter', sans-serif;

  --radius:        12px;
  --radius-lg:     20px;
  --radius-xl:     28px;

  --transition:    all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.3px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

/* Scrollbar elegante */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--cyan); border-radius: 10px; }

/* --- Contenedor --- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==============================================
   NAVEGACIÓN
   ============================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 20px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(7, 11, 22, 0.92);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.nav-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.logo-ion { color: var(--cyan); }
.logo-sw  { color: var(--text-primary); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--cyan);
  transition: width 0.25s ease;
}
.nav-links a:hover { color: var(--cyan); }
.nav-links a:hover::after { width: 100%; }

.nav-cta-item { margin-left: 8px; }
.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: rgba(0, 210, 255, 0.12);
  color: var(--cyan) !important;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid rgba(0, 210, 255, 0.25);
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: none;
  transition: var(--transition);
}
.nav-cta-btn::after { display: none !important; }
.nav-cta-icon {
  flex: 0 0 auto;
  color: currentColor;
}
.nav-cta-btn:hover {
  color: #fff !important;
  background: rgba(0, 210, 255, 0.22);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,210,255,0.16);
}

.nav-wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  background: rgba(37, 211, 102, 0.12);
  color: #7df0a9 !important;
  font-size: 0;
  font-weight: 600;
  border: 1px solid rgba(37, 211, 102, 0.24);
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: none;
  transition: var(--transition);
}
.nav-wa-btn::after { display: none !important; }
.nav-wa-icon {
  flex: 0 0 auto;
  color: currentColor;
}
.nav-wa-btn:hover {
  color: #ffffff !important;
  background: rgba(37, 211, 102, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.14);
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 980;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 42px rgba(18, 140, 126, 0.36);
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 22px 48px rgba(18, 140, 126, 0.46);
}

.whatsapp-float-icon {
  width: 26px;
  height: 26px;
  color: #fff;
}

.assistant-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 980;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.assistant-widget.is-open .assistant-fab {
  opacity: 0;
  transform: translateY(10px) scale(0.75);
  pointer-events: none;
}

.assistant-fab {
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #00d2ff 0%, #3b82f6 55%, #8b5cf6 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 44px rgba(59, 130, 246, 0.34), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  cursor: pointer;
  transition: var(--transition);
}

.assistant-fab:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 24px 52px rgba(59, 130, 246, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.16) inset;
}

.assistant-fab-icon {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
}

.assistant-panel {
  width: min(390px, calc(100vw - 32px));
  max-height: min(640px, calc(100vh - 120px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(0, 210, 255, 0.18);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(12, 18, 32, 0.98) 0%, rgba(7, 11, 22, 0.98) 100%);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.assistant-panel[hidden] {
  display: none;
}

.assistant-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 16px;
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.09), rgba(139, 92, 246, 0.06));
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.assistant-panel__eyebrow {
  display: inline-flex;
  margin-bottom: 6px;
  color: var(--cyan);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.assistant-panel__header h3 {
  margin-bottom: 6px;
  font-size: 1.1rem;
}

.assistant-panel__header p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.45;
}

.assistant-panel__close {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.08);
  color: var(--text-primary);
  font-size: 1.25rem;
  cursor: pointer;
}

.assistant-panel__suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 20px 0;
}

.assistant-chip {
  border: 1px solid rgba(0, 210, 255, 0.16);
  border-radius: 999px;
  background: rgba(0, 210, 255, 0.08);
  color: var(--text-primary);
  padding: 8px 12px;
  font-size: 0.83rem;
  cursor: pointer;
  transition: var(--transition);
}

.assistant-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 210, 255, 0.32);
  background: rgba(0, 210, 255, 0.14);
}

.assistant-panel__messages {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 20px 18px;
  overflow-y: auto;
}

.assistant-message {
  max-width: 86%;
  padding: 12px 14px;
  border-radius: 18px;
  font-size: 0.94rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.assistant-message--assistant {
  align-self: flex-start;
  background: rgba(15, 24, 40, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.12);
  color: var(--text-primary);
}

.assistant-message--user {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.24), rgba(59, 130, 246, 0.24));
  border: 1px solid rgba(0, 210, 255, 0.2);
  color: #f8fcff;
}

.assistant-panel__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 20px 16px;
}

.assistant-panel__form textarea {
  width: 100%;
  min-height: 74px;
  resize: vertical;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(7, 11, 22, 0.84);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.94rem;
  outline: none;
}

.assistant-panel__form textarea:focus {
  border-color: rgba(0, 210, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.1);
}

.assistant-panel__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.assistant-panel__secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(37, 211, 102, 0.24);
  background: rgba(37, 211, 102, 0.1);
  color: #7df0a9;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
}

.assistant-panel__secondary:hover {
  background: rgba(37, 211, 102, 0.18);
  color: #ffffff;
}

.assistant-panel__footer {
  padding: 0 20px 18px;
  color: var(--text-secondary);
  font-size: 0.84rem;
  line-height: 1.5;
}

.nav-link-active,
.nav-dropdown-toggle.nav-link-active {
  color: var(--cyan) !important;
}

.nav-link-active::after,
.nav-dropdown-toggle.nav-link-active::after {
  width: 100% !important;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 0 2px;
  background: transparent;
  border: 0;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  position: relative;
  cursor: pointer;
}

.nav-dropdown-toggle::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--cyan);
  transition: width 0.25s ease;
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle:focus-visible {
  color: var(--cyan);
}

.nav-dropdown-toggle:hover::after,
.nav-dropdown-toggle:focus-visible::after,
.nav-dropdown.open .nav-dropdown-toggle::after,
.nav-dropdown:focus-within .nav-dropdown-toggle::after {
  width: 100%;
}

.nav-dropdown-chevron {
  transition: transform 0.25s ease;
}

.nav-dropdown.open .nav-dropdown-chevron,
.nav-dropdown:focus-within .nav-dropdown-chevron {
  transform: rotate(180deg);
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 14px);
  left: -10px;
  min-width: 220px;
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  margin: 0;
  list-style: none;
  background: rgba(10, 16, 28, 0.98);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
  z-index: 900;
}

.nav-dropdown.open .nav-submenu,
.nav-dropdown:hover .nav-submenu,
.nav-dropdown:focus-within .nav-submenu {
  display: flex;
}

.nav-submenu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  white-space: nowrap;
  color: var(--text-secondary);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-submenu a::after {
  display: none;
}

.nav-submenu a:hover,
.nav-submenu a:focus-visible {
  background: rgba(0, 210, 255, 0.09);
  color: #fff;
  transform: translateX(2px);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: min(1080px, calc(100vw - 32px));
  z-index: 1200;
  background: rgba(10, 16, 28, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 18px 20px;
}

.cookie-banner__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cookie-banner__text {
  max-width: 700px;
}

.cookie-banner__eyebrow {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--cyan);
}

.cookie-banner__text p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-banner__link {
  color: var(--text-muted);
  font-size: 0.86rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner__link:hover,
.cookie-banner__link:focus-visible {
  color: var(--cyan);
}

.cookie-banner__btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.cookie-banner__btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(148, 163, 184, 0.16);
  color: var(--text-secondary);
}

.cookie-banner__btn--ghost:hover,
.cookie-banner__btn--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.cookie-banner__btn--primary {
  background: rgba(0, 210, 255, 0.14);
  border-color: rgba(0, 210, 255, 0.28);
  color: var(--cyan);
}

.cookie-banner__btn--primary:hover,
.cookie-banner__btn--primary:focus-visible {
  background: rgba(0, 210, 255, 0.22);
  color: #fff;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ==============================================
   BOTONES
   ============================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 100%);
  color: #000;
  box-shadow: 0 4px 20px rgba(0, 210, 255, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 210, 255, 0.38);
  color: #000;
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
}
.btn-ghost:hover {
  background: rgba(0, 210, 255, 0.06);
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--cyan);
  border: 1px solid rgba(0, 210, 255, 0.3);
  padding: 10px 18px;
  font-size: 0.84rem;
}
.btn-outline:hover {
  background: rgba(0, 210, 255, 0.08);
  border-color: var(--cyan);
}

/* ==============================================
   HERO
   ============================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(0, 210, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 210, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
  padding: 0 24px;
  animation: fadeInUp 0.9s ease both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 210, 255, 0.07);
  border: 1px solid rgba(0, 210, 255, 0.2);
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
  animation: pulse 2s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  line-height: 1.08;
}

.gradient-text {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 44px;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 64px;
  flex-wrap: wrap;
}

.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  background: rgba(0, 210, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 18px 36px;
}
.stat { text-align: center; }
.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* Scroll cue */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.68rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  animation: fadeIn 2s ease 1s both;
}
.scroll-indicator {
  width: 1.5px;
  height: 40px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: scrollLine 2.2s ease-in-out infinite;
}

/* ==============================================
   SECCIONES
   ============================================== */
.section { padding: 104px 0; }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-tag {
  display: inline-block;
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
}
.section-desc {
  color: var(--text-secondary);
  font-size: 1.08rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ==============================================
   SOBRE MÍ
   ============================================== */
.about {
  background: linear-gradient(
    180deg,
    var(--bg-primary) 0%,
    var(--bg-secondary) 40%,
    var(--bg-primary) 100%
  );
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.about-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.about-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid rgba(0, 210, 255, 0.35);
  flex-shrink: 0;
}
.about-profile-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.about-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}
.about-role {
  font-size: 0.82rem;
  color: var(--cyan);
  font-weight: 500;
  letter-spacing: 0.3px;
}
.about-text p {
  color: var(--text-secondary);
  margin-bottom: 18px;
  font-size: 1.02rem;
}
.about-text strong { color: var(--text-primary); }

.about-values {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}
.value-tag {
  background: rgba(0, 210, 255, 0.07);
  border: 1px solid rgba(0, 210, 255, 0.18);
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  letter-spacing: 0.5px;
}

.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
}
.about-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.about-card-icon { font-size: 1.7rem; margin-bottom: 12px; }
.about-card h3 {
  font-size: 0.94rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.about-card p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ==============================================
   PROYECTOS
   ============================================== */
.projects { background: var(--bg-primary); }

.projects-filters {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.filter-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}
.filter-btn:hover,
.filter-btn.active {
  background: rgba(0, 210, 255, 0.09);
  border-color: var(--cyan);
  color: var(--cyan);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 22px;
}

/* Tarjeta de proyecto */
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  cursor: default;
}
.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.project-thumb {
  width: 100%;
  height: 190px;
  background: linear-gradient(135deg, #0a1628 0%, #12203a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.8rem;
  position: relative;
  overflow: hidden;
}
.project-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, var(--bg-card));
}
.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.project-body {
  padding: 22px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.project-status {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.status-stable  { background: rgba(34, 197, 94, 0.1);  color: var(--green);  border: 1px solid rgba(34,197,94,0.2); }
.status-beta    { background: rgba(234,179,8,0.1);      color: var(--yellow); border: 1px solid rgba(234,179,8,0.2); }
.status-dev     { background: rgba(139,92,246,0.1);     color: var(--purple); border: 1px solid rgba(139,92,246,0.2); }

.project-os {
  margin-left: auto;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-display);
}

.project-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.project-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 16px;
}
.project-version {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-display);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}
.project-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Cargando */
.projects-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 0;
  color: var(--text-muted);
}
.loading-spinner {
  width: 36px;
  height: 36px;
  border: 2px solid var(--border);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  margin: 0 auto 16px;
}

/* Vacío */
.projects-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 0;
  color: var(--text-muted);
}

/* ==============================================
   DONACIONES
   ============================================== */
.donations {
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}
.donations::before {
  content: '';
  position: absolute;
  top: -60%;
  left: -15%;
  width: 55%;
  height: 220%;
  background: radial-gradient(ellipse, rgba(0,210,255,0.04) 0%, transparent 65%);
  pointer-events: none;
}
.donations::after {
  content: '';
  position: absolute;
  bottom: -50%;
  right: -10%;
  width: 45%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(139,92,246,0.04) 0%, transparent 65%);
  pointer-events: none;
}

.donations-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.donations-text .section-tag { display: block; margin-bottom: 12px; }
.donations-text .section-title { text-align: left; margin-bottom: 24px; }
.donations-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 1.02rem;
}
.donations-text strong { color: var(--cyan); }

.donations-quote {
  border-left: 2px solid var(--cyan);
  padding-left: 18px;
  margin: 24px 0;
  color: var(--text-secondary);
  font-size: 0.96rem;
  font-style: italic;
  line-height: 1.7;
}
.donate-btn { margin-top: 8px; }

.donations-visual {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.donation-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: var(--transition);
}
.donation-card:hover,
.donation-card.highlight {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}
.donation-card.highlight {
  border-color: rgba(0, 210, 255, 0.25);
  box-shadow: 0 0 24px rgba(0, 210, 255, 0.06);
}
.donation-emoji { font-size: 2rem; flex-shrink: 0; }
.donation-card h3 { font-size: 0.97rem; font-weight: 600; margin-bottom: 4px; }
.donation-card p  { font-size: 0.84rem; color: var(--text-secondary); line-height: 1.5; }

/* ==============================================
   CONTACTO
   ============================================== */
.contact { background: var(--bg-primary); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 72px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.contact-item strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.contact-item a {
  color: var(--cyan);
  font-size: 0.96rem;
}
.contact-item a:hover { text-decoration: underline; }

.contact-note {
  margin-top: 8px;
  padding: 16px;
  background: rgba(0,210,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.contact-note p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.6;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.form-group label {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.form-group input,
.form-group textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.94rem;
  transition: var(--transition);
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

.form-status {
  font-size: 0.88rem;
  min-height: 20px;
}
.form-status.success { color: var(--green); }
.form-status.error   { color: #f87171; }

/* ==============================================
   FOOTER
   ============================================== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 14px;
  line-height: 1.75;
}
.footer-nav h4,
.footer-legal h4,
.footer-partners h4 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-nav ul,
.footer-legal ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a,
.footer-legal a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.footer-nav a:hover,
.footer-legal a:hover { color: var(--cyan); }
.footer-partners p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }
.footer-made { font-style: italic; }

.footer-easter {
  margin-top: 14px;
  font-size: 0.7rem;
  color: var(--text-muted);
  opacity: 0.35;
  transition: opacity 0.3s;
}
.footer-easter:hover { opacity: 1; }
.footer-easter summary {
  cursor: pointer;
  list-style: none;
  color: var(--text-muted);
  user-select: none;
}
.footer-easter summary::-webkit-details-marker { display: none; }
.footer-easter[open] { opacity: 1; }
.footer-easter[open] summary { color: var(--cyan); margin-bottom: 6px; }
.footer-easter p {
  margin: 0;
  max-width: 380px;
  line-height: 1.6;
  color: var(--text-secondary);
  font-style: italic;
}
.footer-easter strong { color: var(--cyan); font-style: normal; }

/* ==============================================
   MODAL
   ============================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-xl);
  max-width: 680px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.94) translateY(16px);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 1;
}
.modal-close:hover {
  background: rgba(0,210,255,0.1);
  border-color: var(--cyan);
  color: var(--cyan);
}
.modal-content { padding: 40px; }

/* Estilos dentro del modal */
.modal-section { margin-bottom: 20px; }
.modal-section h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.modal-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.modal-features li {
  color: var(--text-secondary);
  font-size: 0.94rem;
  padding-left: 22px;
  position: relative;
  line-height: 1.55;
}
.modal-features li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--cyan);
}

/* ==============================================
   ANIMACIONES
   ============================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scrollLine {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50%  { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 6px var(--cyan); }
  50%       { box-shadow: 0 0 14px var(--cyan); }
}

/* Fade-in on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==============================================
   RESPONSIVE
   ============================================== */
@media (max-width: 1024px) {
  .about-grid      { grid-template-columns: 1fr; gap: 52px; }
  .donations-inner { grid-template-columns: 1fr; gap: 52px; }
  .contact-grid    { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid     { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }

  /* Menú móvil */
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(300px, 84vw);
    background: rgba(7, 11, 22, 0.98);
    flex-direction: column;
    padding: 84px 28px 32px;
    border-left: 1px solid var(--border);
    gap: 24px;
    z-index: 800;
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1rem; }
  .nav-cta-item { margin-left: 0; }
  .nav-cta-btn { width: 100%; justify-content: center; text-align: center; padding: 10px 18px; border-radius: 12px; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 0;
    font-size: 1rem;
  }
  .nav-submenu {
    position: static;
    display: none;
    min-width: 0;
    margin-top: 8px;
    margin-left: 8px;
    padding: 0 0 0 12px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }
  .nav-dropdown.open .nav-submenu,
  .nav-dropdown:hover .nav-submenu,
  .nav-dropdown:focus-within .nav-submenu {
    display: flex;
  }
  .nav-submenu a {
    padding: 6px 0;
    white-space: normal;
  }

  .cookie-banner {
    width: calc(100vw - 20px);
    bottom: 10px;
    padding: 16px;
    border-radius: 16px;
  }
  .cookie-banner__content {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-banner__actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .hero-title      { letter-spacing: -0.8px; }
  .hero-stats      { gap: 20px; padding: 14px 24px; }
  .stat-value      { font-size: 1.5rem; }

  .about-cards     { grid-template-columns: 1fr; }
  .projects-grid   { grid-template-columns: 1fr; }
  .footer-grid     { grid-template-columns: 1fr; gap: 32px; }

  .modal-content   { padding: 28px 24px; }

  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
  }

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

  .assistant-widget {
    right: 12px;
    bottom: 12px;
    gap: 10px;
  }

  .assistant-fab {
    width: 58px;
    height: 58px;
  }

  .assistant-panel {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 92px);
    border-radius: 24px;
  }

  .assistant-panel__header,
  .assistant-panel__suggestions,
  .assistant-panel__messages,
  .assistant-panel__form,
  .assistant-panel__footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .assistant-panel__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .assistant-panel__secondary,
  .assistant-panel__actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-cta        { flex-direction: column; align-items: stretch; }
  .hero-cta .btn   { justify-content: center; }
  .hero-stats      { flex-direction: column; gap: 14px; }
  .stat-divider    { width: 40px; height: 1px; }
  .project-actions { flex-direction: column; }
  .project-actions .btn { justify-content: center; }
}
