/* -------------------------------------
   1. RESETEO Y TIPOGRAFÍA
-------------------------------------- */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background: #fff;
  color: #333;
}

h2.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* -------------------------------------
   2. NAVBAR FIJA Y ESTILO
-------------------------------------- */
/* Navbar mejorado */


.navbar {
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
  padding: 0.8rem 1.5rem;
  position: fixed;
  width: 100%;
  z-index: 1030;
}

.navbar.scrolled {
  background-color: rgba(0, 0, 0, 0.95);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.navbar-brand {
  font-weight: 700;
  color: #fff;
  font-size: 1.5rem;
  letter-spacing: 1.2px;
  transition: color 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.navbar-brand:hover {
  color: #ffca28;
  transform: scale(1.05);
}

.navbar-brand img {
  max-height: 40px;
  transition: transform 0.3s ease;
}

.navbar-brand:hover img {
  transform: rotate(10deg) scale(1.1);
}

.navbar-nav .nav-link {
  color: #f0f0f0;
  font-weight: 600;
  margin: 0 15px;
  padding: 8px 5px;
  font-size: 1rem;
  position: relative;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 3px;
  bottom: 0;
  left: 0;
  background-color: #ffca28;
  transition: width 0.3s ease;
  border-radius: 2px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #ffca28;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 100%;
}

.navbar-toggler {
  border: none;
  outline: none;
}

.navbar-toggler-icon {
  filter: invert(1);
  transition: filter 0.3s ease;
}

.navbar-toggler:hover .navbar-toggler-icon {
  filter: invert(0.75) sepia(1) saturate(5) hue-rotate(20deg);
}
.navbar-brand {
  font-weight: 700;
  color: #fff;
  font-size: 1.25rem; /* antes 1.5rem */
  letter-spacing: 1.2px;
  transition: color 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.navbar-nav .nav-link {
  color: #f0f0f0;
  font-weight: 600;
  margin: 0 15px;
  padding: 8px 5px;
  font-size: 0.9rem; /* antes 1rem */
  position: relative;
  transition: color 0.3s ease;
}
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 3px;
  bottom: 0;
  left: 0;
  background-color: #ffca28;
  transition: width 0.3s ease;
  border-radius: 2px;
}

/* Switch toggle */
.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 22px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: relative;
  cursor: pointer;
  background-color: rgba(255 255 255 / 0.22);
  border-radius: 34px;
  height: 100%;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  box-sizing: border-box;
  user-select: none;
}

.slider .icon {
  font-size: 13px;
  color: #ffd54f;
  transition: color 0.3s ease;
  user-select: none;
}

.slider .luna {
  color: #90caf9;
}

.slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 2px;
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px rgba(255 255 255 / 0.7);
  user-select: none;
}

input:checked + .slider {
  background-color: rgba(0 0 0 / 0.45);
}

input:checked + .slider::before {
  transform: translateX(24px);
}

input:checked + .slider .sol {
  color: #aaa;
}

input:checked + .slider .luna {
  color: #bbdefb;
}

/* Responsive: ajustar navbar en móviles */
@media (max-width: 768px) {
  .navbar-nav {
    flex-direction: column;
    gap: 0.8rem;
    background-color: var(--color-navbar-bg);
    padding: 1rem 0;
    margin: 0;
  }
  .navbar-nav .nav-link {
    font-size: 1.1rem;
  }
}

@media (max-width: 420px) {
  .navbar-nav {
    flex-direction: column;
    gap: 0.8rem;
    background-color: var(--color-navbar-bg);
    padding: 1rem 0;
    margin: 0;
  }
  .navbar-nav .nav-link {
    font-size: 1.1rem;
  }
}
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  border-radius: 24px;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
}

.slider .icon {
  color: #f39c12; /* sol amarillo */
  font-size: 14px;
}

.slider .luna {
  color: #34495e; /* luna azul oscuro */
}

input:checked + .slider {
  background-color: #333;
}

/* -------------------------------------
   3. SECCIÓN PARALLAX PRINCIPAL + SLIDER
-------------------------------------- */
.parallax.section {
  position: relative;
  width: 100%;
  padding-top: 70px; /* espacio para navbar */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: center;
  background: #111;
  overflow: hidden;
}

/* Contenedor del carrusel con altura automática según imagen */
.parallax.section .carousel {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
}

/* Slides */
.parallax.section .slide {
  display: none;
  width: 100%;
  justify-content: center;
  align-items: center;
}

.parallax.section .slide.active {
  display: flex;
}

/* Imagen: ocupa todo el ancho y se adapta en altura sin recorte */
.parallax.section .slide img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  max-height: 100vh;
  user-select: none;
  pointer-events: none;
  filter: brightness(0.95);
  transition: filter 0.5s ease;
}

/* Texto encima */
.parallax.section .text-overlay {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90%;
  color: #fff;
  text-align: center;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.85);
  pointer-events: none;
  user-select: none;
  z-index: 3;
}

.parallax.section .text-overlay h2 {
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 0.3em;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.parallax.section .text-overlay p {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  max-width: 600px;
  margin: 0 auto;
}

/* Botones */
.parallax.section .prev,
.parallax.section .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: none;
  padding: 12px 18px;
  font-size: 2.5rem;
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
  z-index: 5;
  user-select: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

.parallax.section .prev:hover,
.parallax.section .next:hover {
  background: #ffc107;
  color: #000;
  transform: translateY(-50%) scale(1.1);
}

.parallax.section .prev {
  left: 20px;
}

.parallax.section .next {
  right: 20px;
}

/* Thumbnails */
.thumbnail-container {
  margin: 20px auto 0;
  max-width: 1200px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  user-select: none;
  padding: 0 10px;
}

.thumbnail {
  width: 100px;
  height: 66px;
  object-fit: cover;
  border-radius: 8px;
  opacity: 0.65;
  border: 3px solid transparent;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.15);
}

.thumbnail:hover {
  opacity: 1;
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgb(0 0 0 / 0.3);
}

.thumbnail.active-thumb {
  opacity: 1;
  border-color: #ffc107;
  box-shadow: 0 0 14px #ffc107aa;
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
  .parallax.section .text-overlay h2 {
    font-size: 2rem;
  }
  .parallax.section .text-overlay p {
    font-size: 1rem;
  }
  .thumbnail {
    width: 70px;
    height: 46px;
  }
  .parallax.section .prev,
  .parallax.section .next {
    font-size: 2rem;
    padding: 10px 14px;
  }
}

@media (max-width: 400px) {
  .parallax.section .text-overlay {
    bottom: 6%;
  }
  .parallax.section .text-overlay h2 {
    font-size: 1.6rem;
  }
  .parallax.section .text-overlay p {
    font-size: 0.9rem;
  }
  .thumbnail {
    width: 60px;
    height: 40px;
  }
}


/* -------------------------------------
   4. CAROUSELS DE SECCIONES INTERNAS (Bootstrap)
-------------------------------------- */
.card .carousel-inner img {
  height: 300px;
  object-fit: cover;
  border-radius: 4px 0 0 4px;
}
@media (max-width: 768px) {
  .card .carousel-inner img {
    height: 220px;
    border-radius: 4px 4px 0 0;
  }
}

/* -------------------------------------
   5. BOTÓN "VER MÁS"
-------------------------------------- */
.btn-ver-mas {
  display: inline-block;
  padding: 10px 20px;
  background: #c49b66;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s ease;
  margin-top: 10px;
}
.btn-ver-mas:hover {
  background: #a87c50;
}



/* -------------------------------------
   7. RESPONSIVE AJUSTES GENERALES
-------------------------------------- */
@media (max-width: 992px) {
  .parallax.section .text-overlay h2 {
    font-size: 1.8rem;
  }
  .parallax.section .text-overlay p {
    font-size: 1rem;
  }
}
@media (max-width: 768px) {
  .thumbnail {
    width: 70px;
    height: 45px;
  }
}



/* Footer - Redes sociales */
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  user-select: none;
  color: white;
  font-size: 1.4rem;
  text-decoration: none;
  transition: filter 0.3s ease, transform 0.25s ease;
}

.social-icon i {
  pointer-events: none;
  filter: drop-shadow(0 0 1px rgba(0,0,0,0.15));
}

/* Colores redes */
.social-icon.facebook {
  background-color: #1877F2;
  color: #d4d4d4;
  transition: color 0.3s ease, filter 0.3s ease, transform 0.25s ease;
}

.social-icon.facebook:hover,
.social-icon.facebook:focus {
  color: #f1f1f1;
  filter: brightness(0.85);
  transform: scale(1.2);
  outline: none;
}

.social-icon.twitter {
  background-color: #1DA1F2;
}

.social-icon.twitter:hover,
.social-icon.twitter:focus {
  filter: brightness(0.85);
  transform: scale(1.2);
  outline: none;
}

.social-icon.linkedin {
  background-color: #0077B5;
}

.social-icon.linkedin:hover,
.social-icon.linkedin:focus {
  filter: brightness(0.85);
  transform: scale(1.2);
  outline: none;
}

.social-icon.instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.social-icon.instagram:hover,
.social-icon.instagram:focus {
  filter: brightness(0.85);
  transform: scale(1.2);
  outline: none;
}

.social-icon.whatsapp {
  background-color: #25D366;
}

.social-icon.whatsapp:hover,
.social-icon.whatsapp:focus {
  filter: brightness(0.85);
  transform: scale(1.2);
  outline: none;
}


/* Footer base */
footer.footer-custom {
  background-color: #f8f9fa;
  padding: 3rem 1rem 1rem;
  color: #212529;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

footer.footer-custom h2,
footer.footer-custom h5 {
  color: #212529;
}

footer.footer-custom a {
  color: #212529;
  transition: color 0.3s ease;
}

footer.footer-custom a:hover,
footer.footer-custom a:focus {
  color: #0d6efd;
  text-decoration: underline;
  outline: none;
}

footer.footer-custom hr.border-secondary {
  border-color: #6c757d;
  opacity: 0.2;
  margin: 2rem 0 1rem;
}

.text-primary {
  color: #0d6efd !important;
}

/* Social icons container */
.social-icons-footer {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

/* -------------------------------------
   6. FOOTER PERSONALIZADO
-------------------------------------- */
.footer-custom {
  background: #f8f9fa;
  padding: 30px 0;
  font-size: 0.95rem;
}
.footer-custom h2 {
  font-size: 1.8rem;
  font-weight: 700;
}
.footer-custom h5 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  font-weight: 600;
}
.footer-custom ul li {
  margin-bottom: 8px;
}
.footer-custom a:hover {
  color: #c49b66;
}
.footer-custom hr {
  margin: 20px 0;
}
/* No afectar botones al pasar el mouse */
.footer-custom a.btn:hover,
.footer-custom a.btn:focus {
  color: inherit !important; /* deja que Bootstrap maneje el color */
  text-decoration: none;
}

/* Responsive */
@media (max-width: 767.98px) {
  footer.footer-custom .row > div {
    margin-bottom: 1.5rem;
  }
}

/* CONTENEDOR DIRECTORIO */

@import url('https://fonts.googleapis.com/css2?family=Gloock&family=Merriweather:wght@400;700&display=swap');

/* CONTENEDOR PRINCIPAL */
.icon-links-wrapper {
  max-width: 960px;
  margin: 2rem auto;
  padding: 2rem 3rem;
  background: linear-gradient(145deg, #f8f3eb, #ede1d0);
  border: 4px solid #7f5539;
  border-radius: 25px;
  box-shadow: 0 10px 20px rgba(245, 243, 242, 0.6);
  position: relative;
  overflow: visible;
  animation: glowFrame 6s ease-in-out infinite alternate;
}

.icon-links-wrapper::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background: radial-gradient(circle, #e9dcc7 0%, transparent 70%);
  animation: moveTexture 15s linear infinite;
  z-index: 0;
  opacity: 0.25;
}

@keyframes moveTexture {
  0% { transform: translate(0,0); }
  100% { transform: translate(50%,50%); }
}

@keyframes glowFrame {
  0% { box-shadow: 0 0 10px #000000aa, 0 0 25px #000000aa; }
  100% { box-shadow: 0 0 25px #a17f52cc, 0 0 45px #080808cc; }
}

/* TÍTULO */
.icon-links-title {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: #7f5539;
  text-shadow: 1px 1px 0 #c7b49e;
  font-family: 'Gloock', serif;
  text-transform: uppercase;
}

/* CONTENEDOR ÍCONOS */
.icon-links-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  z-index: 2;
}

.side-group {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  width: 25%;
}

.center-group {
  width: 20%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* BOTONES */
.icon-link {
  background: #f3e9dc;
  padding: 1.6rem 1.2rem;
  border-radius: 18px;
  border: 2.5px solid #7f5539;
  box-shadow: 4px 4px 8px #bda685, inset 0 0 6px #fff5e1;
  text-align: center;
  color: #4a3b2b;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  transition: all 0.4s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  opacity: 1;
  transform: translateY(0);
}

.icon-link i {
  font-size: 3rem;
  margin-bottom: 0.6rem;
  color: #7f5539;
  filter: drop-shadow(1px 1px 1px #bda685);
  transition: transform 0.4s ease, color 0.4s ease;
}

.icon-link span {
  color: #5e4b3c;
  font-style: italic;
  transition: color 0.4s ease;
}

/* EFECTO HOVER */
.icon-link:hover {
  background: #e9d8c5;
  transform: translateY(-8px) scale(1.07);
  box-shadow: 6px 6px 20px #a17f52aa, inset 0 0 12px #fff2dd;
}

.icon-link:hover i {
  transform: rotate(-8deg) scale(1.15);
  color: #9c6b35;
}

.icon-link:hover span {
  color: #7f5539;
  font-weight: 700;
  text-shadow: 0 0 5px #a17f52bb;
}

/* SECCIONES DE PRUEBA */
section {
  padding: 80px 20px;
  font-size: 1.5rem;
  text-align: center;
  background: #fff;
  border-bottom: 2px solid #ccc;
}

/* -------------------------------------
   RESPONSIVE COMPLETO
-------------------------------------- */

/* <= 992px */
@media (max-width: 992px) {
  .icon-links-wrapper {
    padding: 1.5rem 2rem;
    max-width: 90%;
  }
  .icon-links-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
  }
  .icon-links-title span {
    font-size: 2.3rem; /* un poco menor o igual */
  }
  .icon-link {
    padding: 1.2rem 1rem;
    font-size: 1rem;
  }
  .icon-link i {
    font-size: 2.5rem;
  }
}

/* <= 768px */
@media (max-width: 768px) {
  .icon-links-wrapper {
    padding: 1rem 1.5rem;
  }
  .icon-links-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }
  .icon-links-title span {
    font-size: 1.8rem;
  }
  .icon-link {
    padding: 1rem 0.8rem;
    font-size: 0.95rem;
  }
  .icon-link i {
    font-size: 2rem;
  }
}

/* <= 576px */
@media (max-width: 576px) {
  .icon-links-wrapper {
    padding: 0.8rem 1rem;
    max-width: 95%;
  }
  .icon-links-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }
  .icon-links-title span {
    font-size: 1.5rem;
  }
  .icon-link {
    padding: 0.8rem 0.5rem;
    font-size: 0.9rem;
  }
  .icon-link i {
    font-size: 1.8rem;
  }
}

/* Estilo base para el span */
.icon-links-title span {
  font-size: 1.2em; /* un poco más grande o según diseño */
}

/* <= 992px */
@media (max-width: 992px) {
  .icon-links-title span {
    font-size: 0.5.0em; /* más pequeño */
  }
}

/* <= 768px */
@media (max-width: 768px) {
  .icon-links-title span {
    font-size: 0.75em; /* aún más pequeño */
  }
}

/* <= 576px */
@media (max-width: 576px) {
  .icon-links-title span {
    font-size: 0.50em; /* más pequeño aún */
  }
}

 /* -------------------------------------
   modo noche
-------------------------------------- */
.switch {
  position: relative;
  display: inline-block;
  width: 100px;
  height: 48px;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  /* Fondo semi transparente para efecto vidrio */
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  overflow: visible;
}

/* Ocultar checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* Fondo del slider - casi transparente */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg,
    rgba(255, 217, 59, 0.1),
    rgba(63, 136, 197, 0.1));
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  font-size: 26px;
  transition: background 0.6s ease, box-shadow 0.6s ease;
  box-shadow:
    0 0 3px rgba(255, 217, 59, 0.07),
    inset 0 0 6px rgba(63, 136, 197, 0.07);
  overflow: visible;
  z-index: 1;
}

/* Bola del toggle */
.slider::before {
  content: "";
  position: absolute;
  height: 40px;
  width: 40px;
  left: 4px;
  bottom: 4px;
  background: #fff;
  border-radius: 50%;
  box-shadow:
    0 0 4px rgba(255, 217, 59, 0.25),   /* brillo muy suave */
    0 2px 6px rgba(0,0,0,0.15);         /* sombra muy suave */
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s ease;
  z-index: 4;
}

/* Estado checked: fondo oscuro muy translúcido */
.switch input:checked + .slider {
  background: linear-gradient(90deg,
    rgba(30, 41, 59, 0.08),
    rgba(15, 23, 42, 0.08));
  box-shadow:
    0 0 3px rgba(100, 181, 246, 0.08),  /* glow muy suave */
    inset 0 0 4px rgba(30, 64, 175, 0.04);
}

.switch input:checked + .slider::before {
  transform: translateX(50px);
  box-shadow:
    0 0 5px rgba(100, 181, 246, 0.25),  /* glow muy suave */
    0 3px 10px rgba(0,0,0,0.2);
}

/* Iconos - estilos base */
.slider .icon {
  pointer-events: none;
  user-select: none;
  transition: opacity 0.5s ease, transform 0.5s ease, filter 0.5s ease;
  z-index: 3;
  text-shadow:
    0 0 5px rgba(0,0,0,0.1);
  filter: drop-shadow(0 0 2px rgba(0,0,0,0.07));
}

/* Sol: dorado vibrante con brillo muy suave */
.slider .sol {
  color: #FFD93B;
  text-shadow:
    0 0 3px #FFD93B88,
    0 0 6px #FFC107aa,
    0 0 9px #FFC107bb;
  transform-origin: center center;
  filter: drop-shadow(0 0 3px #FFD93Baa);
}

/* Luna: azul brillante con glow muy suave */
.slider .luna {
  color: #64B5F6;
  text-shadow:
    0 0 3px #64B5F688,
    0 0 9px #64B5F6aa,
    0 0 14px #64B5F6aa;
  transform-origin: center center;
  filter: drop-shadow(0 0 4px #64B5F6aa);
}

/* Opacidad y escala animadas para fade & zoom */
/* Cuando no está checked: sol visible, luna tenue y pequeña */
.switch input:not(:checked) + .slider .sol {
  opacity: 1;
  transform: scale(1);
  filter: drop-shadow(0 0 4px #FFD93Baa);
}

.switch input:not(:checked) + .slider .luna {
  opacity: 0.15;
  transform: scale(0.75);
  filter: none;
}

/* Cuando está checked: luna visible, sol tenue y pequeña */
.switch input:checked + .slider .sol {
  opacity: 0.15;
  transform: scale(0.75);
  filter: none;
}

.switch input:checked + .slider .luna {
  opacity: 1;
  transform: scale(1);
  filter: drop-shadow(0 0 5px #64B5F6aa);
}



body.dark-mode {
    background-color: #1a1a1a; /* Darker background for more depth */
    color: #e0e0e0; /* Lighter text for better contrast */
    font-family: 'Segoe UI', sans-serif;
    transition: background-color 0.4s ease, color 0.4s ease; /* Smoother transition */
}

/* General text elements in dark mode */
body.dark-mode p,
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6,
body.dark-mode a,
body.dark-mode span,
body.dark-mode strong,
body.dark-mode small,
body.dark-mode label,
body.dark-mode li,
body.dark-mode .text-muted {
    color: #f0f0f0 !important; /* Brighter text for readability */
}

/* ===== Botón modo noche ===== */
.toggle-dark {
  position: fixed;
  top: 10px;
  right: 10px;
  background: #333;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  z-index: 1000;
}

/* ===== Estilos generales modo noche ===== */
body.dark-mode {
  background-color: #111;
  color: #eee;
}

body.dark-mode .section {
  background-color: #111;
}

/* ===== Carrusel modo noche ===== */
body.dark-mode .carousel .text-overlay {
  background-color: rgba(0, 0, 0, 0.6);
  color: #f1f1f1;
}

body.dark-mode .carousel button {
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
  border: none;
}

body.dark-mode .carousel button:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

/* ===== Miniaturas modo noche ===== */
body.dark-mode .thumbnail-container {
  background-color: #222;
}

body.dark-mode .thumbnail {
  border: 2px solid transparent;
  opacity: 0.7;
}

body.dark-mode .thumbnail.active-thumb {
  border-color: #fff;
  opacity: 1;
}

/* ===== Directorio en modo noche ===== *//* Estilos base para el Directorio */
body.dark-mode {
  background-color: #121212;
  color: #c3d6b7; /* verde claro suave */
}

body.dark-mode .icon-links-wrapper {
  background: linear-gradient(145deg, #1e2e1e, #172417); /* verdes oscuros */
  border: 4px solid #44b74a; /* verde vivo pero menos saturado */
  box-shadow: 0 10px 20px rgba(68, 183, 74, 0.7); /* menos opaco */
  animation: glowFrameGreenMedium 6s ease-in-out infinite alternate;
  color: #9cc68e;
  position: relative;
}

body.dark-mode .icon-links-wrapper::before {
  background: radial-gradient(circle, #44b74a 0%, transparent 70%);
  opacity: 0.25;
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  content: '';
  z-index: 0;
  animation: moveTexture 15s linear infinite;
}

body.dark-mode .icon-links-title {
  color: #44b74a;
  text-shadow: 1px 1px 3px #2c431f;
  position: relative;
  z-index: 2;
}

body.dark-mode .icon-links-container {
  position: relative;
  z-index: 2;
}

body.dark-mode .icon-link {
  background: #2c3d2c;
  border: 2.5px solid #44b74a;
  box-shadow: 4px 4px 8px #4fa552cc, inset 0 0 6px #355433cc;
  color: #9cc68e;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.6rem 1.2rem;
  border-radius: 18px;
  transition: all 0.4s ease;
  cursor: pointer;
  position: relative;
  opacity: 1;
  transform: translateY(0);
}

body.dark-mode .icon-link i {
  font-size: 3rem;
  margin-bottom: 0.6rem;
  color: #44b74a;
  filter: drop-shadow(1px 1px 2px #2c431f);
  transition: transform 0.4s ease, color 0.4s ease;
}

body.dark-mode .icon-link span {
  color: #8aa978;
  font-style: italic;
  transition: color 0.4s ease;
}

body.dark-mode .icon-link:hover {
  background: #3b512e;
  box-shadow: 6px 6px 20px #5db15ccc, inset 0 0 12px #486a31;
  transform: translateY(-8px) scale(1.07);
}

body.dark-mode .icon-link:hover i {
  color: #7bcc5a;
  transform: rotate(-8deg) scale(1.15);
  filter: drop-shadow(1px 1px 4px #7bcc5a);
}

body.dark-mode .icon-link:hover span {
  color: #b5e69d;
  font-weight: 700;
  text-shadow: 0 0 8px #7bcc5abb;
}

/* Animación glow menos intensa pero visible */
@keyframes glowFrameGreenMedium {
  0% {
    box-shadow: 0 0 12px #44b74a99, 0 0 24px #3a8b3a88, 0 0 36px #44b74a66;
  }
  100% {
    box-shadow: 0 0 18px #7bcc5aaa, 0 0 36px #63ad6388, 0 0 54px #7bcc5a55;
  }
}

/* Mantén o ajusta moveTexture si usas */
/* Fondo general y texto para modo noche */
body.dark-mode {
  background-color: #121212;
  color: #ddd;
}

/* Ajustar contenedor principal */
body.dark-mode .container.py-5 {
  background-color: #1c1c1c;
  border-radius: 12px;
  padding: 2rem 1rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
}

/* Tarjetas: fondo oscuro y sombra suave */
body.dark-mode .card {
  background-color: #222;
  border: none;
  box-shadow: 0 2px 15px rgba(0, 128, 0, 0.4); /* sombra verde muy suave */
  color: #c9d6c9;
}

/* Títulos de secciones */
body.dark-mode .section-title {
  color: #7acc7a; /* verde claro */
  text-shadow: 0 0 6px #2a6f2a;
}

/* Texto dentro de tarjetas */
body.dark-mode .card h5,
body.dark-mode .card p {
  color: #aacbaa;
}

/* Botones "Ver más" */
body.dark-mode .btn-ver-mas {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #3a7d3a;
  color: #d0f0d0;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  font-weight: 600;
  border: 1.5px solid #4caf50;
}
body.dark-mode .btn-ver-mas:hover {
  background-color: #58a158;
  color: #000000;
  border-color: #6ecd6e;
}

/* Carousel indicators (los puntos) */
body.dark-mode .carousel-indicators [data-bs-target] {
  background-color: #4caf50;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}
body.dark-mode .carousel-indicators .active {
  background-color: #a1e0a1;
  opacity: 1;
}

/* Carousel control icons (flechas) */
body.dark-mode .carousel-control-prev-icon,
body.dark-mode .carousel-control-next-icon {
  filter: invert(72%) sepia(79%) saturate(422%) hue-rotate(78deg) brightness(85%) contrast(90%);
}

/* Imágenes del carousel: para que no tengan bordes o sombras */
body.dark-mode .carousel-item img {
  border-radius: 8px;
  filter: brightness(0.85) contrast(1.1);
  transition: filter 0.4s ease;
}
body.dark-mode .carousel-item.active img {
  filter: brightness(1) contrast(1.15);
}

/* Ajustar columnas y textos */
body.dark-mode .col-md-6 p,
body.dark-mode .col-md-6 h5 {
  color: #b2d3b2;
}

/* Para que el texto no se vea muy duro */
body.dark-mode .col-md-6 p {
  opacity: 0.9;
  line-height: 1.5;
}

/* Scrollbar para carruseles si aparece */
body.dark-mode ::-webkit-scrollbar {
  width: 8px;
}
body.dark-mode ::-webkit-scrollbar-track {
  background: #1a1a1a;
}
body.dark-mode ::-webkit-scrollbar-thumb {
  background-color: #3a7d3a;
  border-radius: 4px;
}

/* Adaptar sombra al hover en las tarjetas, si tienes hover */
body.dark-mode .card:hover {
  box-shadow: 0 4px 30px rgba(72, 171, 72, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
  body.dark-mode .col-md-6 {
    padding: 1rem !important;
  }
}


/* --- Footer Custom (Antigua Guatemala) in Dark Mode --- */
body.dark-mode .footer-custom {
    background-color: #1a1a1a !important; /* Dark background, similar to main body */
    color: #e0e0e0 !important; /* Light text for readability */
    border-top: 1px solid #333333 !important; /* Subtle dark border */
}

body.dark-mode .footer-custom h2 {
    color: #f0f0f0 !important; /* Bright white for "Antigua Guatemala" */
}

body.dark-mode .footer-custom h2 .text-primary {
    color: #76FF03 !important; /* Your accent green for "Guatemala" */
}

body.dark-mode .footer-custom p {
    color: #cccccc !important; /* General paragraph text color */
}

body.dark-mode .footer-custom h5 {
    color: #f0f0f0 !important; /* Bright white for headings like "Qué Hacer?" and "Contacto" */
}

body.dark-mode .footer-custom .list-unstyled a {
    color: #e0e0e0 !important; /* Light gray for list links */
    text-decoration: none;
    transition: color 0.3s ease;
}

body.dark-mode .footer-custom .list-unstyled a:hover,
body.dark-mode .footer-custom .list-unstyled a:focus {
    color: #4CAF50 !important; /* Accent green on hover/focus */
    text-decoration: underline;
}

body.dark-mode .footer-custom .mb-1 a { /* For email and phone links */
    color: #e0e0e0 !important; /* Light gray for contact links */
    text-decoration: none;
}

body.dark-mode .footer-custom .mb-1 a:hover,
body.dark-mode .footer-custom .mb-1 a:focus {
    color: #4CAF50 !important; /* Accent green on hover/focus */
    text-decoration: underline;
}

body.dark-mode .footer-custom .border-secondary {
    border-color: #444444 !important; /* Darker hr line */
}

body.dark-mode .footer-custom .text-center.pb-3 p {
    color: #bbbbbb !important; /* Slightly dimmer for copyright/developer text */
}

body.dark-mode .footer-custom strong {
    color: #e0e0e0 !important; /* Ensure strong text is also light */
}


body.dark-mode footer.footer-custom .btn-outline-primary {
  color: #4caf50;          /* Verde medio */
  border-color: #4caf50;
  background-color: transparent;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode footer.footer-custom .btn-outline-primary:hover,
body.dark-mode footer.footer-custom .btn-outline-primary:focus {
  background-color: #4caf50; /* Verde sólido */
  color: #fff;               /* Texto blanco */
  border-color: #4caf50;
  text-decoration: none;
}
 