/* Aquest és l'estat inicial, amb l'element amagat. */
.fade-section {
  opacity: 0;
  transform: translateY(12px);
  /* Utilitzem 'will-change' per optimitzar el rendiment de l'animació */
  will-change: opacity, transform;
  /* La transició es prepara, però només s'activarà amb la classe 'is-visible' */
  transition: opacity .6s ease-out, transform .6s ease-out;
}

/* Quan afegim la classe 'is-visible' amb JavaScript, es dispara l'animació. */
.fade-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero{
  position:relative; color:#111; /* text fosc perquè el fons és blanc */
  min-height:calc(100vh - var(--nav-h, 76px));
  display:grid; align-items:center; overflow:hidden;
  padding-block: clamp(2.5rem, 6vh, 5rem);
  isolation:isolate;
}

.hero::before{
  content:"";
  position:absolute; left:50%; top:50%;
  transform: translate(-50%,-50%);
  width: min(1200px, 92vw);
  height: clamp(220px, 38vh, 380px);
  pointer-events:none;
  z-index: 2; /* per sobre del canvas d’efectes (z:1) i sota el text (z:3) */
  /* el scrim és una el·lipse fosca molt suau */
  background:
    radial-gradient(60% 70% at 50% 50%,
      rgba(17,17,17,.28),
      rgba(17,17,17,.16) 50%,
      rgba(17,17,17,0) 76%);
}


/* Fons: imatge blanca amb ballarina + lleu vinyeta per llegibilitat */
/* HERO BG: imatge + overlay d’enfosquiment i parallax suau */
.hero__bg{
  position:absolute; inset:0; z-index:0;
  /* controla la foscor amb --hero-darken (0.00–0.35 aprox) */
  --hero-darken: 0.5;

  background:
    /* enfosquiment global lleu */
    linear-gradient(0deg,
      rgba(0,0,0,var(--hero-darken)),
      rgba(0,0,0,var(--hero-darken))),
    /* vinyeta suau a la base per llegibilitat */
    radial-gradient(80% 70% at 50% 100%,
      rgba(0,0,0,.06), rgba(0,0,0,0) 60%),
    var(--hero-bg) center / cover no-repeat;

  /* parallax (es mou una mica amb el ratolí) */
  transform: translate3d(0,0,0) scale(1.06); /* lleu zoom per no mostrar vores */
  will-change: transform;
}

/* Canvas del rastre (per sobre del fons, sota el text) */
.hero__fx-root{
  position:absolute; inset:0; z-index:1; pointer-events:none; /* el canvas repaints, però no bloqueja */
}

/* Contingut per damunt del canvas */
.hero__container{ position:relative; z-index:2; }

.hero__eyebrow{
  display:inline-block; color:white;
  font-weight:800; letter-spacing:.08em; text-transform:uppercase; margin-bottom:.6rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  text-decoration: underline;
  text-decoration-color: var(--color-gold) ;

}

/* Títol gran amb gradient d’or, però amb fallback negre sòlid */
.hero__title{
  margin:0 0 .7rem 0;
  font-family:'Montserrat',system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  font-weight:900; line-height:1.02; letter-spacing:-.02em;
  font-size: clamp(2.6rem, 7.5vw, 6rem);
  color:#111; /* fallback */
  
}
@supports (-webkit-background-clip:text) or (background-clip:text){
  .gradient-text{
    background: linear-gradient(90deg, #ffffff 0%, var(--color-gold) 50%, var(--color-gold) 100%);
    background-size: 200% 100%;
    -webkit-background-clip:text; background-clip:text;
    -webkit-text-fill-color: transparent;
  }
}

.hero__subtitle{
  color:#f4f4f4; max-width:62ch; margin:.2rem auto 1.1rem;
  font-size: clamp(1.05rem, 1.6vw, 2.25rem);
  text-shadow: 0 1px 2px rgba(255,255,255,.25), 0 1px 1px rgba(0,0,0,.10);

}

/* CTAs (paleta negre/or sobre fons blanc) */
.hero__ctas{ display:flex; gap:.75rem; justify-content:center; flex-wrap:wrap; }
.btn-gold{
  display: inline-block;
  color: var(--color-white);
  background: var(--color-gold) !important;
  border: 1px solid rgba(183, 154, 84, 0.95);
  border-radius: 14px;
  padding: 1rem 1.4rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: inset 0 0 0 2px rgba(183, 154, 84, 0.12),
    0 12px 28px rgba(183, 154, 84, 0.28);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}
.btn-gold:hover{
  transform: translateY(-1px);
  color: var(--color-white);
  filter: brightness(1.04);
  box-shadow: inset 0 0 0 2px rgba(183, 154, 84, 0.16),
    0 16px 36px rgba(183, 154, 84, 0.34);
}

.btn-gold::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -30%;
  width: 30%;
  transform: skewX(-20deg);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.35),
    rgba(255, 255, 255, 0)
  );
  transition: left 0.4s ease;
  opacity: 0.75;
  pointer-events: none;
}

.btn-gold:hover::after {
  left: 110%;
}

.btn-outline-light{
  display: inline-block;
  color: var(--color-white);
  background: var(--color-black) !important;
  border: 1px solid rgba(183, 154, 84, 0.95);
  border-radius: 14px;
  padding: 1rem 1.4rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: inset 0 0 0 2px rgba(183, 154, 84, 0.12),
    0 12px 28px rgba(183, 154, 84, 0.28);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}
.btn-outline-light:hover{
  transform: translateY(-1px);
  color: var(--color-gold);
  border: 1px solid rgba(183, 154, 84, 0.95);
  filter: brightness(1.04);
  box-shadow: inset 0 0 0 2px rgba(183, 154, 84, 0.16),
    0 16px 36px rgba(183, 154, 84, 0.34);
}

.btn-outline-light::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -30%;
  width: 30%;
  transform: skewX(-20deg);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.35),
    rgba(255, 255, 255, 0)
  );
  transition: left 0.4s ease;
  opacity: 0.75;
  pointer-events: none;
}

.btn-outline-light:hover::after {
  left: 110%;
}

@media (max-width:576px){
  .hero{ padding-bottom:max(84px, calc(env(safe-area-inset-bottom,0px) + 64px)); }
  .hero__ctas{ margin-bottom:10px; }
}

/* Accessibilitat: si l’usuari demana menys motion, amaguem l’efecte */
@media (prefers-reduced-motion: reduce){
  .hero__fx-root{ display:none; }
}

/* --- Fix mòbil: bloqueja parallax i alçada estable --- */
@media (hover: none), (pointer: coarse) {
  /* Usa 100svh per evitar “ball” del 100vh a iOS/Android */
  .hero{
    min-height: calc(100svh - var(--nav-h, 76px)) !important;
  }

  /* El fons NO ha d’escalar ni tenir transformacions en mòbil */
  .hero__bg{
    transform: none !important;
    will-change: auto !important;
    background-attachment: scroll !important; /* per si algun UA fa de les seves */
    background-position: center center !important;
    background-size: cover !important;
  }

  /* Amaga el scrim el·líptic per simplificar el repintat en mòbil */
  .hero::before{ display: none !important; }
}

/* Opcional: a tots els dispositius moderns, ofereix un fallback
   que prioritza una alçada estable en navegadors que suporten dvh/svh */
.hero{
  /* ordre: primer 100vh (compat), després 100svh (estabilitza) */
  min-height: calc(100vh  - var(--nav-h, 76px));
  min-height: calc(100svh - var(--nav-h, 76px));
}



/* ===== Sec2 · Qui som ===== */

.sec2{
  position: relative;
  background: #fff;
  color: #111;
  /* ocupa alçada de pantalla (respectant la navbar fixa) */
  min-height: calc(100vh - var(--nav-h, 76px));
  display: grid;
  align-items: center;
  overflow: hidden;
}

/* Títol principal amb línia-or de suport (no gradient de text) */
.sec2 .gradient-title{
  position: relative;
  display: inline-block;
  margin: 0 0 .75rem 0;
  font-weight: 900;
  letter-spacing: .02em;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  color: #111;
  text-wrap: balance;
}
.sec2 .gradient-title::after{
  content:"";
  display:block;
  height: 4px;
  margin-top: .45rem;
  border-radius: 9999px;
  /* barra d’accent or amb degradat subtil i glow */
  background: linear-gradient(90deg, var(--color-gold) 0%, rgba(183,154,84,.15) 80%, transparent 100%);
  box-shadow: 0 6px 20px rgba(183,154,84,.28);
}

/* Subtítol (h3) */
.sec2 h3{
  letter-spacing: .06em;
  font-size: clamp(1.1rem, 2vw, 1.25rem);
}

/* Or utilitari */
.text-gold{ color: var(--color-gold) !important; }

/* Llista de valors */
.sec2 ul li{ display:flex; align-items: start; }
.sec2 ul li .bi{ font-size: 1rem; margin-top:.2rem; }

/* Botó primari estil coherent amb el hero */
.sec2 .button{
  display:inline-block;
  color:#111; background: var(--color-gold);
  border:1px solid rgba(183,154,84,.9);
  border-radius:12px; padding:.75rem 1rem;
  font-weight:800; text-transform:uppercase; letter-spacing:.04em;
  box-shadow:0 0 14px rgba(183,154,84,.24);
  text-decoration:none;
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
.sec2 .button:hover{
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow:0 6px 22px rgba(183,154,84,.30);
}

/* Imatge: vora suau i ombra lleugera */
.sec2 img.img-fluid{
  border: 1px solid rgba(17,17,17,.06);
  box-shadow: 0 8px 28px rgba(0,0,0,.10);
  object-fit: cover;
}

/* Animació d’entrada suau (sense JS addicional) */
@keyframes fadeUp{
  from{ opacity:0; transform: translateY(12px); }
  to  { opacity:1; transform: none; }
}

/* petits desfasaments progressius */
.sec2 .fade-section:nth-of-type(1) { --delay: .04s; }
.sec2 .fade-section:nth-of-type(2) { --delay: .10s; }
.sec2 .fade-section:nth-of-type(1) { --delay: .16s; }
.sec2 .fade-section:nth-of-type(2) { --delay: .22s; }
.sec2 .fade-section:nth-of-type(1) { --delay: .28s; }


/* Responsiu */
@media (max-width: 767.98px){
  .sec2{ min-height: auto; } /* en mòbil, deixa que creixi naturalment */
  .sec2 .text-center{ margin-top: .25rem; }
}


/* ===== Sec3 · Dança per a Totes les Edats ===== */

.sec3{
  position: relative;
  background: #f8f9fa; /* bg-light */
  color: #111;
  min-height: calc(100vh - var(--nav-h, 76px));
  display: grid;
  align-items: center;
  overflow: hidden;
}



/* Usa una foto lleugera (webp/avif) com a textura de fons */
.sec3--mesh{
  --sec3-mesh: url("/static/img/foto5.webp"); /* canvia el path */
  background:
    linear-gradient(0deg, rgba(255,255,255,.78), rgba(255,255,255,.78)),
    var(--sec3-mesh) center/cover no-repeat;
  filter: saturate(.9) contrast(1.02);
}



/* ===== Headings i text introductori ===== */
.sec3 h2 .gradient-title{
  position: relative;
  display: inline-block;
  margin: 0 0 .6rem 0;
  font-weight: 900;
  letter-spacing: .06em;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  color: #111;
  text-transform: uppercase;
}
.sec3 .gradient-title::after{
  content:"";
  display:block;
  width: 140px; height: 3px;
  margin: .55rem auto 0;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--color-gold) 0%, rgba(183,154,84,.2) 85%, transparent 100%);
  box-shadow: 0 4px 16px rgba(183,154,84,.22);
}
.sec3 h3{
  letter-spacing: .06em;
  color:#111;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  opacity:.95;
}
.sec3 p{ color:#2b2f33; }

/* ===== Targetes de programa ===== */
.program-card{
  position: relative;
  background:#fff;
  border:1px solid rgba(17,17,17,.06);
  border-radius: 16px;
  padding: 1.25rem 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
  z-index: 1;
}
.program-card:hover{
  transform: translateY(-6px);
  border-color: rgba(183,154,84,.40);
  box-shadow: 0 10px 28px rgba(0,0,0,.12), 0 0 0 2px rgba(183,154,84,.12) inset;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(183,154,84,.08), transparent 60%),
    #fff;
}

/* Icona */
.program-icon{
  display:grid; place-items:center;
  min-height: 84px;
}
.program-icon img{
  width: 80px; height:auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.08));
  transition: transform .25s ease;
}
.program-card:hover .program-icon img{ transform: scale(1.04) translateY(-2px); }

/* Títol i text del card */
.program-card h4{
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .35rem;
  color:#111;
}
.program-card p{ color:#42474c; line-height: 1.55; }

/* Botó final (reutilitza l’estil del botó de sec2) */
.sec3 .button{
  display:inline-block;
  color:#111; background: var(--color-gold);
  border:1px solid rgba(183,154,84,.9);
  border-radius:12px; padding:.9rem 1.4rem;
  font-weight:800; text-transform:uppercase; letter-spacing:.04em;
  box-shadow:0 0 16px rgba(183,154,84,.24);
  text-decoration:none;
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
.sec3 .button:hover{
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow:0 6px 22px rgba(183,154,84,.30);
}

/* ===== Entrades suaus (com a sec2) ===== */
@keyframes fadeUp{ from{opacity:0; transform:translateY(12px)} to{opacity:1; transform:none} }
.sec3 .fade-section{ opacity:0; transform:translateY(12px); animation: fadeUp .6s ease-out forwards; }
.sec3 .row.mb-5 .fade-section:nth-child(1){ animation-delay:.04s; }
.sec3 .row.mb-5 .fade-section:nth-child(2){ animation-delay:.10s; }
.sec3 .row.mb-5 .fade-section:nth-child(3){ animation-delay:.16s; }
.sec3 .program-card.fade-section{ animation-delay: .08s; }
.sec3 .col-lg-3:nth-child(2) .program-card.fade-section{ animation-delay: .14s; }
.sec3 .col-lg-3:nth-child(3) .program-card.fade-section{ animation-delay: .20s; }
.sec3 .col-lg-3:nth-child(4) .program-card.fade-section{ animation-delay: .26s; }

/* ===== Responsiu ===== */
@media (max-width: 991.98px){
  .program-card{ height: 100%; }
}
@media (max-width: 767.98px){
  .sec3{ min-height: auto; } /* a mòbil, deixa que creixi còmodament */
  .program-icon{ min-height: 72px; }
  .program-icon img{ width: 68px; }
}

/* Accessibilitat: menys moviment si l'usuari ho demana */
@media (prefers-reduced-motion: reduce){
  .program-card,
  .program-icon img{ transition: none !important; }
  .sec3 .fade-section{ animation: none !important; opacity:1; transform:none; }
}


/* ===== Parallax Divider (desktop + fallback mòbil) ===== */
.parallax-divider{
  position: relative;
  width: 100%;
  /* usa 100svh per mòbils moderns; fa que no “balli” amb la barra del navegador */
  min-height: 100svh;
  overflow: hidden;
  color: #fff;

  /* border correcte (top + bottom) */
  border-top: 1px solid var(--color-gold);
  border-bottom: 1px solid var(--color-gold);

  /* fons + overlay fosc per llegibilitat */
  background:
    linear-gradient(0deg, rgba(17,17,17,0.50) 0%, rgba(17,17,17,0.35) 100%),
    url('../img/foto3.webp') center center / cover no-repeat;

  /* Parallax real en desktop */
  background-attachment: fixed;

  box-shadow: 0 6px 36px rgba(0,0,0,0.22);
  z-index: 0;
}

/* Efecte daurat animat per damunt del fons, però sota el text */
.parallax-divider::after{
  content:"";
  position:absolute; inset:0;
  pointer-events:none;
  background: linear-gradient(90deg, transparent 0%, #b79a5455 50%, transparent 100%);
  background-size: 200% 100%;
  animation: goldMove 5s linear infinite alternate;
  opacity:.30;
  z-index: 1;
}

@keyframes goldMove{
  0%{ background-position: 0% 50%; }
  100%{ background-position: 100% 50%; }
}

/* Assegura que el contingut quedi per sobre de l'overlay */
.parallax-divider > *{ position: relative; z-index: 2; }

/* Text del títol */
.parallax-divider h2{ color: #f4f4f4; }

/* Evita desbordar a mòbil: NO imposis amplada mínima gran */
#dynamic-typeit{
  display: inline-block;
  min-height: 1.2em;      /* evita salt vertical */
  white-space: auto;    /* es manté en una línia */
  max-width: 90vw;        /* no desborda en pantalles estretes */
  min-width: 0;           /* IMPORTANT: cancel·la min-width antics */
}

/* ===== Fallback per mòbil / pantalles tàctils ===== */
/* iOS/Android ignoren o penalitzen `background-attachment: fixed` */
@media (hover: none), (pointer: coarse){
  .parallax-divider{
    background-attachment: scroll;  /* fallback */
    min-height: 70vh;               /* dona aire però no “claustrofòbic” */
  }
}

/* Secció simple de professorat */
.sec-prof-mini{
  position: relative;
  min-height: calc(100vh - var(--nav-h, 76px));
  display: grid;
  align-items: center;
  overflow: hidden;
  color:#111;
  background:#fff;
  --mag-radius: 320px;  /* radi d’influència del cursor */
  --mag-shift: 14px;    /* desplaçament màxim (px) */
  --mag-scale: .02;     /* extra scale màxim (0.02 = +2%) */
}

/* Accent de fons molt subtil */
.sec-prof-mini::before{
  content:""; position:absolute; inset:auto;
  left:-18%; top:-22%; width:46vw; height:46vw;
  background: radial-gradient(50% 50% at 50% 50%, rgba(183,154,84,.08), transparent 65%);
  filter: blur(18px); pointer-events:none; z-index:0;
}
.sec-prof-mini > .container{ position: relative; z-index: 1; }

/* Títol amb barra daurada (coherent amb la resta) */
.sec-prof-mini .gradient-title{
  position: relative; display:inline-block;
  margin:0 0 .6rem 0; font-weight:900; letter-spacing:.06em;
  font-size: clamp(1.8rem, 3.6vw, 2.4rem); color:#111;
}
.sec-prof-mini .gradient-title::after{
  content:""; display:block; width:140px; height:3px; margin:.55rem auto 0;
  border-radius:9999px;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(183,154,84,.2) 85%, transparent 100%);
  box-shadow: 0 4px 16px rgba(183,154,84,.22);
}

/* Mini retrats circulars */
.prof-thumb{
  width: clamp(120px, 16vw, 160px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(183,154,84,.55);
  box-shadow: 0 8px 22px rgba(0,0,0,.12);
  filter: saturate(0.92) contrast(1.02);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease, border-color .2s ease;
}
.prof-thumb:hover{
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0,0,0,.16), 0 0 0 2px rgba(183,154,84,.12) inset;
  border-color: rgba(183,154,84,.9);
  filter: saturate(1) contrast(1.05);
}

/* Botó or (mateix estil que seccions anteriors) */
.sec-prof-mini .button{
  display:inline-block;
  color:#111; background: var(--gold);
  border:1px solid rgba(183,154,84,.95);
  border-radius:12px; padding:.85rem 1.2rem;
  font-weight:800; text-transform:uppercase; letter-spacing:.04em;
  box-shadow:0 0 16px rgba(183,154,84,.24);
  text-decoration:none;
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
.sec-prof-mini .button:hover{
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow:0 6px 22px rgba(183,154,84,.30);
}

/* Responsiu */
@media (max-width: 767.98px){
  .sec-prof-mini{ min-height: auto; } /* en mòbil, deixa créixer naturalment */
}

.sec-prof-mini .prof-thumb{
  will-change: transform, box-shadow;
  transform: translate3d(0,0,0) scale(1);
  transition: transform .18s ease, box-shadow .18s ease;
}

/* Quan el cursor és dins la secció, fem la resposta més nerviosa */
.sec-prof-mini.is-pointer-in .prof-thumb{
  transition: transform .08s ease, box-shadow .12s ease;
}

/* Evita conflicte amb el :hover que ja tens definit */
.sec-prof-mini.is-pointer-in .prof-thumb:hover{
  transform: none; /* el JS ja aplica translate/scale */
}

/* Canvas de l’estela per sota del contingut però sobre el fons */
.sec-prof-mini{ position: relative; }
.sec-prof-mini > .container{ position: relative; z-index: 2; } /* puja el contingut */
.sec-prof-mini .trail-canvas{
  position: absolute; inset: 0;
  z-index: 1; pointer-events: none;
}

/*TESTIMONIS*/
.sec-testis {
  position: relative;
  background: #111;
  color: #f8f9fa;
  padding-block: 5rem;
  overflow: hidden;
  min-height: 100vh;
}

/* Título y subtítulo */
.sec-testis .gradient-title {
  color: #fff;
  letter-spacing: 0.08em;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
}

.sec-testis .gradient-title::after {
  content: "";
  display: block;
  width: 140px;
  height: 3px;
  margin: 0.55rem auto 0;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(183,154,84,.25) 85%, transparent 100%);
  box-shadow: 0 4px 16px rgba(183,154,84,.35);
}

/* ===== Estilos de las tarjetas (unificados) ===== */
.testi-card, .testi__card {
  position: relative;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 1.25rem 1.25rem 1.1rem;
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
  backdrop-filter: blur(6px);
  box-sizing: border-box;
  overflow: hidden;
  /* Altura mínima para una apariencia consistente */
  min-height: 250px;
}

.testi-card::before, .testi__card::before {
  content: "";
  position: absolute;
  inset: auto;
  top: -20%;
  left: -40%;
  width: 140%;
  height: 140%;
  background:
    radial-gradient(35% 25% at 20% 15%, rgba(183,154,84,.18), transparent 60%),
    radial-gradient(30% 20% at 80% 70%, rgba(255,255,255,.08), transparent 60%);
  transform: rotate(8deg);
  pointer-events: none;
  opacity: .7;
}

.testi-card__stars, .testi__stars {
  color: var(--gold);
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

.testi-card__quote, .testi__quote {
  position: relative;
  z-index: 1;
  margin: 0.25rem 0 0.9rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #e9ecef;
  overflow-wrap: anywhere;
}

.testi-card__quote::before, .testi__quote::before {
  content: "“";
  position: absolute;
  left: -0.15rem;
  top: -0.95rem;
  font-size: 5rem;
  line-height: 1;
  color: rgba(183,154,84,.2);
  font-weight: 900;
  z-index: -1;
}

.testi-card__author, .testi__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.testi-card__avatar, .testi__avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(183,154,84,.85);
  background: rgba(255,255,255,.1);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 0 0 2px rgba(183,154,84,.12) inset;
}

.testi-card__name, .testi__name {
  font-weight: 900;
  letter-spacing: 0.01em;
  color: #fff;
}

.testi-card__meta, .testi__meta {
  font-size: 0.85rem;
  color: #cfd3d9;
}

/* ===== Estilos para la cuadrícula (versión desktop) ===== */
.testi-grid {
  display: grid;
  gap: 1.5rem;
  padding: 0 1rem;
}

@media (min-width: 576px) {
 
  .testi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .testi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== Estilos para el slider (versión desktop) ===== */
.testi {
  position: relative;
  margin-inline: auto;
  max-width: 1200px;
  padding: 0 3rem;
}

.testi__viewport {
  overflow: hidden;
}

.testi__track {
  display: flex;
  gap: 1.25rem;
  will-change: transform;
  transition: transform .5s cubic-bezier(.22, .61, .36, 1);
}

.testi__card {
  flex: 0 0 calc((100% - 2 * 1.25rem) / 3);
}

@media (max-width: 1199.98px) {
  .testi__card {
    flex-basis: calc((100% - 1.25rem) / 2);
  }
}

@media (max-width: 767.98px) {
  .sec-testis-sm{
    display: flex;
    min-height: 80vh;
    align-items: center;
    justify-content: center;
  }
  .testi {
    padding: 0 1rem;
  }
  .testi__track {
    gap: 0.9rem;
  }
  .testi__card {
    flex-basis: 100%;
  }
}

/* Botones y puntos del slider */
.testi__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  color: #fff;
  display: grid;
  place-items: center;
  z-index: 2;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.testi__nav:hover {
  transform: translateY(-50%) translateX(0) scale(1.04);
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.45);
}

.testi__nav--prev {
  left: 0.25rem;
}

.testi__nav--next {
  right: 0.25rem;
}

.testi__nav:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.testi__dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}

.testi__dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,.35);
}

.testi__dots button[aria-current="true"] {
  background: var(--gold);
  box-shadow: 0 0 0 2px rgba(183,154,84,.25);
}


.sec-testis .testi {
  animation: fadeUp .6s ease-out .05s both;
}

@media (prefers-reduced-motion: reduce) {
  .testi__track {
    transition: none !important;
  }
  .testi__nav {
    transition: none !important;
  }
}

/* ===== Estilos para las auras doradas ===== */
.aura-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* Para que no bloquee el clic en el contenido */
  overflow: hidden; /* Evita desbordamientos */
}

.aura-item {
  position: absolute;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0; /* Empiezan invisibles */
  background: var(--gold);
  transition: opacity 0.5s ease-out; /* Transición para que aparezcan */
  will-change: transform, opacity; /* Optimización de rendimiento */
}

.aura-item.active {
  opacity: 0.15; /* Opacidad de las auras activas */
}

/* ===== Efecto Ripple de Clic (o Movimiento) ===== */
@keyframes ripple-anim {
  from {
    transform: scale(0);
    opacity: 0.8;
  }
  to {
    transform: scale(1.5);
    opacity: 0;
  }
}

.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: var(--gold);
  filter: blur(8px);
  pointer-events: none;
  transform: scale(0);
  opacity: 0;
  animation: ripple-anim 0.6s ease-out forwards;
}

/* ===== SECCIÓN: GALERÍA ===== */

.sec-gal-min {
  display: flex;
  background: #f8f9fa; /* Color de fondo claro, para que el texto oscuro resalte */
  min-height: 100vh;
  place-items: center;
}

/* Estilo para el título de la sección */
.sec-gal-min .gradient-title {
  color: #212529; /* Color de texto oscuro para el título */
  letter-spacing: 0.08em;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1); /* Sombra sutil para el título */
}

/* Línea debajo del título */
.sec-gal-min .gradient-title::after {
  content: "";
  display: block;
  width: 140px;
  height: 3px;
  
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(183,154,84,.25) 85%, transparent 100%);
  box-shadow: 0 4px 16px rgba(183,154,84,.35);
}

/* Estilo para el contenedor de la imagen */
.gthumb {
  position: relative;
  overflow: hidden;
  border-radius: 8px; /* Bordes redondeados para un aspecto moderno */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); /* Sombra para profundidad */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Estilo de la imagen dentro de la figura */
.gthumb img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease-in-out;
}

/* Efecto al pasar el ratón */
.gthumb:hover {
  transform: translateY(-5px); /* Eleva la tarjeta */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25); /* Sombra más pronunciada */
}

.gthumb:hover img {
  transform: scale(1.05); /* Zoom sutil en la imagen */
}

/* Botón de llamada a la acción */
.button {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  text-decoration: none;
  border: 1px solid var(--gold);
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(183,154,84,0.3);
  transition: all 0.3s ease;
}

.button:hover,
.button:focus {
  background: transparent;
  color: var(--gold);
  box-shadow: 0 4px 20px rgba(183,154,84,0.5);
}


/* FAQ */

.faq-section .gradient-title {
  color: rgb(0,0,0);
  letter-spacing: 0.08em;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
}

.faq-section .gradient-title::after {
  content: "";
  display: block;
  width: 240px;
  height: 3px;
  margin: 0.55rem auto 0;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(183,154,84,.25) 85%, transparent 100%);
  box-shadow: 0 4px 16px rgba(183,154,84,.35);
}

.faq-section .accordion-collapse a{
  color: var(--color-gold);
}

.faq-section .accordion-item {
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  margin-bottom: 12px;
}
.faq-section .accordion-button {
  font-weight: 700;
  letter-spacing: .02em;
  padding: 1rem 1.2rem;
}
.faq-section .accordion-button:not(.collapsed) {
  color: var(--color-black);
  background: linear-gradient(180deg, rgba(183,154,84,0.10), rgba(183,154,84,0.04));
  box-shadow: inset 0 0 0 1px rgba(183,154,84,.22);
}
.faq-section .accordion-button:focus {
  box-shadow: 0 0 0 .15rem rgba(183,154,84,.35);
  border-color: rgba(183,154,84,.45);
}
.faq-section .accordion-button::after {
  /* color de la icona (chevron) */
  filter: hue-rotate(0deg) saturate(1.2);
}
.faq-section .accordion-body {
  padding: 1rem 1.2rem 1.2rem;
  line-height: 1.65;
}


/* ===== CTA Contacte ===== */
.sec-cta{
  position: relative;
  background: #111;
  color: #fff;
  min-height: calc(100vh - var(--nav-h, 76px));
  display: grid;
  align-items: center;
  text-align: center;
  overflow: hidden;
  padding-block: clamp(3rem, 10vh, 6rem);
  isolation: isolate; /* aures dins la secció */
}

/* Glows daurats molt subtils (rendiment-friendly) */
.sec-cta::before,
.sec-cta::after{
  content:""; position:absolute; inset:auto; pointer-events:none; z-index:0;
  filter: blur(22px);
}
.sec-cta::before{
  left:-18%; top:-24%; width:50vw; height:50vw;
  background: radial-gradient(closest-side, rgba(183,154,84,.22), rgba(183,154,84,0) 70%);
  mix-blend-mode: screen; opacity:.8;
}
.sec-cta::after{
  right:-16%; bottom:-20%; width:42vw; height:42vw;
  background: radial-gradient(closest-side, rgba(255,255,255,.12), rgba(255,255,255,0) 70%);
  mix-blend-mode: screen; opacity:.6;
}

/* Contingut per sobre */
.sec-cta .container{ position: relative; z-index: 1; }

/* Tipografia */
.cta-eyebrow{
  display:inline-block;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .25rem;
}
.cta-title{
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -.01em;
  margin: 0;
}
.cta-subtitle{
  max-width: 52ch;
  color: #cfd3d9;
}

/* Botó or gran (reuse .button si ja el tens) */
.button-cta{
  display:inline-block;
  color:#111; background: var(--gold);
  border:1px solid rgba(183,154,84,.95);
  border-radius: 14px;
  padding: 1rem 1.4rem;
  font-weight: 900; text-transform: uppercase; letter-spacing:.04em;
  box-shadow: 0 0 0 2px rgba(183,154,84,.12) inset, 0 12px 28px rgba(183,154,84,.28);
  text-decoration: none;
  position: relative; overflow: hidden;
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
.button-cta:hover{
  transform: translateY(-1px);
  filter: brightness(1.04);
  color:#111;
  box-shadow: 0 0 0 2px rgba(183,154,84,.16) inset, 0 16px 36px rgba(183,154,84,.34);
}
/* “Shine” suau en hover (sense JS) */
.button-cta::after{
  content:""; position:absolute; top:0; bottom:0; left:-30%;
  width:30%; transform: skewX(-20deg);
  background: linear-gradient(90deg, rgba(255,255,255,.0), rgba(255,255,255,.35), rgba(255,255,255,0));
  transition: left .4s ease;
  opacity:.75; pointer-events:none;
}
.button-cta:hover::after{ left: 110%; }


/* Color RGB que fa servir el canvas (daurat) */
.sec-cta{ --color2-rgb: 183,154,84; } /* #b79a54 en RGB */

/* Canvas a tota la secció, sota el contingut */
.cta-aurora{
  position:absolute; inset:0;
  width:100%; height:100%;
  z-index:0; pointer-events:none;
}

/* El contingut de la CTA per sobre del canvas */
.sec-cta .container{ position: relative; z-index: 1; }

