@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

html {
  font-size: 16px; /* vuelve al valor base de Tailwind */
}


body {
  font-family: 'Montserrat', sans-serif !important;
  overflow-x: hidden;
            background-color: #1a1a1a;
  color: #f1f1f1;
}
body.sidebar-open {
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  transition: transform 0.4s ease;
  transform: translateX(100%);
}
.sidebar.open {
  transform: translateX(0);
}
.sidebar-nav-link {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  color: #f1f1f1;
  padding: 1rem 2rem;
  margin: 0.5rem 0;
  border-radius: 8px;
  transition: all 0.3s ease;
}
.sidebar-nav-link:hover,
.sidebar-nav-link.active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transform: translateX(-10px);
}
.sidebar-nav-link i {
  margin-right: 1rem;
  font-size: 1.8rem;
  width: 30px;
  text-align: center;
}

/* Botones */
.icon-btn,
.portfolio-filter-btn,
.language-btn {
  transition: all 0.3s ease;
}
.icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}
.btn-glow {
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}
.btn-glow:hover {
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
  transform: translateY(-3px);
}
.portfolio-filter-btn {
  border: 1px solid #333;
  position: relative;
  overflow: hidden;
}
.portfolio-filter-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #fff;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}
.portfolio-filter-btn.active,
.portfolio-filter-btn:hover {
  background: #fff !important;
  color: #000 !important;
}
.portfolio-filter-btn.active::after,
.portfolio-filter-btn:hover::after {
  transform: translateX(0);
}
.language-selector {
  border-radius: 9999px;
  padding: 4px;
  display: flex;
  align-items: center;
}
.language-btn {
  padding: 8px 15px;
  border-radius: 20px;
  font-weight: 600;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: none;
  cursor: pointer;
  
}
.language-btn.active {
  background: white;
  color: black;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.language-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

/* Botón WhatsApp */
.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
  z-index: 999;
}
.whatsapp-button img {
  width: 35px;
  height: 35px;
  filter: invert(1);
}
.whatsapp-button:hover {
  transform: scale(1.1);
}

/* Videos */
.video-container {
            position: relative;
            padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
            height: 0;
            overflow: hidden;
}
.video-container iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: 0;
}

/* Tarjetas de proyectos */
.project-card {
  transition: all 0.3s ease;
  overflow: hidden;
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}
.project-image {
  transition: transform 0.5s ease;
}
.project-card:hover .project-image {
  transform: scale(1.05);
}
.project-card.hidden {
  display: none;
}

/* Fondo */
.peru-bg {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('img/perumachupichu.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Modal de videos */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.9);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }
        .modal-content {
            width: 80%;
            max-width: 900px;
            position: relative;
        }

        .close-modal {
            position: absolute;
            top: -40px;
            right: 0;
            color: white;
            font-size: 30px;
            cursor: pointer;
            z-index: 1001;
        }

/* Efectos extra */
.shuffle-animation {
  animation: shuffleEffect 0.8s ease;
}
@keyframes shuffleEffect {
  0% { opacity: 0; transform: translateY(20px) rotate(5deg); }
  100% { opacity: 1; transform: translateY(0) rotate(0); }
}
.light-effect {
  position: relative;
}
.light-effect::before {
  content: '';
  position: absolute;
  top: -10px; left: -10px; right: -10px; bottom: -10px;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.light-effect:hover::before {
  opacity: 1;
}

.video-container {
            position: relative;
            padding-bottom: 56.25%;
            height: 0;
            overflow: hidden;
        }
        .video-container iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: 0;
        }
        .portfolio-filter-btn {
            transition: all 0.3s ease;
        }
        .portfolio-filter-btn.active {
            background-color: #000 !important;
            color: #fff !important;
        }
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.95);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }
        .modal-content {
            width: 80%;
            max-width: 900px;
            position: relative;
        }
        .close-modal {
            position: absolute;
            top: -40px;
            right: 0;
            color: white;
            font-size: 30px;
            cursor: pointer;
            z-index: 1001;
        }
        .project-card {
            transition: all 0.3s ease;
            overflow: hidden;
        }
        .project-card.hidden {
            display: none;
        }
        .project-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
        }

            .video-container {
      position: relative;
      padding-bottom: 56.25%;
      height: 0;
      overflow: hidden;
    }
    .video-container iframe {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      border: 0;
    }
    .portfolio-filter-btn {
      transition: all 0.3s ease;
    }
    .portfolio-filter-btn.active {
      background-color: #fff !important;
      color: #000 !important;
    }
    .portfolio-filter-btn:hover:not(.active) {
      background-color: #fff !important;
      color: #000 !important;
    }
    .modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.95);
      z-index: 1000;
      justify-content: center;
      align-items: center;
    }
    .modal-content {
      width: 80%;
      max-width: 900px;
      position: relative;
    }
    .close-modal {
      position: absolute;
      top: -40px;
      right: 0;
      color: white;
      font-size: 30px;
      cursor: pointer;
      z-index: 1001;
    }
    .project-card {
      transition: transform 0.3s ease, opacity 0.3s ease;
      border: 1px solid #333;
      background-color: #111;
    }
    .project-card.hidden {
      display: none;
    }
    .project-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
    }
.open-modal {
  transition: all 0.3s ease;
  color: #fff !important; /* fuerza blanco */
}
.open-modal:hover {
  background-color: #fff !important;
  color: #000 !important;
}

    .whatsapp-button {
      position: fixed;
      bottom: 20px;
      right: 20px;
      width: 60px;
      height: 60px;
      background-color: #25D366;
      border-radius: 50%;
      display: flex;
      justify-content: center;
      align-items: center;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
      z-index: 1000;
      transition: transform 0.3s ease;
    }
    .whatsapp-button:hover {
      transform: scale(1.1);
    }
    .whatsapp-button img {
      width: 30px;
      height: 30px;
      filter: brightness(0) invert(1);
    }
    .sidebar {
      transform: translateX(100%);
      transition: transform 0.3s ease;
    }
    .sidebar.open {
      transform: translateX(0);
    }
    #sidebar-overlay {
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s ease;
    }
    #sidebar-overlay.active {
      opacity: 1;
      visibility: visible;
    }
    .sidebar-nav-link {
      display: flex;
      align-items: center;
        padding: 1rem 2rem;
      color: #fff;
  font-size: 1.5rem;
      transition: color 0.3s ease;
    }
    .sidebar-nav-link:hover {
      color: #ccc;
    }
    .sidebar-nav-link i {
      margin-right: 12px;
      width: 24px;
      text-align: center;
    }
    .language-selector {
      border-radius: 20px;
      padding: 4px;
      display: inline-flex;
    }
    .language-btn {
      padding: 6px 12px;
      border-radius: 16px;
      background: transparent;
      color: #fff;
      border: none;
      cursor: pointer;
      transition: all 0.3s ease;
    }
    .language-btn.active {
      background-color: #fff;
      color: #000;
    }