/* Base */
:root{
  --ink: #122E3A;
  --hover-bg: rgba(46, 112, 140, 0.33);
  --max: 1280px;
  --pad: 35px;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: "Lexend Deca", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
}

.section{ min-height: 100vh; width: 100%; }

/* ---------- SECCIÓ 1 (igual que v11) ---------- */
.section--hero{
  position: relative;
  background: url("assets/fons.png") center / cover no-repeat;
}

.container{
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.topbar{
  width: 100%;
  padding-inline: 0;
  padding: 18px 0;
  transform: translate3d(0, -56px, 0);
  opacity: 0;
  transition: transform 500ms ease-out, opacity 500ms ease-out;
  will-change: transform, opacity;
  position: relative;
  z-index: 2;
}
#sec-1.is-inview .topbar{
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

.topbar__inner{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.topbar__nav{ display: flex; gap: 16px; align-items: center; }
.topbar__right{ display: flex; justify-content: flex-end; align-items: center; gap: 16px; }

.brand{ display: inline-flex; align-items: center; justify-content: center; text-decoration: none; line-height: 1; }
.brand__img{ display: block; height: 36px; width: auto; }

.pill{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-size: 13px;
  line-height: 1;
  background: transparent;
  transition: background-color 150ms ease, color 150ms ease, transform 120ms ease;
}
.pill:hover{ background: var(--hover-bg); }
.pill:active,
.pill.is-active{ background: var(--ink); color: #fff; }

.hero{
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.blaur-wrap{
  position: absolute;
  left: var(--pad);
  bottom: 0;
  transform: translate3d(-560px, 0, 0);
  transition: transform 500ms ease-out;
  will-change: transform;
}
#sec-1.is-inview .blaur-wrap{ transform: translate3d(0, 0, 0); }

.blaur{
  display: block;
  width: min(640px, 62vw);
  height: auto;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Mobile hamburger */
.hamburger{
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.hamburger img{ width: 44px; height: 44px; display: block; }

/* Mobile dropdown */
.mobile-menu{
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0,0,0,0);
}
.mobile-menu.is-open{ display: block; }

.mobile-menu__panel{
  position: absolute;
  top: 72px;
  left: var(--pad);
  width: 220px;
  height: 320px;
  background: #fff url("assets/desplegable.png") center / cover no-repeat;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
  padding: 18px 14px 14px;
}
.mobile-menu__links{ display: grid; gap: 12px; margin-top: 6px; }

.mobile-link{
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  display: inline-flex;
  align-self: flex-start;
}
.mobile-link:hover{ background: var(--hover-bg); border-color: var(--ink); }
.mobile-link:active,
.mobile-link.is-active{ background: var(--ink); color:#fff; border-color: var(--ink); }

.mobile-menu__cart{
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
}

/* Tablet stays like desktop */
@media (max-width: 1023px){
  /* container padding stays 35px */
}

/* Mobile layout for section 1 */
@media (max-width: 475px){
  .topbar__nav--left{ display: none; }
  .topbar__shop{ display: none; }
  .brand{ display: none; }

  .topbar__inner{ grid-template-columns: 1fr; }
  .topbar__right{ justify-content: flex-start; }
  .hamburger{ display: inline-flex; align-items: center; justify-content: center; }

  .section--hero{ background-position: center 32%; }

  .blaur-wrap{
    left: 50%;
    bottom: 0;
    transform: translate3d(calc(-50% - 560px), 0, 0);
  }
  #sec-1.is-inview .blaur-wrap{ transform: translate3d(-50%, 0, 0); }

  .blaur{ width: min(360px, 82vw); }
}

/* ---------- SECCIÓ 2 ---------- */
/* Aquesta secció NO fa 100vh */
.section--about{
  min-height: unset;
  height: 256px; /* desktop aproximat */
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
}

.about__inner{
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: center;
  gap: 40px;
}

.about__title,
.about__text{
  font-family: "Teachers", "Lexend Deca", system-ui, sans-serif;
}

.about__title{
  margin: 0;
  font-weight: 700;
  font-size: 34px;
  line-height: 1.1;
  justify-self: start;
}

.about__text{
  margin: 0;
  font-weight: 400;
  font-size: 26px;
  line-height: 1.25;
  text-align: center;
  justify-self: end;
  max-width: 860px;
}

/* Animació in-view (300ms ease-out des de baix) */
.anim-up{
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: transform 300ms ease-out, opacity 300ms ease-out;
  will-change: transform, opacity;
}

#sec-2.is-inview .anim-up{
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Tablet */
@media (max-width: 1023px){
  .section--about{
    height: auto;
    padding: 26px 0;
  }
  .about__inner{
    grid-template-columns: 1fr;
    gap: 14px;
    text-align: center;
  }
  .about__title{
    font-size: 24px;
    justify-self: center;
  }
  .about__text{
    font-size: 16px;
    max-width: 720px;
    justify-self: center;
  }
}

/* Mobile */
@media (max-width: 475px){
  .section--about{
    padding: 22px 0;
  }
  .about__title{ font-size: 20px; }
  .about__text{ font-size: 14px; }
}

/* Placeholder */
.section--spacer{ background: #f4f6f8; }


/* Header aligns to global padding */
.topbar .container{
  padding-inline: 0;
}


/* ---------- SECCIÓ 3 ---------- */
.section--origin{
  background: url("assets/fons-sec3.jpg") center / cover no-repeat;
  display: flex;
  align-items: center;
}

.origin__inner{
  display: flex;
  justify-content: flex-start; /* left desktop/tablet */
}

/* Peça vidre */
.glass{
  width: 550px;            /* amplada exacta */
  min-height: 340px;
  padding: 26px 30px;      /* 30px L/R */
  background: rgba(255,255,255,0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 28px;
  color: #fff;
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 16px;
}

/* Animació in-view: entra per l’esquerra (300ms ease-out) */
.anim-left{
  opacity: 0;
  transform: translate3d(-36px, 0, 0);
  transition: transform 300ms ease-out, opacity 300ms ease-out;
  will-change: transform, opacity;
}
#sec-3.is-inview .anim-left{
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.glass__title{
  margin: 0;
  font-family: "Abril Fatface", serif;
  font-size: 32px; /* desktop */
  font-weight: 400;
}

.glass__text{
  margin: 0;
  font-family: "Teachers", system-ui, sans-serif;
  font-weight: 500; /* medium */
  font-size: 20px; /* desktop */
  line-height: 1.35;
}

/* Botó (imatges) */
.glass__ctaRow{
  display: flex;
  justify-content: flex-end; /* right desktop/tablet */
  align-items: center;
}
.glass__cta{
  width: 140px;
  height: 28px;
  display: inline-block;
  background: url("assets/btn-default.png") center / contain no-repeat;
}
.glass__cta:hover{ background-image: url("assets/btn-hover.png"); }
.glass__cta:active{ background-image: url("assets/btn-active.png"); }

/* Tablet */
@media (max-width: 1023px){
  .glass__title{ font-size: 30px; }
  .glass__text{ font-size: 18px; }
}

/* Mobile ≤475 */
@media (max-width: 475px){
  .origin__inner{ justify-content: center; } /* vidre center */
  .glass{
    width: min(550px, 92vw);
    text-align: center; /* text center */
  }
  .glass__title{ font-size: 26px; }
  .glass__text{ font-size: 14px; }
  .glass__ctaRow{ justify-content: center; } /* botó center */
}


/* ===== SECCIÓ 4 (integrada) ===== */
:root{
  --sec4-ink: #122E3A;
  --sec4-divider: rgba(18, 46, 58, 0.45);
  --sec4-ease: ease-out;
  --sec4-dur: 500ms;
  --sec4-card-pad: 19px;
  --sec4-gap-img: 30px;
}

body{
  margin:0;
  font-family:"Teachers", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--sec4-ink);
  background:#fff;
}

/* IMPORTANT: Secció 4 SENSE paddings globals */
.sec4{ font-family:"Teachers", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  width:100%;
  min-height:100vh; /* desktop */
  background:#fff;
}

/* Desktop: 3 columns */
.cards{
  width:100%;
  min-height:100vh;
  display:flex;
  align-items:stretch;
}

/* Card */
.card{
  flex:1 1 0;
  padding:var(--sec4-card-pad);
  background:#fff;
  display:flex;
  flex-direction:column;
  position:relative;
}
.card + .card{
  border-left:1px solid var(--sec4-divider);
}

/* Typography */
.card__title{
  margin:0;
  font-weight:600; /* Teachers SemiBold */
  font-size:32px;  /* desktop + tablet */
  line-height:1.1;
}

.card__foot{
  font-size:20px;  /* desktop */
  font-weight:400;
}

/* Body region with fixed gaps top/bottom */
.card__body{
  position:relative;
  flex:1 1 auto;
  margin-top:var(--sec4-gap-img);
  margin-bottom:var(--sec4-gap-img);
  overflow:hidden;
}

/* Image fills the whole body area without deformation (crop if needed) */
.card__img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:1;
  transform:translate3d(0,0,0);
  transition: transform var(--sec4-dur) var(--sec4-ease), opacity var(--sec4-dur) var(--sec4-ease);
  will-change:transform, opacity;
}

/* Hidden text underneath (shows when image leaves) */
.card__text{
  position:absolute;
  inset:0;
  margin:0;
  font-weight:500; /* Teachers Medium */
  font-size:20px;  /* desktop */
  line-height:1.35;
  text-align:left;
  opacity:0;
  transform:translate3d(0,6px,0);
  transition: opacity var(--sec4-dur) var(--sec4-ease), transform var(--sec4-dur) var(--sec4-ease);
  will-change:opacity, transform;
}

/* Footer */
.card__footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

/* CTA button (same behavior as menu buttons) */
.pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 14px;
  border:1px solid var(--sec4-ink);
  border-radius:999px;
  text-decoration:none;
  color:var(--sec4-ink);
  font-size:13px;
  line-height:1;
  background:transparent;
  transition: background-color 150ms ease, color 150ms ease, opacity var(--sec4-dur) var(--sec4-ease), transform var(--sec4-dur) var(--sec4-ease);
}
.pill:hover{ background: rgba(46,112,140,0.33); }
.pill:active{ background: var(--sec4-ink); color:#fff; }

/* Default: CTA hidden (appears when “hover/click” state active) */
.card__btn{
  opacity:0;
  pointer-events:none;
  transform:translate3d(0,4px,0);
}

/* Desktop interaction: HOVER */
@media (hover:hover) and (pointer:fine){
  .card:hover .card__img{
    transform:translate3d(-80px,0,0);
    opacity:0;
  }
  .card:hover .card__text{
    opacity:1;
    transform:translate3d(0,0,0);
  }
  .card:hover .card__btn{
    opacity:1;
    pointer-events:auto;
    transform:translate3d(0,0,0);
  }
}

/* Tablet (768–1023): carousel, height 600, click toggles */
@media (max-width:1023px){
  .sec4{ font-family:"Teachers", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    min-height:unset;
    height:600px;
  }
  .cards{
    min-height:unset;
    height:600px;
    overflow-x:auto;
    overflow-y:hidden;
    flex-wrap:nowrap;
    scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;
  }
  .cards::-webkit-scrollbar{ height:0; }

  .card{
    flex:0 0 426px; /* tablet width */
    scroll-snap-align:start;
  }

  .card__text{ font-size:18px; }
  .card__foot{ font-size:18px; }

  /* Disable hover-only effect on touch/tablet; use .is-open */
  .card.is-open .card__img{
    transform:translate3d(-80px,0,0);
    opacity:0;
  }
  .card.is-open .card__text{
    opacity:1;
    transform:translate3d(0,0,0);
  }
  .card.is-open .card__btn{
    opacity:1;
    pointer-events:auto;
    transform:translate3d(0,0,0);
  }
}

/* Mobile (<=475): carousel, card width 100vw, sizes 19/11 */
@media (max-width:475px){
  .sec4{ font-family:"Teachers", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    height:auto; /* user allows adjusting height if needed */
  }
  .cards{
    height:auto;
  }
  .card{
    flex:0 0 100vw;
  }

  .card__title{ font-size:19px; }
  .card__text{ font-size:11px; }
  .card__foot{ font-size:11px; }
}


/* Mobile (<=475): carousel, card width 100vw.
   IMPORTANT: keep a height constraint so the image area doesn't collapse (body uses absolute children). */
@media (max-width:475px){
  .sec4{ font-family:"Teachers", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    min-height: 100vh;
    height: 100vh;
  }
  .cards{
    height: 100vh;
  }
  .card{
    flex: 0 0 100vw;
    min-height: 100vh;
  }

  .card__title{ font-size:19px; }
  .card__text{ font-size:11px; }
  .card__foot{ font-size:11px; }
}



/* ---------- SECCIÓ 5 ---------- */
.section--minerals{
  position: relative;
  background: url('assets/fons-sec5.jpg') center / cover no-repeat;
  padding: 72px 132px;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.minerals__glass.glass--full{
  width: 100%;
  min-height: calc(100vh - 144px); /* 100vh - (72+72) */
  height: 100%;
  padding: 56px 64px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: center;
}

.minerals__left{
  text-align: left;
}

.minerals__title{
  margin: 0;
  font-family: "Teachers", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 600;
  font-size: 32px;
  line-height: 1.15;
  color: #fff;
}

.minerals__list{
  margin: 35px 0 0 0;
  padding-left: 20px;
  font-family: "Teachers", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.6;
  color: #fff;
}

.minerals__right{
  display: flex;
  justify-content: center;
  align-items: center;
}

.minerals__percent{
  opacity: 0;              /* per defecte invisible */
  text-align: center;
  position: relative;
}

.minerals__percentValue{
  font-family: "Abril Fatface", serif;
  font-weight: 400;
  font-size: 64px;
  line-height: 1;
  color: #fff;
  margin-bottom: 14px;
}

.minerals__ring{
  width: 220px;
  height: 220px;
  transform: rotate(-90deg);
}

.minerals__ringBg,
.minerals__ringFg{
  fill: none;
  stroke: rgba(255,255,255,0.35);
  stroke-width: 10;
}

.minerals__ringFg{
  stroke: rgba(255,255,255,0.9);
  stroke-linecap: round;
  stroke-dasharray: 289;     /* 2πr amb r=46 aprox */
  stroke-dashoffset: 289;    /* 0% */
}

@media (max-width: 1023px){
  .section--minerals{ padding: 72px 60px; }
  .minerals__glass.glass--full{
    padding: 44px 44px;
    grid-template-columns: 1fr 280px;
    gap: 28px;
  }
  .minerals__title{ font-size: 24px; }
  .minerals__list{ font-size: 18px; }
  .minerals__percentValue{ font-size: 45px; }
  .minerals__ring{ width: 180px; height: 180px; }
}

@media (max-width: 475px){
  .section--minerals{ padding: 72px 24px; }
  .minerals__glass.glass--full{
    min-height: calc(100vh - 144px);
    padding: 32px 24px;
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .minerals__title{ font-size: 21px; }
  .minerals__list{ font-size: 11px; padding-left: 18px; }
  .minerals__percentValue{ font-size: 28px; }
  .minerals__ring{ width: 150px; height: 150px; }
}


/* --- Secció 5 refinada (segons guia visual) --- */
.section--minerals{
  padding: 72px 132px;
  min-height: 520px;
}

.section--minerals .minerals__glass.glass--full{
  width: 100%;
  height: 100%;
  min-height: unset;
  padding: 56px 64px;
  border-radius: 32px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: 0 18px 45px rgba(0,0,0,0.18);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}

.section--minerals .minerals__left{
  max-width: 520px;
}

.section--minerals .minerals__title{
  text-shadow: 0 2px 14px rgba(0,0,0,0.25);
}

.section--minerals .minerals__list{
  margin-top: 35px;
}

.section--minerals .minerals__right{
  display: flex;
  align-items: center;
  justify-content: center;
}

.section--minerals .minerals__percent{
  opacity: 1; /* el text es veu */
}

.section--minerals .minerals__ring{
  opacity: 0; /* el diagrama per defecte invisible */
}

@media (max-width: 1023px){
  .section--minerals{ padding: 72px 60px; }
  .section--minerals .minerals__glass.glass--full{
    padding: 44px 44px;
    border-radius: 28px;
    grid-template-columns: 1fr 260px;
  }
}

@media (max-width: 639px){
  .section--minerals{ padding: 72px 20px; }
  .section--minerals .minerals__glass.glass--full{
    padding: 28px 24px;
    border-radius: 22px;
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .section--minerals .minerals__right{
    justify-content: flex-end;
  }
}


/* ===== SECCIÓ 5 - OPCIÓ B (SVG fill real) ===== */
.section--minerals{
  width: 100vw;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
}

/* sense ombres */
.section--minerals .minerals__title,
.section--minerals .minerals__list,
.section--minerals .minerals__list li,
.section--minerals .minerals__percentValue{
  text-shadow: none !important;
}

/* llista en Teachers Medium */
.section--minerals .minerals__list{ font-weight: 500; }

/* diagrama centrat horitzontalment */
.section--minerals .minerals__right{
  display:flex;
  align-items:center;
  justify-content:center;
}

/* percent wrapper hidden until hover */
.section--minerals .minerals__percent{
  opacity: 0;
  transition: opacity 600ms ease-in;
}
.section--minerals .minerals__glass.glass--full:hover .minerals__percent{
  opacity: 1;
}

/* hover glass més exagerat (més recorregut) */
.section--minerals .minerals__glass.glass--full{
  transition: transform 600ms ease-in, background 600ms ease-in, border-color 600ms ease-in, backdrop-filter 600ms ease-in, box-shadow 600ms ease-in;
}
.section--minerals .minerals__glass.glass--full:hover{
  transform: translateY(-16px) scale(1.05);
  backdrop-filter: blur(28px) saturate(140%);
  background: rgba(255,255,255,0.30);
  border-color: rgba(255,255,255,0.75);
  box-shadow: 0 26px 70px rgba(0,0,0,0.22);
}

/* SVG disc */
.section--minerals .minerals__pieWrap{
  width: 260px;
  aspect-ratio: 1 / 1;
  position: relative;
  display:flex;
  align-items:center;
  justify-content:center;
}

.section--minerals .minerals__pieSvg{
  width: 100%;
  height: 100%;
  transform: rotate(-90deg); /* start at top */
}

.section--minerals .minerals__pieBg{
  fill: none;
  stroke: rgba(255,255,255,0.25);
  stroke-width: 92;
}

.section--minerals .minerals__pieFill{
  fill: none;
  stroke: rgba(255,255,255,0.95);
  stroke-width: 92;
  stroke-linecap: butt;
  stroke-dasharray: 0 999; /* JS sets */
  stroke-dashoffset: 0;    /* JS sets */
}

.section--minerals .minerals__percentValue{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-family: 'Abril Fatface', serif;
  font-size: 64px;
  font-weight: 400;
  color: #0f2a33;
}

@media (max-width: 1024px){
  .section--minerals .minerals__percentValue{ font-size: 45px; }
}
@media (max-width: 600px){
  .section--minerals .minerals__percentValue{ font-size: 28px; }
}


/* ===== SVG DISC PERFECTLY ROUND FIX ===== */
.section--minerals .minerals__pieWrap{
  border-radius: 50%;
  overflow: hidden; /* forces round mask */
}

.section--minerals .minerals__pieBg,
.section--minerals .minerals__pieFill{
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* ===== SECCIÓ 5 - RESPONSIVE (tablet + mobile) ===== */

/* Tablet: stack text then diagram under, keep hover/anim */
@media (max-width: 1024px){
  .section--minerals{
    padding: 56px 72px; /* scale down from desktop */
  }

  /* make the inner layout vertical */
  .section--minerals .minerals__glass{
    padding: 48px 44px;
  }

  /* common patterns: content wrappers */
  .section--minerals .minerals__content,
  .section--minerals .minerals__row,
  .section--minerals .minerals__cols,
  .section--minerals .minerals__grid,
  .section--minerals .minerals__inner{
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* fallback: force left/right columns to full width and stack */
  .section--minerals .minerals__left,
  .section--minerals .minerals__right{
    width: 100%;
    max-width: 100%;
  }

  .section--minerals .minerals__right{
    margin-top: 40px; /* requested gap */
  }

  /* center text visually on tablet (like reference) */
  .section--minerals .minerals__title{
    text-align: center;
  }
  .section--minerals .minerals__list{
    text-align: left; /* keep bullets readable */
    margin-left: auto;
    margin-right: auto;
    max-width: 520px;
  }
}

/* Mobile: same as tablet but tighter spacing */
@media (max-width: 600px){
  .section--minerals{
    padding: 40px 24px;
  }

  .section--minerals .minerals__glass{
    padding: 36px 22px;
    border-radius: 22px;
  }

  .section--minerals .minerals__right{
    margin-top: 24px; /* adjusted smaller gap */
  }

  .section--minerals .minerals__pieWrap{
    width: 220px; /* scale down */
  }

  .section--minerals .minerals__list{
    max-width: 320px;
  }
}


/* ===== SECCIÓ 5 - MOBILE padding 30px ===== */
@media (max-width: 600px){
  .section--minerals{
    padding: 30px !important;
  }
}


/* ===== FOOTER ===== */
.site-footer{
  background: #0f2a33;
  padding: 18px 60px;
}
.site-footer__inner{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 24px;
}
.site-footer__logoLink{ display:inline-flex; align-items:flex-start; }
.site-footer__logo{ display:block; height:auto; }

.site-footer__logo--desktop{ display:block; }
.site-footer__logo--tablet{ display:none; }
.site-footer__logo--mobile{ display:none; }

.site-footer__cols{
  display:flex;
  align-items:flex-start;
  gap: 54px;
}
.site-footer__col{
  color:#fff;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.35;
  text-align:left;
}
.site-footer__text{ color:#fff; }
.site-footer__title{
  font-weight: 800;
  margin-bottom: 4px;
}
.site-footer__addr{
  color:#fff;
  text-decoration:none;
  display:inline-block;
}
.site-footer__addr:hover{ text-decoration: underline; }

/* Tablet */
@media (max-width: 1024px){
  .site-footer__col{ font-size: 8px; }
  .site-footer__logo--desktop{ display:none; }
  .site-footer__logo--tablet{ display:block; }
}

/* Mobile */
@media (max-width: 600px){
  .site-footer__col{ font-size: 7px; }
  .site-footer__cols{ gap: 24px; }
  .site-footer__logo--tablet{ display:none; }
  .site-footer__logo--mobile{ display:block; }
}


/* ===== FIX GAP ENTRE SECCIÓ 5 I FOOTER ===== */
.section--minerals{
  margin-bottom: 0 !important;
}

.site-footer{
  margin-top: 0 !important;
}

body{
  margin-bottom: 0;
}

/* ===== SECTION 5 BG FALLBACK ===== */
.section--minerals{
  background-color: #0f2a33; /* fallback if image doesn't load */
  background-image: url('assets/fons-sec5.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ===== FIX WHITE AREA AFTER SECTION 5 ===== */
html, body {
  background-color: #0f2a33;
}

.section--minerals {
  height: auto !important;
  min-height: 100vh;
}


/* ===== SECCIÓ 5 - GLASS CENTRAT ===== */
.section--minerals{
  display: flex;
  align-items: center;
  justify-content: center;
}

.section--minerals .minerals__glass{
  margin: 0 auto;
}

/* ===== 3D BOTTLE OVERLAY ===== */
#bottle3d{
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 60;
}
#bottle3d canvas{
  width: 100% !important;
  height: 100% !important;
  display: block;
}
