/* ==========================================================
   Escola Infantil Betania: estilos del diseño (HTML/assets/css/custom.css), sobre Bootstrap 5.3.
   Colors de marca: llima #becd01 · llima clar #ced95a · negre #1c1b1a
   Las fuentes (Lora y Poppins) se sirven desde la propia web (assets/app.js), no desde Google Fonts.
   ========================================================== */

:root {
  --bet-lime: #becd01;
  --bet-lime-dark: #8a9412;
  --bet-lime-soft: #eef2cf;
  --bet-ink: #1c1b1a;
  --bet-cream: #faf9f2;
}

body {
  font-family: "Poppins", "Segoe UI", sans-serif;
  color: var(--bet-ink);
  background-color: #ffffff;
}

h1, h2, .section-title, .hero-title {
  font-family: "Lora Variable", Georgia, serif;
}

h3 {
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-weight: 600;
}

/* ---------- Utilitats de color ---------- */

.bg-cream {
  background-color: var(--bet-cream);
}

.text-lime {
  color: var(--bet-lime-dark);
}

.icon-inline {
  vertical-align: -0.18em;
}

/* ---------- Navegació ---------- */

#mainNav {
  border-bottom: 1px solid rgba(28, 27, 26, 0.06);
}

#mainNav .nav-link {
  color: var(--bet-ink);
  font-weight: 500;
}

#mainNav .nav-link:hover, #mainNav .nav-link:focus {
  color: var(--bet-lime-dark);
}

#mainNav .nav-link.active {
  border-bottom: 2px solid var(--bet-lime);
}

/* ---------- Botons ---------- */

.btn-lime {
  background-color: var(--bet-lime);
  border: 2px solid var(--bet-lime);
  color: var(--bet-ink);
  font-weight: 600;
}

.btn-lime:hover, .btn-lime:focus {
  background-color: var(--bet-lime-dark);
  border-color: var(--bet-lime-dark);
  color: #ffffff;
}

.btn-outline-dark {
  border-width: 2px;
  font-weight: 600;
  background-color: #ffffff;
}

.btn-outline-dark:hover, .btn-outline-dark:focus {
  background-color: var(--bet-ink);
  color: #ffffff;
}

.btn-whatsapp {
  background-color: #25d366;
  border: 2px solid #25d366;
  color: #ffffff;
  font-weight: 600;
}

.btn-whatsapp:hover, .btn-whatsapp:focus {
  background-color: #1eb455;
  border-color: #1eb455;
  color: #ffffff;
}

/* ---------- Icones de botó (segueixen el color del text, també en hover) ---------- */

.btn-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  background-color: currentColor;
  vertical-align: -0.15em;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.icon-calendar {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='3'/%3E%3Cpath d='M8 3v4M16 3v4M3 10h18'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='3'/%3E%3Cpath d='M8 3v4M16 3v4M3 10h18'/%3E%3C/svg%3E");
}

.icon-whatsapp {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a9 9 0 0 0-7.8 13.5L3 21l4.7-1.2A9 9 0 1 0 12 3Z'/%3E%3Cpath d='M9 8.5c.5 3 3.5 6 6.5 6.5l1-2-2.5-1-1 1c-1-.5-2-1.5-2.5-2.5l1-1-1-2.5Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a9 9 0 0 0-7.8 13.5L3 21l4.7-1.2A9 9 0 1 0 12 3Z'/%3E%3Cpath d='M9 8.5c.5 3 3.5 6 6.5 6.5l1-2-2.5-1-1 1c-1-.5-2-1.5-2.5-2.5l1-1-1-2.5Z'/%3E%3C/svg%3E");
}

.icon-photo {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2.5'/%3E%3Ccircle cx='9' cy='10' r='1.6'/%3E%3Cpath d='m4.5 17 5-5 3.5 3.5L17 12l2.5 2.5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2.5'/%3E%3Ccircle cx='9' cy='10' r='1.6'/%3E%3Cpath d='m4.5 17 5-5 3.5 3.5L17 12l2.5 2.5'/%3E%3C/svg%3E");
}

.icon-instagram {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.4' cy='6.6' r='0.6' fill='%23000'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.4' cy='6.6' r='0.6' fill='%23000'/%3E%3C/svg%3E");
}

.icon-facebook {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 8H17V4.5h-2.5A4 4 0 0 0 10.5 8.5V11H8v3.5h2.5V21H14v-6.5h2.6l.4-3.5h-3V8.9a.9.9 0 0 1 .9-.9Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 8H17V4.5h-2.5A4 4 0 0 0 10.5 8.5V11H8v3.5h2.5V21H14v-6.5h2.6l.4-3.5h-3V8.9a.9.9 0 0 1 .9-.9Z'/%3E%3C/svg%3E");
}

/* ---------- Xarxes socials (contacte) ---------- */

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(138, 148, 18, 0.35);
  background-color: #ffffff;
  color: var(--bet-lime-dark);
  font-size: 22px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.social-link:hover, .social-link:focus-visible {
  background-color: var(--bet-lime);
  border-color: var(--bet-lime);
  color: var(--bet-ink);
  transform: translateY(-2px);
}


/* ---------- Hero ---------- */

.hero {
  background-color: var(--bet-cream);
  overflow: hidden;
  border-radius: 0 0 50% 50% / 0 0 4.5rem 4.5rem;
}

.hero-title {
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero-lead {
  max-width: 24rem;
}

.hero > .container {
  z-index: 1;
}

.hero-actions .btn {
  white-space: nowrap;
}

.hero-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  z-index: 0;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 22%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 22%);
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

@media (min-width: 992px) {
  .hero-photo-wrap {
    position: absolute;
    top: 0;
    right: 0;
    width: 58%;
    height: 100%;
    aspect-ratio: auto;
    -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 24%);
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 24%);
  }
}

@media (min-width: 992px) {
  .hero-photo {
    object-position: center;
  }
}

@media (max-width: 991.98px) {
  .hero {
    border-radius: 0 0 50% 50% / 0 0 2.25rem 2.25rem;
  }
}

@media (max-width: 991.98px) {
  .hero > .container {
    padding-bottom: 2rem !important;
  }
}

/* Carrusels de fos (hero i l'escola) */

.fade-slide {
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
}

.fade-slide.is-active {
  opacity: 1;
}

.photo-frame {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 1rem 2.5rem rgba(28, 27, 26, 0.1);
}

.photo-frame .fade-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Seccions ---------- */

.eyebrow {
  color: var(--bet-lime-dark);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.section-title {
  font-weight: 600;
}

/* Llista d'idees clau (secció Betania) */

.key-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.key-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background-color: var(--bet-lime);
}

/* ---------- Projecte educatiu ---------- */

.idea-card {
  background-color: #ffffff;
  border-radius: 1.5rem;
  box-shadow: 0 0.5rem 1.5rem rgba(28, 27, 26, 0.06);
}

.idea-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--bet-lime-soft);
  color: var(--bet-lime-dark);
}

.stage-card {
  background-color: #ffffff;
  border: 2px solid var(--bet-lime-soft);
  border-radius: 1.5rem;
}

.stage-badge {
  background-color: var(--bet-lime);
  color: var(--bet-ink);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.55em 1em;
}

.team-strip {
  background-color: #ffffff;
  box-shadow: 0 0.5rem 1.5rem rgba(28, 27, 26, 0.06);
}

.team-member {
  border: 0;
  padding: 0;
  background: none;
  margin-left: -14px;
  border-radius: 50%;
  transition: transform 0.25s ease;
}

.team-member:first-child {
  margin-left: 0;
}

.team-member {
  position: relative;
}

.team-member:hover .team-avatar, .team-member.open .team-avatar {
  transform: translateY(-5px) scale(1.06);
}

.team-member:hover, .team-member.open {
  z-index: 5;
}

.team-member:focus-visible {
  outline: 3px solid var(--bet-lime);
  outline-offset: 2px;
}

.team-avatar {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffffff;
  box-shadow: 0 0.3rem 0.9rem rgba(28, 27, 26, 0.14);
  display: block;
  transition: transform 0.25s ease;
}

.team-title {
  font-size: 1.6rem;
}

.team-subtitle {
  max-width: 560px;
  color: #6d6a63;
  font-size: 0.95rem;
}

.team-group {
  margin-bottom: 2.25rem;
}

.team-group-title {
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--bet-lime-dark);
  margin-bottom: 0.9rem;
}

.team-pop {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  display: block;
  background-color: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 0.5rem 1.4rem rgba(28, 27, 26, 0.16);
  padding: 0.45rem 0.9rem;
  white-space: nowrap;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 10;
}

.team-pop::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  background-color: #ffffff;
  transform: translateX(-50%) rotate(45deg);
}

.team-member:hover .team-pop, .team-member.open .team-pop {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.team-pop-name {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.3;
}

.team-pop-role {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--bet-lime-dark);
  line-height: 1.3;
}

.team-caption-text {
  max-width: 640px;
  font-family: "Lora Variable", Georgia, serif;
  font-style: italic;
  color: #55524c;
}

@media (max-width: 575.98px) {
  .team-avatar {
    width: 56px;
    height: 56px;
    margin-left: -10px;
  }
}

/* ---------- Galeria ---------- */

.gallery-item {
  box-shadow: 0 0.4rem 1.2rem rgba(28, 27, 26, 0.08);
}

.gallery-item img {
  aspect-ratio: 6 / 5;
  object-fit: cover;
  transition: transform 0.35s ease;
}

/* ---------- Recursos ---------- */

.resource-card {
  background-color: #ffffff;
  border-radius: 1.5rem;
  box-shadow: 0 0.5rem 1.5rem rgba(28, 27, 26, 0.06);
}

.resource-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 1rem;
  background-color: var(--bet-lime-soft);
  color: var(--bet-lime-dark);
}

.doc-link {
  color: var(--bet-lime-dark);
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 0.35rem;
}

.doc-link:hover, .doc-link:focus {
  color: var(--bet-ink);
  text-decoration: underline;
}

/* ---------- Contacte ---------- */

.contact-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--bet-lime-dark);
  margin-bottom: 0.25rem;
}

.contact-value {
  color: var(--bet-ink);
  font-weight: 500;
  text-decoration: none;
}

a.contact-value:hover, a.contact-value:focus {
  color: var(--bet-lime-dark);
}

.contact-mascot {
  position: absolute;
  right: 2rem;
  bottom: 0;
  width: 130px;
  opacity: 0.95;
}

/* ---------- Peu de pàgina ---------- */

.footer {
  background-color: var(--bet-ink);
  color: #ffffff;
}

.footer-link {
  color: var(--bet-lime);
  text-decoration: none;
}

.footer-link:hover, .footer-link:focus {
  color: #ffffff;
}

/* ---------- Barra mòbil fixa ---------- */

.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1030;
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 -0.25rem 1rem rgba(28, 27, 26, 0.12);
}

.mobile-bar .btn {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Responsive ---------- */

/* Hueco para la barra fija del móvil (solo la portada la lleva) */
@media (max-width: 991.98px) {
  body.amb-barra-mobil {
    padding-bottom: 76px;
  }
}

@media (max-width: 991.98px) {
  .navbar-brand img {
    height: 44px;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: calc(2.4rem + 2vw);
  }
}

/* ==========================================================
   Animacions discretes
   ========================================================== */

html {
  scroll-behavior: smooth;
}

section, header.hero {
  scroll-margin-top: 92px;
}

/* Navbar amb ombra en fer scroll */

#mainNav {
  transition: box-shadow 0.3s ease;
}

#mainNav.scrolled {
  box-shadow: 0 0.35rem 1.2rem rgba(28, 27, 26, 0.08);
}

/* Entrada del hero en carregar */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title, .hero-lead, .hero .btn {
  animation: fadeUp 0.7s ease both;
}

.hero-lead {
  animation-delay: 0.15s;
}

.hero .btn {
  animation-delay: 0.3s;
}

.hero-photo-wrap {
  animation: fadeUp 0.9s ease both;
}

/* Aparició suau dels blocs en fer scroll */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Micro-interaccions de botons i targetes */

.btn {
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn-lime:hover, .btn-lime:focus, .btn-outline-dark:hover, .btn-outline-dark:focus {
  transform: translateY(-2px);
}

.idea-card, .stage-card, .resource-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.idea-card:hover, .resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.9rem 2rem rgba(28, 27, 26, 0.09);
}

.stage-card:hover {
  transform: translateY(-4px);
}

/* Respecte a qui prefereix menys moviment */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title, .hero-lead, .hero .btn, .hero-photo-wrap {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .idea-card, .stage-card, .resource-card, .gallery-item img {
    transition: none;
  }
}

/* Equip: les etiquetes no desborden la pàgina; prop de les vores es desplacen cap a dins */

.team-strip {
  overflow: hidden;
}

.team-pop {
  margin-left: var(--pop-shift, 0px);
}

.team-pop::before {
  margin-left: calc(var(--pop-shift, 0px) * -1);
}

/* ---------- Bombolla flotant de WhatsApp (escriptori) ---------- */

.whatsapp-float {
  position: fixed;
  right: 1.75rem;
  /* 2.75rem y no 1.75rem: deja libre el botón «Privacidad» de InMobi (30 px, abajo a la derecha) */
  bottom: 2.75rem;
  z-index: 1030;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #25d366;
  color: #ffffff;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0.6rem 1.6rem rgba(28, 27, 26, 0.25);
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.whatsapp-float:hover, .whatsapp-float:focus-visible {
  background-color: #1eb455;
  color: #ffffff;
  transform: translateY(-3px) scale(1.05);
}

.wa-glyph {
  display: block;
  width: 30px;
  height: 30px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Enllaços del peu ---------- */

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.25rem;
}

/* ---------- Pàgina legal ---------- */

.legal-content {
  max-width: 760px;
}

.legal-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.75rem;
}

.legal-intro {
  color: #6d6a63;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.legal-h2 {
  font-size: 1.7rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  scroll-margin-top: 110px;
}

.legal-h3 {
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.legal-content p, .legal-list li {
  color: #4c4a45;
  line-height: 1.75;
}

.legal-list {
  padding-left: 1.2rem;
}

.legal-content a {
  color: var(--bet-lime-dark);
}

.legal-updated {
  margin-top: 3rem;
  font-size: 0.85rem;
  color: #8a877f !important;
}

@media (prefers-reduced-motion: reduce) {
  .fade-slide {
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float {
    transition: none;
  }
}

/* ==========================================================
   Añadidos al diseño (integración en Symfony)
   ========================================================== */

/* Enlace «Salta al contingut»: oculto hasta que recibe el foco con el teclado */
.salt-contingut:focus {
  position: fixed !important;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1100;
  padding: 0.5rem 1rem;
  border-radius: 50rem;
  background-color: var(--bet-lime);
  color: var(--bet-ink);
  font-weight: 600;
}

.contact-value {
  font-style: normal;
}

/* Pie siempre abajo, aunque la página sea corta (/families, 404…): el contenido ocupa el alto que sobra y la
   última sección se estira para que su fondo llegue hasta el pie. */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

#contingut {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
}

#contingut > :last-child {
  flex-grow: 1;
}

/* El logo lleva width y height (para no mover la página al cargar); la altura la manda el CSS */
.navbar-brand img {
  width: auto;
}

/* Textos legales (página legal): listas y enlaces largos */
.legal-content article a {
  overflow-wrap: anywhere;
}


/* Botón con aspecto de enlace (pie: «Configuració de cookies») */
.boto-enllac {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
