/*
  Watlas Dynamics — Futuristic, elegant single-page concept
  Color system: cool blues/purples/gray with electric-teal accent
*/

:root {
  --bg-900: #070a14;
  --bg-800: #0b1020;
  --bg-700: #111731;
  --text-100: #e8eefc;
  --text-300: #aeb8d6;
  --muted-400: #8a94b8;
  --primary-300: #7aa7ff;
  --primary-400: #5b86ff;
  --primary-600: #3a52b1;
  --accent-300: #49e1d9;
  --accent-400: #2fd0c7; /* electric teal */
  --accent-color: #2fd0c7; /* electric teal */
  --accent-hover: #49e1d9;
  --surface-800: #0f142b;
  --surface-700: #131a36;
  --ring: 0 0 0 3px rgba(79, 209, 199, 0.35);

  --container-w: 1200px;
  --header-h: 64px; /* default, JS actualiza dinámicamente */
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  background: linear-gradient(180deg, #05070e, #0b0f1e 50%, #05070e);
  color: var(--text-100);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
  overflow-x: hidden;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: -999px;
}
.skip-link:focus {
  left: 16px; top: 16px; z-index: 9999;
  background: var(--surface-700);
  color: var(--text-100);
  padding: 8px 12px; border-radius: 8px;
}

.container {
  width: min(100% - 2rem, var(--container-w));
  margin-inline: auto;
}

h1, h2, h3, h4 { font-family: "Exo 2", Inter, system-ui, sans-serif; letter-spacing: 0.2px; }
h1 { font-size: clamp(2rem, 3.5vw + 1rem, 3.25rem); line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 1.25vw + 1rem, 2rem); }
h3 { font-size: clamp(1.1rem, 0.8vw + 0.9rem, 1.35rem); }
h4 { font-size: 1.05rem; }
p { color: var(--text-100); opacity: 0.94; }
.muted { color: var(--text-300); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: transparent; backdrop-filter: blur(10px) saturate(130%); -webkit-backdrop-filter: blur(10px) saturate(130%); border-bottom: 1px solid rgba(255,255,255,0.04); isolation: isolate; }
.site-header::before { content: ""; position: absolute; inset: 0; background: transparent; pointer-events: none; z-index: 0; }
.header-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text-100); }
.logo-img { width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3)); }
.logo-text { font-weight: 600; opacity: 0.95; }

.site-nav { position: relative; }
.nav-toggle { display: none; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 18px; margin: 0; padding: 0; }
.nav-list a { color: var(--text-100); text-decoration: none; opacity: 0.9; padding: 8px 10px; border-radius: 8px; transition: 160ms ease opacity, 200ms ease background; }
.nav-list a:hover { opacity: 1; background: rgba(255,255,255,0.06); }
.nav-list .cta-link { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); }

.lang-toggle { padding: 8px 10px; border-radius: 8px; border: none; background: transparent; color: var(--text-100); display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.lang-toggle:hover { background: rgba(255,255,255,0.06); }

/* Hero */
.hero { position: relative; min-height: 100vh; display: grid; place-items: center; overflow: hidden; margin-top: calc(-1 * var(--header-h)); padding-top: var(--header-h); }
#hero-canvas { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; }
.hero-inner { position: relative; z-index: 1; padding: 80px 0; }
.headline { margin: 0 0 10px; text-shadow: 0 2px 16px rgba(47, 208, 199, 0.08); }
.subheadline { margin: 0 0 26px; color: var(--text-300); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-glow { position: absolute; inset: -12% 0 auto 0; height: 72vh; background: radial-gradient(closest-side at 50% 10%, rgba(255,255,255,0.22), transparent 72%); filter: blur(30px); opacity: 0.9; pointer-events: none; }
/* Soft fade at bottom of hero to ensure seamless transition while keeping connections visible */
.hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px; height: min(28vh, 260px);
  background: linear-gradient(to bottom,
    rgba(5,7,14,0.00) 0%,
    rgba(5,7,14,0.06) 35%,
    rgba(11,15,30,0.14) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.btn { --btn-bg: rgba(255,255,255,0.06); --btn-brd: rgba(255,255,255,0.12);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; color: var(--text-100); text-decoration: none; border-radius: 12px; border: 1px solid var(--btn-brd); background: var(--btn-bg); transition: 180ms ease background, 180ms ease transform, 180ms ease border-color; }
.btn:hover { transform: translateY(-1px); }
.btn-accent { --btn-bg: linear-gradient(90deg, rgba(255,255,255,0.18), rgba(255,255,255,0.1)); --btn-brd: rgba(255,255,255,0.35); box-shadow: 0 6px 24px rgba(255,255,255,0.12), inset 0 0 0 1px rgba(255,255,255,0.05); }
.btn-ghost { --btn-bg: rgba(255, 255, 255, 0.047); }
.hero .btn-ghost[href="#services"] {
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  background: linear-gradient(120deg, rgba(255,255,255,0.18), rgba(255,255,255,0.1)), rgba(255, 255, 255, 0.008);
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 6px 24px rgba(15, 20, 40, 0.35), inset 0 0 0 1px rgba(255,255,255,0.04);
}
.hero .btn-ghost[href="#services"]:hover {
  background: linear-gradient(120deg, rgba(255,255,255,0.26), rgba(255,255,255,0.18)), rgba(255,255,255,0.12);
}
.btn-outline { --btn-bg: rgba(255,255,255,0.02); --btn-brd: rgba(91,134,255,0.35); }

/* Sections */
.section { padding: clamp(64px, 9vw, 110px) 0; position: relative; }
.section-header { text-align: center; margin-bottom: 24px; }
.section-kicker { color: var(--muted-400); margin-top: 6px; }

/* Services */
.services { position: relative; }
.services::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -14vh; height: 28vh;
  background: linear-gradient(to bottom,
    rgba(11,15,30,0.16) 0%,
    rgba(5,7,14,0.08) 55%,
    rgba(5,7,14,0.00) 100%
  );
  pointer-events: none;
  z-index: 0;
}
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 24px; position: relative; z-index: 1; }
.service-card { background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 18px; box-shadow: 0 10px 30px rgba(0,0,0,0.25), inset 0 0 0 1px rgba(255,255,255,0.02); backdrop-filter: blur(6px); }
.service-card h3 { margin: 10px 0 6px; display: flex; align-items: center; gap: 8px; }
.service-card p { margin: 0; color: var(--text-300); }
.badge { font-size: 0.75rem; font-weight: 600; color: #fff; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); padding: 2px 8px; border-radius: 999px; }
.service-icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 12px; background: radial-gradient(closest-side, rgba(255,255,255,0.12), rgba(255,255,255,0.02)); border: 1px solid rgba(255,255,255,0.18); box-shadow: inset 0 0 24px rgba(255,255,255,0.12); }
.icon-svg { width: 36px; height: 36px; }

.services-mesh { pointer-events: none; position: absolute; inset: 10% 0 0 0; height: 70%; background:
  radial-gradient(300px 160px at 18% 12%, rgba(47,208,199,0.12), transparent 70%),
  radial-gradient(240px 160px at 64% 34%, rgba(91,134,255,0.11), transparent 70%),
  radial-gradient(260px 200px at 82% 78%, rgba(47,208,199,0.08), transparent 70%);
  mask-image: radial-gradient(80% 80% at 50% 50%, #000 60%, transparent 100%);
}

/* About */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 34px; }
.holo-frame { position: relative; padding: 14px; border-radius: 18px; background: linear-gradient(180deg, rgba(47,208,199,0.1), rgba(91,134,255,0.06)); border: 1px solid rgba(255,255,255,0.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05), 0 10px 30px rgba(0,0,0,0.25); }
.image-placeholder { height: 260px; border-radius: 12px; background: linear-gradient(120deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)); display: grid; place-items: center; color: var(--text-300); letter-spacing: 0.4px; }

/* MVV */
.mv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-bottom: 16px; }
.mv-card { background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 18px; }
.values-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.value-card { background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 16px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 28px; align-items: start; }
.contact-info { list-style: none; padding: 0; margin: 12px 0 0; color: var(--text-300); }
.contact-info li { margin: 6px 0; }
.contact-form { background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02)); border: 1px solid rgba(255,255,255,0.08); border-radius: 18px; padding: 18px; }

.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.form-row:nth-child(3) { grid-template-columns: 1fr; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { color: var(--text-100); font-weight: 500; }
.form-field input, .form-field textarea { color: var(--text-100); background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; padding: 10px 12px; outline: none; transition: 160ms ease border-color, 160ms ease box-shadow, 160ms ease background; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--accent-400); box-shadow: var(--ring); }
.field-hint { font-size: 0.8rem; color: var(--muted-400); min-height: 1em; }
.form-actions { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.form-status { font-size: 0.9rem; color: var(--text-300); }

/* Footer */
.site-footer { padding: 24px 0; border-top: 1px solid rgba(255,255,255,0.06); background: rgba(7,10,20,0.7); }
.footer-inner { 
  display: flex; 
  flex-direction: column;
  align-items: center; 
  justify-content: center; 
  color: var(--text-300);
  text-align: center;
}
.footer-inner > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links {
  margin-top: 1rem;
  font-size: 0.85rem;
}

.footer-links a {
  color: #888;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity 500ms ease, transform 500ms ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1060px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex !important; flex-direction: column; justify-content: center; align-items: center; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); cursor: pointer; padding: 0.5rem; z-index: 1001; width: 40px; height: 40px; position: relative; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); border-radius: 4px; }
  
  .hamburger-line {
    width: 25px;
    height: 3px;
    background: #2fd0c7;
    margin: 3px 0;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    display: block;
  }

  /* Hamburger animation when active */
  .nav-toggle[aria-expanded="true"] {
    animation: pulseGlow 0.6s ease-in-out;
    box-shadow: 0 0 20px rgba(47, 208, 199, 0.5);
  }

  .nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background: var(--accent-hover);
  }

  .nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background: var(--accent-hover);
  }

  @keyframes pulseGlow {
    0% {
      box-shadow: 0 0 0 rgba(47, 208, 199, 0.7);
    }
    50% {
      box-shadow: 0 0 25px rgba(47, 208, 199, 0.8);
    }
    100% {
      box-shadow: 0 0 20px rgba(47, 208, 199, 0.5);
    }
  }

  /* Hover effects */
  .nav-toggle:hover .hamburger-line {
    background: var(--accent-hover);
    transform: scale(1.1);
  }

  .nav-toggle:hover .hamburger-line:nth-child(1) {
    transform: translateY(-2px);
  }

  .nav-toggle:hover .hamburger-line:nth-child(3) {
    transform: translateY(2px);
  }

  /* Mobile menu overlay */
  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(0, 0, 0);
    opacity: 0;
    visibility: hidden;<
    transition: all 0.3s ease;
    z-index: 998;
  }

  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  
  .nav-list { 
    position: absolute; 
    right: 0; 
    top: calc(100% + 8px); 
    background: linear-gradient(135deg, #000 0%, #1a1a2e 50%, #16213e 100%); 
    border: 1px solid rgba(47, 208, 199, 0.3); 
    border-radius: 20px; 
    padding: 20px; 
    display: none; 
    flex-direction: column; 
    align-items: stretch; 
    width: max(200px, 55vw); 
    box-shadow: 
      0 20px 40px rgba(0,0,0,0.9),
      0 0 0 1px rgba(47, 208, 199, 0.1),
      inset 0 1px 0 rgba(255,255,255,0.1); 
    transform: translateX(100%) translateY(-20px) scale(0.8) rotateY(15deg); 
    opacity: 0; 
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    transform-origin: top right;
    z-index: 999;
    backdrop-filter: blur(20px);
  }
  .nav-list.active { 
    display: flex; 
    opacity: 1; 
    transform: translateX(0) translateY(0) scale(1) rotateY(0deg); 
    animation: menuSlideIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }

  @keyframes menuSlideIn {
    0% {
      transform: translateX(100%) translateY(-20px) scale(0.8) rotateY(15deg);
      opacity: 0;
    }
    50% {
      transform: translateX(-5%) translateY(-10px) scale(1.05) rotateY(-5deg);
      opacity: 0.8;
    }
    100% {
      transform: translateX(0) translateY(0) scale(1) rotateY(0deg);
      opacity: 1;
    }
  }
  .nav-list a { 
    padding: 12px 16px; 
    font-size: 0.95rem; 
    opacity: 0;
    transform: translateX(30px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
  }
  
  .nav-list a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(47, 208, 199, 0.1), transparent);
    transition: left 0.5s ease;
  }
  
  .nav-list a:hover::before {
    left: 100%;
  }
  
  .nav-list.active a {
    opacity: 1;
    transform: translateX(0) scale(1);
    animation: itemSlideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  }
  
  .nav-list.active a:nth-child(1) { animation-delay: 0.1s; }
  .nav-list.active a:nth-child(2) { animation-delay: 0.2s; }
  .nav-list.active a:nth-child(3) { animation-delay: 0.3s; }
  .nav-list.active a:nth-child(4) { animation-delay: 0.4s; }
  .nav-list.active a:nth-child(5) { animation-delay: 0.5s; }
  
  @keyframes itemSlideIn {
    0% {
      opacity: 0;
      transform: translateX(30px) scale(0.9) rotateX(90deg);
    }
    50% {
      opacity: 0.7;
      transform: translateX(-5px) scale(1.02) rotateX(-10deg);
    }
    100% {
      opacity: 1;
      transform: translateX(0) scale(1) rotateX(0deg);
    }
  }
  .lang-item { order: 99; display: flex; }
  .lang-item .lang-toggle { width: 100%; justify-content: center; padding: 6px 12px; font-size: 0.85rem; }
  
  .nav-list .btn-login-nav {
    padding: 10px 16px;
    font-size: 0.9rem;
    margin: 6px 0;
    opacity: 0;
    transform: translateX(30px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(47, 208, 199, 0.1), rgba(47, 208, 199, 0.05));
    border: 1px solid rgba(47, 208, 199, 0.3);
    position: relative;
    overflow: hidden;
  }
  
  .nav-list .cta-link {
    padding: 10px 16px;
    font-size: 0.9rem;
    margin: 6px 0;
    opacity: 0;
    transform: translateX(30px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(47, 208, 199, 0.2), rgba(47, 208, 199, 0.1));
    border: 1px solid rgba(47, 208, 199, 0.4);
    position: relative;
    overflow: hidden;
  }
  
  .nav-list .lang-toggle {
    padding: 10px 16px;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateX(30px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(47, 208, 199, 0.1), rgba(47, 208, 199, 0.05));
    border: 1px solid rgba(47, 208, 199, 0.3);
    position: relative;
    overflow: hidden;
  }
  
  .nav-list.active .btn-login-nav,
  .nav-list.active .cta-link,
  .nav-list.active .lang-toggle {
    opacity: 1;
    transform: translateX(0) scale(1);
    animation: buttonSlideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  }
  
  .nav-list.active .btn-login-nav { animation-delay: 0.6s; }
  .nav-list.active .cta-link { animation-delay: 0.7s; }
  .nav-list.active .lang-toggle { animation-delay: 0.8s; }
  
  @keyframes buttonSlideIn {
    0% {
      opacity: 0;
      transform: translateX(30px) scale(0.9) rotateZ(-10deg);
    }
    50% {
      opacity: 0.8;
      transform: translateX(-3px) scale(1.02) rotateZ(2deg);
    }
    100% {
      opacity: 1;
      transform: translateX(0) scale(1) rotateZ(0deg);
    }
  }

  .services-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ===== CRM STYLES ===== */

/* Login Button in Navigation */
.btn-login-nav {
  background: linear-gradient(135deg, var(--accent-400), var(--primary-400));
  color: var(--bg-900);
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-login-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 209, 199, 0.3);
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  backdrop-filter: blur(4px);
}

.modal-content {
  background: var(--surface-800);
  border-radius: 16px;
  padding: 0;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--surface-700);
}

.login-modal {
  max-width: 400px;
}

.client-modal {
  max-width: 600px;
}

.modal-header {
  padding: 24px 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--surface-700);
  margin-bottom: 24px;
}

.modal-header h2 {
  margin: 0;
  color: var(--text-100);
  font-size: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-300);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.close-btn:hover {
  color: var(--text-100);
  background: var(--surface-700);
}

/* Login Form */
.login-form {
  padding: 0 24px 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-100);
  font-weight: 500;
  font-size: 0.9rem;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  background: var(--surface-700);
  border: 1px solid var(--surface-600, #1a2342);
  border-radius: 8px;
  color: var(--text-100);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent-400);
  box-shadow: 0 0 0 3px rgba(79, 209, 199, 0.1);
}

.error-message {
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  padding: 12px;
  border-radius: 8px;
  margin-top: 16px;
  border: 1px solid rgba(239, 68, 68, 0.2);
  font-size: 0.9rem;
}

/* CRM Dashboard */
.crm-dashboard {
  min-height: 100vh;
  background: linear-gradient(180deg, #05070e, #0b0f1e 50%, #05070e);
}

.crm-header {
  background: var(--surface-800);
  border-bottom: 1px solid var(--surface-700);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.crm-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.crm-header-left h1 {
  margin: 0;
  color: var(--text-100);
  font-size: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
}

.crm-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-info {
  color: var(--text-300);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-logout {
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-logout:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
}

.crm-content {
  padding: 24px;
  max-width: 1400px;
  margin: 0 auto;
}

/* CRM Stats */
.crm-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.crm-stats .stat-card {
  background: var(--surface-800);
  border: 1px solid var(--surface-700);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
}

.crm-stats .stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.crm-stats .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-100);
}

.crm-stats .stat-icon.pending {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.crm-stats .stat-icon.overdue {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.crm-stats .stat-icon:not(.pending):not(.overdue) {
  background: linear-gradient(135deg, var(--accent-400), var(--primary-400));
}

.crm-stats .stat-info h3 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-100);
}

.crm-stats .stat-info p {
  margin: 4px 0 0;
  color: var(--text-300);
  font-size: 0.9rem;
}

/* CRM Actions */
.crm-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  flex: 1;
  max-width: 400px;
}

.search-box input {
  width: 100%;
  padding: 12px 16px 12px 40px;
  background: var(--surface-700);
  border: 1px solid var(--surface-600, #1a2342);
  border-radius: 8px;
  color: var(--text-100);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.search-box input:focus {
  outline: none;
  border-color: var(--accent-400);
  box-shadow: 0 0 0 3px rgba(79, 209, 199, 0.1);
}

.search-box i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-300);
}

/* Clients Table */
.clients-table-container {
  background: var(--surface-800);
  border-radius: 12px;
  border: 1px solid var(--surface-700);
  overflow: hidden;
}

.clients-table {
  width: 100%;
  border-collapse: collapse;
}

.clients-table th {
  background: var(--surface-700);
  color: var(--text-100);
  font-weight: 600;
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--surface-600, #1a2342);
  font-size: 0.9rem;
}

.clients-table td {
  padding: 16px;
  border-bottom: 1px solid var(--surface-600, #1a2342);
  color: var(--text-100);
}

.client-row:hover {
  background: var(--surface-700);
}

.status-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.pending {
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-badge.overdue {
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-badge.paid {
  background: rgba(34, 197, 94, 0.1);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.actions {
  display: flex;
  gap: 8px;
}

.actions button {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 0.8rem;
}

.btn-paid {
  background: rgba(34, 197, 94, 0.1);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.btn-paid:hover {
  background: rgba(34, 197, 94, 0.2);
  transform: scale(1.1);
  color: #22c55e;
}

.btn-remind {
  background: rgba(37, 211, 102, 0.1);
  color: #25d366;
  border: 1px solid rgba(37, 211, 102, 0.3);
}

.btn-remind:hover {
  background: rgba(37, 211, 102, 0.2);
  transform: scale(1.1);
  color: #20c55a;
}

.btn-edit {
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.btn-edit:hover {
  background: rgba(59, 130, 246, 0.2);
  transform: scale(1.1);
  color: #3b82f6;
}

.btn-delete {
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-delete:hover {
  background: rgba(239, 68, 68, 0.2);
  transform: scale(1.1);
  color: #ef4444;
}

/* Client Form */
.client-form {
  padding: 0 24px 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--surface-700);
}

.modal-actions .btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary {
  background: var(--surface-700);
  color: var(--text-100);
  border: 1px solid var(--surface-600, #1a2342);
}

.btn-secondary:hover {
  background: var(--surface-600, #1a2342);
}

/* CRM Responsive */
@media (max-width: 768px) {
  .crm-header {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .crm-header-right {
    width: 100%;
    justify-content: space-between;
  }

  .crm-stats {
    grid-template-columns: 1fr;
  }

  .crm-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box {
    max-width: none;
  }

  .clients-table-container {
    overflow-x: auto;
  }

  .clients-table {
    min-width: 600px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .modal-actions {
    flex-direction: column;
  }
}

/* Mobile Navigation - Hamburger Menu */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    width: 40px;
    height: 40px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--accent-color);
    margin: 3px 0;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
  }

  /* Hamburger animation when active */
  .nav-toggle[aria-expanded="true"] {
    animation: pulseGlow 0.6s ease-in-out;
    box-shadow: 0 0 20px rgba(47, 208, 199, 0.5);
  }

  .nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background: var(--accent-hover);
  }

  .nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background: var(--accent-hover);
  }

  @keyframes pulseGlow {
    0% {
      box-shadow: 0 0 0 rgba(47, 208, 199, 0.7);
    }
    50% {
      box-shadow: 0 0 25px rgba(47, 208, 199, 0.8);
    }
    100% {
      box-shadow: 0 0 20px rgba(47, 208, 199, 0.5);
    }
  }

  /* Hover effects */
  .nav-toggle:hover .hamburger-line {
    background: var(--accent-hover);
    transform: scale(1.1);
  }

  .nav-toggle:hover .hamburger-line:nth-child(1) {
    transform: translateY(-2px);
  }

  .nav-toggle:hover .hamburger-line:nth-child(3) {
    transform: translateY(2px);
  }

  /* Overlay */
  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    backdrop-filter: blur(5px);
  }

  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a1a2e 100%);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    padding: 0;
    margin: 0;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-list.active {
    right: 0;
  }

  .nav-list li {
    margin: 0;
    opacity: 0;
    transform: translateX(50px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    text-align: center;
  }

  .nav-list.active li {
    opacity: 1;
    transform: translateX(0) scale(1);
  }

  .nav-list.active li:nth-child(1) { transition-delay: 0.1s; }
  .nav-list.active li:nth-child(2) { transition-delay: 0.15s; }
  .nav-list.active li:nth-child(3) { transition-delay: 0.2s; }
  .nav-list.active li:nth-child(4) { transition-delay: 0.25s; }
  .nav-list.active li:nth-child(5) { transition-delay: 0.3s; }
  .nav-list.active li:nth-child(6) { transition-delay: 0.35s; }
  .nav-list.active li:nth-child(7) { transition-delay: 0.4s; }
  .nav-list.active li:nth-child(8) { transition-delay: 0.45s; }

  .nav-list li a,
  .nav-list li button {
    display: block;
    padding: 1.5rem 2rem;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-light);
    text-decoration: none;
    border: none;
    background: none;
    width: 100%;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
  }

  .nav-list li a::before,
  .nav-list li button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
  }

  .nav-list li a:hover::before,
  .nav-list li button:hover::before {
    left: 100%;
  }

  .nav-list li a:hover,
  .nav-list li button:hover {
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(10px);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  }

  .nav-list li .cta-link {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: white !important;
    border-radius: 25px;
    margin: 1rem 2rem;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
  }

  .nav-list li .cta-link:hover {
    transform: translateX(10px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
  }

  .nav-list li .btn-login-nav {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--accent-color);
    border-radius: 25px;
    margin: 1rem 2rem;
    color: var(--accent-color) !important;
  }

  .nav-list li .btn-login-nav:hover {
    background: var(--accent-color);
    color: white !important;
    transform: translateX(10px) scale(1.05);
  }

  .lang-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    margin: 1rem 2rem;
  }

  .lang-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(10px) scale(1.05);
  }

  /* Close menu when clicking outside */
  .nav-list.active::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: calc(100vw - 320px);
    height: 100vh;
    background: transparent;
    z-index: -1;
  }
}

/* Clients Carousel */
.clients-carousel-section.section {
  padding: 30px 0 !important;
  background: #e5e5e5;
  position: relative;
  overflow: hidden;
}

.clients-carousel-header {
  text-align: center;
  margin-bottom: 1rem;
}

.clients-carousel-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #1a1a1a;
  font-weight: 600;
  margin: 0;
}

.clients-carousel-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 1rem 0;
}

.clients-carousel-wrapper::before,
.clients-carousel-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 150px;
  z-index: 2;
  pointer-events: none;
}

.clients-carousel-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #e5e5e5, transparent);
}

.clients-carousel-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #e5e5e5, transparent);
}

.clients-carousel-track {
  display: flex;
  gap: 4rem;
  animation: scroll-clients 30s linear infinite;
  will-change: transform;
}

.clients-carousel-item {
  flex-shrink: 0;
  width: 100px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.clients-carousel-item:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.clients-carousel-item img {
  width: 80px !important;
  height: 50px !important;
  max-width: 80px !important;
  max-height: 50px !important;
  min-width: 80px !important;
  min-height: 50px !important;
  object-fit: contain;
  object-position: center;
}

@keyframes scroll-clients {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-100px * 5 - 4rem * 5));
  }
}

@media (max-width: 768px) {
  .clients-carousel-item {
    width: 100px;
    height: 70px;
    padding: 0.5rem;
  }

  .clients-carousel-item img {
    width: 80px !important;
    height: 50px !important;
    max-width: 80px !important;
    max-height: 50px !important;
  }

  .clients-carousel-track {
    gap: 2.5rem;
  }

  @keyframes scroll-clients {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-100px * 5 - 2.5rem * 5));
    }
  }
}

@media (max-width: 480px) {
  .clients-carousel-item {
    width: 80px;
    height: 60px;
    padding: 0.4rem;
  }

  .clients-carousel-item img {
    width: 60px !important;
    height: 45px !important;
    max-width: 60px !important;
    max-height: 45px !important;
  }

  .clients-carousel-track {
    gap: 2rem;
  }

  @keyframes scroll-clients {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-80px * 5 - 2rem * 5));
    }
  }
}


