:root {
  --blue: #1d4ed8;
  --blue-dark: #1e3a8a;
  --blue-light: #eff6ff;
  --teal: #0d9488;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e2e5ea;
  --bg-alt: #f8f9fb;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(30, 58, 138, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text); background: #fff; line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 22px; border-radius: 8px; font-size: 15px; font-weight: 600; border: none; cursor: pointer; transition: all .15s ease; }
.btn-primary { background: linear-gradient(135deg, var(--teal), var(--blue)); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-outline { background: #fff; color: var(--blue-dark); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn.block { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.brand img { height: 44px; width: auto; display: block; }
.site-nav { display: flex; gap: 28px; margin-left: auto; }
.site-nav a { font-size: 14px; font-weight: 600; color: var(--muted); }
.site-nav a:hover { color: var(--blue-dark); }
.nav-cta { margin-left: 8px; padding: 9px 18px; font-size: 13px; }
.nav-intranet { padding: 9px 16px; font-size: 13px; white-space: nowrap; }
.site-nav .mobile-only-link { display: none; }
.menu-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--blue-dark); }

/* Hero */
.hero { background: linear-gradient(160deg, var(--blue-light), #fff 60%); padding: 72px 0 56px; }
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; font-weight: 700; color: var(--teal); margin-bottom: 10px; }
.hero h1 { font-size: 40px; line-height: 1.15; margin: 0 0 18px; color: var(--blue-dark); }
.hero .lead { font-size: 16px; color: var(--muted); margin: 0 0 28px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 22px; display: flex; flex-direction: column; gap: 20px; }
.stat-num { font-size: 30px; font-weight: 800; color: var(--blue-dark); }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* Trust bar (ChileCompra) */
.trust-bar { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 22px 0; }
.trust-bar-inner { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; text-align: center; }
.trust-logo { height: 40px; width: auto; }
.trust-bar-inner p { margin: 0; font-size: 14.5px; color: var(--text); }
.trust-bar-inner p strong { color: var(--blue-dark); }

/* Sections */
.section { padding: 76px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { font-size: 30px; margin: 0 0 12px; color: var(--blue-dark); }
.section-sub { color: var(--muted); font-size: 15px; margin: 0; }

/* Products */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 20px; transition: box-shadow .15s ease, transform .15s ease; }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.product-icon { font-size: 28px; margin-bottom: 10px; }
.product-card h3 { font-size: 16px; margin: 0 0 8px; color: var(--blue-dark); }
.product-card p { font-size: 13.5px; color: var(--muted); margin: 0; }
.products-cta { text-align: center; margin-top: 44px; }
.products-cta p { color: var(--muted); margin: 0 0 14px; font-size: 15px; }

/* Nosotros */
.nosotros-inner { max-width: 760px; margin: 0 auto; text-align: left; }
.nosotros-text h2 { font-size: 30px; margin: 0 0 18px; color: var(--blue-dark); }
.nosotros-text p { color: var(--text); font-size: 15.5px; margin: 0 0 16px; }
.check-list { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 10px; }
.check-list li { padding-left: 28px; position: relative; font-size: 14.5px; color: var(--text); }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--teal); font-weight: 800; }

/* Contacto */
.contacto-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contacto-info h2 { font-size: 28px; margin: 10px 0 12px; color: var(--blue-dark); }
.contact-list { margin-top: 28px; display: flex; flex-direction: column; gap: 18px; }
.contact-label { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; margin-bottom: 3px; }
.contact-value { font-size: 15px; color: var(--text); margin-top: 2px; }
.contact-value a { color: var(--blue); font-weight: 600; }
.contact-value a:hover { text-decoration: underline; }

.contact-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.contact-form .field { margin-bottom: 16px; }
.contact-form label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 5px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 7px; font-size: 14px; font-family: inherit; outline: none; resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-light); }
.form-note { font-size: 12px; color: var(--muted); margin: 10px 0 0; text-align: center; }

/* Footer */
.site-footer { background: var(--blue-dark); color: #fff; padding: 40px 0 20px; margin-top: 20px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,0.15); }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { height: 30px; width: auto; display: block; }
.footer-name { font-weight: 700; font-size: 15px; }
.footer-rut { font-size: 12px; color: rgba(255,255,255,0.7); margin-top: 2px; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.8); }
.footer-links a:hover { color: #fff; }
.footer-copy { text-align: center; font-size: 12px; color: rgba(255,255,255,0.55); margin-top: 18px; }

/* Responsive */
@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: row; flex-wrap: wrap; }
  .stat { flex: 1 1 40%; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .contacto-inner { grid-template-columns: 1fr; }
  .site-nav { position: fixed; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 16px 24px; border-bottom: 1px solid var(--border); display: none; gap: 4px; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 0; border-bottom: 1px solid var(--border); }
  .site-nav .mobile-only-link { display: block; color: var(--blue); }
  .menu-toggle { display: block; }
  .nav-cta { display: none; }
  .nav-intranet { display: none; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 30px; }
  .product-grid { grid-template-columns: 1fr; }
}
