/* ==========================================================================
   REFORMAS BAÑULS - ARCHITECTURAL DESIGN SYSTEM & STYLESHEET
   Domain: reformasbañuls.com | Location: Carrer Murillo 41, Alcoi
   Principles: Grounded in Materiality, Real Transformations & Architectural Craft
   No AI Slop | Zero Bloat | WCAG AAA Accessible | 100% Responsive
   ========================================================================== */

:root {
  /* Color Tokens */
  --color-canvas: #FFFFFF;
  --color-canvas-subtle: #F8FAFC;
  --color-canvas-muted: #F1F5F9;
  
  --color-text-primary: #0F172A;
  --color-text-secondary: #475569;
  --color-text-muted: #64748B;
  --color-text-inverted: #FFFFFF;

  --color-architect-dark: #0B0F19;
  --color-architect-surface: #1E293B;
  --color-architect-border: #334155;
  
  --color-primary-accent: #0284C7;
  --color-primary-ice: #E0F2FE;
  
  --color-warm-ochre: #C5A880;
  --color-warm-ochre-dark: #9A7B56;
  --color-warm-ochre-light: #FBF8F4;

  --color-success: #16A34A;
  --color-success-bg: #DCFCE7;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Spacing & Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Elevation */
  --shadow-subtle: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
  --shadow-elevated: 0 12px 32px -4px rgba(15, 23, 42, 0.12);
  --shadow-floating: 0 20px 48px -8px rgba(15, 23, 42, 0.2);

  /* Container */
  --container-max: 1200px;
  --transition-smooth: 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  color: var(--color-text-primary);
  background-color: var(--color-canvas);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
}

img, svg {
  display: block;
  max-width: 100%;
}

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

/* Typography Hierarchy */
h1, h2, h3, h4 {
  color: var(--color-text-primary);
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

p {
  color: var(--color-text-secondary);
  max-width: 68ch;
}

.text-lead {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--color-text-secondary);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
}

.section-dark {
  background-color: var(--color-architect-dark);
  color: var(--color-text-inverted);
}

.section-dark h2, .section-dark h3 {
  color: var(--color-text-inverted);
}

.section-dark p {
  color: #94A3B8;
}

.section-muted {
  background-color: var(--color-canvas-subtle);
  border-top: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
}

/* ==========================================================================
   NETWORK ECOSYSTEM BAR (Cross-linking with ventanasbañuls.com)
   ========================================================================== */
.network-bar {
  background-color: #0B0F19;
  color: #94A3B8;
  font-size: 0.8rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.network-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.network-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.network-link {
  color: #CBD5E1;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.network-link:hover {
  color: #FFFFFF;
}

.network-link.active {
  color: #38BDF8;
}

.network-badge {
  font-size: 0.7rem;
  background: rgba(56, 189, 248, 0.15);
  color: #38BDF8;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  height: 52px;
  margin-right: 2rem;
  flex-shrink: 0;
}

.brand-logo img, .brand-logo svg {
  height: 48px;
  width: auto;
}

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

.nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  padding: 0.5rem 0;
  position: relative;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-text-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-text-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.phone-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text-primary);
  padding: 0.5rem 0.85rem;
  background: var(--color-canvas-muted);
  border-radius: var(--radius-md);
  transition: background var(--transition-smooth);
  white-space: nowrap;
  flex-shrink: 0;
}

.phone-badge:hover {
  background: #E2E8F0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-smooth);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-architect-dark);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: #1E293B;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
  transform: translateY(-1px);
}

.btn-whatsapp {
  background-color: #25D366;
  color: #FFFFFF;
  border: none;
}

.btn-whatsapp:hover {
  background-color: #20BD5A;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: #FFFFFF;
  color: var(--color-text-primary);
  border-color: #CBD5E1;
}

.btn-secondary:hover {
  background-color: var(--color-canvas-subtle);
  border-color: #94A3B8;
}

/* ==========================================================================
   BRAND PARTNERS STRIP (CORTIZO, ROTO, STRUGAL)
   ========================================================================== */
.brand-partners-section {
  background: #FFFFFF;
  padding: 2.25rem 0;
  border-bottom: 1px solid #E2E8F0;
}

.brand-partners-header {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.5rem;
}

.brand-partners-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4.5rem;
  flex-wrap: wrap;
}

.partner-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: transform var(--transition-smooth), opacity var(--transition-smooth);
  opacity: 0.85;
}

.partner-logo-item:hover {
  transform: translateY(-2px);
  opacity: 1;
}

.partner-logo-item img {
  height: 42px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
}

.partner-label {
  font-size: 0.725rem;
  color: #94A3B8;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   HERO SECTION (Reformas Bañuls)
   ========================================================================== */
.hero-section {
  padding-top: 3.5rem;
  padding-bottom: 4.5rem;
  position: relative;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
}

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

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.heritage-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #F1F5F9;
  border: 1px solid #CBD5E1;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
  width: fit-content;
}

.heritage-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-success);
}

/* AEO Extraction Block */
.aeo-extraction-block {
  background-color: #F8FAFC;
  border-left: 4px solid var(--color-warm-ochre);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-top: 0.25rem;
  border-top: 1px solid #E2E8F0;
  border-right: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
}

.aeo-extraction-block p {
  font-size: 0.925rem;
  line-height: 1.55;
  color: #334155;
  font-weight: 500;
  max-width: 100%;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.hero-visual-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.hero-visual-wrapper img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-visual-wrapper:hover img {
  transform: scale(1.02);
}

.hero-floating-card {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  color: #FFFFFF;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.floating-stat-num {
  font-size: 1.35rem;
  font-weight: 800;
  color: #38BDF8;
}

.floating-stat-lbl {
  font-size: 0.75rem;
  color: #CBD5E1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   TRUST METRICS STRIP
   ========================================================================== */
.trust-strip {
  background-color: var(--color-architect-dark);
  color: #FFFFFF;
  padding: 2.25rem 0;
  border-top: 1px solid #1E293B;
  border-bottom: 1px solid #1E293B;
}

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

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

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

.metric-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.1;
  font-family: var(--font-mono);
}

.metric-value span {
  color: var(--color-warm-ochre);
}

.metric-label {
  font-size: 0.85rem;
  color: #94A3B8;
  margin-top: 0.35rem;
  font-weight: 500;
}

/* ==========================================================================
   DYNAMIC REAL CLIENTS & BEFORE / AFTER SHOWCASE SECTION
   ========================================================================== */
.real-clients-section {
  background-color: #0F172A;
  color: #FFFFFF;
  padding: 5.5rem 0;
}

.real-clients-section h2 {
  color: #FFFFFF;
}

.project-selector-tabs {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  margin: 2rem auto 2.5rem;
  flex-wrap: wrap;
}

.project-tab-btn {
  background: #1E293B;
  color: #CBD5E1;
  border: 1px solid #334155;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.project-tab-btn:hover {
  background: #334155;
  color: #FFFFFF;
}

.project-tab-btn.active {
  background: #FFFFFF;
  color: #0F172A;
  border-color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.2);
}

/* Dynamic Project Showcase Layout */
.dynamic-project-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 2.5rem;
  align-items: center;
  background: #1E293B;
  border: 1px solid #334155;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-floating);
}

/* Before / After Slider Component */
.ba-slider-container {
  position: relative;
  width: 100%;
  height: 460px;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid #475569;
  user-select: none;
  -webkit-user-select: none;
  background: #000;
}

.ba-image-before, .ba-image-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.ba-image-before img, .ba-image-after img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.ba-image-after {
  width: 50%;
  border-right: 2px solid #FFFFFF;
}

.ba-slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background-color: #FFFFFF;
  cursor: ew-resize;
  transform: translateX(-50%);
  z-index: 10;
}

.ba-handle-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #FFFFFF;
  color: #0F172A;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  font-size: 13px;
  font-weight: 800;
}

.ba-badge {
  position: absolute;
  top: 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.725rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  z-index: 5;
}

.ba-badge-before {
  right: 1rem;
  background-color: rgba(15, 23, 42, 0.85);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.ba-badge-after {
  left: 1rem;
  background-color: rgba(15, 23, 42, 0.85);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

/* Project Detail Card */
.project-detail-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.project-meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #38BDF8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-detail-card h3 {
  color: #FFFFFF;
  font-size: 1.5rem;
  line-height: 1.3;
}

.project-description {
  color: #CBD5E1;
  font-size: 0.95rem;
  line-height: 1.6;
}

.project-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  border-top: 1px solid #334155;
  border-bottom: 1px solid #334155;
  padding: 1rem 0;
}

.project-spec-item {
  display: flex;
  flex-direction: column;
}

.project-spec-label {
  font-size: 0.75rem;
  color: #94A3B8;
  text-transform: uppercase;
}

.project-spec-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
}

.client-review-quote {
  background: rgba(15, 23, 42, 0.6);
  border-left: 3px solid var(--color-warm-ochre);
  padding: 0.85rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.875rem;
  color: #E2E8F0;
  font-style: italic;
}

.client-review-author {
  display: block;
  font-style: normal;
  font-weight: 700;
  color: #38BDF8;
  font-size: 0.8rem;
  margin-top: 0.35rem;
}

/* ==========================================================================
   SERVICES & SPECIALTIES
   ========================================================================== */
.service-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.service-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: #CBD5E1;
}

.service-card-media {
  height: 240px;
  width: 100%;
  overflow: hidden;
  position: relative;
}

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

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

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

.service-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-warm-ochre-dark);
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.service-card-content h3 {
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
}

.service-card-content p {
  font-size: 0.925rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-card-action {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* ==========================================================================
   PROCESS (3 Simple Steps)
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.step-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 2rem;
  position: relative;
}

.step-number {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 800;
  color: #0F172A;
  background: var(--color-warm-ochre-light);
  border: 1px solid var(--color-warm-ochre);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   COMPARISON SECTION
   ========================================================================== */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}

.comparison-card {
  border-radius: var(--radius-md);
  padding: 2.25rem;
}

.comparison-card-winner {
  background: #FFFFFF;
  border: 2px solid var(--color-warm-ochre);
  box-shadow: var(--shadow-card);
}

.comparison-card-loser {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  opacity: 0.85;
}

.comparison-list {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.comparison-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-accordion {
  max-width: 840px;
  margin: 2.5rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  background: #FFFFFF;
  overflow: hidden;
  transition: border-color var(--transition-smooth);
}

.faq-item[open] {
  border-color: #94A3B8;
  box-shadow: var(--shadow-subtle);
}

.faq-summary {
  padding: 1.25rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  font-size: 1.25rem;
  color: var(--color-warm-ochre);
  transition: transform var(--transition-smooth);
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-content {
  padding: 0 1.5rem 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

/* ==========================================================================
   CONTACT SECTION & MAP
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-form-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
}

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

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 0.4rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-md);
  background: #FFFFFF;
  font-size: 0.95rem;
  transition: border-color var(--transition-smooth);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: #0F172A;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1);
}

.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid #E2E8F0;
  box-shadow: var(--shadow-card);
  height: 480px;
}

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

/* Mobile Sticky Bar */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(10px);
  padding: 0.75rem 1rem;
  z-index: 99;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-sticky-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

/* Site Footer */
.site-footer {
  background-color: var(--color-architect-dark);
  color: #94A3B8;
  padding: 4.5rem 0 2rem;
  border-top: 1px solid #1E293B;
  font-size: 0.9rem;
}

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

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

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

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  border-top: 1px solid #1E293B;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid, .dynamic-project-layout, .comparison-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .service-cards-grid {
    grid-template-columns: 1fr;
  }

  .trust-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 2rem;
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .mobile-sticky-bar {
    display: block;
  }
  
  .hero-visual-wrapper img {
    height: 380px;
  }
  
  .nav-links {
    display: none;
  }

  /* Mobile Header & Network Bar Optimization */
  .network-bar-inner {
    justify-content: center;
    padding: 0.35rem 0.5rem;
  }

  .network-bar-label {
    display: none;
  }

  .network-links {
    gap: 0.75rem;
    font-size: 0.78rem;
    justify-content: center;
  }

  .network-link {
    white-space: nowrap;
  }

  .phone-badge {
    display: none;
  }

  .brand-logo img {
    height: 34px;
    max-width: 135px;
  }

  .brand-division-tag {
    font-size: 0.65rem;
    padding-left: 0.5rem;
  }

  .header-actions .btn {
    padding: 0.45rem 0.75rem;
    font-size: 0.8rem;
  }

  .brand-partners-grid {
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .hero-floating-card {
    position: static;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    background: #0F172A;
    padding: 0.85rem 1rem;
  }

  .floating-stat-num {
    font-size: 1.1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .trust-metrics-grid {
    grid-template-columns: 1fr;
  }
  
  .metric-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1.5rem;
  }
  
  .metric-item:last-child {
    border-bottom: none;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .hero-actions .btn {
    width: 100%;
  }

  .ba-slider-container {
    height: 320px;
  }
}

/* Official Logo Styling */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 52px;
}

.brand-logo img {
  height: 42px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
}

.brand-division-tag {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  border-left: 2px solid #CBD5E1;
  padding-left: 0.75rem;
  line-height: 1.2;
}

/* Google Reviews Widget Section */
.google-reviews-section {
  background: #FFFFFF;
  padding: 5rem 0;
  border-top: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
}

.google-badge-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.google-rating-box {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--color-canvas-subtle);
  border: 1px solid #E2E8F0;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
}

.google-stars {
  color: #F59E0B;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.google-reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2rem;
}

.google-review-card {
  background: var(--color-canvas-subtle);
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.google-review-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: #CBD5E1;
}

.google-reviewer-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.google-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0284C7;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.google-verified-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: #16A34A;
  font-weight: 600;
}


/* ==========================================================================
   COOKIE CONSENT BANNER (RGPD / LOPD-GDD / AEPD Compliant)
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  max-width: 500px;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #F8FAFC;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg, 16px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 999999;
  display: none;
  animation: slideUpCookie 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpCookie {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cookie-banner-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #FFFFFF;
}

.cookie-banner-text {
  font-size: 0.8rem;
  color: #94A3B8;
  line-height: 1.45;
  margin-bottom: 1rem;
}

.cookie-banner-text a {
  color: #38BDF8;
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-cookie-accept {
  background: #10B981;
  color: #FFFFFF;
  border: none;
  padding: 0.5rem 1.15rem;
  font-size: 0.825rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-cookie-accept:hover {
  background: #059669;
}

.btn-cookie-reject {
  background: rgba(255, 255, 255, 0.08);
  color: #CBD5E1;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.5rem 0.9rem;
  font-size: 0.825rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-cookie-reject:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}

@media (max-width: 640px) {
  .cookie-banner {
    left: 1rem;
    right: 1rem;
    bottom: 5.5rem; /* leave room for mobile sticky bar */
    padding: 1rem 1.15rem;
  }
}


/* ==========================================================================
   GEO-SATELLITE & MULTI-LOCAL ENHANCEMENTS
   ========================================================================== */
.hero-lead-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-lg, 16px);
  padding: 1.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin-top: 1.25rem;
}

.mobile-quick-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.65rem 1rem;
  z-index: 9999;
}

.mobile-quick-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
}

.mobile-quick-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
}

.mobile-quick-call {
  background: #FFFFFF;
  color: #0F172A;
}

.mobile-quick-wa {
  background: #25D366;
  color: #FFFFFF;
}

@media (max-width: 768px) {
  .mobile-quick-bar {
    display: block;
  }
}

/* Comarcal Coverage Footer Block */
.comarcal-coverage-block {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  margin-top: 2.5rem;
  text-align: center;
}

.comarcal-coverage-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #E2E8F0;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

.comarcal-links {
  font-size: 0.85rem;
  color: #94A3B8;
  line-height: 1.8;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.75rem;
}

.comarcal-links a {
  color: #CBD5E1;
  text-decoration: none;
  transition: color 0.2s;
}

.comarcal-links a:hover {
  color: #38BDF8;
  text-decoration: underline;
}

/* Guarantee Section Grid */
.guarantee-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.guarantee-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md, 12px);
  padding: 1.75rem;
  text-align: center;
  transition: transform var(--transition-smooth);
}

.guarantee-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.guarantee-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.guarantee-card h4 {
  font-size: 1.05rem;
  color: var(--color-architect-dark);
  margin-bottom: 0.4rem;
}

.guarantee-card p {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

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

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

/* ==========================================================================
   AUTHENTIC VIDEO TOURS SHOWCASE (Reformas Bañuls)
   ========================================================================== */
.video-tours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.video-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  border-color: #CBD5E1;
}

.video-player-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 9/12;
  background: #0B0F19;
  overflow: hidden;
}

.video-player-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.video-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0284C7;
  box-shadow: 0 0 8px #0284C7;
}

.video-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.video-body h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.video-body p {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.video-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.v-tag {
  background: #F1F5F9;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  border: 1px solid #E2E8F0;
}
