@import url("https://fonts.googleapis.com/css2?family=Urbanist:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital@0;1&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Urbanist", sans-serif;
  overflow-x: hidden;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: rgba(29, 59, 54, 0.3) rgba(29, 59, 54, 0.05);
}

/* Personalización de Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(29, 59, 54, 0.05);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #1d3b36;
  border-radius: 4px;
  border: 2px solid transparent;
  background-clip: content-box;
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: #2a5950;
}

.font-playfair {
  font-family: "Playfair Display", serif;
}

.text-teal-custom {
  color: #1d3b36;
}

.bg-teal-custom {
  background-color: #1d3b36;
}

.menu-icon {
  width: 24px;
  height: 2px;
  background-color: #1d3b36;
  position: relative;
  transition: all 0.3s ease;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: #1d3b36;
  transition: all 0.3s ease;
}

.menu-icon::before {
  transform: translateY(-8px);
}

.menu-icon::after {
  transform: translateY(8px);
}

.nav-link {
  color: #1d3b36;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
}

.nav-link:hover {
  color: #2a5950;
  transform: scale(1.2);
}

.nav-link.active {
  color: #2a5950;
  transform: scale(1.2);
  font-weight: bold;
}

.btn-primary {
  background-color: #1d3b36;
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #2a5950;
}

.btn-secondary {
  border: 1px solid #1d3b36;
  color: #1d3b36;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.scroll-top {
  background: #f3f4f6;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
  opacity: 0;
}

.scroll-top:hover {
  background: #e5e7eb;
}

section {
  position: relative;
  padding: 100px 0;
}

.background-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh; /* Cambiado de 100% a 100vh */
  z-index: -1;
  opacity: 0; /* Cambiado de display:none a opacity */
  transition: opacity 0.3s ease;
}

.background-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#bg-home {
  opacity: 1; /* Cambiado de display:block a opacity */
}

/* PORTFOLIO */

/* Estilos para los proyectos del portfolio */
.portfolio-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.portfolio-overlay {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

/* RESPONSIVE */

/* Mobile Menu Animation */
.mobile-nav.active {
  transform: translateY(0);
}

.mobile-menu-btn.active span:first-child {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:last-child {
  transform: rotate(-45deg) translate(5px, -5px);
}