/* ==========================================
   agubot — Automatización Total · IA · Hardware · Redes
   ========================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #1a1a2e;
  --text-primary: #f0f0f5;
  --text-secondary: #a0a0b8;
  --accent-1: #00d4ff;
  --accent-2: #7c3aed;
  --accent-3: #06d6a0;
  --gradient-main: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  --glow: 0 0 30px rgba(0, 212, 255, 0.15);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ====== SELECTION ====== */
::selection {
  background: var(--accent-2);
  color: #fff;
}

/* ====== TYPOGRAPHY ====== */
h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.gradient-text {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-sub {
  color: var(--text-secondary);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ====== BADGE ====== */
.badge {
  display: inline-block;
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.25);
  color: var(--accent-1);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 24px;
}

/* ====== NAVBAR ====== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-img {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.35);
}

.logo span {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-main);
  transition: var(--transition);
}

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

.nav-links a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Make images fluid by default */
img { max-width: 100%; height: auto; display: block; }

@media (max-width: 767px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
}

/* ====== NAV DROPDOWN ====== */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  user-select: none;
}

.dropdown-arrow {
  font-size: 0.6rem;
  transition: transform var(--transition);
  display: inline-block;
}

.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(18, 18, 26, 0.97);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 12px;
  list-style: none;
  min-width: 220px;
  padding: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.03);
  z-index: 999;
}

.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

.nav-dropdown:not(.open) .nav-dropdown-menu {
  display: none !important;
}

.nav-dropdown-menu li a {
  display: block;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}

.nav-dropdown-menu li a::after {
  display: none;
}

.nav-dropdown-menu li a:hover {
  background: rgba(0, 212, 255, 0.08);
  color: #00d4ff;
}

/* ====== HERO ====== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-logo-img {
  display: block;
  max-width: 420px;
  width: 100%;
  margin: 0 auto 2rem;
  border-radius: 20px;
  box-shadow: 0 12px 50px rgba(0, 212, 255, 0.12), 0 4px 20px rgba(0, 0, 0, 0.4);
  opacity: 0.93;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero h1 {
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.btn {
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gradient-main);
  color: #fff;
  box-shadow: 0 4px 25px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 45px rgba(0, 212, 255, 0.45);
  filter: brightness(1.05);
}

.product-btn {
  width: 100%;
  margin-top: 18px;
  justify-content: center;
}

.product-btn:hover {
  box-shadow: 0 16px 60px rgba(0, 212, 255, 0.35);
  background: linear-gradient(135deg, #00d4ff, #7c3aed);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.btn-outline:hover {
  border-color: var(--accent-1);
  color: var(--accent-1);
  transform: translateY(-3px);
}

.btn-block {
  width: 100%;
  text-align: center;
}

.btn-ghost {
  background: transparent;
  color: var(--accent-3);
  border: 2px solid var(--accent-3);
  box-shadow: 0 0 20px rgba(6, 214, 160, 0.1);
}

.btn-ghost:hover {
  background: rgba(6, 214, 160, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(6, 214, 160, 0.25);
}

.btn-crm {
  background: rgba(124, 58, 237, 0.12);
  color: #c4b5fd;
  border: 2px solid rgba(124, 58, 237, 0.45);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.2);
}

.btn-crm:hover {
  background: rgba(124, 58, 237, 0.25);
  color: #ddd6fe;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.35);
}

.nav-proyectos {
  color: var(--accent-3) !important;
  font-weight: 600 !important;
}

.nav-crm {
  color: var(--accent-2) !important;
  font-weight: 600 !important;
  background: rgba(124, 58, 237, 0.1);
  padding: 6px 16px !important;
  border-radius: 50px;
  border: 1px solid rgba(124, 58, 237, 0.25);
  transition: var(--transition) !important;
}

.nav-crm:hover {
  background: rgba(124, 58, 237, 0.2) !important;
  border-color: rgba(124, 58, 237, 0.5) !important;
}

/* ====== STATS ====== */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.8rem;
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* ====== CANVAS BG ====== */
#bgCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

/* ====== SERVICIOS ====== */
.servicios {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.servicios-grid .servicio-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
}

.servicio-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.servicio-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-main);
  opacity: 0;
  transition: var(--transition);
}

.servicio-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 212, 255, 0.15);
  box-shadow: var(--glow);
}

.servicio-card:hover::before {
  opacity: 1;
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.servicio-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ====== DOMINIOS ====== */
.dominios {
  padding: 100px 0;
}

.dominios-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}

.tag {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

.tag:hover {
  border-color: var(--accent-1);
  color: var(--accent-1);
  background: rgba(0, 212, 255, 0.06);
  transform: translateY(-2px);
}

/* ====== METODOLOGÍA ====== */
.metodologia {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.metodologia-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.step {
  text-align: center;
  padding: 32px 20px;
}

.step-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 20px;
}

.step h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ====== CASOS ====== */
.casos {
  padding: 100px 0;
}

.casos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.caso-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius);
  padding: 32px;
  transition: var(--transition);
}

.caso-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 255, 0.12);
  box-shadow: var(--glow);
}

.caso-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.caso-card h3 {
  margin-bottom: 12px;
}

.caso-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 8px;
}

.caso-card strong {
  color: var(--accent-3);
}

.caso-tag {
  display: inline-block;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.3);
  color: var(--accent-2);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 14px;
  border-radius: 50px;
  margin-top: 8px;
}

/* ====== CARRUSEL ====== */
.casos-carrusel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.casos-carrusel {
  display: flex;
  gap: 20px;
  overflow-x: hidden;
  scroll-behavior: smooth;
  flex: 1;
  padding: 8px 0;
  scrollbar-width: none;          /* Firefox */
  -ms-overflow-style: none;       /* IE/Edge */
}

.casos-carrusel::-webkit-scrollbar {
  display: none;                  /* Chrome/Safari/Opera */
}

.caso-card-carousel {
  min-width: calc(33.333% - 14px);
  max-width: calc(33.333% - 14px);
  flex-shrink: 0;
}

.carrusel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  font-size: 1.8rem;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  line-height: 1;
  z-index: 2;
}

.carrusel-btn:hover {
  background: var(--gradient-main);
  border-color: transparent;
  transform: scale(1.1);
}

.carrusel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.carrusel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border, #233a55);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.carrusel-dot.active {
  background: var(--accent-1);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.4);
  width: 28px;
  border-radius: 5px;
}

@media (max-width: 1024px) {
  .caso-card-carousel {
    min-width: calc(50% - 10px);
    max-width: calc(50% - 10px);
  }
}

@media (max-width: 640px) {
  .caso-card-carousel {
    min-width: calc(100% - 0px);
    max-width: calc(100% - 0px);
  }

  .carrusel-btn {
    width: 36px;
    height: 36px;
    font-size: 1.4rem;
  }
}

/* ====== SECCIÓN PROYECTOS ====== */
.proyectos-seccion {
  padding: 100px 0;
}

.proyectos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.proyecto-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  transition: var(--transition);
}

.proyecto-item:hover {
  border-color: rgba(0, 212, 255, 0.12);
  transform: translateX(4px);
  box-shadow: var(--glow);
}

.proy-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.proy-info h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.proy-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
}

.proyectos-cta {
  text-align: center;
}

/* ====== CONTACTO ====== */
.contacto {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.contacto-form {
  max-width: 580px;
  margin: 0 auto 40px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-secondary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23a0a0b8' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
}

.contacto-info {
  text-align: center;
  color: var(--text-secondary);
}

.contacto-info a {
  color: var(--accent-1);
  text-decoration: none;
}

.contacto-info a:hover {
  text-decoration: underline;
}

.contacto-info p {
  margin-bottom: 6px;
}

/* ====== FOOTER ====== */
.footer {
  padding: 40px 0;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-logo {
  max-width: 180px;
  height: auto;
  border-radius: 10px;
  margin: 0 auto 16px;
  display: block;
  opacity: 0.88;
  transition: opacity 0.2s;
}

.footer-logo:hover {
  opacity: 1;
}

/* ====== RESPONSIVE LOGOS ====== */
@media (max-width: 600px) {
  .hero-logo-img { max-width: 260px; }
  .footer-logo   { max-width: 140px; }
  .logo-img      { height: 34px; width: 34px; }
}

/* ====== SOBRE AGUBOT ====== */
.sobre-agubot {
  padding: 64px 0;
  background: var(--bg-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.sobre-agubot-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.sobre-agubot-inner h2 {
  margin-bottom: 20px;
}

.sobre-agubot-inner p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 16px;
}

.sobre-agubot-inner strong {
  color: var(--text-primary);
}

/* ====== FAQ ====== */
.faq-section {
  padding: 100px 0;
}

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item:hover {
  border-color: rgba(0, 212, 255, 0.2);
}

.faq-item[open] {
  border-color: rgba(0, 212, 255, 0.25);
}

.faq-item summary {
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-primary);
  transition: color var(--transition);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--accent-1);
  flex-shrink: 0;
  margin-left: 12px;
  transition: transform var(--transition);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ====== FLOATING CTA ====== */
.floating-cta {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  animation: float 3s ease-in-out infinite;
}

.floating-cta a {
  display: inline-block;
  background: var(--gradient-main);
  color: #fff;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 6px 30px rgba(0, 212, 255, 0.35);
  transition: var(--transition);
}

.floating-cta a:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 10px 45px rgba(0, 212, 255, 0.45);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ====== DEMO SECTION ====== */
.demo-section {
  padding: 100px 0;
  background: var(--bg-primary);
}

.demo-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.demo-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  grid-template-rows: auto auto;
}

.demo-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  object-fit: cover;
  transition: var(--transition);
  cursor: pointer;
  user-select: none;
}

.demo-image:hover {
  border-color: rgba(0, 212, 255, 0.25);
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.2);
  transform: translateY(-4px);
}

.demo-image:first-child {
  grid-column: 1 / -1;
  height: 300px;
}

.demo-image:nth-child(2) {
  height: 200px;
}

.demo-image:nth-child(3) {
  height: 200px;
}

.demo-cta h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 16px;
  margin-top: 0;
}

.demo-cta p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 28px;
  line-height: 1.6;
}

.btn-large {
  padding: 18px 48px;
  font-size: 1.05rem;
  font-weight: 600;
  display: inline-block;
  border-radius: var(--radius);
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-primary.btn-large {
  background: var(--gradient-main);
  color: #fff;
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.3);
}

.btn-primary.btn-large:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 48px rgba(0, 212, 255, 0.4);
}

.demo-note {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ====== LIGHTBOX ====== */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  animation: scaleIn 0.3s ease;
}

.lightbox-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: none;
  font-size: 2rem;
  width: 50px;
  height: 50px;
  cursor: pointer;
  border-radius: 50%;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    padding: 24px 0;
    gap: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }

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

  .hamburger {
    display: block;
  }

  /* Dropdown en móvil: desplegable inline */
  .nav-dropdown-menu {
    position: static;
    transform: none;
    background: rgba(255,255,255,0.04);
    border: none;
    border-radius: 8px;
    box-shadow: none;
    min-width: unset;
    width: 100%;
    padding: 4px 0;
    margin-top: 4px;
  }

  .nav-dropdown {
    width: 100%;
    text-align: center;
  }

  .nav-dropdown-toggle {
    justify-content: center;
  }

  .hero-stats {
    gap: 24px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .servicios-grid,
  .casos-grid {
    grid-template-columns: 1fr;
  }

  .demo-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .lightbox-close {
    top: -30px;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .floating-cta {
    bottom: 16px;
    right: 16px;
  }

  .floating-cta a {
    padding: 12px 20px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}
