:root {
  --bg-color: #030814;
  --bg-card: rgba(16, 24, 43, 0.65);
  --text-primary: #ffffff;
  --text-secondary: #a0a5ad;
  --text-muted: #6b7280;
  --accent-color: #0066ff;
  --accent-hover: #0052cc;
  --neon-blue: #00d4ff;
  --silver: #c9ced6;
  --silver-dark: #8c939d;
  --whatsapp-color: #25d366;
  --whatsapp-hover: #1fb956;
  --border-color: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.15);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.5);
  --shadow-neon: 0 0 15px rgba(0, 212, 255, 0.3);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg-color);
  background: linear-gradient(180deg, #020b1c 0%, #030814 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-hover);
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background-color: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  position: sticky;
  top: 16px;
  z-index: 100;
  padding: 12px 24px;
  margin: 16px auto;
  border-radius: 100px;
  max-width: 1200px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.header-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

@media (min-width: 768px) {
  .header-content {
    flex-direction: row;
    justify-content: space-between;
    gap: 0;
  }
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-text {
  background: linear-gradient(135deg, #ffffff, var(--silver));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-accent {
  color: var(--neon-blue);
  -webkit-text-fill-color: var(--neon-blue);
}

.desktop-nav {
  display: none;
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
    gap: 24px;
  }
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--neon-blue);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--neon-blue);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  transition: all 0.3s;
  border: 1px solid transparent;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--glass-border);
  color: var(--neon-blue);
  transform: translateY(-2px);
}

/* Form elements */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.input-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--silver);
}

.input, .select {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.input:focus, .select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(43, 92, 255, 0.2);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  transition: all 0.2s;
}

.btn-primary {
  background-color: var(--accent-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: var(--whatsapp-color);
  color: white;
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-hover);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--silver);
}

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

.btn-block {
  width: 100%;
}

/* Utils */
.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.hidden { display: none !important; }

/* FAB WhatsApp */
.fab-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background-color: var(--whatsapp-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4);
  font-size: 32px;
  z-index: 90;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fab-whatsapp:hover {
  transform: scale(1.1);
  color: white;
}

/* Mascot Robot */
.mascot-container {
  position: fixed;
  bottom: 18px;
  right: 98px;
  z-index: 89;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  isolation: isolate;
  animation: floatMascot 4.8s ease-in-out infinite;
  transition: filter 0.3s ease;
}

.mascot-container:focus-visible {
  outline: 2px solid var(--neon-blue);
  outline-offset: 6px;
  border-radius: 24px;
}

.mascot-figure {
  position: relative;
  width: 132px;
  flex: 0 0 132px;
  transform-origin: 50% 92%;
  animation: mascotSway 5.2s ease-in-out infinite;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mascot-container:hover .mascot-figure,
.mascot-container:focus-visible .mascot-figure {
  transform: translateY(-5px) rotate(2deg) scale(1.06);
}

.mascot-container.is-opening .mascot-figure {
  animation: mascotHello 0.45s ease-out;
}

.mascot-image {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  filter:
    drop-shadow(0 12px 10px rgba(0, 0, 0, 0.42))
    drop-shadow(0 0 10px rgba(0, 153, 255, 0.5));
  transform-origin: 50% 88%;
  transition: opacity 0.22s ease, transform 0.22s ease, filter 0.22s ease;
  user-select: none;
  -webkit-user-drag: none;
}

.mascot-container.is-changing .mascot-image {
  opacity: 0;
  transform: translateY(6px) scale(0.92);
  filter: drop-shadow(0 0 3px rgba(0, 153, 255, 0.25));
}

.mascot-figure[data-pose="idle"] .mascot-image {
  animation: poseIdle 3s ease-in-out infinite;
}

.mascot-figure[data-pose="walk"] .mascot-image {
  animation: poseWalk 1.05s ease-in-out infinite;
}

.mascot-figure[data-pose="wave"] .mascot-image {
  animation: poseWave 1.35s ease-in-out infinite;
}

.mascot-figure[data-pose="point"] .mascot-image {
  animation: posePoint 1.8s ease-in-out infinite;
}

.mascot-figure[data-pose="thumb"] .mascot-image {
  animation: poseThumb 1.65s ease-in-out infinite;
}

.mascot-glow {
  position: absolute;
  z-index: 1;
  left: 16%;
  right: 9%;
  bottom: 3%;
  height: 23%;
  border-radius: 50%;
  background: rgba(0, 153, 255, 0.36);
  filter: blur(18px);
  animation: mascotGlow 2.8s ease-in-out infinite;
  pointer-events: none;
}

.mascot-bubble {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--neon-blue);
  color: var(--text-primary);
  padding: 10px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  max-width: 220px;
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
  position: relative;
  transform-origin: right center;
  animation: popBubble 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mascot-bubble::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -8px;
  transform: translateY(-50%);
  border-width: 8px 0 8px 8px;
  border-style: solid;
  border-color: transparent transparent transparent var(--neon-blue);
}

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

@keyframes mascotSway {
  0%, 100% { transform: rotate(-1.2deg); }
  50% { transform: rotate(1.2deg); }
}

@keyframes mascotGlow {
  0%, 100% { opacity: 0.45; transform: scale(0.9); }
  50% { opacity: 0.9; transform: scale(1.08); }
}

@keyframes mascotHello {
  0% { transform: translateY(0) rotate(0) scale(1); }
  45% { transform: translateY(-10px) rotate(3deg) scale(1.07); }
  100% { transform: translateY(0) rotate(0) scale(1); }
}

@keyframes poseIdle {
  0%, 100% { transform: translateY(0) scaleY(1); }
  50% { transform: translateY(-2px) scaleY(1.008); }
}

@keyframes poseWalk {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-6px) rotate(1deg); }
}

@keyframes poseWave {
  0%, 100% { transform: rotate(-1deg); }
  35% { transform: rotate(2.5deg) translateY(-3px); }
  65% { transform: rotate(0.5deg) translateY(-1px); }
}

@keyframes posePoint {
  0%, 100% { transform: translateX(0) rotate(0); }
  50% { transform: translateX(3px) rotate(1deg); }
}

@keyframes poseThumb {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.025); }
}

@keyframes popBubble {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 768px) {
  .mascot-container {
    bottom: 18px;
    right: 82px;
    gap: 6px;
  }

  .mascot-figure {
    width: 96px;
    flex-basis: 96px;
  }

  .mascot-bubble {
    max-width: 168px;
    padding: 8px 12px;
    font-size: 0.78rem;
    transform-origin: right center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mascot-container,
  .mascot-figure,
  .mascot-glow,
  .mascot-bubble {
    animation: none !important;
  }

  .mascot-image {
    animation: none !important;
    transition: none !important;
  }
}
