/* =========================================================
   pages.css — Estilos específicos por página
   Página: EQUIP
   Scope: .page-equip
   Requiere: reset.css + style.css cargados antes
   ========================================================= */

/* Fallback por si no existen variables globales */
:root{
  --equip-accent: var(--primary, #00b6bd);
  --equip-text: var(--text-dark, #1f2937);
  --equip-muted: #6b7280;
  --equip-card-bg: #ffffff;
  --equip-card-shadow: 0 10px 25px rgba(0,0,0,.06);
  --equip-radius: 20px;
}

/* =========================================================
   EQUIP — estilo tipo "Our Staff"
   ========================================================= */

/* ---------- HERO banda verde ---------- */
.page-equip .hero {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  min-height: 35vh !important;
  padding: 2.5rem 1rem !important;
}

/* Elimina el espacio reservado para la imagen de la home */
.page-equip .hero-container {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 auto !important;
  background: linear-gradient(180deg, #e8fff3 0%, #f6fefa 100%) !important;
}

/* Asegura que no queda hueco de la antigua imagen */
.page-equip .hero img,
.page-equip .hero-image,
.page-equip .hero-container::before {
  display: none !important;
}

.page-equip .hero-text--equip{
  font-family: "Nunito", "Arial Rounded MT Bold", sans-serif;
  font-size: 3rem;
  color: #002b5c;
  text-align: center;
}

/* ---------- GRID staff ---------- */
.page-equip .staff{
  padding: clamp(2rem, 5vw, 3.5rem) 0 4rem;
  background: #fff;
}

.page-equip .staff .container{
  width: min(1200px, 92%);
  margin: 0 auto;
}

.page-equip .staff-grid{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

/* Card */
.page-equip .staff-card{
  grid-column: span 4; /* 3 por fila desktop */
  background: #ffffff;
  border: 1px solid #eef2f7;
  border-radius: 18px;
  padding: 1.25rem;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 6px 20px rgba(0,0,0,.04);
  background: radial-gradient(circle at center, #ffffff 0%, #f6fefa 60%, #e8fff3 100%);
}

.page-equip .staff-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,.07);
}

/* ---------- Fotos del equipo  ---------- */
.page-equip .staff-photo{
  width: 180px;
  height: 180px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.10);
  transition: transform .3s ease, box-shadow .3s ease;
}

.page-equip .staff-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .3s ease;
}

/* Aumentar tamaño de la foto de Alda */
.page-equip .staff-photo img[src*="foto-alda"] {
  transform: scale(1.2);       /* agranda un 10% */
  object-position: center 35%; /* sube un poco el encuadre si lo deseas */
}

/* Ajuste específico para las fotos de Carla y Esther */
.page-equip .staff-card:nth-child(2) .staff-photo img,
.page-equip .staff-card:nth-child(5) .staff-photo img {
  object-position: center 20%; /* baja el encuadre */
}
.page-equip .staff-card:nth-child(4) .staff-photo img {
  object-position: center 30%; /* baja el encuadre */
}

/* efecto sutil al pasar el ratón */
.page-equip .staff-card:hover .staff-photo{
  transform: scale(1.05);
  box-shadow: 0 12px 28px rgba(0,0,0,.15);
}

.page-equip .staff-card:hover .staff-photo img{
  transform: scale(1.07);
}

/* Tipos */
.page-equip .staff-name{
  font-family: "Nunito","Arial Rounded MT Bold",system-ui,sans-serif;
  font-weight: 900;
  color: var(--text-dark);
  font-size: 1.1rem;
  margin-bottom: .25rem;
}

.page-equip .staff-role{
  color: #059669; /* verde sutil para la especialidad */
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: .35rem;
}

.page-equip .staff-detail{
  color: #4b5563;
  font-size: .95rem;
  line-height: 1.55;
}

/* ------------------------------
   PÀGINA: NOSALTRES
   ------------------------------ */

/* 🔹 Hero */
.page-nosaltres .hero {
  display: flex;
  justify-content: center;
  text-align: left;
  min-height: 70vh;
}

.page-nosaltres .hero-text {
  max-width: 900px;
}

.page-nosaltres .hero-text h1 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-family: "Nunito", "Arial Rounded MT Bold", sans-serif;
  color: var(--text-dark);
  margin-bottom: 1.2rem;
}

.page-nosaltres .hero-text h2 {
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-dark);
  max-width: 75ch;
  margin: 0 auto;
}

/* 🔹 Ajuste visual de la imagen del hero (Nosaltres) */
.page-nosaltres .hero-image {
  flex: 0 1 42%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-right: 1rem; /* empuja un poco hacia el borde derecho */
  position: relative;
}

.page-nosaltres .hero-image img {
  width: 100%;
  max-width: 440px;
  height: auto;
  border-radius: 1.5rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  object-fit: cover;
  opacity: 0.85; /* 🔹 leve transparencia */
  filter: brightness(1.05) saturate(0.95) blur(0.4px); /* 🔹 más suave y difuminada */
  transition: all 0.3s ease;
}

/* Efecto sutil al pasar el ratón (recupera nitidez) */
.page-nosaltres .hero-image img:hover {
  opacity: 1;
  filter: brightness(1.05) saturate(1) blur(0);
}

/* 🔹 Bloc 2: Per què triar-nos */

/* 🔹 Forzar alineación izquierda del bloque “Per què triar-nos” */
.page-nosaltres .invest {
  background: #fff;
  padding: clamp(4rem, 7vw, 6rem) 0; /* sin margen lateral */
}

.page-nosaltres .invest-content{
  text-align: left;
}

.page-nosaltres .invest-text{
  max-width: 850px;           /* opcional, para lectura cómoda */
  margin: 0 0 2rem 0;         /* 🔹 quita el auto-centering */
  text-align: left;
}

.page-nosaltres .invest-text h2{
  font-size: clamp(2.2rem, 3vw, 2.8rem);
  margin-bottom: 1rem;
}

.page-nosaltres .invest-text h3 {
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--text-dark);
  opacity: 0.9;
  max-width: none;   /* ✅ elimina la restricción de ancho */
  width: 100%;       /* usa todo el espacio disponible */
  text-align: left;
}


.page-nosaltres .invest-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.page-nosaltres .invest-card {
  background: linear-gradient(180deg, #f9fffc 0%, #ebfff5 100%);
  border: 1px solid #e3f5eb;
}

.page-nosaltres .invest-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.07);
}

/* 🔹 Bloc 3: Tractaments (mateix disseny que “La nostra experiència” del index) */
.page-nosaltres .experience.section {
  background-color: #ffffff;
  padding-bottom: 6rem;
}

/* Header */
.page-nosaltres .experience.section .exp-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: 1.5rem !important;
  margin-bottom: 1.5rem !important;
  text-align: left !important;
  flex-direction: row !important;
}

.page-nosaltres .experience.section .exp-header__titles {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.4rem !important;
}

.page-nosaltres .experience.section .exp-header h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem) !important;
  color: var(--text-dark) !important;
}

.page-nosaltres .experience.section .exp-header h3 {
  font-size: 1.1rem !important;
  font-weight: 500 !important;
  color: var(--text-dark) !important;
  max-width: 600px !important;
  line-height: 1.5 !important;
}

/* Ocultar botón en aquesta pàgina */
.page-nosaltres .experience.section .exp-header .btn-primary,
.page-nosaltres .experience.section .exp-header .btn-outline {
  display: none !important;
}

/* Grid de targetes */
.page-nosaltres .experience.section .exp-grid {
  display: grid !important;
  gap: 1.5rem !important;
  grid-template-columns: repeat(4, 1fr) !important;
  padding-top: 1rem !important;
  width: min(1100px, 92%) !important;
  margin-inline: auto !important;
}

/* Targetes */
.page-nosaltres .experience.section .exp-card {
  position: relative !important;
  display: block !important;
  text-decoration: none !important;
  color: var(--text-dark) !important;
  background:
    radial-gradient(circle at top left, rgba(111, 255, 176, 0.25), transparent 70%),
    radial-gradient(circle at bottom right, rgba(111, 255, 176, 0.25), transparent 70%) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-radius: var(--radius-2xl) !important;
  padding: 1.6rem 1.6rem 4.2rem !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08) !important;
  min-height: 170px !important;
  transition: transform .2s ease, box-shadow .2s ease !important;
  isolation: isolate !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
}

.page-nosaltres .experience.section .exp-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .12) !important;
}

/* Título dentro de la tarjeta */
.page-nosaltres .experience.section .exp-card h3 {
  margin: 0 !important;
  font-size: clamp(1.05rem, 2vw, 1.25rem) !important;
  color: var(--text-dark) !important;
  z-index: 1 !important;
  position: relative !important;
}

/* Icono centrado en el medio */
.page-nosaltres .experience.section .exp-card__icon {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  opacity: 0.25 !important;
  z-index: 0 !important;
}

.page-nosaltres .experience.section .exp-card__icon img {
  width: 90px !important;
  height: auto !important;
  filter: brightness(0) saturate(100%) invert(20%) sepia(90%) saturate(1800%)
          hue-rotate(95deg) brightness(80%) contrast(110%) !important;
  opacity: 2 !important;
  transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease !important;
}

.page-nosaltres .experience.section .exp-card:hover .exp-card__icon img {
  transform: scale(1.1) !important;
  filter: brightness(0) saturate(100%) invert(20%) sepia(90%) saturate(2000%)
          hue-rotate(95deg) brightness(95%) contrast(110%) !important;
  opacity: 4 !important;
}

/* ===========================
   🔹 PÀGINA MÚTUES
=========================== */

.page-mutues .hero-text {
  text-align: center !important;
  margin: 0 auto !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ---------- BLOC 2: Mútues i asseguradores ---------- */

.page-mutues #mutues {
  background: #ffffff;
}

/* 🔹 GRID DE MÚTUES (3 columnas × 2 filas) */
.page-mutues .mutues-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 320px)); /* 3 columnas “estrechas” */
  column-gap: 1rem;      /* menos espacio horizontal */
  row-gap: 1.2rem;       /* menos espacio vertical */
  justify-content: center;
  justify-items: center;
  align-items: stretch;
  list-style: none;

  /* clave para que las columnas laterales se acerquen al centro */
  width: min(1050px, 94%);
  margin: 4rem auto 0;
}

/* ---------- Tarjetas de mútues (fondo blanco + sombra verdosa) ---------- */
.page-mutues .mutua-card {
  background: #ffffff; /* fondo blanco limpio */
  border: 1px solid #e8f5ee; /* borde verde muy sutil */
  border-radius: 18px;
  text-align: center;
  padding: 1.5rem 1rem;
  transition: transform .2s ease, box-shadow .2s ease;
  /* sombra con tinte verdoso (más cálido que gris) */
  box-shadow: 0 8px 22px rgba(9, 124, 63, 0.12);
  width: 90%;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-mutues .mutua-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,.07);
}

/* 🔹 Imágenes uniformes */
.page-mutues .mutua-card img {
  width: 148px;
  height: auto;
  object-fit: contain;
  background-color: #fff;
  border-radius: 8px;
  margin-bottom: .75rem;
  padding: .4rem;
  filter: grayscale(0.1);
  transition: filter .2s ease;
}

.page-mutues .mutua-card:hover img {
  filter: grayscale(0);
}


/* ---------- BLOC 3: Consulta cobertures ---------- */
.page-mutues #consulta-cobertures {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 1rem;
  background: linear-gradient(180deg, #e8fff3 0%, #f6fefa 100%);
  border-radius: 2.5rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .04);
  width: 90%;
  max-width: 1200px;
  margin: 6rem auto 4rem; /* separa de las fichas de arriba y del footer */
}

.page-mutues #consulta-cobertures .container {
  max-width: 800px;
  margin: 0 auto;
}

.page-mutues #consulta-cobertures h2 {
  font-family: "Nunito", "Arial Rounded MT Bold", sans-serif;
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.page-mutues #consulta-cobertures p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-dark);
  max-width: 72ch;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

.page-mutues #consulta-cobertures .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.8rem;
  border: 2px solid #097C3F;
  border-radius: 50px;
  color: #097C3F;
  background-color: transparent;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.page-mutues #consulta-cobertures .btn-primary:hover {
  background-color: #097C3F;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(9, 124, 63, 0.22); /* sombra verde suave */
}


/* ---------- BLOC 4: FAQs (actualizado con sombra verde + icono) ---------- */

.page-mutues .faq {
  background: #ffffff;
  padding: 3rem 1rem 4rem;
}

.page-mutues .faq h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-dark);
}

/* Recuadro con sombra verdosa */
.page-mutues .faq-item {
  border: 1px solid #e8f5ee;
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.2rem;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(9, 124, 63, 0.1); /* sombra verde suave */
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.page-mutues .faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(9, 124, 63, 0.15);
}

/* Summary con icono + alineado a la derecha */
.page-mutues .faq-item summary {
  font-weight: 700;
  cursor: pointer;
  color: var(--text-dark);
  position: relative;
  list-style: none;
  padding-right: 2rem; /* espacio para el icono */
}

/* Elimina el marcador por defecto */
.page-mutues .faq-item summary::marker {
  display: none;
}

/* Icono "+" a la derecha */
.page-mutues .faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: #097C3F; /* verde corporativo */
  transition: transform 0.3s ease, color 0.3s ease;
}

/* Cuando el FAQ está abierto, cambia a "–" */
.page-mutues .faq-item[open] summary::after {
  content: "–";
  color: #0a5230;
  transform: translateY(-50%) rotate(180deg);
}

/* Texto desplegado */
.page-mutues .faq-item p {
  margin-top: .75rem;
  line-height: 1.6;
  color: var(--text-dark);
  font-size: .95rem;
  transition: opacity .3s ease;
}


/* Animació d’obertura */
.page-mutues .faq-item[open] p {
  animation: fadeIn .3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}



/* ------------------------------------------------------------ */
/* 🔹 PÀGINA CONTACTE                                           */
/* ------------------------------------------------------------ */

/* ----- HERO  ----- */
.page-contacte .hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
}

.page-contacte .hero-container {
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr; /* ✅ text i imatge costat a costat */
  align-items: center;
  gap: 2.5rem;
}

.page-contacte .hero-text {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.page-contacte .hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-contacte .hero-image img {
  width: 100%;
  max-width: 520px;
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  object-fit: cover;
}

.page-contacte .hero h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  font-family: "Arial Rounded MT Bold", "Nunito", sans-serif;
}

.page-contacte .hero h2 {
  font-size: 1.25rem;
  color: var(--text-dark);
  opacity: 0.9;
  max-width: 65ch;
  margin: 0 auto 1rem;
  line-height: 1.5;
}

.page-contacte .hero p {
  font-size: 1rem;
  color: var(--text-dark);
  opacity: 0.85;
  max-width: 70ch;
  margin: 0 auto;
  line-height: 1.6;
}

.page-contacte .hero .hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* ------------------------------------------------------------ */
/* 🔹 CONTACT ROWS (versió simple sense targetes)               */
/* ------------------------------------------------------------ */

.contact-rows {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  border-radius: 28px;                 /* cantonades grans com la UI general */
  margin-top: 1rem;
}

.contact-rows .container {
  max-width: 1100px;
}

.contact-rows__header {
  text-align: left;
  margin-bottom: 1.25rem;
}

.contact-rows__header h2 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  color: var(--text-dark);
  margin: 0 0 .35rem 0;
}

.contact-rows__header p {
  color: var(--text-dark);
  opacity: .85;
  margin: 0;
}

.contact-rows__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);  /* 3 columnes: Adreça, Horari, Contacte */
  gap: 2rem 3rem;
  padding-top: 1rem;
}

.contact-col h3 {
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: .5rem;
}

.contact-col p {
  margin: .2rem 0;
  color: var(--text-dark);
  opacity: .9;
  line-height: 1.6;
}

.contact-rows .link-inline {
  text-decoration: none;
  border-bottom: 2px solid rgba(0,0,0,.12);
  padding-bottom: 2px;
  transition: border-color .2s ease, opacity .2s ease;
  color: var(--text-dark);
}

.contact-rows .link-inline:hover {
  border-color: var(--accent);
  opacity: 1;
}

/* ----- Secció mapa (bloc 3) ----- */

.contact-map {
  background: #fff;
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.contact-map__container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.contact-map__text {
  max-width: 70ch;
  margin: 0.5rem auto 1.5rem;
  color: var(--text-dark);
  opacity: 0.9;
  line-height: 1.5;
}

.contact-map__card {
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.contact-map__card iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}

.contact-map__button {
  margin-top: 1.5rem;
}

/* ----- CTA flotant ----- */
.floating-cta {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 999;
}

.floating-cta.visible {
  opacity: 1;
  pointer-events: all;
}

.floating-cta .cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-cta .cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.floating-cta .cta-phone {
  background: #00b386;
}

.floating-cta .cta-wa {
  background: #25d366;
}


/* ------------------------------------------------------------ */
/* AVÍS LEGAL – estilos locales                                 */
/* ------------------------------------------------------------ */

/* HERO Avís legal: reducir altura y centrar contenido */
.page-legal .hero{
  min-height: auto !important;      /* anula el 70vh global */
  padding: 0 !important;            /* quitamos padding extra del hero */
}

.page-legal .hero .hero-container{
  display: flex !important;
  align-items: center !important;
  justify-content: center !important; /* centra el bloque interior */
  gap: 0 !important;
  min-height: 32vh !important;        /* altura real más baja */
  padding: 2rem !important;           /* padding interno del “card” verde */
  margin: 0 auto !important;
  width: min(1000px, 92%) !important; /* opcional, controla ancho */
}

.page-legal .hero .hero-text{
  text-align: center !important;
  margin: 0 !important;
  max-width: 760px !important;
}

.page-legal .hero .hero-text h1{
  margin: 0 0 .35rem 0 !important;
  font-size: clamp(1.9rem, 3vw, 2.3rem) !important;
}

.page-legal .hero .hero-text h2{
  margin: 0 !important;
  font-size: clamp(1rem, 2vw, 1.1rem) !important;
  font-weight: 500 !important;
  opacity: .85 !important;
}


.page-legal .section{
  background:#fff;
  padding: 2.4rem 0 3.2rem;
}

.page-legal .section .container{
  width: min(900px, 92%);
  margin: 0 auto;
  /* tarjeta suave */
  padding: 1.4rem 1.2rem;
}

/* Tipografía y ritmo vertical */
.page-legal h2{
  font-size: clamp(1.15rem, 2.1vw, 1.45rem);
  color: var(--text-dark);
  margin: 1.6rem 0 .5rem;
  line-height: 1.25;
  position: relative;
  scroll-margin-top: 90px; /* navegación por anclas si la hay */
}

/* Párrafos y listas */
.page-legal p{
  color: var(--text-dark);
  opacity:.95;
  line-height: 1.58;
  margin: 0 0 .9rem 0;
  word-break: break-word;
}

.page-legal ul{
  list-style: none;
  padding-left: 0;
  margin: .4rem 0 1.1rem;
}

.page-legal li{
  position: relative;
  padding-left: 1.4rem;
  margin: .35rem 0;
}

/* Viñeta personalizada */
.page-legal li::before{
  content:"";
  position:absolute;
  left:0; top:.55em;
  width:.5rem; height:.5rem;
}

/* Enlaces accesibles */
.page-legal a{
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(0,0,0,.25);
}
.page-legal a:hover,
.page-legal a:focus{
  text-decoration-color: currentColor;
}

/* Píldora para la fecha de actualización */
.page-legal .legal-updated{
  display:inline-block;
  background:#eefcf6;
  border:1px solid #dff7ed;
  border-radius:999px;
  padding:.4rem .8rem;
  font-size: .92rem;
  margin-top:.25rem;
}

/* ------------------------------------------------------------ */
/* 🟢 POLÍTICA DE PRIVACITAT – estils locals                    */
/* ------------------------------------------------------------ */

/* HERO curt i centrat */
.page-legal .hero{
  min-height: auto !important;
  padding: 0 !important;
}

.page-legal .hero .hero-container{
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 32vh !important;
  padding: 2rem !important;
  margin: 0 auto !important;
  width: min(1000px, 92%) !important;
  text-align: center !important;
}

.page-legal .hero .hero-text{
  max-width: 760px !important;
  margin: 0 auto !important;
}

.page-legal .hero .hero-text h1{
  margin: 0 0 .35rem 0 !important;
  font-size: clamp(1.9rem, 3vw, 2.3rem) !important;
  color: var(--text-dark) !important;
}

.page-legal .hero .hero-text h2{
  margin: 0 !important;
  font-size: clamp(1rem, 2vw, 1.1rem) !important;
  font-weight: 500 !important;
  opacity: .85 !important;
  color: var(--text-dark) !important;
}

/* Cos principal */
.page-legal .section{
  background:#fff;
  padding: 2.4rem 0 3.2rem;
}

.page-legal .section .container{
  width: min(900px, 92%);
  margin: 0 auto;
  padding: 1.6rem 1.4rem;
}

/* Títols */
.page-legal h2{
  font-size: clamp(1.15rem, 2.1vw, 1.45rem);
  color: var(--text-dark);
  margin: 1.6rem 0 .5rem;
  line-height: 1.25;
  position: relative;
  scroll-margin-top: 90px;
}

.page-legal h2::before{
  content:"";
  position:absolute;
  left:-.75rem;
  top:.55em;
  width:8px;
  height:8px;
}

/* Text i paràgrafs */
.page-legal p{
  color: var(--text-dark);
  opacity:.95;
  line-height: 1.58;
  margin: 0 0 .9rem 0;
  word-break: break-word;
}

.page-legal ul{
  list-style: none;
  padding-left: 0;
  margin: .4rem 0 1.1rem;
}

.page-legal li{
  position: relative;
  padding-left: 1.4rem;
  margin: .35rem 0;
}

.page-legal li::before{
  content:"";
  position:absolute;
  left:0;
  top:.55em;
  width:.5rem;
  height:.5rem;
}

/* Enllaços */
.page-legal a{
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(0,0,0,.25);
}
.page-legal a:hover,
.page-legal a:focus{
  text-decoration-color: currentColor;
}

/* Píldora de data d’actualització */
.page-legal .legal-updated{
  display:inline-block;
  padding:.4rem .8rem;
  font-size:.92rem;
  margin-top:.25rem;
}


/* Neutraliza colores sueltos de páginas que pisaban el título del hero */
.page-equip .hero .hero-text h1,
.page-legal .hero .hero-text h1,
.page-tractaments .hero .hero-text h1,
.page-nosaltres .hero .hero-text h1,
.page-mutues .hero .hero-text h1,
.page-contacte .hero .hero-text h1{
  color: var(--hero-h1-color);
}

.hero-text--equip{ color: inherit; }









