/* JRM MOLEDOS - Tema rústico premium (editável via admin) */

body { font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial; }

.section-pad { padding: 64px 0; }

.hero-overlay {
  background: linear-gradient(90deg, rgba(2,6,23,0.70), rgba(2,6,23,0.20));
}

.card-elev {
  border: 0;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(2,6,23,0.08);
}

.btn-accent {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #111827 !important;
}

.footer-link {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
}
.footer-link:hover { color: #fff; text-decoration: underline; }

.badge-soft {
  background: rgba(161,98,7,0.14);
  color: #92400e;
  border: 1px solid rgba(161,98,7,0.20);
}

.img-frame {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 14px;
  background: var(--surface);
}
.img-frame img { width: 100%; height: 100%; object-fit: cover; }

/* WhatsApp floating (icon-only) */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: 32px;
  z-index: 1050;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  box-shadow: 0 12px 30px rgba(2,6,23,0.25);
  text-decoration: none;
}
.wa-float:hover { filter: brightness(0.95); color:#fff; }

/* ScrollSpy active */
.navbar .nav-link.active {
  color: #fff !important;
  background: rgba(255,255,255,0.14);
  border-radius: 999px;
  padding-left: 12px;
  padding-right: 12px;
}

/* Tables and forms */
.form-control, .form-select { border-radius: 12px; }

/* Header above hero and dropdown visibility */
#siteNav { position: sticky; top:0; z-index: 2000; }
.navbar { position: relative; z-index: 2001; }
.navbar .dropdown-menu { z-index: 2002; }
#heroCarousel, .hero-overlay { z-index: 0 !important; }

/* Nav pill container (desktop) */
.nav-pill-container {
  background: var(--catbar-bg);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 20px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
}

/* Category bar */
#catBar { background: var(--primary); }
#catBar .catbar-inner { background: var(--catbar-bg); border-color: rgba(255,255,255,0.18); }
#catBar .cat-btn { display:inline-block; color:#fff; text-decoration:none; padding:6px 12px; border-radius:999px; background: var(--catbar-pill-bg); }
#catBar .cat-btn:hover { background: var(--catbar-pill-hover-bg); color:#fff; }

@media (max-width: 991.98px) {
  .navbar .navbar-collapse {
    background: rgba(17, 24, 39, 0.98);
    padding: 12px;
    border-radius: 14px;
    margin-top: 10px;
  }
  #catBar { display:none; }
}

/* Custom flex navbar (jm-*) */
.jm-navbar {
  background: var(--primary);
  height: 70px;
  width: 100%;
  display: flex;
  align-items: center;
}
.jm-navbar .jm-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 20px;
  justify-content: space-between;
}
.jm-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial;
  font-weight: 700;
  font-size: 24px;
}
.jm-icon {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  background: var(--accent);
  display: inline-block;
}
.jm-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 30px;
  flex: 1;
  justify-content: center;
}
.jm-menu li { display: inline-flex; align-items: center; }
.jm-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  transition: color .2s ease;
}
.jm-menu a:hover { color: var(--accent); }
.jm-menu a.active {
  color: #fff;
  background: rgba(255,255,255,0.14);
  border-radius: 999px;
  padding: 0 12px;
}
.jm-cta {
  background: var(--accent);
  color: #111827;
  font-weight: 700;
  padding: 8px 24px;
  border-radius: 6px;
  text-decoration: none;
  transition: filter .2s ease;
  display: inline-flex;
  align-items: center;
}
.jm-cta:hover { filter: brightness(1.06); }
#jm-toggle { display: none !important; opacity: 0; position: absolute; left: -9999px; }
.jm-burger {
  display: none;
  width: 28px;
  height: 24px;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.jm-burger span {
  display: block;
  width: 100%;
  height: 3px;
  background: #fff;
  border-radius: 2px;
}
@media (max-width: 767.98px) {
  .nav-pill-container { display: none; }
  .jm-cta { display: none; }
  .jm-burger { display: inline-flex; }
  .jm-navbar { height: 60px; }
  #jm-toggle:checked ~ .nav-pill-container {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    display: block;
    background: rgba(17,24,39,0.98);
    padding: 12px 16px;
  }
  #jm-toggle:checked ~ .nav-pill-container .jm-menu {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  #jm-toggle:checked ~ .nav-pill-container .jm-menu a {
    padding: 10px 6px;
    border-radius: 6px;
  }
  #jm-toggle:checked ~ .nav-pill-container .jm-menu a:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
  }
}
