/* =========================================================
   survey.com.ar - Corporate Landing CSS
   High-End Dark UI • Glassmorphism • Micro-Interactions
   ========================================================= */

:root {
  --bg-dark: #070b14;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(99, 102, 241, 0.3);

  --primary: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.4);
  --primary-hover: #4f46e5;
  --secondary: #06b6d4;
  --accent: #10b981;
  --purple: #8b5cf6;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --wa-bg: #0b141a;
  --wa-header: #202c33;
  --wa-bubble-bot: #202c33;
  --wa-bubble-user: #005c4b;
  --wa-green: #25d366;

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 35%, rgba(6, 182, 212, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 50% 85%, rgba(139, 92, 246, 0.06) 0%, transparent 50%);
  background-attachment: fixed;
}

/* ================= NAVBAR ================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 0 20px var(--primary-glow);
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-main);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-tag {
  font-size: 11px;
  color: var(--secondary);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

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

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-admin {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: white;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 15px var(--primary-glow);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

/* ================= HERO SECTION ================= */
.hero-section {
  padding: 80px 0 100px;
  position: relative;
}

.hero-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid var(--border-glow);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #a5b4fc;
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.hero-title {
  font-family: var(--font-main);
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, #818cf8 0%, #38bdf8 50%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 30px;
}

.hero-features-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.feat-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-hero-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: white;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 25px var(--primary-glow);
  transition: all 0.25s ease;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.6);
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s ease;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ================= SIMULADOR DE TELÉFONO ================= */
.hero-mockup {
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 360px;
  height: 600px;
  background-color: var(--wa-bg);
  border-radius: 40px;
  border: 10px solid #1e293b;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 40px -10px var(--primary-glow);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.phone-notch {
  width: 140px;
  height: 20px;
  background: #1e293b;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  z-index: 10;
}

.phone-header {
  background-color: var(--wa-header);
  padding: 24px 16px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.wa-contact {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wa-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.wa-details {
  display: flex;
  flex-direction: column;
}

.wa-name {
  font-size: 14px;
  font-weight: 700;
  color: #e9edef;
}

.wa-status {
  font-size: 11px;
  color: var(--wa-green);
}

.wa-actions {
  color: #8696a0;
  display: flex;
  gap: 12px;
  font-size: 16px;
}

.phone-chat-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 16px 16px;
}

.wa-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.45;
  position: relative;
  word-wrap: break-word;
}

.wa-bubble.bot {
  background-color: var(--wa-bubble-bot);
  color: #e9edef;
  align-self: flex-start;
  border-top-left-radius: 2px;
}

.wa-bubble.user {
  background-color: var(--wa-bubble-user);
  color: #e9edef;
  align-self: flex-end;
  border-top-right-radius: 2px;
}

.wa-time {
  font-size: 10px;
  color: #8696a0;
  float: right;
  margin-top: 4px;
  margin-left: 8px;
}

.wa-interactive-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.wa-btn-option {
  background: rgba(32, 44, 51, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #00a884;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.wa-btn-option:hover {
  background: rgba(0, 168, 132, 0.15);
  border-color: #00a884;
}

.phone-input-bar {
  background-color: var(--wa-header);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.phone-input-bar input {
  flex: 1;
  background: #2a3942;
  border: none;
  color: white;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  outline: none;
}

.phone-send-btn {
  background: #00a884;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: white;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ================= 4 PILARES SECTION ================= */
.services-section {
  padding: 100px 0;
  background: rgba(11, 17, 32, 0.4);
}

.section-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.section-tag {
  color: var(--secondary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-family: var(--font-main);
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 14px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 650px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 32px 26px;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 22px;
}

.card-icon.cyan {
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.card-icon.emerald {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.card-icon.indigo {
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.card-icon.purple {
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.card-title {
  font-family: var(--font-main);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.card-text {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: #cbd5e1;
  border-top: 1px solid var(--border-color);
  padding-top: 18px;
}

/* ================= CALCULADORA DE COSTOS ================= */
.calculator-section {
  padding: 80px 0;
}

.calculator-box {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.7));
  border: 1px solid var(--border-glow);
  border-radius: 28px;
  padding: 50px 40px;
  box-shadow: 0 25px 60px -20px rgba(99, 102, 241, 0.15);
}

.calc-header {
  text-align: center;
  margin-bottom: 40px;
}

.calc-title {
  font-family: var(--font-main);
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 10px;
}

.calc-subtitle {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 680px;
  margin: 0 auto;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items: center;
}

.calc-controls label {
  font-size: 16px;
  font-weight: 600;
  display: block;
  margin-bottom: 14px;
}

.highlight-val {
  color: var(--secondary);
  font-weight: 800;
  font-size: 20px;
}

.calc-controls input[type="range"] {
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: #334155;
  outline: none;
  margin-bottom: 28px;
}

.cost-breakdown {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cost-item {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

.cost-figure.free {
  color: var(--accent);
  font-weight: 700;
}

.calc-results {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.result-card {
  padding: 18px 24px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.result-card.danger {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.result-card.success {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.result-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.result-card.danger .result-title { color: #f87171; }
.result-card.success .result-title { color: #34d399; }

.result-amount {
  font-family: var(--font-main);
  font-size: 28px;
  font-weight: 800;
}

.highlight-green {
  color: var(--accent);
}

.result-note {
  font-size: 12px;
  color: var(--text-dim);
}

.savings-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(6, 182, 212, 0.15));
  border: 1px solid var(--accent);
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 14px;
  text-align: center;
  color: #a7f3d0;
}

/* ================= DEMO CARDS ================= */
.demo-section {
  padding: 90px 0;
}

.demo-cards-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.demo-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 40px;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.demo-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.demo-badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
  align-self: flex-start;
}

.demo-badge.admin {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border-color: var(--primary);
}

.demo-card h3 {
  font-family: var(--font-main);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 14px;
}

.demo-card p {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 30px;
  flex-grow: 1;
}

.btn-demo-big {
  background: linear-gradient(135deg, #00a884, #008069);
  color: white;
  padding: 14px 24px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(0, 168, 132, 0.4);
}

.btn-demo-outline {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: white;
  padding: 14px 24px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-demo-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
}

/* ================= ARQUITECTURA LIMESURVEY ================= */
.arch-section {
  padding: 90px 0;
  background: rgba(11, 17, 32, 0.4);
}

.steps-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 32px 26px;
  position: relative;
}

.step-num {
  font-family: var(--font-main);
  font-size: 40px;
  font-weight: 900;
  color: rgba(99, 102, 241, 0.25);
  margin-bottom: 16px;
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ================= SEGURIDAD & VPS ================= */
.security-section {
  padding: 90px 0;
}

.security-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 46px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}

.sec-badge {
  color: var(--purple);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

.sec-title {
  font-family: var(--font-main);
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 16px;
}

.sec-desc {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.sec-highlights {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sec-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  color: #cbd5e1;
}

.sec-pill code {
  color: var(--secondary);
  font-family: monospace;
}

.code-box {
  background: #0b1120;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.7);
}

.code-header {
  background: #1e293b;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.code-dot.red { background: #ef4444; }
.code-dot.yellow { background: #f59e0b; }
.code-dot.green { background: #10b981; }

.code-title {
  font-size: 12px;
  color: #94a3b8;
  margin-left: 8px;
  font-family: monospace;
}

.code-content {
  padding: 18px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 12.5px;
  color: #a5b4fc;
  line-height: 1.5;
  overflow-x: auto;
}

/* ================= FOOTER ================= */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
  background: rgba(5, 8, 15, 0.9);
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 13.5px;
  margin-top: 14px;
  max-width: 380px;
}

.footer-links-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-group h4 {
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.footer-links-group a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.2s ease;
}

.footer-links-group a:hover {
  color: var(--primary);
}

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 24px 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-dim);
  font-size: 12.5px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-title {
    font-size: 38px;
  }
  .hero-badge, .hero-features-strip, .hero-cta-group {
    justify-content: center;
  }
  .calc-grid, .security-card, .demo-cards-wrapper, .steps-flow {
    grid-template-columns: 1fr;
  }
  .footer-container {
    grid-template-columns: 1fr;
  }
}
