/* =============================================================================
   FLIESENCENTER - Main Stylesheet
   Premium tile and renovation company in Altea, Costa Blanca
   ============================================================================= */

/* ===================== CSS CUSTOM PROPERTIES ===================== */
:root {
  --color-primary: #2F4BA2;
  --color-primary-hover: #253a80;

  --color-accent: #E63946;
  --color-accent-hover: #C53030;

  --color-dark: #0f172a;

  --color-bg: #F5F5F5;
  --color-white: #FFFFFF;

  --color-text-primary: #111111;
  --color-text-secondary: #555555;

  --color-nav-bg: #2657A6;
  --color-nav-dropdown-bg: #1e345c;

  --color-border: #EAEAEA;
  --color-gray-light: #F5F5F5;
  --color-gray-medium: #888888;
  --color-gray-dark: #444444;

  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.25);

  --border-radius: 8px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
  --border-radius-full: 9999px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  --max-width: 1400px;
  --section-padding: 100px;
  --nav-height: 80px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* ===================== TYPOGRAPHY SCALE ===================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(1.875rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }

/* ===================== LAYOUT UTILITIES ===================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: var(--section-padding) 0;
  background-color: var(--color-white);
}

.section-sm {
  padding: 60px 0;
}

.section-lg {
  padding: 140px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header .overline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--color-accent);
  border-radius: var(--border-radius-full);
  background: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.section-header .overline::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-white);
  flex-shrink: 0;
}

.section-header h2 {
  color: var(--color-text-primary);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

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

/* ===================== COLOR UTILITIES ===================== */
.text-white { color: var(--color-white); }
.text-accent { color: var(--color-accent); }
.text-primary { color: var(--color-primary); }
.text-muted { color: var(--color-text-secondary); }

.bg-dark { background-color: var(--color-dark); }
.bg-primary { background-color: var(--color-primary); }
.bg-light { background-color: var(--color-gray-light); }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--border-radius);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(230, 57, 70, 0.35);
}

.btn-secondary {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(47, 75, 162, 0.35);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

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

.btn-lg {
  padding: 1.125rem 2.5rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.8125rem;
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===================== NAVIGATION ===================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.navbar.transparent {
  background: transparent;
}

.navbar.scrolled {
  background: var(--color-nav-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav-logo img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  padding: 0.5rem 0.875rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.1);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-white);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.nav-dropdown-toggle .chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .chevron,
.nav-dropdown.open .chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.75rem + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: rgba(30, 52, 92, 0.99);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-lg);
  padding: 0.5rem;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Arrow notch — covers top border to look seamless */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 8px solid rgba(255, 255, 255, 0.1);
}

.nav-dropdown-menu::after {
  content: '';
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 7px solid rgba(30, 52, 92, 0.99);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  padding: 0.625rem 1rem;
  border-radius: 6px;
  transition: var(--transition-fast);
}

.nav-dropdown-menu a:hover {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.08);
  padding-left: 1.25rem;
}

/* Mega menu — Vercel-style 3-column services dropdown */
.nav-mega-menu {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  min-width: 860px;
  max-width: 1020px;
  padding: 1.25rem;
}

.nav-mega-col {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.nav-mega-heading {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  padding: 0.5rem 0.75rem 0.375rem;
  margin-bottom: 0.125rem;
}

.nav-dropdown-menu a.nav-mega-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.nav-dropdown-menu a.nav-mega-item:hover {
  background: rgba(255, 255, 255, 0.06);
  padding-left: 0.75rem;
}

.nav-mega-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.nav-mega-icon svg {
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.7);
}

.nav-mega-text {
  display: flex;
  flex-direction: column;
}

.nav-mega-title {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  line-height: 1.2;
  white-space: nowrap;
}

.nav-mega-desc {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.7rem;
  line-height: 1.2;
  margin-top: 1px;
}

@media (max-width: 1024px) {
  .nav-mega-menu {
    min-width: auto;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-mega-menu {
    display: none;
  }
}

/* Language Selector */
.lang-selector {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  padding: 0.5rem 0.875rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
}

.lang-btn:hover {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  background: var(--color-dark);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-lg);
  padding: 0.5rem;
  min-width: 140px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-2xl);
  z-index: 100;
}

.lang-selector.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
}

.lang-dropdown button {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  padding: 0.625rem 1rem;
  border-radius: 6px;
  transition: var(--transition-fast);
  cursor: pointer;
  background: none;
  border: none;
}

.lang-dropdown button:hover,
.lang-dropdown button.active {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.08);
}

/* The flags are inline SVG, not emoji, so they no longer depend on the font —
   see LANG_FLAGS in js/components.js. */
.lang-flag {
  display: inline-flex;
  align-items: center;
  vertical-align: -0.2em;
}

.lang-flag svg {
  display: block;
  width: 20px;
  height: 14px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 2px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  cursor: pointer;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-dark);
  z-index: 999;
  padding: var(--nav-height) 2rem 2rem;
  overflow-y: auto;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu > a,
.mobile-menu > button {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  padding: 1rem 1.25rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu > a:hover,
.mobile-menu > button:hover {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.08);
}

.mobile-menu-category {
  border-radius: var(--border-radius);
}

.mobile-menu-category-toggle {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  padding: 0.875rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.mobile-menu-category-toggle:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
}

.mobile-menu-category-toggle[aria-expanded="true"] {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.mobile-menu-chevron {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.mobile-menu-category-toggle[aria-expanded="true"] .mobile-menu-chevron {
  transform: rotate(180deg);
}

.mobile-menu-category-items {
  display: none;
  flex-direction: column;
  padding: 0.375rem 0.5rem 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-top: none;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.mobile-menu-category-items.open {
  display: flex;
}

.mobile-menu-category-items a {
  display: flex !important;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  padding: 0.625rem 1rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.mobile-menu-category-items a:hover {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.08);
}

.mobile-menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mobile-menu-icon svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary, rgba(255, 255, 255, 0.7));
}

.mobile-lang-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.mobile-lang-btn {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: var(--border-radius) !important;
  width: auto !important;
  font-size: 0.8rem !important;
  color: rgba(255, 255, 255, 0.8) !important;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.05em;
  background: none;
  cursor: pointer;
}

.mobile-lang-btn.active {
  background: rgba(47, 75, 162, 0.15) !important;
  border-color: var(--color-primary) !important;
  color: var(--color-primary) !important;
}

/* ===================== HERO SECTIONS ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #08112e;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 17, 46, 0.95);
  z-index: 1;
}

/* Floating shapes layer */
.hero-shapes {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

/* Outer wrapper: handles position, rotation, entrance animation */
.hero-shape {
  position: absolute;
}

/* Inner pill: handles visual appearance + continuous float */
.hero-shape-inner {
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  backdrop-filter: blur(2px);
  position: relative;
}

.hero-shape-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.12), transparent 70%);
}

/* Shape 1 — large blue pill, top-left, rotated 12° */
.hero-shape-1 {
  width: 600px;
  height: 140px;
  left: -5%;
  top: 20%;
  rotate: 12deg;
  animation: shapeEnter 2.4s 0.3s cubic-bezier(0.23, 0.86, 0.39, 0.96) backwards;
}
.hero-shape-1 .hero-shape-inner {
  background: linear-gradient(to right, rgba(47, 77, 162, 0.2), transparent);
  border: 1.5px solid rgba(47, 77, 162, 0.4);
  box-shadow: 0 8px 32px rgba(47, 77, 162, 0.18);
  animation: shapeFloatY 12s 2.8s ease-in-out infinite;
}

/* Shape 2 — red pill, bottom-right, rotated -15° */
.hero-shape-2 {
  width: 500px;
  height: 120px;
  right: 0%;
  bottom: 25%;
  rotate: -15deg;
  animation: shapeEnter 2.4s 0.5s cubic-bezier(0.23, 0.86, 0.39, 0.96) backwards;
}
.hero-shape-2 .hero-shape-inner {
  background: linear-gradient(to right, rgba(230, 57, 70, 0.2), transparent);
  border: 1.5px solid rgba(230, 57, 70, 0.4);
  box-shadow: 0 8px 32px rgba(230, 57, 70, 0.18);
  animation: shapeFloatY 9s 3s ease-in-out infinite;
}

/* Shape 3 — medium blue pill, bottom-left, rotated -8° */
.hero-shape-3 {
  width: 300px;
  height: 80px;
  left: 10%;
  bottom: 10%;
  rotate: -8deg;
  animation: shapeEnter 2.4s 0.4s cubic-bezier(0.23, 0.86, 0.39, 0.96) backwards;
}
.hero-shape-3 .hero-shape-inner {
  background: linear-gradient(to right, rgba(47, 77, 162, 0.18), transparent);
  border: 1.5px solid rgba(47, 77, 162, 0.35);
  box-shadow: 0 8px 32px rgba(47, 77, 162, 0.14);
  animation: shapeFloatY 14s 2.9s ease-in-out infinite;
}

/* Shape 4 — small red pill, top-right, rotated 20° */
.hero-shape-4 {
  width: 200px;
  height: 60px;
  right: 20%;
  top: 15%;
  rotate: 20deg;
  animation: shapeEnter 2.4s 0.6s cubic-bezier(0.23, 0.86, 0.39, 0.96) backwards;
}
.hero-shape-4 .hero-shape-inner {
  background: linear-gradient(to right, rgba(230, 57, 70, 0.18), transparent);
  border: 1.5px solid rgba(230, 57, 70, 0.35);
  box-shadow: 0 8px 32px rgba(230, 57, 70, 0.14);
  animation: shapeFloatY 11s 3.1s ease-in-out infinite;
}

/* Shape 5 — tiny white pill, top-center, rotated -25° */
.hero-shape-5 {
  width: 150px;
  height: 40px;
  left: 25%;
  top: 10%;
  rotate: -25deg;
  animation: shapeEnter 2.4s 0.7s cubic-bezier(0.23, 0.86, 0.39, 0.96) backwards;
}
.hero-shape-5 .hero-shape-inner {
  background: linear-gradient(to right, rgba(255, 255, 255, 0.12), transparent);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(255, 255, 255, 0.08);
  animation: shapeFloatY 8s 3.2s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--nav-height);
}

.hero-content .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

/* Centered variant for home hero */
.hero-container-centered {
  display: flex;
  flex-direction: column;
  align-items: center !important;
  text-align: center;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Hero badge pill */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  border: 1px solid rgba(47, 75, 162, 0.45);
  border-radius: var(--border-radius-full);
  background: rgba(47, 75, 162, 0.12);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
}

.hero-badge::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}

/* Overline pill (used on inner page heroes) */
.hero-overline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--color-accent);
  border-radius: var(--border-radius-full);
  background: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-white);
}

.hero-overline::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-white);
  flex-shrink: 0;
}

/* Hero description (above title in home hero) */
.hero-description {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: rgba(255, 255, 255, 0.75);
  max-width: 52ch;
  line-height: 1.7;
  font-weight: 400;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 900;
  color: var(--color-white);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero-title-centered {
  text-align: center;
  max-width: none;
  margin: 0 auto;
}

.hero-title span {
  color: var(--color-white);
  display: block;
}

/* First line of home hero title: white */
.hero-title > span:first-child {
  color: var(--color-white);
  -webkit-text-fill-color: var(--color-white);
}

/* Gradient title span — diagonal so it covers the full text block on all screens */
.hero-title-gradient {
  display: block;
  background: linear-gradient(
    135deg,
    #7b9ae0 20%,
    #ffffff 30%,
    #ffffff 60%,
    #f07078 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.8);
  max-width: 50ch;
  line-height: 1.7;
  font-weight: 400;
  margin: 0;
}

.hero-subtitle-centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-cta-centered {
  justify-content: center;
}

/* Page hero (smaller) */
.page-hero {
  min-height: 50vh;
  padding-top: var(--nav-height);
  display: flex;
  align-items: center;
}

.page-hero .hero-content {
  padding-top: 0;
}

.page-hero .hero-content .container {
  gap: 0.75rem;
}

.page-hero .hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  font-family: var(--font-heading);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2s ease-in-out infinite;
  cursor: pointer;
}

.scroll-indicator svg {
  width: 24px;
  height: 24px;
}

/* ===================== STATS BAR ===================== */
.stats-bar {
  background: radial-gradient(ellipse at 20% 50%, #2F4BA2 0%, #1a3278 35%, #0f172a 100%);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(47, 75, 162, 0.25) 0%, transparent 50%),
              radial-gradient(ellipse at 10% 80%, rgba(47, 75, 162, 0.15) 0%, transparent 40%);
}

.stats-bar .container {
  position: relative;
  z-index: 1;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 2rem 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--color-white);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}

.stat-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

/* ===================== ABOUT SECTION ===================== */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-split.reverse {
  direction: rtl;
}

.about-split.reverse > * {
  direction: ltr;
}

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

.about-image-wrapper img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  border-radius: var(--border-radius-xl);
}

.about-image-accent {
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  width: 200px;
  height: 200px;
  background: var(--color-primary);

  border-radius: var(--border-radius-xl);
  z-index: -1;
  opacity: 0.3;
}

.about-text .overline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--color-accent);
  border-radius: var(--border-radius-full);
  background: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.about-text .overline::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-white);
  flex-shrink: 0;
}

.about-text h2 {
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--color-text-secondary);
  font-size: 1.0625rem;
  line-height: 1.8;
}

.values-list {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.value-item svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
}

/* ===================== SERVICE CARDS ===================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem 2rem;
  border: 1px solid var(--color-border);
  transition: var(--transition);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: left;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--border-radius-lg);
  background: var(--color-gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: radial-gradient(circle at 30% 30%, var(--color-accent), var(--color-primary));
}

.service-icon svg {
  width: 32px;
  height: 32px;
  color: var(--color-primary);
  transition: var(--transition);
}

.service-card:hover .service-icon svg {
  color: var(--color-white);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--color-text-primary);
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.service-card .service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-top: 1.5rem;
  transition: var(--transition);
}

.service-card .service-link svg {
  width: 16px;
  height: 16px;
  transition: var(--transition);
}

.service-card .service-link:hover {
  color: var(--color-primary-hover);
}

.service-card .service-link:hover svg {
  transform: translateX(4px);
}

/* ===================== SERVICE DETAIL PAGES ===================== */

/* Split layout: text + image side by side */
.service-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.service-split-reverse {
  direction: rtl;
}

.service-split-reverse > * {
  direction: ltr;
}

.service-split-content .overline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--color-accent);
  border-radius: var(--border-radius-full);
  background: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.service-split-content .overline::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-white);
  flex-shrink: 0;
}

.service-split-content h2 {
  margin-bottom: 1rem;
}

.service-split-content p {
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.service-split-img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-lg);
}

/* ===================== BEFORE / AFTER SLIDER ===================== */
.ba-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.ba-slider img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-after {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.ba-after img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ba-before {
  position: relative;
  width: 100%;
  height: 100%;
}

.ba-label {
  position: absolute;
  bottom: 1rem;
  padding: 0.35rem 0.85rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-white);
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: var(--border-radius-full);
  pointer-events: none;
  z-index: 2;
}

.ba-label-before {
  left: 1rem;
}

.ba-label-after {
  right: 1rem;
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 3;
  pointer-events: none;
}

.ba-handle-line {
  flex: 1;
  width: 3px;
  background: var(--color-white);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}

.ba-handle-knob {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-primary);
}

@media (max-width: 1024px) {
  .ba-slider {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 480px) {
  .ba-handle-knob {
    width: 34px;
    height: 34px;
  }

  .ba-handle-knob svg {
    width: 16px;
    height: 16px;
  }

  .ba-label {
    font-size: 0.65rem;
    padding: 0.25rem 0.65rem;
    bottom: 0.75rem;
  }

  .ba-label-before {
    left: 0.75rem;
  }

  .ba-label-after {
    right: 0.75rem;
  }
}

/* Accent section with subtle gradient */
.service-section-accent {
  background: linear-gradient(135deg, rgba(47, 75, 162, 0.04) 0%, rgba(47, 75, 162, 0.08) 50%, rgba(230, 57, 70, 0.03) 100%);
}

@media (max-width: 1024px) {
  .service-split,
  .service-split-reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-split-reverse {
    direction: ltr;
  }

  .service-split-img {
    max-height: 320px;
  }
}

/* Service features list */
.service-features {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

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

.service-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
}

/* ===================== COMBINED DARK SECTION (SHOWROOM + RENOVATION) ===================== */
.combined-dark-section {
  background: radial-gradient(ellipse at 0% 0%, rgba(47, 75, 162, 0.5) 0%, transparent 50%),
              radial-gradient(ellipse at 100% 50%, rgba(230, 57, 70, 0.15) 0%, transparent 45%),
              radial-gradient(ellipse at 30% 100%, rgba(47, 75, 162, 0.3) 0%, transparent 50%),
              var(--color-dark);
  overflow: hidden;
  color: var(--color-white);
}

.combined-dark-section .about-text p {
  color: rgba(255, 255, 255, 0.85);
}

/* ===================== FEATURED SECTION (ALTERNATING) ===================== */
.featured-section {
  overflow: hidden;
}

.featured-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
}

.featured-image {
  position: relative;
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.featured-image:hover img {
  transform: scale(1.05);
}

.featured-content {
  background: var(--color-dark);
  padding: 4rem 4.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1.25rem;
}

.featured-content.light {
  background: var(--color-gray-light);
}

.featured-content.light h2,
.featured-content.light h3 {
  color: var(--color-text-primary);
}

.featured-content.light p {
  color: var(--color-text-secondary);
}

.featured-content .overline,
.featured-content .overline--gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--color-accent);
  border-radius: var(--border-radius-full);
  background: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-white);
  width: fit-content;
}

.featured-content .overline::before,
.featured-content .overline--gold::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-white);
  flex-shrink: 0;
}

.featured-content h2 {
  color: var(--color-white);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.2;
}

.featured-content p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.0625rem;
  line-height: 1.8;
}

.featured-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.featured-list li {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9375rem;
}

.featured-list li svg {
  width: 18px;
  height: 18px;
  color: var(--color-white);
  flex-shrink: 0;
}

/* ===================== GALLERY GRID ===================== */
.gallery-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  aspect-ratio: 4/3;
  cursor: pointer;
}

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

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.8) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay-icon {
  transform: translate(-50%, -50%) scale(1);
}

/* Full gallery */
.gallery-filter {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3rem;
}

.filter-btn {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.625rem 1.25rem;
  border-radius: var(--border-radius-full);
  border: 2px solid var(--color-border);
  color: var(--color-text-secondary);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.375rem;
  align-items: start;
}

.gallery-masonry .gallery-col {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.gallery-masonry .gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.625rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.gallery-masonry .gallery-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-masonry .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-masonry .gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-masonry .gallery-item .gallery-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45) 0%, transparent 50%);
}

.gallery-masonry .gallery-item.hidden {
  display: none;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-2xl);
}

.lightbox-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 1.5rem;
  line-height: 1;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

.lightbox-counter {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.1em;
}

/* ===================== TESTIMONIALS ===================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  border: 1px solid var(--color-border);
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.testimonial-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
  color: var(--color-accent);
}

.testimonial-stars svg {
  width: 18px;
  height: 18px;
}

.testimonial-text {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 0.5rem;
  font-style: italic;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.testimonial-text::before {
  content: '"';
  font-size: 3rem;
  color: var(--color-primary);

  opacity: 0.3;
  font-family: Georgia, serif;
  line-height: 0;
  vertical-align: -0.5rem;
  margin-right: 0.25rem;
}

.testimonial-google-link {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: color 0.2s ease;
}

.testimonial-google-link:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

.testimonial-author {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-white);
  flex-shrink: 0;
}

.testimonial-info strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.testimonial-info span {
  font-size: 0.8125rem;
  color: var(--color-gray-medium);
}

/* ===================== CTA BANNER ===================== */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-dark) 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 75, 162, 0.15) 0%, transparent 70%);
}

.cta-banner .container {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  color: var(--color-white);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.125rem;
  max-width: 500px;
  margin: 0 auto 2.5rem;
}

.cta-banner .btn-group {
  justify-content: center;
}

.cta-banner .btn-outline {
  color: var(--color-white);
  border-color: var(--color-white);
}

.cta-banner .btn-outline:hover {
  background-color: var(--color-white);
  color: var(--color-dark);
}

/* ===================== CONTACT SECTION ===================== */
.contact-section {
  background: var(--color-gray-light);
}

.contact-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: stretch;
}

.contact-mini-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-mini-map {
  display: flex;
}

.contact-mini-map .map-container {
  width: 100%;
  height: auto;
  min-height: 380px;
  flex: 1;
}

@media (max-width: 768px) {
  .contact-mini-grid {
    grid-template-columns: 1fr;
  }

  .contact-mini-map .map-container {
    min-height: 300px;
  }
}

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

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius);
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 22px;
  height: 22px;
  color: var(--color-white);
}

.contact-info-text strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gray-medium);
  margin-bottom: 0.25rem;
}

.contact-info-text span,
.contact-info-text a {
  font-size: 1rem;
  color: var(--color-text-primary);
  transition: var(--transition);
}

.contact-info-text a:hover {
  color: var(--color-primary);
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--color-white);
  border-radius: var(--border-radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-xl);
}

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

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-gray-dark);
  margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--color-border);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-text-primary);
  background: var(--color-white);
  transition: var(--transition);
  outline: none;
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(47, 75, 162, 0.1);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.form-error {
  font-size: 0.8125rem;
  color: var(--color-accent);
  margin-top: 0.375rem;
  display: none;
}

.form-error.visible {
  display: block;
}

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

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  background-size: 16px;
  padding-right: 2.5rem;
}

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

.form-success {
  background: #d1fae5;
  border: 2px solid #6ee7b7;
  border-radius: var(--border-radius);
  padding: 1rem 1.25rem;
  color: #065f46;
  font-weight: 500;
  display: none;
  margin-top: 1rem;
}

.form-success.visible {
  display: block;
}

.form-success.form-success-full {
  text-align: center;
  padding: 3rem 2rem;
  font-size: 1.125rem;
  border-radius: 12px;
  margin-top: 0;
}

/* RGPD Consent Checkbox */
.form-consent-group {
  margin-bottom: 1rem;
}

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.form-checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.form-checkbox-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid var(--color-border);
  border-radius: 4px;
  margin-top: 2px;
  transition: var(--transition);
}

.form-checkbox-mark::after {
  content: '';
  display: none;
  width: 5px;
  height: 9px;
  border: solid var(--color-white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.form-checkbox-label input[type="checkbox"]:checked + .form-checkbox-mark {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.form-checkbox-label input[type="checkbox"]:checked + .form-checkbox-mark::after {
  display: block;
}

.form-checkbox-label input[type="checkbox"]:focus-visible + .form-checkbox-mark {
  box-shadow: 0 0 0 3px rgba(47, 75, 162, 0.2);
}

.form-checkbox-label input[type="checkbox"].error + .form-checkbox-mark {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.form-checkbox-text a {
  color: var(--color-primary);
  text-decoration: underline;
}

.form-checkbox-text a:hover {
  color: var(--color-primary-hover);
}

/* RGPD First-Layer Info */
.form-rgpd-info {
  background: var(--color-gray-light);
  border-radius: var(--border-radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.form-rgpd-info p {
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin: 0;
}

.form-rgpd-info a {
  color: var(--color-primary);
  text-decoration: underline;
}

.form-rgpd-info a:hover {
  color: var(--color-primary-hover);
}

/* Opening Hours Table */
.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table tr {
  border-bottom: 1px solid var(--color-border);
}

.hours-table tr:last-child {
  border-bottom: none;
}

.hours-table td {
  padding: 0.75rem 0;
  font-size: 0.9375rem;
}

.hours-table td:first-child {
  font-weight: 600;
  color: var(--color-text-primary);
  font-family: var(--font-heading);
}

.hours-table td:last-child {
  text-align: right;
  color: var(--color-text-secondary);
}

/* WhatsApp button */
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background: #25D366;
  color: var(--color-white);
  padding: 0.875rem 1.5rem;
  border-radius: var(--border-radius);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: var(--transition);
}

.whatsapp-btn:hover {
  background: #1da851;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35);
}

.whatsapp-btn svg {
  width: 20px;
  height: 20px;
}

/* ===================== FOOTER ===================== */
.footer {
  background: var(--color-dark);
  padding: 80px 0 40px;
  color: rgba(255, 255, 255, 0.7);
}

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

.footer-brand .footer-logo {
  height: 60px;
  width: auto;
  margin-bottom: 1.25rem;
  filter: brightness(1.1);
}

.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.6);
}

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

.social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.social-link:hover {
  color: var(--color-white);
  transform: translateY(-2px);
}

.social-link[aria-label="Facebook"]:hover {
  background: #1877F2;
}

.social-link[aria-label="Instagram"]:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-link[aria-label="WhatsApp"]:hover {
  background: #25D366;
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-links a {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--color-white);
  padding-left: 0.375rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
  font-size: 0.9375rem;
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.footer-contact-item a {
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.footer-contact-item a:hover {
  color: var(--color-white);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copyright {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
}

/* Wrapping is not cosmetic here. Without it the row keeps all four items on one
   line and the last one — the button that reopens the cookie banner — is
   clipped off the right edge on a phone in German, Dutch and Norwegian, and in
   Spanish below 360px. That button is how a visitor withdraws consent, so it
   has to be reachable at every width. */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.footer-legal a,
.footer-legal .footer-legal-button {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
  transition: var(--transition);
}

.footer-legal a:hover,
.footer-legal .footer-legal-button:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* Opens the cookie banner again. It is a button, not a link — there is no URL
   behind it — but it sits among the legal links and must look like one. */
.footer-legal .footer-legal-button {
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  line-height: inherit;
  cursor: pointer;
}

/* ===================== PROCESS STEPS ===================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

.process-grid::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  z-index: 0;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.process-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 20px rgba(47, 75, 162, 0.3);
}

.process-step h4 {
  font-size: 1rem;
  margin-bottom: 0.625rem;
  color: var(--color-text-primary);
}

.process-step p {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin: 0;
}

/* ===================== VALUES GRID ===================== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}


/* ---------- Campaign landing pages ---------- */

/* The stripped-down navbar: logo, language, WhatsApp. With the menu gone the
   logo would otherwise sit alone against a far-right cluster, so the row is
   spaced rather than stretched by a missing middle column. */
.navbar-minimal .container {
  justify-content: space-between;
}

/* ---------- Campaign hero ----------
   Content on the left aligned to the container, photograph bleeding to the
   right edge of the screen. Sized by its content: at 100vh everything below
   was pushed off for no reason, and a visitor arriving from an ad already
   knows roughly what this is. */
.hero-landing {
  min-height: auto;
  padding: 0;
}

.hero-landing .hero-content {
  width: 100%;
  padding: 0;
}

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  width: 100%;
  text-align: left;
}

/* The left column carries the container's own gutter so the text lines up with
   every other section of the site, while the photo keeps running to the edge. */
.hero-split-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding: calc(var(--nav-height) + 3.5rem) 3.5rem 4rem
           max(2rem, calc((100vw - var(--max-width)) / 2 + 2rem));
}

.hero-split .hero-overline {
  margin: 0 0 1.75rem;
  text-align: left;
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
}

/* El degradado va sobre el titulo completo, no sobre la segunda linea. Se
   aplica al h1 y las dos mitades fluyen como una sola frase, sin salto
   forzado: partirlo en bloques dejaba huecos raros entre las lineas. */
.hero-split .hero-title {
  margin: 0 0 2.5rem;
  text-align: left;
  font-size: clamp(2.25rem, 3.9vw, 3.875rem);
  line-height: 1.06;
  /* El degradado de la casa, el mismo de la portada: azul, se abre a blanco y
     termina en rojo. Aqui cubre el titulo entero, no solo la ultima linea. */
  background: linear-gradient(
    135deg,
    #7b9ae0 12%,
    #ffffff 32%,
    #ffffff 62%,
    #f07078 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Las dos mitades son texto corrido y ninguna se pinta a si misma: el fondo del
   h1, recortado a la forma de las letras, tiene que verse a traves de las dos.
   En la portada hay reglas que pintan el primer span de blanco opaco y ponen el
   degradado solo en el segundo; aqui hay que anularlas las dos, o el titulo
   sale medio blanco liso y medio invisible. */
.hero-split .hero-title > span,
.hero-split .hero-title > span:first-child,
.hero-split .hero-title .hero-title-gradient {
  display: inline;
  background: none;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Sin position: un descendiente posicionado se pinta en su propia capa y el
   fondo recortado del h1 no lo atraviesa: la mitad del titulo desaparecia. */
.hero-split .hero-title .hero-title-underline {
  white-space: normal;
  position: static;
}
.hero-split .hero-title .hero-title-underline::after { display: none; }

/* The accent under one word, as on the reference. A pseudo-element rather than
   text-decoration so the thickness and the gap do not depend on the font. */
.hero-title-underline {
  position: relative;
  white-space: nowrap;
}

.hero-title-underline::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.04em;
  height: 0.09em;
  background: var(--color-accent);
  border-radius: 2px;
}

/* Proof on one side, the offer and the button on the other. */
/* La tarjeta de resenas no puede comerse la columna: con `auto` se quedaba con
   su ancho minimo y empujaba la descripcion a una tira de 190px. */
.hero-proof-row {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.hero-reviews {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem 1.5rem;
}

.hero-reviews-top {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.875rem;
}

.hero-reviews-score {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 2.25rem;
  line-height: 1;
  color: var(--color-white);
}

.hero-reviews-stars {
  display: flex;
  gap: 0.15rem;
  color: #FBBC04;
  margin-bottom: 0.5rem;
}

.hero-reviews-stars svg { width: 1rem; height: 1rem; }

.hero-reviews p {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.45;
}

.hero-split .hero-description {
  margin: 0 0 1.75rem;
  text-align: left;
  max-width: 42ch;
}

/* El boton se ajusta a su texto y no se estira dentro de la rejilla, que era lo
   que lo sacaba por debajo de la foto. */
.hero-proof-row .btn {
  width: fit-content;
  max-width: 100%;
}

/* El icono no se encoge. Con el texto largo el flex lo reducia a cero ancho y
   el boton quedaba sin el simbolo de WhatsApp, que es lo que se reconoce. */
.hero-proof-row .btn svg {
  flex: none;
}

.hero-split-media {
  position: relative;
  min-height: 100%;
}

/* La cabecera vuelve a ser transparente, como en el resto del sitio. Sobre una
   foto clara el selector de idioma se perdia, asi que la foto lleva un velo
   oscuro arriba: se mantiene transparente y se lee. */
.hero-split-media::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: calc(var(--nav-height) + 2.5rem);
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0));
  z-index: 1;
  pointer-events: none;
}

.hero-split-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* One column below the tablet breakpoint: text first, then the photograph. The
   proof card and the offer stack rather than sitting side by side. */
/* En vertical (tablet de pie y movil) el hero pasa a una columna y se centra.
   A todo el ancho el texto quedaba en lineas larguisimas, asi que se limita la
   medida y se centra el bloque entero. La tarjeta de resenas baja: primero la
   oferta y el boton, la prueba social despues. */
@media (max-width: 1100px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-split-text {
    padding: calc(var(--nav-height) + 2.5rem) 2rem 2.5rem;
    align-items: center;
    text-align: center;
  }
  .hero-split-text > *,
  .hero-proof-row {
    max-width: 40rem;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-split .hero-overline { align-self: center; }
  .hero-split .hero-title {
    text-align: center;
    font-size: clamp(2.5rem, 5.4vw, 3.5rem);
  }
  .hero-split .hero-description {
    text-align: center;
    max-width: 38rem;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-proof-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  .hero-proof-row > div:last-child { order: 1; }   /* descripcion y boton */
  .hero-reviews { order: 2; width: 100%; max-width: 26rem; text-align: left; }
  .hero-proof-row .btn { margin: 0 auto; }

  .hero-split-media { min-height: 320px; max-height: 42vh; }
  .hero-split-media img {
    position: relative;
    /* En apaisado corto, el encuadre por defecto dejaba solo la palmera.
       Este desplazamiento mantiene la casa y la piscina en cuadro. */
    object-position: 34% 62%;
  }
}

@media (max-width: 600px) {
  .hero-split-text { padding: calc(var(--nav-height) + 1.5rem) 1.25rem 2rem; }
  .hero-split .hero-title { margin-bottom: 1.75rem; }
  .hero-split .hero-overline { margin-bottom: 1.25rem; }
  .hero-split-media { min-height: 240px; max-height: 34vh; }
  .hero-reviews { padding: 1.25rem 1.375rem; }
}

/* El titulo son dos frases en dos <span>: el servicio y el lugar. Dejados a su
   aire, el salto de linea caia dentro del lugar y partia "Costa Blanca" en dos
   lineas. A partir de la tablet el corte se fuerza en la frontera de los span,
   que es donde tiene sentido. En movil no: alli costaria una linea de mas y el
   texto ya cae bien solo. El span sigue en flujo normal y sin color propio, o
   el degradado recortado sobre el texto del h1 no lo atraviesa. */
@media (min-width: 601px) {
  body[data-page="landing"] .hero-split .hero-title > span:first-child {
    display: block;
  }
}

/* El encuadre de la foto de portada depende de como este compuesta cada una:
   la columna es estrecha y alta, asi que un centrado ciego recorta justo lo que
   hay que ensenar. data-landing lo identifica. */
body[data-landing="bathroom"] .hero-split-media img {
  /* Deja en cuadro la mampara de la ducha, el mueble y el espejo. */
  object-position: 30% 50%;
}

/* Las dos fotos de bano de la seccion de obras son verticales; recortadas a los
   360px de una comparacion antes/despues se perdian la ducha y el inodoro. */
.renovation-comparison--portrait .project-image-wrapper img {
  height: 460px;
}

@media (max-width: 768px) {
  .renovation-comparison--portrait .project-image-wrapper img {
    height: 340px;
  }
}

/* ===================== LANDING — TARJETAS EN MOVIL =====================
   En la landing las tarjetas son una lista de argumentos que se lee de corrido,
   no seis destinos donde pinchar. En columna unica el icono se pone al lado del
   texto: cada tarjeta baja de ~300px a ~150px y caben dos por pantalla.
   Acotado con data-page="landing" para no alterar las tarjetas del resto del
   sitio, que el propietario ya dio por buenas. */
@media (max-width: 768px) {
  body[data-page="landing"] .services-grid {
    gap: 0.75rem;
  }

  body[data-page="landing"] .service-card {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 1rem;
    align-items: start;
    /* Cuando la tarjeta se estira hasta la altura de su vecina de fila, el
       sobrante debe quedarse abajo. Sin esto se reparte entre las dos filas y
       el texto se despega del titulo solo en esa tarjeta. */
    align-content: start;
    padding: 1.375rem 1.25rem;
  }

  body[data-page="landing"] .service-icon {
    /* Ocupa las dos filas: si se quedara en la primera, sus 44px marcarian el
       alto de la fila del titulo y separarian 24px el texto del encabezado. */
    grid-row: 1 / span 2;
    width: 44px;
    height: 44px;
    margin-bottom: 0;
    border-radius: var(--border-radius);
  }

  body[data-page="landing"] .service-icon svg {
    width: 22px;
    height: 22px;
  }

  body[data-page="landing"] .service-card h3 {
    grid-column: 2;
    font-size: 1.0625rem;
    margin-bottom: 0.375rem;
  }

  body[data-page="landing"] .service-card p {
    grid-column: 2;
    font-size: 0.875rem;
    line-height: 1.6;
  }
}

/* Entre el movil y la tablet la tarjeta compacta a todo el ancho daria lineas
   de 700px. Se mantienen dos columnas hasta 600px, que es donde el hero pasa
   tambien a su version estrecha. */
@media (min-width: 601px) and (max-width: 768px) {
  body[data-page="landing"] .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.value-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.value-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.value-icon svg {
  width: 36px;
  height: 36px;
  color: var(--color-white);
}

.value-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  color: var(--color-text-primary);
}

.value-card p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* ===================== DARK SECTION ===================== */
.dark-section {
  background: radial-gradient(ellipse at 100% 0%, rgba(47, 75, 162, 0.45) 0%, transparent 60%),
              radial-gradient(ellipse at 0% 100%, rgba(230, 57, 70, 0.2) 0%, transparent 50%),
              var(--color-dark);
  color: var(--color-white);
}

.dark-section h2,
.dark-section h3,
.dark-section h4 {
  color: var(--color-white);
}

.dark-section p {
  color: rgba(255, 255, 255, 0.75);
}

.dark-section .overline {
  color: var(--color-white) !important;
  border-color: var(--color-accent) !important;
  background: var(--color-accent) !important;
}

/* ===================== MAP SECTION ===================== */
.map-container {
  width: 100%;
  height: 480px;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* The map is not embedded until the visitor asks for it. A Google Maps iframe
   opens a connection to Google and hands over the visitor's IP address, and
   doing that before they have chosen anything is the one thing the consent
   banner exists to prevent. Until then this placeholder stands in its place —
   it fills the same box, so nothing shifts when the map arrives. */
.map-consent {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 1.5rem;
  text-align: center;
  background: var(--color-off-white, #f5f6f8);
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: inherit;
}

.map-consent p {
  max-width: 46ch;
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(16, 24, 40, 0.65);
}

.map-consent a {
  font-size: 0.875rem;
  color: rgba(16, 24, 40, 0.55);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast, 0.2s ease);
}

.map-consent a:hover,
.map-consent a:focus-visible {
  color: var(--color-primary, #1f3a93);
}

/* ===================== SCROLL ANIMATIONS ===================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.animate-left {
  transform: translateX(-30px);
}

.animate-on-scroll.animate-right {
  transform: translateX(30px);
}

.animate-on-scroll.animate-scale {
  transform: scale(0.92);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }
.animate-delay-5 { transition-delay: 0.5s; }

/* ===================== TILE CATEGORIES ===================== */
.tile-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.tile-category-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  aspect-ratio: 4/3;
  cursor: pointer;
}

.tile-category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.tile-category-card:hover img {
  transform: scale(1.08);
}

.tile-category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.tile-category-overlay h3 {
  font-size: 1.125rem;
  color: var(--color-white);
}

/* ===================== PROJECT TYPES ===================== */
.project-types {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}


.project-type-card {
  text-align: center;
  padding: 2rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-lg);
  transition: var(--transition);
  cursor: default;
}

.project-type-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.project-type-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(47, 75, 162, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.project-type-icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-white);
}

.project-type-card h4 {
  font-size: 0.9375rem;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.project-type-card p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
  line-height: 1.5;
}

/* ===================== BADGE ===================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.375rem 0.875rem;
  border-radius: var(--border-radius-full);
}

.badge-primary {
  background: rgba(47, 75, 162, 0.1);
  color: var(--color-primary);
  border: 1px solid rgba(47, 75, 162, 0.2);
}

.badge-accent {
  background: rgba(230, 57, 70, 0.1);
  color: var(--color-accent);
  border: 1px solid rgba(230, 57, 70, 0.2);
}

/* ===================== TEAM STATEMENT ===================== */
.team-statement {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.team-statement .overline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--color-accent);
  border-radius: var(--border-radius-full);
  background: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 1rem;
}

.team-statement .overline::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-white);
  flex-shrink: 0;
}

.team-statement h2 {
  margin-bottom: 1.5rem;
}

.team-statement-lead {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text-secondary);
  margin-bottom: 3rem;
}

.team-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
  max-width: 100%;
}

.team-highlight-item {
  padding: 1.5rem;
}

.team-highlight-item h4 {
  font-size: 1.05rem;
  color: var(--color-text-primary);
  margin-bottom: 0.5rem;
}

.team-highlight-item p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin: 0;
}

/* ===================== RESPONSIVE BREAKPOINTS ===================== */

/* 1280px */
@media (max-width: 1280px) {
  :root {
    --section-padding: 80px;
  }

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

  .featured-content {
    padding: 3rem 3rem;
  }

  .project-types {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 1024px */
@media (max-width: 1024px) {
  :root {
    --section-padding: 70px;
  }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }

  .contact-grid {
    gap: 2.5rem;
  }

  .grid-4.grid-gap-lg {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .stat-item:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
  }

  .stat-item:nth-child(3),
  .stat-item:nth-child(4) {
    border-bottom: none;
  }

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

  .about-image-wrapper img {
    height: 400px;
  }

  .about-split.reverse {
    direction: ltr;
  }

  .featured-split {
    grid-template-columns: 1fr;
  }

  .featured-content {
    padding: 3rem 2rem;
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 3rem;
  }

  .process-grid::before {
    display: none;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .tile-categories {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-highlights {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-masonry {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
}

/* 768px */
@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
    --nav-height: 70px;
  }

  .container {
    padding: 0 1.25rem;
  }

  /* Nav — not sticky on mobile/tablet */
  .navbar {
    position: relative;
    background: var(--color-nav-bg);
  }

  .navbar.transparent {
    background: var(--color-nav-bg);
  }

  .navbar.scrolled {
    box-shadow: none;
    border-bottom: none;
  }

  .nav-menu {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .lang-selector {
    display: none;
  }

  /* On the ordinary pages the language buttons move into the mobile menu at
     this width. A campaign landing page has no mobile menu, so hiding the
     selector here would leave a phone visitor with no way to change language
     at all. */
  .navbar-minimal .lang-selector {
    display: block;
  }

  .nav-whatsapp-btn {
    display: none;
  }

  /* Remove fixed-nav padding since navbar is now relative */
  .hero-content {
    padding-top: 0;
  }

  .page-hero {
    padding-top: 0;
  }

  /* Hero */
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .btn-group {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .btn-group .btn {
    width: 100%;
    max-width: 360px;
    text-align: center;
    justify-content: center;
    white-space: normal;
  }

  /* Center ALL buttons on mobile/tablet */
  .btn {
    display: flex;
    justify-content: center;
    text-align: center;
    white-space: normal;
  }

  .service-split-content,
  .cta-banner .container,
  .featured-content {
    text-align: center;
  }

  .service-split-content .btn,
  .cta-banner .btn {
    margin-left: auto;
    margin-right: auto;
    max-width: 360px;
    width: 100%;
  }

  .service-split-content .btn-group {
    align-items: center;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Gallery */
  .gallery-preview {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-masonry {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .gallery-masonry .gallery-item {
    border-radius: 0.5rem;
    aspect-ratio: auto !important;
  }

  .gallery-masonry .gallery-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

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

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr;
  }

  /* Form */
  .form-row {
    grid-template-columns: 1fr;
  }

  /* Process */
  .process-grid {
    grid-template-columns: 1fr;
  }

  /* Values */
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Project types */
  .project-types {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Tile categories */
  .tile-categories {
    grid-template-columns: 1fr;
  }

  /* Team */
  .team-highlights {
    grid-template-columns: 1fr;
  }

  .contact-form-wrapper {
    padding: 2rem 1.5rem;
  }

  /* Featured */
  .featured-content {
    padding: 2.5rem 1.5rem;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .values-list {
    grid-template-columns: 1fr;
  }

  /* Legal pages — navbar is in flow, remove fixed-nav padding */
  .legal-page {
    padding-top: 3rem;
  }

  /* 404 page — navbar is in flow */
  .error-page {
    min-height: calc(100vh - var(--nav-height));
  }

  /* Grid utilities */
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }

  /* Contact grid gap */
  .contact-grid {
    gap: 2.5rem;
  }

  /* Page hero */
  .page-hero {
    min-height: 40vh;
  }

  /* Hero shapes — hide on mobile */
  .hero-shapes {
    display: none;
  }

  /* Featured split */
  .featured-split {
    min-height: auto;
  }

  /* About image */
  .about-image-wrapper img {
    height: 300px;
  }

  /* Lightbox */
  .lightbox-prev { left: 0.75rem; }
  .lightbox-next { right: 0.75rem; }
}

/* 480px */
@media (max-width: 480px) {
  :root {
    --section-padding: 50px;
  }

  .gallery-preview {
    grid-template-columns: 1fr;
  }

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

  .project-types {
    grid-template-columns: 1fr;
  }

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

  .stat-item {
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  }

  .stat-item:last-child {
    border-bottom: none !important;
  }

  .gallery-masonry {
    grid-template-columns: 1fr;
  }

  .featured-content {
    padding: 2rem 1.25rem;
  }

  .process-step p {
    font-size: 0.8125rem;
  }

  /* Page hero */
  .page-hero {
    min-height: 35vh;
  }

  .contact-form-wrapper {
    padding: 1.5rem 1rem;
  }
}

/* =============================================================================
   WHATSAPP CTA COMPONENTS
   ============================================================================= */

/* ---- Nav WhatsApp button ---- */
.nav-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #25d366;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.45rem 1rem;
  border-radius: var(--border-radius-full);
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.35);
  flex-shrink: 0;
}
.nav-whatsapp-btn:hover,
.nav-whatsapp-btn:focus-visible {
  background: #1ebe5b;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.5);
  transform: translateY(-1px);
  color: #fff;
}
.nav-whatsapp-btn svg { flex-shrink: 0; }

/* Hide text on very small screens, keep icon only */
@media (max-width: 380px) {
  .nav-whatsapp-btn span { display: none; }
  .nav-whatsapp-btn { padding: 0.45rem 0.6rem; }
}

/* ---- Generic green WhatsApp button (for heroes, CTAs) ---- */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #25d366;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: var(--border-radius-full);
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}
.btn-whatsapp:hover,
.btn-whatsapp:focus-visible {
  background: #1ebe5b;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.55);
}
/* Size variants inherit from .btn-sm / .btn-lg */
.btn-whatsapp.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-whatsapp.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.875rem; }

/* ---- WhatsApp CTA banner (dark section) ---- */
.whatsapp-cta-section {
  background: linear-gradient(135deg, #075e54 0%, #128c7e 100%);
  padding: 4rem 0;
  text-align: center;
  color: #fff;
}
.whatsapp-cta-section h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 0.75rem;
}
.whatsapp-cta-section p {
  color: rgba(255,255,255,0.85);
  font-size: 1.0625rem;
  margin-bottom: 2rem;
}

/* ---- Mobile menu WhatsApp link ---- */
.mobile-whatsapp-link {
  display: flex !important;
  align-items: center;
  gap: 0.6rem;
  background: #25d366;
  color: #fff !important;
  font-weight: 700;
  border-radius: var(--border-radius);
  padding: 0.85rem 1.5rem !important;
  text-decoration: none;
  margin: 0.5rem 0;
  justify-content: center;
  transition: var(--transition);
  font-size: 0.875rem !important;
}
.mobile-whatsapp-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.mobile-whatsapp-link:hover { background: #1ebe5b; }

/* ---- Floating WhatsApp button ---- */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #25d366;
  color: #fff;
  padding: 0.85rem;
  border-radius: 50%;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5), 0 2px 8px rgba(0,0,0,0.15);
  transition: var(--transition);
  overflow: hidden;
  max-width: 220px;
  animation: waPulse 2.5s ease-in-out infinite;
}
.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  background: #1ebe5b;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.65), 0 4px 12px rgba(0,0,0,0.2);
  animation: none;
  color: #fff;
}
.whatsapp-float svg { flex-shrink: 0; width: 26px; height: 26px; }
.whatsapp-float-label {
  white-space: nowrap;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
}

@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5), 0 0 0 0 rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5), 0 0 0 10px rgba(37, 211, 102, 0); }
}

/* Collapse to icon-only on small screens */
@media (max-width: 480px) {
  .whatsapp-float {
    bottom: 1.25rem;
    right: 1.25rem;
    padding: 0.9rem;
    border-radius: 50%;
    max-width: none;
  }
  .whatsapp-float-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float { animation: none; }
}

/* =============================================================================
   UTILITY CLASSES
   Replaces one-off inline styles across all pages.
   ============================================================================= */

/* Nav right-side wrapper (lang selector + whatsapp + hamburger) */
.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Component placeholders — prevent layout jump while JS injects nav/footer */
/* #site-header is intentionally zero-height — the injected .navbar is position:fixed
   and handles all its own positioning. No layout properties needed here. */
#site-header {}

/* Footer address resets */
.footer-address {
  font-style: normal;
}

/* Inline margin helpers used in page content */
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.text-center { text-align: center; }

/* Constrained container for forms / contact info */
.constrained-600 {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Contact info WhatsApp icon background */
.contact-info-icon--whatsapp {
  background: #25D366;
  color: var(--color-white);
}

/* Project badge (renovation page before/after labels) */
.project-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-badge--dark {
  background: rgba(15, 23, 42, 0.8);
}

.project-badge--gold {
  background: var(--color-accent);
  color: var(--color-white);
}

/* Project image wrapper (renovation before/after images) */
.project-image-wrapper {
  position: relative;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
}

.project-image-wrapper img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

/* Overline in featured sections (e.g. showroom feature on homepage) */
.overline--gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--color-accent);
  border-radius: var(--border-radius-full);
  background: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-white);
}

.overline--gold::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-white);
  flex-shrink: 0;
}

/* Contact page sub-heading */
.contact-subheading {
  font-size: 1.125rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-heading);
}

/* Contact page note text */
.contact-note {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
}

/* Inline link emphasis */
.link-emphasis {
  color: var(--color-primary);
  font-weight: 600;
}

/* ---- Additional utilities for remaining inline styles ---- */

/* Spacing */
.mt-2  { margin-top: 0.5rem; }
.mt-6  { margin-top: 1.5rem; }
.mb-10 { margin-bottom: 2.5rem; }

/* Grid gap variants */
.grid-gap-lg  { gap: 1.5rem; }
.grid-gap-2xl { gap: 2rem; }

/* Showroom preview gallery items */
.showroom-preview-item {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;
}
.showroom-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Showroom visit info list */
.showroom-visit-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.showroom-visit-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Service cards — larger padding variant */
.service-card--lg { padding: 2.5rem; }

/* Service link spacing */
.service-link--spaced { margin-top: 2rem; }

/* Renovation before/after grid */
.renovation-comparison { gap: 2rem; }

/* Renovation gallery preview */
.renovation-gallery-preview { grid-template-columns: repeat(3, 1fr); }
.renovation-gallery-item    { aspect-ratio: 4 / 3; }

/* Contact form section headings */
.contact-section-heading {
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

/* Contact info block margin */
.contact-info-block { margin-bottom: 2.5rem; }

/* WhatsApp button spacing in contact column */
.contact-info-block + .btn-whatsapp { margin-bottom: 2.5rem; }

/* Contact hours heading */
.contact-hours-heading {
  font-size: 1.125rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-heading);
}

/* Full-width button */
.btn-full { width: 100%; justify-content: center; text-align: center; }

/* Contact layout grid */
.contact-grid {
  gap: 4rem;
  align-items: start;
}

/* Map embed rounded corners */
.map-embed {
  border-radius: var(--border-radius-xl);
  overflow: hidden;
}

/* (team avatar variants removed — team section now uses statement layout) */

/* ===================== LEGAL PAGES ===================== */
.legal-page {
  background: var(--color-white);
  padding-top: calc(var(--nav-height) + 3rem);
}

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

.legal-container h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--color-border);
}

.legal-container h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.legal-container p,
.legal-container li {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
}

.legal-container ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-container li {
  margin-bottom: 0.5rem;
}

.legal-container a {
  color: var(--color-primary);
  text-decoration: underline;
}

.legal-container a:hover {
  color: var(--color-primary-hover);
}

.legal-container .legal-info {
  background: var(--color-gray-light);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
}

.legal-container .legal-info p {
  margin-bottom: 0.5rem;
}

.legal-container .legal-info p:last-child {
  margin-bottom: 0;
}

.legal-updated {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  font-style: italic;
}

/* ===================== COOKIE CONSENT BANNER ===================== */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 9999;
  max-width: 420px;
  width: calc(100% - 3rem);
  background: var(--color-white);
  border-radius: var(--border-radius-xl);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15), 0 2px 12px rgba(0, 0, 0, 0.08);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.cookie-banner-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-banner-content {
  padding: 1.75rem;
}

.cookie-banner-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.cookie-banner-text {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--color-text-secondary);
  margin-bottom: 1.25rem;
}

.cookie-banner-text a {
  color: var(--color-primary);
  text-decoration: underline;
}

.cookie-banner-text a:hover {
  color: var(--color-primary-hover);
}

.cookie-banner-actions {
  display: flex;
  gap: 0.5rem;
}

/* Cookie buttons */
.cookie-btn {
  flex: 1;
  padding: 0.6rem 0.75rem;
  border-radius: var(--border-radius);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  text-align: center;
}

.cookie-btn-outline {
  background: transparent;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
}

.cookie-btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* There is deliberately no separate "reject" style. Under the AEPD's cookie
   guidance the option to refuse must be offered with the same prominence as the
   option to accept, so both buttons share .cookie-btn-primary and differ only in
   their label. A ghost "reject" next to a solid "accept" is a dark pattern. */

.cookie-btn-primary {
  background: var(--color-primary);
  border: 1.5px solid var(--color-primary);
  color: var(--color-white);
}

.cookie-btn-primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
}

/* Preferences panel */
.cookie-preferences {
  border-top: 1px solid var(--color-border);
  padding: 1.25rem 1.75rem 1.5rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.35s ease;
  padding-top: 0;
  padding-bottom: 0;
}

.cookie-preferences-visible {
  max-height: 400px;
  opacity: 1;
  padding-top: 1.25rem;
  padding-bottom: 1.5rem;
}

.cookie-pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
}

.cookie-pref-row:last-of-type {
  border-bottom: none;
}

.cookie-pref-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}

.cookie-pref-info strong {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.cookie-pref-desc {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

.cookie-pref-always {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
  white-space: nowrap;
}

/* Toggle switch */
.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--color-border);
  border-radius: 24px;
  transition: background 0.25s ease;
}

.cookie-toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: var(--color-white);
  border-radius: 50%;
  transition: transform 0.25s ease;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
  background: var(--color-primary);
}

.cookie-toggle input:checked + .cookie-toggle-slider::before {
  transform: translateX(20px);
}

.cookie-toggle input:focus-visible + .cookie-toggle-slider {
  box-shadow: 0 0 0 3px rgba(47, 75, 162, 0.2);
}

.cookie-pref-actions {
  padding-top: 1rem;
}

.cookie-pref-actions .cookie-btn {
  width: 100%;
}

/* Responsive — tablets */
@media (max-width: 768px) {
  .cookie-banner {
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: none;
    border-radius: var(--border-radius-xl) var(--border-radius-xl) 0 0;
  }

  .cookie-btn {
    font-size: 0.75rem;
    padding: 0.55rem 0.5rem;
  }
}

/* Responsive — small phones */
@media (max-width: 380px) {
  .cookie-banner-content {
    padding: 1.25rem;
  }

  .cookie-btn {
    font-size: 0.6875rem;
    padding: 0.5rem 0.375rem;
  }

  .cookie-preferences {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

/* ===================== 404 ERROR PAGE ===================== */
.error-page {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--section-padding) 0;
  background-color: var(--color-white);
  text-align: center;
}

.error-page-content {
  max-width: 600px;
  margin: 0 auto;
}

.error-page-code {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(6rem, 15vw, 10rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--color-primary);
  opacity: 0.12;
  margin-bottom: -1rem;
  user-select: none;
}

.error-page-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--color-text-primary);
  margin-bottom: 1rem;
}

.error-page-text {
  font-size: 1.0625rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.error-page-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.error-page-links {
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.error-page-links-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.error-page-nav {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.error-page-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-primary);
  transition: color 0.2s ease;
}

.error-page-nav a:hover {
  color: var(--color-primary-hover);
}

@media (max-width: 480px) {
  .error-page-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .error-page-nav {
    gap: 1rem;
  }
}
