
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Reddit Sans', sans-serif;
  background: rgba(0, 0, 0, 0.85) url('../img/fondo-web.png') no-repeat center center fixed;
  background-blend-mode: darken;
  background-size: cover;
  color: white;
  scroll-behavior: smooth;
  cursor: url('../img/logo-mortis.svg') 16 16, auto;
  line-height: 1.5;
}

h2, .landing-links li a {
  text-transform: uppercase;
}

.landing {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.logo-central {
  width: 200px;
  animation: fadeInScale 2s ease;
}

.landing-nav {
  margin-top: 2rem;
}

.landing-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.landing-links li a {
  font-size: 1.2rem;
  font-weight: bold;
  color: #FF0048;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 2px solid white;
  transition: all 0.3s ease;
}

.landing-links li a:hover {
  background-color: #FF0048;
  color: #fff;
  border-color: #FF0048;
}

main {
  max-width: 1000px;
  margin: auto;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.contenido h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #FF0048;
}

.preview-box {
  background: #111;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 20px #FF0048aa;
  max-width: 800px;
  margin: auto;
  text-align: center;
  border: 2px solid white;
  transition: border-color 0.3s ease;
}

.preview-box:hover {
  border-color: #FF0048;
}

.preview-box button {
  margin-top: 1.5rem;
  padding: 0.6rem 1.8rem;
  background: #FF0048;
  border: none;
  color: white;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
}

a {
  color: #FF0048;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

#contacto {
  text-align: center;
}

#contacto p {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #fff;
}

#contacto a {
  font-size: 1.3rem;
  font-weight: bold;
  color: #FF0048;
}

footer {
  background: rgba(0,0,0,0.8) url('../img/footer.png') no-repeat center center;
  background-size: cover;
  padding: 4rem 2rem;
  text-align: center;
  color: #fff;
  margin-top: 4rem;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.footer-logo {
  width: 80px;
}

.social-icons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  font-weight: bold;
}


@keyframes logoFadeUp {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: scale(1.2) translateY(0);
  }
}

.logo-central {
  width: 260px;
  animation: logoFadeUp 1.6s ease-in-out forwards;
  margin-bottom: 2rem;
}

footer {
  background: rgba(0, 0, 0, 0.85) url('../img/footer.png') no-repeat center center;
  background-size: cover;
  padding: 4rem 2rem;
  margin-top: 4rem;
}

@media screen and (max-width: 768px) {
  .landing-links {
    flex-direction: column;
    gap: 1rem;
  }

  .logo-central {
    width: 200px;
    margin-bottom: 1.5rem;
  }

  .preview-box {
    padding: 1.5rem;
  }

  main {
    padding: 2rem 1rem;
  }

  .footer-grid {
    gap: 1rem;
  }

  .social-icons {
    flex-direction: column;
    gap: 1rem;
  }
}


#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 0;
  top: 0;
  left: 0;
}

main, header, footer, section {
  position: relative;
  z-index: 1;
}
    

footer {
  background: rgba(0, 0, 0, 0.9);
  padding: 4rem 2rem;
  margin-top: 4rem;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-logo {
  width: 80px;
  height: auto;
}

.footer-icons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-icons img {
  width: 28px;
  height: 28px;
  transition: transform 0.2s ease;
}

.footer-icons img:hover {
  transform: scale(1.2);
}

.contacto-mail {
  text-align: center;
  font-size: 1.3rem;
  margin-top: 1rem;
}

h2, h3, h4, .section-title {
  font-weight: 900 !important;
}


.footer-icons img {
  width: 32px;
  height: 32px;
  filter: brightness(0) saturate(100%) invert(20%) sepia(100%) saturate(1000%) hue-rotate(-10deg) brightness(1.1) contrast(1.2);
  transition: transform 0.3s ease;
}

.footer-icons img:hover {
  transform: scale(1.3);
}

footer {
  background: rgba(0, 0, 0, 0.8) url('../img/footer.png') no-repeat center center;
  background-size: cover;
  padding: 4rem 2rem;
  margin-top: 4rem;
  text-align: center;
  color: white;
}


.footer-icons img {
  filter: brightness(0) saturate(100%) invert(17%) sepia(100%) saturate(1462%) hue-rotate(-15deg) brightness(1.2) contrast(1.1);
}


.carousel {
  display: flex;
  overflow-x: auto;
  gap: 2rem;
  padding: 2rem 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel img {
  height: 160px;
  object-fit: contain;
  scroll-snap-align: center;
  transition: transform 0.3s ease;
  border-radius: 8px;
}

.carousel img:hover {
  transform: scale(1.05);
}

.brand-carousel img {
  height: 100px;
  filter: brightness(0) saturate(100%) invert(17%) sepia(100%) saturate(1462%) hue-rotate(-15deg) brightness(1.2) contrast(1.1);
}

section h2 {
  text-align: center;
  font-size: 2rem;
  margin-top: 4rem;
  text-transform: uppercase;
}


.footer-icons img {
  width: 32px;
  height: 32px;
  filter: none;
}

.footer-icons a img {
  filter: invert(18%) sepia(99%) saturate(7492%) hue-rotate(-15deg) brightness(103%) contrast(119%);
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 2rem auto;
  overflow: hidden;
}

.carousel.work-carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 2rem 1rem;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #FF0048;
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 5;
  opacity: 0.8;
}

.carousel-btn:hover {
  opacity: 1;
}

.carousel-btn.prev {
  left: 0.5rem;
}

.carousel-btn.next {
  right: 0.5rem;
}


.carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 2rem 0;
}

.carousel.work-carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.carousel-item {
  flex: 0 0 calc(100% / 5);
  display: flex;
  justify-content: center;
  scroll-snap-align: center;
  transition: transform 0.3s ease;
  position: relative;
}

.carousel-item img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: grayscale(100%) brightness(0.8);
}

.carousel-item:hover img,
.carousel-item.active img {
  transform: scale(1.1);
  filter: none;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #FF0048;
  color: white;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  border: none;
  cursor: pointer;
  z-index: 10;
}

.carousel-btn.prev {
  left: 1rem;
}

.carousel-btn.next {
  right: 1rem;
}

/* Footer icon size and color fix */
.footer-icons img {
  width: 32px !important;
  height: 32px !important;
  filter: invert(18%) sepia(99%) saturate(7492%) hue-rotate(-15deg) brightness(103%) contrast(119%);
}

body {
  cursor: url('../img/cursor.svg'), auto;
}
