/* === PALETA LOCAL === */
:root {
  --fj-green: #009b3a;
  --fj-green-dark: #017a3f;
  --fj-white: #ffffff;
}

/* === NAVBAR FRAY JORGE (STICKY) === */
.navbar-fj {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1050;  
  background-color: var(--fj-green);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.navbar-custom-fj {
  background-color: var(--fj-green);
}

body.fj-navbar-active { padding-top: 0; }

.bg-fj { background-color: var(---fj-green) !important; }

.navbar-toggler:focus,
.btn-close:focus { outline: none; box-shadow: none; }

.navbar-toggler { display: none; }

@media (min-width: 1201px) {
  .navbar-toggler { display: none !important; }
  .navbar-fj .d-lg-flex { display: flex !important; }

  .navbar-fj { height: 80px; }

  .navbar-fj .nav-link{
    color: var(--fj-white) !important;
    font-size: 1.2rem;
    padding: 0.75rem 1rem;
    transition: color .2s ease;
  }
  .navbar-fj .nav-link:hover,
  .navbar-fj .nav-link.active { color: #eaf6ef !important; }

  .navbar-fj .navbar-brand img { height: 56px; }
}

@media (min-width: 992px) and (max-width: 1200px) {
  .navbar-fj { height: 70px; }

  .navbar-fj .nav-link{
    color: var(--fj-white) !important;
    font-size: 1.0rem;
    padding: 0.5rem 0.8rem;
  }
  .navbar-fj .nav-link:hover,
  .navbar-fj .nav-link.active { color: #eaf6ef !important; }

  .navbar-fj .navbar-brand img { height: 48px; }
}

@media (max-width: 991px) {
  .navbar-toggler { display: block !important; }
  .navbar-fj .d-lg-flex { display: none !important; }
  .navbar-fj { height: 60px; }
  .navbar-fj .container-fluid { padding-inline: 16px; }
}

.modal.slide-down .modal-dialog{
  transform: translateY(-100%);
  transition: transform .4s ease-out, opacity .4s ease-out;
  opacity: 0;
  margin: 0 auto;
}
.modal.slide-down.show .modal-dialog{
  transform: translateY(0) !important;
  opacity: 1;
}

.modal-dialog{
  max-width: 600px;
  width: 90%;
  margin: 2rem auto;
}

.modal-content{
  border: none;
  border-radius: 1rem;
  padding: 2rem;
  overflow-y: auto;
  position: relative;
  height: auto;
  max-height: 90vh;
  background: var(--fj-green);
  color: var(--fj-white);
}

.modal .btn-close{
  z-index: 1056;
  position: absolute;
  top: 1rem;
  right: 1rem;
}
.modal .btn-close:focus{ outline: none; box-shadow: none; }

.modal .modal-body{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
.modal .modal-body a{
  text-decoration: none;
  font-size: 1.1rem;
  transition: all .2s ease;
  color: var(--fj-white);
}
.modal .modal-body a:hover{
  opacity: .9;
  transform: translateY(-1px);
  color: var(--fj-white);
}

#inicio,
#quienes-somos,
#contacto,
#productos { scroll-margin-top: 90px; }

@media (max-width: 767.98px){
  #inicio,
  #quienes-somos,
  #contacto { scroll-margin-top: 60px; }
}

.navbar-fj .nav-link.active {
  color: rgba(255, 255, 255, 0.55) !important;
  transition: color .2s ease;
}

.modal .modal-body a.active {
  color: rgba(255, 255, 255, 0.55) !important;
  transition: color .2s ease;
}

@media (max-width: 991.98px) {
  body { padding-top: 60px; }
}
@media (min-width: 992px) and (max-width: 1200px) {
  body { padding-top: 70px; }
}
@media (min-width: 1201px) {
  body { padding-top: 80px; }
}