/* ============================================================
   modalitat.css — Pàgines de detall de modalitats (Marró Premium)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  /* Mateix fons que la portada */
  background-color: #2a1f19;
  background-image:
    linear-gradient(rgba(35, 25, 19, 0.55), rgba(35, 25, 19, 0.55)),
    url('img/Portada.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #f3ece3;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ===== MENÚ SUPERIOR ===== */
.md-nav {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 25px 6%;
  background: transparent;
}

.md-nav .md-logo {
  display: inline-block;
  line-height: 0;
  transition: transform 0.3s ease;
}

.md-nav .md-logo:hover {
  transform: scale(1.05);
}

.md-nav .md-logo img {
  height: 92px;
  width: auto;
  display: block;
}

.md-nav .md-menu {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  flex: 1;
  justify-content: center;
}

.md-nav .md-menu a {
  color: #f3ece3;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  white-space: nowrap;
  transition: all 0.3s ease;
  position: relative;
  padding: 4px 0;
}

/* Línia animada sota els links del menú */
.md-nav .md-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #e3d3bd;
  transition: width 0.3s ease;
}

.md-nav .md-menu a:hover {
  color: #e3d3bd;
}

.md-nav .md-menu a:hover::after {
  width: 100%;
}

.md-nav .md-contact {
  background: linear-gradient(135deg, #c79a6a 0%, #b3854f 100%); /* Els teus tons caramel originals */
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .5px;
  font-size: 13px;
  padding: 14px 28px;
  border-radius: 50px;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(179, 133, 79, 0.3);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.md-nav .md-contact:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(179, 133, 79, 0.5);
}

.md-toggle { position: absolute; opacity: 0; pointer-events: none; }

.md-burger {
  display: none;
  cursor: pointer;
  width: 42px;
  height: 42px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.md-burger span {
  display: block;
  height: 3px;
  width: 30px;
  background: #f3ece3;
  border-radius: 3px;
  transition: transform .3s ease, opacity .3s ease;
}

/* ===== TARGETA PRINCIPAL ===== */
.md-card {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 40px auto 60px;
  padding: 0 6%;
  display: flex;
  align-items: center;
}

.md-inner {
  width: 100%;
  background: rgba(255, 255, 255, 0.04); /* Efecte vidre sobre fons marró */
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  display: flex;
  flex-wrap: wrap;
  box-shadow: 0 20px 50px rgba(46, 35, 28, 0.4);
  overflow: hidden;
}

/* Zona Esquerra */
.md-left {
  flex: 1 1 500px;
  padding: 60px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.md-age {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #e3d3bd;
  background: rgba(227, 211, 189, 0.15);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 26px;
  text-transform: uppercase;
}

.md-left h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -1px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 24px;
  line-height: 1.1;
  /* Degradat elegant de blanc a crema */
  background: linear-gradient(120deg, #ffffff 40%, #e3d3bd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.md-desc {
  font-size: 18px;
  line-height: 1.7;
  color: #efe6da;
  margin-bottom: 40px;
}

.md-list {
  list-style: none;
}

.md-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 18px;
  font-size: 17px;
  color: #efe6da;
  font-weight: 500;
}

/* Checkmarks polides en lloc de simples punts */
.md-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #e3d3bd;
  font-weight: 800;
  font-size: 18px;
}

/* Zona Dreta (Informació Pràctica) */
.md-right {
  flex: 1 1 380px;
  padding: 60px;
  background: rgba(46, 35, 28, 0.25); /* Contrast fons marró fosc */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.md-right .label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #e7dccd;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.md-sched {
  margin-bottom: 30px;
}

.md-sched p {
  font-size: 16px;
  line-height: 1.6;
  color: #fff;
  margin-bottom: 14px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  padding: 12px 16px;
  border-radius: 8px;
  border-left: 3px solid #e3d3bd;
}
.md-sched p.md-tier { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.md-sched p.md-tier .md-tarifa { font-weight: 800; color: #e3d3bd; white-space: nowrap; }
.md-note { font-size: 15px; line-height: 1.6; color: #efe6da; margin-top: 4px; }

.md-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.02) 100%);
  margin: 10px 0 34px;
}

.md-price {
  font-size: clamp(40px, 5vw, 54px);
  font-weight: 800;
  color: #fff;
  margin-bottom: auto;
  letter-spacing: -1px;
}

/* Botó de Crida a l'Acció (CTA) Potent */
.md-cta {
  margin-top: 40px;
  display: inline-block;
  text-align: center;
  background: #f3ece3;
  color: #5b452f;
  text-decoration: none;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 22px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  /* perquè funcioni igual com a <button> */
  border: 0;
  width: 100%;
  cursor: pointer;
  font-family: inherit;
}

.md-cta:hover {
  background: linear-gradient(135deg, #e3d3bd 0%, #c79a6a 100%);
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(46, 35, 28, 0.4);
}

/* ============================================================
   MODAL D'INSCRIPCIÓ
   ============================================================ */
.insc-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(34, 26, 20, 0.7);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}

.insc-overlay.open {
  opacity: 1;
  visibility: visible;
}

.insc-box {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(160deg, #6e5847 0%, #5b452f 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 44px 38px 38px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  transform: translateY(20px) scale(.97);
  transition: transform .35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.insc-overlay.open .insc-box {
  transform: translateY(0) scale(1);
}

.insc-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #f3ece3;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background .25s ease, transform .25s ease;
}

.insc-close:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: rotate(90deg);
}

.insc-title {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.5px;
}

.insc-sub {
  margin: 8px 0 26px;
  font-size: 14px;
  color: #e3d3bd;
  font-weight: 500;
}

.insc-sub strong {
  color: #fff;
  font-weight: 800;
}

.insc-field {
  display: block;
  margin-bottom: 18px;
}

.insc-field span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #e7dccd;
  margin-bottom: 8px;
}

.insc-field input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  transition: border-color .25s ease, background .25s ease;
}

.insc-field input::placeholder {
  color: rgba(243, 236, 227, 0.45);
}

.insc-field input:focus {
  outline: none;
  border-color: #e3d3bd;
  background: rgba(255, 255, 255, 0.1);
}

.insc-field input[readonly] {
  background: rgba(46, 35, 28, 0.45);
  color: #e3d3bd;
  font-weight: 700;
  cursor: not-allowed;
}

.insc-submit {
  width: 100%;
  margin-top: 8px;
  padding: 18px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #c79a6a 0%, #b3854f 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(179, 133, 79, 0.35);
  transition: transform .25s ease, box-shadow .25s ease;
}

.insc-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(179, 133, 79, 0.5);
}

/* Honeypot anti-spam */
.insc-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* Toast de confirmació */
.insc-toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 120%);
  z-index: 1100;
  max-width: 90%;
  padding: 16px 26px;
  border-radius: 12px;
  background: #2e7d4f;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  transition: transform .45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.insc-toast.err {
  background: #b04432;
}

.insc-toast.show {
  transform: translate(-50%, 0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .md-burger {
    display: flex;
  }

  .md-nav .md-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(54, 42, 33, 0.98); /* Marró fosc per consistència en mòbil */
    backdrop-filter: blur(20px);
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s cubic-bezier(0.4, 0, 0.2, 1);
    justify-content: flex-start;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
  }

  .md-toggle:checked ~ .md-menu {
    max-height: 520px;
  }

  /* Animació d'Hamburguesa a X */
  .md-toggle:checked ~ .md-burger span:nth-child(1) { transform: translateY(9px) rotate(45deg); background: #e3d3bd; }
  .md-toggle:checked ~ .md-burger span:nth-child(2) { opacity: 0; }
  .md-toggle:checked ~ .md-burger span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); background: #e3d3bd; }

  .md-nav .md-menu li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .md-nav .md-menu a {
    display: block;
    padding: 20px 24px;
    font-size: 16px;
  }
  .md-nav .md-menu a::after { display: none; }

  .md-nav .md-contact {
    display: none;
  }
}

@media (max-width: 820px) {
  .md-inner {
    border-radius: 16px;
  }
  .md-left {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .md-left, .md-right {
    padding: 40px 24px;
  }
  .md-card {
    margin: 20px auto 40px;
  }
  .insc-box {
    padding: 40px 24px 30px;
  }
}

/* ============================================================
   FOOTER (compartit amb l'index) + PÀGINA D'INSCRIPCIÓ
   ============================================================ */
#asFooter { background: #241a14; color: #e8ddd0; width: 100%; padding: 60px 6% 0; }
#asFooter .as-foot-map { margin-top: 16px; border-radius: 10px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.12); }
#asFooter .as-foot-map iframe { width: 100%; height: 150px; border: 0; display: block; }
#asFooter .as-foot-wrap { max-width: 1240px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 50px; padding-bottom: 50px; border-bottom: 1px solid rgba(255, 255, 255, 0.10); }
#asFooter .as-foot-col { flex: 1 1 220px; }
#asFooter .as-foot-col img { height: 64px; width: auto; display: block; margin-bottom: 18px; }
#asFooter .as-foot-about { font-size: 15px; line-height: 1.8; color: #bfae9c; max-width: 300px; }
#asFooter h4 { font-size: 15px; letter-spacing: 2px; text-transform: uppercase; color: #fff; margin-bottom: 20px; font-weight: 700; }
#asFooter .as-foot-col ul { list-style: none; }
#asFooter .as-foot-col li { margin-bottom: 12px; }
#asFooter .as-foot-col a { color: #bfae9c; text-decoration: none; font-size: 15px; transition: color 0.2s ease; }
#asFooter .as-foot-col a:hover { color: #c79a6a; }
#asFooter .as-foot-contact p { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.7; color: #bfae9c; margin-bottom: 14px; }
#asFooter .as-foot-contact svg { flex: 0 0 18px; width: 18px; height: 18px; stroke: #c79a6a; margin-top: 3px; fill: none; }
#asFooter .as-foot-contact a { color: #bfae9c; }
#asFooter .as-foot-bottom { max-width: 1240px; margin: 0 auto; text-align: center; padding: 24px 0; font-size: 13px; color: #8c7c6c; }

/* Pàgina d'inscripció (inscripcio.html) */
.insc-page { flex: 1; width: 100%; max-width: 680px; margin: 50px auto 70px; padding: 0 6%; }
.insc-page-card { background: rgba(255, 255, 255, 0.04); backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 24px; padding: 50px; box-shadow: 0 20px 50px rgba(46, 35, 28, 0.4); }
.insc-page h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; text-transform: uppercase; color: #fff; margin-bottom: 10px; letter-spacing: -0.5px; }
.insc-page .insc-page-sub { color: #e3d3bd; font-size: 16px; margin-bottom: 34px; line-height: 1.6; }
.insc-page select { width: 100%; padding: 14px 16px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.06); color: #fff; font-size: 15px; font-family: inherit; cursor: pointer; }
.insc-page select:focus { outline: none; border-color: #e3d3bd; }
.insc-page select option { color: #2a2a2a; }

/* Pàgina de contingut llarg (objectius, etc.) */
.insc-page.wide { max-width: 880px; }
.insc-page-card h2.sec { font-size: 19px; color: #e3d3bd; text-transform: uppercase; letter-spacing: 1px; margin: 30px 0 14px; font-weight: 800; }
.insc-page-card h2.sec:first-of-type { margin-top: 6px; }
.insc-page-card ul.obj { list-style: none; margin: 0 0 6px; }
.insc-page-card ul.obj li { position: relative; padding-left: 28px; margin-bottom: 13px; line-height: 1.6; color: #efe6da; font-size: 16px; }
.insc-page-card ul.obj li::before { content: "\2713"; position: absolute; left: 0; color: #e3d3bd; font-weight: 800; }
.insc-page-card p.txt { color: #efe6da; font-size: 15px; line-height: 1.75; margin-bottom: 14px; }
.insc-page-card p.txt a { color: #e3d3bd; }
.insc-page-card p.txt strong { color: #fff; }

/* Valors: graella de valors */
.vals-intro { color: #efe6da; font-size: 16px; line-height: 1.75; margin-bottom: 30px; }
.vals-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.val-card { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 14px; padding: 20px; transition: transform 0.2s ease, border-color 0.2s ease; }
.val-card:hover { transform: translateY(-4px); border-color: rgba(227, 211, 189, 0.4); }
.val-card h3 { color: #e3d3bd; font-size: 16px; font-weight: 800; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.val-card h3::before { content: "\2713"; color: #c79a6a; font-weight: 800; }
.val-card p { color: #efe6da; font-size: 14px; line-height: 1.6; }
.vals-note { margin-top: 30px; text-align: center; color: #e3d3bd; font-style: italic; font-size: 15px; line-height: 1.65; }

/* Valors: imatge de l'equip */
.vals-hero { width: 100%; height: clamp(200px, 34vw, 360px); border-radius: 18px; overflow: hidden; margin-bottom: 34px; position: relative; border: 1px solid rgba(255,255,255,0.12); }
.vals-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vals-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(35,25,19,0.05) 40%, rgba(35,25,19,0.65) 100%); }

/* ============================================================
   HISTÒRIA — línia de temps
   ============================================================ */
.hist-intro { color: #efe6da; font-size: 16px; line-height: 1.8; margin-bottom: 40px; }
.hist-intro strong { color: #fff; }
.hist-timeline { position: relative; margin: 0; padding-left: 34px; }
.hist-timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, #c79a6a 0%, rgba(199,154,106,0.15) 100%); }
.hist-item { position: relative; padding-bottom: 34px; }
.hist-item:last-child { padding-bottom: 0; }
.hist-item::before { content: ""; position: absolute; left: -33px; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: #2a1f19; border: 3px solid #c79a6a; box-shadow: 0 0 0 4px rgba(199,154,106,0.18); }
.hist-item .hist-year { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: 2px; color: #e3d3bd; background: rgba(227,211,189,0.14); padding: 5px 14px; border-radius: 20px; margin-bottom: 12px; }
.hist-item .hist-body { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; padding: 20px 22px; transition: transform 0.2s ease, border-color 0.2s ease; }
.hist-item .hist-body:hover { transform: translateX(4px); border-color: rgba(227,211,189,0.4); }
.hist-item .hist-body h3 { color: #fff; font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.hist-item .hist-body p { color: #efe6da; font-size: 15px; line-height: 1.65; }
.hist-note { margin-top: 34px; text-align: center; color: #e3d3bd; font-style: italic; font-size: 15px; line-height: 1.6; }

#asFooter .as-foot-bottom { display: flex; flex-direction: column; align-items: center; gap: 10px; }
#asFooter .as-foot-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; }
#asFooter .as-foot-legal a { color: #bfae9c; text-decoration: none; font-size: 13px; transition: color 0.2s ease; }
#asFooter .as-foot-legal a:hover { color: #c79a6a; }

/* ============================================================
   BANNER DE CONSENTIMENT DE COOKIES
   ============================================================ */
.cookie-banner {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 1300;
  width: min(430px, calc(100vw - 110px));
  background: rgba(36, 26, 20, 0.97);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  color: #e8ddd0;
  transform: translateY(20px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
}
.cookie-banner.show { opacity: 1; visibility: visible; transform: translateY(0); }
.cookie-banner p { font-size: 14px; line-height: 1.6; margin-bottom: 16px; }
.cookie-banner p a { color: #e3d3bd; text-decoration: underline; }
.cookie-banner .cookie-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cookie-banner button { flex: 1 1 auto; cursor: pointer; border: 0; border-radius: 8px; padding: 12px 18px; font-family: inherit; font-weight: 700; font-size: 13px; letter-spacing: 0.5px; text-transform: uppercase; transition: transform 0.2s ease, background 0.2s ease; }
.cookie-banner .c-accept { background: linear-gradient(135deg, #c79a6a, #b3854f); color: #fff; }
.cookie-banner .c-reject { background: rgba(255, 255, 255, 0.1); color: #e8ddd0; }
.cookie-banner button:hover { transform: translateY(-2px); }
@media (max-width: 560px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 96px; width: auto; }
}

/* ============================================================
   PRELOADER — GIMNASTA (giant swing a la barra)
   ============================================================ */
.as-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #1c140f;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 34px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.as-loader.hide { opacity: 0; visibility: hidden; }
.as-loader-scene { position: relative; width: 64px; height: 64px; }
.as-loader-scene .as-spinner {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.15);
  border-top-color: #c79a6a;
  animation: asSpin 1s linear infinite;
}
@keyframes asSpin { to { transform: rotate(360deg); } }

/* ============================================================
   BOTIGA (catàleg de productes)
   ============================================================ */
.shop-wrap { flex: 1; width: 100%; max-width: 1160px; margin: 50px auto 70px; padding: 0 6%; }
.shop-wrap h1 { text-align: center; font-size: clamp(30px, 4vw, 46px); font-weight: 800; text-transform: uppercase; color: #fff; margin-bottom: 10px; letter-spacing: -0.5px; }
.shop-wrap .shop-lead { text-align: center; color: #e3d3bd; margin-bottom: 42px; font-size: 16px; line-height: 1.6; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 26px; }
.shop-card { background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.shop-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); }
.shop-img { position: relative; aspect-ratio: 1 / 1; background: linear-gradient(135deg, rgba(199, 154, 106, 0.25), rgba(46, 35, 28, 0.5)); background-size: cover; background-position: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.shop-img svg { width: 46px; height: 46px; stroke: #e3d3bd; fill: none; opacity: 0.8; }
.shop-img span { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: #e3d3bd; opacity: 0.7; }
.shop-body { padding: 20px 20px 24px; display: flex; flex-direction: column; flex: 1; }
.shop-body h3 { font-size: 17px; color: #fff; font-weight: 700; margin-bottom: 6px; }
.shop-price { color: #e3d3bd; font-weight: 800; font-size: 16px; margin-bottom: 16px; }
.shop-size { width: 100%; padding: 11px 12px; margin-bottom: 12px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.06); color: #fff; font-family: inherit; font-size: 14px; cursor: pointer; transition: border-color 0.2s ease; }
.shop-size:focus { outline: none; border-color: #e3d3bd; }
.shop-size.shop-size-err { border-color: #e2483a; }
.shop-size option { color: #2a2a2a; }
.shop-buy { margin-top: auto; cursor: pointer; border: 0; width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(135deg, #c79a6a, #b3854f); color: #fff; text-decoration: none; font-weight: 800; font-size: 14px; letter-spacing: 0.5px; text-transform: uppercase; padding: 13px 16px; border-radius: 10px; font-family: inherit; transition: background 0.2s ease, transform 0.2s ease; }
.shop-buy:hover { transform: translateY(-2px); }

/* Cistella (carret) */
.cart-fab { position: fixed; right: 24px; bottom: 112px; z-index: 1250; width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer; background: linear-gradient(135deg, #c79a6a, #b3854f); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35); transition: transform 0.2s ease; }
.cart-fab:hover { transform: scale(1.08); }
.cart-fab svg { width: 25px; height: 25px; stroke: #fff; fill: none; }
.cart-count { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: #e2483a; color: #fff; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.cart-overlay { position: fixed; inset: 0; z-index: 1350; background: rgba(20, 14, 10, 0.6); opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s; }
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(400px, 92vw); z-index: 1400; background: linear-gradient(160deg, #2b2019, #1c140f); border-left: 1px solid rgba(255, 255, 255, 0.12); box-shadow: -12px 0 40px rgba(0, 0, 0, 0.5); transform: translateX(100%); transition: transform 0.35s ease; display: flex; flex-direction: column; }
.cart-drawer.open { transform: translateX(0); }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 24px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.cart-head h3 { color: #fff; font-size: 20px; font-weight: 800; }
.cart-close { background: rgba(255, 255, 255, 0.1); border: 0; color: #fff; width: 36px; height: 36px; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; transition: background 0.2s ease; }
.cart-close:hover { background: rgba(255, 255, 255, 0.2); }
.cart-items { flex: 1; overflow-y: auto; padding: 18px 24px; }
.cart-empty { color: #bfae9c; font-size: 14px; text-align: center; padding: 30px 0; line-height: 1.6; }
.cart-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.cart-item-info h4 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.cart-item-info span { color: #e3d3bd; font-size: 13px; }
.cart-item-remove { background: none; border: 0; color: #e2857a; cursor: pointer; font-size: 13px; text-decoration: underline; }
.cart-form { padding: 20px 24px 26px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.cart-submit { width: 100%; margin-top: 6px; padding: 16px; border: 0; border-radius: 10px; background: linear-gradient(135deg, #c79a6a, #b3854f); color: #fff; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; font-size: 14px; font-family: inherit; cursor: pointer; transition: transform 0.2s ease; }
.cart-submit:hover { transform: translateY(-2px); }
.cart-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.as-loader-text {
  color: #fff;
  letter-spacing: 5px;
  font-size: 13px;
  font-weight: 800;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  animation: asPulse 1.6s ease-in-out infinite;
}
@keyframes asPulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }

@media (max-width: 768px) {
  #asFooter .as-foot-map iframe { height: 200px; }
  .insc-page-card { padding: 36px 24px; }
}

/* ============================================================
   SUBMENÚ DESPLEGABLE (CLUB > Història)
   ============================================================ */
.md-nav .md-menu li.md-has-sub { position: relative; }
.md-nav .md-menu .md-sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  list-style: none;
  background: rgba(54, 42, 33, 0.98);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 8px 0;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 30;
}
.md-nav .md-menu li.md-has-sub:hover .md-sub,
.md-nav .md-menu li.md-has-sub:focus-within .md-sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.md-nav .md-menu .md-sub li { width: 100%; }
.md-nav .md-menu .md-sub a { display: block; padding: 12px 20px; font-size: 13px; }
.md-nav .md-menu .md-sub a::after { display: none; }

@media (max-width: 992px) {
  .md-nav .md-menu li.md-has-sub { position: static; }
  .md-nav .md-menu .md-sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(0, 0, 0, 0.22);
    backdrop-filter: none;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    min-width: 0;
  }
  .md-nav .md-menu .md-sub a { padding: 16px 24px 16px 44px; font-size: 14px; }
}

/* ============================================================
   TAULA DE QUOTES (quotes.html)
   ============================================================ */
.quotes-wrap { flex: 1; width: 100%; max-width: 880px; margin: 50px auto 70px; padding: 0 6%; }
.quotes-wrap h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; text-transform: uppercase; color: #fff; margin-bottom: 28px; letter-spacing: -0.5px; text-align: center; }
.quotes-table { width: 100%; border-collapse: collapse; background: rgba(255, 255, 255, 0.04); backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 18px; overflow: hidden; box-shadow: 0 20px 50px rgba(46, 35, 28, 0.4); }
.quotes-table thead th { background: rgba(46, 35, 28, 0.45); color: #e7dccd; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; text-align: left; padding: 18px 28px; font-weight: 800; }
.quotes-table thead th:last-child { text-align: right; }
.quotes-table td { padding: 18px 28px; border-top: 1px solid rgba(255, 255, 255, 0.1); color: #fff; font-size: 16px; }
.quotes-table td.modalitat a { color: #fff; text-decoration: none; font-weight: 600; transition: color 0.2s ease; }
.quotes-table td.modalitat a:hover { color: #e3d3bd; }
.quotes-table td.preu { text-align: right; font-weight: 800; color: #e3d3bd; white-space: nowrap; }
.quotes-table tbody tr:hover { background: rgba(255, 255, 255, 0.05); }
@media (max-width: 560px) {
  .quotes-table thead th, .quotes-table td { padding: 14px 16px; font-size: 14px; }
}

/* ============================================================
   BOTÓ FLOTANT DE WHATSAPP
   ============================================================ */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1200;
  width: 74px;
  height: 74px;
  display: block;
  line-height: 0;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.35));
  transition: transform 0.25s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 100%; height: 100%; display: block; }
@media (max-width: 560px) {
  .wa-float { width: 64px; height: 64px; right: 16px; bottom: 16px; }
}




