/* =============================================================
   EFITEC HOMES — styles.css
   Arquetipo: Editorial Light Cream (adaptado a la marca)
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --green:      #203c30;   /* verde corporativo */
  --green-2:    #2d5141;
  --green-soft: #dfe6e0;
  --ivory:      #f7f5ef;   /* marfil corporativo */
  --sand:       #ece6d9;
  --paper:      #ffffff;
  --wood:       #a8703f;   /* acento cálido madera */
  --wood-soft:  #e9d7c3;
  --ink:        #17211c;
  --ink-soft:   #34403a;
  --ink-mute:   #6a736e;
  --line:       rgba(23, 33, 28, 0.12);
  --line-light: rgba(255, 255, 255, 0.22);

  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body:    "Inter", "Helvetica Neue", Arial, sans-serif;

  --gutter:  clamp(16px, 4vw, 56px);
  --maxw:    1320px;
  --radius:  4px;
  --nav-h:   76px;
  --ease:    cubic-bezier(.22, .8, .22, 1);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--wood); outline-offset: 3px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 999;
  background: var(--green); color: var(--ivory); padding: 10px 16px;
}
.skip-link:focus { left: 8px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.section { padding: clamp(80px, 11vw, 160px) 0; }
.section--tight { padding: clamp(56px, 7vw, 96px) 0; }
.bg-sand { background: var(--sand); }
.bg-green { background: var(--green); color: var(--ivory); }
.bg-paper { background: var(--paper); }

/* =============================================================
   4. Typography
   ============================================================= */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 350;
  line-height: 1.06;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 120, "SOFT" 50;
}
h1 em, h2 em, h3 em { font-style: italic; font-weight: 300; color: var(--wood); }
.bg-green h2 em, .hero h1 em, .page-hero h1 em { color: var(--wood-soft); }
.h-xl { font-size: clamp(2.6rem, 7.2vw, 6.6rem); }
.h-lg { font-size: clamp(2.2rem, 5vw, 4.4rem); }
.h-md { font-size: clamp(1.7rem, 3.2vw, 2.7rem); }
.h-sm { font-size: clamp(1.25rem, 1.8vw, 1.55rem); line-height: 1.2; }
.kicker {
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--wood);
  display: inline-flex; align-items: center; gap: 12px;
}
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.bg-green .kicker, .hero .kicker, .page-hero .kicker { color: var(--wood-soft); }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.32rem); line-height: 1.6; color: var(--ink-soft); max-width: 46ch; }
.bg-green .lead { color: rgba(247, 245, 239, 0.82); }
.muted { color: var(--ink-mute); }
.small { font-size: 14px; }
p + p { margin-top: 1em; }

/* =============================================================
   5. Components
   ============================================================= */
/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
  white-space: nowrap;
}
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }
.btn--primary { background: var(--green); color: var(--ivory); }
.btn--primary:hover { background: var(--green-2); }
.btn--wood { background: var(--wood); color: #fff; }
.btn--wood:hover { background: #8f5d31; }
.btn--ghost { border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: var(--ivory); color: var(--green); }
.btn--light:hover { background: #fff; }
.btn--outline-light { border-color: rgba(247,245,239,.5); color: var(--ivory); }
.btn--outline-light:hover { border-color: var(--ivory); background: rgba(247,245,239,.08); }
.btn[disabled] { opacity: .55; pointer-events: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 15px;
  border-bottom: 1px solid currentColor; padding-bottom: 4px;
}
.link-arrow .arrow { transition: transform .35s var(--ease); }
.link-arrow:hover .arrow { transform: translateX(5px); }

/* --- Logo --- */
.logo { display: inline-flex; align-items: center; gap: 12px; color: inherit; }
.logo svg { width: 54px; height: auto; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-family: var(--f-body); font-size: 17px; letter-spacing: 0.24em; font-weight: 500; }
.logo-sub { font-size: 8.5px; letter-spacing: 0.24em; margin-top: 6px; opacity: .8; }

/* --- Nav --- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  color: var(--ivory);
  transition: background .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease), transform .4s var(--ease);
}
.nav::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,18,14,.45), rgba(10,18,14,0));
  transition: opacity .4s var(--ease);
}
.nav-inner { position: relative; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-links { display: none; align-items: center; gap: 26px; font-size: 14px; font-weight: 500; }
.nav-links a { position: relative; padding: 6px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { display: none; }
.nav.is-solid, .nav-open .nav {
  background: rgba(247, 245, 239, 0.96);
  color: var(--green);
  box-shadow: 0 1px 0 var(--line);
}
@supports (backdrop-filter: blur(10px)) {
  .nav.is-solid { background: rgba(247, 245, 239, 0.86); backdrop-filter: blur(14px) saturate(1.2); }
}
.nav.is-solid::before, .nav-open .nav::before { opacity: 0; }
.nav.is-hidden { transform: translateY(-100%); }
.nav.is-solid .nav-cta .btn { background: var(--green); color: var(--ivory); }

.nav-toggle {
  width: 44px; height: 44px; display: grid; place-items: center; position: relative; z-index: 2;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 24px; height: 1.5px; background: currentColor; position: relative;
  transition: transform .35s var(--ease), background .35s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--ivory); color: var(--green);
  padding: calc(var(--nav-h) + 32px) var(--gutter) 40px;
  display: flex; flex-direction: column; gap: 6px;
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
}
.mobile-menu a.m-link {
  font-family: var(--f-display); font-size: clamp(2rem, 9vw, 2.8rem); font-weight: 350;
  padding: 8px 0; border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { margin-top: 28px; align-self: flex-start; }
.mobile-menu .m-contact { margin-top: auto; font-size: 15px; color: var(--ink-mute); }
.nav-open .mobile-menu { opacity: 1; visibility: visible; }
.nav-open { overflow: hidden; }

/* --- Cards: proyecto --- */
.project-card { display: block; position: relative; color: var(--ink); }
.project-card .pc-media { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--sand); border-radius: var(--radius); }
.project-card .pc-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease), filter 1.2s var(--ease);
}
.project-card:hover .pc-media img { transform: scale(1.07); filter: saturate(1.1) brightness(1.04); }
.project-card .pc-tag {
  position: absolute; top: 16px; left: 16px;
  background: rgba(247,245,239,.92); color: var(--green);
  font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 999px;
}
.project-card .pc-more {
  position: absolute; right: 16px; bottom: 16px;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--ivory); color: var(--green);
  display: grid; place-items: center; font-size: 20px;
  transform: scale(.6); opacity: 0; transition: transform .5s var(--ease), opacity .5s var(--ease);
}
.project-card:hover .pc-more, .project-card:focus-visible .pc-more { transform: scale(1); opacity: 1; }
.project-card .pc-body { padding-top: 18px; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.project-card h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); }
.project-card .pc-meta { font-size: 14px; color: var(--ink-mute); white-space: nowrap; }
.project-card .pc-place { font-size: 14px; color: var(--ink-mute); margin-top: 2px; }

/* --- Marquee --- */
.marquee {
  overflow: hidden; border-block: 1px solid var(--line);
  padding: 22px 0; background: var(--ivory);
}
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span {
  font-family: var(--f-display); font-style: italic; font-weight: 300;
  font-size: clamp(1.4rem, 2.6vw, 2.2rem); color: var(--green);
  padding: 0 28px; white-space: nowrap; display: inline-flex; align-items: center; gap: 56px;
}
.marquee-track span::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--wood); }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* --- Form --- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field .label { font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--ink-soft); }
.field .hint { font-size: 13px; color: var(--ink-mute); }
.input, .select, .textarea {
  width: 100%; padding: 15px 16px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 16px; transition: border-color .3s, box-shadow .3s;
}
.textarea { min-height: 130px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(32,60,48,.12); }
.field.is-invalid .input, .field.is-invalid .select { border-color: #b3412e; }
.field .error { display: none; font-size: 13px; color: #b3412e; }
.field.is-invalid .error { display: block; }

.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
  font-size: 15px; transition: background .25s, color .25s, border-color .25s;
}
.choice input:checked + span { background: var(--green); color: var(--ivory); border-color: var(--green); }
.choice input:focus-visible + span { outline: 2px solid var(--wood); outline-offset: 2px; }
.choice:hover span { border-color: var(--green); }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-soft); }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--green); flex: none; }
.check a { text-decoration: underline; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* =============================================================
   6. Sections
   ============================================================= */
/* --- Hero (home) --- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: var(--ivory); overflow: hidden; background: var(--green);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img, .hero-media video {
  width: 100%; height: 100%; object-fit: cover;
  animation: heroZoom 18s var(--ease) both;
}
.hero-media video { animation: none; }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,18,14,.35) 0%, rgba(10,18,14,0) 28%),
    linear-gradient(0deg, rgba(10,18,14,.85) 0%, rgba(10,18,14,.4) 50%, rgba(10,18,14,0) 78%);
}
.hero-content { position: relative; width: 100%; padding-bottom: clamp(48px, 8vh, 96px); }
.hero h1 { max-width: 15ch; margin: 22px 0 26px; }
.hero-sub { font-size: clamp(1.05rem, 1.4vw, 1.25rem); max-width: 44ch; color: rgba(247,245,239,.88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-scroll {
  position: absolute; right: var(--gutter); bottom: clamp(48px, 8vh, 96px);
  display: none; flex-direction: column; align-items: center; gap: 14px;
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase; writing-mode: vertical-rl;
}
.hero-scroll::after { content: ""; width: 1px; height: 64px; background: rgba(247,245,239,.6); animation: scrollLine 2.4s var(--ease) infinite; transform-origin: top; }

/* --- Page hero (interiores) --- */
.page-hero {
  position: relative; min-height: 80vh; min-height: 80svh;
  display: flex; align-items: flex-end; color: var(--ivory); overflow: hidden; background: var(--green);
}
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: heroZoom 16s var(--ease) both; }
.page-hero .hero-overlay { background: linear-gradient(0deg, rgba(10,18,14,.8) 0%, rgba(10,18,14,.2) 60%, rgba(10,18,14,.35) 100%); }
.page-hero .container { position: relative; padding-bottom: clamp(40px, 7vh, 80px); padding-top: calc(var(--nav-h) + 40px); }
.page-hero h1 { margin: 18px 0 18px; max-width: 18ch; }
.page-hero p { max-width: 54ch; color: rgba(247,245,239,.86); font-size: clamp(1.02rem, 1.3vw, 1.18rem); }

/* --- Intro / qué hacemos --- */
.intro-grid { display: grid; gap: 40px; }
.intro-grid .num { font-family: var(--f-display); font-style: italic; font-size: 15px; color: var(--ink-mute); }
.intro-text h2 { margin: 18px 0 28px; }
.intro-text .body { max-width: 60ch; color: var(--ink-soft); }
.intro-figure { position: relative; }
.intro-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.intro-figure figcaption { font-size: 13px; color: var(--ink-mute); margin-top: 12px; }
.intro-badge {
  position: absolute; left: -12px; bottom: 40px;
  background: var(--green); color: var(--ivory); padding: 22px 26px; border-radius: var(--radius);
  max-width: 230px; box-shadow: 0 30px 60px -30px rgba(10,18,14,.6);
}
.intro-badge strong { display: block; font-family: var(--f-display); font-size: 2.6rem; font-weight: 300; line-height: 1; }
.intro-badge span { font-size: 13px; opacity: .85; }

/* --- Diferencias --- */
.diff-head { display: grid; gap: 24px; margin-bottom: clamp(48px, 6vw, 80px); }
.diff-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.diff-item { background: var(--ivory); padding: clamp(28px, 3.2vw, 44px); display: flex; flex-direction: column; gap: 14px; transition: background .4s var(--ease); }
.bg-sand .diff-item { background: var(--sand); }
.diff-item:hover { background: var(--paper); }
.diff-item .d-num { font-family: var(--f-display); font-style: italic; color: var(--wood); font-size: 15px; }
.diff-item h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); }
.diff-item p { color: var(--ink-soft); font-size: 16px; }
.diff-icon { width: 42px; height: 42px; color: var(--green); }

/* --- Stats --- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
.stat strong {
  display: block; font-family: var(--f-display); font-weight: 300;
  font-size: clamp(2.8rem, 6vw, 5rem); line-height: 1; letter-spacing: -0.03em;
}
.stat strong small { font-size: .5em; margin-left: 4px; }
.stat > span { display: block; margin-top: 12px; font-size: 14.5px; opacity: .8; max-width: 24ch; }

/* --- Comparativa --- */
.compare { display: grid; gap: 24px; margin-top: 56px; }
.compare-bar { display: grid; gap: 10px; }
.compare-bar .cb-label { display: flex; justify-content: space-between; font-size: 15px; }
.compare-bar .cb-track { height: 10px; background: rgba(247,245,239,.12); border-radius: 999px; overflow: hidden; }
.compare-bar .cb-fill { height: 100%; width: var(--w); background: var(--wood-soft); border-radius: 999px; transform-origin: left; }
.compare-bar.is-es .cb-fill { background: var(--wood); }

/* --- Proceso (fases) --- */
.phases { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); margin-top: clamp(40px, 5vw, 64px); }
.phase { background: var(--ivory); padding: 32px 0; display: grid; grid-template-columns: 64px 1fr; gap: 16px; }
.phase .p-num { font-family: var(--f-display); font-size: 2rem; font-weight: 300; color: var(--wood); line-height: 1; }
.phase h3 { font-size: 1.45rem; }
.phase p { color: var(--ink-soft); font-size: 15.5px; margin-top: 6px; }
.phase .p-time {
  display: inline-block; margin-top: 14px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green); background: var(--green-soft); padding: 6px 12px; border-radius: 999px;
}

/* --- Proyectos (home) --- */
.projects-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px; margin-bottom: clamp(40px, 5vw, 64px); }
.projects-grid { display: grid; gap: 48px 28px; }
.projects-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(48px, 6vw, 72px); justify-content: center; }

/* --- Subvenciones teaser --- */
.grant-teaser { display: grid; gap: 40px; align-items: center; }
.grant-teaser > * { min-width: 0; }
.grant-amount { font-family: var(--f-display); font-weight: 300; font-size: clamp(4rem, 12vw, 9.5rem); line-height: .9; letter-spacing: -0.04em; }
.grant-amount em { font-style: italic; color: var(--wood-soft); }

/* --- CTA final --- */
.cta-final { position: relative; overflow: hidden; color: var(--ivory); background: var(--green); }
.cta-final img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .2; }
.cta-final .container { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.cta-final h2 { max-width: 16ch; }
.cta-final p { max-width: 50ch; color: rgba(247,245,239,.85); }

/* --- Página proyectos --- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; }
.filter-btn {
  padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 500;
  transition: background .3s, color .3s, border-color .3s;
}
.filter-btn:hover { border-color: var(--green); }
.filter-btn.is-active { background: var(--green); color: var(--ivory); border-color: var(--green); }
.project-card[hidden] { display: none; }
.project-card .pc-desc { margin-top: 10px; font-size: 15px; color: var(--ink-soft); max-width: 46ch; }
.project-card .pc-feats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.project-card .pc-feats li { font-size: 12.5px; border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; color: var(--ink-soft); }

.build-steps { display: grid; gap: 56px; margin-top: clamp(48px, 6vw, 80px); }
.build-step { display: grid; gap: 22px; align-items: center; }
.build-step figure { overflow: hidden; border-radius: var(--radius); }
.build-step img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.2s var(--ease); }
.build-step:hover img { transform: scale(1.04); }
.build-step .bs-num { font-family: var(--f-display); font-style: italic; color: var(--wood); font-size: 15px; }
.build-step h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin: 10px 0 14px; }
.build-step p { color: var(--ink-soft); max-width: 52ch; }

/* --- Lightbox --- */
.lightbox {
  border: 0; padding: 0; margin: 0; max-width: none; max-height: none;
  width: 100vw; height: 100vh; height: 100dvh; background: rgba(12, 18, 15, .96); color: var(--ivory);
}
.lightbox::backdrop { background: rgba(12, 18, 15, .9); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 18px var(--gutter); gap: 16px; }
.lb-title { font-family: var(--f-display); font-size: clamp(1.2rem, 2vw, 1.6rem); }
.lb-title small { display: block; font-family: var(--f-body); font-size: 13px; opacity: .7; margin-top: 2px; }
.lb-close { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-light); color: var(--ivory); font-size: 22px; }
.lb-stage { position: relative; display: grid; place-items: center; padding: 0 var(--gutter); min-height: 0; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 190px); max-height: calc(100dvh - 190px); object-fit: contain; border-radius: 2px; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%; background: rgba(247,245,239,.12); color: var(--ivory); font-size: 22px;
}
.lb-nav:hover { background: rgba(247,245,239,.24); }
.lb-prev { left: calc(var(--gutter) - 8px); }
.lb-next { right: calc(var(--gutter) - 8px); }
.lb-bottom { padding: 16px var(--gutter) 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 14px; }
.lb-thumbs { display: flex; gap: 8px; overflow-x: auto; }
.lb-thumbs button { flex: none; width: 64px; height: 46px; border-radius: 3px; overflow: hidden; opacity: .45; transition: opacity .3s; }
.lb-thumbs button.is-active, .lb-thumbs button:hover { opacity: 1; }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* --- Subvenciones --- */
.aid-grid { display: grid; gap: 24px; margin-top: 48px; }
.aid-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 3.5vw, 48px); display: flex; flex-direction: column; gap: 16px; }
.aid-card .aid-code { font-size: 12px; font-weight: 600; letter-spacing: .16em; color: var(--wood); text-transform: uppercase; }
.aid-card .aid-max { font-family: var(--f-display); font-size: clamp(2.8rem, 5vw, 4rem); font-weight: 300; line-height: 1; color: var(--green); }
.aid-card .aid-max small { font-size: .38em; color: var(--ink-mute); font-family: var(--f-body); display: block; margin-bottom: 6px; letter-spacing: .04em; }
.aid-card p { color: var(--ink-soft); }
.aid-total { margin-top: 24px; padding: 26px clamp(24px, 3vw, 40px); border-radius: var(--radius); background: var(--green); color: var(--ivory); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.aid-total strong { font-family: var(--f-display); font-weight: 300; font-size: clamp(2rem, 4vw, 3rem); }

.table-wrap { overflow-x: auto; margin-top: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th, td { text-align: left; padding: 18px 22px; border-bottom: 1px solid var(--line); font-size: 15.5px; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-mute); font-weight: 600; background: var(--ivory); }
tr:last-child td { border-bottom: 0; }
td.num { font-family: var(--f-display); font-size: 1.35rem; color: var(--green); white-space: nowrap; }
tr.total td { background: var(--green-soft); font-weight: 600; }

.notice {
  margin-top: 32px; padding: 22px 26px; border-left: 3px solid var(--wood); background: var(--wood-soft);
  font-size: 15px; color: var(--ink-soft); border-radius: 0 var(--radius) var(--radius) 0;
}
.notice strong { color: var(--ink); }

.steps4 { display: grid; gap: 1px; background: var(--line-light); margin-top: 48px; border: 1px solid var(--line-light); }
.steps4 li { background: var(--green); padding: 32px 28px; }
.steps4 .s-num { font-family: var(--f-display); font-style: italic; color: var(--wood-soft); }
.steps4 h3 { font-size: 1.45rem; margin: 10px 0; }
.steps4 p { font-size: 15px; color: rgba(247,245,239,.8); }

.status { display: grid; gap: 20px; margin-top: 40px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 999px; background: var(--wood-soft); color: #7a4a20; align-self: flex-start;
}
.status-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* FAQ */
.faq { border-top: 1px solid var(--line); margin-top: 40px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 26px 56px 26px 0; position: relative;
  font-family: var(--f-display); font-size: clamp(1.2rem, 1.8vw, 1.5rem); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; font-family: var(--f-body); font-size: 20px; color: var(--green);
  transition: transform .4s var(--ease), background .3s, color .3s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--green); color: var(--ivory); border-color: var(--green); }
.faq .faq-body { padding: 0 56px 28px 0; color: var(--ink-soft); max-width: 72ch; }
.faq .faq-body ul { list-style: disc; padding-left: 20px; margin-top: 10px; }
.faq .faq-body li + li { margin-top: 6px; }
.faq-cats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }

/* --- Contacto / cuestionario --- */
.contact-grid { display: grid; gap: 56px; }
.contact-aside { display: flex; flex-direction: column; gap: 28px; }
.contact-card { padding: 28px; background: var(--green); color: var(--ivory); border-radius: var(--radius); display: flex; flex-direction: column; gap: 18px; }
.contact-card a { display: flex; flex-direction: column; gap: 2px; padding-bottom: 16px; border-bottom: 1px solid var(--line-light); }
.contact-card a:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-card small { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.contact-card strong { font-family: var(--f-display); font-weight: 350; font-size: 1.45rem; }
.contact-person { display: flex; gap: 16px; align-items: center; }
.contact-person .avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--wood-soft); display: grid; place-items: center; color: var(--green); font-family: var(--f-display); font-size: 1.4rem; }

.quiz { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 56px); position: relative; }
.quiz-progress { display: flex; gap: 6px; margin-bottom: 14px; }
.quiz-progress span { flex: 1; height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; position: relative; }
.quiz-progress span::after { content: ""; position: absolute; inset: 0; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.quiz-progress span.is-done::after { transform: scaleX(1); }
.quiz-step-label { font-size: 13px; color: var(--ink-mute); margin-bottom: 30px; }
.quiz-step { display: none; flex-direction: column; gap: 28px; }
.quiz-step.is-active { display: flex; animation: stepIn .55s var(--ease) both; }
.quiz-step h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.quiz-row { display: grid; gap: 20px; }
.quiz-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.quiz-nav .btn--ghost[hidden] { display: none; }
.quiz-result { display: none; text-align: center; padding: 30px 0; flex-direction: column; align-items: center; gap: 18px; }
.quiz-result.is-active { display: flex; animation: stepIn .55s var(--ease) both; }
.quiz-result .ok-icon { width: 76px; height: 76px; border-radius: 50%; background: var(--green); color: var(--ivory); display: grid; place-items: center; font-size: 34px; }
.quiz-result p { max-width: 48ch; color: var(--ink-soft); }
.quiz-error { display: none; margin-top: 20px; padding: 14px 18px; background: #f6e3de; color: #8a2f1f; border-radius: var(--radius); font-size: 15px; }
.quiz-error.is-active { display: block; }
.range-out { font-family: var(--f-display); font-size: 1.6rem; color: var(--green); }
input[type="range"] { width: 100%; accent-color: var(--green); }

/* --- Texto legal --- */
.legal { max-width: 76ch; }
.legal h2 { font-size: 1.6rem; margin: 40px 0 12px; }
.legal ul { list-style: disc; padding-left: 22px; }

/* --- Footer --- */
.footer { background: #15271f; color: rgba(247,245,239,.78); padding: clamp(64px, 8vw, 110px) 0 32px; font-size: 15px; }
.footer-top { display: grid; gap: 44px; padding-bottom: 56px; border-bottom: 1px solid var(--line-light); }
.footer .logo { color: var(--ivory); }
.footer-claim { font-family: var(--f-display); font-style: italic; font-size: 1.35rem; color: var(--ivory); margin-top: 22px; max-width: 26ch; line-height: 1.35; }
.footer h4 { font-family: var(--f-body); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--wood-soft); font-weight: 600; margin-bottom: 16px; }
.footer li + li { margin-top: 10px; }
.footer a:hover { color: var(--ivory); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding-top: 28px; font-size: 13px; opacity: .7; }

/* --- WhatsApp flotante --- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 80;
  width: 56px; height: 56px; border-radius: 50%; background: var(--green); color: var(--ivory);
  display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(10,18,14,.55);
  transition: transform .35s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 26px; height: 26px; }

/* =============================================================
   7. Effects
   ============================================================= */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
/* Red de seguridad (gotcha A.4.5) */
.reveal[data-split] { opacity: 1; transform: none; }
/* Si JS no arranca, todo visible */
html:not(.js) .reveal { opacity: 1; transform: none; }

.split-line { display: block; overflow: hidden; padding-bottom: .08em; }
.split-line > span { display: block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.is-split-in .split-line > span { transform: none; }
.split-line:nth-child(2) > span { transition-delay: .12s; }
.split-line:nth-child(3) > span { transition-delay: .24s; }

.img-reveal { clip-path: inset(0 0 100% 0); transition: clip-path 1.4s var(--ease); }
.img-reveal.is-in { clip-path: inset(0 0 0 0); }
html:not(.js) .img-reveal { clip-path: none; }

@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes scrollLine { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@keyframes stepIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 640px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .quiz-row--2 { grid-template-columns: 1fr 1fr; }
  .steps4 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 720px) {
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .diff-grid { grid-template-columns: 1fr 1fr; }
  .phases { grid-template-columns: repeat(2, 1fr); border: 0; background: transparent; gap: 0; }
  .phase { padding: 32px 28px 32px 0; border-top: 1px solid var(--line); }
  .aid-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .build-step { grid-template-columns: 1.1fr 1fr; gap: 56px; }
  .build-step:nth-child(even) figure { order: 2; }
}
@media (min-width: 1024px) {
  .nav-links, .nav-cta { display: flex; }
  .nav-toggle, .mobile-menu { display: none; }
  .hero-scroll { display: flex; }
  .intro-grid { grid-template-columns: 80px 1.1fr 1fr; gap: 56px; align-items: start; }
  .diff-head { grid-template-columns: 1fr 1fr; align-items: end; }
  .diff-grid { grid-template-columns: repeat(3, 1fr); }
  .phases { grid-template-columns: repeat(4, 1fr); }
  .phase { grid-template-columns: 1fr; padding-right: 32px; }
  .projects-grid--home { grid-template-columns: repeat(4, 1fr); }
  .projects-grid--home .project-card:nth-child(even) { margin-top: 72px; }
  .projects-grid--all { grid-template-columns: repeat(3, 1fr); }
  .grant-teaser { grid-template-columns: 1.1fr 1fr; gap: 80px; }
  .compare { gap: 28px; max-width: 900px; }
  .contact-grid { grid-template-columns: 1fr 2fr; gap: 72px; align-items: start; }
  .contact-aside { position: sticky; top: calc(var(--nav-h) + 32px); }
  .steps4 { grid-template-columns: repeat(4, 1fr); }
  .quiz-row--3 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1023px) {
  .intro-badge { left: 12px; bottom: 12px; }
}
@media (max-width: 719px) {
  body { font-size: 16px; }
  .btn { white-space: normal; text-align: center; justify-content: center; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .lb-nav { width: 42px; height: 42px; }
  .lb-thumbs { display: none; }
  .quiz-nav .btn { padding: 14px 20px; }
  .faq summary { padding-right: 52px; }
  .faq .faq-body { padding-right: 0; }
  .wa-float { width: 52px; height: 52px; }
}

/* =============================================================
   9. Reduced motion (solo efectos intrusivos)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-media img, .page-hero img { animation: none; }
  .marquee-track { animation-duration: 80s; }
  .hero-scroll::after { animation: none; }
}

/* =============================================================
   10. Página de cuestionario (solo el formulario)
   ============================================================= */
.quiz-page { background: var(--sand); }
.quiz-page .nav::before { display: none; }
.quiz-main { padding: calc(var(--nav-h) + clamp(32px, 6vw, 72px)) 0 clamp(56px, 8vw, 96px); min-height: 100vh; }
.quiz-wrap { max-width: 860px; }
.quiz-intro { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: clamp(28px, 4vw, 44px); }
.quiz-intro h1 { max-width: 18ch; }
.quiz-page .quiz { box-shadow: 0 30px 70px -40px rgba(10,18,14,.35); }
.quiz-alt { text-align: center; margin-top: 24px; }
@media (max-width: 719px) {
  .quiz-page .nav .link-arrow { font-size: 13px; }
  .quiz-page .logo-sub { display: none; }
}
@media (max-width: 719px) {
  .hide-sm { display: none; }
  .quiz-page .logo-name { white-space: nowrap; font-size: 15px; }
}
.show-sm { display: none; }
@media (max-width: 719px) { .show-sm { display: inline; } }

/* =============================================================
   11. Tarjetas de proyecto en modo "vídeo"
   ============================================================= */
[data-slideshow] .pc-media img.slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.04);
  transition: opacity .9s var(--ease);
}
[data-slideshow] .pc-media img.slide.is-active {
  opacity: 1;
  animation: slideZoom 3.8s linear both;
}
[data-slideshow] .project-card:hover .pc-media img.slide { filter: saturate(1.1) brightness(1.04); }
[data-slideshow] .pc-tag, [data-slideshow] .pc-more { z-index: 2; }
.pc-progress {
  position: absolute; left: 16px; right: 84px; bottom: 18px; z-index: 2;
  display: flex; gap: 5px; pointer-events: none;
}
.pc-progress i { flex: 1; height: 2px; border-radius: 2px; background: rgba(255,255,255,.35); overflow: hidden; position: relative; }
.pc-progress i::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.pc-progress i.is-on::after { animation: tickFill 2.4s linear forwards; }
@keyframes slideZoom { from { transform: scale(1.12); } to { transform: scale(1.02); } }
@keyframes tickFill { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  [data-slideshow] .pc-media img.slide.is-active { animation: none; transform: none; }
}

/* Casa completa: formato apaisado, sin zoom fuerte, verticales sin recortar */
[data-slideshow] .project-card .pc-media { aspect-ratio: 4 / 3; background: var(--green); }
[data-slideshow] .pc-media img.slide { transform: none; }
[data-slideshow] .pc-media img.slide.is-active { animation: slideDrift 3.8s linear both; }
[data-slideshow] .pc-media img.slide.is-portrait { object-fit: contain; animation: none; }
[data-slideshow] .project-card:hover .pc-media img { transform: none; }
@keyframes slideDrift { from { transform: scale(1.03); } to { transform: scale(1); } }

/* Más movimiento: cuatro recorridos de cámara que se alternan.
   Todos empiezan o terminan con la casa entera (escala 1). */
[data-slideshow] .pc-media img.slide.is-active { animation: camIn 3.8s cubic-bezier(.3,.1,.3,1) both; }
[data-slideshow] .pc-media img.slide.is-active[data-move="1"] { animation-name: camPanLeft; }
[data-slideshow] .pc-media img.slide.is-active[data-move="2"] { animation-name: camOut; }
[data-slideshow] .pc-media img.slide.is-active[data-move="3"] { animation-name: camPanRight; }
[data-slideshow] .pc-media img.slide.is-portrait.is-active { animation: camFloat 3.8s ease-in-out both; }
@keyframes camIn       { from { transform: scale(1); }                         to { transform: scale(1.12); } }
@keyframes camOut      { from { transform: scale(1.12) translateY(-2%); }      to { transform: scale(1); } }
@keyframes camPanLeft  { from { transform: scale(1.1) translateX(3.5%); }      to { transform: scale(1.1) translateX(-3.5%); } }
@keyframes camPanRight { from { transform: scale(1.1) translate(-3.5%, 1%); }  to { transform: scale(1.1) translate(3.5%, -1%); } }
@keyframes camFloat    { from { transform: scale(.96) translateY(2%); }        to { transform: scale(1.02) translateY(-1%); } }
@media (prefers-reduced-motion: reduce) {
  [data-slideshow] .pc-media img.slide.is-active { animation-duration: 6s; }
}

/* Fondo desenfocado detrás de las fotos que se muestran enteras */
.pc-backdrop {
  position: absolute; inset: -30px; z-index: 0;
  background-size: cover; background-position: center;
  filter: blur(22px) brightness(.75) saturate(1.1);
  transition: background-image .9s var(--ease);
}
[data-slideshow] .pc-media img.slide { z-index: 1; }

/* Menú con 5 enlaces: en pantallas medianas se usa el menú desplegable */
.nav-links a, .logo-name { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1379px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: grid; }
  .mobile-menu { display: flex; }
}

/* =============================================================
   12. Franja "+400 viviendas"
   ============================================================= */
.proof { background: var(--wood); color: #fff; padding: clamp(36px, 5vw, 56px) 0; }
.proof-inner { display: grid; gap: 14px 40px; align-items: center; }
.proof-num {
  font-family: var(--f-display); font-weight: 300; line-height: .9; letter-spacing: -0.04em;
  font-size: clamp(4.2rem, 11vw, 8.5rem);
}
.proof-title { font-family: var(--f-display); font-weight: 350; font-size: clamp(1.5rem, 2.8vw, 2.4rem); line-height: 1.15; max-width: 20ch; }
.proof-title em { font-style: italic; color: #fff3e3; }
.proof-sub { margin-top: 10px; font-size: 15px; opacity: .88; max-width: 52ch; }
.proof-link { color: #fff; justify-self: start; }
@media (min-width: 900px) {
  .proof-inner { grid-template-columns: auto 1fr auto; }
  .proof-link { justify-self: end; }
}
.page-hero .hero-proof {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 22px;
  padding: 10px 18px 10px 10px; border-radius: 999px;
  background: rgba(247,245,239,.14); border: 1px solid rgba(247,245,239,.3);
  font-size: 14.5px; color: #fff; max-width: none;
}
@supports (backdrop-filter: blur(8px)) { .page-hero .hero-proof { backdrop-filter: blur(8px); } }
.page-hero .hero-proof strong {
  font-family: var(--f-display); font-weight: 400; font-size: 1.3rem;
  background: var(--wood); color: #fff; border-radius: 999px; padding: 4px 14px;
}

/* =============================================================
   13. Portada en carrusel (flechas + paso automático)
   ============================================================= */
.hero-media .hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; object-position: center;   /* la casa entera, sin recortes */
  opacity: 0; animation: none; transform: scale(.97);
  transition: opacity 1.3s var(--ease);
}
.hero-media .hero-slide.is-active { opacity: 1; z-index: 1; animation: heroKen 7.5s ease-out both; }
.hero-media .hero-slide.is-leaving { z-index: 0; opacity: 0; }
@keyframes heroKen { from { transform: scale(.94); } to { transform: scale(1); } }
.hero-backdrop {
  position: absolute; inset: -60px; z-index: 0;
  background: var(--green) center / cover no-repeat;
  filter: blur(34px) brightness(.55) saturate(1.15);
  transition: background-image 1.2s var(--ease);
}
@media (max-width: 719px) {
  /* En el móvil: la casa entera arriba y el texto debajo, sin taparla */
  .hero-media .hero-slide { top: calc(var(--nav-h) + 68px); bottom: auto; height: 64vw; }
  .hero.has-carousel .hero-content { padding-top: calc(var(--nav-h) + 68px + 64vw + 20px); }
  .hero.has-carousel .hero-overlay { background: linear-gradient(0deg, rgba(10,18,14,.7) 0%, rgba(10,18,14,.2) 55%, rgba(10,18,14,.35) 100%); }
}

.hero-controls {
  position: absolute; z-index: 3; right: var(--gutter); bottom: clamp(48px, 8vh, 96px);
  display: flex; align-items: center; gap: 14px; color: var(--ivory);
}
.hc-arrow {
  width: 54px; height: 54px; border-radius: 50%;
  border: 1px solid rgba(247,245,239,.45); color: var(--ivory); font-size: 20px;
  background: rgba(10,18,14,.25); transition: background .3s, border-color .3s, transform .3s;
}
@supports (backdrop-filter: blur(6px)) { .hc-arrow { backdrop-filter: blur(6px); } }
.hc-arrow:hover { background: var(--wood); border-color: var(--wood); transform: scale(1.06); }
.hc-info { display: flex; flex-direction: column; gap: 8px; min-width: 120px; }
.hc-count { font-size: 12px; letter-spacing: .16em; opacity: .85; }
.hc-count b { font-family: var(--f-display); font-weight: 400; font-size: 1.5rem; letter-spacing: 0; opacity: 1; margin-right: 2px; }
.hc-bars { display: flex; gap: 5px; }
.hc-bars i { flex: 1; height: 2px; border-radius: 2px; background: rgba(247,245,239,.3); position: relative; overflow: hidden; }
.hc-bars i::after { content: ""; position: absolute; inset: 0; background: var(--ivory); transform: scaleX(0); transform-origin: left; }
.hc-bars i.is-done::after { transform: scaleX(1); }
.hc-bars i.is-on::after { animation: tickFill var(--hero-step, 6000ms) linear forwards; }
.hero.has-carousel .hero-scroll { display: none; }

@media (max-width: 1023px) {
  .hero-controls { top: calc(var(--nav-h) + 12px); bottom: auto; gap: 10px; }
  .hc-arrow { width: 42px; height: 42px; font-size: 16px; }
  .hc-info { min-width: 84px; }
  .hc-count b { font-size: 1.2rem; }
}

/* Proyectos de la home: tarjeta apaisada y la casa entera sobre fondo desenfocado */
.projects-grid--home .pc-media { aspect-ratio: 4 / 3; background: var(--green); }
.projects-grid--home .pc-media img { position: relative; z-index: 1; object-fit: contain; }
.projects-grid--home .project-card:hover .pc-media img { transform: scale(1.03); }
.projects-grid--home .pc-tag, .projects-grid--home .pc-more { z-index: 2; }
