/* ==================== VARIABLES CSS ==================== */
:root {
  /* Colores Principales - Paleta más vibrante */
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary: #8b5cf6;
  --accent: #f472b6;

  /* Colores de Estado */
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;

  /* Backgrounds */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-dark: #0f172a;
  --bg-glass: rgba(255, 255, 255, 0.8);

  /* Textos */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --text-inverse: #ffffff;

  /* Borders */
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --border-medium: #cbd5e1;
  --border-dark: #94a3b8;

  /* Shadows - Más suaves y elegantes */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 60px rgba(99, 102, 241, 0.3);
  --shadow-glow-hover: 0 0 80px rgba(99, 102, 241, 0.4);

  /* Border Radius */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-3xl: 32px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;

  /* Z-index */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-toast: 600;
}

/* ==================== RESET & BASE ==================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, sans-serif;
  color: var(--text-primary);
  background: var(--bg-secondary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

/* ==================== LANDING PAGE - HERO SECTION ==================== */
.hero-modern {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #eef2ff 100%);
  overflow: hidden;
  padding-bottom: var(--space-3xl);
}

.hero-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(
      circle at 10% 20%,
      rgba(99, 102, 241, 0.08) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(139, 92, 246, 0.08) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(244, 114, 182, 0.05) 0%,
      transparent 50%
    );
  pointer-events: none;
  animation: parallaxBg 20s ease-in-out infinite;
}

@keyframes parallaxBg {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(-10px, 10px) scale(1.02);
  }
  50% {
    transform: translate(10px, -10px) scale(1);
  }
  75% {
    transform: translate(-5px, -5px) scale(1.01);
  }
}

/* Floating particles effect */
.hero-modern::before {
  content: "";
  position: absolute;
  top: 20%;
  left: 10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  animation: floatParticle1 15s ease-in-out infinite;
  pointer-events: none;
}

.hero-modern::after {
  content: "";
  position: absolute;
  bottom: 30%;
  right: 15%;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(139, 92, 246, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  animation: floatParticle2 12s ease-in-out infinite;
  pointer-events: none;
}

@keyframes floatParticle1 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  33% {
    transform: translate(30px, -30px);
  }
  66% {
    transform: translate(-20px, 20px);
  }
}

@keyframes floatParticle2 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-40px, -20px);
  }
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  position: relative;
  z-index: 1;
}

/* ==================== NAVIGATION ==================== */
.nav-modern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: var(--z-fixed);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  transition: var(--transition-base);
}

.nav-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.brand-icon {
  display: flex;
  transition: var(--transition-base);
}

.brand-icon:hover {
  transform: translateY(-2px) rotate(5deg);
}

.brand-icon svg {
  width: 40px;
  height: 40px;
}

.brand-text {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.brand-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.brand-badge {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 0.75rem;
  cursor: pointer;
  z-index: calc(var(--z-fixed) + 1);
  position: relative;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  position: relative;
  transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
  left: 0;
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  top: 7px;
}

.mobile-menu-toggle.active .hamburger {
  background: transparent;
}

.mobile-menu-toggle.active .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}

.mobile-menu-toggle.active .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}

/* Mobile menu overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: var(--z-fixed);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
}

.btn-ghost {
  background: var(--primary);
  border: none;
  color: white;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.btn-ghost:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-primary-modern {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-base);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

/* ==================== HERO CONTENT ==================== */
.hero-content-modern {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  margin-top: 100px;
  padding-top: var(--space-2xl);
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  animation: fadeInUp 0.8s ease-out;
}

.hero-right {
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--primary);
  width: fit-content;
  backdrop-filter: blur(10px);
  animation: fadeInLeft 0.6s ease-out 0.3s backwards;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.9);
  }
}

.hero-heading {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin: 0;
  animation: fadeInUp 0.6s ease-out 0.4s backwards;
}

.gradient-text {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--secondary) 50%,
    var(--accent) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientMove 5s ease infinite;
}

@keyframes gradientMove {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero-description {
  font-size: clamp(0.9375rem, 2vw, 1.125rem);
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 540px;
  animation: fadeInUp 0.6s ease-out 0.5s backwards;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-sm);
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease-out 0.6s backwards;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-top: var(--space-md);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease-out 0.7s backwards;
}

.btn-hero-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: var(--radius-lg);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  transition: var(--transition-base);
  box-shadow: 0 10px 40px rgba(99, 102, 241, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-hero-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.6s;
}

.btn-hero-primary:hover::before {
  left: 100%;
}

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 50px rgba(99, 102, 241, 0.4);
}

.btn-hero-text,
.btn-hero-icon {
  position: relative;
  z-index: 1;
}

.btn-hero-icon {
  font-size: 1.25rem;
  transition: var(--transition);
}

.btn-hero-primary:hover .btn-hero-icon {
  transform: translateX(4px);
}

.btn-hero-secondary {
  background: white;
  color: var(--text-primary);
  border: 2px solid var(--border);
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-lg);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  transition: var(--transition-base);
  text-decoration: none;
}

.btn-hero-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.stat-value {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Hero Visual */
.hero-right {
  position: relative;
  height: 500px;
  animation: fadeInRight 0.8s ease-out 0.3s backwards;
}

.hero-visual {
  position: relative;
  width: 100%;
  height: 100%;
}

.visual-card {
  position: absolute;
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-md);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: var(--transition-slow);
  animation: float 6s ease-in-out infinite, scaleIn 0.6s ease-out backwards;
}

.visual-card:hover {
  transform: translateY(-10px) scale(1.02) !important;
  box-shadow: var(--shadow-xl);
}

.card-1 {
  top: 5%;
  left: 0;
  width: 240px;
  animation-delay: 0.4s, 0.4s;
}

.card-2 {
  top: 35%;
  right: 5%;
  width: 220px;
  animation-delay: 2s, 0.6s;
}

.card-3 {
  bottom: 10%;
  left: 10%;
  width: 200px;
  animation-delay: 4s, 0.8s;
}

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

.card-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.card-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.card-icon.facebook {
  background: linear-gradient(135deg, #1877f2, #0e5fcc);
}

.card-icon.instagram {
  background: linear-gradient(
    135deg,
    #f09433,
    #e6683c,
    #dc2743,
    #cc2366,
    #bc1888
  );
}

.card-icon.tiktok {
  background: linear-gradient(135deg, #00f2ea, #ff0050);
}

.card-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.shimmer-line {
  height: 10px;
  background: linear-gradient(
    90deg,
    var(--bg-tertiary) 0%,
    var(--bg-secondary) 50%,
    var(--bg-tertiary) 100%
  );
  background-size: 200% 100%;
  border-radius: var(--radius-sm);
  animation: shimmer 2s infinite;
}

.shimmer-line.short {
  width: 60%;
}

.shimmer-line p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin: 0;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.visual-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.12) 0%,
    transparent 70%
  );
  pointer-events: none;
  animation: glow 4s ease-in-out infinite;
}

@keyframes glow {
  0%,
  100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

/* ==================== FEATURES SECTION ==================== */
.features-modern {
  padding: var(--space-3xl) var(--space-md);
  background: white;
}

.container-modern {
  max-width: 1400px;
  margin: 0 auto;
}

.section-header-center {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-3xl);
}

.section-badge {
  display: inline-block;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.section-title-modern {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
  line-height: 1.2;
}

.section-subtitle {
  font-size: clamp(0.9375rem, 2vw, 1.125rem);
  color: var(--text-secondary);
  line-height: 1.6;
}

.features-grid-modern {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.feature-card-modern {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.feature-card-modern:nth-child(1) {
  animation-delay: 0.1s;
}
.feature-card-modern:nth-child(2) {
  animation-delay: 0.2s;
}
.feature-card-modern:nth-child(3) {
  animation-delay: 0.3s;
}
.feature-card-modern:nth-child(4) {
  animation-delay: 0.4s;
}
.feature-card-modern:nth-child(5) {
  animation-delay: 0.5s;
}
.feature-card-modern:nth-child(6) {
  animation-delay: 0.6s;
}

.feature-card-modern::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-card-modern:hover::before {
  transform: scaleX(1);
}

.feature-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.feature-icon-modern {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.1),
    rgba(139, 92, 246, 0.1)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: var(--space-md);
  transition: var(--transition-base);
}

.feature-card-modern:hover .feature-icon-modern {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
}

.feature-card-modern h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.feature-card-modern p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.875rem;
}

/* ==================== SOCIAL PROOF ==================== */
.social-proof {
  padding: var(--space-xl) var(--space-md);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.proof-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.proof-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: white;
  font-weight: 500;
  font-size: 0.875rem;
}

.proof-icon {
  font-size: 1.25rem;
}

/* ==================== PRICING SECTION ==================== */
.pricing-modern {
  padding: var(--space-3xl) var(--space-md);
  background: var(--bg-secondary);
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  max-width: 900px;
  margin: 0 auto var(--space-xl);
}

.pricing-card-modern {
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: var(--space-xl);
  transition: var(--transition-base);
  position: relative;
}

.pricing-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.pricing-card-modern.featured {
  border-color: var(--primary);
  box-shadow: 0 20px 50px rgba(99, 102, 241, 0.2);
  transform: scale(1.02);
}

.pricing-card-modern.featured:hover {
  transform: scale(1.05) translateY(-8px);
  box-shadow: 0 25px 60px rgba(99, 102, 241, 0.3);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  box-shadow: var(--shadow-lg);
}

.pricing-header {
  text-align: center;
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-lg);
}

.plan-badge-modern {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

.plan-badge-modern.free {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}

.plan-badge-modern.pro {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
}

.plan-name-modern {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.plan-price-modern {
  margin-bottom: var(--space-sm);
}

.price-amount {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.price-period {
  font-size: 0.9375rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

.plan-description {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.plan-features-modern {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.plan-features-modern li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-primary);
  font-size: 0.875rem;
}

.check-icon {
  color: var(--success);
  flex-shrink: 0;
}

.btn-plan {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  transition: var(--transition-base);
}

.btn-plan.free {
  background: var(--text-primary);
  color: white;
}

.btn-plan.free:hover {
  background: var(--text-secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-plan.pro {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.btn-plan.pro:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

.trust-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  margin-top: var(--space-xl);
}

.trust-badge svg {
  color: var(--success);
}

/* ==================== CTA FINAL ==================== */
.cta-final {
  padding: var(--space-3xl) var(--space-md);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  position: relative;
  overflow: hidden;
}

.cta-final::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  animation: float 8s ease-in-out infinite;
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: white;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.cta-subtitle {
  font-size: clamp(0.9375rem, 2vw, 1.125rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn-cta-final {
  background: white;
  color: var(--primary);
  border: none;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-xl);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  transition: var(--transition-base);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.btn-cta-final:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.cta-note {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  margin-top: var(--space-md);
}

/* ==================== AUTH PAGES ==================== */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: var(--space-md);
}

.auth-box {
  background: #fff;
  border-radius: var(--radius-2xl);
  padding: var(--space-xl);
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.back-btn {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.8125rem;
  padding: 0.5rem;
  border-radius: var(--radius);
  transition: var(--transition);
}

.back-btn:hover {
  background: var(--bg-tertiary);
}

.auth-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.logo-auth {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.logo-auth svg {
  width: 48px;
  height: 48px;
}

.auth-header h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.auth-header p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.auth-footer {
  text-align: center;
  margin-top: var(--space-md);
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.auth-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.checkbox-label {
  display: flex;
  align-items: start;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.checkbox-label input {
  margin-top: 2px;
}

.error-message {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--danger);
  padding: var(--space-sm);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  margin-top: var(--space-sm);
  text-align: center;
}

/* ==================== APP HEADER ==================== */
.header {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-sm) var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.logo-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.logo-header svg {
  width: 32px;
  height: 32px;
}

.nav {
  display: flex;
  gap: 0.5rem;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-btn:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.nav-btn.active {
  background: var(--primary);
  color: #fff;
}

.nav-btn .icon {
  font-size: 1rem;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.plan-badge-header {
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 600;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}

.plan-badge-header.pro {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
}

.user-dropdown {
  position: relative;
}

.user-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.user-btn:hover {
  border-color: var(--primary);
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.75rem;
}

.user-name-header {
  font-weight: 500;
  font-size: 0.8125rem;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
}

.dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.8125rem;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
}

.dropdown-item:hover {
  background: var(--bg-tertiary);
}

.dropdown-item:first-child {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.dropdown-item:last-child {
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md);
}

.container-app {
  max-width: 900px;
  margin: 0 auto;
}

.section {
  display: none;
}

.section.active {
  display: block;
}

/* Status Bar */
.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-md);
}

.status-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-label {
  color: var(--text-secondary);
  font-size: 0.8125rem;
}

.status-value {
  font-weight: 600;
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
}

.status-dot.configured {
  background: var(--success);
}

.status-dot.not-configured {
  background: var(--warning);
}

/* Generator */
.generator-container {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
}

.generator-header {
  margin-bottom: var(--space-lg);
}

.generator-header h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.generator-header p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.form-group-modern {
  margin-bottom: var(--space-md);
}

.form-label-modern {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.label-icon {
  font-size: 1.125rem;
}

.input-modern {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-family: inherit;
  transition: var(--transition);
}

.input-modern:focus {
  outline: 0;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.input-help {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

/* Results */
.results-container {
  margin-top: var(--space-xl);
  display: none;
}

.results-container.active {
  display: block;
}

.result-section-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.result-image-section {
  margin-bottom: var(--space-lg);
}

.image-result-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  text-align: center;
}

.image-result-card img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  margin-bottom: var(--space-sm);
}

.image-actions {
  margin-bottom: var(--space-sm);
}

.image-prompt-text {
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: #fff;
  padding: 0.75rem;
  border-radius: var(--radius);
  text-align: left;
}

/* Social Tabs */
.social-tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: var(--space-md);
  border-bottom: 2px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.social-tabs::-webkit-scrollbar {
  display: none;
}

.social-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.8125rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
  white-space: nowrap;
}

.social-tab:hover {
  color: var(--primary);
}

.social-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.social-icon {
  font-size: 1.125rem;
}

.social-contents {
  position: relative;
}

.social-content {
  display: none;
}

.social-content.active {
  display: block;
}

.content-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.content-header h4 {
  font-size: 0.875rem;
}

.content-text {
  padding: var(--space-md);
  white-space: pre-wrap;
  font-size: 0.875rem;
  line-height: 1.7;
  background: var(--bg-secondary);
  min-height: 250px;
}

.result-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: var(--space-lg);
  flex-wrap: wrap;
}

/* History */
.section-header-app {
  margin-bottom: var(--space-lg);
}

.section-header-app h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.section-header-app p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.history-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
}

@media (max-width: 640px) {
  .history-grid-modern {
    grid-template-columns: 1fr;
  }
}

.history-card-modern {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  cursor: pointer;
  transition: var(--transition);
  word-wrap: break-word;
  overflow: hidden;
}

.history-card-modern:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: var(--primary);
}

.history-card-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 0.75rem;
  gap: 0.5rem;
}

.history-date {
  font-size: 0.6875rem;
  color: var(--text-tertiary);
  white-space: nowrap;
  flex-shrink: 0;
}

.history-url {
  font-size: 0.75rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: break-all;
}

.history-preview {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.empty-state {
  text-align: center;
  padding: var(--space-3xl) var(--space-md);
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: var(--space-sm);
}

.empty-state h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  font-size: 0.875rem;
}

/* Settings */
.settings-container {
  max-width: 700px;
  margin: 0 auto;
}

.settings-container > h2 {
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
  font-weight: 700;
}

.settings-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
}

.settings-card h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-md);
}

.plan-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.plan-current {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.plan-badge-large {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}

.plan-badge-large.pro {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
}

.plan-name-large {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.plan-limit {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.info-box {
  background: var(--bg-secondary);
  border-left: 4px solid var(--primary);
  padding: var(--space-sm);
  border-radius: var(--radius);
  margin-bottom: var(--space-md);
}

.info-box p {
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
}

.info-box p:last-child {
  margin-bottom: 0;
}

.api-key-status-full {
  margin-bottom: var(--space-sm);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--space-sm);
  font-size: 0.875rem;
}

.api-key-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.help-text {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.help-text a {
  color: var(--primary);
  text-decoration: none;
}

.help-text a:hover {
  text-decoration: underline;
}

.settings-form {
  max-width: 500px;
}

.account-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.info-label {
  color: var(--text-secondary);
  font-size: 0.8125rem;
}

.info-value {
  font-weight: 500;
  font-size: 0.8125rem;
}

/* ==================== MODALS ==================== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: var(--z-modal);
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.modal.active {
  display: flex;
}

.modal-content-modern,
.modal-content {
  background: #fff;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 450px;
  box-shadow: var(--shadow-xl);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlideIn 0.3s ease;
}

.modal-content.modal-sm {
  max-width: 450px;
}

.modal-header-modern,
.modal-content .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
}

.modal-header-modern h3,
.modal-content .modal-header h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.01em;
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-tertiary);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  transition: var(--transition);
  line-height: 1;
  padding: 0;
  font-weight: 300;
}

.modal-close:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  transform: rotate(90deg);
}

.modal-body-modern {
  padding: var(--space-lg);
}

.modal-content form {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.modal-actions-modern,
.modal-content .modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  padding-top: var(--space-md);
  margin-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.license-benefits {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
}

.license-benefits h4 {
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
}

.license-benefits ul {
  list-style: none;
}

.license-benefits li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  font-size: 0.8125rem;
}

.help-text-center {
  text-align: center;
  margin-top: var(--space-sm);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.help-text-center a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-content::-webkit-scrollbar {
  width: 6px;
}

.modal-content::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: var(--border-dark);
}

/* ==================== BUTTONS ==================== */
.btn {
  padding: 0.625rem 1rem;
  border: none;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.modal-content .modal-actions .btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  min-width: 120px;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
}

.modal-content .modal-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--border);
}

.modal-content .modal-actions .btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 2px solid var(--border);
  min-width: 80px;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
}

.modal-content .modal-actions .btn-secondary:hover {
  background: var(--border);
  border-color: var(--border-medium);
  transform: translateY(-1px);
}

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

.btn-secondary-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-danger:hover {
  background: #dc2626;
}

.btn-link {
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  transition: var(--transition);
}

.btn-link:hover {
  background: var(--bg-tertiary);
}

.btn-link-small {
  background: transparent;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
  transition: var(--transition);
}

.btn-link-small:hover {
  background: rgba(99, 102, 241, 0.1);
}

.btn-sm {
  padding: 0.5rem 0.875rem;
  font-size: 0.75rem;
}

.btn-lg {
  padding: 0.875rem 1.5rem;
  font-size: 0.9375rem;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-generate {
  position: relative;
}

.btn-content,
.btn-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-loading {
  display: none;
}

.btn-generate.loading .btn-content {
  display: none;
}

.btn-generate.loading .btn-loading {
  display: flex;
}

.btn-icon {
  font-size: 1rem;
}

.copy-icon {
  font-size: 0.875rem;
}

/* ==================== FORMS ==================== */
.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.8125rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-family: inherit;
  transition: var(--transition);
  background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-control:focus {
  outline: 0;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-help {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

/* Toast */
.toast {
  position: fixed;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text-primary);
  color: #fff;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-xl);
  z-index: var(--z-toast);
  opacity: 0;
  transition: var(--transition-base);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.success {
  background: var(--success);
}

.toast.error {
  background: var(--danger);
}

/* Spinner */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==================== ADMIN PANEL ==================== */
/* Admin panel styles moved to bottom of file */

.admin-table .badge,
.badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge.admin {
  background: #fef3c7;
  color: #d97706;
}

.badge.user {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}

.badge.free {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}

.badge.pro {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
}

.badge.success {
  background: #d1fae5;
  color: #059669;
}

.badge.danger {
  background: #fee2e2;
  color: #dc2626;
}

.btn-icon {
  background: transparent;
  border: none;
  padding: 0.375rem;
  cursor: pointer;
  border-radius: var(--radius);
  transition: var(--transition);
  font-size: 0.875rem;
}

.btn-icon:hover {
  background: var(--bg-tertiary);
  transform: scale(1.1);
}

.btn-icon.danger:hover {
  background: #fee2e2;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.stat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.stat-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.25rem 0;
}

.stat-content p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Button ventas plan */
.btn-ventas-plan {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-base);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  text-align: center;
  margin: 0 auto;
}

.btn-ventas-plan:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.btn-ventas-plan-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: var(--space-md);
}

.plan-comunicar-ventas {
  list-style: none;
  display: inline-block;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  padding-left: 0;
  text-align: left;
}

/* ==================== RESPONSIVE DESIGN ==================== */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
  .hero-content-modern {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    text-align: center;
  }

  .hero-left {
    align-items: center;
  }

  .hero-description {
    margin: 0 auto;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-right {
    height: 400px;
    margin: 0 auto;
    max-width: 500px;
  }

  .features-grid-modern {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-cards {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .pricing-card-modern.featured {
    transform: scale(1);
  }

  .pricing-card-modern.featured:hover {
    transform: translateY(-8px);
  }

  .admin-sidebar {
    width: 100%;
    position: relative;
    height: auto;
    padding: var(--space-md);
  }

  .admin-content {
    margin-left: 0;
    padding: var(--space-md);
  }

  .admin-layout {
    flex-direction: column;
  }

  .admin-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .admin-nav-item {
    flex: 1;
    min-width: 120px;
    justify-content: center;
  }
}

/* Tablets */
@media (max-width: 768px) {
  /* Mobile menu */
  .mobile-menu-toggle {
    display: block;
  }

  .nav-actions {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    flex-direction: column;
    padding: 80px var(--space-lg) var(--space-lg);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    gap: var(--space-md);
    align-items: stretch;
    z-index: var(--z-fixed);
    overflow-y: auto;
  }

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

  .nav-actions .btn-ghost,
  .nav-actions .btn-primary-modern {
    width: 100%;
    justify-content: center;
    padding: 1rem;
    font-size: 1rem;
  }

  /* Hero adjustments */
  .hero-content-modern {
    margin-top: 80px;
    padding-top: var(--space-lg);
  }

  .hero-badge {
    font-size: 0.75rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    justify-content: center;
    width: 100%;
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-md);
  }

  .stat-divider {
    display: none;
  }

  .hero-right {
    height: 300px;
  }

  .visual-card {
    padding: var(--space-sm);
  }

  .card-1 {
    width: 180px !important;
    top: 0;
    left: 0;
  }

  .card-2 {
    width: 160px !important;
    top: 30%;
    right: 0;
  }

  .card-3 {
    width: 150px !important;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
  }

  /* Features */
  .features-grid-modern {
    grid-template-columns: 1fr;
  }

  /* Proof */
  .proof-content {
    flex-direction: column;
    gap: var(--space-md);
  }

  /* Sections */
  .section-title-modern,
  .cta-title {
    font-size: 1.75rem;
  }

  /* Dashboard header */
  .header-content {
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: space-around;
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border);
    margin-top: var(--space-sm);
  }

  .nav-btn {
    flex: 1;
    justify-content: center;
    padding: 0.5rem;
  }

  .nav-btn span:not(.icon) {
    display: none;
  }

  .user-name-header {
    display: none;
  }

  /* Status bar */
  .status-bar {
    flex-direction: column;
    gap: var(--space-sm);
    align-items: stretch;
  }

  .status-item {
    justify-content: space-between;
  }

  /* Generator */
  .generator-container {
    padding: var(--space-md);
  }

  /* Results */
  .result-actions {
    flex-direction: column;
  }

  /* History */
  .history-grid-modern {
    grid-template-columns: 1fr;
  }

  /* Auth */
  .auth-box {
    padding: var(--space-lg);
  }

  /* Modal */
  .modal-content,
  .modal-content-modern {
    width: 100%;
    max-width: none;
    margin: var(--space-sm);
    max-height: calc(100vh - var(--space-lg));
  }

  .modal-content .modal-header,
  .modal-header-modern {
    padding: var(--space-sm) var(--space-md);
  }

  .modal-content .modal-header h3,
  .modal-header-modern h3 {
    font-size: 1rem;
  }

  .modal-content form,
  .modal-body-modern {
    padding: var(--space-md);
  }

  .modal-content .modal-actions {
    flex-direction: column-reverse;
    gap: 0.5rem;
  }

  .modal-content .modal-actions .btn {
    width: 100%;
    min-width: auto;
  }

  /* Admin */
  .stats-grid {
    grid-template-columns: 1fr;
  }

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

  .admin-table {
    min-width: 700px;
  }
}

/* Small phones */
@media (max-width: 480px) {
  :root {
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
  }

  .hero-heading {
    font-size: 1.75rem;
  }

  .hero-description {
    font-size: 0.875rem;
  }

  .stat-value {
    font-size: 1.25rem;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
  }

  .hero-right {
    height: 250px;
  }

  .card-1,
  .card-2,
  .card-3 {
    padding: 0.5rem !important;
  }

  .card-1 {
    width: 150px !important;
  }

  .card-2 {
    width: 130px !important;
  }

  .card-3 {
    width: 120px !important;
  }

  .card-header {
    font-size: 0.75rem;
  }

  .card-icon {
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
  }

  /* Pricing */
  .pricing-card-modern {
    padding: var(--space-md);
  }

  .plan-name-modern {
    font-size: 1.25rem;
  }

  .price-amount {
    font-size: 2rem;
  }

  /* Modal */
  .modal-content .modal-header,
  .modal-header-modern {
    padding: var(--space-sm);
  }

  .modal-content form,
  .modal-body-modern {
    padding: var(--space-sm);
    gap: var(--space-sm);
  }

  /* Forms */
  .form-group input,
  .form-group select,
  .form-control,
  .input-modern {
    font-size: 16px; /* Prevents zoom on iOS */
  }

  /* Generator */
  .generator-header h2 {
    font-size: 1.25rem;
  }

  .section-header-app h2 {
    font-size: 1.25rem;
  }

  .settings-container > h2 {
    font-size: 1.25rem;
  }

  /* Features */
  .feature-card-modern {
    padding: var(--space-md);
  }

  .feature-icon-modern {
    width: 48px;
    height: 48px;
  }

  .feature-card-modern h3 {
    font-size: 1rem;
  }

  /* Buttons */
  .btn-ventas-plan {
    width: 100%;
    max-width: 280px;
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
  }
}

/* Very small phones */
@media (max-width: 360px) {
  .brand-name {
    font-size: 0.9375rem;
  }

  .brand-icon svg {
    width: 32px;
    height: 32px;
  }

  .hero-content-modern {
    margin-top: 70px;
  }

  .hero-heading {
    font-size: 1.5rem;
  }

  .hero-right {
    height: 200px;
  }

  .visual-glow {
    width: 250px;
    height: 250px;
  }
}

/* Landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-modern {
    min-height: auto;
    padding-bottom: var(--space-xl);
  }

  .hero-content-modern {
    margin-top: 80px;
    grid-template-columns: 1fr 1fr;
  }

  .hero-right {
    height: 250px;
  }

  .auth-container {
    min-height: auto;
    padding: var(--space-sm);
  }

  .auth-box {
    padding: var(--space-md);
  }
}

/* ==================== ENTERPRISE SECTION ==================== */
.enterprise-section {
  padding: var(--space-2xl) var(--space-md);
  background: var(--bg-secondary);
}

.enterprise-card {
  background: white;
  border-radius: var(--radius-2xl);
  padding: var(--space-xl);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-xl);
  align-items: center;
  border: 2px solid var(--border);
  max-width: 900px;
  margin: 0 auto;
  transition: var(--transition-base);
}

.enterprise-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.enterprise-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.enterprise-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.1),
    rgba(139, 92, 246, 0.1)
  );
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.enterprise-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.enterprise-description {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.enterprise-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.enterprise-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-primary);
}

.enterprise-feature .check-icon {
  flex-shrink: 0;
}

.btn-enterprise {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #25d366;
  color: white;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-lg);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-base);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  width: fit-content;
}

.btn-enterprise:hover {
  background: #1da851;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.enterprise-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.enterprise-icon-large {
  width: 120px;
  height: 120px;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.1),
    rgba(139, 92, 246, 0.1)
  );
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==================== IMPROVED ADMIN PANEL ==================== */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 240px;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  padding: var(--space-lg);
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.admin-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-logo svg {
  flex-shrink: 0;
}

.admin-logo span {
  font-size: 1rem;
  font-weight: 700;
  color: white;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.admin-nav-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
  text-align: left;
  width: 100%;
}

.admin-nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.admin-nav-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.admin-nav-icon {
  font-size: 1.125rem;
}

.admin-nav-text {
  font-weight: 500;
}

.admin-sidebar-footer {
  margin-top: auto;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-admin-logout {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

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

.admin-content {
  margin-left: 240px;
  padding: var(--space-lg);
  flex: 1;
  background: var(--bg-secondary);
  min-height: 100vh;
}

.admin-header {
  margin-bottom: var(--space-lg);
}

.admin-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.admin-header p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.admin-section {
  display: none;
}

.admin-section.active {
  display: block;
}

.admin-table-container {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

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

.admin-table thead {
  background: var(--bg-secondary);
}

.admin-table th {
  padding: 1rem;
  text-align: left;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--border);
}

.admin-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-primary);
}

.admin-table tbody tr {
  transition: var(--transition);
}

.admin-table tbody tr:hover {
  background: var(--bg-secondary);
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

/* Admin Responsive */
@media (max-width: 1024px) {
  .admin-sidebar {
    width: 100%;
    position: relative;
    height: auto;
    padding: var(--space-md);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .admin-logo {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
  }

  .admin-nav {
    flex-direction: row;
    gap: 0.5rem;
    flex: 0;
  }

  .admin-nav-btn {
    padding: 0.625rem 1rem;
  }

  .admin-nav-text {
    display: none;
  }

  .admin-sidebar-footer {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
  }

  .btn-admin-logout span:last-child {
    display: none;
  }

  .admin-content {
    margin-left: 0;
    padding: var(--space-md);
  }

  .admin-layout {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .enterprise-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .enterprise-content {
    align-items: center;
  }

  .enterprise-features {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .enterprise-visual {
    order: -1;
  }

  .enterprise-icon-large {
    width: 80px;
    height: 80px;
  }

  .enterprise-icon-large svg {
    width: 48px;
    height: 48px;
  }

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

  .admin-table {
    min-width: 700px;
  }
}

@media (max-width: 480px) {
  .enterprise-card {
    padding: var(--space-md);
  }

  .enterprise-title {
    font-size: 1.5rem;
  }

  .enterprise-features {
    gap: 0.5rem;
  }

  .btn-enterprise {
    width: 100%;
    justify-content: center;
  }
}

/* Dark mode support (optional, activated by user preference) */
@media (prefers-color-scheme: dark) {
  /* Add dark mode styles here if needed */
}

/* Print styles */
@media print {
  .nav-modern,
  .header,
  .modal,
  .toast {
    display: none !important;
  }

  body {
    background: white;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --border: #000;
    --text-secondary: #000;
    --text-tertiary: #333;
  }
}

/* ================================================
  WHATSAPP FLOTANTE
================================================ */
.wa-floating {
    position: fixed;
    bottom: 20px;
    right: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 999999;
}

/* ---- BURBUJA ---- */
.wa-bubble {
    background: #29e619cc;
    padding: 8px 10px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    font-size: 15px;
    display: flex;
    align-items: center;
    animation: fadeIn 0.7s ease-out;
    position: relative;
}

.wa-text {
    color: #151616;
    font-weight: 500;
}

.wa-close {
    margin-left: 10px;
    cursor: pointer;
    font-size: 18px;
    color: #777;
    font-weight: bold;
}

.wa-close:hover {
    color: #000;
}

/* ---- BOTÓN ---- */
.wa-button {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #25d366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
    animation: ring 1.5s infinite ease-in-out;
}

.wa-button img {
    width: 35px;
    height: 35px;
}

/* ---- ANIMACIONES ---- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes ring {
    0% { transform: rotate(0); }
    10% { transform: rotate(15deg); }
    20% { transform: rotate(-15deg); }
    30% { transform: rotate(15deg); }
    40% { transform: rotate(-15deg); }
    50% { transform: rotate(0); }
    100% { transform: rotate(0); }
}
