
    /* Variables de color */
    :root {
      --black: #1a1a1a;
      --white: #ffffff;
      --orange: #ff6600;
      --light-gray: #f5f5f5;
      --gray: #363636;
    }

    /* Reset de márgenes y padding */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    /* Body */
    body {
      font-family: 'Arial', sans-serif;
      background-color: var(--white);
      color: var(--black);
    }


/* HEADER ANGULADO ASCENDENTE */

.angled-header {
  background-color: var(--black);
  color: white;
  height: 220px;
  clip-path: polygon(0 0, 100% 0, 100% 40%, 0 100%);
  position: relative;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  z-index: 2;
}

.header-ghost-detect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 220px; /* o exactament igual que el header real */
  clip-path: polygon(0 0, 100% 0, 100% 40%, 0 100%);
  pointer-events: none;
  visibility: hidden;
  z-index: -1;
}





/* LOGO REDONDO FIJO */
.logo {
  position: fixed;
  top: 15px;
  left: 10%;
  width: 10%;
  max-width: 100px;
  min-width: 65px;
  min-height: 5%;
  height: 8%;
  z-index: 999;
  overflow: hidden;
  transition: transform 0.4s ease-out, filter 0.4s ease-out, opacity 0.4s ease-out;
}

.logo img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.logo-blanc {
  z-index: 2;
  mask-image: linear-gradient(to bottom, black 0%, black 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 100%);
}

.logo-negre {
  z-index: 1;
}

.logo:hover {
    transform: scale(1.4);
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
  opacity: 0.95;
}

/* LETRAS DEL LOGO  */
.logo-lletres {
  position: absolute;
  top: 27px;
  left: 8%;
  width: 25%;
  max-width: 375px;
  min-width: 250px;
  height: auto;
  z-index: 10;
  background-color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-lletres img {
  width: 100%;
  height: auto;
  object-fit: contain;
}


/* MENU IDIOMA */
.language-dropdown {
  position: absolute;
  top: 72px;
  right: 20px;
  z-index: 2;
  font-family: sans-serif;
}

.language-dropdown:hover {
  z-index: 10;
  
}


.dropdown-toggle {
  background: #f9741600;
  font-size: 1.15rem;
  color: var(--gray);
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 40px;
}

.dropdown-toggle:hover {
  transform: translateY(10px) scale(1.15);
  transition: transform 0.4s ease; 
}
.dropdown-toggle:not(:hover) {
  transform: scale(0.9);
  opacity: 0.9;
  transition: transform 0.3s ease;
}


.dropdown-toggle img {
  width: 60px;
  height: 50px;
}


.dropdown-menu {
  display: flex;
  flex-direction: column;
  position: absolute;
  pointer-events: none;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.4s ease;
  top: 80%;
  right: 0;
  background: #fefefe00;
  border-radius: 8px;
  padding: 10px;
  list-style: none;
  min-width: 160px;
  gap: 5px;
  z-index:10;
 
}

/* Cuando el menú se deslice hacia abajo (aparecer) */
.dropdown-menu.slide-in {
  max-height: 300px;  /* Ajusta según el tamaño del contenido */
  opacity: 1;
  pointer-events: auto;
}

/* Cuando el menú se deslice hacia arriba (ocultarse) */
.dropdown-menu.slide-out {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}


.dropdown-menu:hover li:not(:hover) {
  transform: scale(0.8);
  opacity: 0.7;
  transition: transform 0.3s ease;
}

.dropdown-menu li:hover {
  transform: scale(1.2);
  opacity: 1;
  transition: transform 0.3s ease;
}
.dropdown-menu li a {
  display: flex;
  align-items: center;
  font-size: 1.15rem;
  color: var(--gray);
  padding: 6px 10px;
  text-decoration: none;
  transition: background 0.3s;
  gap: 10px;
}

.dropdown-menu li a:hover {
  border-radius: 4px;
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

.dropdown-menu li img {
  width: 50px;
  height: 45px;
}

.dropdown-menu li img:hover {
  transform: scale(1.2);
  transition: transform 0.3s ease;
}

/* REDES SOCIALES */
.social-links {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start; /* Mover hacia arriba */
  gap: 15px;
  padding-right: 20px;
  position: absolute; /* Para que se posicione en la parte superior del header */
  top: 20px; /* Ajusta esta distancia según lo necesites */
}

.social-links a {
  display: inline-block;
  transition: transform 0.3s;
}

.social-links img {
  margin-left: 15px;
  max-width: 40px;
  min-width: 30px;
  height: auto;
  filter: brightness(0) invert(1); /* blanco sobre fondo oscuro */
}

.social-links a:hover {
  transform: scale(1.2);
  filter: drop-shadow(0 0 5px var(--orange));
}




    /* Sección de introducción */
    section.intro {
      background-color: var(--white);
      text-align: right;
      margin-right: 180px;
      padding: 50px 20px;
    }

    section.intro h1 {
      font-size: 40px;
      color: var(--orange);
    }

    section.intro p {
      font-size: 18px;
      color: var(--black);
    }


    /* Sección de categorías (medallas, llaveros, madera, otros) */
#categorias {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 60px 20px;
  flex-wrap: wrap;
}

.categoria-card {
  width: 300px;
  height: 480px;
  border: 3px solid var(--gray);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  
  transition: transform 0.4s ease, border-color 0.4s ease;
  text-align: center;
}

.categoria-card:hover {
  transform: scale(1.15);
  box-shadow: 0 8px 20px var(--orange);
}

.categoria-titulo {
  position: absolute;
  padding: 100px;
  margin-top: 330px;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
  color: white;
  z-index: 10;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
   

}

.categoria-card:hover .categoria-titulo {
  transform: translateY(10px);
  transition: transform 0.3s ease;

}

.categoria-imagen {
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: transform 0.5s ease;
}

.categoria-card:hover .categoria-imagen {
  transform: scale(1.15);
}



/* qui som */
#quienes-somos {
  padding: 5vh 5vw;
  min-height: 600px; /* Manté alçada mínima estable */
  clip-path: polygon(100% 100%, 100% 10%, 0% 0%, 0 90%);
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('img/qui_som.jpg') center/cover;
  color: #ffffff;
  display: flex;
  justify-content: flex-end;
  align-items: center; /* centrat vertical */
}

.quienes-contenido {
  max-width: 800px;
  width: 80%; /* fluid */
  margin-right: 5vw; /* en comptes de 600px fixos */
  background-color: rgba(0, 0, 0, 0.3);
  padding: 5%;
  border-radius: 12px;
  text-align: justify;
}

.quienes-contenido h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: left;
  color: #f97316;
}

.quienes-contenido p {
  font-size: 1rem;
  line-height: 1.6;
}


/* Sección de caracteristicas (envio, personalizacion, bio) */
 #caracteristicas {
  margin: 50px auto;
  padding: 20px;
  font-family: sans-serif;
  background-color: #ffffff;
  color: white;
  display: flex;
  justify-content: center;
  height: auto;
  overflow: hidden;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 40px;
  box-sizing: border-box;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 150px); /* 🔄 1 fila, 4 columnes */
  grid-template-rows: 1fr;
  gap: 40px;
  justify-content: center;
}

.card {
  background-color: transparent; /* 🔸 Fons completament transparent */
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}



.card:hover {     /* Efecte hover: creix, mostra text, amaga img */
  transform: scale(1.5);
}


.card img {     /* Imatge a dins la card */
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}


.card::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  font-size: 0.9rem;
  padding: 10px;
  text-align: center;
  opacity: 0;
  background-color: rgb(255, 255, 255); /* només aquest crea el fons */
  transition: opacity 0.3s ease;
  z-index: 2;
  pointer-events: none;
}




.card:hover img {       /* Hover: mostra text, oculta img */
  opacity: 0;
}

.card:hover::after {
  opacity: 1;
}

    

    /* Seccio explicativa (medalles, trofeus, clauers, merchandising) */
.section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}


    .section h2 {
      color: #f97316;
      font-size: 2rem;
     

    }

    .barra-taronja {
      position: absolute;
      max-width: 400px;
      height: 4px;
      background-color: #f97316;
      margin: 0 auto 60px auto;  
      display: flex;
      animation: moure 1s ease-out forwards;
      
    }



    .barra-fosca {
      position: absolute;
      max-width: 920px;
      height: 4px;
      background: black;
      margin: 0 auto 100px auto;
      overflow: hidden;
      
    }


    .section p {
      font-size: 1.1rem;
      line-height: 1.8;
      margin-bottom: 20px;
      margin-top: 30px;
    }

    .image-row {
      display: flex;
      gap: 20px;
      justify-content: center;
      padding: 60px;
    }

    .image-row img {
      width: 10%;
      border-radius: 10px;
      object-fit: cover;
    }

      @keyframes moure {
      from {
        width: 0;
      }
      to {
        width: 400px;
      }
    }

    /* Pie de pagina */
    footer {
      background-color: var(--black);
      color: var(--white);
      padding: 20px 40px;
      text-align: center;
    }

    footer p {
      font-size: 16px;
    }

    footer a {
      color: var(--orange);
      text-decoration: none;
    }

    footer a:hover {
      text-decoration: underline;
    }

