/* =========================================================
   TEMPiA — Estil base inspirat en Simpl-IA (versió clara)
   Refactorització 2025-10
   ========================================================= */

/* ------------------------------
   PALETA GLOBAL
--------------------------------*/
:root {
  --color-bg: #FEFFFE;           /* Fons base */
  --color-bg-alt: #E7F7FF;       /* Fons seccions alternes */
  --color-text: #020202;         /* Text principal */
  --color-text-muted: #696A6B;   /* Text secundari */
  --color-primary: #1E38A0;      /* Persian Blue */
  --color-secondary: #7A52CD;    /* Fuchsia Blue */
  --color-accent: #CD8250;       /* Raw Sienna (petits detalls) */
  --color-white: #FFFFFF;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-soft: 0 10px 25px rgba(0,0,0,0.08);
  --shadow-hover: 0 18px 35px rgba(0,0,0,0.12);
}

/* ------------------------------
   RESETEIG BÀSIC
--------------------------------*/
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Montserrat', system-ui, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  scroll-behavior: smooth;
}
img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ------------------------------
   UTILITATS GLOBALS
--------------------------------*/
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.flex-center { display: flex; align-items: center; justify-content: center; }

.mt-4 { 
  margin-top: 1rem; 
  text-align: justify; 
}
.mt-8 { 
  margin-top: 2rem; 
  text-align: justify;
}
.mb-4 { margin-bottom: 1rem; text-align: justify; 
}
.mb-8 { margin-bottom: 2rem; text-align: justify; 
}

.px-4 { padding-inline: 1rem; }
.py-8 { padding-block: 2rem; }

/* ------------------------------
   CONTENIDOR GLOBAL
--------------------------------*/
.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ------------------------------
   HERO
--------------------------------*/
.hero {
  width: 100%;
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-secondary) 25%,
    var(--color-primary) 50%,
    var(--color-secondary) 75%,
    var(--color-primary) 100%
  );
  background-size: 400% 400%;
  animation: gradientWave 10s ease infinite;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}
.hero__content {
  background: var(--color-white);
  color: var(--color-text);
  padding: 3rem 4rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  text-align: center;
  max-width: 720px;
}
.hero__content h1 {
  font-size: 2.8rem;
  line-height: 1.2;
  margin-bottom: 1.2rem;
}
.hero__content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--color-text-muted);
}
/* Animació gradient hero */
@keyframes gradientWave {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
/* ------------------------------
   BOTONS
--------------------------------*/
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
  border: none;
  border-radius: 50px;
  padding: 1rem 2.5rem;
  margin-top: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary {
  background-color: var(--color-white);
  color: var(--color-primary);
  font-weight: 700;
}

.btn-primary:hover {
  background-color: var(--color-white);
  color: var(--color-secondary);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
/* ------------------------------
   SECCIONS
--------------------------------*/
.section {
  padding: 80px 24px;
}
.section--alt {
  background: var(--color-bg-alt);
}
.section h2 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--color-primary);
}
.section p.subtitle {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
  color: var(--color-text-muted);
  font-size: 1.1rem;
}

/* Variants de subtitle */
.subtitle--wide {
  max-width: 800px;
  margin: 1.5rem auto 3rem;
}

.subtitle--medium {
  max-width: 700px;
  margin: 1.5rem auto 2rem;
}

/* ------------------------------
   GRID I TARGETES
--------------------------------*/
.grid--3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 992px) {
  .grid--3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .grid--3 { grid-template-columns: 1fr; }
}

.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 2rem;
  transition: all 0.3s ease;
  text-align: left;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
}
.card p {
  color: var(--color-text-muted);
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* ------------------------------
   ICONES I INTERACCIÓ
--------------------------------*/
.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
}
.card:hover .service-icon {
  background: var(--color-primary);
  color: var(--color-white);
  transform: scale(1.05) rotate(5deg);
}
/* ------------------------------
   ANIMACIONS (reveal) — DESACTIVADES temporalment
--------------------------------*/
.reveal {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: none;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 1 !important;
  transform: translateX(0) !important;
  transition: none;
}
.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 1 !important;
  transform: translateX(0) !important;
  transition: none;
}
.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* ------------------------------
   CTA FINAL
--------------------------------*/
.section--cta {
  background: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  padding: 80px 24px;
}
.section--cta h2 {
  color: var(--color-white);
  margin-bottom: 1rem;
}
.section--cta p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}
/* Botons dins de sections fosques (CTA final) - mateix estil */
.section--cta .btn-primary {
  background-color: var(--color-white);
  color: var(--color-primary);
}

.section--cta .btn-primary:hover {
  background-color: rgba(255, 255, 255, 0.95);
  color: var(--color-secondary);
}

/* --- Control de colors de text per seccions --- */
main {
  color: var(--color-text);
}

/* HERO: text blanc sobre gradient */
.hero {
  color: var(--color-white);
}

.hero__content,
.hero__content h1,
.hero__content p {
  color: var(--color-white);
}

/* CTA final: text blanc sobre fons blau */
.section--cta,
.section--cta h2,
.section--cta p {
  color: var(--color-white);
}

/* Targetes i cards: text fosc */
.card h3 {
  color: var(--color-primary);
}

.card p {
  color: var(--color-text-muted);
}/* ------------------------------
   HEADER I NAVEGACIÓ
--------------------------------*/
header {
  background: var(--color-white);  /* ← Canviat de primary a white */
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: relative;  /* ← Canviat de sticky a relative */
  top: auto;  /* ← Elimina el top: 0 */
  z-index: 1000;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 60%;
  margin: 0 auto;
  font-size: x-large;
}

.logo {
  display: flex;
  align-items: center;
}

.logo__img {
  height: 6rem;
  width: auto;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__menu a {
  color: var(--color-primary);  /* ← Canviat de white a primary (text fosc) */
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav__menu a:hover {
  color: var(--color-secondary);  /* ← Canviat de accent a secondary */
}

.lang-switch {
  color: var(--color-primary);  /* ← Canviat de white a primary */
  font-size: large;
}

.lang-switch a {
  color: var(--color-primary);  /* ← Canviat de white a primary */
  text-decoration: none;
  font-weight: 600;
}

.lang-switch a:hover {
  color: var(--color-secondary);  /* ← Canviat de accent a secondary */
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}

.nav__bar {
  width: 25px;
  height: 3px;
  background: var(--color-primary);  /* ← Canviat de white a primary */
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Responsive menu */
@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }
  
  .nav__menu {
    position: fixed;
    top: 60px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 60px);
    background: var(--color-white);  /* ← Canviat de primary a white */
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    transition: right 0.3s ease;
    box-shadow: -2px 0 8px rgba(0,0,0,0.1);
  }
  
  .nav__menu.active {
    right: 0;
  }
}

/* Responsive menu */
@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }
  
  .nav__menu {
    position: fixed;
    top: 60px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 60px);
    background: var(--color-primary);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    transition: right 0.3s ease;
    box-shadow: -2px 0 8px rgba(0,0,0,0.1);
  }
  
  .nav__menu.active {
    right: 0;
  }
}

/* ------------------------------
   FOOTER
--------------------------------*/
.footer {
  background: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  opacity: 0.9;
}
/* =========================================================
   FORMULARI DE CONTACTE (UX modernitzada)
   ========================================================= */

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 2px solid #E0E0E0;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background: var(--color-white);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(30, 56, 160, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-muted);
  opacity: 0.6;
}

/* Validació visual */
.form-group input.valid,
.form-group textarea.valid {
  border-color: #10B981;
  padding-right: 2.5rem;
}

.form-group input.invalid,
.form-group textarea.invalid {
  border-color: #EF4444;
  padding-right: 2.5rem;
}

.form-group .validation-icon {
  position: absolute;
  right: 1rem;
  top: 2.6rem;
  font-size: 1.2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.form-group input.valid ~ .validation-icon,
.form-group textarea.valid ~ .validation-icon {
  opacity: 1;
  color: #10B981;
}

.form-group input.invalid ~ .validation-icon,
.form-group textarea.invalid ~ .validation-icon {
  opacity: 1;
  color: #EF4444;
}

.form-hint {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
  display: block;
}

.form-error {
  font-size: 0.85rem;
  color: #EF4444;
  margin-top: 0.25rem;
  display: none;
}

.form-group input.invalid ~ .form-error,
.form-group textarea.invalid ~ .form-error {
  display: block;
}

/* Botó submit millorat */
.btn-submit {
  position: relative;
  min-width: 160px;
  overflow: hidden;
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.btn-submit.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--color-white);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

.btn-submit.loading span {
  opacity: 0;
}

/* Missatges flash */
.flash-message {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.flash-message.success {
  background: #D1FAE5;
  color: #065F46;
  border-left: 4px solid #10B981;
}

.flash-message.error {
  background: #FEE2E2;
  color: #991B1B;
  border-left: 4px solid #EF4444;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-form {
    max-width: 100%;
  }
  
  .form-group input,
  .form-group textarea {
    font-size: 16px; /* Evita zoom automàtic iOS */
  }
}
/* =========================================================
   CONFIRMACIÓ FORMULARI CONTACTE
   ========================================================= */

.contact-confirmation {
  max-width: 600px;
  margin: 0 auto;
  padding: 3rem 2rem;
  text-align: center;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  animation: fadeInUp 0.5s ease-out;
}

.confirmation-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: var(--color-white);
  font-size: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  box-shadow: 0 8px 20px rgba(30, 56, 160, 0.3);
}

.error-icon {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  box-shadow: 0 8px 20px rgba(231, 76, 60, 0.3);
}

.confirmation-title {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.confirmation-message {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Animació d'entrada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Estat loading del botó millorat */
.btn-primary.loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.btn-primary.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid var(--color-white);
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.6s linear infinite;
}

/* =========================================================
   PÀGINA SERVEIS - PRICING CARDS
   ========================================================= */

/* Grid específic per pricing */
.pricing-grid {
  align-items: stretch;
}

/* Targeta de preu base */
.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 550px;
}

/* Nom del pla */
.pricing-card__name {
  color: var(--color-primary);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.pricing-card__name--recommended {
  color: var(--color-secondary);
  margin-top: 1rem;
}

/* Objectiu del pla */
.pricing-card__goal {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* Contenidor de preus */
.pricing-card__prices {
  margin: 2rem 0;
}

/* Label setup */
.pricing-card__setup-label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

/* Preu setup */
.pricing-card__setup-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.pricing-card__setup-price--recommended {
  color: var(--color-secondary);
}

/* Label mensual */
.pricing-card__monthly-label {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-top: 1rem;
}

/* Preu mensual */
.pricing-card__monthly-price {
  font-size: 1.5rem;
  color: var(--color-text);
  font-weight: 700;
}

/* Llista de característiques */
.pricing-card__features {
  text-align: left;
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  flex-grow: 1;
}

.pricing-card__features li {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.95rem;
  line-height: 1.5;
}

.pricing-card__feature--bold {
  font-weight: 600;
}

/* Checkmark */
.pricing-card__checkmark {
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

/* CTA del pla */
.pricing-card__cta {
  width: 100%;
  margin-top: auto;
  text-align: center;
}

.pricing-card__cta--recommended {
  background: var(--color-secondary);
}

.pricing-card__cta--recommended:hover {
  background: var(--color-primary);
}

/* Targeta recomanada */
.pricing-card--recommended {
  border: 3px solid var(--color-secondary);
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(122, 82, 205, 0.2);
}

/* Badge "Recomanat" */
.pricing-card__badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-secondary);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(122, 82, 205, 0.3);
}

/* Responsive pricing cards */
@media (max-width: 992px) {
  .pricing-card--recommended {
    transform: scale(1);
  }
  
  .pricing-card {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .pricing-card__name {
    font-size: 1.3rem;
  }
  
  .pricing-card__setup-price {
    font-size: 1.8rem;
  }
  
  .pricing-card__monthly-price {
    font-size: 1.3rem;
  }
}

/* =========================================================
   PÀGINA SERVEIS - GARANTIES
   ========================================================= */

.guarantee__title {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

/* =========================================================
   PÀGINA SERVEIS - EARLY ADOPTER
   ========================================================= */

.early-adopter-box {
  background: var(--color-primary);
  color: white;
  padding: 2rem;
  border-radius: var(--radius-md);
  max-width: 600px;
  margin: 0 auto;
  box-shadow: var(--shadow-soft);
}

.early-adopter-box__discount {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.early-adopter-box__conditions {
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.5;
}

/* =========================================================
   FI DEL FITXER
   ========================================================= */
/* =========================================================
   PÀGINA HOME - ESTILS NOUS
   ========================================================= */

/* ------------------------------
   GRID 2 COLUMNES
--------------------------------*/
.grid--2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

@media (max-width: 720px) {
  .grid--2 { 
    grid-template-columns: 1fr; 
  }
}

/* ------------------------------
   GRID 4 COLUMNES
--------------------------------*/
.grid--4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 992px) {
  .grid--4 { 
    grid-template-columns: repeat(2, 1fr); 
  }
}

@media (max-width: 720px) {
  .grid--4 { 
    grid-template-columns: 1fr; 
  }
}

/* ------------------------------
   PROBLEM CARDS (El Problema)
--------------------------------*/
.problem-card {
  text-align: center;
  padding: 2.5rem 2rem;
  border-left: 4px solid var(--color-secondary);
}

.problem-card__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.problem-card__text {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-text);
  font-weight: 500;
}

/* ------------------------------
   SOLUTION CARDS (La Solució)
--------------------------------*/
.solution-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.solution-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-weight: 700;
}

.solution-card__title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.solution-card__text {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* ------------------------------
   EXAMPLE CARDS (Exemples d'ús)
--------------------------------*/
.example-card {
  padding: 2rem;
}

.example-card__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.example-card__title {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
}

.example-card__text {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.example-card__footer {
  text-align: center;
  margin-top: 3rem;
  font-size: 1.05rem;
  color: var(--color-text-muted);
  font-style: italic;
}

/* ------------------------------
   HOW CARDS (Com funciona)
--------------------------------*/
.how-card {
  text-align: center;
  padding: 2.5rem 2rem;
  position: relative;
}

.how-card__number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: var(--color-white);
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 4px 12px rgba(30, 56, 160, 0.2);
}

.how-card__title {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
}

.how-card__text {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ------------------------------
   WHY CARDS (Per què TEMPiA)
--------------------------------*/
.why-card {
  padding: 2rem;
}

.why-card__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.why-card__title {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
}

.why-card__text {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ------------------------------
   CTA BUTTONS (Dos botons al CTA final)
--------------------------------*/
.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn-cta {
  min-width: 200px;
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

.btn-secondary:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
  transform: translateY(-2px);
}

@media (max-width: 720px) {
  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-cta {
    width: 100%;
  }
}

/* =========================================================
   FI DELS ESTILS HOME
   ========================================================= */

   /* =========================================================
   [TEMPiA 2025-11-06] — Ajustos Toggle + Hero Responsive
   ========================================================= */

/* === Menú mòbil (toggle funcional) === */
.nav__menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  transition: right 0.3s ease;
}

@media (max-width: 768px) {
  .nav__menu {
    position: fixed;
    top: 60px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 60px);
    background: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    transition: right 0.3s ease;
    box-shadow: -2px 0 8px rgba(0,0,0,0.1);
    z-index: 999;
  }

  .nav__menu.open {
    right: 0;
  }

  body.nav-open {
    overflow: hidden;
  }
}

/* === Hero (espai lateral en mòbil) === */
@media (max-width: 720px) {
  .hero__content {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}
/* =========================================================
   FOOTER MODULAR
   ========================================================= */

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  padding: 4rem 0 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-tagline {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.footer-contact {
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-contact a {
  color: var(--color-white);
  text-decoration: none;
  transition: opacity 0.3s;
}

.footer-contact a:hover {
  opacity: 0.8;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: var(--color-white);
  transition: all 0.3s;
}

.footer-social a:hover {
  background: var(--color-white);
  color: var(--color-primary);
  transform: translateY(-3px);
}

.footer-bottom {
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Responsive */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* =========================================================
   FOOTER SIMPLE (alternativa)
   ========================================================= */

.footer-simple {
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.footer-main {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-sep {
  opacity: 0.5;
}

.footer-legal {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.9rem;
}

.footer-legal a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  transition: opacity 0.3s;
}

.footer-legal a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-copy {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* =========================================================
   FOOTER MODULAR - VERSIÓ FINAL
   ========================================================= */

/* Estil base del footer */
.footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  padding: 4rem 0 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-tagline {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.footer-contact {
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-contact a {
  color: var(--color-white);
  text-decoration: none;
  transition: opacity 0.3s;
}

.footer-contact a:hover {
  opacity: 0.8;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

/* XARXES SOCIALS DINS DE LA LLISTA */
.footer-social-item {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.footer-social-label {
  display: block;
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: var(--color-white);
  transition: all 0.3s ease;
  padding: 8px;
}

.footer-social a:hover {
  background: var(--color-white);
  color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(255,255,255,0.3);
  text-decoration: none;
}

.footer-social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-bottom {
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.8;
}
.footer-social {
    justify-content: center;
  }

/* Responsive */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  
  .footer-col:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-col:last-child {
    grid-column: auto;
  }
  
  
}
/* =========================================================
   HEADER I NAVEGACIÓ - VERSIÓ RESPONSIVE MILLORADA
   ========================================================= */

header {
  background: var(--color-white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: relative;
  top: auto;
  z-index: 1000;
  padding: 0.5rem 0; /* Afegit padding vertical */
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px; /* Canviat de 60% a px fixos */
  margin: 0 auto;
  padding: 0 1.5rem;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0; /* Evita que el logo es comprimeixi */
  min-width: 120px; /* Mida mínima del logo */
}

.logo__img {
  height: auto;
  width: 100%;
  max-width: 180px; /* Mida màxima en desktop */
  max-height: 60px; /* Altura màxima */
  object-fit: contain;
  transition: max-width 0.3s ease;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 1.5rem; /* Reduït de 2rem */
  flex-wrap: nowrap;
  font-size: 1rem; /* Mida de font més petita */
}

.nav__menu a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  white-space: nowrap; /* Evita que els enllaços es trenquin */
}

.nav__menu a:hover {
  color: var(--color-secondary);
}

.lang-switch {
  color: var(--color-primary);
  font-size: 0.9rem; /* Reduït */
  white-space: nowrap;
}

.lang-switch a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}

.lang-switch a:hover {
  color: var(--color-secondary);
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  padding: 0.5rem;
  z-index: 1001;
}

.nav__bar {
  width: 25px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Responsive - Tablets (768px - 992px) */
@media (max-width: 992px) {
  .nav {
    gap: 1rem;
  }
  
  .logo__img {
    max-width: 150px;
    max-height: 50px;
  }
  
  .nav__menu {
    gap: 1rem;
    font-size: 0.9rem;
  }
}

/* Responsive - Toggle menu (menys de 768px) */
@media (max-width: 768px) {
  header {
    padding: 0.75rem 0;
  }
  
  .nav {
    padding: 0 1rem;
  }
  
  .logo__img {
    max-width: 140px;
    max-height: 45px;
  }
  
  .nav__toggle {
    display: flex;
  }
  
  .nav__menu {
    position: fixed;
    top: 70px; /* Ajustat per altura del header */
    right: -100%;
    width: 280px;
    height: calc(100vh - 70px);
    background: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    gap: 1.5rem;
    transition: right 0.3s ease;
    box-shadow: -2px 0 8px rgba(0,0,0,0.1);
    z-index: 999;
    font-size: 1.1rem;
    overflow-y: auto;
  }
  
  .nav__menu.open {
    right: 0;
  }
  
  .nav__menu a {
    width: 100%;
    padding: 0.5rem 0;
  }
  
  .lang-switch {
    width: 100%;
    padding: 0.5rem 0;
    border-top: 1px solid rgba(0,0,0,0.1);
    margin-top: 1rem;
  }
  
  body.nav-open {
    overflow: hidden;
  }
}

/* Responsive - Mòbils petits (menys de 480px) */
@media (max-width: 480px) {
  .logo__img {
    max-width: 120px;
    max-height: 40px;
  }
  
  .nav__menu {
    width: 250px;
  }
}

/* =========================================================
   FI HEADER RESPONSIVE
   ========================================================= */
/* =========================================================
   HEADER I NAVEGACIÓ - LOGO MÉS GRAN
   ========================================================= */

header {
  background: var(--color-white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: relative;
  top: auto;
  z-index: 1000;
  padding: 0.75rem 0; /* Més padding per acomodar logo més gran */
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 150px; /* Augmentat de 120px */
}

.logo__img {
  height: auto;
  width: 100%;
  max-width: 260px; /* Augmentat de 180px */
  max-height: 95px; /* Augmentat de 60px */
  object-fit: contain;
  transition: max-width 0.3s ease;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: nowrap;
  font-size: 1.5rem;
}

.nav__menu a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.nav__menu a:hover {
  color: var(--color-secondary);
}

.lang-switch {
  color: var(--color-primary);
  font-size: 0.9rem;
  white-space: nowrap;
}

.lang-switch a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}

.lang-switch a:hover {
  color: var(--color-secondary);
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  padding: 0.5rem;
  z-index: 1001;
}

.nav__bar {
  width: 25px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Responsive - Tablets (768px - 992px) */
@media (max-width: 992px) {
  .nav {
    gap: 1rem;
  }
  
  .logo__img {
    max-width: 225px; /* Augmentat de 150px */
    max-height: 70px; /* Augmentat de 50px */
  }
  
  .nav__menu {
    gap: 1rem;
    font-size: 1rem;
  }
}

/* Responsive - Toggle menu (menys de 768px) */
@media (max-width: 768px) {
  header {
    padding: 0.75rem 0;
  }
  
  .nav {
    padding: 0 1rem;
  }
  
  .logo__img {
    max-width: 160px; /* Augmentat de 140px */
    max-height: 55px; /* Augmentat de 45px */
  }
  
  .nav__toggle {
    display: flex;
  }
  
  .nav__menu {
    position: fixed;
    top: 75px; /* Ajustat per header més alt */
    right: -100%;
    width: 280px;
    height: calc(100vh - 75px);
    background: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    gap: 1.5rem;
    transition: right 0.3s ease;
    box-shadow: -2px 0 8px rgba(0,0,0,0.1);
    z-index: 999;
    font-size: 1.1rem;
    overflow-y: auto;
  }
  
  .nav__menu.open {
    right: 0;
  }
  
  .nav__menu a {
    width: 100%;
    padding: 0.5rem 0;
  }
  
  .lang-switch {
    width: 100%;
    padding: 0.5rem 0;
    border-top: 1px solid rgba(0,0,0,0.1);
    margin-top: 1rem;
  }
  
  body.nav-open {
    overflow: hidden;
  }
}

/* Responsive - Mòbils petits (menys de 480px) */
@media (max-width: 480px) {
  .logo__img {
    max-width: 180px; /* Augmentat de 120px */
    max-height: 65px; /* Augmentat de 40px */
  }
  
  .nav__menu {
    width: 250px;
  }
}

/* =========================================================
   FI HEADER RESPONSIVE
   ========================================================= */

   /* =========================================================
   FAQ ACORDIÓ
   ========================================================= */

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-white);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: var(--shadow-hover);
}

.faq-question {
  width: 100%;
  padding: 1.5rem 2rem;
  background: transparent;
  border: none;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: var(--color-bg-alt);
}

.faq-icon {
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--color-secondary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  color: var(--color-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 2rem;
}

.faq-answer.active {
  max-height: 500px;
  padding: 0 2rem 1.5rem;
}

.faq-answer p {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}
.faq-answer {
  text-align: justify;
}

/* Responsive */
@media (max-width: 768px) {
  .faq-question {
    font-size: 1rem;
    padding: 1.25rem 1.5rem;
  }
  
  .faq-answer {
    padding: 0 1.5rem;
  }
  
  .faq-answer.active {
    padding: 0 1.5rem 1.25rem;
  }
}

/* =========================================================
   FI DEL FITXER
   ========================================================= */