/* ==========================================================================
   ECC - ENGUIXATS CATALUNYA CENTRAL
   Estils globals i disseny web d'alta gamma (Mobile-First & Desktop Responsive)
   ========================================================================== */
/* Les fonts es carreguen amb preconnect des del <head> de l'HTML per evitar bloqueig de renderitzat (Core Web Vitals) */
:root {
  /* Paleta de colors inspirada en el guix i l'arquitectura d'interiors */
  --bg-primary: #FAF9F6;
  --bg-surface: #FFFFFF;
  --bg-dark: #151A21;
  --bg-dark-surface: #1E2530;
  
  --text-dark: #1E293B;
  --text-muted: #64748B;
  --text-light: #F8FAFC;
  --text-light-muted: #94A3B8;

  --accent-gold: #C6923C;
  --accent-gold-hover: #AA7A2B;
  --accent-gold-light: rgba(198, 146, 60, 0.12);
  
  --accent-blue: #0284C7;
  --accent-green: #25D366;
  
  --border-light: #E2E8F0;
  --border-dark: #334155;

  --font-title: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
  --shadow-gold: 0 8px 25px rgba(198, 146, 60, 0.25);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Restabliment de CSS */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Contenidor universal */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Barra superior de notificació / SEO local */
.top-bar {
  background-color: var(--bg-dark);
  color: var(--text-light-muted);
  font-size: 0.875rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-dark);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-bar-item svg {
  color: var(--accent-gold);
}

.top-bar-badge {
  background: var(--accent-gold-light);
  color: var(--accent-gold);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

/* Capçalera i Navegació Sticky */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition-normal);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo img {
  height: 52px;
  width: 52px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  transition: var(--transition-fast);
}

.brand-logo:hover img {
  transform: scale(1.05);
}

.brand-title {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--bg-dark);
  letter-spacing: -0.5px;
}

.brand-name span {
  color: var(--accent-gold);
}

.brand-name .eco-e {
  color: #10B981 !important;
  font-weight: 800;
}

.brand-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--accent-gold);
  transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Botons Generals */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.6rem;
  min-height: 48px;
  border-radius: var(--radius-md);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition-normal);
  text-align: center;
  touch-action: manipulation;
}

.btn-primary {
  background-color: var(--accent-gold);
  color: #FFFFFF;
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover, .btn-primary:active {
  background-color: var(--accent-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(198, 146, 60, 0.35);
}

.btn-dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.btn-dark:hover, .btn-dark:active {
  background-color: var(--bg-dark-surface);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--bg-dark);
  border: 2px solid var(--border-light);
}

.btn-outline:hover, .btn-outline:active {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background-color: var(--accent-gold-light);
}

.btn-whatsapp {
  background-color: var(--accent-green);
  color: #FFFFFF;
}

.btn-whatsapp:hover, .btn-whatsapp:active {
  background-color: #20BA5A;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  color: var(--bg-dark);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease;
}

.mobile-toggle:active {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Backdrop del menú mòbil */
.nav-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1001;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-backdrop.active {
  display: block;
  opacity: 1;
}

/* Slide-out Drawer Mòbil */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background-color: var(--bg-surface);
  z-index: 1002;
  box-shadow: var(--shadow-lg);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-drawer.active {
  right: 0;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.mobile-drawer-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  cursor: pointer;
}

.mobile-drawer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.mobile-drawer-nav a {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.mobile-drawer-nav a svg {
  color: var(--accent-gold);
}

.mobile-drawer-footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

/* Secció Hero */
.hero {
  position: relative;
  padding: 4rem 0 5rem 0;
  background: linear-gradient(135deg, #FAF9F6 0%, #F1EFEA 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 146, 60, 0.1) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #FFFFFF;
  border: 1px solid var(--border-light);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-gold);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3rem;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 1.25rem;
}

.hero-title span {
  color: var(--accent-gold);
  position: relative;
  display: inline-block;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 90%;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-features {
  display: flex;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: var(--accent-gold-light);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.hero-feature-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
}

.hero-feature-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-image-wrapper {
  position: relative;
}

.hero-image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid #FFFFFF;
}

.hero-image-card img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.hero-floating-badge {
  position: absolute;
  bottom: 2rem;
  left: -2rem;
  background-color: #FFFFFF;
  padding: 1rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--border-light);
  max-width: 260px;
}

.hero-floating-badge img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.hero-badge-info h5 {
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-badge-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Banner de Captació Ràpida "Et Truquem Gratuitament" (CRO Lead Capture) */
.quick-callback-banner {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #AA7A2B 100%);
  color: #FFFFFF;
  padding: 2.5rem 0;
  box-shadow: var(--shadow-md);
}

.callback-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.callback-text h3 {
  color: #FFFFFF;
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
}

.callback-text p {
  font-size: 0.95rem;
  opacity: 0.9;
}

.callback-form-inline {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  max-width: 480px;
}

.callback-input {
  flex-grow: 1;
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-md);
  border: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  min-height: 48px;
}

.callback-input:focus {
  outline: 2px solid #FFFFFF;
}

/* Secció de Calculadora de Pressupost (Lead Magnet SEM) */
.calculator-section {
  padding: 5rem 0;
  background-color: var(--bg-dark);
  color: var(--text-light);
  position: relative;
}

.calculator-card {
  background-color: var(--bg-dark-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-dark);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.section-header-left h2 {
  color: #FFFFFF;
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.section-header-left p {
  color: var(--text-light-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.calc-options {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.calc-group label {
  display: block;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0.6rem;
}

.calc-select, .calc-input {
  width: 100%;
  padding: 0.9rem 1.2rem;
  min-height: 48px;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-fast);
}

.calc-select:focus, .calc-input:focus {
  outline: none;
  border-color: var(--accent-gold);
  background-color: rgba(255, 255, 255, 0.1);
}

.calc-select option {
  background-color: var(--bg-dark);
  color: #FFFFFF;
}

.calc-result-box {
  background: linear-gradient(135deg, rgba(198, 146, 60, 0.15) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(198, 146, 60, 0.3);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.calc-price-display {
  text-align: center;
  margin: 1rem 0;
}

.calc-price-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light-muted);
}

.calc-price-val {
  font-family: var(--font-title);
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--accent-gold);
  margin: 0.4rem 0;
}

.calc-note {
  font-size: 0.8rem;
  color: var(--text-light-muted);
  text-align: center;
}

/* Secció de Testimonis i Ressenyes (Social Proof per a Màxima Conversió) */
.testimonials-section {
  padding: 6rem 0;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-gold);
}

.testimonial-stars {
  color: #F59E0B;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-dark);
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--accent-gold);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-title);
}

.testimonial-info h5 {
  font-size: 0.95rem;
  font-weight: 700;
}

.testimonial-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Secció de Serveis */
.services-section {
  padding: 6rem 0;
  background-color: var(--bg-primary);
}

.section-title-center {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem auto;
}

.section-title-center .tag {
  color: var(--accent-gold);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title-center h2 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.section-title-center p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-gold-light);
}

.service-img {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-img img {
  transform: scale(1.06);
}

.service-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-title {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.service-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-features {
  list-style: none;
  margin-bottom: 1.5rem;
}

.service-features li {
  font-size: 0.875rem;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-features li svg {
  color: var(--accent-gold);
  flex-shrink: 0;
}

/* ==========================================================================
   Jerarquia de Serveis: Principals a Màquina i Secundaris
   ========================================================================== */
.services-category-header {
  margin-bottom: 2.2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}

.category-badge-main {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.category-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 780px;
  line-height: 1.5;
}

.service-card-main {
  position: relative;
  border: 1.5px solid rgba(16, 185, 129, 0.25);
}

.service-card-main:hover {
  border-color: #10B981;
}

.service-badge-machine {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: rgba(21, 26, 33, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #10B981;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(16, 185, 129, 0.4);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Bloc de Serveis Secundaris i Acabats */
.secondary-services-wrap {
  margin-top: 4.5rem;
  padding-top: 3.5rem;
  border-top: 2px dashed rgba(0, 0, 0, 0.08);
}

.category-badge-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.secondary-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
  margin-top: 1.8rem;
}

.secondary-service-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.secondary-service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-gold);
}

.secondary-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.secondary-card-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background-color: var(--accent-gold-light);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.secondary-card-header h4 {
  font-size: 1.15rem;
  color: var(--text-dark);
  font-weight: 700;
}

.secondary-service-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.4rem;
  flex-grow: 1;
}

.secondary-features {
  list-style: none;
  margin-bottom: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 1rem;
}

.secondary-features li {
  font-size: 0.85rem;
  color: var(--text-dark);
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.secondary-features li svg {
  color: var(--accent-gold);
  flex-shrink: 0;
}

/* Secció Sobre Xavier Bolea */
.about-section {
  padding: 6rem 0;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

.about-img-container {
  position: relative;
}

.about-img-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid #FFFFFF;
}

.about-img-card img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.about-experience-badge {
  position: absolute;
  top: -1.5rem;
  right: -1.5rem;
  background-color: var(--accent-gold);
  color: #FFFFFF;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-gold);
}

.about-experience-badge .num {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
}

.about-experience-badge .lbl {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.about-text h2 {
  font-size: 2.3rem;
  margin-bottom: 1.25rem;
}

.about-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.about-guarantees {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.guarantee-box {
  background-color: var(--bg-primary);
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--accent-gold);
}

.guarantee-box h4 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.guarantee-box p {
  font-size: 0.85rem;
  margin-bottom: 0;
}

/* Secció de Cobertura Geogràfica / SEO Local */
.location-section {
  padding: 5rem 0;
  background-color: var(--bg-primary);
}

.locations-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2rem;
}

.location-chip {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.location-chip:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: translateY(-2px);
}

/* Secció de Preguntes Freqüents (FAQ Accordion) */
.faq-section {
  padding: 6rem 0;
  background-color: var(--bg-surface);
}

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

.faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  min-height: 56px;
  background-color: var(--bg-surface);
  border: none;
  text-align: left;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  touch-action: manipulation;
}

.faq-question svg {
  transition: transform 0.3s ease;
  color: var(--accent-gold);
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  background-color: var(--bg-primary);
}

.faq-answer p {
  padding: 1.25rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-top: 1px solid var(--border-light);
}

/* Secció de Contacte i Formulari */
.contact-section {
  padding: 6rem 0;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-info h2 {
  color: #FFFFFF;
  font-size: 2.3rem;
  margin-bottom: 1.25rem;
}

.contact-info p {
  color: var(--text-light-muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(198, 146, 60, 0.15);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-detail-text h5 {
  color: var(--text-light-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-detail-text p, .contact-detail-text a {
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1.1rem;
}

.contact-form-card {
  background-color: var(--bg-dark-surface);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-dark);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light-muted);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  min-height: 48px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-gold);
  background-color: rgba(255, 255, 255, 0.08);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Peu de pàgina (Footer) */
.footer {
  background-color: #0E1217;
  color: var(--text-light-muted);
  padding: 4rem 0 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-light-muted);
  max-width: 320px;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-light-muted);
  padding: 0.2rem 0;
}

.footer-links a:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Floating Contact Widget per a Dispositius Mòbils (SEM Conversion Lead Magnet) */
.floating-contact-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background-color: #FFFFFF;
  padding: 0.75rem 1rem;
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  border-top: 1px solid var(--border-light);
}

.floating-contact-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

/* Toast notification */
.toast-notification {
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  left: 1.5rem;
  max-width: 400px;
  margin: 0 auto;
  background-color: var(--bg-dark);
  color: #FFFFFF;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--accent-gold);
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   ADAPTABILITAT MÒBIL COMPLETA I ESTRUCTURA RESPONSIVE (MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid, .about-grid, .calculator-card, .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-title {
    font-size: 2.6rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }

  .nav-links, .nav-actions .btn-primary {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .navbar .container {
    height: 70px;
  }

  .brand-logo img {
    height: 42px;
    width: 42px;
  }

  .brand-name {
    font-size: 1.1rem;
  }

  .brand-sub {
    font-size: 0.65rem;
  }

  .hero {
    padding: 2.5rem 0 3.5rem 0;
  }

  .hero-title {
    font-size: 2.1rem;
    line-height: 1.2;
  }

  .hero-description {
    font-size: 1rem;
    max-width: 100%;
    margin-bottom: 1.5rem;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .hero-features {
    flex-direction: column;
    gap: 1.2rem;
    padding-top: 1.5rem;
  }

  .hero-image-card img {
    height: 320px;
  }

  .hero-floating-badge {
    bottom: -1rem;
    left: 1rem;
    right: 1rem;
    max-width: none;
    padding: 0.85rem 1.2rem;
  }

  .callback-grid {
    flex-direction: column;
    align-items: stretch;
  }

  .callback-form-inline {
    flex-direction: column;
    max-width: 100%;
  }

  .calculator-section {
    padding: 3.5rem 0;
  }

  .calculator-card {
    padding: 1.5rem 1.25rem;
    gap: 2rem;
    border-radius: var(--radius-md);
  }

  .section-header-left h2 {
    font-size: 1.75rem;
  }

  .calc-result-box {
    padding: 1.5rem 1.25rem;
  }

  .calc-price-val {
    font-size: 2.6rem;
  }

  .testimonials-section {
    padding: 4rem 0;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .services-section {
    padding: 4rem 0;
  }

  .section-title-center h2 {
    font-size: 1.8rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-img {
    height: 200px;
  }

  .service-content {
    padding: 1.5rem;
  }

  .about-section {
    padding: 4rem 0;
  }

  .about-text h2 {
    font-size: 1.8rem;
  }

  .about-img-card img {
    height: 340px;
  }

  .about-experience-badge {
    top: -1rem;
    right: 0.5rem;
    padding: 0.85rem 1.1rem;
  }

  .about-experience-badge .num {
    font-size: 1.8rem;
  }

  .about-guarantees {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .faq-section {
    padding: 4rem 0;
  }

  .faq-question {
    padding: 1rem 1.2rem;
    font-size: 0.95rem;
  }

  .faq-answer p {
    padding: 1rem 1.2rem;
    font-size: 0.9rem;
  }

  .contact-section {
    padding: 4rem 0;
  }

  .contact-info h2 {
    font-size: 1.8rem;
  }

  .contact-form-card {
    padding: 1.5rem 1.25rem;
    border-radius: var(--radius-md);
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer {
    padding: 3rem 0 1.5rem 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .floating-contact-bar {
    display: block;
  }

  body {
    padding-bottom: 75px;
  }
}

@media (max-width: 380px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .brand-name {
    font-size: 1rem;
  }

  .hero-floating-badge {
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
    margin-top: 1rem;
  }
}

/* ==========================================================================
   Noves Millores UI: Abans/Després, Pressupost Express WhatsApp i Modal GDPR
   ========================================================================== */

/* Secció de Transformacions Abans / Després */
.transformations-section {
  padding: 5rem 0;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
}

.transformations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  align-items: stretch;
}

.ba-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.ba-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.ba-image-container {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
  background-color: #111827;
  flex-shrink: 0;
}

.ba-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.ba-image-container img.ba-img-before {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 1;
  z-index: 2;
}

.ba-image-container img.ba-img-after {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  z-index: 1;
}

.ba-card.show-after img.ba-img-before {
  opacity: 0;
}

.ba-card.show-after img.ba-img-after {
  opacity: 1;
  z-index: 2;
}

.ba-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 3;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ba-badge.badge-before {
  background-color: rgba(225, 29, 72, 0.9);
  color: #FFF;
}

.ba-card.show-after .ba-badge.badge-before {
  display: none;
}

.ba-badge.badge-after {
  background-color: rgba(16, 185, 129, 0.95);
  color: #FFF;
  display: none;
}

.ba-card.show-after .ba-badge.badge-after {
  display: inline-block;
}

.ba-controls {
  padding: 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.ba-title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.ba-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.ba-toggle-btn {
  width: 100%;
  padding: 0.65rem 1rem;
  background-color: var(--bg-dark);
  color: #FFF;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

.ba-toggle-btn:hover {
  background-color: var(--accent-gold);
}

/* Sol·licitud Express per WhatsApp */
.express-quote-card {
  background: linear-gradient(135deg, var(--bg-dark-surface) 0%, #0F172A 100%);
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--border-dark);
  margin-top: 2rem;
  color: #FFF;
}

.express-quote-card h4 {
  color: #FFF;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.express-quote-card p {
  color: var(--text-light-muted);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

.express-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.express-form-group label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--accent-gold);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.express-select, .express-input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-dark);
  color: #FFF;
  font-size: 0.875rem;
}

.express-select option {
  background-color: var(--bg-dark);
  color: #FFF;
}

/* Primary Location Chip Highlight */
.location-chip.primary-chip {
  background: var(--accent-gold);
  color: #FFF;
  font-weight: 700;
  border: 1px solid var(--accent-gold-hover);
}

/* Modal de Privacitat i Avís Legal GDPR */
.legal-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.legal-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.legal-modal-content {
  background-color: var(--bg-surface);
  border-radius: var(--radius-md);
  max-width: 700px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  border: 1px solid var(--border-light);
}

.legal-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}

.legal-modal-header h3 {
  font-size: 1.35rem;
  color: var(--bg-dark);
}

.legal-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

.legal-modal-body {
  font-size: 0.9rem;
  color: var(--text-dark);
  line-height: 1.6;
}

.legal-modal-body h4 {
  margin: 1.2rem 0 0.4rem 0;
  font-size: 1.05rem;
  color: var(--bg-dark);
}

.legal-modal-body p {
  margin-bottom: 0.75rem;
}

