/* Proveedoresdesuministros.com — Design system B2B */
:root {
  --navy: #0b1220;
  --navy-2: #111827;
  --slate: #1e293b;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #eff6ff;
  --green: #059669;
  --green-soft: #ecfdf5;
  --amber: #d97706;
  --border: #e2e8f0;
  --muted: #64748b;
  --text: #0f172a;
  --bg: #f8fafc;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.1);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* Nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  overflow: visible;
}
.site-nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.75rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  position: relative;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none !important;
  min-width: 0;
  flex: 1 1 auto;
  margin-right: 0.15rem;
}
.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), #0ea5e9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.3);
  flex-shrink: 0;
}
.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  line-height: 1.1;
}
.logo-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.logo-domain {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}
.nav-toggle:hover { background: var(--blue-soft); border-color: #bfdbfe; }
.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 18px;
}
.nav-toggle-bars span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.site-nav.is-open .nav-toggle-bars span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-nav.is-open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.site-nav.is-open .nav-toggle-bars span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--slate);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  text-decoration: none !important;
  white-space: nowrap;
}
.nav-links a:hover { background: var(--blue-soft); color: var(--blue); }
.nav-cta {
  background: var(--blue) !important;
  color: white !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--blue-dark) !important; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 1.35rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  text-decoration: none !important;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--blue);
  color: white !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}
.btn-primary:hover { background: var(--blue-dark); }
.btn-success {
  background: var(--green);
  color: white !important;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
}
.btn-success:hover { background: #047857; }
.btn-outline {
  background: white;
  color: var(--slate) !important;
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue) !important; background: var(--blue-soft); }
.btn-ghost {
  background: transparent;
  color: var(--slate) !important;
}
.btn-sm { padding: 0.5rem 0.9rem; font-size: 0.85rem; }
.btn-lg { padding: 0.95rem 1.6rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* Layout */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 3.5rem 0; }
.section-sm { padding: 2rem 0; }

/* Hero */
.hero {
  background: linear-gradient(160deg, #0b1220 0%, #1e3a5f 45%, #1d4ed8 100%);
  color: white;
  padding: 4rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(56, 189, 248, 0.15), transparent 50%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}
.hero h1 {
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero-lead {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 560px;
  margin: 0 0 1.75rem;
  line-height: 1.65;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.85rem;
  opacity: 0.85;
}
.hero-trust span { display: flex; align-items: center; gap: 0.4rem; }

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}
.card-elevated {
  box-shadow: var(--shadow-lg);
  border: none;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: -2.5rem;
  position: relative;
  z-index: 2;
}
.kpi {
  text-align: center;
  padding: 1.35rem 1rem;
}
.kpi-value {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.kpi-value.green { color: var(--green); }
.kpi-label { font-size: 0.85rem; color: var(--muted); margin-top: 0.25rem; }

/* Model / features */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}
.feature {
  text-align: center;
  padding: 1.5rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.feature:hover {
  border-color: #bfdbfe;
  box-shadow: var(--shadow);
}
.feature-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 0.85rem;
  border-radius: 14px;
  background: var(--blue-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.feature h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.feature p { margin: 0; font-size: 0.88rem; color: var(--muted); }

.cat-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 0.75rem;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  transition: border-color 0.2s, transform 0.15s;
  cursor: default;
}
.cat-item:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}
.cat-item .ico { font-size: 1.5rem; display: block; margin-bottom: 0.35rem; }

/* Section headers */
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2rem;
}
.section-head h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.section-head p { margin: 0; color: var(--muted); }

/* Forms */
.input, .textarea, select.input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  background: white;
  transition: border-color 0.15s, box-shadow 0.15s;
  margin-bottom: 0.65rem;
}
.input:focus, .textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.textarea { min-height: 90px; resize: vertical; }
.label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--slate); margin-bottom: 0.3rem; }

/* FAQ */
.faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 0.6rem;
  overflow: hidden;
}
.faq-q {
  padding: 1rem 1.15rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-q:hover { background: var(--bg); }
.faq-a {
  display: none;
  padding: 0 1.15rem 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-q span { transform: rotate(45deg); }

/* Testimonials */
.testimonial {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  font-size: 0.9rem;
  color: var(--slate);
}
.testimonial cite {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Trust bar */
.trust-bar {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--slate);
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: #94a3b8;
  padding: 2.5rem 0 1.5rem;
  margin-top: 3rem;
  font-size: 0.875rem;
}
.site-footer a { color: #93c5fd; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand strong { color: white; font-size: 1.05rem; display: block; margin-bottom: 0.5rem; }
.footer-col h4 { color: white; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 0.75rem; }
.footer-col a { display: block; margin-bottom: 0.4rem; color: #94a3b8; }
.footer-col a:hover { color: #93c5fd; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.footer-icons {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.footer-icons a {
  font-size: 1.4rem;
  opacity: 0.7;
  transition: opacity 0.2s;
  text-decoration: none !important;
}
.footer-icons a:hover { opacity: 1; }

/* Utility */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.muted { color: var(--muted); }
.badge {
  display: inline-block;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}
.badge-blue {
  background: var(--blue-soft);
  color: var(--blue);
}

/* Responsive */




/* ===== MOBILE NAV (forzado) ===== */
@media (max-width: 1024px) {
  .site-nav {
    z-index: 1000;
    overflow: visible;
  }
  .site-nav-inner {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0.55rem 0.85rem !important;
    gap: 0.5rem !important;
  }
  .logo {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: calc(100% - 52px) !important;
    margin: 0 !important;
  }
  .logo-mark {
    width: 34px !important;
    height: 34px !important;
    font-size: 0.7rem !important;
    flex-shrink: 0 !important;
  }
  .logo-text {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
  }
  .logo-title {
    font-size: 0.72rem !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    overflow: visible !important;
    word-break: break-word !important;
  }
  .logo-domain {
    font-size: 0.62rem !important;
    white-space: nowrap !important;
  }
  /* Hamburguesa visible */
  .nav-toggle {
    display: inline-flex !important;
    flex-shrink: 0 !important;
    width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    order: 2 !important;
  }
  /* Páginas ocultas hasta abrir */
  .nav-links {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0.5rem 0.75rem 0.85rem !important;
    background: #fff !important;
    border-bottom: 1px solid var(--border) !important;
    box-shadow: 0 16px 36px rgba(15,23,42,0.14) !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 0.15rem !important;
    z-index: 1001 !important;
  }
  .site-nav.is-open .nav-links {
    display: flex !important;
  }
  .nav-links a {
    display: block !important;
    width: 100% !important;
    padding: 0.9rem 1rem !important;
    font-size: 1rem !important;
    white-space: normal !important;
    border-radius: 10px !important;
    box-sizing: border-box !important;
  }
  .nav-links a.nav-cta {
    text-align: center !important;
    margin-top: 0.35rem !important;
  }
  .nav-links .nav-hide {
    display: block !important;
  }
}

@media (min-width: 1025px) {
  .nav-toggle { display: none !important; }
  .nav-links {
    display: flex !important;
    position: static !important;
    flex-direction: row !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    width: auto !important;
  }
}

@media (max-width: 900px) {
  .kpi-grid, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .section { padding: 2.5rem 0; }
  .wrap { padding: 0 1rem; }
  .section-head h2 { font-size: 1.35rem; }
  .hero h1 { font-size: 1.65rem; line-height: 1.2; }
  .hero-lead { font-size: 0.98rem; }
  .hero-trust {
    flex-wrap: wrap;
    gap: 0.45rem;
  }
  .hero-trust span {
    font-size: 0.72rem;
    padding: 0.3rem 0.55rem;
  }
  .share-bar {
    flex-direction: column;
    align-items: stretch !important;
  }
  .share-bar .share-label {
    text-align: center;
    margin: 0 0 0.25rem;
  }
  .share-bar .btn-share {
    width: 100%;
    justify-content: center;
  }
  .card { padding: 1.15rem; }
  .feature { padding: 1.15rem; }
}

@media (max-width: 600px) {
  .hero {
    padding: 2rem 0 1.75rem;
  }
  .hero-badge {
    font-size: 0.72rem;
    padding: 0.3rem 0.7rem;
    margin-bottom: 0.9rem;
    max-width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
  }
  .kpi-grid {
    margin-top: -1.25rem;
    gap: 0.65rem;
  }
  .kpi { padding: 1rem 0.85rem; }
  .kpi-value { font-size: 1.35rem; }
  .kpi-label { font-size: 0.78rem; }
  .hero-actions {
    flex-direction: column;
    gap: 0.65rem;
  }
  .hero-actions .btn {
    width: 100%;
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
  }
  .grid-4 { grid-template-columns: 1fr; }
  .btn-lg { padding: 0.9rem 1.15rem; font-size: 0.98rem; }
  .site-footer { padding: 2rem 0 5.5rem; /* room for cookie bar */ }
  .footer-icons {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-start;
  }
  .footer-icons a {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
  }
}

/* Safe areas (iPhone notch / home bar) */
@supports (padding: max(0px)) {
  .site-nav-inner {
    padding-left: max(0.9rem, env(safe-area-inset-left));
    padding-right: max(0.9rem, env(safe-area-inset-right));
  }
  .cookie-banner {
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }
  .pwa-install-banner {
    bottom: max(1rem, env(safe-area-inset-bottom));
  }
}

/* Tool-specific (form + simulator) */
.tool-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 800px) {
  .tool-layout { grid-template-columns: 1fr; }
}
.req-box {
  background: var(--blue-soft);
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 1rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.req-box ul { margin: 0.4rem 0 0; padding-left: 1.2rem; }
#firma {
  border: 1px dashed var(--border);
  border-radius: 10px;
  background: #fafafa;
  width: 100%;
  touch-action: none;
}
.range-wrap { margin: 1rem 0; }
.range-wrap input[type=range] { width: 100%; accent-color: var(--blue); }
.sim-value {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--blue);
  margin: 0.5rem 0;
}
.sim-result {
  background: var(--blue-soft);
  border-radius: 10px;
  padding: 0.75rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 0.75rem;
}
.table-card { overflow-x: auto; }
.table-card table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.table-card th, .table-card td { padding: 0.5rem; border-bottom: 1px solid var(--border); text-align: left; }
.table-card thead { background: var(--bg); }
@media (max-width: 767px) {
  .table-card thead { display: none; }
  .table-card tr {
    display: block;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    background: #fafafa;
  }
  .table-card td {
    display: flex;
    justify-content: space-between;
    border: none;
    padding: 0.3rem 0;
  }
  .table-card td[data-label]::before {
    content: attr(data-label);
    font-weight: 700;
    margin-right: 0.5rem;
  }
}
.fade-up { opacity: 0; transform: translateY(24px); transition: all 0.7s ease; }
.fade-up.visible { opacity: 1; transform: none; }

@media (max-width: 600px) {
  input, select, textarea { font-size: 16px !important; }
}

@media (max-width: 480px) {
  .logo-title { font-size: 0.7rem; }
  .logo-domain { font-size: 0.58rem; }
  .logo-mark { width: 28px; height: 28px; font-size: 0.6rem; }
  .site-nav-inner { padding: 0.45rem 0.65rem; }
  .nav-toggle { width: 40px; height: 40px; }
}
  .logo-domain { font-size: 0.65rem; }
  .site-nav-inner { padding: 0.65rem 0.75rem; }
}
