/* ==========================================================================
   BITCORES — Consultoría IT, Diseño Web a Medida y Escaparate Interactivo
   Editorial Warm Alabaster + Deep Obsidian Stage + Cobalt & Ember Accents
   ========================================================================== */

:root {
  --bg: #FAF8F4;
  --bg-soft: #F2EEE6;
  --surface: #FFFFFF;
  --obsidian: #0E1117;
  --obsidian-2: #161B26;
  --obsidian-border: rgba(255, 255, 255, 0.1);

  --ink: #11141C;
  --ink-secondary: #4B5364;
  --ink-muted: #767E8F;

  --accent: #1D4ED8;
  --accent-bright: #2563EB;
  --accent-soft: #EBF1FF;
  --ember: #E05328;
  --ember-soft: #FFF0EB;
  --emerald: #0E9F6E;
  --emerald-soft: #E6F8F1;
  --amber: #D97706;

  --border: rgba(17, 20, 28, 0.09);
  --border-strong: rgba(17, 20, 28, 0.16);
  --shadow-sm: 0 2px 10px rgba(17, 20, 28, 0.04);
  --shadow-md: 0 14px 36px rgba(17, 20, 28, 0.07);
  --shadow-lg: 0 28px 70px rgba(17, 20, 28, 0.12);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

section[id], div[id] {
  scroll-margin-top: 86px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

picture { display: contents; }
img { max-width: 100%; display: block; }
a { color: inherit; }

.container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

/* Typography Utilities */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow.ember { color: var(--ember); }
.eyebrow.light { color: #93C5FD; }

.section-title {
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.07;
  margin-top: 12px;
}
.section-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  font-size: 1.08em;
}
.section-lead {
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--ink-secondary);
  max-width: 640px;
  margin-top: 14px;
}

.mono { font-family: var(--font-mono); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--ink);
  color: #FFFFFF;
  box-shadow: 0 10px 24px rgba(17, 20, 28, 0.16);
}
.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(29, 78, 216, 0.28);
}

.btn-accent {
  background: var(--accent-bright);
  color: #FFFFFF;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.32);
}
.btn-accent:hover {
  background: #1D4ED8;
  transform: translateY(-2px);
}

.btn-ember {
  background: var(--ember);
  color: #FFFFFF;
  box-shadow: 0 10px 24px rgba(224, 83, 40, 0.28);
}
.btn-ember:hover {
  background: #C9451E;
  transform: translateY(-2px);
}

.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn-outline:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.btn-ghost-dark {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.18);
}
.btn-ghost-dark:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.36);
}

.btn-sm { padding: 9px 16px; font-size: 13px; }

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 244, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 74px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  height: 38px;
  width: auto;
  display: block;
  object-fit: contain;
}

.footer-logo-badge {
  display: inline-flex;
  align-items: center;
  background: #FFFFFF;
  padding: 8px 14px;
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.footer-logo-badge img {
  height: 32px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links a {
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-secondary);
  white-space: nowrap;
  transition: color 0.18s;
}
.nav-links a:hover,
.nav-links a.nav-active { color: var(--accent); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 2px;
  gap: 2px;
}
.lang-opt {
  border: none;
  background: transparent;
  padding: 5px 9px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: all 0.16s;
}
.lang-opt.active {
  background: var(--ink);
  color: #FFFFFF;
}

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 20px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  padding: 16px 20px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.mobile-menu.open { display: flex; flex-direction: column; gap: 12px; }
.mobile-menu a {
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 8px 4px;
  border-bottom: 1px solid var(--border);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  padding: 58px 0 74px;
  overflow: hidden;
  background-image:
    radial-gradient(circle at 85% 18%, rgba(37, 99, 235, 0.08), transparent 44%),
    radial-gradient(circle at 12% 75%, rgba(224, 83, 40, 0.07), transparent 42%),
    linear-gradient(rgba(17, 20, 28, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 20, 28, 0.028) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 48px;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 10px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 4px rgba(14, 159, 110, 0.18);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(14, 159, 110, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(14, 159, 110, 0.06); }
}

.hero h1 {
  font-size: clamp(40px, 5.2vw, 66px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
}
.hero h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0;
  font-size: 1.09em;
}

.hero-sub {
  font-size: clamp(16.5px, 1.5vw, 18.5px);
  color: var(--ink-secondary);
  max-width: 550px;
  margin-bottom: 30px;
}
.hero-sub strong { color: var(--ink); }

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.proof-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.proof-val {
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.proof-lbl {
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.3;
}

/* Hero Right Interactive Showcase Card */
.hero-stage {
  position: relative;
  padding-top: 28px;
}

.hero-browser-card {
  background: var(--obsidian);
  border-radius: 22px;
  padding: 14px;
  box-shadow: 0 34px 80px rgba(14, 17, 23, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

.mini-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 12px;
  gap: 10px;
}
.dots { display: flex; gap: 6px; }
.dots span { width: 10px; height: 10px; border-radius: 50%; }
.dots span:nth-child(1) { background: #FF5F56; }
.dots span:nth-child(2) { background: #FFBD2E; }
.dots span:nth-child(3) { background: #27C93F; }

.mini-url {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #CBD5E1;
  flex: 1;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-preview-screen {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 10.6;
  background: #1B2130;
}
.hero-preview-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.35s ease, transform 0.5s ease;
}
.hero-preview-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 17, 23, 0.05) 35%, rgba(14, 17, 23, 0.88) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}
.preview-tag {
  align-self: flex-start;
  background: rgba(37, 99, 235, 0.92);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.preview-title {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.15;
}
.preview-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  font-size: 12.5px;
  color: #CBD5E1;
}

.hero-switcher {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.hero-sw-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #CBD5E1;
  border-radius: 12px;
  padding: 9px 8px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.hero-sw-btn strong { display: block; font-size: 12px; color: #FFFFFF; white-space: nowrap; }
.hero-sw-btn span { font-size: 10.5px; font-family: var(--font-mono); color: #94A3B8; white-space: nowrap; }
.hero-sw-btn.active {
  background: rgba(37, 99, 235, 0.22);
  border-color: #60A5FA;
}

.floating-kpi {
  position: absolute;
  top: -12px;
  right: 16px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px 13px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 4;
}
.kpi-ring {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--emerald-soft);
  color: var(--emerald);
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 13px;
  display: grid;
  place-items: center;
  border: 2px solid var(--emerald);
}

/* ==========================================================================
   LIVE INTERACTIVE DEMO THEATER (#demos)
   ========================================================================== */
.demo-stage-section {
  background: var(--obsidian);
  color: #FFFFFF;
  padding: 88px 0 96px;
  position: relative;
  overflow: hidden;
}
.demo-stage-section::before {
  content: "";
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 460px;
  background: radial-gradient(ellipse, rgba(37, 99, 235, 0.22), transparent 68%);
  pointer-events: none;
}

.demo-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 34px;
  position: relative;
  z-index: 2;
}
.demo-header .section-lead { color: #A6B0C3; }

.demo-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 22px;
  position: relative;
  z-index: 2;
}
.demo-tab.pro-tier {
  border-color: rgba(245, 158, 11, 0.32);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(37, 99, 235, 0.06));
}
.demo-tab.pro-tier .demo-tab-badge {
  background: rgba(245, 158, 11, 0.22);
  color: #FDE68A;
}
.demo-tab.pro-tier.active .demo-tab-badge {
  background: #F59E0B;
  color: #0E1117;
}
.demo-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 16px 18px;
  text-align: left;
  color: #CBD5E1;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.22s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.demo-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}
.demo-tab.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.26), rgba(29, 78, 216, 0.12));
  border-color: #60A5FA;
  color: #FFFFFF;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.22);
}
.demo-tab-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.demo-tab-badge {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #E2E8F0;
}
.demo-tab.active .demo-tab-badge {
  background: #2563EB;
  color: #FFFFFF;
}
.demo-tab-price {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: #93C5FD;
}
.demo-tab-name {
  font-size: 16px;
  font-weight: 800;
  color: #FFFFFF;
}
.demo-tab-desc {
  font-size: 12.5px;
  color: #94A3B8;
  line-height: 1.4;
}

/* Browser Frame */
.browser-shell {
  background: #161B26;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.55);
  position: relative;
  z-index: 2;
}

.browser-toolbar {
  background: #1C2332;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.url-bar {
  flex: 1;
  min-width: 200px;
  max-width: 440px;
  background: rgba(14, 17, 23, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 7px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #CBD5E1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.viewport-controls {
  display: inline-flex;
  background: rgba(14, 17, 23, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.vp-btn {
  background: transparent;
  border: none;
  color: #94A3B8;
  padding: 6px 13px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s;
}
.vp-btn.active {
  background: #2563EB;
  color: #FFFFFF;
}

.demo-hint-strip {
  background: rgba(37, 99, 235, 0.13);
  border-bottom: 1px solid rgba(96, 165, 250, 0.22);
  padding: 10px 18px;
  font-size: 13px;
  color: #DBEAFE;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Live Business Name Rebranding Bar (#demos) */
.demo-brand-bar {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.14), rgba(37, 99, 235, 0.14));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.demo-brand-lbl {
  font-size: 13px;
  font-weight: 700;
  color: #E2E8F0;
}
.demo-brand-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 440px;
  min-width: 220px;
}
.demo-brand-controls input {
  flex: 1;
  min-width: 0;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(14, 17, 23, 0.85);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.demo-brand-controls input::placeholder { color: #94A3B8; font-weight: 400; }
.demo-brand-controls input:focus {
  border-color: #34D399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.18);
}
.brand-swatches {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(14, 17, 23, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.swatch-btn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.swatch-btn:hover { transform: scale(1.15); }
.swatch-btn.active {
  border-color: #FFFFFF;
  box-shadow: 0 0 0 2px #0E1117, 0 0 0 4px #FFFFFF;
  transform: scale(1.1);
}
.swatch-btn.sw-default {
  background: conic-gradient(#2563EB, #059669, #B84A27, #B48238, #2563EB);
}

.contact-quick-tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.qr-modal-card {
  width: min(360px, 100%);
  background: var(--surface);
  color: var(--ink);
  border-radius: 20px;
  padding: 22px 24px;
  display: grid;
  gap: 14px;
  text-align: center;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}
.qr-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: var(--bg);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.qr-tab {
  border: none;
  background: transparent;
  padding: 7px 10px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-secondary);
  cursor: pointer;
}
.qr-tab.active { background: var(--obsidian); color: #FFFFFF; }
.qr-svg-wrap {
  display: grid;
  place-items: center;
  padding: 12px;
  background: #FFFFFF;
  border: 1.5px solid var(--border);
  border-radius: 16px;
}
.qr-svg-wrap svg { max-width: 100%; height: auto; display: block; }

.iframe-viewport-wrap {
  background: #0B0E14;
  padding: 0;
  display: flex;
  justify-content: center;
  transition: padding 0.3s ease;
}
.iframe-viewport-wrap.framed {
  padding: 22px 16px;
}

.demo-iframe {
  width: 100%;
  height: 640px;
  border: none;
  background: #FFFFFF;
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-radius 0.3s ease, box-shadow 0.3s ease;
}
.demo-iframe.tablet {
  width: 768px;
  max-width: 100%;
  border-radius: 18px;
  box-shadow: 0 0 0 10px #222938, 0 24px 60px rgba(0, 0, 0, 0.6);
}
.demo-iframe.mobile {
  width: 390px;
  max-width: 100%;
  border-radius: 28px;
  box-shadow: 0 0 0 11px #222938, 0 24px 60px rgba(0, 0, 0, 0.6);
}

.browser-footer {
  background: #141923;
  padding: 18px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.demo-breakdown {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.demo-breakdown strong { font-size: 15px; color: #FFFFFF; }
.demo-breakdown span { font-size: 13px; color: #94A3B8; }

/* ==========================================================================
   GENERAL SECTIONS
   ========================================================================== */
.section {
  padding: 92px 0;
}
.section-alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ==========================================================================
   TEAM SECTION (#equipo) — Engineers + Graphic Designer
   ========================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: 0.96fr 1.04fr;
  gap: 36px;
  align-items: start;
  margin-top: 36px;
}

.team-left-col {
  display: grid;
  gap: 16px;
}

.team-promise-card {
  background: var(--obsidian);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 22px 24px;
  border: 1px solid rgba(96, 165, 250, 0.24);
}
.team-promise-card h4 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 6px;
  color: #FFFFFF;
}
.team-promise-card p {
  font-size: 13.5px;
  color: #CBD5E1;
  line-height: 1.55;
}

.team-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.team-visual img {
  width: 100%;
  aspect-ratio: 4 / 3.2;
  object-fit: cover;
}
.team-visual-caption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(16, 18, 24, 0.88);
  backdrop-filter: blur(12px);
  color: #FFFFFF;
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.pillars-stack {
  display: grid;
  gap: 18px;
}

.pillar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  align-items: flex-start;
  transition: transform 0.2s, border-color 0.2s;
}
.pillar-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.pillar-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 24px;
}
.pillar-icon.tech { background: var(--accent-soft); color: var(--accent); }
.pillar-icon.design { background: var(--ember-soft); color: var(--ember); }
.pillar-icon.human { background: var(--emerald-soft); color: var(--emerald); }

.pillar-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
}
.pillar-card p {
  font-size: 14.5px;
  color: var(--ink-secondary);
}
.pillar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}
.pillar-tags span {
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--ink-secondary);
}

.trust-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 6px;
}
.trust-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 15px;
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ==========================================================================
   GUIDED 20-SECOND PLAN RECOMMENDER (#planes) & LIVE WEBSITE ANALYZER
   ========================================================================== */
.advisor-card {
  margin-top: 32px;
  background: var(--surface);
  border: 1.5px solid rgba(37, 99, 235, 0.24);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  box-shadow: var(--shadow-md);
}
.advisor-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.advisor-steps-ind {
  display: flex;
  align-items: center;
  gap: 8px;
}
.adv-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
  transition: all 0.2s;
}
.adv-dot.active { background: var(--accent-bright); color: #FFFFFF; }
.adv-dot.done { background: var(--emerald); color: #FFFFFF; }

.advisor-question {
  font-size: 19px;
  font-weight: 800;
  margin: 20px 0 14px;
  color: var(--ink);
}
.advisor-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.advisor-options.cols-2 { grid-template-columns: repeat(2, 1fr); }
.adv-opt {
  text-align: left;
  background: var(--bg);
  border: 1.5px solid var(--border-strong);
  border-radius: 15px;
  padding: 16px 18px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.18s ease;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.adv-opt:hover {
  border-color: var(--accent-bright);
  background: var(--accent-soft);
  transform: translateY(-2px);
}
.adv-opt-icon { font-size: 22px; }
.adv-opt strong { font-size: 14.5px; color: var(--ink); line-height: 1.25; }
.adv-opt small { font-size: 12.5px; color: var(--ink-secondary); line-height: 1.4; }

.adv-result {
  margin-top: 18px;
  background: linear-gradient(135deg, #0E1117 0%, #16213E 100%);
  color: #FFFFFF;
  border-radius: 18px;
  padding: 24px 26px;
  border: 1px solid rgba(96, 165, 250, 0.35);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  align-items: center;
}
.adv-res-price {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 800;
  color: #6EE7B7;
  line-height: 1;
}
.adv-res-actions {
  display: grid;
  gap: 9px;
}

/* Real Live Website Diagnostic Input Bar */
.audit-url-form {
  display: flex;
  gap: 8px;
  margin: 12px 0 10px;
}
.audit-url-form input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border-strong);
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--ink);
  outline: none;
}
.audit-url-form input:focus {
  border-color: var(--accent-bright);
  background: #FFFFFF;
}
.score-pill.warn {
  background: #FEF3C7;
  color: #B45309;
}
.audit-row.fail {
  background: #FEF2F2;
  border-color: rgba(239, 68, 68, 0.28);
}
.audit-row.fail .audit-status {
  background: #FEE2E2;
  color: #B91C1C;
}
.audit-tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 10px;
}
.audit-cta-wrap {
  display: none;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-strong);
}
.audit-cta-wrap.show { display: grid; gap: 8px; }
.audit-sim-link {
  background: none;
  border: none;
  color: var(--ink-muted);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px 0;
  text-align: center;
}
.audit-sim-link:hover { color: var(--accent); }

/* ==========================================================================
   INTERACTIVE COMPARISON: PLANTILLA GENÉRICA VS. BITCORES DESDE CERO (#equipo)
   ========================================================================== */
.compare-showcase {
  margin-top: 40px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 30px 28px;
  box-shadow: var(--shadow-md);
}
.compare-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.compare-toggle-bar {
  display: inline-flex;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}
.cmp-tab {
  border: none;
  background: transparent;
  padding: 8px 15px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: all 0.2s;
}
.cmp-tab.active-bad { background: #FEE2E2; color: #B91C1C; }
.cmp-tab.active-good { background: var(--obsidian); color: #FFFFFF; }

.compare-split-stage {
  --split: 50%;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1.5px solid var(--border-strong);
  min-height: 295px;
  user-select: none;
  background: #FFF5F5;
  cursor: ew-resize;
  touch-action: pan-y;
}
.cmp-layer {
  padding: 28px 56px;
  min-height: 295px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}
.cmp-layer.bad {
  background: linear-gradient(135deg, #FEF2F2 0%, #FFF7ED 100%);
  color: #450A0A;
}
.cmp-layer.good {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0E1117 0%, #172554 100%);
  color: #FFFFFF;
  clip-path: inset(0 calc(100% - var(--split)) 0 0);
  pointer-events: none;
  transition: clip-path 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.compare-split-stage.is-dragging .cmp-layer.good,
.compare-split-stage.is-dragging .cmp-divider,
.compare-split-stage.is-dragging .cmp-knob {
  transition: none;
}
.cmp-score-big {
  font-family: var(--font-mono);
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}
.cmp-metrics {
  display: grid;
  gap: 8px;
  font-size: 13px;
}
.cmp-metric-pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 600;
}
.cmp-layer.bad .cmp-metric-pill { background: rgba(239, 68, 68, 0.1); color: #7F1D1D; }
.cmp-layer.good .cmp-metric-pill { background: rgba(255, 255, 255, 0.09); color: #E2E8F0; border: 1px solid rgba(96, 165, 250, 0.2); }

.cmp-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split);
  width: 3px;
  transform: translateX(-50%);
  background: #60A5FA;
  box-shadow: 0 0 18px rgba(37, 99, 235, 0.7);
  pointer-events: none;
  z-index: 4;
  transition: left 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.cmp-knob {
  position: absolute;
  top: 50%;
  left: clamp(24px, var(--split), calc(100% - 24px));
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #2563EB;
  color: #FFFFFF;
  border: 3px solid #FFFFFF;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
  cursor: grab;
  z-index: 6;
  touch-action: none;
  transition: left 0.32s cubic-bezier(0.22, 1, 0.36, 1), transform 0.15s ease, background 0.15s ease;
}
.cmp-knob:hover {
  background: #1D4ED8;
  transform: translate(-50%, -50%) scale(1.08);
}
.compare-split-stage.is-dragging .cmp-knob,
.cmp-knob:active {
  cursor: grabbing;
  background: #1D4ED8;
  transform: translate(-50%, -50%) scale(1.1);
}
.cmp-slider-bar {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-muted);
}
.cmp-slider-bar input[type="range"] {
  flex: 1;
  accent-color: var(--accent-bright);
  cursor: ew-resize;
}

.cmp-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 18px;
}
.cmp-mini-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 13px 14px;
  font-size: 12.5px;
}
.cmp-mini-box strong { display: block; color: var(--ink); font-size: 13.5px; margin-bottom: 4px; }
.cmp-mini-box .bad-val { color: #B91C1C; text-decoration: line-through; font-size: 11.5px; display: block; }
.cmp-mini-box .good-val { color: var(--emerald); font-weight: 800; font-size: 13px; display: block; margin-top: 2px; }

/* Personalized Client Quote Banner inside Calculator Ticket */
.ticket-client-banner {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #A7F3D0;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 14px;
}

/* ==========================================================================
   PRICING PLANS (#planes)
   ========================================================================== */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 44px;
  align-items: stretch;
}

.plan-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.plan-card.featured {
  background: var(--obsidian);
  color: #FFFFFF;
  border-color: var(--accent-bright);
  box-shadow: 0 28px 64px rgba(29, 78, 216, 0.2);
}

.popular-ribbon {
  position: absolute;
  top: -13px;
  right: 24px;
  background: linear-gradient(90deg, var(--accent-bright), var(--ember));
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
}

.plan-name {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.plan-tagline {
  font-size: 14px;
  color: var(--ink-secondary);
  margin-top: 4px;
}
.plan-card.featured .plan-tagline { color: #A6B0C3; }

.plan-price-row {
  margin: 22px 0 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.plan-card.featured .plan-price-row { border-color: rgba(255, 255, 255, 0.12); }

.plan-price {
  font-family: var(--font-mono);
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.plan-tax {
  font-size: 12.5px;
  color: var(--ink-muted);
}
.plan-card.featured .plan-tax { color: #94A3B8; }

.plan-meta-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.meta-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink-secondary);
  white-space: nowrap;
}
.plan-card.featured .meta-pill {
  background: rgba(255, 255, 255, 0.1);
  color: #E2E8F0;
}

.plan-list {
  list-style: none;
  display: grid;
  gap: 11px;
  margin-bottom: 28px;
}
.plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-secondary);
}
.plan-card.featured .plan-list li { color: #DCE3F0; }

.check {
  color: var(--emerald);
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 1px;
}
.plan-card.featured .check { color: #34D399; }

.plan-actions {
  display: grid;
  gap: 10px;
}
.plan-actions .btn { width: 100%; }

.pricing-clarification {
  margin-top: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--ink-secondary);
}
.pricing-clarification strong { color: var(--ink); }

/* ==========================================================================
   TECHNICAL SERVICES: 30€ UPGRADE+AUDIT, REFORMS, IT SUPPORT (#servicios-tecnicos)
   ========================================================================== */
.tech-spotlight {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 28px;
  margin-top: 40px;
  align-items: stretch;
}

.audit-offer-card {
  background: var(--obsidian);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  border: 1px solid rgba(96, 165, 250, 0.3);
  position: relative;
  overflow: hidden;
}
.audit-offer-card::after {
  content: "";
  position: absolute;
  bottom: -80px;
  right: -80px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(14, 159, 110, 0.25), transparent 70%);
  pointer-events: none;
}

.price-badge-big {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  background: rgba(14, 159, 110, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #6EE7B7;
  padding: 8px 16px;
  border-radius: 14px;
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 800;
  align-self: flex-start;
}
.price-badge-big small { font-size: 12px; font-weight: 600; color: #A7F3D0; }

/* Interactive Audit Simulator */
.audit-sim-card {
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.sim-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.sim-score-box {
  display: flex;
  align-items: center;
  gap: 12px;
}
.score-pill {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 22px;
  padding: 6px 14px;
  border-radius: 12px;
  background: #FEE2E2;
  color: #B91C1C;
  transition: all 0.4s ease;
}
.score-pill.healthy {
  background: var(--emerald-soft);
  color: #047857;
}

.sim-progress-track {
  height: 7px;
  border-radius: 999px;
  background: var(--bg-soft);
  overflow: hidden;
}
.sim-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-bright), var(--emerald));
  transition: width 0.35s ease;
}

.audit-checks {
  display: grid;
  gap: 9px;
}
.audit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 13px;
  transition: background 0.3s, border-color 0.3s;
}
.audit-row.done {
  background: #F0FDF7;
  border-color: rgba(14, 159, 110, 0.3);
}
.audit-status {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: #FEF3C7;
  color: #B45309;
  white-space: nowrap;
}
.audit-row.done .audit-status {
  background: var(--emerald-soft);
  color: #047857;
}

/* Reforms & IT Consulting 2-col */
.extra-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 26px;
}

.service-feature-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow-sm);
}
.service-feature-card.it-card {
  background: linear-gradient(155deg, #FFFFFF 0%, #F4F7FF 100%);
  border-color: rgba(37, 99, 235, 0.24);
}
.service-tag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.price-pill {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink);
}
.price-pill.blue { background: var(--accent-soft); color: var(--accent); }
.price-pill.ember { background: var(--ember-soft); color: var(--ember); }

.mini-bullets {
  list-style: none;
  display: grid;
  gap: 9px;
  font-size: 14px;
  color: var(--ink-secondary);
}
.mini-bullets li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

/* ==========================================================================
   INTERACTIVE BUDGET CONFIGURATOR + ADDONS + MAINTENANCE (#calculadora)
   ========================================================================== */
.calc-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
  margin-top: 40px;
  align-items: start;
}

.calc-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.calc-step-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 16px;
}
.step-num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--ink);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 12.5px;
  display: grid;
  place-items: center;
}

.base-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.base-opt {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: all 0.18s;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.base-opt:hover { border-color: var(--accent); }
.base-opt.active {
  background: var(--accent-soft);
  border-color: var(--accent-bright);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.14);
}
.base-opt strong { display: block; font-size: 14.5px; color: var(--ink); }
.base-opt small { font-size: 12px; color: var(--ink-muted); }
.base-opt .mono { font-weight: 800; color: var(--accent); font-size: 15px; white-space: nowrap; }

.addons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.addon-item {
  border: 1.5px solid var(--border);
  border-radius: 13px;
  padding: 12px 14px;
  background: var(--bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: all 0.18s;
  user-select: none;
}
.addon-item:hover { border-color: var(--border-strong); background: #FFFFFF; }
.addon-item.selected {
  background: var(--accent-soft);
  border-color: var(--accent-bright);
}
.addon-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.addon-check {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid var(--border-strong);
  background: #FFFFFF;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: #FFFFFF;
  flex-shrink: 0;
}
.addon-item.selected .addon-check {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
}
.addon-name { font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.25; }
.addon-sub { font-size: 11.5px; color: var(--ink-muted); }
.addon-price { font-family: var(--font-mono); font-weight: 700; font-size: 13.5px; color: var(--ink); white-space: nowrap; }

.maint-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.maint-opt {
  padding: 14px 12px;
  border-radius: 13px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: all 0.18s;
}
.maint-opt.active {
  background: var(--emerald-soft);
  border-color: var(--emerald);
}
.maint-opt strong { display: block; font-size: 14px; }
.maint-opt .mono { font-size: 13px; font-weight: 800; color: var(--emerald); margin: 3px 0; display: block; }
.maint-opt small { font-size: 11.5px; color: var(--ink-muted); line-height: 1.3; display: block; }

/* Sticky Receipt */
.quote-ticket {
  position: sticky;
  top: 94px;
  background: var(--obsidian);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 26px 64px rgba(14, 17, 23, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.ticket-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.16);
}
.ticket-lines {
  margin: 18px 0;
  display: grid;
  gap: 10px;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 4px;
}
.ticket-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  color: #CBD5E1;
}
.ticket-line strong { color: #FFFFFF; font-family: var(--font-mono); }

.ticket-total-box {
  padding-top: 16px;
  border-top: 1px dashed rgba(255, 255, 255, 0.16);
  margin-bottom: 18px;
}
.ticket-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.ticket-grand {
  font-family: var(--font-mono);
  font-size: 38px;
  font-weight: 800;
  color: #FFFFFF;
}
.ticket-monthly {
  margin-top: 6px;
  font-size: 13px;
  color: #6EE7B7;
  font-family: var(--font-mono);
}
.ticket-meta {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 12.5px;
  color: #CBD5E1;
  display: grid;
  gap: 5px;
  margin-bottom: 18px;
}

/* ==========================================================================
   PROCESS & TRANSPARENCY (#proceso)
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 40px;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
}
.step-index {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 14px;
}
.step-card h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.step-card p { font-size: 13.5px; color: var(--ink-secondary); }

.transparency-banner {
  margin-top: 32px;
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.trans-item h4 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.trans-item p { font-size: 13.5px; color: var(--ink-secondary); }

/* ==========================================================================
   FAQ (#faq)
   ========================================================================== */
.faq-list {
  max-width: 860px;
  margin: 36px auto 0;
  display: grid;
  gap: 12px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  background: transparent;
  border: none;
  padding: 20px 24px;
  text-align: left;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-icon {
  font-size: 20px;
  color: var(--accent);
  transition: transform 0.25s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  display: none;
  padding: 0 24px 20px;
  font-size: 14.5px;
  color: var(--ink-secondary);
}
.faq-item.open .faq-a { display: block; }

/* ==========================================================================
   CONTACT SECTION (#contacto)
   ========================================================================== */
.contact-section {
  background: var(--obsidian);
  color: #FFFFFF;
  padding: 92px 0;
  position: relative;
}
.contact-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 44px;
  align-items: start;
}

.email-highlight-card {
  margin-top: 26px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(96, 165, 250, 0.35);
  border-radius: 18px;
  padding: 22px;
}
.contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.24);
  border: 1px solid rgba(96, 165, 250, 0.4);
  color: #BFDBFE;
  margin-bottom: 12px;
}
.email-address-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.email-display {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  word-break: break-all;
}

.contact-form-card {
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.field label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-secondary);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border-strong);
  background: var(--bg);
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent-bright);
  background: #FFFFFF;
}

.dispatch-box {
  display: none;
  margin-top: 18px;
  padding: 18px;
  border-radius: 14px;
  background: var(--emerald-soft);
  border: 1px solid rgba(14, 159, 110, 0.35);
  color: #065F46;
}
.dispatch-box.show { display: block; }
.dispatch-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* Privacy Checkbox & Anti-Spam Honeypot */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  color: var(--ink-secondary);
  margin: 6px 0 16px;
  cursor: pointer;
  line-height: 1.45;
}
.privacy-check input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.privacy-check a {
  color: var(--accent);
  font-weight: 700;
}

.rgpd-layer {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-muted);
}
.rgpd-layer strong { color: var(--ink-secondary); }
.rgpd-layer a { color: var(--accent); font-weight: 700; }

/* Human Guarantees & Voices Grid */
.voices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}
.voice-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}
.voice-quote {
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.6;
}
.voice-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.voice-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  font-size: 13px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* Floating WhatsApp Widget */
.wa-widget {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 140;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.wa-fab {
  background: #16A34A;
  color: #FFFFFF;
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(22, 163, 74, 0.36);
  transition: transform 0.2s, background 0.2s;
}
.wa-fab:hover {
  background: #15803D;
  transform: translateY(-2px);
}
.wa-popover {
  display: none;
  width: min(350px, calc(100vw - 28px));
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  box-shadow: 0 24px 56px rgba(14, 17, 23, 0.24);
  overflow: hidden;
}
.wa-popover.open { display: flex; flex-direction: column; }
.wa-pop-head {
  background: #14532D;
  color: #FFFFFF;
  padding: 13px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.wa-chat-log {
  max-height: 245px;
  overflow-y: auto;
  padding: 13px;
  background: #F4F6F9;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.wa-msg {
  max-width: 90%;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 12.8px;
  line-height: 1.45;
}
.wa-msg.bot {
  align-self: flex-start;
  background: #FFFFFF;
  color: var(--ink);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.wa-msg.user {
  align-self: flex-end;
  background: #14532D;
  color: #FFFFFF;
  border-bottom-right-radius: 4px;
  font-weight: 600;
}
.wa-msg-cta {
  display: inline-block;
  margin-top: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.wa-msg-cta:hover { background: var(--accent-bright); color: #FFFFFF; }
.wa-chips {
  padding: 11px 12px 13px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.wa-chip {
  text-align: left;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  font-family: inherit;
  font-size: 11.8px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s;
}
.wa-chip:hover {
  border-color: #16A34A;
  background: #F0FDF4;
  color: #14532D;
}
.wa-chip.primary-chip {
  background: #14532D;
  color: #FFFFFF;
  border-color: #14532D;
}
.wa-chip.primary-chip:hover { background: #166534; color: #FFFFFF; }

/* Audit Report PDF Score Banner */
.pq-score-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 12px;
  margin-bottom: 18px;
  border: 1.5px solid #2563EB;
  background: #EFF6FF;
}
.pq-score-bar.warn { background: #FFFBEB; border-color: #F59E0B; }
.pq-score-bar.fail { background: #FEF2F2; border-color: #EF4444; }
.pq-score-bar.ok { background: #ECFDF5; border-color: #10B981; }
.pq-score-num { font-family: var(--font-mono); font-size: 30px; font-weight: 800; white-space: nowrap; }
.pq-badge-ok { color: #047857; font-weight: 700; }
.pq-badge-fail { color: #B91C1C; font-weight: 700; }

/* Mobile-only helper strip inside #demos */
.demo-mobile-tip {
  display: none;
  background: rgba(16, 185, 129, 0.14);
  border-bottom: 1px solid rgba(52, 211, 153, 0.25);
  padding: 9px 14px;
  font-size: 12px;
  color: #A7F3D0;
  text-align: center;
}

/* ==========================================================================
   BRANDED PDF QUOTE PREVIEW MODAL & @media print A4 SHEET
   ========================================================================== */
.pdf-modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(14, 17, 23, 0.78);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 250;
  overflow-y: auto;
}
.pdf-modal-bg.open { display: flex; }

.pdf-modal-shell {
  width: min(760px, 100%);
  max-height: 92vh;
  background: var(--surface);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
}
.pdf-modal-bar {
  background: var(--obsidian);
  color: #FFFFFF;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.pdf-modal-scroll {
  overflow-y: auto;
  padding: 24px;
  background: #EEF1F6;
}

.print-quote-sheet {
  background: #FFFFFF;
  color: #11141C;
  border: 1px solid #D8DEE9;
  border-radius: 12px;
  padding: 32px 34px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}
.pq-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 2px solid #11141C;
  flex-wrap: wrap;
}
.pq-logo { height: 40px; width: auto; display: block; margin-bottom: 6px; }
.pq-title { font-size: 20px; font-weight: 800; letter-spacing: 0.03em; color: #1D4ED8; text-align: right; }
.pq-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 0 22px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 12.5px;
}
.pq-meta-grid span { display: block; color: #64748B; font-size: 11px; text-transform: uppercase; font-weight: 700; }
.pq-table { width: 100%; table-layout: fixed; border-collapse: collapse; margin-bottom: 18px; font-size: 13.5px; }
.pq-table th {
  text-align: left;
  padding: 10px 12px;
  background: #0E1117;
  color: #FFFFFF;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pq-table th:first-child, .pq-table td:first-child { width: 54%; }
.pq-table th:last-child, .pq-table td:last-child {
  width: 46%;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 12.5px;
  white-space: normal;
  word-break: break-word;
}
.pq-table td { padding: 10px 12px; border-bottom: 1px solid #E2E8F0; }
.pq-total-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-radius: 10px;
  background: #EBF1FF;
  border: 1.5px solid #2563EB;
  margin-bottom: 16px;
}
.pq-total-amt { font-family: var(--font-mono); font-size: 26px; font-weight: 800; color: #1D4ED8; }
.pq-conds {
  background: #FAF8F4;
  border: 1px solid #E5E0D5;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 12px;
  color: #475569;
}
.pq-conds ul { padding-left: 18px; margin-top: 6px; display: grid; gap: 4px; }
.pq-foot {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid #E2E8F0;
  font-size: 12px;
  color: #475569;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* Native Print-to-PDF Rules: Print ONLY the clean A4 quote sheet! */
@media print {
  @page { size: A4 portrait; margin: 12mm; }
  body { background: #FFFFFF !important; }
  body > *:not(#pdfModal) { display: none !important; }
  #pdfModal {
    position: static !important;
    display: block !important;
    background: #FFFFFF !important;
    padding: 0 !important;
    overflow: visible !important;
  }
  .pdf-modal-shell {
    max-height: none !important;
    width: 100% !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }
  .pdf-modal-bar { display: none !important; }
  .pdf-modal-scroll { padding: 0 !important; background: #FFFFFF !important; overflow: visible !important; }
  .print-quote-sheet { border: none !important; box-shadow: none !important; padding: 0 !important; }
}

/* Footer */
.site-footer {
  background: #090B10;
  color: #94A3B8;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 44px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1.25fr 0.9fr;
  align-items: flex-start;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 22px;
  font-size: 13.5px;
}
.footer-links a { text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: #FFFFFF; }
.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(90px);
  background: var(--ink);
  color: #FFFFFF;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
  z-index: 200;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* Subtle Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1060px) {
  .hero-grid, .team-grid, .tech-spotlight, .calc-layout, .contact-grid, .footer-grid, .voices-grid {
    grid-template-columns: 1fr;
  }
  .hero-grid > *, .team-grid > *, .tech-spotlight > *, .extra-services-grid > *, .calc-layout > *, .contact-grid > *, .advisor-options > *, .adv-result > * {
    min-width: 0;
  }
  .nav-actions .btn-outline { display: none; }
  .demo-tabs { grid-template-columns: repeat(2, 1fr); }
  .plans-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .transparency-banner { grid-template-columns: 1fr; }
  .quote-ticket { position: static; }
  .floating-kpi { top: -8px; right: 12px; }
}

@media (max-width: 820px) {
  .nav-links, .nav-actions .btn-outline { display: none; }
  .menu-toggle { display: grid; place-items: center; }
  .hero-proof { grid-template-columns: repeat(2, 1fr); }
  .extra-services-grid, .base-options, .addons-grid, .form-row, .trust-mini-grid,
  .advisor-options, .advisor-options.cols-2, .adv-result {
    grid-template-columns: 1fr;
  }
  .audit-url-form { flex-direction: column; }
  .advisor-card, .compare-showcase { padding: 22px 18px; }
  .cmp-layer { grid-template-columns: 1fr; padding: 18px; min-height: 0; }
  .cmp-layer.good { position: static; clip-path: none; display: none; }
  .compare-split-stage.mobile-good .cmp-layer.bad { display: none; }
  .compare-split-stage.mobile-good .cmp-layer.good { display: grid; pointer-events: auto; }
  .cmp-divider, .cmp-knob, .cmp-slider-bar { display: none; }
  .cmp-summary-grid { grid-template-columns: repeat(2, 1fr); }
  .demo-brand-controls { min-width: 0; max-width: none; width: 100%; flex-wrap: wrap; }
  .maint-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-switcher { grid-template-columns: repeat(2, 1fr); }
  .demo-tabs {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    gap: 10px;
  }
  .demo-tab {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }
  .demo-mobile-tip { display: block; }
  .viewport-controls { display: none; }
  .demo-iframe { height: 520px; }
  .site-footer { padding-bottom: 86px; }
  .wa-widget { bottom: 14px; right: 14px; }
  .wa-fab { padding: 10px 15px; font-size: 13px; }
  .pq-meta-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .steps-grid, .maint-grid, .footer-links { grid-template-columns: 1fr; }
  .section { padding: 62px 0; }
  .contact-form-card, .audit-offer-card, .audit-sim-card, .service-feature-card, .calc-step { padding: 22px 18px; }
  .brand-logo { height: 32px; }
  .nav-actions .btn-primary { display: none; }
  .btn { white-space: normal; text-align: center; }
  .audit-row { flex-wrap: wrap; }
  .audit-row span { overflow-wrap: anywhere; }
  .price-badge-big { font-size: 24px; flex-wrap: wrap; }
}
