/* =========================================
   ENTERPRISE IoT SaaS - Premium Design System
   ========================================= */

:root {
  /* Enterprise Dark Palette - Sophisticated & Modern */
  --bg: #0a0f1c;
  --bg-surface: #111827;
  --bg-elevated: #1f2937;
  --bg-card: linear-gradient(145deg, rgba(31, 41, 55, 0.8), rgba(17, 24, 39, 0.9));

  --text-main: #f9fafb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  /* Premium Blue Palette */
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --primary-light: rgba(59, 130, 246, 0.15);
  --primary-glow: rgba(59, 130, 246, 0.4);

  /* Accent Colors */
  --accent: #06b6d4;
  --accent-light: rgba(6, 182, 212, 0.15);
  --success: #10b981;
  --warning: #f59e0b;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #3b82f6, #06b6d4);
  --gradient-surface: linear-gradient(180deg, rgba(31, 41, 55, 0.5), rgba(17, 24, 39, 0.8));
  --gradient-glow: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.15), transparent 70%);
  --gradient-hero: linear-gradient(135deg, #0a0f1c 0%, #111827 50%, #0f172a 100%);

  /* Borders & Lines */
  --line: rgba(255, 255, 255, 0.08);
  --line-light: rgba(255, 255, 255, 0.04);
  --border-glow: 1px solid rgba(59, 130, 246, 0.3);

  /* Premium Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
  --shadow-2xl: 0 24px 64px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.3);
  --shadow-glow-sm: 0 0 20px rgba(59, 130, 246, 0.2);

  /* Glass Effect */
  --glass-bg: rgba(17, 24, 39, 0.85);
  --glass-border: rgba(255, 255, 255, 0.1);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Layout */
  --max-width: 1280px;
  --nav-height: 80px;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* =========================================
   BASE STYLES
   ========================================= */

* {
  box-sizing: border-box;
  outline-color: var(--primary);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--gradient-hero);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.7;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* =========================================
   TYPOGRAPHY
   ========================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 1rem;
  color: var(--text-main);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #3b82f6 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 80px rgba(59, 130, 246, 0.5);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 1.25rem;
  position: relative;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-main);
}

p {
  margin: 0 0 1.5rem;
  color: var(--text-secondary);
  font-size: 1.125rem;
  line-height: 1.8;
}

/* =========================================
   NAVIGATION - Glassmorphism Premium
   ========================================= */

.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  padding: 24px 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(59, 130, 246, 0.05) 50%,
      transparent 100%);
  pointer-events: none;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-main);
  letter-spacing: -0.02em;
  position: relative;
}

.brand:hover .brand-badge {
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--shadow-glow);
}

.brand-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--gradient-primary);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.brand-badge::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  background: var(--gradient-primary);
  opacity: 0.3;
  filter: blur(8px);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-text span {
  font-size: 0.7em;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--text-secondary);
  position: relative;
  padding: 10px 16px;
  background: none !important;
  border: none !important;
  border-radius: 0;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #ffffff;
  background: none !important;
}

.nav-links a.active {
  color: #ffffff;
  background: none !important;
  font-weight: 700;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 4px;
  width: 4px;
  border-radius: 50%;
  background: transparent;
  transition: all 0.3s ease;
  box-shadow: none;
}

.nav-links a:hover::after {
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.nav-links a.active::after {
  background: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.6), 0 0 20px rgba(59, 130, 246, 0.4);
}

.nav-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.mobile-menu-btn {
  display: none;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--text-main);
  padding: 10px;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
  background: rgba(59, 130, 246, 0.2);
}

/* =========================================
   BUTTONS - Premium Enterprise Style
   ========================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.btn:hover::before {
  transform: translateX(100%);
}

.btn:active {
  transform: translateY(1px);
}

.btn.primary {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: white;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
  border: none;
  border-radius: 8px;
}

.btn.primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.45);
  transform: translateY(-2px);
}

.btn:not(.primary):not(.ghost) {
  background: var(--bg-elevated);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  border-radius: 8px;
}

.btn:not(.primary):not(.ghost):hover {
  background: var(--bg-surface);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-secondary);
  box-shadow: none;
}

.btn.ghost:hover {
  color: var(--primary);
  background: var(--primary-light);
  transform: none;
  box-shadow: none;
}

.btn.small {
  height: 48px;
  padding: 0 24px;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* =========================================
   HERO SECTION - Immersive Enterprise
   ========================================= */

.hero {
  padding: 140px 0 120px;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

/* Animated Background Elements */
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 80%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.12), transparent 60%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 60%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(6, 182, 212, 0.1), transparent 60%);
  animation: heroGlow 10s ease-in-out infinite alternate-reverse;
}

@keyframes heroGlow {
  0% {
    opacity: 0.5;
    transform: scale(1);
  }

  100% {
    opacity: 1;
    transform: scale(1.1);
  }
}

/* Grid Pattern Overlay */
.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--accent-light);
  border: 1px solid rgba(6, 182, 212, 0.3);
  width: fit-content;
  padding: 10px 20px;
  border-radius: 50px;
  backdrop-filter: blur(10px);
}

.kicker::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.7;
    transform: scale(1.2);
  }
}

.hero-desc {
  font-size: 1.25rem !important;
  color: var(--text-secondary) !important;
  max-width: 540px;
  line-height: 1.8 !important;
}

.hero-cta {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  border: 1px solid var(--glass-border);
  position: relative;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--bg-card);
}

.hero-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), transparent);
  z-index: 1;
  pointer-events: none;
}

.hero-img:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-2xl), 0 0 60px rgba(59, 130, 246, 0.3);
}

.hero-img img {
  transition: transform 0.6s ease;
}

.hero-img:hover img {
  transform: scale(1.05);
}

/* =========================================
   SECTIONS
   ========================================= */

section {
  padding: 120px 0;
  position: relative;
}

.bg-surface {
  background: var(--bg-surface);
}

section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.section-header {
  margin-bottom: 80px;
  max-width: 700px;
}

.section-header.text-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.section-header p {
  font-size: 1.2rem;
}

/* =========================================
   CARDS - Premium Glass Effect
   ========================================= */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.align-center {
  align-items: center;
}

.card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 40px;
  border-color: rgba(59, 130, 246, 0.3);
}

.card:hover::before,
.card:hover::after {
  opacity: 1;
}

.card h3 {
  margin-bottom: 16px;
  color: var(--text-main);
  font-size: 1.35rem;
  position: relative;
  z-index: 1;
}

.card p {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
}

.card-image {
  padding: 0;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.card-image:hover img {
  transform: scale(1.1);
}

.card-body {
  padding: 28px;
  position: relative;
  z-index: 1;
}

/* Feature Icons */
.feature-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: var(--primary-light);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  font-size: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}

.card:hover .feature-icon {
  background: var(--gradient-primary);
  color: white;
  transform: scale(1.15) rotate(-5deg);
  box-shadow: var(--shadow-glow-sm);
  border-color: transparent;
}

/* =========================================
   GALLERY
   ========================================= */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  cursor: zoom-in;
  aspect-ratio: 16/10;
  box-shadow: var(--shadow-md);
  transition: all 0.4s ease;
}

.gallery-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), transparent);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover::before {
  opacity: 1;
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl), var(--shadow-glow-sm);
  border-color: rgba(59, 130, 246, 0.4);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(10, 15, 28, 0.95), transparent);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  z-index: 2;
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

/* =========================================
   LIGHTBOX
   ========================================= */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 15, 28, 0.95);
  backdrop-filter: blur(20px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-2xl), var(--shadow-glow);
  border: 1px solid var(--glass-border);
}

.lightbox-close {
  position: absolute;
  top: -60px;
  right: 0;
  color: white;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.3);
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.8;
  transition: all 0.3s ease;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  opacity: 1;
  background: var(--primary);
  transform: rotate(90deg);
}

/* =========================================
   CTA CARD
   ========================================= */

.cta-card {
  background: var(--gradient-primary) !important;
  border: none !important;
  padding: 60px !important;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-card h2 {
  color: white !important;
  margin-bottom: 20px;
}

.cta-card p {
  color: rgba(255, 255, 255, 0.9) !important;
}

.cta-card .btn {
  background: white !important;
  color: var(--primary-dark) !important;
  border: none !important;
  box-shadow: var(--shadow-lg);
}

.cta-card .btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-xl);
}

/* =========================================
   PLATFORM TEASER
   ========================================= */

.platform-teaser {
  background: linear-gradient(135deg, var(--bg-surface), var(--bg)) !important;
  border-top: 1px solid var(--line) !important;
  border-bottom: 1px solid var(--line) !important;
}

.check-list {
  list-style: none;
  padding: 0;
}

.check-list li {
  color: var(--text-secondary);
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* =========================================
   WHATSAPP FLOAT
   ========================================= */

.wa-float {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 900;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.5);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.wa-float::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  opacity: 0.3;
  filter: blur(12px);
  z-index: -1;
}

.wa-float:hover {
  transform: scale(1.15) translateY(-5px);
  box-shadow: 0 12px 40px rgba(37, 211, 102, 0.6);
}

.wa-float svg {
  width: 36px;
  height: 36px;
  fill: currentColor;
}

/* =========================================
   FOOTER
   ========================================= */

footer {
  border-top: 1px solid var(--line);
  padding: 100px 0 40px;
  background: var(--bg);
  font-size: 0.95rem;
  color: var(--text-secondary);
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, var(--bg-surface), transparent);
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 80px;
  margin-bottom: 80px;
  position: relative;
  z-index: 1;
}

.footer-col h4 {
  margin-bottom: 24px;
  color: var(--text-main);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 16px;
}

.footer-links a {
  color: var(--text-secondary);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* =========================================
   UTILITY CLASSES
   ========================================= */

.text-center {
  text-align: center;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

/* =========================================
   ANIMATIONS
   ========================================= */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 50px;
  }

  .hero-cta {
    justify-content: center;
  }

  .kicker {
    margin: 0 auto 24px;
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-header {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 900px) {
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-xl);
    gap: 8px;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 14px;
    border-radius: var(--radius-sm);
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: var(--primary-light);
  }

  .nav-actions .btn:not(.mobile-menu-btn) {
    display: none;
  }
}

@media (max-width: 600px) {
  section {
    padding: 80px 0;
  }

  .hero {
    padding: 100px 0 80px;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .card {
    padding: 28px;
  }

  .wa-float {
    width: 60px;
    height: 60px;
    bottom: 24px;
    right: 24px;
  }

  .wa-float svg {
    width: 28px;
    height: 28px;
  }
}

/* =========================================
   RECURSOS DROPDOWN - ESTILOS COMPLETOS (CORREGIDO)
   ========================================= */

/* 1. Contenedor del Botón en el Menú */
.dropdown {
  position: relative;
  display: inline-flex;
  /* Alinea icono y texto */
  align-items: center;
  height: 100%;
  margin-left: 5px;
  cursor: pointer;
}

/* 2. El botón que dice "Recursos" */
.dropbtn {
  background-color: transparent;
  color: var(--text-secondary);
  padding: 10px 16px;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  font-weight: 500;
  font-family: var(--font-sans);
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
}

.dropbtn:hover {
  color: #ffffff;
}

/* 3. El Menú Desplegable (La caja flotante) */
.dropdown-content {
  display: none;
  /* <--- IMPORTANTE: Oculto por defecto */
  position: absolute;
  top: 100%;
  /* Aparece justo debajo */
  left: 50%;
  transform: translateX(-50%);
  /* Centrado respecto al botón */

  /* Estilo Vidrio (Glassmorphism) */
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);

  border: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 260px;
  /* Ancho mínimo para que quepa el texto */
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  border-radius: 12px;
  z-index: 2000;
  padding: 8px;
  margin-top: 15px;

  flex-direction: column;
  gap: 4px;
}

/* 4. Triángulo decorativo superior */
.dropdown-content::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: rgba(17, 24, 39, 0.95);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 5. LÓGICA MÁGICA: Mostrar al pasar el mouse */
.dropdown:hover .dropdown-content {
  display: flex;
  /* <--- Se muestra al hacer hover */
  animation: fadeInUp 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* 6. Estilo de los Enlaces (Items del menú) */
.dropdown-content a {
  display: flex !important;
  /* Forzar fila horizontal */
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
  /* Evita que el texto se parta */
}

.dropdown-content a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  transform: translateX(4px);
}

/* 7. Textos dentro del enlace */
.link-title {
  display: block;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.2;
  font-size: 0.9rem;
}

.dropdown-content a:hover .link-title {
  color: #ffffff;
}

/* 8. Cajita de los Iconos */
.nav-icon-box {
  width: 32px;
  height: 32px;
  min-width: 32px;
  /* Evita que se aplaste */
  background: rgba(59, 130, 246, 0.1);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: all 0.2s ease;
}

.nav-icon-box svg {
  width: 18px;
  height: 18px;
}

.dropdown-content a:hover .nav-icon-box {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

/* 9. Estilo YouTube (Rojo al hover) */
.yt-link:hover .nav-icon-box {
  background: #ff0000;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
}

/* 10. Animación de entrada suave */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate(-50%, 10px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}




/* =========================================
   FIX: PUENTE INVISIBLE DEL MENÚ
   ========================================= */
.dropdown-content::after {
  content: '';
  position: absolute;
  /* Sube para cubrir el hueco de 15px entre el botón y el menú */
  top: -20px;
  left: 0;
  width: 100%;
  height: 20px;
  /* Altura suficiente para llenar el espacio */
  background: transparent;
  /* Es invisible, pero el mouse lo detecta */
  display: block;
  z-index: 1;
}