/* ====================
   GENERAL
==================== */
body {
  padding-top: 80px; /* igual al alto del navbar */
}

body.theme-dark {
  background-color: #1c1c1c;
  color: #f2f2f2;
}

body.theme-light {
  background-color: #ffffff;
  color: #111111;
}

body.theme-dark .bg-light {
  background-color: #2b2b2b !important;
  color: #f2f2f2;
}

body.theme-light .bg-light {
  background-color: #f8f9fa !important;
  color: #212529;
}

#themeToggle {
  border-color: white;
  color: white;
}

body.theme-light #themeToggle {
  border-color: #008547;
  color: #008547;
}

body.theme-light #themeToggle:hover {
  background-color: #008547;
  color: white;
}

section {
  padding-top: 100px;
  padding-bottom: 100px;
}

/* ====================
   NAVBAR
==================== */
.custom-navbar {
  background-color: #008547;
  height: 80px;
  display: flex;
  align-items: center;
}

body.theme-light .custom-navbar {
  background-color: #ffffff !important;
  border-bottom: 1px solid #ddd;
}

body.theme-light .navbar .nav-link {
  color: #008547 !important;
}

body.theme-light .navbar .nav-link:hover {
  color: #005f36 !important;
}

body.theme-light .navbar-brand span {
  color: #008547 !important;
}

.navbar-brand img {
  height: 50px;
}

.navbar-nav .nav-link {
  padding-top: 1rem;
  padding-bottom: 1rem;
  font-size: 1.1rem;
}

/* ====================
   BOTÓN PRINCIPAL
==================== */
.btn-start {
  font-size: 1.5rem;
  padding: 1rem 2rem;
  margin-top: 2rem;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-start:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  background-color: #008547;
  color: white;
}

/* ====================
   IMÁGENES Y GRIDS
==================== */
.section-img-placeholder {
  background-color: #f0f0f0;
  border: 2px dashed #ccc;
  padding: 1rem;
  margin-top: 1rem;
  border-radius: 8px;
}

.section-img-placeholder img {
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: zoom-in;
}

.image-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 4rem;
}

.image-grid img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

.image-grid img:hover {
  transform: scale(1.02);
}

@media (min-width: 768px) {
  .image-grid {
    grid-template-columns: 2fr 1fr;
    align-items: start;
  }

  .img-h {
    justify-self: start;
  }

  .img-v {
    justify-self: end;
  }
}

/* ====================
   FOOTER
==================== */
footer.bg-white {
  background-color: #f8f9fa !important;
  color: #6c757d;
}

/* ====================
   LIGHTBOX
==================== */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1050;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
}

.lightbox-content {
  display: block;
  margin: 5% auto;
  max-width: 90%;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 0 25px rgba(0,0,0,0.4);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1100;
}
/* ===========================
   PERSONALIZACIÓN VERDE MODO CLARO
=========================== */

body.theme-light h1,
body.theme-light h2,
body.theme-light h3,
body.theme-light strong {
  color: #008547;
}

body.theme-light a {
  color: #008547;
  text-decoration: none;
}

body.theme-light a:hover {
  color: #005f36;
  text-decoration: underline;
}

body.theme-light .section-img-placeholder {
  border-color: #008547;
}

body.theme-light .btn-primary {
  background-color: #008547;
  border-color: #008547;
}

body.theme-light .btn-primary:hover {
  background-color: #005f36;
  border-color: #005f36;
}

body.theme-light .text-primary {
  color: #008547 !important;
}
body.theme-light .btn-start {
  background-color: #008547 !important; /* Azul Bootstrap original */
  color: #fff !important;
  border-color: #008547 !important;
}

body.theme-light .btn-start:hover {
  background-color: #008547 !important;
  color: #000000 !important;
}

/*responsive para el nav-bar*/

@media (max-width: 991.98px) {
  .custom-navbar {
    flex-direction: column;
    height: auto;
    padding: 1rem;
    align-items: flex-start;
  }

  .navbar-brand {
    margin-bottom: 1rem;
  }

  .navbar-toggler {
    display: block;
    border: none;
    background: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
  }

  .navbar-collapse {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  .navbar-collapse.show {
    display: flex;
  }

  .navbar-nav {
    width: 100%;
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 0;
    width: 100%;
  }
}