:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --success: #10b981;
  --radius: 16px;
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background-color: var(--bg-color);
  background-image: radial-gradient(circle at top right, rgba(79, 70, 229, 0.04) 0%, transparent 50%),
                    radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.04) 0%, transparent 50%);
  color: var(--text-main);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.ms-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  flex: 1;
  width: 100%;
  box-sizing: border-box;
}

/* Navbar Premium B2B */
.ms-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(255,255,255,0.5);
  margin-bottom: 4rem;
}

.ms-navbar-logo img {
  max-height: 45px; /* Tamaño elegante para el navbar */
  display: block;
}

.ms-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.ms-toggle {
  background: transparent;
  color: #64748b;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}
.ms-toggle:hover {
  background: #f1f5f9;
  color: var(--text-main);
}
.ms-toggle.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2);
}

/* Hero Section */
.ms-hero {
  text-align: center;
  margin-bottom: 4rem;
}

.ms-hero h1 {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text-main) 0%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ms-hero p {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
}

.ms-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 850px) {
  .ms-grid {
    grid-template-columns: 1.3fr 1fr;
  }
}

.ms-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.ms-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 2rem;
  color: var(--text-main);
  border-bottom: 2px solid #f8fafc;
  padding-bottom: 1rem;
}

.ms-form-group {
  margin-bottom: 1.8rem;
}
.ms-form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  color: #334155;
}

.ms-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.ms-input-prefix, .ms-input-suffix {
  position: absolute;
  color: #94a3b8;
  font-weight: 600;
}
.ms-input-prefix { left: 1.2rem; }
.ms-input-suffix { right: 1.2rem; }

.ms-input {
  width: 100%;
  padding: 0.85rem 1.2rem;
  background-color: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-main);
  transition: all 0.2s ease;
  box-sizing: border-box;
}
.ms-input.has-prefix { padding-left: 2.8rem; }
.ms-input.has-suffix { padding-right: 2.8rem; }
.ms-input:focus {
  outline: none;
  background-color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
}

.ms-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2);
}
.ms-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.ms-btn-secondary {
  background: #f8fafc;
  color: #475569;
  border: 1px dashed #cbd5e1;
  box-shadow: none;
  margin-top: 1rem;
}
.ms-btn-secondary:hover {
  background: #f1f5f9;
  color: #334155;
  border-color: #94a3b8;
}

/* Results Panel (Premium Dark Gradient) */
.ms-results-panel {
  background: linear-gradient(145deg, #0f172a 0%, #1e1b4b 100%);
  color: white;
  position: sticky;
  top: 2rem;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.ms-results-panel .ms-card-title {
  color: #f8fafc;
  border-bottom-color: rgba(255,255,255,0.1);
}
.ms-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ms-result-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.ms-result-label {
  color: #94a3b8;
  font-size: 0.95rem;
  font-weight: 500;
}
.ms-result-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: #f8fafc;
}
.ms-result-value.highlight {
  font-size: 2.2rem;
  color: var(--success);
  text-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

/* Ad Placeholders */
.ms-ad-placeholder {
  background: rgba(226, 232, 240, 0.5);
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin: 2rem 0;
}
.ms-ad-horizontal { width: 100%; height: 90px; }
.ms-ad-sidebar { width: 100%; height: 250px; margin-top: 2rem; }

/* SEO Content B2B */
.ms-seo-content h2 {
  font-size: 1.8rem;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  margin-top: 2rem;
  font-weight: 800;
}
.ms-seo-content p, .ms-seo-content li {
  color: #475569;
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
}
.ms-seo-content h3 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

/* Footer Premium */
.ms-footer {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 3rem 1.5rem;
  margin-top: 5rem;
}
.ms-footer-content {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}
.ms-footer-logo {
  max-height: 30px;
  opacity: 0.5;
  transition: opacity 0.3s;
  margin-bottom: 0.5rem;
}
.ms-footer-logo:hover {
  opacity: 1;
}
.ms-footer p {
  color: #64748b;
  font-size: 0.95rem;
  margin: 0;
}
.ms-footer-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
}
.ms-footer-links a {
  color: #64748b;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.ms-footer-links a:hover {
  color: var(--primary);
}
.ms-footer-credit {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: #94a3b8;
}
.ms-footer-credit a {
  color: var(--text-main);
  font-weight: 600;
  text-decoration: none;
}
.ms-footer-credit a:hover {
  text-decoration: underline;
}

@media (min-width: 768px) {
  .ms-footer-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  .ms-footer-links {
    margin-top: 0;
  }
  .ms-footer-credit {
    margin-top: 0;
  }
}

/* --- Trust Signals (E-E-A-T) --- */
.ms-trusted-by { text-align: center; margin-top: -1.5rem; margin-bottom: 4rem; }
.ms-trusted-by p { font-size: 0.85rem; color: #94a3b8; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem; }
.ms-trusted-by .logos { display: flex; justify-content: center; gap: 2rem; align-items: center; flex-wrap: wrap; opacity: 0.5; filter: grayscale(100%); transition: all 0.3s ease; }
.ms-trusted-by .logos:hover { opacity: 0.8; filter: grayscale(50%); }
.ms-trusted-by .logos span { font-size: 1.2rem; font-weight: 800; font-family: sans-serif; }

.ms-trust-badges { display: flex; justify-content: center; gap: 1.5rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(0,0,0,0.05); flex-wrap: wrap; }
.ms-trust-badge { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: #64748b; font-weight: 500; }
.ms-trust-badge svg { width: 18px; height: 18px; color: var(--success); }

.ms-author-box { background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%); border: 1px solid #e2e8f0; border-radius: var(--radius); padding: 2rem; display: flex; gap: 1.5rem; align-items: center; margin-top: 4rem; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); }
.ms-author-icon { width: 60px; height: 60px; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ms-author-icon svg { width: 30px; height: 30px; }
.ms-author-text h4 { margin: 0 0 0.5rem 0; font-size: 1.1rem; color: var(--text-main); }
.ms-author-text p { margin: 0; font-size: 0.95rem; color: #475569; }
.ms-author-text a { color: var(--primary); text-decoration: none; font-weight: 600; }
.ms-author-text a:hover { text-decoration: underline; }
