/* ==========================================================================
   PORTADA MODERNA FCPEC
   Scoping per conviure al 100% amb el tema Hello i Elementor
   ========================================================================== */

/* ==========================================================================
   OCULTAR CAPÇALERA I PEU ANTICS D'ELEMENTOR / HFE / TEMA HELLO
   ========================================================================== */
.elementor-14189,
[data-elementor-id="14189"],
div[data-elementor-post-type="elementor-hf"]:not(.portal-footer),
#site-header,
header.site-header,
.site-header,
.elementor-location-header,
header[data-elementor-type="header"],
div[data-elementor-type="header"],
.hfe-before-header-wrap,
.hfe-after-header-wrap,
.elementor-theme-builder-content-header,
header[itemtype*="WPHeader"],
#masthead {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

.elementor-14201,
[data-elementor-id="14201"],
footer#colophon,
footer.site-footer,
footer[itemtype*="WPFooter"] {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

:root,
#fcpec-portal {
  --y: #FCD80C;
  --y2: #F4CC00;
  --r: #DA121A;
  --b: #22409F;
  --b2: #16296E;
  --b3: #0B1747;
  --ink: #0E0E0E;
  --paper: #fff;
  --mute: rgba(14, 14, 14, 0.68);
  --slab: "Zilla Slab", Rockwell, "Roboto Slab", Georgia, serif;
  --sans: "Barlow", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --pad: clamp(16px, 4vw, 48px);
  --max: 1560px;
}

#fcpec-portal {
  background: var(--y);
  color: var(--ink);
  font: 400 18px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: clip;
}

#fcpec-portal *,
.portal-header,
.portal-header *,
.portal-footer,
.portal-footer *,
.portal-mobile-drawer,
.portal-mobile-drawer *,
.portal-desk,
.portal-desk *,
.portal-fab,
.portal-fab * {
  box-sizing: border-box;
}

.portal-header,
.portal-footer,
.portal-mobile-drawer,
.portal-desk,
.portal-fab {
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

#fcpec-portal h1,
#fcpec-portal h2,
#fcpec-portal h3,
#fcpec-portal h4 {
  font-family: var(--slab);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0;
}

#fcpec-portal p {
  margin: 0;
}

#fcpec-portal a {
  color: inherit;
  text-decoration: none;
}

#fcpec-portal button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

#fcpec-portal img,
#fcpec-portal video {
  display: block;
  max-width: 100%;
}

#fcpec-portal ul,
#fcpec-portal ol {
  margin: 0;
  padding: 0;
}

.portal-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.portal-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* Senyera Band */
#fcpec-portal .band {
  height: 14px;
  background: repeating-linear-gradient(180deg, var(--y) 0 2px, var(--r) 2px 4px);
  position: relative;
}
#fcpec-portal .band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, var(--y) 0 calc(100%/9), var(--r) calc(100%/9) calc(200%/9));
}
#fcpec-portal .band.h::before {
  background: repeating-linear-gradient(180deg, var(--y) 0 1.55px, var(--r) 1.55px 3.1px);
}

/* ==========================================================================
   CAPÇALERA MODERNA INTEGRADA (Amb el Menú de WordPress + Logo + GESFEDECAT)
   ========================================================================== */
.portal-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(11, 23, 71, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  transition: background 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  border-bottom: 2px solid rgba(252, 216, 12, 0.4);
}

.portal-header.solid {
  background: #0B1747;
  border-bottom: 3px solid var(--y);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.35);
}

.portal-header-in {
  max-width: 1560px;
  width: 100%;
  margin: 0 auto;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  box-sizing: border-box;
}

/* Logo oficial FCPEC modern */
.portal-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  color: #fff !important;
  flex-shrink: 0;
}

.portal-badge-svg,
.portal-badge-img {
  width: 36px;
  height: 36px;
  flex: none;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
  border-radius: 4px;
}

.portal-brand-text {
  display: flex;
  flex-direction: column;
}

.portal-brand-text b {
  font: 700 17px/1 var(--slab);
  letter-spacing: 0.03em;
  color: var(--y);
}

.portal-brand-text span {
  font: 600 10.5px/1.15 var(--sans);
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.85);
  max-width: 160px;
}

@media (max-width: 1380px) {
  .portal-brand-text span {
    display: none;
  }
}

/* Menú de WordPress integrat a la capçalera */
.portal-nav-desktop {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
}

.portal-nav-desktop ul.portal-menu-items {
  display: flex;
  align-items: center;
  gap: 1px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.portal-nav-desktop ul.portal-menu-items > li {
  position: relative;
  flex-shrink: 0;
}

.portal-nav-desktop ul.portal-menu-items > li > a {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 6px 7px;
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 4px;
  transition: all 0.15s;
  white-space: nowrap;
}

@media (max-width: 1220px) {
  .portal-nav-desktop ul.portal-menu-items > li > a {
    padding: 5px 5px;
    font-size: 10.5px;
  }
}

.portal-nav-desktop ul.portal-menu-items > li:hover > a {
  background: rgba(255, 255, 255, 0.14);
  color: var(--y) !important;
}

.portal-nav-desktop ul.portal-menu-items > li.menu-item-has-children > a::after {
  content: "▾";
  font-size: 10px;
  opacity: 0.75;
  margin-left: 1px;
}

/* Desplegables del menú (Sub-menus) */
.portal-nav-desktop .sub-menu {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  min-width: 230px;
  background: #0B1747;
  border: 2px solid var(--y);
  border-radius: 8px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.5);
  padding: 6px 0;
  list-style: none;
  display: none;
  z-index: 10000;
  animation: portalMenuFade 0.2s ease-out;
}

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

.portal-nav-desktop li.menu-item-has-children:hover > .sub-menu {
  display: block;
}

.portal-nav-desktop .sub-menu li {
  position: relative;
}

.portal-nav-desktop .sub-menu li a {
  display: block;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #f0f4ff !important;
  text-transform: none;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.15s;
  white-space: nowrap;
}

.portal-nav-desktop .sub-menu li:last-child a {
  border-bottom: 0;
}

.portal-nav-desktop .sub-menu li a:hover {
  background: var(--b);
  color: var(--y) !important;
  padding-left: 22px;
}

/* Sub-menú de 3r nivell */
.portal-nav-desktop .sub-menu .menu-item-has-children > a::after {
  content: "▸";
  float: right;
  margin-left: 10px;
}

.portal-nav-desktop .sub-menu .menu-item-has-children:hover > .sub-menu {
  top: -4px;
  left: 100%;
  margin-left: 3px;
}

/* Botons d'acció de la dreta */
.portal-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* Botó GESFEDECAT CLUBS destacat */
.portal-btn-clubs {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #DA121A 0%, #b80a10 100%) !important;
  color: #ffffff !important;
  font-weight: 800;
  font-size: 11.5px;
  letter-spacing: 0.03em;
  padding: 6px 11px;
  border-radius: 999px;
  text-decoration: none !important;
  box-shadow: 0 3px 10px rgba(218, 18, 26, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  white-space: nowrap;
}

.portal-btn-clubs:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(218, 18, 26, 0.6);
  background: #c80f16 !important;
  color: #ffffff !important;
}

.portal-btn-clubs .portal-lock-icon {
  font-size: 12px;
}

.portal-ask-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--y) !important;
  color: #0E0E0E !important;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 11.5px;
  transition: transform 0.2s, background 0.2s;
  white-space: nowrap;
  border: 0;
  cursor: pointer;
}

.portal-ask-btn:hover {
  transform: translateY(-1px);
  background: #ffffff !important;
  color: #0B1747 !important;
}

.portal-clubs-text-short {
  display: none;
}

/* ==========================================================================
   SELECTOR D'IDIOMES OFICIAL (CATALÀ PREDETERMINAT, ESPAÑOL, FRANÇAIS, ENGLISH)
   ========================================================================== */
.portal-lang-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  z-index: 120;
}

.portal-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 35px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 999px;
  color: #ffffff !important;
  font-family: var(--sans) !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  box-sizing: border-box;
}

.portal-lang-btn:hover,
.portal-lang-wrap.open .portal-lang-btn {
  background: rgba(252, 216, 12, 0.16) !important;
  border-color: rgba(252, 216, 12, 0.6) !important;
  color: var(--y) !important;
}

.portal-lang-btn .lang-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.portal-lang-btn .senyera-flag,
.portal-lang-opt .senyera-flag,
.drawer-lang-pill .senyera-flag {
  display: inline-block;
  vertical-align: middle;
  border-radius: 2px;
  box-shadow: 0 0 1px rgba(0,0,0,0.5);
  flex-shrink: 0;
}

.portal-lang-btn .lang-flag-emoji,
.portal-lang-opt .opt-flag,
.drawer-lang-pill span {
  font-size: 14px;
  line-height: 1;
}

.portal-lang-btn .lang-code {
  font-weight: 800;
  letter-spacing: 0.05em;
}

.portal-lang-btn .lang-chevron {
  stroke: currentColor;
  transition: transform 0.2s ease;
}

.portal-lang-wrap.open .portal-lang-btn .lang-chevron {
  transform: rotate(180deg);
}

/* Menú desplegable d'idiomes */
.portal-lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 175px;
  background: #0B1747 !important;
  border: 1.5px solid rgba(252, 216, 12, 0.5) !important;
  border-radius: 12px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
  pointer-events: none;
  z-index: 99999;
}

.portal-lang-wrap.open .portal-lang-dropdown,
.portal-lang-wrap:hover .portal-lang-dropdown,
.portal-lang-wrap:focus-within .portal-lang-dropdown {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
  display: flex !important;
}

.portal-lang-wrap.open .portal-lang-btn,
.portal-lang-wrap:hover .portal-lang-btn {
  background: rgba(252, 216, 12, 0.16) !important;
  border-color: rgba(252, 216, 12, 0.6) !important;
  color: var(--y) !important;
}

.portal-lang-wrap.open .portal-lang-btn .lang-chevron,
.portal-lang-wrap:hover .portal-lang-btn .lang-chevron {
  transform: rotate(180deg);
}

.portal-lang-opt {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 12px;
  background: transparent !important;
  border: 0 !important;
  border-radius: 8px;
  color: #f1f5f9 !important;
  font-family: var(--sans) !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none !important;
  box-sizing: border-box;
}

.portal-lang-opt:hover,
.portal-lang-opt:focus {
  background: rgba(252, 216, 12, 0.16) !important;
  color: var(--y) !important;
}

.portal-lang-opt.active {
  background: rgba(252, 216, 12, 0.2) !important;
  color: var(--y) !important;
  font-weight: 700 !important;
}

.portal-lang-opt .opt-text {
  flex-grow: 1;
}

.portal-lang-opt .opt-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  background: rgba(252, 216, 12, 0.25);
  color: var(--y) !important;
  border-radius: 4px;
}

/* Selector al calaix mòbil (Drawer) */
.portal-drawer-lang-section {
  padding: 0 0 14px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.portal-drawer-lang-title {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 8px;
}

.portal-drawer-lang-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.drawer-lang-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 8px;
  color: #ffffff !important;
  font-family: var(--sans) !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  cursor: pointer;
  transition: all 0.15s ease;
}

.drawer-lang-pill:hover,
.drawer-lang-pill:focus {
  background: rgba(252, 216, 12, 0.15) !important;
  border-color: rgba(252, 216, 12, 0.4) !important;
  color: var(--y) !important;
}

.drawer-lang-pill.active {
  background: var(--y) !important;
  border-color: var(--y) !important;
  color: #0B1747 !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 10px rgba(252, 216, 12, 0.35);
}

/* Ocultar barra superior i artefactes de Google Translate */
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame,
iframe.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-balloon-frame {
  display: none !important;
  visibility: hidden !important;
}

body {
  top: 0px !important;
  position: static !important;
}

.goog-text-highlight {
  background: none !important;
  box-shadow: none !important;
}

#google_translate_element {
  display: none !important;
}

/* Botó Hamburger Mòbil Oficial */
.portal-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 38px;
  height: 36px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1.5px solid rgba(252, 216, 12, 0.6) !important;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0 !important;
  box-sizing: border-box;
  transition: all 0.2s ease;
  margin-left: 2px;
}

.portal-burger:hover,
.portal-burger:focus {
  background: rgba(252, 216, 12, 0.25) !important;
  border-color: var(--y) !important;
  transform: translateY(-1px);
}

.portal-burger span {
  display: block;
  width: 20px;
  height: 2.5px;
  background: #ffffff !important;
  border-radius: 2px;
  transition: all 0.25s ease;
}

.portal-burger:hover span {
  background: var(--y) !important;
}

body.portal-drawer-locked {
  overflow: hidden !important;
}

/* ==========================================================================
   MENÚ CALAIX DESPLEGABLE PER A MÒBILS (DRAWER) - ESTIL PREMIUM I 100% LLEGIBLE
   ========================================================================== */
.portal-mobile-drawer {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  background: #0B1747 !important; /* 100% OPAQUE SOLID DARK NAVY - NO TRANSPARENCY, NO BLEEDING! */
  z-index: 9999999 !important; /* Always on top */
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
  box-sizing: border-box !important;
}

.portal-mobile-drawer.open {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateX(0) !important;
}

/* Capçalera del calaix */
.portal-drawer-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 14px 18px !important;
  background: #060e2e !important;
  border-bottom: 2px solid var(--y) !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35) !important;
  flex-shrink: 0 !important;
}

.portal-drawer-head .brand-mini {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  font: 800 18px/1 var(--slab) !important;
  color: var(--y) !important;
  text-decoration: none !important;
}

.portal-drawer-head .brand-mini img {
  width: 32px !important;
  height: 32px !important;
  border-radius: 4px !important;
  display: block !important;
}

.portal-drawer-head .brand-mini span {
  color: var(--y) !important;
  letter-spacing: 0.04em !important;
  font-weight: 800 !important;
}

/* Botó de tancar calaix destacat */
.portal-drawer-close {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  height: 38px !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1.5px solid rgba(252, 216, 12, 0.6) !important;
  border-radius: 50% !important;
  color: #ffffff !important;
  cursor: pointer !important;
  padding: 0 !important;
  transition: all 0.2s ease !important;
  flex-shrink: 0 !important;
}

.portal-drawer-close svg {
  width: 20px !important;
  height: 20px !important;
  stroke: #ffffff !important;
  transition: stroke 0.2s !important;
}

.portal-drawer-close:hover,
.portal-drawer-close:focus {
  background: #DA121A !important;
  border-color: #DA121A !important;
  color: #ffffff !important;
  transform: rotate(90deg) !important;
}

.portal-drawer-close:hover svg {
  stroke: #ffffff !important;
}

/* Cos del menú calaix */
.portal-drawer-body {
  padding: 18px 16px 40px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  flex-grow: 1 !important;
  background: #0B1747 !important;
}

.portal-drawer-body ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

/* Garantia absoluta de color blanc lluent a tots els enllaços del menú mòbil */
.portal-mobile-drawer a,
.portal-mobile-drawer a:visited,
#fcpec-portal .portal-mobile-drawer a,
#fcpec-portal .portal-mobile-drawer a:visited {
  color: #ffffff !important;
}

/* Elements principals de nivell 1 */
.portal-drawer-body ul.portal-menu-items > li,
.portal-drawer-body > ul > li {
  margin: 0 !important;
  padding: 0 !important;
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Fila de l'element principal (quan té submenú) */
.portal-drawer-body .portal-drawer-item-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 8px !important;
  transition: all 0.2s ease !important;
  overflow: hidden !important;
}

.portal-drawer-body .portal-drawer-item-row:hover,
.portal-drawer-body .portal-drawer-item-row.active {
  background: rgba(252, 216, 12, 0.15) !important;
  border-color: rgba(252, 216, 12, 0.5) !important;
}

/* Enllaç principal dins d'una fila amb botó */
.portal-drawer-body .portal-drawer-item-row > a {
  display: flex !important;
  align-items: center !important;
  flex-grow: 1 !important;
  padding: 13px 16px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase !important;
  color: #ffffff !important;
  text-decoration: none !important;
  background: transparent !important;
  border: none !important;
  line-height: 1.25 !important;
  transition: color 0.15s ease !important;
}

.portal-drawer-body .portal-drawer-item-row > a:hover,
.portal-drawer-body .portal-drawer-item-row > a:focus {
  color: var(--y) !important;
}

/* Enllaç principal sense submenú (accés directe com Inici, Contacte) */
.portal-drawer-body ul.portal-menu-items > li > a,
.portal-drawer-body > ul > li > a {
  display: flex !important;
  align-items: center !important;
  padding: 13px 16px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase !important;
  color: #ffffff !important;
  text-decoration: none !important;
  line-height: 1.25 !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 8px !important;
  transition: all 0.2s ease !important;
}

.portal-drawer-body ul.portal-menu-items > li > a:hover,
.portal-drawer-body ul.portal-menu-items > li > a:focus,
.portal-drawer-body > ul > li > a:hover,
.portal-drawer-body > ul > li > a:focus {
  background: rgba(252, 216, 12, 0.15) !important;
  border-color: rgba(252, 216, 12, 0.5) !important;
  color: var(--y) !important;
}

/* Botó desplegable d'acordió per a submenús */
.portal-drawer-toggle {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 46px !important;
  height: 46px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 0 !important;
  border-left: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: var(--y) !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
  transition: background 0.2s, transform 0.2s !important;
}

.portal-drawer-toggle:hover {
  background: rgba(252, 216, 12, 0.25) !important;
}

.portal-drawer-toggle svg {
  width: 20px !important;
  height: 20px !important;
  stroke: var(--y) !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.portal-drawer-body li.submenu-open > .portal-drawer-item-row .portal-drawer-toggle svg {
  transform: rotate(180deg) !important;
}

/* Sub-menús (Nivell 2) */
.portal-drawer-body .sub-menu {
  display: none !important; /* Plegat per defecte */
  list-style: none !important;
  margin: 6px 0 8px 10px !important;
  padding: 8px 10px !important;
  background: #060e2e !important;
  border-left: 3px solid var(--y) !important;
  border-radius: 0 8px 8px 0 !important;
  flex-direction: column !important;
  gap: 4px !important;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.35) !important;
}

.portal-drawer-body li.submenu-open > .sub-menu {
  display: flex !important; /* Desplegat quan està actiu */
  animation: portalDrawerSlide 0.25s ease-out !important;
}

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

.portal-drawer-body .sub-menu li {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.portal-drawer-body .sub-menu li a {
  display: block !important;
  padding: 10px 14px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  color: #f8fafc !important; /* Blanc lluent molt llegible */
  text-decoration: none !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border-radius: 6px !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  transition: all 0.15s ease !important;
}

.portal-drawer-body .sub-menu li:last-child a {
  border-bottom: 0 !important;
}

.portal-drawer-body .sub-menu li a:hover,
.portal-drawer-body .sub-menu li a:focus {
  background: rgba(252, 216, 12, 0.18) !important;
  border-color: rgba(252, 216, 12, 0.4) !important;
  color: var(--y) !important;
  padding-left: 18px !important;
}

/* Sub-menú de Nivell 3 si n'hi ha */
.portal-drawer-body .sub-menu .sub-menu {
  margin-left: 12px !important;
  border-left: 2px solid rgba(255, 255, 255, 0.4) !important;
  background: rgba(0, 0, 0, 0.4) !important;
}

.portal-drawer-body .sub-menu .sub-menu li a {
  font-size: 12.5px !important;
  color: #cbd5e1 !important;
}

/* Botó d'acció GESFEDECAT CLUBS al peu del calaix */
.portal-drawer-action {
  margin-top: 14px !important;
  padding-top: 16px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.portal-drawer-action .portal-btn-clubs {
  display: flex !important;
  width: 100% !important;
  justify-content: center !important;
  font-size: 13.5px !important;
  padding: 12px 18px !important;
  border-radius: 8px !important;
  text-align: center !important;
}

@media (max-width: 1080px) {
  .portal-nav-desktop {
    display: none !important;
  }
  .portal-burger {
    display: inline-flex !important;
  }
  .portal-brand-text span {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .portal-header-in {
    padding: 6px 10px;
    gap: 6px;
  }
  .portal-header-actions {
    gap: 5px;
  }
  .portal-badge-img {
    width: 32px;
    height: 32px;
  }
  .portal-brand-text b {
    font-size: 15px;
  }
  .portal-btn-clubs {
    font-size: 11px;
    padding: 5px 9px;
  }
  .portal-ask-btn {
    font-size: 11px;
    padding: 5px 9px;
  }
}

@media (max-width: 520px) {
  .portal-clubs-text-long {
    display: none !important;
  }
  .portal-clubs-text-short {
    display: inline !important;
  }
  .portal-header-in {
    padding: 5px 8px;
    gap: 4px;
  }
  .portal-header-actions {
    gap: 4px;
  }
  .portal-brand {
    gap: 6px;
  }
  .portal-badge-img {
    width: 30px;
    height: 30px;
  }
  .portal-brand-text b {
    font-size: 14px;
  }
  .portal-btn-clubs {
    font-size: 10.5px;
    padding: 5px 8px;
    letter-spacing: 0;
  }
  .portal-ask-btn {
    font-size: 10.5px;
    padding: 5px 8px;
  }
  .portal-burger {
    width: 35px;
    height: 34px;
    padding: 5px;
  }
  .portal-burger span {
    width: 18px;
    height: 2px;
  }
}

@media (max-width: 360px) {
  .portal-brand-text b {
    display: none !important;
  }
  .portal-ask-btn {
    display: none !important;
  }
}

/* ==========================================================================
   HERO (Amb Vídeo Loop + Post-fallback)
   ========================================================================== */
.portal-hero {
  position: relative;
  height: calc(100svh - 60px);
  min-height: 580px;
  color: #fff;
  overflow: hidden;
  background: var(--b3);
}
.portal-hero video,
.portal-hero .poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portal-hero .shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,14,40,.45) 0, rgba(8,14,40,0) 26%, rgba(8,14,40,0) 40%, rgba(8,14,40,.82) 100%),
              linear-gradient(90deg, rgba(8,14,40,.35) 0, rgba(8,14,40,0) 60%);
}
.portal-hero-in {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 var(--pad) clamp(36px, 7vh, 80px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 30px;
}
.portal-hero .kick {
  font: 600 15px/1.3 var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0.92;
  color: var(--y);
}
.portal-hero h1 {
  font-size: clamp(44px, 7.2vw, 108px);
  max-width: 12ch;
  color: #fff;
  text-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.portal-hero p.lead {
  font-size: clamp(18px, 1.6vw, 22px);
  max-width: 36em;
  margin-top: 20px;
  opacity: 0.95;
  line-height: 1.45;
}
.portal-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
#fcpec-portal .portal-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  font-family: inherit;
  border: none;
  cursor: pointer;
  line-height: normal;
  font-weight: 700;
  font-size: 16px;
  padding: 13px 24px;
  border-radius: 999px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
  box-sizing: border-box;
}

#fcpec-portal .portal-btn:hover {
  transform: translateY(-2px);
}

#fcpec-portal .portal-btn.btn-k,
#fcpec-portal .btn.k,
#fcpec-portal a.portal-btn.btn-k,
#fcpec-portal .portal-news-head .portal-btn,
#fcpec-portal .portal-more-links .btn-k,
#fcpec-portal .portal-acts .btn-k {
  background: #0E0E0E !important;
  color: #ffffff !important;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

#fcpec-portal .portal-btn.btn-k:hover,
#fcpec-portal .portal-more-links .btn-k:hover,
#fcpec-portal .portal-news-head .portal-btn:hover,
#fcpec-portal .portal-acts .btn-k:hover {
  background: #22409F !important;
  color: #FCD80C !important;
  box-shadow: 0 6px 18px rgba(34, 64, 159, 0.5);
}

#fcpec-portal .portal-btn.btn-y,
#fcpec-portal a.portal-btn.btn-y {
  background: var(--y) !important;
  color: var(--ink) !important;
  box-shadow: 0 4px 14px rgba(252, 216, 12, 0.35);
}

#fcpec-portal .portal-btn.btn-b,
#fcpec-portal a.portal-btn.btn-b {
  background: var(--b) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(34, 64, 159, 0.4);
}

#fcpec-portal .portal-btn.btn-w,
#fcpec-portal a.portal-btn.btn-w {
  background: #ffffff !important;
  color: var(--b2) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

#fcpec-portal .portal-btn.btn-ghost,
#fcpec-portal a.portal-btn.btn-ghost {
  background: transparent !important;
  color: #ffffff !important;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.85);
}

#fcpec-portal .portal-btn.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15) !important;
}
.portal-hero .cap {
  font-size: 13px;
  line-height: 1.4;
  max-width: 250px;
  text-align: right;
  opacity: 0.85;
  margin-bottom: 30px;
}
.portal-hero .band {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
}
@media (max-width: 760px) {
  .portal-hero-in {
    grid-template-columns: 1fr;
  }
  .portal-hero .cap {
    text-align: left;
    margin-bottom: 0;
  }
  .portal-hero h1 {
    font-size: clamp(38px, 12vw, 56px);
  }
}

/* ==========================================================================
   FEDERACIÓ (Més cohesió per ser més forts)
   ========================================================================== */
.portal-tots {
  padding: clamp(70px, 10vw, 130px) 0;
  background: var(--y);
}
.portal-tots .grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(30px, 6vw, 90px);
  align-items: center;
}
.portal-tots h2 {
  font-size: clamp(36px, 5.2vw, 76px);
  color: var(--ink);
}
.portal-tots h2 small {
  display: block;
  font: 500 clamp(17px, 1.5vw, 21px)/1.4 var(--sans);
  margin-top: 18px;
  letter-spacing: 0;
  color: var(--mute);
}
.portal-tots p {
  font-size: clamp(17px, 1.4vw, 20px);
  margin-top: 24px;
  max-width: 34em;
  line-height: 1.5;
}
.portal-tots figure {
  position: relative;
  margin: 0;
}
.portal-tots figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  border: 6px solid var(--ink);
  box-shadow: 12px 12px 0 var(--b);
}
.portal-tots figcaption {
  font-size: 13px;
  line-height: 1.4;
  margin-top: 14px;
  color: var(--mute);
}
.portal-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 28px;
  font-weight: 700;
  font-size: 16px;
}
.portal-facts span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.portal-facts span::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--r);
  display: inline-block;
}
@media (max-width: 860px) {
  .portal-tots .grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   EL DESCENS / DEL PIRINEU A LA MEDITERRÀNIA (El Riu interactiu)
   ========================================================================== */
.portal-descent {
  position: relative;
  color: #fff;
  background: linear-gradient(180deg, var(--b) 0%, var(--b2) 45%, var(--b3) 100%);
}
.portal-descent-head {
  padding: clamp(70px, 9vw, 120px) 0 30px;
}
.portal-descent-head h2 {
  font-size: clamp(38px, 5.2vw, 76px);
  max-width: 14ch;
  color: #fff;
}
.portal-descent-head p {
  font-size: clamp(18px, 1.5vw, 21px);
  max-width: 36em;
  margin-top: 20px;
  opacity: 0.9;
}
.portal-course {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: clamp(20px, 4vw, 60px);
  padding-bottom: clamp(70px, 9vw, 130px);
}
.portal-river {
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  height: calc(100svh - 60px);
}
.portal-river svg#river-svg {
  width: 100%;
  height: calc(100% - 150px);
  margin-top: 80px;
  overflow: visible;
}
.portal-river .ends {
  position: absolute;
  left: 0;
  right: 0;
  font: 700 13px/1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  color: var(--y);
}
.portal-river .ends.t {
  top: 50px;
}
.portal-river .ends.b {
  bottom: 20px;
}
.portal-stops {
  list-style: none;
}
.portal-stop {
  min-height: 85vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3.5vw, 54px);
  align-items: center;
  padding: 5vh 0;
}
.portal-stop .no {
  font: 700 14px/1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--y);
}
.portal-stop h3 {
  font-size: clamp(34px, 4.2vw, 64px);
  margin-top: 10px;
  color: #fff;
}
.portal-stop .mods {
  font-weight: 600;
  font-size: 18px;
  margin-top: 10px;
  opacity: 0.95;
  color: #f0f4ff;
}
.portal-stop .where {
  margin-top: 18px;
  font-size: 16px;
  opacity: 0.88;
}
.portal-stop .where b {
  color: var(--y);
  font-weight: 700;
}
.portal-stop blockquote {
  margin-top: 20px;
  font: 500 italic 19px/1.45 var(--slab);
  border-left: 4px solid var(--r);
  padding-left: 16px;
  max-width: 30em;
  color: #fff;
}
.portal-stop blockquote cite {
  display: block;
  font: 400 normal 14px/1.4 var(--sans);
  opacity: 0.75;
  margin-top: 8px;
}
.portal-stop .links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.portal-stop .links a {
  font-weight: 700;
  font-size: 14px;
  padding: 9px 16px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.75);
  color: #fff;
  transition: all 0.2s;
}
.portal-stop .links a:hover {
  background: var(--y);
  color: var(--ink);
  box-shadow: none;
}
.portal-stop figure {
  margin: 0;
}
.portal-stop figure .ph {
  aspect-ratio: 4/5;
  overflow: hidden;
  border: 5px solid #fff;
  background: var(--b3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.portal-stop figure .ph.w {
  aspect-ratio: 4/3;
}
.portal-stop figure img,
.portal-stop figure video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portal-stop figcaption {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  margin-top: 8px;
}
.portal-stop .txt,
.portal-stop figure {
  opacity: 0.25;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.portal-stop.on .txt,
.portal-stop.on figure {
  opacity: 1;
  transform: none;
}
.portal-stop.on figure {
  transition-delay: 0.08s;
}
.portal-sea-end {
  text-align: center;
  padding: 0 var(--pad) clamp(80px, 9vw, 130px);
}
.portal-sea-end p {
  font: 700 clamp(28px, 3.4vw, 46px)/1.15 var(--slab);
  max-width: 22ch;
  margin: 0 auto;
  color: var(--y);
}
@media (max-width: 860px) {
  .portal-course {
    grid-template-columns: 44px 1fr;
    gap: 16px;
  }
  .portal-river .ends {
    display: none;
  }
  .portal-stop {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 6vh 0;
  }
  .portal-stop figure {
    order: -1;
  }
  .portal-stop figure .ph {
    aspect-ratio: 4/3;
  }
  .portal-river svg#river-svg {
    height: calc(100% - 90px);
    margin-top: 50px;
  }
}

/* ==========================================================================
   LLICÈNCIA FEDERATIVA
   ========================================================================== */
.portal-lic {
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--y);
}
.portal-lic .grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(30px, 6vw, 90px);
  align-items: start;
}
.portal-lic h2 {
  font-size: clamp(38px, 5vw, 74px);
  color: var(--ink);
}
.portal-lic .intro {
  font-size: clamp(17px, 1.4vw, 20px);
  margin-top: 20px;
  max-width: 30em;
  line-height: 1.5;
}
.portal-how {
  list-style: none;
  counter-reset: s;
  margin-top: 30px;
  display: grid;
  gap: 16px;
}
.portal-how li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  font-size: 17px;
  line-height: 1.4;
}
.portal-how li::before {
  content: counter(s);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--y);
  display: grid;
  place-items: center;
  font: 700 20px/1 var(--slab);
}
.portal-card {
  background: #fff;
  border: 4px solid var(--ink);
  box-shadow: 10px 10px 0 var(--r);
}
.portal-tabs {
  display: flex;
  border-bottom: 4px solid var(--ink);
}
.portal-tabs button {
  flex: 1;
  padding: 15px 10px;
  font-weight: 700;
  font-size: 15px;
  border-right: 4px solid var(--ink);
  text-align: center;
  transition: background 0.2s, color 0.2s;
}
.portal-tabs button:last-child {
  border-right: 0;
}
.portal-tabs button[aria-selected="true"] {
  background: var(--ink);
  color: var(--y);
}
.portal-prices {
  list-style: none;
  padding: 8px 24px 18px;
}
.portal-prices li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 2px dashed rgba(0, 0, 0, 0.15);
}
.portal-prices li:last-child {
  border-bottom: 0;
}
.portal-prices .who {
  font-weight: 600;
  font-size: 17px;
}
.portal-prices .who small {
  display: block;
  font-weight: 400;
  font-size: 14px;
  color: var(--mute);
}
.portal-prices .eur {
  font: 700 32px/1 var(--slab);
  white-space: nowrap;
  color: var(--ink);
}
.portal-card .foot {
  padding: 15px 24px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
}
.portal-card .foot a {
  color: var(--y);
  text-decoration: underline;
}
.portal-perks {
  margin-top: 30px;
}
.portal-perks h3 {
  font-size: 22px;
}
.portal-perks ul {
  list-style: none;
  margin-top: 12px;
  display: grid;
  gap: 8px;
  font-size: 15px;
}
.portal-perks li {
  padding-left: 20px;
  position: relative;
}
.portal-perks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  background: var(--r);
}
.portal-more-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
@media (max-width: 900px) {
  .portal-lic .grid {
    grid-template-columns: 1fr;
  }
  .portal-card {
    box-shadow: 6px 6px 0 var(--r);
  }
}

/* ==========================================================================
   ESCOLES DE PESCA
   ========================================================================== */
.portal-learn {
  background: #fff;
  padding: clamp(80px, 10vw, 140px) 0;
}
.portal-learn .grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(30px, 6vw, 90px);
}
.portal-learn h2 {
  font-size: clamp(38px, 5vw, 74px);
  color: var(--ink);
}
.portal-learn .side {
  position: sticky;
  top: 80px;
  align-self: start;
}
.portal-learn .side p {
  font-size: clamp(17px, 1.4vw, 20px);
  margin-top: 18px;
  line-height: 1.5;
}
.portal-learn .clip {
  margin-top: 26px;
  aspect-ratio: 4/5;
  border: 5px solid var(--ink);
  overflow: hidden;
  max-width: 400px;
  background: #ddd;
  box-shadow: 10px 10px 0 var(--y);
}
.portal-learn .clip video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portal-words {
  margin-top: 22px;
  font: 500 italic 18px/1.45 var(--slab);
  border-left: 4px solid var(--r);
  padding-left: 16px;
  max-width: 26em;
}
.portal-words cite {
  display: block;
  font: 400 normal 13px var(--sans);
  color: var(--mute);
  margin-top: 8px;
}
.portal-schools {
  list-style: none;
  border-top: 4px solid var(--ink);
}
.portal-school {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 20px;
  padding: 20px 0;
  border-bottom: 2px solid rgba(0, 0, 0, 0.12);
}
.portal-school h3 {
  font-size: clamp(20px, 1.8vw, 26px);
}
.portal-school .area {
  font-weight: 600;
  color: var(--b);
  font-size: 15px;
}
.portal-school p {
  grid-column: 1/-1;
  font-size: 15px;
  color: var(--mute);
  line-height: 1.45;
}
.portal-school .water {
  font: 700 11px/1 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  align-self: start;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--y);
  color: var(--ink);
  white-space: nowrap;
}
.portal-school .water.mar {
  background: var(--b);
  color: #fff;
}
.portal-school .contact {
  grid-column: 1/-1;
  font-size: 14px;
  font-weight: 600;
}
.portal-school .contact a {
  color: var(--r);
  text-decoration: underline;
}
@media (max-width: 900px) {
  .portal-learn .grid {
    grid-template-columns: 1fr;
  }
  .portal-learn .side {
    position: static;
  }
  .portal-learn .clip {
    max-width: none;
    aspect-ratio: 4/3;
  }
}

/* ==========================================================================
   CUIDEM ELS RIUS I EL MAR
   ========================================================================== */
.portal-rivers {
  background: var(--ink);
  color: #fff;
  padding: clamp(80px, 10vw, 140px) 0;
}
.portal-rivers .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 6vw, 90px);
  align-items: center;
}
.portal-rivers h2 {
  font-size: clamp(38px, 5vw, 74px);
  color: #fff;
}
.portal-rivers .lead {
  font-size: clamp(17px, 1.4vw, 20px);
  margin-top: 20px;
  opacity: 0.9;
  line-height: 1.5;
}
.portal-acts-list {
  list-style: none;
  margin-top: 28px;
  display: grid;
  gap: 16px;
}
.portal-acts-list li {
  border-top: 2px solid rgba(255, 255, 255, 0.18);
  padding-top: 14px;
}
.portal-acts-list b {
  display: block;
  font: 700 20px/1.2 var(--slab);
  color: var(--y);
  margin-bottom: 4px;
}
.portal-acts-list span {
  font-size: 15px;
  opacity: 0.88;
  line-height: 1.45;
}
.portal-rivers .pics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.portal-rivers .pics .ph {
  aspect-ratio: 3/4;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.15);
}
.portal-rivers .pics .ph:first-child {
  grid-column: 1/-1;
  aspect-ratio: 16/10;
}
.portal-rivers .pics img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 900px) {
  .portal-rivers .grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   NOTÍCIES
   ========================================================================== */
.portal-news {
  padding: clamp(80px, 10vw, 130px) 0;
  background: var(--y);
}
.portal-news-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  flex-wrap: wrap;
}
.portal-news h2 {
  font-size: clamp(38px, 5vw, 74px);
  color: var(--ink);
}
.portal-feed {
  list-style: none;
  margin-top: 32px;
  border-top: 4px solid var(--ink);
}
.portal-feed li a {
  display: grid;
  grid-template-columns: 130px 1fr 40px;
  gap: 20px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 2px solid rgba(0, 0, 0, 0.15);
  text-decoration: none !important;
  color: var(--ink);
  transition: color 0.2s;
}
.portal-feed time {
  font-weight: 700;
  font-size: 15px;
  color: var(--mute);
}
.portal-feed .t {
  font: 700 clamp(18px, 1.5vw, 22px)/1.25 var(--slab);
}
.portal-feed .ar {
  font-size: 24px;
  text-align: right;
  transition: transform 0.2s;
}
.portal-feed li a:hover .ar {
  transform: translateX(6px);
}
.portal-feed li a:hover .t {
  text-decoration: underline;
  text-underline-offset: 4px;
}
@media (max-width: 700px) {
  .portal-feed li a {
    grid-template-columns: 1fr 24px;
  }
  .portal-feed time {
    grid-column: 1/-1;
  }
}

/* ==========================================================================
   CONCIERGE / ASSISTENT VIRTUAL (Pregunta al secretari)
   Alineat a l'esquerra per evitar solapament amb botó d'anar a l'inici
   ========================================================================== */
.portal-desk {
  position: fixed;
  left: 24px;
  right: auto;
  bottom: 24px;
  z-index: 99999;
  width: min(400px, calc(100vw - 32px));
  max-height: min(620px, calc(100svh - 40px));
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--ink);
  border: 4px solid var(--ink);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 8px 8px 0 var(--r), 0 20px 40px rgba(0, 0, 0, 0.35);
  transform: translateY(20px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.portal-desk.open {
  transform: none;
  opacity: 1;
  visibility: visible;
}
.portal-desk-h {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--y);
  border-bottom: 4px solid var(--ink);
}
.portal-desk-h svg {
  width: 34px;
  height: 34px;
  flex: none;
}
.portal-desk-h b {
  font: 700 17px/1.1 var(--slab);
}
.portal-desk-h small {
  display: block;
  font-size: 12px;
  color: var(--mute);
}
.portal-desk-h .x {
  margin-left: auto;
  font-size: 26px;
  line-height: 1;
  padding: 4px 8px;
}
.portal-log {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: grid;
  gap: 10px;
  align-content: start;
  font-size: 15px;
}
.portal-msg {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 14px;
  background: #f1f1f1;
  line-height: 1.45;
}
.portal-msg.me {
  justify-self: end;
  background: var(--b);
  color: #fff;
}
.portal-msg a {
  color: var(--r);
  font-weight: 700;
  text-decoration: underline;
}
.portal-msg.me a {
  color: var(--y);
}
.portal-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 12px;
}
.portal-chips button {
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 2px var(--ink);
  transition: all 0.2s;
}
.portal-chips button:hover {
  background: var(--ink);
  color: var(--y);
}
.portal-ask-form {
  display: flex;
  border-top: 4px solid var(--ink);
}
.portal-ask-form input {
  flex: 1;
  border: 0;
  padding: 14px 16px;
  font: inherit;
  font-size: 15px;
  min-width: 0;
  outline: none;
}
.portal-ask-form button {
  padding: 0 18px;
  font-weight: 700;
  background: var(--ink);
  color: var(--y);
}

/* Botó Flotant (FAB) alineat a l'esquerra amb fons degradat gris clar, vora negra i text negre */
.portal-fab {
  position: fixed;
  left: 24px;
  right: auto;
  bottom: 24px;
  z-index: 99990;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(145deg, #ffffff 0%, #f4f5f8 45%, #e1e4ea 100%);
  color: #000000 !important;
  padding: 13px 22px 13px 16px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.02em;
  border: 2.5px solid #000000;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16), 0 10px 28px rgba(0, 0, 0, 0.14);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}
.portal-fab span {
  color: #000000 !important;
  font-weight: 800;
}
.portal-fab:hover {
  transform: translateY(-3px) scale(1.03);
  background: linear-gradient(135deg, #0B1747 0%, #1a3285 100%);
  border-color: #0B1747;
  color: #FCD80C !important;
  box-shadow: 0 0 0 4px rgba(11, 23, 71, 0.25), 0 14px 34px rgba(0, 0, 0, 0.38);
}
.portal-fab:hover span {
  color: #FCD80C !important;
}
.portal-fab svg {
  width: 26px;
  height: 26px;
  flex: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}
.portal-fab.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.9);
}
@media (max-width: 760px) {
  .portal-fab {
    left: 14px;
    right: auto;
    bottom: 14px;
    padding: 10px 16px;
    gap: 7px;
    font-size: 13.5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14), 0 8px 18px rgba(0, 0, 0, 0.12);
  }
  .portal-fab svg {
    width: 22px;
    height: 22px;
  }
  .portal-desk {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
  }
}

/* ==========================================================================
   PEU DE PÀGINA MODERNA FCPEC
   Coordinat amb la nova capçalera (Fons blau fosc, senyera i daurat)
   ========================================================================== */
.portal-footer {
  background: #0B1747;
  color: #ffffff;
  position: relative;
  font-size: 15px;
  line-height: 1.5;
  border-top: 1px solid rgba(252, 216, 12, 0.2);
}

.portal-footer .band {
  height: 6px;
}

.portal-footer-in {
  padding-top: clamp(48px, 6vw, 76px);
  padding-bottom: 30px;
}

.portal-foot-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1.1fr;
  gap: clamp(24px, 4vw, 48px);
  margin-bottom: 48px;
}

.portal-foot-col h4 {
  font-family: var(--slab);
  font-size: 18px;
  font-weight: 700;
  color: var(--y);
  letter-spacing: 0.02em;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(252, 216, 12, 0.25);
}

.portal-foot-col.brand-col .foot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.portal-foot-col.brand-col .portal-brand-text b {
  font-size: 22px;
  color: var(--y);
}

.portal-foot-col.brand-col .portal-brand-text span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 260px;
}

.foot-desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
}

.foot-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.foot-badges span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--y);
  border: 1px solid rgba(252, 216, 12, 0.3);
}

.foot-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.foot-links li a {
  color: #d0dcff !important;
  text-decoration: none !important;
  font-size: 14px;
  transition: color 0.2s, padding-left 0.2s;
  display: inline-block;
}

.foot-links li a:hover {
  color: var(--y) !important;
  padding-left: 4px;
}

.foot-contact-item {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 14px;
  line-height: 1.5;
}

.foot-contact-item strong {
  color: #ffffff;
  display: block;
  margin-bottom: 3px;
}

.foot-contact-item a {
  color: var(--y) !important;
  text-decoration: underline !important;
}

.foot-intranet {
  margin-top: 18px;
}

.portal-foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  flex-wrap: wrap;
}

.foot-legal {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.foot-legal a {
  color: rgba(255, 255, 255, 0.7) !important;
  text-decoration: none !important;
  transition: color 0.2s;
}

.foot-legal a:hover {
  color: var(--y) !important;
}

@media (max-width: 1024px) {
  .portal-foot-cols {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .portal-foot-cols {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .portal-foot-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   FINESTRA DUAL DELS CALENDARIS D'OCUPACIÓ OFICIALS (GESFEDECAT)
   ========================================================================== */
body.body-cal-lock {
  overflow: hidden !important;
}

.portal-cal-modal {
  position: fixed;
  inset: 0;
  z-index: 99995;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
}

.portal-cal-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.portal-cal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 14, 38, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.portal-cal-box {
  position: relative;
  z-index: 2;
  width: 98%;
  max-width: 1560px;
  height: 94vh;
  max-height: 960px;
  display: flex;
  flex-direction: column;
  background: #0B1333;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.portal-cal-modal.open .portal-cal-box {
  transform: translateY(0) scale(1);
}

/* Header */
.portal-cal-header {
  background: #070D24;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-shrink: 0;
}

.portal-cal-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(252, 216, 12, 0.12);
  border: 1px solid rgba(252, 216, 12, 0.3);
  color: #FCD80C;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.portal-cal-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
}

.portal-cal-h2 {
  color: #ffffff;
  font-family: var(--slab);
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  line-height: 1.15;
}

.portal-cal-desc {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  margin: 3px 0 0;
}

.portal-cal-controls {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
}

.portal-cal-view-modes {
  background: #101c45 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.28) !important;
  padding: 5px !important;
  border-radius: 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
}

/* Forçant alta especificitat perquè el tema Hello / WordPress mai no ho sobreescrigui */
#fcpec-portal .portal-cal-tab,
.portal-cal-tab,
button.portal-cal-tab {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  font-family: var(--sans), system-ui, sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  padding: 8px 16px !important;
  border-radius: 9px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
}

#fcpec-portal .portal-cal-tab span,
.portal-cal-tab span,
button.portal-cal-tab span {
  color: #ffffff !important;
  font-weight: 700 !important;
  opacity: 1 !important;
  display: inline-block !important;
}

#fcpec-portal .portal-cal-tab svg,
.portal-cal-tab svg,
button.portal-cal-tab svg {
  stroke: #ffffff !important;
  color: #ffffff !important;
  opacity: 1 !important;
  flex: none !important;
}

#fcpec-portal .portal-cal-tab:hover,
.portal-cal-tab:hover,
button.portal-cal-tab:hover {
  background: rgba(255, 255, 255, 0.22) !important;
  border-color: #FCD80C !important;
  color: #FCD80C !important;
}

#fcpec-portal .portal-cal-tab:hover span,
.portal-cal-tab:hover span,
button.portal-cal-tab:hover span {
  color: #FCD80C !important;
}

#fcpec-portal .portal-cal-tab:hover svg,
.portal-cal-tab:hover svg,
button.portal-cal-tab:hover svg {
  stroke: #FCD80C !important;
}

/* Pestanya activa (Vista Dual) */
#fcpec-portal .portal-cal-tab.active,
.portal-cal-tab.active,
button.portal-cal-tab.active {
  background: #2563EB !important;
  border-color: #93C5FD !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

#fcpec-portal .portal-cal-tab.active span,
.portal-cal-tab.active span,
button.portal-cal-tab.active span {
  color: #ffffff !important;
  font-weight: 800 !important;
}

#fcpec-portal .portal-cal-tab.active svg,
.portal-cal-tab.active svg,
button.portal-cal-tab.active svg {
  stroke: #ffffff !important;
}

/* Pestanya activa (Continental) */
#fcpec-portal .portal-cal-tab.active[data-cal-view="continental"],
.portal-cal-tab.active[data-cal-view="continental"],
button.portal-cal-tab.active[data-cal-view="continental"] {
  background: #059669 !important;
  border-color: #6EE7B7 !important;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

/* Pestanya activa (Marítima) */
#fcpec-portal .portal-cal-tab.active[data-cal-view="maritima"],
.portal-cal-tab.active[data-cal-view="maritima"],
button.portal-cal-tab.active[data-cal-view="maritima"] {
  background: #0284C7 !important;
  border-color: #7DD3FC !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

/* Botó TANCAR vermell d'altíssim contrast a la capçalera */
#fcpec-portal .portal-cal-close-btn,
.portal-cal-close-btn,
button.portal-cal-close-btn {
  background: #DC2626 !important;
  border: 2px solid #EF4444 !important;
  color: #ffffff !important;
  font-family: var(--sans), system-ui, sans-serif !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
  height: 40px !important;
  padding: 0 18px !important;
  border-radius: 999px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.5) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  white-space: nowrap !important;
  line-height: 1 !important;
}

#fcpec-portal .portal-cal-close-btn span,
.portal-cal-close-btn span,
button.portal-cal-close-btn span {
  color: #ffffff !important;
  font-weight: 800 !important;
}

#fcpec-portal .portal-cal-close-btn svg,
.portal-cal-close-btn svg,
button.portal-cal-close-btn svg {
  stroke: #ffffff !important;
  color: #ffffff !important;
  flex: none !important;
}

#fcpec-portal .portal-cal-close-btn:hover,
.portal-cal-close-btn:hover,
button.portal-cal-close-btn:hover {
  background: #B91C1C !important;
  border-color: #FCA5A5 !important;
  transform: translateY(-2px) scale(1.04) !important;
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.7) !important;
}

/* Body / Dual Panes */
.portal-cal-body {
  flex: 1;
  display: grid;
  gap: 14px;
  padding: 14px;
  min-height: 0;
  overflow: hidden;
  background: #09102B;
}

.portal-cal-body.mode-dual {
  grid-template-columns: 1fr 1fr;
}

.portal-cal-body.mode-continental {
  grid-template-columns: 1fr;
}
.portal-cal-body.mode-continental .pane-maritima {
  display: none !important;
}

.portal-cal-body.mode-maritima {
  grid-template-columns: 1fr;
}
.portal-cal-body.mode-maritima .pane-continental {
  display: none !important;
}

/* Panes */
.portal-cal-pane {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  min-height: 0;
}

.portal-cal-pane-head {
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  color: #ffffff;
}

.pane-continental .portal-cal-pane-head {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.pane-maritima .portal-cal-pane-head {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
}

.portal-cal-pane-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.portal-cal-pane-icon {
  font-size: 22px;
  line-height: 1;
}

.portal-cal-pane-label strong {
  display: block;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.portal-cal-pane-label small {
  display: block;
  font-size: 11.5px;
  opacity: 0.88;
}

.portal-cal-ext-btn {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 8px;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
}

.portal-cal-ext-btn:hover {
  background: #ffffff;
  color: #070D24 !important;
}

/* Iframe wrap & spinner */
.portal-cal-iframe-wrap {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 0;
  background: #f8fafc;
}

.portal-cal-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: #f8fafc;
}

.portal-cal-spinner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #f8fafc;
  z-index: 3;
  color: #334155;
  font-size: 13.5px;
  font-weight: 700;
  transition: opacity 0.3s ease;
}

.portal-cal-spinner.loaded {
  opacity: 0;
  pointer-events: none;
}

.cal-spinner-ring {
  width: 38px;
  height: 38px;
  border: 3.5px solid #e2e8f0;
  border-top-color: #22409F;
  border-radius: 50%;
  animation: portal-spin 0.8s linear infinite;
}

@keyframes portal-spin {
  to { transform: rotate(360deg); }
}

/* Footer */
.portal-cal-footer {
  background: #070D24;
  padding: 12px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
}

.portal-cal-foot-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.7);
}

.cal-live-badge {
  background: #10B981;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 6px;
}

.portal-cal-foot-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.portal-btn-clubs-mini {
  background: #0E0E0E;
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  text-decoration: none !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: all 0.2s;
}

.portal-btn-clubs-mini:hover {
  background: #22409F;
  color: #FCD80C !important;
}

#fcpec-portal .portal-cal-btn-close-foot,
.portal-cal-btn-close-foot,
button.portal-cal-btn-close-foot {
  background: #DC2626 !important;
  border: 1.5px solid #EF4444 !important;
  color: #ffffff !important;
  font-family: var(--sans), system-ui, sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  padding: 8px 20px !important;
  border-radius: 999px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  box-shadow: 0 3px 12px rgba(220, 38, 38, 0.45) !important;
  transition: all 0.2s !important;
}

#fcpec-portal .portal-cal-btn-close-foot svg,
.portal-cal-btn-close-foot svg,
button.portal-cal-btn-close-foot svg {
  stroke: #ffffff !important;
  color: #ffffff !important;
  flex: none !important;
}

#fcpec-portal .portal-cal-btn-close-foot:hover,
.portal-cal-btn-close-foot:hover,
button.portal-cal-btn-close-foot:hover {
  background: #B91C1C !important;
  border-color: #FCA5A5 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 5px 16px rgba(220, 38, 38, 0.65) !important;
}

/* Responsive Modal */
@media (max-width: 1024px) {
  .portal-cal-box {
    width: 98%;
    height: 96vh;
    border-radius: 14px;
  }
  .portal-cal-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
  }
  .portal-cal-controls {
    width: 100%;
    justify-content: space-between;
  }
  .portal-cal-view-modes {
    width: auto;
    overflow-x: auto;
  }
  .portal-cal-body.mode-dual {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }
  .portal-cal-body.mode-dual .portal-cal-pane {
    height: 600px;
    flex: none;
  }
}

@media (max-width: 640px) {
  .portal-cal-modal {
    padding: 8px;
  }
  .portal-cal-box {
    width: 100%;
    height: 98vh;
    border-radius: 12px;
  }
  .portal-cal-h2 {
    font-size: 17px;
  }
  .portal-cal-tab {
    padding: 6px 10px;
    font-size: 11.5px;
  }
  .portal-cal-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px 14px;
  }
  .portal-cal-foot-actions {
    justify-content: space-between;
  }
}

/* ==========================================================================
   SECCIÓ 7: ENLLAÇOS D'INTERÈS I PORTALS OFICIALS
   ========================================================================== */
.portal-links {
  background: #0B1747;
  color: #fff;
  padding: 85px 0 95px;
  position: relative;
  overflow: hidden;
  border-top: 2px solid rgba(252, 216, 12, 0.35);
}

.portal-links .band {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.portal-links-head {
  max-width: 840px;
  margin: 0 auto 50px;
  text-align: center;
}

.portal-links-head .kick {
  color: var(--y);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 10px;
}

.portal-links-head h2 {
  font-family: var(--slab);
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
  margin: 0 0 16px;
}

.portal-links-head .lead {
  font-size: clamp(16px, 1.8vw, 18px);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin: 0 auto;
}

.portal-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.portal-link-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none !important;
  color: #fff !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
              background 0.25s ease, 
              border-color 0.25s ease, 
              box-shadow 0.25s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.portal-link-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(252, 216, 12, 0.6);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

.link-card-thumb {
  position: relative;
  height: 140px;
  background: #060e26;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.link-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.link-card-thumb.logo-thumb {
  background: #ffffff;
  padding: 16px;
}

.link-card-thumb.logo-thumb img {
  width: auto;
  height: auto;
  max-width: 82%;
  max-height: 92px;
  object-fit: contain;
}

.portal-link-card:hover .link-card-thumb img {
  transform: scale(1.05);
}

.link-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(11, 23, 71, 0.88);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.link-card-badge.gencat {
  background: rgba(218, 18, 26, 0.92);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.link-card-badge.fepyc {
  background: rgba(34, 64, 159, 0.92);
  color: #fff;
}

.link-card-badge.gesf {
  background: rgba(252, 216, 12, 0.95);
  color: #0E0E0E;
  font-weight: 800;
}

.link-card-badge.insta {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
}

.link-card-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.link-card-sub {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--y);
  margin-bottom: 5px;
}

.link-card-body h3 {
  font-family: var(--slab);
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px;
  line-height: 1.25;
}

.link-card-body p {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.74);
  margin: 0 0 16px;
  flex: 1;
}

.link-card-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--y);
  margin-top: auto;
  transition: gap 0.2s ease, color 0.2s ease;
}

.portal-link-card:hover .link-card-action {
  gap: 10px;
  color: #ffffff;
}

@media (max-width: 900px) {
  .portal-links {
    padding: 65px 0 75px;
  }
  .portal-links-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .portal-links {
    padding: 50px 0 60px;
  }
  .portal-links-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .link-card-thumb {
    height: 125px;
  }
}

