/* ============================================================
   AZYRON — Libro de Estilos · Opción A: Industrial Dark
   Negro #111 + Amarillo #f2b705
   ============================================================ */
:root {
  --color-primary:      #111111;
  --color-accent:       #f2b705;
  --color-accent-hover: #d99f04;
  --color-bg:           #ffffff;
  --color-surface:      #f7f7f7;
  --color-text:         #222222;
  --color-text-soft:    #666666;
  --color-text-inv:     #ffffff;
  --color-border:       #e5e5e5;
  --color-dark:         #111111; /* alias for dark surfaces (hero/header) */
  --font-heading:       'Montserrat', system-ui, sans-serif;
  --font-body:          'Inter', system-ui, sans-serif;
  --max-width:          1200px;
  --radius:             6px;
}

body  { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.6; color: var(--color-text); background: var(--color-bg); }
img   { max-width: 100%; height: auto; display: block; }
a     { transition: color 0.2s; }

/* --- 3. Tipografía ---------------------------------------- */
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; }
h1    { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; }
h2    { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3    { font-size: 1.4rem; font-weight: 600; }
small { font-size: 0.9rem; color: var(--color-text-soft); }

/* --- 4. Layout -------------------------------------------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section     { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-alt { background: var(--color-surface); }

/* --- 5. Header -------------------------------------------- */
.site-header {
  --header-height: 96px;
  background: var(--color-primary);
  color: var(--color-text-inv);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #222;
  /* Only transition visual properties — NOT layout properties (height/padding)
     to avoid the "stuck" jank when scroll position sits near the threshold */
  transition: background-color 400ms ease, box-shadow 400ms ease, backdrop-filter 400ms ease;
  will-change: background-color, box-shadow;
}
.site-header.scrolled {
  background-color: rgba(17,17,17,0.72) !important; /* semi-transparent dark */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* Slight elevation for when header is scrolled further */
.site-header.scrolled.deeper {
  background-color: rgba(17,17,17,0.62) !important;
  box-shadow: 0 12px 28px rgba(0,0,0,0.32);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  min-height: 96px;
  /* NO transition on min-height: layout transitions cause the "stuck" jank */
}
.logo { display:flex; align-items:center; flex: 0 0 auto; margin-right: 1rem; }
/* ensure logo fits inside header without increasing its height */
/* force fixed logo height on desktop for predictable sizing */
header.site-header .logo img {
  height: 60px !important; /* adjusted desktop size */
  max-height: none !important;
  width: auto !important;
  display: block !important;
  flex-shrink: 0 !important;
  transition: height 350ms cubic-bezier(0.4, 0, 0.2, 1), transform 350ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: height, transform;
}

/* Centered nav that doesn't shift when logo changes size */
.header-inner .main-nav {
   position: absolute;
   left: 50%;
   top: 50%;
   transform: translate(-50%, -50%);
  display: flex;
  gap: 0;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  z-index: 20; /* keep above logo and below any modal */
  max-width: 720px; /* prevent overlapping wide nav */
  width: 100%;
 }

/* ensure language flags sit to the right */
.header-inner .lang-switch { margin-left: auto; z-index: 25; }

/* Nav links with vertical separator */
.header-inner .main-nav a {
  color: #fff;
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
  border-left: 1px solid rgba(255,255,255,0.12);
}
.header-inner .main-nav a:first-child { border-left: none; }

/* allow navigation to take remaining horizontal space */
.header-inner .main-nav { flex: 1 1 auto; display: flex; justify-content: center; }
.header-inner .main-nav a { margin-left: 1rem; }

/* Nav link hover: change text color to gold instead of background */
.header-inner .main-nav a {
  transition: color 180ms ease, transform 150ms ease, box-shadow 180ms ease;
}
.header-inner .main-nav a:hover,
.header-inner .main-nav a:focus {
  background: transparent !important;
  color: var(--color-accent) !important; /* gold text */
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
  outline: none;
}
.header-inner .main-nav a:focus {
  box-shadow: 0 6px 14px rgba(0,0,0,0.12), 0 0 0 3px rgba(242,183,5,0.08);
}

/* Mobile: use subtle gold tint on text only */
@media (max-width: 768px) {
  .site-header { --header-height: 64px; }
  .header-inner { min-height: auto; padding: 0.5rem 1rem; }
  header.site-header .logo img { height: 56px !important; }

  .header-inner .main-nav a:hover,
  .header-inner .main-nav a:focus {
    transform: none;
    box-shadow: none;
    background: transparent !important;
    color: var(--color-accent) !important;
  }
}

/* when the header is scrolled, make it more compact and reduce the logo */
.site-header.scrolled .header-inner {
  min-height: 64px;
  /* No transition on min-height — instant snap avoids oscillation */
}
.site-header.scrolled .logo img {
  height: 44px !important;
  transform: translateY(-2px);
}
.site-header.scrolled.deeper .logo img {
  height: 36px !important;
}

/* ensure mobile stays usable */
@media (max-width: 768px) {
  .site-header.scrolled .header-inner { min-height: 56px; }
  .site-header.scrolled .logo img { height: 44px !important; }
}

.lang-switch { display: flex; gap: 0.4rem; align-items: center; }
.lang-switch a {
  color: #aaa;
  font-size: 0.8rem;
  text-decoration: none;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  transition: color 0.2s;
}
.lang-switch a:hover,
.lang-switch a[aria-current="true"] { color: var(--color-accent); }
.lang-sep { color: #444; font-size: 0.8rem; }
/* Language flags next to language links */
.lang-switch .lang-flag {
  height: 14px;
  width: auto;
  vertical-align: middle;
  margin-right: 6px;
  display: inline-block;
}

/* prevent flags from shrinking/moving when header becomes compact */
.header-inner .lang-switch { display:flex; align-items:center; gap:0.4rem; }

@media (max-width: 480px) {
  .lang-switch .lang-flag { height: 12px; margin-right:4px; }
}

/* --- 6. Hero ---------------------------------------------- */
.hero {
  position: relative;
  background: var(--color-dark);
  color: var(--color-text-inv);
  min-height: 100svh;         /* full viewport height */
  min-height: 100vh;          /* fallback for older browsers */
  padding: clamp(4rem, 8vw, 6rem) 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  
}

/* --- Video background --- */
.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero-vid--active {
  opacity: 1;
}
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.40) 60%,
    rgba(0,0,0,0.65) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero .highlight { color: var(--color-accent); }
.hero p  { color: #bbb; max-width: 560px; margin-bottom: 2rem; font-size: 1.1rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* --- 6b. Home — Manifest ---------------------------------- */
.manifest-section {
  position: relative;
  background-image: url('/images/fotoConstrucion.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;   /* ← parallax */
  padding: clamp(5rem, 10vw, 9rem) 0;
  overflow: hidden;
}
.manifest-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
}
.manifest-grid {
  position: relative;  /* queda por encima del overlay */
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

/* Columna text: sobre el fondo oscuro, texto claro */
.manifest-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 2.5rem 2.8rem;
  border-radius: var(--radius);
}
.manifest-badge {
  display: inline-block;
  align-self: flex-start;   /* solo tan ancho como el texto del badge */
  background: var(--color-accent);
  color: #111;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 2px;
  margin-bottom: 1.4rem;
}
.manifest-text h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 1.2rem;
  line-height: 1.18;
  color: #fff;
}
.manifest-text h2 em {
  font-style: normal;
  color: var(--color-accent);
}
.manifest-text p {
  color: rgba(255,255,255,0.78);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}
.manifest-frase {
  margin: 1.8rem 0 0;
  padding: 1.2rem 1.5rem;
  border-left: 4px solid var(--color-accent);
  background: rgba(255,255,255,0.08);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  line-height: 1.55;
}

/* Columna derecha: decorativa, espacio vacío con el fondo visible */
.manifest-visual {
  /* vacío — el fondo parallax ya actúa como visual */
  min-height: 300px;
}

/* Mobile/tablet: parallax desactivado (iOS no lo soporta bien en elementos) */
@media (max-width: 900px) {
  .manifest-section {
    background-attachment: scroll;
  }
  .manifest-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .manifest-visual { display: none; }
}


/* --- 6c. Home — Featured services ------------------------- */
.featured-services {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  background: var(--color-surface);
}
.featured-header {
  text-align: center;
  margin-bottom: 2.8rem;
}
.featured-header h2 em {
  font-style: normal;
  color: var(--color-accent);
}
.featured-header p {
  color: var(--color-text-soft);
  font-size: 1.05rem;
  margin-top: 0.5rem;
}

/* --- Carousel wrap — autoplay fade --- */
.featured-carousel-wrap {
  position: relative;
}

/* The track becomes a sized container; cards are stacked absolutely */
.featured-carousel {
  position: relative;
  height: 380px;          /* matches card img height */
  will-change: contents;
}

/* Each card: full-width pair sits at top-left, fades in/out */
.featured-card-page {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  opacity: 0;
  transition: opacity 700ms ease-in-out;
  pointer-events: none;   /* prevent click-through while hidden */
}
.featured-card-page.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Page with a single card: centre it and cap width at 50% */
.featured-card-page--single {
  grid-template-columns: 1fr;
  max-width: calc(50% - 1rem);
  margin: 0 auto;
}

/* --- Cards --- */
.featured-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  display: block;
}
.featured-card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.featured-card:hover img { transform: scale(1.04); }
.featured-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.82) 0%,
    rgba(0,0,0,0.22) 55%,
    transparent 100%
  );
}
.featured-card-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2rem;
}
.featured-card-body h3 {
  font-size: 1.35rem;
  color: #fff;
  margin: 0 0 0.4rem;
}
.featured-card-body p {
  font-size: 0.93rem;
  color: rgba(255,255,255,0.80);
  margin: 0 0 1rem;
}
.featured-card-cta {
  display: inline-block;
  background: var(--color-accent);
  color: #111;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius);
}

/* --- Responsive: 1 card on mobile --- */
@media (max-width: 680px) {
  .featured-carousel { height: 420px; }
  .featured-card-page { grid-template-columns: 1fr; }
}

/* --- Prev / Next buttons — removed (autoplay mode) --- */

/* --- Dots --- */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.4rem;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.carousel-dot--active {
  background: var(--color-accent);
  transform: scale(1.3);
}

/* --- "See all" link --- */
.featured-more {
  text-align: center;
  margin-top: 2.2rem;
}
.featured-more a {
  display: inline-block;
  color: #111;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  padding: 0.65rem 1.8rem;
  border: none;
  border-radius: var(--radius);
  background: var(--color-accent);
  transition: background 0.2s, transform 0.15s;
}
.featured-more a:hover {
  background: var(--color-accent-hover);
  color: #111;
  transform: translateY(-2px);
}

/* --- Responsive: 1 card on mobile --- */
@media (max-width: 680px) {
  .featured-card {
    flex: 0 0 100%;
  }
  .carousel-btn--prev { left: 4px; }
  .carousel-btn--next { right: 4px; }
}

/* --- 6d. Home — Trust strip ------------------------------- */
.trust-section {
  background: var(--color-primary);
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #2a2a2a;
}
.trust-item {
  background: var(--color-primary);
  text-align: center;
  padding: 2.5rem 2rem;
}
.trust-icon {
  font-size: 2rem;
  margin-bottom: 1.2rem;
  display: flex;
  justify-content: center;
}
.trust-icon img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: var(--color-accent);
  border-radius: 50%;
  padding: 14px;
  box-sizing: content-box;
}
.trust-item h3 {
  color: var(--color-accent);
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}
.trust-item p {
  color: #aaa;
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.6;
}

/* --- 6e. Home — CTA final --------------------------------- */
.home-cta-section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  background: #fff;
  text-align: center;
}
.home-cta-section h2 { margin-bottom: 1rem; }
.home-cta-section h2 em { color: var(--color-accent); font-style: normal; }
.home-cta-section p  {
  color: var(--color-text-soft);
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  max-width: 500px;
}
.home-cta-section .btn-primary {
  font-size: 1.05rem;
  padding: 1rem 2.2rem;
}

/* --- 7. Botones ------------------------------------------- */
.btn-primary {
  display: inline-block;
  background: var(--color-accent);
  color: #111;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  color: #111;
}
.btn-outline {
  display: inline-block;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover {
  background: var(--color-accent);
  color: #111;
}

/* --- 8. Servicios grid ------------------------------------ */
.services-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.service-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  color: inherit;
}
.service-card h3 { margin-top: 0; font-size: 1.05rem; margin-bottom: 0.5rem; }
.service-card p  { color: var(--color-text-soft); font-size: 0.9rem; margin: 0; }

/* --- 9. Sección intro / about ----------------------------- */
.intro-section { background: var(--color-surface); }
.intro-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  align-items: center;
}
.intro-badge {
  display: inline-block;
  background: var(--color-accent);
  color: #111;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: 0.08em;
  padding: 0.25rem 0.7rem;
  border-radius: 3px;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

/* --- 10. Formulario --------------------------------------- */
.form-group { margin-bottom: 1rem; }
label { display: block; font-weight: 500; margin-bottom: 0.3rem; font-size: 0.9rem; }
input, textarea, select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font-body);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(242,183,5,0.15);
}
#formStatus { margin-top: 0.75rem; font-weight: 500; min-height: 1.4rem; }

/* --- 11. Footer ------------------------------------------- */
.site-footer {
  background: var(--color-primary);
  color: #ccc;
  margin-top: 0;
}

/* Main footer grid: brand | info | form */
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr 1fr 1.6fr;
  align-items: start;
}

/* Brand column */
.footer-brand { display: flex; flex-direction: column; gap: 1rem; }
.footer-brand .footer-logo img {
  height: 52px;
  width: auto;
}
.footer-brand .footer-tagline {
  font-size: 0.95rem;
  color: #aaa;
  line-height: 1.6;
  max-width: 260px;
}

/* Info column */
.footer-info h4 {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #2a2a2a;
}
.footer-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  color: #aaa;
}
.footer-info-item .fi-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
  width: 1.1rem;
  height: 1.1rem;
}
.footer-info-item .fi-icon svg {
  width: 1.1rem;
  height: 1.1rem;
  stroke: var(--color-accent);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.footer-info-item a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-info-item a:hover { color: var(--color-accent); }

/* Form column */
.footer-form-col h4 {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 0.4rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #2a2a2a;
}
.footer-form-col .footer-form-intro {
  font-size: 0.88rem;
  color: #888;
  margin-bottom: 1.2rem;
  line-height: 1.5;
}
.footer-form { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-form input,
.footer-form textarea {
  background: #1a1a1a;
  border: 1px solid #2e2e2e;
  color: #e0e0e0;
  border-radius: var(--radius);
  padding: 0.65rem 0.9rem;
  font-size: 0.9rem;
  font-family: var(--font-body);
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.footer-form input::placeholder,
.footer-form textarea::placeholder { color: #555; }
.footer-form input:focus,
.footer-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(242,183,5,0.12);
}
.footer-form textarea { resize: vertical; min-height: 90px; }
/* Honeypot: hidden from real users, traps bots */
.footer-form .ohnohoney { display: none !important; }
.footer-form .turnstile-wrap { margin-top: 0.2rem; }
.footer-form .btn-footer-submit {
  background: var(--color-accent);
  color: #111;
  border: none;
  border-radius: var(--radius);
  padding: 0.75rem 1.4rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  align-self: flex-start;
}
.footer-form .btn-footer-submit:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
}
.footer-form-status {
  font-size: 0.88rem;
  font-weight: 500;
  min-height: 1.2rem;
  color: var(--color-accent);
}
.footer-form-status.error { color: #e05252; }

/* Divider + bottom bar */
.footer-bottom {
  border-top: 1px solid #1e1e1e;
  text-align: center;
  padding: 1.2rem 1.5rem;
  font-size: 0.82rem;
  color: #444;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-bottom a {
  color: #555;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-bottom a:hover { color: var(--color-accent); }

/* Responsive footer */
@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer-form-col { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .footer-inner {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.2rem 2rem;
    gap: 2rem;
  }
  .footer-form-col { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 0.6rem; }
}

/* Legacy selectors (keep backward compat) */
.footer-nav h4, .footer-contact h4 {
  color: #fff;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}
.footer-nav a, .footer-contact a, .site-footer a {
  color: var(--color-accent);
  text-decoration: none;
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  transition: color 0.2s;
}
.site-footer a:hover { color: #fff; }

/* --- 12. Accesibilidad ------------------------------------ */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* --- 14. Pàgina de Serveis — Grid clar (Opció A) ---------- */

/* Hero de pàgina interior */
.page-hero {
  position: relative;
  min-height: 42vh;
  display: flex;
  align-items: center;
  background-image: url('/images/fotoConstrucion.webp');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.55) 100%);
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.page-hero-inner .manifest-badge { margin-bottom: 1.2rem; }
.page-hero-inner h1 {
  color: #fff;
  margin: 0 0 1rem;
}
.page-hero-inner h1 .highlight { color: var(--color-accent); }
.page-hero-inner p {
  color: #ccc;
  font-size: 1.1rem;
  margin: 0;
  line-height: 1.7;
}

/* Secció grid serveis — fons superfície clara */
.srv-grid-section {
  background: var(--color-surface);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

/* Grid 2 columnes */
.srv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

/* Targeta */
.srv-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.srv-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.10);
  color: inherit;
}

/* Foto */
.srv-card-img {
  overflow: hidden;
  height: 300px;
}
.srv-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.srv-card:hover .srv-card-img img {
  transform: scale(1.04);
}

/* Cos de text */
.srv-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  border-top: 3px solid var(--color-accent);
}

/* Títol */
.srv-card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 0.6rem;
  line-height: 1.3;
}

/* Descripció */
.srv-card-desc {
  font-size: 0.9rem;
  color: var(--color-text-soft);
  line-height: 1.65;
  margin: 0 0 1.2rem;
  flex: 1;
}

/* CTA inline */
.srv-card-cta {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-accent);
  transition: color 0.2s;
}
.srv-card:hover .srv-card-cta {
  color: var(--color-accent-hover);
}

/* Responsive — 1 columna en tablet i mòbil */
@media (max-width: 720px) {
  .srv-grid { grid-template-columns: 1fr; }
  .page-hero { min-height: 35vh; }
}

/* --- 15. Pàgina de Contacte — 2 Columnes (Opció 1) -------- */

/* Hero fosc */
.contact-hero {
  background: var(--color-primary);
  padding: 3.5rem 0 3rem; /* reduced from 5rem 0 4.5rem */
  text-align: center;
}
.contact-hero-inner { max-width: 640px; }
.contact-hero-inner .manifest-badge { margin-bottom: 1.2rem; }
.contact-hero-inner h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: #fff;
  margin: 0 0 1rem;
  line-height: 1.15;
}
.contact-hero-line {
  width: 44px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
  margin: 0 auto 1.4rem;
}
.contact-hero-claim {
  font-size: 1.05rem;
  color: #ccc;
  line-height: 1.7;
  margin: 0;
}

/* Secció principal: contenidor + 2 columnes */
.contact-body {
  padding: 5rem 1.5rem;
  background: #f7f7f7;
}
.contact-columns {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

/* ── Columna esquerra: info ── */
.contact-info-col {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  padding: 2.5rem;
}
.contact-info-col .manifest-badge { margin-bottom: 1.2rem; }
.contact-info-title {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 1rem;
  line-height: 1.25;
}
.contact-info-line {
  width: 36px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
  margin-bottom: 1.8rem;
}

/* Llista de dades de contacte */
.contact-info-list {
  list-style: none;
  margin: 0 0 1.8rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}
.contact-info-list li div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.contact-info-list strong {
  font-size: 0.78rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.contact-info-list a,
.contact-info-list span {
  font-size: 0.95rem;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s;
}
.contact-info-list a:hover { color: var(--color-accent); }
.ci-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 0.05rem; }

/* Divisor */
.contact-info-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 0 0 1.6rem;
}

/* Llista de checks */
.contact-checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.contact-checks li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--color-text);
}
.cc-mark {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

/* ── Columna dreta: formulari ── */
.contact-form-col {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  padding: 2.5rem;
}
.contact-form-wrap { width: 100%; }
.contact-form-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 0.4rem;
}
.contact-form-sub {
  font-size: 0.88rem;
  color: var(--color-text-soft);
  margin: 0 0 1.8rem;
}

/* Formulari */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.cf-row { display: flex; flex-direction: column; gap: 1rem; }
.cf-row--2 { flex-direction: row; gap: 1rem; }
.cf-row--2 .cf-group { flex: 1; }
.cf-group { display: flex; flex-direction: column; gap: 0.35rem; }
.cf-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  font-family: var(--font-heading);
}
.cf-optional {
  font-weight: 400;
  color: var(--color-text-soft);
  font-family: var(--font-body);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--color-text);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(242,183,5,0.14);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #aaa; }
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form .ohnohoney { display: none !important; }
.cf-turnstile-wrap { margin-top: 0.2rem; }

/* Botó submit */
.contact-submit {
  display: block;
  width: 100%;
  background: var(--color-accent);
  color: #111;
  border: none;
  border-radius: var(--radius);
  padding: 0.9rem 1.6rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-align: center;
}
.contact-submit:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
}

/* Missatge d'estat */
.contact-form-status {
  font-size: 0.88rem;
  font-weight: 500;
  min-height: 1.2rem;
  color: var(--color-accent);
}
.contact-form-status.error { color: #e05252; }

/* Responsive — columna única */
@media (max-width: 860px) {
  .contact-columns { grid-template-columns: 1fr; gap: 2rem; }
  .contact-body { padding: 3rem 1.5rem; }
  .contact-hero { padding: 2.5rem 1rem 2rem; } /* reduced mobile padding */
  .cf-row--2 { flex-direction: column; }
}

/* Footer simplificat (pàgina de contacte) */
.site-footer--simple .footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.8rem 1.5rem 1rem;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr; /* logo | brand | nav */
  align-items: center;
  gap: 1.5rem;
}

/* Columna logo: esquerra */
.site-footer--simple .footer-logo-col {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.site-footer--simple .footer-logo-col img {
  height: 48px;
  width: auto;
}

/* Columna brand: centre */
.site-footer--simple .footer-brand-col {
  text-align: center;
}
.site-footer--simple .footer-brand-col .footer-tagline {
  margin: 0;
  color: #aaa;
  font-size: 0.88rem;
  line-height: 1.55;
}

/* Columna nav: dreta — horitzontal */
.site-footer--simple .footer-nav-col {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.site-footer--simple .footer-nav-col nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
}
.site-footer--simple .footer-nav-col nav a {
  color: #aaa;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
  padding: 0 0.9rem;
  border-left: 1px solid #333;
}
.site-footer--simple .footer-nav-col nav a:first-child { border-left: none; }
.site-footer--simple .footer-nav-col nav a:hover { color: var(--color-accent); }
.site-footer--simple .footer-nav-col nav a[aria-current="page"] { color: var(--color-accent); }

/* Bottom bar */
.site-footer--simple .footer-bottom {
  padding: 0.6rem 1.5rem;
}

/* Mobile: una columna */
@media (max-width: 600px) {
  .site-footer--simple .footer-inner {
    grid-template-columns: 1fr;
    padding: 1.5rem 1rem;
    text-align: center;
  }
  .site-footer--simple .footer-logo-col { justify-content: center; }
  .site-footer--simple .footer-nav-col { justify-content: center; }
  .site-footer--simple .footer-nav-col nav a { padding: 0 0.6rem; }
}

/* --- Home sections — tablet */
@media (max-width: 900px) {
  .manifest-grid  { grid-template-columns: 1fr; }
  .manifest-visual { display: none; }
  .featured-grid  { grid-template-columns: 1fr; }
  .featured-card img { height: 300px; }
  .trust-grid     { grid-template-columns: 1fr; gap: 0; }
  .trust-item     { border-bottom: 1px solid #2a2a2a; }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 0.6rem 1rem;
    min-height: auto;
    gap: 0.4rem;
  }
  .main-nav {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.3rem;
    padding-bottom: 0.5rem;
  }
  .main-nav a { margin-left: 0; padding: 0.2rem 0.5rem; }
  .lang-switch { margin-left: auto; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .intro-grid { grid-template-columns: 1fr; }
}

/* --- Header horizontal accordion: overlay (appears above content, no push) --- */
.header-accordion {
  position: fixed; /* overlay on top of page */
  top: var(--header-height, 96px); /* fallback if variable isn't inherited */
  left: 0;
  width: 100%;
  z-index: 1050; /* above header but below modals if any */
  background: rgba(17,17,17,0.48); /* semi-transparent dark */
  color: var(--color-text-inv);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow: visible;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none; /* allow clicks through when closed */
  transition: opacity 240ms ease, transform 260ms cubic-bezier(.2,.9,.2,1);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.header-accordion.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto; /* enable interaction when open */
}
.header-accordion .container { padding: 0 1.5rem; }
.accordion-nav { display: flex; gap: 1rem; align-items: center; justify-content: center; flex-wrap: wrap; }
.accordion-nav a { color: var(--color-text-inv); text-decoration: none; padding: 0.5rem 0.8rem; border-radius: 6px; font-weight: 600; position: relative; }
/* add subtle vertical separator between items (like header) */
.accordion-nav a { border-left: 1px solid rgba(255,255,255,0.12); margin-left: 1rem; }
.accordion-nav a:first-child { border-left: none; margin-left: 0; }
.accordion-nav a:hover { color: var(--color-accent); background: rgba(255,255,255,0.02); }

@media (max-width: 768px) {
  .accordion-nav { gap: 0.6rem; }
  .accordion-nav a { margin-left: 0.6rem; }
  /* ensure overlay sits below compact mobile header height */
  .header-accordion { top: var(--header-height); }
  /* hide overlay accordion entirely on mobile — use simple nav */
  .header-accordion { display: none !important; }

  /* Mobile header: keep logo + simple menu button and show only flags for language */
  .header-inner { align-items: center; }
  .main-nav { position: static; transform: none; width: auto; display: flex; gap: 0.4rem; justify-content: flex-start; }
  .main-nav a { border-left: none; margin-left: 0.6rem; padding: 0.4rem 0.6rem; }
  /* hide textual language links, show flags only */
  .lang-switch a { display: inline-block; padding: 0; }
  .lang-switch a span { display: none; } /* if you have text within the link */
  .lang-switch .lang-flag { height: 18px; margin-right: 0; }

  /* --- Disable animations/transitions on mobile --- */
  .site-header,
  .site-header *,
  .header-inner,
  .header-inner *,
  .main-nav a,
  header.site-header .logo img,
  .lang-switch a { transition: none !important; animation: none !important; }

  /* Remove transforms and translate effects on mobile */
  .main-nav a { transform: none !important; box-shadow: none !important; }
  header.site-header .logo img { transform: none !important; height: auto !important; }
}

/* --- Mobile-only header -------------------------------------------------- */
/* By default .site-header-mobile is hidden; it's shown only on small screens and
   the desktop .site-header is hidden to avoid duplication. */
.site-header-mobile { display: none; }

@media (max-width: 768px) {
  /* hide desktop header to replace with mobile-only header */
  .site-header { display: none !important; }

  /* show mobile header */
  .site-header-mobile {
    display: flex;
    flex-wrap: wrap; /* allows .mobile-nav to drop to a second row when open */
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    background: var(--color-primary);
    color: var(--color-text-inv);
    width: 100vw;
    box-sizing: border-box;
    padding: 0.5rem 10px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    margin: 0;
  }

  .site-header-mobile .mobile-logo img {
    height: 44px;
    width: auto;
    display: block;
  }

  /* centered toggle button area */
  .site-header-mobile .mobile-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    gap: 0.5rem;
  }

  /* mobile nav: hidden by default, full-width row when open */
  .site-header-mobile .mobile-nav {
    display: none;
    width: 100%;
    background: var(--color-primary);
    border-top: 1px solid rgba(255,255,255,0.08);
    flex-basis: 100%; /* take full row when flex-wrap kicks in */
  }
  .site-header-mobile.open .mobile-nav {
    display: block;
  }

  .site-header-mobile .mobile-nav a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--color-text-inv);
    text-decoration: none;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .site-header-mobile .mobile-nav a:last-child { border-bottom: none; }
  .site-header-mobile .mobile-nav a[aria-current="page"] { color: var(--color-accent); }

  /* hamburger / menu toggle button */
  .mobile-menu-toggle {
    background: transparent;
    border: none;
    color: var(--color-text-inv);
    font-size: 1.1rem;
    padding: 0.35rem 0.5rem;
    cursor: pointer;
  }

  /* language flags: show only flags, aligned right */
  .site-header-mobile .lang-switch { display: flex; gap: 0.4rem; align-items: center; }
  .site-header-mobile .lang-switch .lang-flag { height: 18px; margin-right: 0; }
}

/* ============================================================
   16. Pàgines de servei interior
   ============================================================ */

/* Breadcrumb ------------------------------------------------- */
.breadcrumb {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 0.65rem 0;
  font-size: 0.8rem;
  color: var(--color-text-soft);
}
.breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
}
.breadcrumb li + li::before {
  content: '›';
  margin-right: 0.3rem;
  color: var(--color-text-soft);
}
.breadcrumb a {
  color: var(--color-text-soft);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb [aria-current="page"] { color: var(--color-text); font-weight: 600; }

/* Hero override per a pàgines servei (background manual) ----- */
.page-hero--reforma {
  background-image: url('/images/reforma cocina.jpg');
}

/* Secció intro 2 col ---------------------------------------- */
.sp-intro {
  padding: clamp(3.5rem, 6vw, 5rem) 0;
  background: #fff;
}
.sp-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.sp-intro-img {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.sp-intro-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sp-intro-text h2 {
  margin: 0 0 1rem;
  line-height: 1.2;
}
.sp-intro-text p {
  color: var(--color-text-soft);
  line-height: 1.75;
  margin: 0 0 1.5rem;
}
.sp-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.sp-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-text);
}
.sp-checklist li::before {
  content: '';
  display: block;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  background: var(--color-accent);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%23111' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 70%;
}

/* Grid de subtipus ------------------------------------------ */
.sp-types {
  background: var(--color-surface);
  padding: clamp(3.5rem, 6vw, 5rem) 0;
}
.sp-types h2 {
  text-align: center;
  margin: 0 0 2.5rem;
}
.sp-types-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.sp-types-grid--3col {
  grid-template-columns: repeat(3, 1fr);
}
.sp-type-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem 1.5rem;
  text-align: center;
}
/* === Icones SVG inline — sp-type-icon ===
   Substitueix l'estil emoji (font-size + display:block).
   Flex centra l'SVG tant horitzontalment com verticalment
   dins la seva "capsa" de 2.5rem, i el margin-bottom manté
   la separació amb el títol de la targeta.                   */
.sp-type-card .sp-type-icon,
.sp-type-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 0.75rem;
}
.sp-type-icon svg {
  width: 2.2rem;
  height: 2.2rem;
  stroke: #f2b705;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.sp-type-card h3 {
  font-size: 0.95rem;
  margin: 0 0 0.6rem;
  color: var(--color-text);
}
.sp-type-card p {
  font-size: 0.85rem;
  color: var(--color-text-soft);
  line-height: 1.6;
  margin: 0;
}

/* Procés (timeline passos) ---------------------------------- */
.sp-process {
  background: #fff;
  padding: clamp(3.5rem, 6vw, 5rem) 0;
}
.sp-process h2 {
  text-align: center;
  margin: 0 0 0.75rem;
}
.sp-process-subtitle {
  text-align: center;
  color: var(--color-text-soft);
  margin: 0 0 3rem;
  font-size: 1rem;
}
.sp-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}
.sp-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 1rem);
  right: calc(12.5% + 1rem);
  height: 2px;
  background: var(--color-accent);
  opacity: 0.3;
}
.sp-step {
  text-align: center;
  position: relative;
}
.sp-step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.sp-step h3 {
  font-size: 0.95rem;
  margin: 0 0 0.4rem;
  color: var(--color-text);
}
.sp-step p {
  font-size: 0.85rem;
  color: var(--color-text-soft);
  line-height: 1.6;
  margin: 0;
}

/* Trust strip ----------------------------------------------- */
.sp-trust {
  background: var(--color-primary);
  padding: 2.5rem 0;
}
.sp-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}
.sp-trust-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-accent);
  margin-bottom: 0.3rem;
}
.sp-trust-item span {
  color: #ccc;
  font-size: 0.9rem;
}

/* Galeria --------------------------------------------------- */
.sp-gallery {
  background: var(--color-surface);
  padding: clamp(3rem, 5vw, 4.5rem) 0;
}
.sp-gallery h2 {
  text-align: center;
  margin: 0 0 2rem;
}
.sp-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.sp-gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.sp-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.sp-gallery-item:hover img { transform: scale(1.04); }

/* FAQ ------------------------------------------------------- */
.sp-faq {
  background: #fff;
  padding: clamp(3.5rem, 6vw, 5rem) 0;
}
.sp-faq h2 {
  text-align: center;
  margin: 0 0 2.5rem;
}
.sp-faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.sp-faq-item {
  border-bottom: 1px solid var(--color-border);
}
.sp-faq-item:last-child { border-bottom: none; }
.sp-faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.4rem;
  cursor: pointer;
  background: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
  gap: 1rem;
  transition: background 0.2s;
  list-style: none;
}
.sp-faq-q::-webkit-details-marker { display: none; }
.sp-faq-q::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--color-accent);
  flex-shrink: 0;
  transition: transform 0.25s;
}
details[open] > .sp-faq-q::after {
  transform: rotate(45deg);
}
details[open] > .sp-faq-q {
  background: var(--color-surface);
  color: var(--color-accent);
}
.sp-faq-a {
  padding: 0 1.4rem 1.1rem;
  background: var(--color-surface);
  font-size: 0.9rem;
  color: var(--color-text-soft);
  line-height: 1.7;
}
.sp-faq-a p { margin: 0; }

/* CTA final ------------------------------------------------- */
.sp-cta {
  background: var(--color-accent);
  padding: clamp(3.5rem, 6vw, 5rem) 0;
}
.sp-cta-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.sp-cta-inner h2 {
  color: var(--color-primary);
  margin: 0 0 0.6rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.sp-cta-inner p {
  color: rgba(0,0,0,0.65);
  margin: 0 0 2rem;
  font-size: 1rem;
}
.sp-cta-form {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  text-align: left;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.sp-cta-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.sp-cta-form input,
.sp-cta-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: var(--font-body);
  color: var(--color-text);
  background: #fafafa;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.sp-cta-form input:focus,
.sp-cta-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background: #fff;
}
.sp-cta-form textarea {
  grid-column: 1 / -1;
  resize: vertical;
  min-height: 100px;
}
.sp-cta-form .turnstile-wrap {
  grid-column: 1 / -1;
  margin-top: 0.25rem;
}
.sp-cta-form-submit {
  grid-column: 1 / -1;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 0.9rem 2rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
  margin-top: 0.25rem;
}
.sp-cta-form-submit:hover { background: #222; }
.sp-form-status {
  grid-column: 1 / -1;
  font-size: 0.88rem;
  min-height: 1.4rem;
  text-align: center;
}

/* Hero CTA buttons ------------------------------------------ */
.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-accent);
  color: var(--color-primary);
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--color-accent-hover); color: var(--color-primary); }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.45);
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: #fff; color: #fff; }

/* Responsive servei interior -------------------------------- */
@media (max-width: 900px) {
  .sp-types-grid { grid-template-columns: repeat(2, 1fr); }
  .sp-types-grid--3col { grid-template-columns: repeat(3, 1fr); }
  .sp-steps { grid-template-columns: repeat(2, 1fr); }
  .sp-steps::before { display: none; }
  .sp-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .sp-cta-form .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .sp-intro-grid { grid-template-columns: 1fr; }
  .sp-intro-img { aspect-ratio: 16/9; }
  .sp-types-grid { grid-template-columns: 1fr; }
  .sp-types-grid--3col { grid-template-columns: 1fr; }
  .sp-steps { grid-template-columns: 1fr; }
  .sp-trust-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .sp-gallery-grid { grid-template-columns: 1fr; }
}

/* --- 17. Secció Preus per m² (sp-prices) ------------------- */
.sp-prices {
  background: #fff;
  padding: clamp(3.5rem, 6vw, 5rem) 0;
}
.sp-prices > .container > h2 {
  text-align: center;
  margin-bottom: 0.5rem;
}
.sp-prices > .container > p {
  text-align: center;
  color: var(--color-text-soft);
  margin: 0 auto 2.5rem;
  max-width: 560px;
}

/* Grid de 3 targetes de preu */
.sp-prices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

/* Targeta base */
.sp-price-card {
  border: 1.5px solid var(--color-border);
  border-top: 4px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.sp-price-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}

/* Targeta destacada (center/middle) */
.sp-price-card--featured {
  background: var(--color-primary);
  border-color: var(--color-accent);
  border-top-color: var(--color-accent);
  position: relative;
}
.sp-price-card--featured::before {
  content: 'Més sol·licitat';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: #111;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 20px;
  white-space: nowrap;
}
.sp-price-card--featured .sp-price-level { color: #aaa; }
.sp-price-card--featured .sp-price-range { color: var(--color-accent); }
.sp-price-card--featured h3 { color: #fff; }
.sp-price-card--featured p { color: #bbb; }

/* Etiqueta de nivell (Econòmic / Estàndard / Premium) */
.sp-price-level {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-soft);
  margin-bottom: 0.3rem;
}

/* Preu gran */
.sp-price-range {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.1;
}
.sp-price-range span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-soft);
}
.sp-price-card--featured .sp-price-range span { color: #aaa; }

/* Títol i descripció dins targeta */
.sp-price-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0.4rem 0 0;
  color: var(--color-text);
}
.sp-price-card p {
  font-size: 0.88rem;
  color: var(--color-text-soft);
  margin: 0;
  line-height: 1.55;
}

/* Taula d'exemples de preu */
.sp-price-examples {
  max-width: 620px;
  margin: 0 auto;
}
.sp-price-examples h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-align: center;
  color: var(--color-text);
}
.sp-price-table {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.sp-price-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 1px solid var(--color-border);
}
.sp-price-row:last-child { border-bottom: none; }
.sp-price-row > span {
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  color: var(--color-text);
  border-right: 1px solid var(--color-border);
}
.sp-price-row > span:last-child { border-right: none; }

/* Fila de capçalera */
.sp-price-row--header {
  background: var(--color-surface);
}
.sp-price-row--header > span {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-soft);
}

/* Nota a peu de taula */
.sp-price-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--color-text-soft);
  margin-top: 0.75rem;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 900px) {
  .sp-prices-grid { grid-template-columns: 1fr; max-width: 440px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 640px) {
  .sp-price-row { grid-template-columns: 1fr 1fr; }
  .sp-price-row > span:first-child { grid-column: 1 / -1; font-weight: 600; background: var(--color-surface); }
  .sp-price-row--header > span:first-child { display: none; }
}

/* --- 18. Secció Per Què Azyron (sp-why) -------------------- */
.sp-why {
  background: var(--color-surface);
  padding: clamp(3.5rem, 6vw, 5rem) 0;
}
.sp-why > .container > h2 {
  text-align: center;
  margin-bottom: 0.5rem;
}
.sp-why > .container > p {
  text-align: center;
  color: var(--color-text-soft);
  margin: 0 auto 2.5rem;
  max-width: 520px;
}

/* Grid 3×2 */
.sp-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Ítem individual */
.sp-why-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}
.sp-why-item:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.07);
  transform: translateY(-3px);
}

/* === Icones SVG inline — sp-why-icon ===
   Mateixa lògica que sp-type-icon però per a la secció
   "Per què triar Azyron" (grid de 3 columnes).
   display:flex + margin:auto centra l'SVG dins el bloc.      */
.sp-why-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 0.85rem;
}
.sp-why-icon svg {
  width: 2.2rem;
  height: 2.2rem;
  stroke: #f2b705;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* Títol de l'ítem */
.sp-why-item h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  color: var(--color-text);
}

/* Descripció */
.sp-why-item p {
  font-size: 0.88rem;
  color: var(--color-text-soft);
  margin: 0;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 900px) {
  .sp-why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .sp-why-grid { grid-template-columns: 1fr; }
}
