/* Reset bàsic */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: Arial, sans-serif;
    scroll-behavior: smooth;
  }
  
  /* Portada */
  #portada {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    background: 
    linear-gradient(rgba(113,	126,	106, 0.7), rgba(	49,	59,	43, 0.7)), /* capa fosca amb 70% opacitat */
    url("../assets/fig0.jpg") center/cover no-repeat; /* la imatge */
    color: #d6cfc2;
  }
  
  #portada h1 {
    font-size: 3em;
    margin-bottom: 0.5em;
  }
  
  
  /* Seccions */
  section {
    padding: 5em 2em;
    background-color: #fffbf4;
    border-bottom: 1px solid #bbcbb7;
  }
  
  section:nth-of-type(even) {
    background-color: #bbcbb7;
  }
  
  section h2 {
    color: #5b6754;
    margin-bottom: 1em;
    text-align: center;
    width: 100%;
  }

  section h4 {
    text-align: left;
    color: #717e6a;
    font-size: medium;
    margin-left: 5%;
    margin-right: 5%;
    margin-top: 1em;
  }
  
  section p {
    max-width: 90%;
    margin: 0 auto;
    font-size: 1.1em;
    line-height: 1.6;
    color: #717e6a;
  }

  .pp {
    font-size: small;
    margin-bottom: 1em;
  }
  
  button {
    padding: 10px 20px;
    background-color: #604a33;
    color: #c2a88f;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    margin: 10px;
    margin-left: 25%;
  }

  button:hover {
    background-color: #bbcbb7;
    align-items: center;
  }

  button:active {
    background-color: #604a33;
  }

  /*cursor*/
  #cursor-sol {
    position: absolute;
    width: 50px;
    height: 50px;
    pointer-events: none; /* així no bloqueja clics */
    z-index: 9999;
    transition: all 0.1s ease-out;
  }

  /*botó de pujar cap amunt*/
  #boto-rodonet {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #604a33;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: background-color 0.3s ease;
  }

  #boto-rodonet:hover {
    background-color: #717e6a;
  }