/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #333;
  line-height: 1.6;
  background: #fff;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', 'Open Sans', Arial, sans-serif; }

/* ===== HEADER / NAV ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.85);
  transition: background 0.3s;
}
.site-header.scrolled { background: rgba(0,0,0,0.95); }
.header-inner {
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 40px;
  gap: 20px;
  transition: padding 0.3s;
}
.site-header.scrolled .header-inner { padding: 6px 40px; }
.logo img { height: 83px; width: auto; transition: height 0.3s; }
.site-header.scrolled .logo img { height: 58px; }
.header-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: color 0.3s;
  text-decoration: none;
}
.header-phone:hover { color: #c8a951; }
.header-phone svg { width: 18px; height: 18px; fill: #c8a951; flex-shrink: 0; }
.site-header.scrolled .header-phone { color: #c8a951; }
.main-nav ul { display: flex; gap: 30px; }
.main-nav a {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 0;
  transition: color 0.3s;
}
.main-nav a:hover, .main-nav a.active { color: #c8a951; }

/* Hamburger */
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 10px; -webkit-tap-highlight-color: transparent; position: relative; z-index: 1002; }
.hamburger span { display: block; width: 28px; height: 3px; background: #fff; transition: 0.3s; }

/* ===== HERO SLIDER ===== */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 500px;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  background-size: cover;
  background-position: center;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}
.hero-text h1 {
  color: #fff;
  font-size: clamp(1.5rem, 4vw, 2.8rem);
  font-weight: 700;
  text-transform: uppercase;
  max-width: 900px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
  line-height: 1.3;
}
.hero-text .hero-phone {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 30px;
  background: #c8a951;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 4px;
  transition: background 0.3s;
}
.hero-text .hero-phone:hover { background: #b39540; }

/* Slider controls */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 15px 18px;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s;
}
.slider-btn:hover { background: rgba(0,0,0,0.7); }
.slider-btn.prev { left: 15px; }
.slider-btn.next { right: 15px; }
.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.slider-dots span {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.3s;
}
.slider-dots span.active { background: #c8a951; }
.scroll-arrow {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  color: #fff;
  font-size: 2rem;
  animation: bounce 2s infinite;
  cursor: pointer;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(12px); }
}

/* ===== SECTION COMMON ===== */
.section {
  padding: 80px 40px;
  max-width: 100%;
  margin: 0 auto;
}
.section-dark {
  background: #1a1a1a;
  color: #fff;
}
.section-gray { background: #f5f5f5; }
.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 50px;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: #c8a951;
  margin: 15px auto 0;
}

/* ===== MAQUINARIA (HOME PREVIEW) ===== */
.maquinaria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.maq-card {
  background: #222;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.maq-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.maq-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.maq-card-body { padding: 20px; }
.maq-card-body h3 {
  color: #c8a951;
  font-size: 1.1rem;
  margin-bottom: 5px;
}
.maq-card-body .maq-subtitle {
  font-size: 0.85rem;
  color: #aaa;
  margin-bottom: 10px;
}
.maq-card-body p {
  font-size: 0.9rem;
  color: #ccc;
  line-height: 1.5;
}

/* ===== FAQ ===== */
.faq-list { max-width: 1000px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid #ddd;
  padding: 20px 0;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
}
.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  transition: transform 0.3s;
  color: #c8a951;
}
.faq-item.open .faq-question::after {
  content: '−';
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
  font-size: 0.95rem;
  color: #666;
}
.faq-item.open .faq-answer {
  max-height: 500px;
  padding-top: 15px;
}

/* ===== SERVEIS ===== */
.serveis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.servei-card {
  text-align: center;
  padding: 30px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s;
}
.servei-card:hover { transform: translateY(-5px); }
.servei-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 20px;
}
.servei-card h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #333;
}
.servei-card p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
}

/* ===== OBRES (GALERIA) ===== */
.obres-intro {
  text-align: center;
  margin-bottom: 40px;
  font-size: 1.05rem;
  color: #666;
}
.obres-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
}
.obres-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.3s, opacity 0.3s;
}
.obres-grid img:hover { transform: scale(1.03); opacity: 0.9; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 4px;
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 30px;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 2001;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #111;
  color: #ccc;
  padding: 60px 40px 30px;
}
.footer-inner {
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}
.footer-col h3 {
  color: #c8a951;
  font-size: 1.3rem;
  margin-bottom: 15px;
}
.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 5px;
  margin-top: 15px;
}
.footer-col p, .footer-col a {
  font-size: 0.9rem;
  color: #aaa;
  line-height: 1.8;
}
.footer-col a:hover { color: #c8a951; }
.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #333;
  font-size: 0.85rem;
  color: #666;
}

/* ===== WHATSAPP BUTTON ===== */
.whatsapp-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  z-index: 999;
  transition: transform 0.3s;
}
.whatsapp-btn:hover { transform: scale(1.1); }
.whatsapp-btn svg { width: 32px; height: 32px; fill: #fff; }

/* ===== MAQUINARIA PAGE ===== */
.maq-page-hero {
  background: #1a1a1a;
  padding: 140px 40px 60px;
  text-align: center;
  color: #fff;
}
.maq-page-hero h1 {
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 700;
  text-transform: uppercase;
  max-width: 900px;
  margin: 0 auto 15px;
  line-height: 1.4;
}
.maq-page-hero p {
  font-size: 1rem;
  color: #aaa;
  max-width: 700px;
  margin: 0 auto;
}

.maq-section {
  padding: 60px 40px;
  max-width: 100%;
  margin: 0 auto;
}
.maq-section:nth-child(even) { background: #f5f5f5; }
.maq-section-inner {
  max-width: 100%;
  margin: 0 auto;
}
.maq-section h2 {
  font-size: 1.8rem;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: #333;
}
.maq-section h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: #c8a951;
  margin-top: 10px;
}
.maq-section .maq-desc {
  font-size: 1rem;
  color: #555;
  max-width: 100%;
  margin-bottom: 30px;
  line-height: 1.7;
}
.maq-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.maq-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.3s;
}
.maq-gallery img:hover { transform: scale(1.03); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .main-nav {
    position: fixed;
    top: 0; right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: #111;
    flex-direction: column;
    padding: 120px 30px 30px;
    transition: right 0.4s;
    z-index: 1001;
  }
  .main-nav.open { right: 0; }
  .main-nav ul { flex-direction: column; gap: 20px; }
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
  }
  .nav-overlay.open { display: block; }
  .header-phone { display: none !important; }
  .hero-slider { height: 70vh; }
  .section { padding: 50px 16px; }
  .maq-page-hero { padding: 120px 16px 40px; }
  .legal-content { padding: 120px 16px 40px; }
  .cookie-table-wrapper { overflow-x: auto; }
  .cookie-banner-inner { flex-direction: column; text-align: center; }
  .cookie-buttons { justify-content: center; }
}

/* ===== LEGAL PAGES ===== */
.legal-page {
  background: #fff;
}
.legal-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 140px 40px 60px;
  color: #333;
  line-height: 1.8;
}
.legal-content h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: #1a1a1a;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.legal-content .legal-updated {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 40px;
}
.legal-content h2 {
  font-size: 1.2rem;
  color: #1a1a1a;
  margin-top: 35px;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #c8a951;
}
.legal-content h3 {
  font-size: 1.05rem;
  color: #333;
  margin-top: 25px;
  margin-bottom: 10px;
}
.legal-content p {
  margin-bottom: 12px;
  font-size: 0.95rem;
}
.legal-content ul {
  margin-bottom: 15px;
  padding-left: 25px;
  list-style: disc;
}
.legal-content ul li {
  margin-bottom: 6px;
  font-size: 0.95rem;
}
.legal-content a {
  color: #c8a951;
  text-decoration: underline;
}
.legal-content a:hover {
  color: #b39540;
}

/* Cookie table */
.cookie-table-wrapper {
  margin: 15px 0 25px;
}
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.cookie-table th, .cookie-table td {
  padding: 10px 12px;
  border: 1px solid #ddd;
  text-align: left;
}
.cookie-table th {
  background: #1a1a1a;
  color: #fff;
  font-weight: 600;
}
.cookie-table td {
  background: #fafafa;
}

/* Footer legal links */
.footer-legal {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #333;
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}
.footer-legal a {
  font-size: 0.85rem;
  color: #888;
  transition: color 0.3s;
}
.footer-legal a:hover {
  color: #c8a951;
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(26, 26, 26, 0.97);
  z-index: 3000;
  padding: 20px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}
.cookie-banner.active {
  display: block;
}
.cookie-banner-inner {
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 0 20px;
}
.cookie-banner-inner p {
  color: #ccc;
  font-size: 0.9rem;
  line-height: 1.5;
  flex: 1;
  margin: 0;
}
.cookie-banner-inner p a {
  color: #c8a951;
  text-decoration: underline;
}
.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-btn {
  padding: 10px 22px;
  border: none;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}
.cookie-btn:hover { transform: scale(1.03); }
.cookie-btn.accept {
  background: #c8a951;
  color: #fff;
}
.cookie-btn.accept:hover { background: #b39540; }
.cookie-btn.reject {
  background: transparent;
  color: #ccc;
  border: 1px solid #555;
}
.cookie-btn.reject:hover { background: #333; }

/* ========== SERVEIS PAGE ========== */
.serveis-hero {
  position: relative;
  min-height: 350px;
  background: url('../img/giratories1-1200x423.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 70px;
}
.serveis-hero-overlay {
  background: rgba(26,26,26,.75);
  width: 100%;
  padding: 60px 40px;
  text-align: center;
  color: #fff;
}
.serveis-hero-overlay h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  max-width: 900px;
  margin: 0 auto 16px;
  line-height: 1.3;
}
.serveis-hero-overlay p {
  font-size: 1.15rem;
  margin-bottom: 24px;
  color: #ddd;
}
.serveis-hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  transition: background .3s, transform .2s;
  cursor: pointer;
  border: none;
}
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: #c8a951; color: #fff; }
.btn-accent:hover { background: #b39540; }
.btn-outline { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline:hover { background: rgba(255,255,255,.15); }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1da851; }

/* Servei sections */
.servei-section { padding: 60px 40px; }
.servei-section-alt { background: #f5f5f5; }
.servei-section-inner {
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
.servei-reverse { direction: rtl; }
.servei-reverse > * { direction: ltr; }
.servei-text h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.7rem;
  color: #1a1a1a;
  margin-bottom: 12px;
}
.servei-lead {
  font-size: 1.05rem;
  color: #555;
  margin-bottom: 16px;
  font-weight: 600;
}
.servei-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}
.servei-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  line-height: 1.5;
}
.servei-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #c8a951;
  font-weight: 700;
}
.servei-cta {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.servei-image {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4 / 3;
}
.servei-image img.servei-slide {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
  display: none;
  cursor: pointer;
}
.servei-image img.servei-slide.active {
  display: block;
}
.servei-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(26,26,26,.55);
  color: #fff;
  border: none;
  font-size: 1.4rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s;
  z-index: 2;
}
.servei-arrow:hover { background: rgba(200,169,81,.85); }
.servei-prev { left: 10px; }
.servei-next { right: 10px; }
.serveis-cta-final {
  background: #1a1a1a;
  color: #fff;
  text-align: center;
  padding: 60px 40px;
}
.serveis-cta-final h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  margin-bottom: 12px;
}
.serveis-cta-final p {
  color: #ccc;
  margin-bottom: 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .servei-section-inner {
    grid-template-columns: 1fr;
  }
  .servei-reverse { direction: ltr; }
  .serveis-hero-overlay h1 { font-size: 1.4rem; }
  .servei-section { padding: 40px 16px; }
  .serveis-hero-overlay { padding: 40px 16px; }
  .serveis-cta-final { padding: 40px 16px; }
}

/* ========== CONTACTE PAGE ========== */
.contacte-hero {
  position: relative;
  min-height: 250px;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 70px;
}
.contacte-hero-overlay {
  text-align: center;
  color: #fff;
  padding: 50px 20px;
}
.contacte-hero-overlay h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.contacte-hero-overlay p {
  color: #ccc;
  font-size: 1.1rem;
}
.contacte-content { padding: 50px 40px; }
.contacte-grid {
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
.contacte-form-wrap h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  color: #1a1a1a;
  margin-bottom: 24px;
}
.contacte-form .form-group {
  margin-bottom: 18px;
}
.contacte-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
  font-size: .95rem;
}
.contacte-form input[type="text"],
.contacte-form input[type="tel"],
.contacte-form input[type="email"],
.contacte-form select,
.contacte-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: 'Open Sans', sans-serif;
  font-size: .95rem;
  background: #fff;
  transition: border-color .3s;
  box-sizing: border-box;
}
.contacte-form input:focus,
.contacte-form select:focus,
.contacte-form textarea:focus {
  outline: none;
  border-color: #c8a951;
}
.contacte-form textarea { resize: vertical; }
.form-privacy {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.form-privacy label {
  font-weight: 400;
  font-size: .9rem;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.form-privacy input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
}
.btn-submit {
  width: 100%;
  font-size: 1rem;
  padding: 14px;
}
.form-status {
  margin-top: 12px;
  padding: 10px;
  border-radius: 4px;
  display: none;
  font-size: .95rem;
}
.form-status.success {
  display: block;
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
.form-status.error {
  display: block;
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
.contacte-info { display: flex; flex-direction: column; gap: 24px; }
.contacte-info-card {
  background: #f8f8f8;
  border-radius: 8px;
  padding: 24px;
}
.contacte-info-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  color: #1a1a1a;
  margin-bottom: 16px;
}
.info-item {
  margin-bottom: 12px;
}
.info-item strong {
  display: block;
  color: #555;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 2px;
}
.info-item a {
  color: #c8a951;
  text-decoration: none;
  font-weight: 600;
}
.info-item a:hover { text-decoration: underline; }
.contacte-map {
  margin-top: 12px;
  border-radius: 6px;
  overflow: hidden;
}
.contacte-map iframe {
  display: block;
}

@media (max-width: 768px) {
  .contacte-grid {
    grid-template-columns: 1fr;
  }
  .contacte-hero-overlay h1 { font-size: 1.6rem; }
  .contacte-content { padding: 30px 16px; }
}

/* ===== OBRES (PORTFOLIO) ===== */
.obres-hero {
  position: relative;
  height: 50vh;
  min-height: 340px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}
.obres-hero-overlay {
  width: 100%;
  padding: 60px 40px 40px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  text-align: center;
  color: #fff;
}
.obres-hero-overlay h1 {
  font-size: 2.4rem;
  margin-bottom: 8px;
}
.obres-hero-overlay p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Filtres */
.obres-filtres {
  background: #f5f5f5;
  padding: 30px 40px;
}
.filtres-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 900px;
  margin: 0 auto;
}
.filtre-btn {
  padding: 8px 20px;
  border: 2px solid #c8a951;
  background: transparent;
  color: #333;
  border-radius: 30px;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s;
}
.filtre-btn:hover,
.filtre-btn.actiu {
  background: #c8a951;
  color: #fff;
}

/* Masonry grid */
.obres-masonry {
  max-width: 100%;
  margin: 0 auto;
  padding: 40px 40px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}
.projecte-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.35s, box-shadow 0.35s;
}
.projecte-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}
.projecte-img-wrap {
  position: relative;
  overflow: hidden;
  height: 240px;
}
.projecte-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.projecte-card:hover .projecte-img-wrap img {
  transform: scale(1.08);
}
.projecte-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #c8a951;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.projecte-info {
  padding: 18px 20px 22px;
}
.projecte-info h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
  color: #1a1a1a;
}
.projecte-lloc {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 10px;
}
.projecte-lloc::before {
  content: '📍 ';
}
.projecte-info p {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.5;
  margin-bottom: 12px;
}
.projecte-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.projecte-tags span {
  font-size: 0.75rem;
  background: #f0ead6;
  color: #8a7530;
  padding: 3px 10px;
  border-radius: 12px;
}

/* Obres stats */
.obres-stats {
  background: #1a1a1a;
  padding: 60px 40px;
}
.stats-grid {
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}
.stat-item { color: #fff; }
.stat-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: #c8a951;
  display: block;
}
.stat-label {
  font-size: 0.95rem;
  opacity: 0.8;
  margin-top: 4px;
}

/* Obres CTA */
.obres-cta-final {
  text-align: center;
  padding: 60px 40px;
  background: #f5f5f5;
}
.obres-cta-final h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
  color: #1a1a1a;
}
.obres-cta-final p {
  max-width: 550px;
  margin: 0 auto 24px;
  color: #555;
}

/* Fade-up animation */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Obres responsive */
@media (max-width: 900px) {
  .obres-masonry { grid-template-columns: repeat(2, 1fr); padding: 30px 20px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 600px) {
  .obres-masonry { grid-template-columns: 1fr; padding: 20px 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .obres-hero-overlay h1 { font-size: 1.6rem; }
  .stat-number { font-size: 2rem; }
  .obres-hero-overlay { padding: 40px 16px 30px; }
  .obres-filtres { padding: 20px 16px; }
  .obres-stats { padding: 40px 16px; }
  .obres-cta-final { padding: 40px 16px; }
}

/* ===== BLOG LISTING ===== */
.blog-hero {
  position: relative;
  height: 45vh;
  min-height: 300px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}
.blog-hero-overlay {
  width: 100%;
  padding: 60px 40px 40px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  text-align: center;
  color: #fff;
}
.blog-hero-overlay h1 {
  font-size: 2.4rem;
  margin-bottom: 8px;
}
.blog-hero-overlay p {
  font-size: 1.1rem;
  opacity: 0.9;
}

.blog-grid-section {
  max-width: 100%;
  margin: 0 auto;
  padding: 50px 40px;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.blog-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,0.07);
  transition: transform 0.3s, box-shadow 0.3s;
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.13);
}
.blog-card-link {
  display: block;
  color: inherit;
}
.blog-card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.blog-card:hover .blog-card-img img {
  transform: scale(1.06);
}
.blog-card-cat {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: #c8a951;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 14px;
  text-transform: uppercase;
}
.blog-card-body {
  padding: 18px 20px 22px;
}
.blog-card-body time {
  font-size: 0.8rem;
  color: #999;
}
.blog-card-body h3 {
  font-size: 1.1rem;
  margin: 6px 0 8px;
  color: #1a1a1a;
  line-height: 1.35;
}
.blog-card-body p {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 12px;
}
.blog-read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: #c8a951;
}

/* Blog CTA */
.blog-cta-section {
  text-align: center;
  padding: 50px 40px;
  background: #f5f5f5;
}
.blog-cta-section h2 {
  font-size: 1.7rem;
  margin-bottom: 10px;
  color: #1a1a1a;
}
.blog-cta-section p {
  max-width: 520px;
  margin: 0 auto 20px;
  color: #555;
}
.blog-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Blog responsive */
@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-hero-overlay h1 { font-size: 1.6rem; }
  .blog-grid-section { padding: 30px 16px; }
  .blog-hero-overlay { padding: 40px 16px 30px; }
  .blog-cta-section { padding: 40px 16px; }
}

/* ===== BLOG ARTICLE ===== */
.blog-article-hero {
  position: relative;
  height: 50vh;
  min-height: 340px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}
.blog-article-hero-overlay {
  width: 100%;
  padding: 80px 40px 40px;
  background: linear-gradient(transparent 0%, rgba(0,0,0,0.78) 100%);
  color: #fff;
  text-align: center;
}
.blog-article-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}
.blog-article-cat {
  background: #c8a951;
  color: #fff;
  padding: 3px 12px;
  border-radius: 14px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}
.blog-article-hero-overlay h1 {
  font-size: 2.2rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.25;
}

.blog-article-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 50px 40px 60px;
}
.blog-article-content h2 {
  font-size: 1.5rem;
  margin: 36px 0 14px;
  color: #1a1a1a;
  border-left: 4px solid #c8a951;
  padding-left: 14px;
}
.blog-article-content h3 {
  font-size: 1.2rem;
  margin: 24px 0 10px;
  color: #333;
}
.blog-article-content p {
  margin-bottom: 16px;
  line-height: 1.75;
  color: #444;
}
.blog-article-content ul,
.blog-article-content ol {
  margin: 0 0 18px 22px;
  line-height: 1.75;
  color: #444;
}
.blog-article-content li {
  margin-bottom: 6px;
  list-style: disc;
}
.blog-lead {
  font-size: 1.15rem;
  color: #333;
  line-height: 1.8;
  border-left: 4px solid #c8a951;
  padding-left: 16px;
  margin-bottom: 28px;
}

.blog-figure {
  margin: 28px 0;
}
.blog-figure img {
  border-radius: 8px;
  width: 100%;
}
.blog-figure figcaption {
  font-size: 0.82rem;
  color: #888;
  margin-top: 8px;
  text-align: center;
  font-style: italic;
}

.blog-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 28px;
  font-size: 0.92rem;
}
.blog-table th,
.blog-table td {
  padding: 10px 14px;
  border: 1px solid #ddd;
  text-align: left;
}
.blog-table th {
  background: #1a1a1a;
  color: #fff;
  font-weight: 600;
}
.blog-table tr:nth-child(even) {
  background: #f9f9f9;
}

.blog-cta-box {
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  color: #fff;
  padding: 32px 28px;
  border-radius: 10px;
  margin: 36px 0;
  text-align: center;
}
.blog-cta-box h3 {
  color: #c8a951;
  margin-bottom: 10px;
  font-size: 1.3rem;
}
.blog-cta-box p {
  color: #ccc;
  margin-bottom: 18px;
}
.blog-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.btn-accent {
  display: inline-block;
  background: #c8a951;
  color: #fff;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.3s;
}
.btn-accent:hover { background: #b0912e; }
.btn-outline {
  display: inline-block;
  border: 2px solid #c8a951;
  color: #c8a951;
  padding: 8px 22px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s;
}
.btn-outline:hover {
  background: #c8a951;
  color: #fff;
}

.blog-nav-posts {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 2px solid #eee;
}
.blog-nav-prev,
.blog-nav-next {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  background: #f8f8f8;
  border-radius: 8px;
  transition: background 0.3s, transform 0.2s;
  text-decoration: none;
}
.blog-nav-prev:hover,
.blog-nav-next:hover {
  background: #f0ead6;
  transform: translateY(-2px);
}
.blog-nav-next { text-align: right; }
.blog-nav-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #999;
  font-weight: 600;
}
.blog-nav-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.3;
}
.blog-nav-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-nav-center a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  background: #1a1a1a;
  color: #fff;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background 0.3s;
  white-space: nowrap;
}
.blog-nav-center a:hover { background: #333; }
.blog-nav-center svg { width: 16px; height: 16px; fill: #c8a951; }

/* Blog breadcrumb */
.blog-breadcrumb {
  max-width: 900px;
  margin: 0 auto;
  padding: 16px 40px 0;
  font-size: 0.82rem;
  color: #999;
}
.blog-breadcrumb a {
  color: #c8a951;
  font-weight: 600;
  transition: color 0.3s;
}
.blog-breadcrumb a:hover { color: #b0912e; }
.blog-breadcrumb .sep { margin: 0 6px; color: #ccc; }

/* Blog article responsive */
@media (max-width: 600px) {
  .blog-article-hero-overlay h1 { font-size: 1.5rem; }
  .blog-article-content { padding: 30px 16px 40px; }
  .blog-article-hero-overlay { padding: 60px 16px 30px; }
  .blog-table { font-size: 0.8rem; }
  .blog-table th, .blog-table td { padding: 6px 8px; }
  .blog-nav-posts {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .blog-nav-center { order: -1; }
  .blog-nav-next { text-align: left; }
  .blog-breadcrumb { padding: 12px 16px 0; }
}
