/* ============================================================
   Santos Arquitectos — Design System
   Paleta: blanco, gris cálido, antracita, arena/oro
   Tipografía: Cormorant Garamond (títulos) + Inter (cuerpo)
   ============================================================ */

@font-face {
  font-family: 'Bebas Neue';
  src: url('../fonts/BebasNeue-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gost Common';
  src: url('../fonts/GOST_Common.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gost Common';
  src: url('../fonts/GOST_Common_Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  /* Colores */
  --white:       #FFFFFF;
  --bg:          #F8F7F4;
  --surface:     #F0EDE7;
  --border:      #E2DDD5;
  --muted:       #9B9690;
  --text:        #3A3835;
  --heading:     #1C1A18;
  --accent:      #7A3C3C;
  --accent-dark: #622E2E;
  --black:       #111010;

  /* Tipografía */
  --font-serif:  'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Escala tipográfica */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.375rem;
  --text-2xl:  1.75rem;
  --text-3xl:  2.25rem;
  --text-4xl:  3rem;
  --text-5xl:  3.75rem;
  --text-6xl:  5rem;

  /* Espaciado */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Layout */
  --container: 1360px;
  --container-narrow: 820px;
  --radius:    2px;
  --radius-md: 4px;

  /* Transiciones */
  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Sombras */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:    0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.12), 0 4px 16px rgba(0,0,0,0.06);

  /* Header */
  --header-h: 72px;
}

/* ── 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-sans);
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select {
  font: inherit;
  border: none;
  background: none;
  outline: none;
}
button { cursor: pointer; }

/* ── Tipografía base ────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--heading);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 5vw, var(--text-6xl)); }
h2 { font-size: clamp(2rem, 3.5vw, var(--text-5xl)); }
h3 { font-size: clamp(1.5rem, 2.5vw, var(--text-3xl)); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }

p {
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--text);
}

.lead {
  font-size: clamp(1.1rem, 1.8vw, var(--text-xl));
  line-height: 1.65;
  font-weight: 300;
  color: var(--text);
}

.label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Contenedor ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.container-narrow {
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

/* ── Secciones ──────────────────────────────────────────────── */
.section {
  padding-block: clamp(4rem, 8vw, var(--space-32));
}

.section-sm {
  padding-block: clamp(3rem, 5vw, var(--space-20));
}

.section-header {
  margin-bottom: clamp(2.5rem, 5vw, var(--space-16));
}

.section-header .label { margin-bottom: var(--space-3); }

.section-header h2 { max-width: 680px; }

.section-header.center {
  text-align: center;
}
.section-header.center h2 { margin-inline: auto; }

/* ── Header / Navegación ────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.transparent {
  background: transparent;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

/* Logo */
.logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  transition: opacity var(--transition);
}
.logo:hover { opacity: 0.72; }

.logo-img {
  display: none;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  margin-left: -6px;
}

.logo-name {
  display: flex;
  align-items: baseline;
  gap: 0.22em;
  color: var(--heading);
  line-height: 40px;
  padding-top: 5px;
}

.logo-santos {
  font-family: 'Bebas Neue', var(--font-serif);
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-block;
  transform: scaleX(1.16);
  transform-origin: left center;
  -webkit-text-stroke: 0.15px currentColor;
  text-shadow: 0 0 12px rgba(255,255,255,0.25);
  transition: color 0.6s ease;
}

.logo-arq {
  font-family: 'Bebas Neue', var(--font-serif);
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  display: inline-block;
  transform: scaleX(1.16);
  transform-origin: left center;
  margin-left: 0.6em;
  -webkit-text-stroke: 0.05px currentColor;
  text-shadow: 0 0 12px rgba(255,255,255,0.25);
  transition: color 0.6s ease;
}

.logo-sub {
  display: none;
}

.site-header.transparent .logo-name { color: white; }
.site-header.transparent .logo-santos,
.site-header.transparent .logo-arq { color: white; }
.site-header.transparent .logo-sub  { color: rgba(255,255,255,0.65); }
.site-header.transparent .logo-img  { opacity: 0.9; }

/* Nav principal */
.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--heading);
  position: relative;
  padding-block: 4px;
  transition: color var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--heading);
  transition: width var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.site-header.transparent .nav-links a { color: rgba(255,255,255,0.9); }
.site-header.transparent .nav-links a::after { background: white; }

/* Botón CTA header */
.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 20px;
  background: var(--heading);
  color: white !important;
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background var(--transition), transform var(--transition);
  border: 1px solid transparent;
}
.btn-contact:hover { background: var(--accent); }
.site-header.transparent .btn-contact {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.4);
  backdrop-filter: blur(8px);
}
.site-header.transparent .btn-contact:hover {
  background: rgba(255,255,255,0.28);
}

/* Nav link aliases */
.nav-link {
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--heading);
  position: relative;
  padding-block: 4px;
  transition: color var(--transition);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--heading);
  transition: width var(--transition);
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link.nav-cta {
  padding: 8px 18px;
  background: var(--heading);
  color: white;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-link.nav-cta::after { display: none; }
.nav-link.nav-cta:hover { background: var(--accent); color: white; }
.site-header.transparent .nav-link { color: rgba(255,255,255,0.9); }
.site-header.transparent .nav-link::after { background: white; }
.site-header.transparent .nav-link.nav-cta {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.4);
  color: white;
}
.site-header.slide-white .logo-name { color: white; }
.site-header.slide-white .logo-santos,
.site-header.slide-white .logo-arq { color: white; text-shadow: none; }
.site-header.slide-white .logo-sub  { color: rgba(255,255,255,0.65); }
.site-header.slide-white .logo-img  { opacity: 0.9; }
.site-header.slide-white .nav-links a { color: rgba(255,255,255,0.9); }
.site-header.slide-white .nav-links a::after { background: white; }
.site-header.slide-white .nav-link { color: rgba(255,255,255,0.9); }
.site-header.slide-white .nav-link::after { background: white; }
.site-header.slide-white .nav-link.nav-cta {
  background: var(--heading);
  border-color: var(--heading);
  color: white;
}
.site-header.hidden { transform: translateY(-100%); transition: transform 0.35s ease; }
.mobile-nav-link {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  color: var(--heading);
  transition: color var(--transition);
}
.mobile-nav-link:hover { color: var(--accent); }

/* Hamburger */
.nav-toggle,
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  background: none;
  border: none;
}
.nav-toggle span,
.menu-toggle span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--heading);
  transition: var(--transition);
}
.site-header.transparent .nav-toggle span,
.site-header.transparent .menu-toggle span { background: white; }
.nav-toggle.open span:nth-child(1),
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.nav-toggle.open span:nth-child(2),
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3),
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--white);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-6);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  color: var(--heading);
  transition: color var(--transition);
}
.mobile-nav a:hover { color: var(--accent); }

/* ── Botones ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
  text-decoration: none;
}

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

.btn-outline {
  background: transparent;
  color: var(--heading);
  border-color: var(--heading);
}
.btn-outline:hover {
  background: var(--heading);
  color: white;
}

.btn-outline-white {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.7);
}
.btn-outline-white:hover {
  background: white;
  color: var(--heading);
}

.btn-lg {
  padding: 18px 36px;
  font-size: var(--text-base);
}

.btn svg {
  width: 16px; height: 16px;
  transition: transform var(--transition);
}
.btn:hover svg { transform: translateX(3px); }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

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

.hero-media img,
.hero-media video {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 13, 12, 0.72) 0%,
    rgba(15, 13, 12, 0.20) 50%,
    rgba(15, 13, 12, 0.05) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.hero-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.hero-label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: var(--space-4);
}

.hero h1 {
  font-family: var(--font-serif);
  font-weight: 300;
  color: white;
  margin-bottom: var(--space-5);
  max-width: 780px;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: clamp(1rem, 1.6vw, var(--text-lg));
  color: rgba(255,255,255,0.75);
  font-weight: 300;
  margin-bottom: var(--space-10);
  max-width: 520px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-8);
  right: clamp(1.25rem, 4vw, 3rem);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255,255,255,0.5);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.8); }
  50%       { opacity: 1;   transform: scaleY(1); }
}

/* ── Intro estudio ──────────────────────────────────────────── */
.intro-section {
  padding-block: clamp(4rem, 8vw, 7rem);
  background: var(--white);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: center;
}

.intro-numbers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  margin-top: var(--space-10);
}

.intro-number {
  border-top: 1px solid var(--border);
  padding-top: var(--space-4);
}

.intro-number strong {
  display: block;
  font-family: var(--font-serif);
  font-size: var(--text-4xl);
  font-weight: 300;
  color: var(--heading);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.intro-number span {
  font-size: var(--text-sm);
  color: var(--muted);
  letter-spacing: 0.04em;
}

.intro-image {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
}

.intro-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.intro-image:hover img { transform: scale(1.03); }

.intro-image-caption {
  position: absolute;
  bottom: var(--space-5);
  left: var(--space-5);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Categorías / Bloques de servicio destacado ─────────────── */
.categories-section {
  background: var(--bg);
  padding-block: clamp(4rem, 8vw, var(--space-32));
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.category-card {
  background: var(--white);
  padding: clamp(2rem, 4vw, var(--space-12));
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  transition: background var(--transition);
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.category-card:hover { background: var(--bg); }
.category-card:hover::before { transform: scaleX(1); }

.category-icon {
  width: 40px; height: 40px;
  color: var(--accent);
}

.category-card h3 {
  font-size: var(--text-2xl);
  font-weight: 400;
}

.category-card p {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.7;
}

.category-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--heading);
  margin-top: auto;
  transition: gap var(--transition), color var(--transition);
}
.category-link:hover { gap: var(--space-3); color: var(--accent); }

/* ── Grid de proyectos ──────────────────────────────────────── */
.projects-section {
  padding-block: clamp(4rem, 8vw, var(--space-32));
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-4);
}

/* Layout editorial asimétrico */
.project-card:nth-child(1) { grid-column: span 7; }
.project-card:nth-child(2) { grid-column: span 5; }
.project-card:nth-child(3) { grid-column: span 4; }
.project-card:nth-child(4) { grid-column: span 4; }
.project-card:nth-child(5) { grid-column: span 4; }
.project-card:nth-child(6) { grid-column: span 5; }
.project-card:nth-child(7) { grid-column: span 7; }
.project-card:nth-child(8) { grid-column: span 12; }

.project-card {
  position: relative;
  overflow: hidden;
  display: block;
  cursor: pointer;
  background: var(--surface);
}

.project-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.project-card:nth-child(1) .project-card-image,
.project-card:nth-child(7) .project-card-image { aspect-ratio: 3/2; }
.project-card:nth-child(8) .project-card-image { aspect-ratio: 21/9; }

.project-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,9,8,0.75) 0%, transparent 55%);
  opacity: 0;
  transition: opacity var(--transition);
}

.project-card:hover .project-card-overlay { opacity: 1; }

.project-card-info {
  padding: var(--space-4) var(--space-5);
  background: var(--white);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-3);
}

.project-card-meta { flex: 1; }

.project-card-name {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--heading);
  margin-bottom: var(--space-1);
  line-height: 1.2;
}

.project-card-location {
  font-size: var(--text-xs);
  color: var(--muted);
  letter-spacing: 0.06em;
}

.project-card-tag {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: var(--bg);
  color: var(--muted);
  white-space: nowrap;
  align-self: flex-start;
  border: 1px solid var(--border);
}

.project-card-tag.construido { background: #E8F0E8; color: #4A7A4A; border-color: #C8DEC8; }
.project-card-tag.en-obra    { background: #FFF4E0; color: #8A6020; border-color: #F0DAA0; }
.project-card-tag.proyecto   { background: var(--bg); color: var(--muted); }

/* ── Galería de proyectos (página /proyectos) ───────────────── */
.gallery-section {
  padding-block: clamp(3rem, 5vw, var(--space-20));
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-10);
}

.filter-btn {
  padding: 8px 18px;
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
}

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

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-5);
}

.gallery-item { display: block; }

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

/* ── Ficha de proyecto (página interior) ────────────────────── */
.project-hero {
  position: relative;
  height: 70vh;
  min-height: 480px;
  overflow: hidden;
  margin-top: var(--header-h);
}

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

.project-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,9,8,0.6) 0%, transparent 60%);
}

.project-hero-text {
  position: absolute;
  bottom: var(--space-12);
  left: 0; right: 0;
}

.project-header {
  padding-block: var(--space-12);
  border-bottom: 1px solid var(--border);
}

.project-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-6);
  padding-top: var(--space-8);
}

.project-meta-item { border-top: 1px solid var(--border); padding-top: var(--space-4); }
.project-meta-item .label { margin-bottom: var(--space-2); }
.project-meta-item strong {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--heading);
}

.project-body {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-16);
  padding-block: var(--space-16);
}

.project-sidebar { position: sticky; top: calc(var(--header-h) + var(--space-8)); align-self: start; }

.project-gallery-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.project-gallery-main .img-full { grid-column: 1 / -1; }

.project-gallery-main img {
  width: 100%; height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
  transition: transform 0.5s ease;
}
.project-gallery-main img:hover { transform: scale(1.02); }

/* ── Lightbox ────────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.95);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: var(--space-6);
  right: var(--space-8);
  color: white;
  font-size: 2rem;
  opacity: 0.6;
  transition: opacity var(--transition);
  cursor: pointer;
  background: none;
  border: none;
}
.lightbox-close:hover { opacity: 1; }

.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 2rem;
  opacity: 0.5;
  transition: opacity var(--transition);
  cursor: pointer;
  background: none;
  border: none;
  padding: var(--space-4);
}
.lightbox-prev { left: var(--space-4); }
.lightbox-next { right: var(--space-4); }
.lightbox-prev:hover, .lightbox-next:hover { opacity: 1; }

/* ── Servicios ──────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.service-card {
  background: var(--white);
  padding: clamp(2rem, 3.5vw, var(--space-10));
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: background var(--transition);
}
.service-card:hover { background: var(--bg); }

.service-icon {
  width: 32px; height: 32px;
  color: var(--accent);
  flex-shrink: 0;
}

.service-card h3 {
  font-size: var(--text-xl);
  font-weight: 400;
  line-height: 1.2;
}

.service-card p {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.7;
  flex: 1;
}

/* ── Equipo ─────────────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-6);
}

.team-card { }

.team-card-image {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--surface);
  margin-bottom: var(--space-4);
}
.team-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.2);
  transition: transform 0.5s ease, filter 0.5s ease;
}
.team-card:hover .team-card-image img {
  transform: scale(1.04);
  filter: grayscale(0);
}

.team-card h4 {
  font-size: var(--text-xl);
  font-weight: 400;
  margin-bottom: 4px;
}

.team-card .team-role {
  font-size: var(--text-sm);
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ── Sección valores / about ────────────────────────────────── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-10);
}

.value-item { border-top: 1px solid var(--border); padding-top: var(--space-6); }

.value-number {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  color: var(--border);
  font-weight: 300;
  line-height: 1;
  margin-bottom: var(--space-4);
}

.value-item h3 { font-size: var(--text-xl); margin-bottom: var(--space-3); }
.value-item p  { font-size: var(--text-sm); color: var(--muted); line-height: 1.7; }

/* ── Imagen con texto alternados ────────────────────────────── */
.split-section {
  padding-block: clamp(4rem, 7vw, var(--space-24));
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 5vw, 6rem);
  align-items: center;
}

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

.split-image {
  aspect-ratio: 4/5;
  overflow: hidden;
}

.split-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.split-image:hover img { transform: scale(1.03); }

.split-content { display: flex; flex-direction: column; gap: var(--space-6); }
.split-content .label { margin-bottom: var(--space-1); }
.split-content h2 { margin-bottom: var(--space-2); }

/* ── Blog / Noticias ────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-6);
}

.post-card {
  display: block;
  transition: transform var(--transition);
}
.post-card:hover { transform: translateY(-4px); }

.post-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--surface);
  margin-bottom: var(--space-5);
}
.post-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.post-card:hover .post-card-image img { transform: scale(1.05); }

.post-card .label { margin-bottom: var(--space-2); }

.post-card h3 {
  font-size: var(--text-2xl);
  font-weight: 400;
  margin-bottom: var(--space-3);
  line-height: 1.25;
}

.post-card p {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.7;
}

.post-date {
  font-size: var(--text-xs);
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-top: var(--space-3);
}

/* ── CTA Section ────────────────────────────────────────────── */
.cta-section {
  background: var(--heading);
  padding-block: clamp(4rem, 8vw, var(--space-24));
  text-align: center;
}

.cta-section h2 {
  color: white;
  font-weight: 300;
  margin-bottom: var(--space-5);
}

.cta-section p {
  color: rgba(255,255,255,0.65);
  font-size: var(--text-lg);
  font-weight: 300;
  max-width: 540px;
  margin-inline: auto;
  margin-bottom: var(--space-10);
}

.cta-alt {
  background: var(--bg);
  padding-block: clamp(4rem, 7vw, var(--space-24));
}

.cta-alt .cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.cta-alt h2 { font-weight: 300; margin: 0; }

/* ── Formulario de contacto ─────────────────────────────────── */
.contact-section {
  padding-block: clamp(4rem, 8vw, var(--space-24));
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 7vw, 7rem);
}

.contact-info { display: flex; flex-direction: column; gap: var(--space-8); }

.contact-detail {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.contact-detail-icon {
  width: 20px; height: 20px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.contact-detail h4 {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.contact-detail p, .contact-detail a {
  font-size: var(--text-base);
  color: var(--heading);
  transition: color var(--transition);
}
.contact-detail a:hover { color: var(--accent); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.form-group { display: flex; flex-direction: column; gap: var(--space-2); }

.form-group label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--heading);
  font-size: var(--text-base);
  font-family: var(--font-sans);
  transition: border-color var(--transition), background var(--transition);
  width: 100%;
  border-radius: 0;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--heading);
  background: var(--white);
}

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

.form-privacy {
  font-size: var(--text-xs);
  color: var(--muted);
  line-height: 1.6;
}

.form-privacy a { text-decoration: underline; }

/* ── Mapa placeholder ───────────────────────────────────────── */
.map-section {
  height: 400px;
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

.map-section iframe {
  width: 100%; height: 100%;
  border: none;
  filter: grayscale(0.2) contrast(0.95);
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--heading);
  color: rgba(255,255,255,0.6);
  padding-block: var(--space-10);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: var(--space-8);
}

.footer-brand { }

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: white;
  margin-bottom: var(--space-1);
}

.footer-logo-sub {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: var(--space-5);
}

.footer-brand p {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.5);
  transition: all var(--transition);
}
.footer-social a:hover {
  border-color: rgba(255,255,255,0.7);
  color: white;
  background: rgba(255,255,255,0.05);
}

.footer-col h5 {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: var(--space-5);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-links a:hover { color: white; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer-bottom p { font-size: var(--text-xs); color: rgba(255,255,255,0.35); }

.footer-bottom-links {
  display: flex;
  gap: var(--space-5);
}
.footer-bottom-links a {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.35);
  transition: color var(--transition);
}
.footer-bottom-links a:hover { color: rgba(255,255,255,0.7); }

/* ── Separador decorativo ───────────────────────────────────── */
.divider {
  width: 48px; height: 1px;
  background: var(--accent);
  margin-block: var(--space-6);
}

/* ── WhatsApp flotante ──────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  z-index: 800;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: #25D366;
  color: white;
  padding: 12px 20px 12px 14px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition), box-shadow var(--transition);
  border-radius: 50px;
  font-size: var(--text-sm);
  font-weight: 500;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.5);
}

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

/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding-block: var(--space-4);
}
.breadcrumb a { color: var(--muted); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--heading); }
.breadcrumb span { color: var(--border); }

/* ── Page title bar ─────────────────────────────────────────── */
.page-title-bar {
  padding-top: calc(var(--header-h) + clamp(2.5rem, 5vw, 4rem));
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.page-title-bar h1 { font-size: clamp(2rem, 4vw, var(--text-5xl)); font-weight: 300; }

/* ── Animaciones de entrada ─────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible,
.reveal.revealed {
  opacity: 1;
  transform: none;
}

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

/* ── Utilidades ─────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted  { color: var(--muted); }
.text-accent { color: var(--accent); }
.font-serif  { font-family: var(--font-serif); }
.bg-surface  { background: var(--surface); }
.bg-bg       { background: var(--bg); }
.mt-auto     { margin-top: auto; }
.gap-2       { gap: var(--space-2); }

.aspect-video { aspect-ratio: 16/9; overflow: hidden; }
.aspect-video img { width: 100%; height: 100%; object-fit: cover; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .project-body { grid-template-columns: 1fr; }
  .project-sidebar { position: static; }
}

@media (max-width: 900px) {
  .nav-links, .btn-contact { display: none; }
  .nav-toggle, .menu-toggle { display: flex; }
  .mobile-nav { display: flex; }

  .intro-grid { grid-template-columns: 1fr; }
  .intro-image { aspect-ratio: 16/9; order: -1; }

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

  .projects-grid .project-card { grid-column: span 12 !important; }

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

  .split-grid { grid-template-columns: 1fr; }
  .split-grid.reverse { direction: ltr; }

  .cta-alt .cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  :root { --header-h: 60px; }

  .logo-santos,
  .logo-arq { font-size: 1.7rem; }
  .logo-arq  { margin-left: 0.4em; }

  .hero-content { text-align: center; }
  .hero-subtitle { max-width: 100%; }
  .hero-actions { justify-content: center; }


  .hero-media img { filter: brightness(1.15); }
  .hero-slide img { filter: brightness(1.4) !important; }
  .hero-overlay {
    background: linear-gradient(
      to top,
      rgba(10,9,8,0.45) 0%,
      rgba(10,9,8,0.12) 50%,
      rgba(10,9,8,0.04) 100%
    );
  }

  .hero h1 { font-size: clamp(2rem, 8vw, 3.5rem); }

  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom-links { justify-content: center; }

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

  .whatsapp-float span { display: none; }
  .whatsapp-float { padding: 14px; border-radius: 50%; }

  .project-gallery-main { grid-template-columns: 1fr; }
  .project-gallery-main .img-full { grid-column: auto; }

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

/* ════════════════════════════════════════════════════════════════
   SUPPLEMENTAL COMPONENTS — added for full-site build
   ════════════════════════════════════════════════════════════════ */

/* ── Dark background utility ────────────────────────────────── */
.bg-dark { background: var(--heading); }
.text-light { color: white !important; }
.text-muted-light { color: rgba(255,255,255,0.62); line-height: 1.75; }
.section-label--light { color: rgba(255,255,255,0.45); }

/* ── Section helpers ────────────────────────────────────────── */
.section { padding-block: clamp(4rem, 7vw, var(--space-24)); }
.section--tight { padding-block: clamp(1.5rem, 3vw, var(--space-10)); }
.section--less-top { padding-top: clamp(1.5rem, 3vw, 3rem); }

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: clamp(2rem, 4vw, var(--space-12));
}
.section-header h2 { margin: 0; }
.section-header-link {
  font-size: var(--text-sm);
  color: var(--muted);
  white-space: nowrap;
  transition: color var(--transition);
}
.section-header-link:hover { color: var(--heading); }
.section-header-sub {
  width: 100%;
  font-size: var(--text-sm);
  color: var(--muted);
  margin-top: calc(-1 * var(--space-2));
}
.section-footer {
  text-align: center;
  margin-top: clamp(2.5rem, 5vw, var(--space-16));
}
.section-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-3);
}

/* ── Page Hero (compact header for inner pages) ─────────────── */
.page-hero {
  padding-top: calc(var(--header-h) + clamp(1rem, 1.75vw, 1.75rem));
  padding-bottom: clamp(1rem, 1.75vw, 1.75rem);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.page-hero-eyebrow {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-2);
}
.page-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 2.1rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--heading);
  margin-bottom: var(--space-3);
}
.page-hero-desc {
  max-width: 560px;
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.7;
  font-weight: 300;
}

/* Page hero with background image */
.page-hero--image {
  position: relative;
  min-height: 27vh;
  display: flex;
  align-items: flex-end;
  padding-top: 0;
  padding-bottom: 0;
  background: var(--heading);
  border-bottom: none;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,9,8,0.7) 0%, rgba(10,9,8,0.2) 60%);
}
.page-hero-content {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--header-h) + clamp(1.4rem, 2.5vw, 2.1rem));
  padding-bottom: clamp(1.4rem, 2.5vw, 2.1rem);
}

/* ── Hero (homepage) ────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

/* Slideshow */
.hero-slideshow {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
  will-change: opacity;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Dots navigation */
.hero-dots {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  gap: 8px;
  z-index: 2;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.5);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, border-color 0.3s;
}
.hero-dot.active {
  background: white;
  border-color: white;
}

/* Legacy .hero-media (kept for other pages) */
.hero-media {
  position: absolute;
  inset: 0;
  will-change: transform;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,9,8,0.72) 0%,
    rgba(10,9,8,0.25) 50%,
    rgba(10,9,8,0.1) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  padding-bottom: clamp(3rem, 6vh, 5.5rem);
  max-width: 780px;
}
.hero-eyebrow {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: var(--space-5);
  text-shadow: 0 1px 6px rgba(0,0,0,0.45);
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 300;
  color: white;
  line-height: 1.05;
  margin-bottom: var(--space-6);
  text-shadow: 0 1px 8px rgba(0,0,0,0.45);
}
.hero-title em { font-style: italic; font-weight: 300; }
.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: rgba(255,255,255,0.72);
  font-weight: 500;
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: var(--space-10);
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.hero-actions { display: flex; gap: var(--space-4); flex-wrap: wrap; }

/* ── Intro section ──────────────────────────────────────────── */
.intro-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}
.intro-text h2 {
  font-size: clamp(1.75rem, 3vw, 2.8rem);
  font-weight: 300;
  margin-block: var(--space-5) var(--space-6);
  line-height: 1.2;
}
.intro-text p { color: var(--muted); line-height: 1.8; margin-bottom: var(--space-4); }
.intro-text .lead { color: var(--text); font-size: var(--text-lg); }
.intro-text .btn-outline { margin-top: var(--space-4); }

.intro-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  padding-top: var(--space-6);
}
.stat-item { border-top: 1px solid var(--border); padding-top: var(--space-4); }
.stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 300;
  color: var(--heading);
  line-height: 1;
  margin-bottom: var(--space-2);
}
.stat-label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.4;
}

/* ── Categories grid ────────────────────────────────────────── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.category-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.category-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--accent);
}
.category-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.category-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.category-card:hover .category-img img { transform: scale(1.05); }
.category-body {
  padding: var(--space-6) var(--space-6) var(--space-5);
  display: flex;
  flex-direction: column;
  flex: 1;
  border-top: 2px solid transparent;
  transition: border-color var(--transition);
}
.category-card:hover .category-body { border-color: var(--accent); }
.category-body h3 {
  font-size: var(--text-xl);
  font-weight: 400;
  margin-bottom: var(--space-3);
}
.category-body p {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.7;
  flex: 1;
  margin-bottom: var(--space-4);
}
.category-link {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-transform: uppercase;
}

/* ── Projects editorial grid ────────────────────────────────── */
.projects-editorial {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-4);
}
.project-card { overflow: hidden; }
.project-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}
.project-card-img {
  flex: 1;
  overflow: hidden;
  min-height: 260px;
  background: var(--surface);
  position: relative;
}
.project-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.project-card-link:hover .project-card-img img { transform: scale(1.04); }
.project-card-body {
  padding: var(--space-4) var(--space-5) var(--space-5);
  background: var(--white);
  border-top: 1px solid var(--border);
}
.project-cat {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: var(--space-2);
}
.project-title {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--heading);
  line-height: 1.2;
  margin-bottom: var(--space-1);
  transition: color var(--transition);
}
.project-card-link:hover .project-title { color: var(--accent); }
.project-meta {
  font-size: var(--text-xs);
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* "All projects" card */
.project-card-all {
  background: var(--surface);
  min-height: 340px;
}
.project-card-body--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  background: var(--surface);
  border: none;
  padding: var(--space-10);
  gap: var(--space-4);
  transition: background var(--transition);
}
.project-card-all:hover .project-card-body--center { background: var(--border); }
.project-all-count {
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 300;
  color: var(--heading);
  line-height: 1;
}
.project-all-link {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ── Split section ──────────────────────────────────────────── */
.section-split { padding-block: clamp(4rem, 7vw, var(--space-24)); }
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}
.split-layout--reverse .split-image { order: 2; }
.split-layout--reverse .split-content { order: 1; }
.split-image {
  aspect-ratio: 4/5;
  overflow: hidden;
}
.split-image img { width: 100%; height: 100%; object-fit: cover; }
.split-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.split-content h2 {
  font-size: clamp(1.75rem, 3vw, 2.8rem);
  font-weight: 300;
}
.split-content p { font-size: var(--text-base); line-height: 1.8; }
.split-actions { display: flex; gap: var(--space-4); flex-wrap: wrap; margin-top: var(--space-2); }

/* ── Services mini grid (homepage teaser) ───────────────────── */
.services-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 0;
}
.service-mini {
  background: var(--white);
  padding: clamp(1.25rem, 2vw, var(--space-6));
  transition: background var(--transition);
  display: block;
  text-decoration: none;
  color: inherit;
}
.service-mini:hover { background: var(--bg); }
.service-mini:hover h3 { color: var(--accent); }
.service-mini-icon {
  width: 28px; height: 28px;
  color: var(--accent);
  margin-bottom: var(--space-4);
}
.service-mini-icon svg { width: 100%; height: 100%; }
.service-mini h3 {
  font-size: var(--text-base);
  font-weight: 500;
  margin-bottom: var(--space-2);
}
.service-mini p {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.65;
}

@media (max-width: 640px) {
  .services-mini-grid {
    grid-template-columns: repeat(2, 1fr);
    overflow: hidden;
  }
  .service-mini { padding: 1rem; min-width: 0; }
  .service-mini h3 { font-size: var(--text-sm); }
  .service-mini p { font-size: 0.75rem; }
  .service-mini-icon { width: 22px; height: 22px; margin-bottom: 0.5rem; }
}

/* ── Services full page ─────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
  gap: 0;
  border-top: 1px solid var(--border);
}
.service-card {
  border-bottom: 1px solid var(--border);
  padding: clamp(2.5rem, 5vw, var(--space-12)) clamp(1.5rem, 4vw, var(--space-10));
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--space-6) var(--space-8);
  align-items: start;
}
.service-card-icon {
  width: 40px; height: 40px;
  color: var(--accent);
  padding-top: var(--space-1);
}
.service-card-icon svg { width: 100%; height: 100%; }
.service-card-icon img { width: 100%; height: 100%; object-fit: contain; }
.service-card-body { display: flex; flex-direction: column; gap: var(--space-4); }
.service-card-body h2 {
  font-size: clamp(1.4rem, 2.5vw, var(--text-2xl));
  font-weight: 400;
  line-height: 1.2;
}
.service-card-body .lead {
  font-size: var(--text-lg);
  color: var(--text);
  font-weight: 300;
  line-height: 1.6;
}
.service-card-body p {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.8;
}
.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.service-list li {
  font-size: var(--text-sm);
  color: var(--text);
  padding-left: var(--space-5);
  position: relative;
}
.service-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 400;
}
.service-cta { align-self: flex-start; margin-top: var(--space-2); }

/* ── Process steps ──────────────────────────────────────────── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: var(--space-12);
}
.process-step {
  background: var(--white);
  padding: var(--space-8) var(--space-6);
}
.process-num {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  font-weight: 300;
  color: var(--border);
  display: block;
  margin-bottom: var(--space-4);
  line-height: 1;
}
.process-step h3 {
  font-size: var(--text-base);
  font-weight: 500;
  margin-bottom: var(--space-3);
}
.process-step p {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.7;
}

/* ── CTA section ────────────────────────────────────────────── */
.cta-section { background: var(--heading); padding-block: clamp(4rem, 8vw, var(--space-24)); }
.cta-section--light { background: var(--surface); }
.cta-inner { max-width: 560px; margin-inline: auto; text-align: center; }
.cta-inner h2 {
  color: white;
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: 300;
  margin-bottom: var(--space-5);
}
.cta-section--light .cta-inner h2 { color: var(--heading); }
.cta-inner p {
  color: rgba(255,255,255,0.62);
  font-size: var(--text-lg);
  font-weight: 300;
  line-height: 1.65;
  margin-bottom: var(--space-8);
}
.cta-section--light .cta-inner p { color: var(--muted); }

/* ── Footer (new structure) ─────────────────────────────────── */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: var(--space-10);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: var(--space-5);
}
.footer-brand .footer-logo {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: white;
  display: block;
  margin-bottom: var(--space-4);
}
.footer-brand p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.45);
  line-height: 1.75;
  max-width: 260px;
}
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: var(--space-5);
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer-col ul a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.footer-col ul a:hover { color: white; }
.footer-col address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer-col address p, .footer-col address a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.footer-col address a:hover { color: white; }
.footer-btn {
  margin-top: var(--space-5);
  font-size: var(--text-xs);
  padding: 8px 16px;
}

/* ── WhatsApp FAB button ────────────────────────────────────── */
.whatsapp-btn {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  z-index: 800;
  width: 52px; height: 52px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55);
}
.whatsapp-btn svg { width: 26px; height: 26px; }

/* ── Project hero (inner page) ──────────────────────────────── */
.project-hero {
  position: relative;
  height: 72vh;
  min-height: 480px;
  overflow: hidden;
  margin-top: var(--header-h);
}
.project-hero-media {
  position: absolute;
  inset: 0;
}
.project-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.project-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,9,8,0.65) 0%, transparent 55%);
}
.project-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding-bottom: clamp(2rem, 4vw, var(--space-12));
  z-index: 1;
}
.project-hero-content .breadcrumb { color: rgba(255,255,255,0.5); margin-bottom: var(--space-4); }
.project-hero-content .breadcrumb a { color: rgba(255,255,255,0.5); }
.project-hero-content .breadcrumb a:hover { color: white; }
.project-hero-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  color: white;
  margin-bottom: var(--space-2);
  line-height: 1.1;
}
.project-hero-location {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.62);
  letter-spacing: 0.08em;
}

/* ── Project detail layout ──────────────────────────────────── */
.project-detail { padding-block: clamp(2rem, 4vw, 3.5rem); }
.project-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.project-main h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.5rem);
  font-weight: 300;
  margin-bottom: var(--space-6);
  line-height: 1.2;
}
.project-main .lead {
  font-size: var(--text-lg);
  color: var(--text);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}
.project-main p {
  font-size: var(--text-base);
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: var(--space-5);
}

.project-sidebar { position: sticky; top: calc(var(--header-h) + var(--space-8)); }
.project-meta-block {
  border: 1px solid var(--border);
  padding: var(--space-8);
  margin-bottom: var(--space-6);
}
.project-meta-block h3 {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border);
}
.project-data {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-2) var(--space-6);
  align-items: baseline;
}
.project-data dt {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  padding-block: var(--space-3);
  border-top: 1px solid var(--border);
}
.project-data dd {
  font-size: var(--text-sm);
  color: var(--text);
  padding-block: var(--space-3);
  border-top: 1px solid var(--border);
}
.badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
}
.badge--green { background: #E8F0E8; color: #3A6A3A; }

.project-cta-box {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: var(--space-8);
}
.project-cta-box h4 {
  font-size: var(--text-base);
  font-weight: 500;
  margin-bottom: var(--space-3);
}
.project-cta-box p {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: var(--space-5);
}

/* ── Project gallery (lightbox grid) ───────────────────────── */
.project-gallery-section { padding-block: clamp(1rem, 2vw, var(--space-8)); }
.project-gallery {
  columns: 3;
  column-gap: var(--space-3);
  gap: var(--space-3);
}
.gallery-section-label {
  column-span: all;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: var(--space-8) 0 var(--space-3);
  border-top: 1px solid var(--border);
  margin-top: var(--space-4);
  display: block;
}
.gallery-section-label:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.gallery-thumb {
  display: block;
  overflow: hidden;
  margin-bottom: var(--space-3);
  break-inside: avoid;
  background: var(--surface);
}
.gallery-thumb img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease, opacity 0.3s ease;
}
.gallery-thumb:hover img { transform: scale(1.03); opacity: 0.9; }
.gallery-thumb--wide { column-span: all; aspect-ratio: 16/7; }
.gallery-thumb--wide img { width: 100%; height: 100%; object-fit: cover; }

/* ── Gallery grid (projects listing) ───────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-5);
}
.gallery-item.hidden { display: none; }
.gallery-item-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.gallery-item-link:hover {
  box-shadow: var(--shadow);
  border-color: transparent;
}
.gallery-item-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--surface);
}
.gallery-item-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item-link:hover .gallery-item-img img { transform: scale(1.05); }
.gallery-item-body {
  padding: var(--space-5) var(--space-5) var(--space-6);
  flex: 1;
}
.gallery-item-title {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--heading);
  margin-block: var(--space-2) var(--space-1);
  line-height: 1.2;
  transition: color var(--transition);
}
.gallery-item-link:hover .gallery-item-title { color: var(--accent); }

/* Featured gallery item — spans full width, taller image */
.gallery-item--featured {
  grid-column: 1 / -1;
}
.gallery-item--featured .gallery-item-link {
  flex-direction: row;
  max-height: 420px;
}
.gallery-item--featured .gallery-item-img {
  flex: 0 0 60%;
  aspect-ratio: 16/9;
}
.gallery-item--featured .gallery-item-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-8) var(--space-8);
}
.gallery-item--featured .gallery-item-title {
  font-size: var(--text-3xl);
}
@media (max-width: 700px) {
  .gallery-item--featured .gallery-item-link { flex-direction: column; max-height: none; }
  .gallery-item--featured .gallery-item-img { flex: none; }
}

/* ── Related projects ───────────────────────────────────────── */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-10);
}
.related-card a {
  display: flex;
  flex-direction: column;
  color: inherit;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color var(--transition);
}
.related-card a:hover { border-color: var(--accent); }
.related-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--surface);
}
.related-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.related-card a:hover .related-card-img img { transform: scale(1.05); }
.related-card-body {
  padding: var(--space-4) var(--space-5) var(--space-5);
}
.related-card h3 {
  font-size: var(--text-xl);
  font-weight: 400;
  margin-block: var(--space-1) var(--space-1);
  transition: color var(--transition);
}
.related-card a:hover h3 { color: var(--accent); }

/* ── About page ─────────────────────────────────────────────── */
.about-intro { margin-bottom: var(--space-10); }
.about-intro h2 {
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: 300;
  margin-top: var(--space-4);
  line-height: 1.2;
}
.about-text-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
}
.about-text-grid p {
  font-size: var(--text-base);
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: var(--space-5);
}
.about-text-grid .lead { color: var(--text); font-size: var(--text-lg); }

.founder-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.founder-portrait {
  margin: 0;
}
.founder-portrait img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(15%);
}
.founder-portrait figcaption {
  font-size: var(--text-sm);
  color: var(--muted);
  font-style: italic;
  margin-top: var(--space-2);
  padding-left: 2px;
}
.founder-text p {
  font-size: var(--text-base);
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: var(--space-5);
}
.founder-text .lead { color: var(--text); font-size: var(--text-lg); }

.value-num {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  font-weight: 300;
  color: var(--border);
  display: block;
  margin-bottom: var(--space-4);
  line-height: 1;
}
.value-item h3 { font-size: var(--text-lg); font-weight: 500; margin-bottom: var(--space-3); }
.value-item p  { font-size: var(--text-sm); color: var(--muted); line-height: 1.75; }

/* ── Values horizontal strip ────────────────────────────────── */
.values-strip-section { padding-block: clamp(3rem, 5vw, 5rem); }
.values-strip-header {
  display: flex;
  align-items: baseline;
  gap: var(--space-6);
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--space-5);
}
.values-strip-header .section-label { margin: 0; }
.values-strip-header h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 300;
  margin: 0;
}
.values-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--border);
}
.values-strip .value-item {
  background: var(--surface);
  padding: var(--space-6) var(--space-5);
  border-top: none;
}
.values-strip .value-num {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
  color: #9a9088;
}
.values-strip .value-item h3 {
  font-size: var(--text-base);
  font-weight: 500;
  margin-bottom: var(--space-2);
}
.values-strip .value-item p {
  font-size: 0.78rem;
  line-height: 1.65;
}
@media (max-width: 1000px) {
  .values-strip { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 580px) {
  .values-strip { grid-template-columns: repeat(2, 1fr); }
  .values-strip-header { flex-direction: column; gap: var(--space-2); }
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.stats-band .stat-item {
  background: var(--white);
  padding: var(--space-8) var(--space-6);
  border: none;
  text-align: center;
}

/* Team card image — real photo */
.team-card-img {
  aspect-ratio: 3/4;
  overflow: hidden;
  margin-bottom: var(--space-5);
  background: var(--surface);
}
.team-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(20%);
  transition: transform 0.5s ease, filter 0.5s ease;
}
.team-card:hover .team-card-img img {
  transform: scale(1.04);
  filter: grayscale(0);
}
/* Legacy placeholder (keep for safety) */
.team-card-img--placeholder {
  aspect-ratio: 3/4;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  overflow: hidden;
}
.team-placeholder-icon { opacity: 0.3; }
.team-placeholder-icon svg { width: 80px; height: 80px; }
.team-card-body h3 { font-size: var(--text-xl); font-weight: 400; margin-bottom: var(--space-1); }
.team-role {
  display: block;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-4);
}
.team-card-body p {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.7;
}

/* ── Colaboradores ──────────────────────────────────────────── */
.team-card--colabs {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  padding: var(--space-6) var(--space-8);
  background: #ffffff;
}
.team-card--colabs .section-label {
  margin-bottom: var(--space-5);
}
.colabs-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-10);
  flex-wrap: wrap;
}
.colab-logo-link {
  display: block;
  opacity: 0.55;
  transition: opacity var(--transition);
}
a.colab-logo-link:hover {
  opacity: 1;
}
.colab-logo {
  height: 52px;
  width: auto;
  display: block;
  filter: grayscale(60%);
  transition: filter var(--transition);
}
.colab-logo--lg {
  height: 72px;
}
a.colab-logo-link:hover .colab-logo {
  filter: grayscale(0%);
}
@media (max-width: 800px) {
  .team-card--colabs {
    grid-column: span 1;
    padding: var(--space-5) var(--space-4);
  }
  .colabs-logos { gap: var(--space-6); }
}

.studio-address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.studio-address p, .studio-address a {
  color: rgba(255,255,255,0.55);
  font-size: var(--text-base);
  transition: color var(--transition);
}
.studio-address a:hover { color: white; }

/* ── Blog/Noticias page ──────────────────────────────────────── */
.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.blog-card:hover { box-shadow: var(--shadow); }
.blog-card--featured { grid-column: span 2; }
.blog-card--featured .blog-card-img { aspect-ratio: 16/7; }
.blog-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.blog-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--surface);
}
.blog-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-card-body {
  padding: var(--space-6) var(--space-6) var(--space-7);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
}
.blog-cat {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.blog-card-meta time {
  font-size: var(--text-xs);
  color: var(--muted);
}
.blog-card h2 {
  font-size: var(--text-xl);
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: var(--space-3);
  transition: color var(--transition);
}
.blog-card:hover h2 { color: var(--accent); }
.blog-card p {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.7;
  flex: 1;
  margin-bottom: var(--space-4);
}
.blog-read-more {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--heading);
  text-transform: uppercase;
  margin-top: auto;
}

.pagination {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  justify-content: center;
  margin-top: var(--space-16);
  flex-wrap: wrap;
}
.pagination-current {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--heading);
  color: white;
  font-size: var(--text-sm);
  font-weight: 500;
}
.pagination-page {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  font-size: var(--text-sm);
  color: var(--muted);
  transition: all var(--transition);
}
.pagination-page:hover { border-color: var(--heading); color: var(--heading); }
.pagination-dots { color: var(--muted); }
.pagination-next {
  padding: 0 var(--space-5);
  height: 40px;
  display: flex;
  align-items: center;
  font-size: var(--text-sm);
  color: var(--text);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.pagination-next:hover { border-color: var(--heading); color: var(--heading); }

.newsletter-section { padding-block: clamp(3rem, 6vw, 5rem); }
.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.newsletter-text h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 300;
  margin-block: var(--space-3) var(--space-4);
}
.newsletter-text p { font-size: var(--text-base); color: var(--muted); line-height: 1.7; }
.newsletter-fields {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
}
.newsletter-fields input {
  flex: 1;
  padding: 14px 16px;
  background: var(--white);
  border: none;
  font-size: var(--text-base);
  font-family: var(--font-sans);
  color: var(--heading);
  min-width: 0;
}
.newsletter-fields input:focus { outline: none; }
.newsletter-fields .btn-primary { flex-shrink: 0; border-radius: 0; }
.newsletter-legal {
  font-size: var(--text-xs);
  color: var(--muted);
  margin-top: var(--space-3);
  line-height: 1.6;
}
.newsletter-legal a { text-decoration: underline; }

/* ── Contact page ───────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.contact-form-col h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 300;
  margin-bottom: var(--space-3);
}
.contact-intro {
  font-size: var(--text-base);
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: var(--space-8);
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.form-field label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-field input,
.form-field select,
.form-field textarea {
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--heading);
  font-size: var(--text-base);
  font-family: var(--font-sans);
  transition: border-color var(--transition), background var(--transition);
  width: 100%;
  border-radius: 0;
  -webkit-appearance: none;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--heading);
  background: var(--white);
}
.form-field input.invalid,
.form-field textarea.invalid { border-color: #C0392B; }
.form-field textarea { min-height: 160px; resize: vertical; }
.field-error {
  font-size: var(--text-xs);
  color: #C0392B;
  margin-top: var(--space-1);
}
.form-field--checkbox .checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--muted);
  cursor: pointer;
  line-height: 1.5;
}
.checkbox-label input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px;
  padding: 0 !important;
  margin-top: 2px;
  -webkit-appearance: checkbox !important;
  appearance: checkbox !important;
  cursor: pointer;
}
.checkbox-label span {
  flex: 1;
  min-width: 0;
}
.checkbox-label a { text-decoration: underline; }
.form-status {
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-sm);
  border-radius: var(--radius);
  display: none;
}
.form-status.success {
  display: block;
  background: #E8F5E9;
  color: #2E7D32;
  border: 1px solid #C8E6C9;
}
.form-status.error {
  display: block;
  background: #FFEBEE;
  color: #C62828;
  border: 1px solid #FFCDD2;
}
.form-submit { align-self: flex-start; margin-top: var(--space-2); }

.contact-info-col {
  position: sticky;
  top: calc(var(--header-h) + var(--space-8));
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.contact-info-block,
.contact-whatsapp-block,
.contact-social-block {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: var(--space-8);
}
.contact-info-block h3,
.contact-whatsapp-block h3,
.contact-social-block h3 {
  font-size: var(--text-base);
  font-weight: 500;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border);
}
.contact-data {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.contact-data dt {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: var(--space-5);
  margin-bottom: var(--space-1);
}
.contact-data dt svg { width: 14px; height: 14px; flex-shrink: 0; }
.contact-data dd {
  font-size: var(--text-sm);
  color: var(--text);
  line-height: 1.6;
}
.contact-data dd a { color: var(--heading); transition: color var(--transition); }
.contact-data dd a:hover { color: var(--accent); }

.contact-whatsapp-block p {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: var(--space-5);
}
.whatsapp-contact-btn {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: #25D366;
  color: white;
  padding: 12px 20px;
  font-size: var(--text-sm);
  font-weight: 500;
  transition: background var(--transition);
  width: 100%;
  justify-content: center;
}
.whatsapp-contact-btn:hover { background: #1AAA55; color: white; }
.whatsapp-contact-btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.contact-social-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.social-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  transition: all var(--transition);
  background: var(--white);
}
.social-link:hover { border-color: var(--heading); color: var(--heading); }
.social-link svg { width: 18px; height: 18px; flex-shrink: 0; }

.contact-map-section { background: var(--surface); }
.map-frame { overflow: hidden; }
.map-frame iframe { display: block; width: 100%; height: 420px; }
.map-caption {
  padding: var(--space-3) 0;
  font-size: var(--text-sm);
  color: var(--muted);
  border-top: 1px solid var(--border);
}
.map-caption a { color: var(--accent); }
@media (max-width: 640px) {
  .map-frame iframe { height: 260px; }
}

/* ── FAQ ────────────────────────────────────────────────────── */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 clamp(2rem, 5vw, 5rem);
}
.faq-item {
  border-top: 1px solid var(--border);
}
.faq-item summary {
  padding-block: var(--space-5);
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--heading);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  transition: color var(--transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform var(--transition), color var(--transition);
}
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq-item summary:hover { color: var(--accent); }
.faq-answer {
  padding-bottom: var(--space-6);
  padding-right: var(--space-8);
}
.faq-answer p {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.8;
}

/* ── Filter bar ─────────────────────────────────────────────── */
.filter-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  flex: 1;
}

/* Mobile filter toggle — hidden on desktop */
.filter-mobile-toggle { display: none; }

@media (max-width: 900px) {
  .filter-row {
    flex-direction: column;
    gap: var(--space-2);
  }
  .filter-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 2px;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: var(--text-xs);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
  }
  .filter-mobile-toggle[aria-expanded="true"] {
    background: var(--bg-soft);
    color: var(--heading);
    border-color: var(--heading);
  }
  .filter-mobile-arrow {
    transition: transform 0.25s ease;
    flex-shrink: 0;
    pointer-events: none;
  }
  .filter-mobile-toggle[aria-expanded="true"] .filter-mobile-arrow {
    transform: rotate(180deg);
  }
  .filter-bar {
    display: none;
    flex-direction: column;
    flex-wrap: nowrap;
    flex: none;
    width: 100%;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 2px;
    overflow: hidden;
  }
  .filter-btn {
    width: 100%;
    border: none !important;
    border-bottom: 1px solid var(--border) !important;
    border-radius: 0 !important;
    text-align: left;
    justify-content: flex-start;
    padding: 12px 14px !important;
  }
  .filter-btn:last-child {
    border-bottom: none !important;
  }
}

/* Status filter icon + dropdown */
.status-filter-wrap {
  flex-shrink: 0;
  position: relative;
  z-index: 100;
}

@media (max-width: 900px) {
  .status-filter-wrap { display: none !important; }
  .sort-year-btn { display: none !important; }
}

.sort-year-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.sort-year-btn:hover {
  background: var(--bg-soft);
  color: var(--heading);
  border-color: var(--heading);
}

.sort-year-btn.is-active {
  background: var(--heading);
  color: white;
  border-color: var(--heading);
}

.status-filter-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.status-filter-btn svg {
  pointer-events: none;
}

.status-filter-btn:hover {
  background: var(--bg-soft);
  color: var(--heading);
  border-color: var(--heading);
}

.status-filter-btn.is-active {
  background: var(--heading);
  color: white;
  border-color: var(--heading);
}

.status-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: white;
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  min-width: 190px;
  z-index: 1000;
}

.status-option {
  display: block;
  width: 100%;
  padding: 10px 16px;
  text-align: left;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s, color 0.15s;
}

.status-option:last-child { border-bottom: none; }

.status-option:hover { background: var(--bg-soft); color: var(--heading); }

.status-option.active { color: var(--heading); font-weight: 600; }

/* ── Lightbox content ───────────────────────────────────────── */
.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  max-width: 90vw;
  max-height: 90vh;
}
.lightbox-img { transition: opacity 0.15s ease; }
.lightbox-caption {
  color: rgba(255,255,255,0.6);
  font-size: var(--text-sm);
  text-align: center;
  max-width: 600px;
}
body.lightbox-open { overflow: hidden; }
body.nav-open { overflow: hidden; }

/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--heading); }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background: var(--accent);
  color: white;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background var(--transition), transform var(--transition);
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--accent-dark); color: white; transform: translateY(-1px); }
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 26px;
  background: transparent;
  color: var(--heading);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--heading);
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
}
.btn-outline:hover { background: var(--heading); color: white; }
.btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 26px;
  background: transparent;
  color: white;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.5);
  transition: background var(--transition), border-color var(--transition);
  cursor: pointer;
}
.btn-outline-white:hover { background: rgba(255,255,255,0.08); border-color: white; color: white; }
.btn-lg { padding: 14px 34px; font-size: var(--text-base); }

/* ── Container ───────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

/* ── Responsive supplements ──────────────────────────────────── */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .project-layout { grid-template-columns: 1fr; }
  .project-sidebar { position: static; }
  .intro-layout { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: repeat(3, 1fr); }
  .newsletter-inner { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-info-col { position: static; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { grid-template-columns: 48px 1fr; }
}
@media (max-width: 900px) {
  .main-nav { display: none; }
  .menu-toggle { display: flex; }
  .categories-grid { grid-template-columns: 1fr; }
  .projects-editorial .project-card { grid-column: span 12 !important; }
  .split-layout { grid-template-columns: 1fr; }
  .split-layout--reverse .split-image { order: -1; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-grid { grid-template-columns: 1fr; }
  .about-text-grid { grid-template-columns: 1fr; }
  .founder-layout { grid-template-columns: 1fr; }
  .founder-portrait img { height: 260px; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .project-gallery { columns: 2; }
  .blog-card--featured { grid-column: span 1; }
  .blog-card--featured .blog-card-img { aspect-ratio: 16/9; }
}
@media (max-width: 640px) {
  .categories-grid,
  .related-grid,
  .stats-band { grid-template-columns: 1fr; }
  .project-gallery { columns: 1; }
  .process-steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .intro-stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .newsletter-fields { flex-direction: column; }
  .newsletter-fields .btn-primary { width: 100%; }

  /* Slideshow fijo en el primer slide en móvil */
  .hero-slide { display: none !important; opacity: 1 !important; transition: none !important; }
  .hero-slide:first-child { display: block !important; }
  .hero-dots { display: none; }

  /* Hero móvil: título arriba, eyebrow justo encima de los botones */
  .hero { align-items: stretch; }
  .hero-content {
    display: flex;
    flex-direction: column;
    padding-top: calc(var(--header-h) + 1.5rem);
    padding-bottom: 2.5rem;
  }
  .hero-title   { order: 1; margin-bottom: var(--space-4); }
  .hero-subtitle { order: 2; margin-bottom: 0; }
  .hero-eyebrow {
    order: 3;
    margin-top: auto;
    padding-top: 1.5rem;
    margin-bottom: var(--space-3);
  }
  .hero-actions { order: 4; }
}
