/*
 * Seal-Mec de Costa Rica — estilos propios.
 * Tokens via custom properties definidas en components/head.php
 */

body {
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: #1f2123;
  background: #fff;
}

/* ===== Topbar ===== */
.sm-topbar {
  background: var(--sm-dark);
  color: var(--sm-on-primary);
}
.sm-topbar-link {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 0.15s ease;
}
.sm-topbar-link:hover {
  color: var(--sm-accent);
}

/* ===== Navbar ===== */
.sm-navbar {
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding-top: 12px;
  padding-bottom: 12px;
}
.sm-brand { padding: 0; }
.sm-logo { height: 56px; width: auto; }
@media (max-width: 991.98px) {
  .sm-logo { height: 44px; }
}

.sm-toggler {
  border: 2px solid var(--sm-primary);
  padding: 4px 8px;
}
.sm-toggler:focus { box-shadow: none; }

.sm-nav-link {
  color: var(--sm-primary) !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 14px !important;
  border-radius: 8px;
  transition: all 0.15s ease;
  position: relative;
}
.sm-nav-link:hover {
  color: var(--sm-primary-dark) !important;
  background: var(--sm-light-bg);
}
.sm-nav-link.active {
  color: var(--sm-primary-dark) !important;
}
.sm-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 14px;
  right: 14px;
  height: 3px;
  background: var(--sm-accent);
  border-radius: 2px;
}

/* ===== Botones ===== */
.sm-btn-primary,
.btn.sm-btn-primary {
  background: var(--sm-primary);
  color: var(--sm-on-primary);
  border: 2px solid var(--sm-primary);
  font-weight: 600;
  padding: 10px 22px;
  transition: all 0.15s ease;
}
.sm-btn-primary:hover {
  background: var(--sm-primary-dark);
  border-color: var(--sm-primary-dark);
  color: var(--sm-on-primary);
}

.sm-btn-accent,
.btn.sm-btn-accent {
  background: var(--sm-accent);
  color: var(--sm-dark);
  border: 2px solid var(--sm-accent);
  font-weight: 700;
  padding: 10px 22px;
  transition: all 0.15s ease;
}
.sm-btn-accent:hover {
  background: #e6c100;
  border-color: #e6c100;
  color: var(--sm-dark);
}

.sm-btn-outline-light,
.btn.sm-btn-outline-light {
  background: transparent;
  border: 2px solid var(--sm-on-primary);
  color: var(--sm-on-primary);
  font-weight: 600;
  padding: 10px 22px;
}
.sm-btn-outline-light:hover {
  background: var(--sm-on-primary);
  color: var(--sm-primary);
}

.sm-btn-outline-dark,
.btn.sm-btn-outline-dark {
  background: transparent;
  border: 2px solid var(--sm-primary);
  color: var(--sm-primary);
  font-weight: 600;
}
.sm-btn-outline-dark:hover {
  background: var(--sm-primary);
  color: var(--sm-on-primary);
}

/* ===== WhatsApp flotante ===== */
.sm-wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 1050;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.sm-wa-float:hover {
  transform: scale(1.08);
  color: #fff;
}

/* ===== Footer ===== */
.sm-footer {
  background: var(--sm-dark);
  color: var(--sm-on-primary);
}
.sm-footer-logo { height: 64px; width: auto; }
.sm-footer-title {
  color: var(--sm-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.sm-footer-link {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  display: inline-block;
  padding: 4px 0;
  transition: color 0.15s ease;
}
.sm-footer-link:hover {
  color: var(--sm-accent);
}
.sm-footer-contact li { margin-bottom: 6px; }
.sm-footer-bottom {
  background: #0f1011;
  color: rgba(255,255,255,0.6);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.sm-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--sm-on-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.15s ease;
}
.sm-social-btn:hover {
  background: var(--sm-accent);
  color: var(--sm-dark);
}

/* ===== Cards utility ===== */
.sm-card-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sm-card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12) !important;
}

/* ===== Text colors helper ===== */
.text-sm-primary { color: var(--sm-primary) !important; }
.text-sm-accent  { color: var(--sm-accent) !important; }
.bg-sm-primary   { background: var(--sm-primary) !important; color: var(--sm-on-primary); }
.bg-sm-dark      { background: var(--sm-dark) !important; color: var(--sm-on-primary); }
.bg-sm-accent    { background: var(--sm-accent) !important; color: var(--sm-dark); }
.bg-sm-light     { background: var(--sm-light-bg) !important; }
