*{
	box-sizing: border-box;
}
:root{
   --header-height: 95px;
	--header-height-compact:70px;	
  /* Marca */
  --color-primary: #8E8BC2;
  --color-secondary: #7F7CB4;

  /* Fondos */
  --color-bg-main: #f6f9fc;
  --color-bg-soft: #eef6ff;
  --color-bg-card: #ffffff;

  /* Texto */
  --color-text-main: #2b2b2b;
  --color-text-secondary: #5f6c7b;
  --color-text-muted: #8a97a6;
  --color-text-heading: #8E8BC2;

  /* Estados */
  --color-focus: #a3c7ff;
  --font-family-base: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-family-heading: 'DM Serif Display', serif;
  --font-size-base: 16px;
  --line-height-base: 1.6;
}
html{
	scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}
body {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text-main);
  background: var(--color-bg-main);
  overflow-y: scroll;
  margin: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
}
h1, h2, h3 {
	font-family: var(--font-family-heading);
	font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em; /* muy sutil */
}
button {
  font-family: inherit;
  font-size: 1rem;
}
/* HEADER */
.header-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  transition: height 0.25s ease;
  z-index: 1000;
}
.navbar {
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 32px;
  height: var(--header-height);
  background: linear-gradient(rgba(255, 255, 255, 0.45),rgba(255, 255, 255, 0.25));
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transition: height 0.25s ease,background 0.25s ease,box-shadow 0.25s ease;
}
.logo{
	transition: width 0.25s ease;
	height: auto;
}
/* MENÚ */
.menu {
  display: flex;
  gap: 28px;
  list-style: none;
}
.menu a {
  text-decoration: none;
  font-size: 1rem;
  /*color: rgba(0,0,0,0.85);*/
  color: var(--color-primary);
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  word-break: keep-all;
}
.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: var(--color-primary);
  border-radius: 4px;
  transition: width 0.25s ease;
}

.menu a:hover::after {
  width: 100%;
}
.cta{
	padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
}
.cta:hover {
  opacity: 0.9;
}

.cta:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}
.cta.primary {
  background: var(--color-primary);
  color: white;
  border: none;
}
section{
  
  height:calc(100vh - var(--header-height));	
  flex: 1;
  padding: var(--header-height) 20px 40px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center; /* centra contingut verticalment */
  }
section:not(.hero) {
  padding-top: 0;
}

.hero {
  position: relative;
  height: 100vh;
  overflow-y: hidden;
  background-image: url("../image/Foto_Hero.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--header-height) 20px 40px 20px;
  
}
  .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255,255,255,0.92),rgba(255,255,255,0.7));
  z-index: 1;
}
.hero-content {
  flex: 1;
  position: relative;
  z-index: 2;
  max-width: 800px;
  text-align: center;
}

.hero-content h1 {
  	
  
  font-size: 2.5rem;
  color: var(--color-text-heading);
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 1.1rem;
  line-height: 1.65;
  max-width: 600px;
  margin: 0 auto 22px;
  color: var(--color-text-secondary);
}
.cta.secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.HeaderContainer{
  height: 20%;
  display: flex;
  align-items: center; /* Alinea verticalmente */
  gap: 12px; /* Espacio entre la imagen y el texto */
}
.avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--color-primary);   /* Usa tu color de marca */
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);  /* Un toque profesional */
  margin: 0; 
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}
.HeaderContainer h2{
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--color-primary);
  background: transparent;
  border-left: 6px solid var(--color-primary);
  padding-left: 12px;
  margin:40px 0 25px;
  border-radius: 0px;
  display: inline-block;
}
.container{
  height: 80%;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: stretch;
  align-content: start;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px;
  background: var(--color-bg-soft);
}
.article_qui_soc{
	height: 100%;
	overflow-y: auto;
	overflow-x: hidden;
	padding-right: 10px;
}
.article_servei{
	position: relative;
  padding: 24px 22px;
  border-radius: 12px;
  background: var(--color-bg-card);
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.article_servei:hover{
	transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.header-serveis{
	display: flex;
  align-items: center;
  gap: 12px; /* espacio entre icono y texto */
  margin-bottom: 12px;
}
.header-serveis h3{
	margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.25rem;
  color: var(--color-primary);
  font-weight: 600;
}
.card-icon {
  width: 38px;
  height: 38px;
  margin: 0;
  opacity: 0.85;
}
.contact-info {
  margin-bottom: 20px;
  font-size: 1rem;
  color: var(--color-text-secondary);
}
.item_a {
	
	background: var(--color-bg-card);
  	padding: 20px;
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}
.item_a img {
	width: 150px;
}
.contact-info p {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 2rem;
  text-align: center;
}

.map-container {
  width: 100%;
  height: 300px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 25px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
 footer {
  text-align: center;
  padding: 30px 10px;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(6px);
  color: var(--color-text-secondary);
  font-size: 0.9rem;
} 
/* DESKTOP XXL */
@media (min-width: 1441px) {
  :root{
	--header-height: 100px;
	--header-height-compact:70px;
}
.logo{
	width: 100px;
}

}
/* DESKTOPS */
@media (max-width: 1440px) {
  :root{
	--header-height: 95px;
	--header-height-compact:70px;
}
.logo{
	width: 90px;
}

}

/* LAPTOPS AND SMALL DESKTOPS */
@media (max-width: 1280px) {
  :root{
	--header-height: 85px;
	--header-height-compact:65px;
}
.logo{
	width: 90px;
}
.avatar{
	width: 90px;
	height: 90px;
}
.HeaderContainer h2{
  font-size: 1.5rem;
  }
.container article p{
	font-size: 0.7rem; 
}
.article_servei p{
	font-size: 1,2rem;
}
}

/* LARGE TABLET*/
@media (max-width: 1024px) {
	:root{
	--header-height: 85px;
	--header-height-compact:65px;
}
.logo{
	width: 75px;
}

}
/* SMALL TABLET */
@media (max-width: 768px) {
	:root{
	--header-height: 80px;
	--header-height-compact:62px;
}
.logo{
	width: 70px;
}

}
/* MOBILE */
@media (max-width: 600px){
	:root {
    --header-height: 70px;
    --header-height-compact:55px;
  }
  .logo{
	width: 65px;
}
.menu a{
	font-size: 0.5rem;
	gap:18;
}
button{
	font-size: 0.5rem;
}
.HeaderContainer{
	height: auto;
}
.container{
	height: auto;
}

}
/* MOBILE SMALL */
@media (max-width: 480px) {
 :root{
	--header-height: 65px;
	--header-height-compact:62px;
}
.logo{
	width: 60px;
}

}