

:root {

  /* Colores */
  --color-primary: #81E541;
  --color-secondary: #fff;
  --color-tertiary: #131313;
  --color-dark: #000;
  --color-light: #fff;

  /* Sizes */
  --max-width: 100svw;
  --section-height: 100svh;
  --header-height: 100px;
  --footer-height: 180px;
  --logo-height: calc(var(--header-height) - 20px);
  --logo-footer: 40px;

  /* Espaciado */
  --content-margin: 1rem;
  --content-padding: 1rem;

  /* Efectos */
  --transition-speed: 0.6s;
  --shadow-light: rgba(139, 127, 143, 0.4);

  /* Custom */
  
}

@media (max-width: 768px) {
  :root {
    --header-height: 65px;

    --footer-height: 100px;
    --logo-footer: 40px;

    --content-margin: 0.85rem;
    --content-padding: 0.85rem;
  }
}

@media (max-width: 480px) {
  :root {
    /*--logo-height: 60px;*/
    --content-margin: 0.75rem;
    --content-padding: 0.75rem;
  }
}

/*************** RESET HTML ***************/

/* === CSS Reset & Base Styles === */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100svw;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* IE/Edge */
  background-color: var(--color-tertiary);
  color: var(--color-secondary);
}

/* Optional: Hide scrollbar for WebKit */
body::-webkit-scrollbar {
  display: none;
}


/*************** HTML REDEFINED ***************/

main {
  /*margin-top: var(--header-height);*/
}

strong {
  color: var(--color-primary)
}

h1 {
  font-size: 3rem;
}

p {
  font-size: 1rem;
  letter-spacing: 0.8px;
  text-align: center;
}

section {
  position: relative;
  height: var(--section-height);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
}


@media (max-width: 768px) {
  h1 {
    font-size: 1rem;
  }
  p {
    font-size: 0.6rem;
    line-height: 1.2;
  }
}

@media (max-width: 480px) {
  p {
    margin: var(--content-margin);
  }
}

.hidden { display: none !important; } /* usado en footer boton a top */


#starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.star {
  position: absolute;
  background-color: white;
  border-radius: 50%;
  opacity: 0.8;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.8; }
}

.star {
  animation: twinkle 5s infinite ease-in-out;
}


/*************** HEADER ***************/

header {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--header-height);
  backdrop-filter: blur(12px);
  z-index: 900;

  /* Fading out at the bottom */
  -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}


header .logo {
  display: block;
  background-image: url('/resources/logos/app/M81_Horizontal_blanco.png');
  background-size: contain;
  background-repeat: no-repeat;
  height: var(--logo-height);
  aspect-ratio: 3.66 / 1;
}

.header-nav {
  height: 100%;
  /*background: var(--color-tertiary);*/
  padding: 0 calc(var(--content-padding)*2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}


/* Panel de hamburguesa */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.hamburger span {
  width: 100%;
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--color-secondary);
  transition: transform var(--transition-speed), opacity var(--transition-speed);
}

.header-nav.open .hamburger span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.header-nav.open .hamburger span:nth-child(2) {
  opacity: 0;
}
.header-nav.open .hamburger span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}


.nav-menu {
  position: relative;
  padding: 1rem 0;
}
.nav-menu ul {
  display: flex;
  flex-direction: flex;
  gap: 1rem;
  text-align: center;
}
.nav-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--color-secondary);
  font-weight: 800;
  text-decoration: none;
}

.nav-menu a:hover {
  color: var(--color-primary);
}

.header-nav.open .nav-menu {
  display: flex;
}


@media (max-width: 1200px) {
  .hamburger {
    display: flex !important;
  }
  .nav-menu {
    display: none;
  }
/*
  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(14,14,14,0.95);
    display: none;
    flex-direction: column;
    padding: 1rem 0;
    z-index: 1000;
  }*

  .nav-menu ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }*/
}


@media (max-width: 768px) {
  header .logo {
    aspect-ratio: 1.6 / 1;
    background-image: url('/resources/logos/app/M81_ISOblanco.png');
  }
  /*
  .header-nav {
    padding: 0.75rem var(--content-padding);
  }*/
}
/*
@media (max-width: 480px) {
  .header-nav a { font-size: 0.8rem; }
}
*/

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background-color: #111;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateY(-100%);
  transition: transform 0.4s ease;
  z-index: 1000;
}

.mobile-menu.active {
  transform: translateY(0);
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
  text-align: center;
}

.mobile-menu li {
  margin: 1rem 0;
}

.mobile-menu a {
  color: white;
  font-size: 2rem;
  text-decoration: none;
}

.close-menu {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
}



/*************** FOOTER ***************/

footer {
  height: var(--footer-height);
  width: 100%;
  color: var(--color-secondary);
  padding: var(--content-padding) calc(var(--content-padding)*2);
  text-align: center;
  display: flex;
  justify-content: space-between;
  align-items: center;
  /*background: var(--color-tertiary);*/
  /*background: transparent;*/
  box-shadow: 0 -2px 5px rgba(0,0,0,0.2);
}

footer .footlogo, footer .social {
  width: 20%;
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

footer .footlogo {
  justify-content: start;
}

footer .social {
  justify-content: end;
  /*https://codepen.io/koalawidgets/pen/abgKYXv*/
}

.footlogo a {
  cursor: pointer;
}

footer .logo {
  height: var(--logo-footer);
  width: var(--logo-footer);
  display: inline-block;
  background-size: cover;
  cursor: pointer;
  background-color: var(--color-secondary);
}

footer .logo:hover {
  background-color: var(--color-primary);
}


.minilogo {
  display: block;
  background-image: url('/resources/logos/app/M81_ISOblanco.png');
  background-size: contain;
  background-repeat: no-repeat;
  height: var(--logo-footer);
  aspect-ratio: 1.6 / 1;
}


.logo.instagram {
  mask: url("/resources/logos/logo_instagram.svg") no-repeat center/contain;
  -webkit-mask: url("/resources/logos/logo_instagram.svg") no-repeat center/contain;
}

.logo.linkedin {
  mask: url("/resources/logos/logo_linkedin.svg") no-repeat center/contain;
  -webkit-mask: url("/resources/logos/logo_linkedin.svg") no-repeat center/contain;
}

.logo.spotify {
  mask: url("/resources/logos/logo_spotify.svg") no-repeat center/contain;
  -webkit-mask: url("/resources/logos/logo_spotify.svg") no-repeat center/contain;
}

.logo.twitter {
  mask: url("/resources/logos/logo_twitter.svg") no-repeat center/contain;
  -webkit-mask: url("/resources/logos/logo_twitter.svg") no-repeat center/contain;
}

.logo.whatsapp {
  mask: url("/resources/logos/logo_whatsapp.svg") no-repeat center/contain;
  -webkit-mask: url("/resources/logos/logo_whatsapp.svg") no-repeat center/contain;
}

.logo.youtube {
  mask: url("/resources/logos/logo_youtube.svg") no-repeat center/contain;
  -webkit-mask: url("/resources/logos/logo_youtube.svg") no-repeat center/contain;
}



/*************** CLASS - SECTION CONTENT ***************/

.roofpill  {
  position: absolute;
  top: 0;
  padding: calc(var(--content-padding)/2) var(--content-padding);
  background-color: var(--color-secondary);
  color: var(--color-tertiary);
  border-bottom-left-radius: 0.375rem;
  border-bottom-right-radius: 0.375rem;
}

.roofborder {
  border-top: solid 6px white;
}

.monochrome {
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.sectionblurred {
  text-align: center;
  border-radius: 0.375rem;
  padding: var(--content-padding) calc(var(--content-padding)*3);
  backdrop-filter: blur(4px);
}

.sectionblurred h1 {
  margin-bottom: var(--content-margin);
}


.section-content {
  max-width: 90%;
  height: 80%;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  margin: 0;
}
.section-content h2 {
  font-size: 2.4rem;
  padding: 0 0 calc(var(--content-padding)/2) 0;
  color: var(--color-primary);
}
.section-content h3 {
  color: var(--color-primary);
  text-align: center;
}
.section-content p {
  margin: 0.6rem 0;
}
.section-content ul {
  margin: 1rem 0;
  padding-left: 1.4rem;
}
.section-content ul li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/*
@media (max-width: 768px) {
  /*
  .section-content {
    height: 100%;
    padding: 1.5rem 0;
  }
  *

  .section-content ul li { font-size: 0.8rem; }
  .section-content ul { padding-left: 1.2rem; }
}

@media (max-width: 480px) {
  .section-content ul li { font-size: 0.8rem !important; }
  .section-content ul { padding-left: 1.2rem !important; }
}
*/

/*************** SECCION 1 ***************/

#section1 {
  /*height: calc(var(--section-height) - var(--header-height));*/
  height: var(--section-height);
  width: 100vw;
  overflow: hidden;
  position: relative;
}

.media-gallery {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* This makes the video fill while keeping aspect ratio */
  /*z-index: -1; /* Optional: push video to background if content is on top */
}

.video-container iframe {
  width: 100%;
  height: 100%;
  border-radius: 10px; /* Optional: Adds rounded corners */
}


/*************** SECCION 2 ***************/

#section2 {
  background-image: url('/resources/img/works/eventos.webp');
  background-size: cover;       /* or 'contain', depending on your need */
  background-position: center;  /* centers the image */
  background-repeat: no-repeat; /* prevents tiling */
  height: 100svh;               /* full viewport height */
}


/*************** SECCION 3 ***************/

#section3 {
  background-image: url('/resources/img/works/music.webp');
  background-size: cover;       /* or 'contain', depending on your need */
  background-position: center;  /* centers the image */
  background-repeat: no-repeat; /* prevents tiling */
  height: 100svh;               /* full viewport height */
}

/*************** SECCION 4 ***************/

#section4 {
  background-image: url('/resources/img/works/fashion.webp');
  background-size: cover;       /* or 'contain', depending on your need */
  background-position: center;  /* centers the image */
  background-repeat: no-repeat; /* prevents tiling */
  height: 100svh;               /* full viewport height */
}

/*************** SECCION 5 ***************/

#section5 {
  background-image: url('/resources/img/works/branding.webp');
  background-size: cover;       /* or 'contain', depending on your need */
  background-position: center;  /* centers the image */
  background-repeat: no-repeat; /* prevents tiling */
  height: 100svh;               /* full viewport height */
}

/*************** SECCION 6 ***************/

#section6 {
  background-image: url('/resources/img/works/flavors.webp');
  background-size: cover;       /* or 'contain', depending on your need */
  background-position: center;  /* centers the image */
  background-repeat: no-repeat; /* prevents tiling */
  height: 100svh;               /* full viewport height */
}

