body {
  background: rgb(255, 255, 255);
  margin: 0;
     font-family:Arial, Helvetica, sans-serif;
 
  color: black;
}

header {
  position: relative;  
  background: rgb(255, 255, 255);
  padding: 30px;
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#logo {
  width: 200px;
}


#menu {
  display: flex;
  gap: 20px;
}

#burger {
  display: none; 
  background: none;
  border: none;
  cursor: pointer;

  position: absolute; 
  right: 20px;        
  top: 50%;           
  transform: translateY(-50%);
  z-index: 10;
}


@media only screen and (max-width: 600px) {
  body {
    background: rgb(255, 160, 35);
    
  }

  #logo {
    width: 150px;
  }

  #burger {
    display: block; 
  }
  #menu.open {
    display: flex; 
  }
  #menu {
    display: none; 
    flex-direction: column;
    position: absolute;
    top: 80px;
    right: 20px;
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
    justify-content: space-between;
  }


  .titol{
    font-family:Arial, Helvetica, sans-serif;
  text-decoration:none;
  color: black;
  
  }

  .sobre-mi-container {
    flex-direction: column;
    text-align: center;
  }

  .sobre-mi-text ul {
    padding-left: 0;
    list-style: none;
  }

  .sobre-mi-text ul li::before {
    content: " ";  
    color: #007bff;
    font-weight: bold;
  }

  .sobre-mi-text ul li ul {
    padding-left: 15px;
  }

  .sobre-mi-text ul li ul li::before {
    content: " ";
    color: #007bff;
  }
}








#sobre-mi {
  padding: 50px 20px;
  
}

.sobre-mi-container {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  flex-wrap: wrap;       
}

.sobre-mi-img img {
  width: 100%;          
  max-width: 400px;      
  height: auto;          
  border-radius: 20px;
  box-shadow: 0 6px 10px rgba(0,0,0,0.1);
  display: block;
}

.sobre-mi-text {
  flex: 1;
}

.sobre-mi-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #333;
}

.sobre-mi-text ul {
  list-style: disc;
  padding-left: 20px;
  font-size: 1.1rem;
  color: #555;
}

.sobre-mi-text ul li {
  margin-bottom: 15px;
}

.sobre-mi-text ul li ul {
  list-style: circle; 
  padding-left: 20px;
  margin-top: 5px;
}

.sobre-mi-text ul li ul li {
  margin-bottom: 5px;
}
#menu a {
  font-family: Arial, Helvetica, sans-serif;
  text-decoration: none;   
  color: black;           
  font-weight: bold;     
  font-size: 18px;        
  transition: 0.3s;       
}


#menu a:hover {
  color: rgb(255, 89, 0);   
  text-decoration: underline;  
}









#activitats {
  text-align: center;
  padding: 50px 20px;
  
}

#activitats h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #333;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
  align-items: start; /* importante */
}

/* CARD BASE */
.card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-decoration: none;
  color: #333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;

  /* 🔑 CLAVE */
  height: 280px;            /* altura fija */
  display: flex;
  flex-direction: column;
}

/* HOVER */
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

/* IMAGEN */
.card img {
  width: 100%;
  height: 160px;            /* fija */
  object-fit: cover;
  flex-shrink: 0;
}

/* TEXTO */
.card h3 {
  padding: 15px;
  font-size: 1.2rem;
  margin: 0;
  flex-grow: 1;             /* rellena sin romper altura */
  display: flex;
  align-items: center;
}

.card-group {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Sub-cards ocultas */
.sub-card {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 0.3s ease;
}

/* Aparecen al hover del grupo */
.card-group:hover .sub-card {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}










html, body {
  height: 100%;              
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;   
  min-height: 100vh;         
}

main {
  flex: 1;                  
}


footer {
  background-color: #f5f5f5;
  text-align: center;
  padding: 20px 10px;
  border-top: 1px solid #ccc;
  font-size: 14px;
  color: #333;
}

footer a {
  color: #333;
  text-decoration: none;
  font-weight: bold;
  margin: 0 8px;
  transition: color 0.3s;
}

footer a:hover {
  color: #007bff;
}

html {
  scroll-behavior: smooth;
}








button {
 width: 9em;
 height: 3em;
 border-radius: 30em;
 font-size: 15px;
 font-family: inherit;
 border: none;
 position: relative;
 overflow: hidden;
 z-index: 1;
 box-shadow: 6px 6px 12px #c5c5c5,
             -6px -6px 12px #ffffff;
}

button::before {
 content: '';
 width: 0;
 height: 3em;
 border-radius: 30em;
 position: absolute;
 top: 0;
 left: 0;
 background-image: linear-gradient(to right, #0fd850 0%, #f9f047 100%);
 transition: .5s ease;
 display: block;
 z-index: -1;
}

button:hover::before {
 width: 9em;
}
