/* ============================================================
   FORTALNET — CSS per a la plantilla d'Elementor
   Enganxa aquest codi a:
   Aparença → Personalitza → CSS addicional
   (o a Elementor → Eines → Custom Code)
   ============================================================ */

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { background: #050E17; }

/* ---------- Utilitats ---------- */
.fn-gradient {
  background: linear-gradient(90deg, #1AE5FF 0%, #6FF3FF 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.fn-kicker {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px; font-weight: 700; letter-spacing: .18em;
  color: #1AE5FF; margin: 0 0 16px !important;
}
.fn-section-title { margin: 0 0 18px !important; }
.fn-section-lead { max-width: 720px; margin: 0 !important; }
.fn-heading-center { text-align: center; margin-bottom: 60px !important; }
.fn-heading-center .fn-section-lead { margin-left: auto !important; margin-right: auto !important; }
.fn-lead { max-width: 560px; margin: 0 0 30px !important; }
p { margin-top: 0; }

/* Elementor Pro form inside the original HTML contact card. */
.contacte-form-wrap .elementor-widget-form,
.contacte-form-wrap .elementor-form {
  width: 100%;
}
.contacte-form-wrap .elementor-form {
  display: grid;
  gap: 20px;
}
.contacte-form-wrap .elementor-field-group {
  margin: 0;
}
.contacte-form-wrap .elementor-field-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  color: #FFFFFF;
}
.contacte-form-wrap .elementor-field,
.contacte-form-wrap .elementor-select-wrapper select {
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: .92rem;
  color: #FFFFFF;
  background: #0B192C;
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 8px;
  padding: 13px 15px;
  outline: none;
}
.contacte-form-wrap .elementor-field:focus,
.contacte-form-wrap .elementor-select-wrapper select:focus {
  border-color: #1AE5FF;
  box-shadow: 0 0 0 3px rgba(26, 229, 255, .12), 0 0 18px rgba(26, 229, 255, .45);
}
.contacte-form-wrap .elementor-button {
  width: 100%;
  font-family: 'Space Grotesk', sans-serif;
  background: #1AE5FF;
  color: #04121B;
  border-radius: 8px;
  box-shadow: 0 0 22px rgba(26, 229, 255, .45);
}
.contacte-form-wrap .elementor-message {
  margin: 0;
  color: #1AE5FF;
  text-align: center;
}

/* ---------- Header ---------- */
.fn-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 76px;
  background: rgba(5, 14, 23, .78) !important;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(148, 163, 184, .14);
  transition: background .3s ease, box-shadow .3s ease;
}
body.scrolled .fn-header, .fn-header.scrolled {
  background: rgba(5, 14, 23, .96) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .35);
}
.fn-logo-img { width: auto !important; height: 40px !important; }
.fn-logo-img img { height: 40px !important; width: auto !important; display: block; }
.fn-navlink { color: #94A3B8; transition: color .3s ease; }
.fn-navitem:hover .fn-navlink { color: #FFFFFF; }
.fn-menu-toggle {
  display: none; cursor: pointer; color: #FFFFFF;
  font-family: 'Space Grotesk', sans-serif; font-size: 24px; line-height: 1;
  padding: 6px 10px; border-radius: 8px;
}
.fn-header-cta .elementor-button {
  box-shadow: 0 0 22px rgba(26, 229, 255, .45); transition: .3s ease;
}
.fn-header-cta .elementor-button:hover {
  transform: translateY(-2px); box-shadow: 0 0 34px #1AE5FF;
}
.fn-btn .elementor-button { transition: .3s ease; font-family: 'Space Grotesk', sans-serif; }
.fn-btn-primary .elementor-button { box-shadow: 0 0 22px rgba(26, 229, 255, .45); }
.fn-btn-primary .elementor-button:hover {
  transform: translateY(-2px); box-shadow: 0 0 34px #1AE5FF;
}
.fn-btn-outline .elementor-button:hover {
  background: rgba(26, 229, 255, .12) !important;
  transform: translateY(-2px); box-shadow: 0 0 22px rgba(26, 229, 255, .45);
}

/* ---------- Hero ---------- */
.fn-hero { position: relative; overflow: hidden; }
.fn-hero::before {
  content: ''; position: absolute; top: -20%; right: -10%;
  width: 720px; height: 720px; pointer-events: none;
  background: radial-gradient(circle, rgba(26, 229, 255, .10) 0%, transparent 65%);
}
.fn-hero-inner { position: relative; z-index: 1; }
.fn-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(26, 229, 255, .12); border: 1px solid rgba(26, 229, 255, .35);
  padding: 7px 14px; border-radius: 50px; margin-bottom: 26px !important;
}
.fn-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #1AE5FF;
  box-shadow: 0 0 10px #1AE5FF; display: inline-block;
  animation: fn-blink 2s infinite;
}
.fn-h1 { letter-spacing: -.03em; margin: 0 0 24px !important; }
.fn-cta-row { flex-wrap: wrap; margin-bottom: 40px !important; }
.fn-trust { display: flex; align-items: center; gap: 14px; margin: 0 !important; }
.fn-avatars { display: inline-flex; }
.fn-avatars i {
  width: 32px; height: 32px; margin-left: -8px; border-radius: 50%;
  display: grid; place-items: center; font-style: normal;
  font-family: 'Space Grotesk', sans-serif; font-size: 12px; font-weight: 700;
  color: #04121B; background: #1AE5FF; border: 2px solid #050E17;
}
.fn-avatars i:first-child { margin-left: 0; }
.fn-avatars i:nth-child(2) { background: #6FF3FF; }
.fn-avatars i:nth-child(3) { background: #0B192C; color: #1AE5FF; border-color: #1AE5FF; }

/* Gràfic abstracte */
.fn-visual { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1 / 1; }
.fn-visual::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(26, 229, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 229, 255, .06) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: radial-gradient(circle, #000 40%, transparent 72%);
  mask-image: radial-gradient(circle, #000 40%, transparent 72%);
}
.fn-orbit { position: absolute; border: 1px solid rgba(26, 229, 255, .35); border-radius: 50%; }
.fn-orbit-1 { width: 55%; height: 55%; border-style: dashed; animation: fn-spin 18s linear infinite; }
.fn-orbit-2 { width: 78%; height: 78%; border-color: rgba(26, 229, 255, .18); animation: fn-spin 26s linear infinite reverse; }
.fn-orbit-3 { width: 100%; height: 100%; border-color: rgba(26, 229, 255, .10); }
.fn-core {
  position: relative; width: 38%; height: 38%; border-radius: 28px;
  background: linear-gradient(145deg, rgba(26, 229, 255, .14), rgba(11, 25, 44, .9));
  border: 1px solid #1AE5FF; box-shadow: 0 0 60px rgba(26, 229, 255, .45), inset 0 0 30px rgba(26, 229, 255, .12);
  animation: fn-float 5s ease-in-out infinite;
}
.fn-core-img img { width: 56% !important; height: 56% !important; object-fit: contain; margin: auto; }
.fn-node {
  position: absolute; width: 9px; height: 9px; border-radius: 50%;
  background: #1AE5FF; box-shadow: 0 0 14px #1AE5FF;
}
.fn-node-1 { top: 24%; left: 26%; animation: fn-float 4s ease-in-out infinite; }
.fn-node-2 { top: 20%; right: 24%; animation: fn-float 5s ease-in-out infinite reverse; }
.fn-node-3 { bottom: 26%; left: 22%; animation: fn-float 6s ease-in-out infinite; }
.fn-node-4 { bottom: 22%; right: 28%; animation: fn-float 4.5s ease-in-out infinite reverse; }
.fn-badge {
  position: absolute; background: rgba(11, 25, 44, .92);
  border: 1px solid rgba(26, 229, 255, .35); border-radius: 10px;
  padding: 10px 14px; box-shadow: 0 8px 30px rgba(0, 0, 0, .4);
  backdrop-filter: blur(8px);
}
.fn-badge-top { top: 14%; right: -2%; animation: fn-float 5s ease-in-out infinite; }
.fn-badge-bottom { bottom: 14%; left: -4%; animation: fn-float 6s ease-in-out infinite reverse; }
.fn-badge-ic {
  width: 28px; height: 28px; flex: 0 0 28px; border-radius: 7px;
  display: grid; place-items: center; background: #1AE5FF; color: #04121B;
  font-weight: 700; font-family: 'Space Grotesk', sans-serif;
}
.fn-pulse { animation: fn-blink 1.8s infinite; }
.fn-badge-txt p { margin: 0 !important; line-height: 1.35 !important; }
.fn-badge-txt strong { color: #FFFFFF; font-family: 'Space Grotesk', sans-serif; font-size: 13px; }
.fn-badge-txt small { color: #94A3B8; font-size: 11px; }

/* ---------- Estadístiques ---------- */
.fn-stats { position: relative; border-top: 1px solid rgba(148, 163, 184, .14); border-bottom: 1px solid rgba(148, 163, 184, .14); }
.fn-stats::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(26, 229, 255, .03), rgba(26, 229, 255, .08), rgba(26, 229, 255, .03));
}
.fn-stats-inner { position: relative; z-index: 1; }
.fn-stat-num { text-shadow: 0 0 20px rgba(26, 229, 255, .45); margin: 0 0 8px !important; }
.fn-stat-label p { margin: 0 !important; }

/* ---------- Targetes (serveis / passos) ---------- */
.fn-grid-4 { flex-wrap: wrap; }
.fn-grid-4 > .fn-card, .fn-grid-4 > .fn-step { flex: 1 1 calc(25% - 22px); min-width: 220px; }
.fn-card, .fn-step {
  position: relative; overflow: hidden;
  background: #0B192C; border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 16px; transition: .3s ease;
}
.fn-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: #1AE5FF; box-shadow: 0 0 14px #1AE5FF;
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.fn-card:hover, .fn-step:hover {
  transform: translateY(-8px); border-color: rgba(26, 229, 255, .35);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .4), 0 0 30px rgba(26, 229, 255, .12);
}
.fn-card:hover::before { transform: scaleX(1); }
.fn-card-icon {
  width: 54px; height: 54px; flex: 0 0 54px; border-radius: 12px;
  display: grid !important; place-items: center;
  background: rgba(26, 229, 255, .12); border: 1px solid rgba(26, 229, 255, .35);
  margin-bottom: 22px !important;
}
.fn-card-title, .fn-step-title { margin: 0 0 12px !important; }
.fn-card-desc, .fn-step-desc { margin: 0 0 20px !important; }
.fn-card-link { color: #1AE5FF; font-family: 'Space Grotesk', sans-serif; font-weight: 600; }
.fn-card-link:hover { text-decoration: underline; }
.fn-step-num { opacity: .35; margin: 0 0 14px !important; }
.fn-step-desc { margin: 0 !important; }

/* ---------- Nosaltres ---------- */
.fn-visual-col { position: relative; }
.fn-panel {
  background: #050E17; border: 1px solid rgba(26, 229, 255, .35);
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 0 50px rgba(26, 229, 255, .12), 0 25px 60px rgba(0, 0, 0, .5);
}
.fn-panel-head { background: #0B192C; border-bottom: 1px solid rgba(148, 163, 184, .14); }
.fn-pdots { display: flex; gap: 6px; }
.fn-pdot { width: 9px; height: 9px; border-radius: 50%; background: #94A3B8; opacity: .4; }
.fn-pdot:first-child { background: #1AE5FF; opacity: 1; }
.fn-panel-title p { margin: 0 !important; font-family: 'Space Grotesk', sans-serif; }
.fn-panel-body { position: relative; min-height: 320px; }
.fn-panel-img img { width: 150px !important; height: 150px !important; object-fit: contain; filter: drop-shadow(0 0 25px rgba(26, 229, 255, .45)); animation: fn-float 5s ease-in-out infinite; }
.fn-scan {
  position: absolute; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #1AE5FF, transparent);
  box-shadow: 0 0 16px #1AE5FF; animation: fn-scan 3.5s ease-in-out infinite;
}
.fn-bars { width: 100%; max-width: 340px; height: 70px; margin-top: 20px; }
.fn-bar {
  flex: 1; height: var(--h, 70%); border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, #1AE5FF, rgba(26, 229, 255, .12));
  opacity: .75; animation: fn-bars 2.5s ease-in-out infinite alternate;
}
.fn-bar:nth-child(odd) { --h: 60%; }
.fn-bar:nth-child(3n) { --h: 90%; }
.fn-bar:nth-child(even) { --h: 75%; animation-delay: .5s; }
.fn-chip {
  position: absolute; z-index: 2; padding: 9px 14px; border-radius: 8px;
  background: #0E2036; border: 1px solid rgba(26, 229, 255, .35);
  box-shadow: 0 8px 25px rgba(0, 0, 0, .4); white-space: nowrap;
}
.fn-chip-1 { top: 12%; left: -5%; }
.fn-chip-2 { bottom: 10%; right: -4%; }
.fn-features { margin: 30px 0 36px !important; }
.fn-feature { display: flex; gap: 16px; align-items: flex-start; }
.fn-feature > p { margin: 0 !important; display: flex; gap: 16px; align-items: flex-start; }
.fn-check {
  flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: #1AE5FF; color: #04121B;
  font-weight: 700; box-shadow: 0 0 16px rgba(26, 229, 255, .45);
}
.fn-feature strong { display: block; color: #FFFFFF; font-family: 'Space Grotesk', sans-serif; font-size: 16px; margin-bottom: 3px; }
.fn-feature small { display: block; color: #94A3B8; font-size: 14px; line-height: 1.6; }

/* ---------- Contacte ---------- */
.fn-contact-details { margin: 34px 0 !important; }
.fn-contact-item { display: flex; align-items: center; gap: 16px; transition: transform .3s ease; }
.fn-contact-item > p { margin: 0 !important; display: flex; align-items: center; gap: 16px; }
.fn-contact-item a { display: flex; align-items: center; gap: 16px; color: inherit; }
.fn-contact-item a:hover { transform: translateX(5px); }
.fn-contact-ic {
  flex: 0 0 46px; width: 46px; height: 46px; border-radius: 10px;
  display: grid !important; place-items: center; color: #1AE5FF;
  background: rgba(26, 229, 255, .12); border: 1px solid rgba(26, 229, 255, .35); font-size: 18px;
}
.fn-contact-item small { display: block; font-size: 12px; color: #94A3B8; }
.fn-contact-item strong { display: block; color: #FFFFFF; font-family: 'Space Grotesk', sans-serif; font-size: 15px; }
.fn-conf {
  background: #050E17; border: 1px solid rgba(148, 163, 184, .14);
  border-left: 3px solid #1AE5FF; border-radius: 10px; padding: 18px 20px;
}
.fn-conf > div:last-child p { margin: 0 !important; }
.fn-form-card {
  background: #050E17 !important;
  border: 1px solid rgba(26, 229, 255, .35) !important;
  border-radius: 16px !important;
  box-shadow: 0 0 45px rgba(26, 229, 255, .12), 0 25px 60px rgba(0, 0, 0, .4);
}
/* Estil del formulari de Contact Form 7 dins de la targeta */
.fn-form-card input[type="text"], .fn-form-card input[type="email"],
.fn-form-card input[type="tel"], .fn-form-card select, .fn-form-card textarea {
  width: 100%; background: #0B192C !important; color: #FFFFFF !important;
  border: 1px solid rgba(148, 163, 184, .14) !important; border-radius: 8px !important;
  padding: 13px 15px !important; outline: none; font-family: 'Inter', sans-serif; font-size: 14px;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.fn-form-card input:focus, .fn-form-card select:focus, .fn-form-card textarea:focus {
  border-color: #1AE5FF !important;
  box-shadow: 0 0 0 3px rgba(26, 229, 255, .12), 0 0 18px rgba(26, 229, 255, .45) !important;
}
.fn-form-card textarea { min-height: 110px; resize: vertical; }
.fn-form-card label { color: #FFFFFF !important; font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 600; }
.fn-form-card input[type="submit"], .fn-form-card button[type="submit"] {
  width: 100%; background: #1AE5FF !important; color: #04121B !important;
  border: none; border-radius: 8px; padding: 15px !important;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; cursor: pointer;
  box-shadow: 0 0 22px rgba(26, 229, 255, .45); transition: .3s ease;
}
.fn-form-card input[type="submit"]:hover, .fn-form-card button[type="submit"]:hover {
  transform: translateY(-2px); box-shadow: 0 0 34px #1AE5FF;
}
.fn-form-card .wpcf7-response-output { color: #1AE5FF; border-color: rgba(26, 229, 255, .35) !important; }

/* ---------- Footer ---------- */
.fn-footer-inner { max-width: 1200px; }
.fn-foot-top { border-bottom: 1px solid rgba(148, 163, 184, .14); }
.fn-footer-logo { height: 46px !important; }
.fn-footer-logo img { height: 46px !important; }
.fn-foot-desc { max-width: 300px; margin: 18px 0 0 !important; }
.fn-foot-h { margin: 0 0 6px !important; }
.fn-foot-link { color: #94A3B8; transition: color .3s ease; }
.fn-foot-link:hover { color: #1AE5FF; }
.fn-social {
  width: 38px; height: 38px; display: inline-grid; place-items: center;
  border: 1px solid rgba(148, 163, 184, .14); border-radius: 8px;
  color: #94A3B8; font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  transition: .3s ease; margin-right: 6px;
}
.fn-social:hover { color: #1AE5FF; border-color: #1AE5FF; box-shadow: 0 0 16px rgba(26, 229, 255, .45); }
.fn-heart { color: #1AE5FF; }

/* ---------- Animacions ---------- */
@keyframes fn-blink { 50% { opacity: .35; } }
@keyframes fn-spin { to { transform: rotate(360deg); } }
@keyframes fn-float { 50% { transform: translateY(-12px); } }
@keyframes fn-scan { 0%, 100% { top: 10%; } 50% { top: 88%; } }
@keyframes fn-bars { to { transform: scaleY(.65); transform-origin: bottom; } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .fn-grid-4 > .fn-card, .fn-grid-4 > .fn-step { flex: 1 1 calc(50% - 22px); }
  .fn-hero-inner, .fn-nosaltres-inner, .fn-contact-inner { flex-wrap: wrap; }
}
@media (max-width: 900px) {
  .fn-nav { display: none !important; }
  .fn-header-cta { display: none !important; }
  .fn-menu-toggle { display: block !important; }
  .fn-nav.open {
    display: flex !important;
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #0B192C; border-bottom: 1px solid rgba(148, 163, 184, .14);
    padding: 10px 24px 20px; z-index: 1001;
  }
  .fn-nav.open .fn-navitem {
    width: 100%; padding: 12px 0;
    border-bottom: 1px solid rgba(148, 163, 184, .14);
  }
  .fn-hero-inner, .fn-nosaltres-inner, .fn-contact-inner { flex-direction: column !important; }
  .fn-visual-col { max-width: 560px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .fn-grid-4 > .fn-card, .fn-grid-4 > .fn-step { flex: 1 1 100%; }
  .fn-stats-inner { flex-wrap: wrap; }
  .fn-stats-inner > .fn-stat { flex: 1 1 45%; margin-bottom: 24px; }
  .fn-cta-row { flex-direction: column !important; align-items: stretch !important; }
  .fn-badge-top { right: 0; }
  .fn-badge-bottom { left: 0; }
  .fn-chip-1 { left: 0; }
  .fn-chip-2 { right: 0; }
}
/* ---------- Pàgines legals (plantilles Elementor) ---------- */
.legal-hero-e { background: #050E17 !important; border-bottom: 1px solid rgba(148, 163, 184, .14); }
.legal-updated { color: #1AE5FF; font-size: 13px; letter-spacing: .1em; }
.legal-h1 { letter-spacing: -.03em; margin: 14px 0 16px !important; }
.legal-lead { max-width: 720px; }
.legal-main-e { background: #050E17 !important; }
.legal-nav-e {
  background: #0B192C; border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 16px; position: sticky; top: 100px; min-width: 240px;
}
.legal-toc-title { margin: 0 0 12px !important; letter-spacing: .1em; }
.legal-nav-e .elementor-widget-container a { display: block; padding: 7px 0; border-bottom: 1px solid rgba(148, 163, 184, .14); transition: color .3s; }
.legal-nav-e .elementor-widget-container a:hover { color: #1AE5FF; }
.legal-nav-e .legal-back { color: #FFFFFF !important; font-weight: 600; }
.legal-article-e { max-width: 820px; }
.legal-sec-title { border-left: 3px solid #1AE5FF; padding-left: 14px; margin: 0 0 14px !important; }
.legal-sec-body p, .legal-sec-body li { font-size: 16px; line-height: 1.7; }
.legal-sec-body ul { list-style: none; padding: 0; }
.legal-sec-body li { position: relative; padding-left: 22px; }
.legal-sec-body li::before { content: '›'; position: absolute; left: 0; color: #1AE5FF; font-weight: 700; }
.legal-sec-body a { color: #1AE5FF; text-decoration: underline; }
.legal-sec-body strong { color: #FFFFFF; }
.legal-sec-body table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; }
.legal-sec-body th, .legal-sec-body td { padding: 11px 13px; border-bottom: 1px solid rgba(148, 163, 184, .14); text-align: left; }
.legal-sec-body th { color: #FFFFFF; background: #0B192C; font-family: 'Space Grotesk', sans-serif; }
.legal-to-top-e a { color: #1AE5FF; font-size: 13px; }
.legal-footer-e { background: #03080E !important; }
.legal-foot-links .elementor-widget-container a { color: #94A3B8; margin-right: 24px; }
.legal-foot-links .elementor-widget-container a:hover { color: #1AE5FF; }

@media (max-width: 900px) {
  .legal-main-e > .elementor-container { flex-direction: column !important; }
  .legal-nav-e { position: static; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
