/* =========================================================
   CORTIFER — style.css
   Paleta: Madera #8B5E3C | Carbón #1C1C1C | Hueso #FAF8F5
           Verde confianza #2D6A4F | Dorado #C9A85C
   Tipografía: Playfair Display (display) + Inter (body)
   ========================================================= */

/* ── RESET & ROOT ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --wood:    #8B5E3C;
  --wood-dk: #6B4423;
  --wood-lt: #C4956A;
  --carbon:  #1C1C1C;
  --charcoal:#2E2E2E;
  --bone:    #FAF8F5;
  --bone-dk: #F0ECE6;
  --green:   #2D6A4F;
  --green-lt:#52B788;
  --gold:    #C9A85C;
  --white:   #FFFFFF;
  --gray:    #6B7280;
  --gray-lt: #E5E0D8;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --radius:  8px;
  --radius-lg: 16px;
  --shadow:  0 4px 24px rgba(28,28,28,.10);
  --shadow-lg: 0 12px 48px rgba(28,28,28,.18);

  --max-w: 1200px;
  --section-py: 96px;

  scroll-behavior: smooth;
}

html { font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bone);
  color: var(--carbon);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ── UTILITY ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 60px);
}

.section-py { padding-block: var(--section-py); }

.tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--wood);
  background: rgba(139,94,60,.10);
  padding: 4px 14px;
  border-radius: 40px;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--carbon);
  margin-bottom: 16px;
}

.section-title span { color: var(--wood); }

.section-sub {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 580px;
  line-height: 1.7;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .22s ease;
  white-space: nowrap;
}

.btn-primary { background: var(--wood); color: var(--white); }
.btn-primary:hover {
  background: var(--wood-dk);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139,94,60,.35);
}

.btn-whatsapp { background: #25D366; color: var(--white); }
.btn-whatsapp:hover {
  background: #1ebe5b;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,.35);
}
.btn-instagram {
  background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888);
  color: var(--white);
}
.btn-instagram:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(220,39,67,.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.6);
}
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: var(--white); }

.btn-outline-dark {
  background: transparent;
  color: var(--carbon);
  border: 2px solid var(--carbon);
}
.btn-outline-dark:hover { background: var(--carbon); color: var(--white); }

/* ── SKIP LINK ────────────────────────────────────────────── */
.skip-link {
  position: absolute; top: -100px; left: 0;
  background: var(--wood); color: var(--white);
  padding: 8px 16px; z-index: 9999; transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ── NAVBAR ───────────────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000; transition: background .3s, box-shadow .3s;
}
#navbar.scrolled {
  background: rgba(28,28,28,.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
}
#navbar .nav-inner {
  display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-mark {
  width: 38px; height: 38px; background: var(--wood); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--white);
}
.nav-logo-text {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
  color: var(--white); letter-spacing: -.01em;
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: .9rem; font-weight: 500; color: rgba(255,255,255,.82);
  transition: color .2s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--wood-lt); transition: width .25s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-phone {
  font-size: .85rem; color: rgba(255,255,255,.7);
  display: flex; align-items: center; gap: 6px;
}
.nav-instagram {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,.35); color: var(--white);
  transition: all .22s ease;
}
.nav-instagram:hover {
  background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888);
  border-color: transparent; transform: translateY(-2px);
}

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px; transition: all .28s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; position: fixed; inset: 0;
  background: var(--carbon); z-index: 999;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 36px; opacity: 0; pointer-events: none; transition: opacity .3s;
}
.mobile-menu.open { display: flex; opacity: 1; pointer-events: all; }
.mobile-menu a {
  font-family: var(--font-display); font-size: 2rem; color: var(--white); font-weight: 700;
}
.mobile-menu a:hover { color: var(--wood-lt); }
.mobile-menu .mob-close {
  position: absolute; top: 24px; right: 28px;
  background: none; border: none; color: var(--white); font-size: 2rem; cursor: pointer;
}
.mobile-menu .mob-wa {
  margin-top: 12px; display: flex; align-items: center; gap: 8px;
  background: #25D366; color: var(--white); padding: 12px 28px; border-radius: var(--radius);
  font-weight: 700; font-size: 1rem;
}
.mobile-menu .mob-instagram {
  margin-top: 4px; display: flex; align-items: center; gap: 8px;
  background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888);
  color: var(--white); padding: 12px 28px; border-radius: var(--radius);
  font-weight: 700; font-size: 1rem;
}

/* ── HERO ─────────────────────────────────────────────────── */
#hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; overflow: hidden; background: #1a100a;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(to right, rgba(26,16,10,.92) 0%, rgba(26,16,10,.68) 55%, rgba(26,16,10,.35) 100%),
    linear-gradient(160deg, #3d2011 0%, #1a100a 40%, #0d0d0d 100%);
  background-size: cover; background-position: center;
}
.hero-wood-lines {
  position: absolute; inset: 0; z-index: 1; opacity: .07;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0px, transparent 18px,
    rgba(196,149,106,.6) 18px, rgba(196,149,106,.6) 20px
  );
}
.hero-content {
  position: relative; z-index: 2; max-width: 680px; padding-top: 72px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 24px;
}
.hero-eyebrow::before {
  content: ''; display: block; width: 32px; height: 2px; background: var(--gold);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700; line-height: 1.08; color: var(--white); margin-bottom: 24px;
}
.hero-title .accent { color: var(--wood-lt); }
.hero-title em { font-style: normal; color: var(--gold); }
.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: rgba(255,255,255,.75); max-width: 520px; line-height: 1.75; margin-bottom: 36px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 52px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 24px; }
.trust-item {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,.65); font-size: .85rem; font-weight: 500;
}
.trust-item svg { color: var(--gold); flex-shrink: 0; }
.hero-scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,.35); font-size: .7rem; letter-spacing: .1em;
  text-transform: uppercase; z-index: 2; animation: bounceScroll 2s infinite;
}
@keyframes bounceScroll {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ── STATS ────────────────────────────────────────────────── */
#stats { background: var(--wood); padding-block: 32px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; text-align: center;
}
.stat-item {
  padding: 8px 20px;
  border-right: 1px solid rgba(255,255,255,.2);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-display); font-size: 2.4rem;
  font-weight: 700; color: var(--white); line-height: 1;
}
.stat-label { font-size: .82rem; color: rgba(255,255,255,.72); margin-top: 6px; }

/* ── SERVICIOS ────────────────────────────────────────────── */
#servicios { background: var(--white); }
.services-intro {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: end; margin-bottom: 64px;
}
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: var(--bone); border: 1px solid var(--gray-lt);
  border-radius: var(--radius-lg); padding: 36px 28px;
  transition: all .28s ease; position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--wood); transform: scaleX(0); transform-origin: left; transition: transform .32s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 52px; height: 52px; background: rgba(139,94,60,.1);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; transition: background .28s;
}
.service-card:hover .service-icon { background: rgba(139,94,60,.2); }
.service-icon svg { color: var(--wood); width: 26px; height: 26px; }
.service-card h3 {
  font-family: var(--font-display); font-size: 1.18rem; font-weight: 700;
  margin-bottom: 10px; color: var(--carbon);
}
.service-card p { font-size: .9rem; color: var(--gray); line-height: 1.65; }
.service-card.featured {
  background: var(--carbon); border-color: var(--carbon);
  grid-column: 1 / -1; display: flex; align-items: center; gap: 28px;
}
.service-card.featured h3 { color: var(--white); }
.service-card.featured p { color: rgba(255,255,255,.75); }
.service-card.featured .service-icon { background: rgba(255,255,255,.1); margin-bottom: 0; flex-shrink: 0; }
.service-card.featured .service-icon svg { color: var(--gold); }
.service-card.featured::before { background: var(--gold); }
.service-card.featured .service-body { flex: 1; }
.service-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(201,168,92,.15); color: var(--gold);
  font-size: .74rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; margin-bottom: 10px;
}
@media (max-width: 640px) {
  .service-card.featured { flex-direction: column; align-items: flex-start; }
}

/* ── PROCESO ──────────────────────────────────────────────── */
#proceso { background: var(--bone-dk); }
.proceso-inner {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 80px; align-items: start;
}
.proceso-left {}
.proceso-steps {
  display: flex; flex-direction: column; gap: 0;
  position: relative; padding-left: 28px; margin-top: 32px;
}
.proceso-steps::before {
  content: ''; position: absolute; left: 11px; top: 20px; bottom: 20px;
  width: 2px; background: linear-gradient(to bottom, var(--wood), var(--wood-lt));
}
.step {
  position: relative; padding: 0 0 28px 28px;
  opacity: 0; transform: translateX(-12px); transition: opacity .5s, transform .5s;
}
.step.visible { opacity: 1; transform: translateX(0); }
.step:last-child { padding-bottom: 0; }
.step-dot {
  position: absolute; left: -28px; top: 2px;
  width: 24px; height: 24px; background: var(--white);
  border: 2px solid var(--wood); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; z-index: 1;
}
.step-dot span { font-size: .68rem; font-weight: 700; color: var(--wood); }
.step h4 {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 700;
  color: var(--carbon); margin-bottom: 5px;
}
.step p { font-size: .88rem; color: var(--gray); line-height: 1.65; }

.proceso-visual { position: sticky; top: 90px; }
.proceso-img-wrap {
  border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3/4;
  background: linear-gradient(135deg, #c4956a 0%, #8b5e3c 100%); position: relative;
}
.proceso-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.proceso-img-fallback {
  width: 100%; height: 100%; min-height: 400px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px;
}
.proceso-img-fallback svg { color: rgba(255,255,255,.5); width: 64px; height: 64px; }
.proceso-img-fallback p { color: rgba(255,255,255,.7); font-size: .9rem; text-align: center; padding: 0 20px; }
.proceso-badge {
  position: absolute; bottom: 20px; left: 20px;
  background: var(--white); border-radius: var(--radius);
  padding: 14px 18px; box-shadow: var(--shadow); max-width: 200px;
}
.proceso-badge strong { color: var(--carbon); font-size: .9rem; display: block; margin-bottom: 3px; }
.proceso-badge p { font-size: .78rem; color: var(--gray); }

/* ── TRABAJOS ─────────────────────────────────────────────── */
#trabajos { background: var(--white); }
.trabajos-header { text-align: center; margin-bottom: 56px; }
.trabajos-header .section-sub { margin-inline: auto; }
.gallery-grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px;
}
.gallery-item {
  border-radius: var(--radius-lg); overflow: hidden;
  position: relative; background: var(--gray-lt); cursor: pointer;
}
.gallery-item:nth-child(1) { grid-column: span 7; grid-row: span 2; }
.gallery-item:nth-child(2),
.gallery-item:nth-child(3) { grid-column: span 5; }
.gallery-item:nth-child(4),
.gallery-item:nth-child(5),
.gallery-item:nth-child(6) { grid-column: span 4; }

.gallery-img-wrap { width: 100%; height: 100%; min-height: 200px; position: relative; overflow: hidden; }
.gallery-item:nth-child(1) .gallery-img-wrap { min-height: 400px; }
.gallery-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover .gallery-img-wrap img { transform: scale(1.05); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(28,28,28,.7) 0%, transparent 55%);
  display: flex; align-items: flex-end; padding: 20px;
  opacity: 0; transition: opacity .3s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span {
  font-size: .8rem; font-weight: 700; color: var(--white);
  background: var(--wood); padding: 4px 12px; border-radius: 20px;
}
.gallery-placeholder {
  width: 100%; min-height: 200px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px; position: relative;
}
.gallery-item:nth-child(1) .gallery-placeholder { min-height: 400px; }
.gallery-item:nth-child(1) .gallery-placeholder { background: linear-gradient(135deg, #d4b896, #8b5e3c); }
.gallery-item:nth-child(2) .gallery-placeholder { background: linear-gradient(135deg, #a8c5b8, #2d6a4f); }
.gallery-item:nth-child(3) .gallery-placeholder { background: linear-gradient(135deg, #b8a8c5, #6b4d8b); }
.gallery-item:nth-child(4) .gallery-placeholder { background: linear-gradient(135deg, #c5b8a8, #8b6b4d); }
.gallery-item:nth-child(5) .gallery-placeholder { background: linear-gradient(135deg, #a8b8c5, #4d6b8b); }
.gallery-item:nth-child(6) .gallery-placeholder { background: linear-gradient(135deg, #c5a8a8, #8b4d4d); }
.gallery-placeholder svg { color: rgba(255,255,255,.55); width: 36px; height: 36px; }
.gallery-placeholder span { color: rgba(255,255,255,.75); font-size: .78rem; font-weight: 600; }
.ad-badge { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; z-index: 2; }
.ad-badge span {
  font-size: .68rem; font-weight: 700; letter-spacing: .05em;
  padding: 3px 10px; border-radius: 20px;
}
.badge-antes { background: rgba(28,28,28,.75); color: var(--white); }
.badge-despues { background: var(--green); color: var(--white); }

/* ── NOSOTROS ─────────────────────────────────────────────── */
#nosotros { background: var(--bone-dk); }
.nosotros-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.nosotros-visual { position: relative; }
.nosotros-img-main {
  border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5;
  background: linear-gradient(135deg, #c4956a, #6b4423);
}
.nosotros-img-main img { width: 100%; height: 100%; object-fit: cover; }
.nosotros-img-float {
  position: absolute; bottom: -24px; right: -24px; width: 46%;
  border-radius: var(--radius); overflow: hidden; border: 4px solid var(--white);
  box-shadow: var(--shadow-lg); aspect-ratio: 4/3;
  background: linear-gradient(135deg, #a8c5b8, #2d6a4f);
}
.nosotros-img-float img { width: 100%; height: 100%; object-fit: cover; }
.img-fallback {
  width: 100%; height: 100%; min-height: 180px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;
}
.img-fallback svg { color: rgba(255,255,255,.4); width: 40px; height: 40px; }
.img-fallback span { color: rgba(255,255,255,.6); font-size: .75rem; }

.nosotros-content { padding-bottom: 24px; }
.owners { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0; }
.owner-card {
  background: var(--white); border-radius: var(--radius);
  padding: 20px; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow);
}
.owner-avatar {
  width: 52px; height: 52px; background: var(--wood); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--white);
}
.owner-info h4 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--carbon); }
.owner-info p { font-size: .78rem; color: var(--gray); }
.value-list { display: flex; flex-direction: column; gap: 11px; margin-bottom: 32px; }
.value-item { display: flex; align-items: flex-start; gap: 12px; font-size: .9rem; color: var(--charcoal); }
.value-icon {
  width: 20px; height: 20px; background: var(--green); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px;
}
.value-icon svg { width: 11px; height: 11px; color: var(--white); }

/* ── LOCAL ────────────────────────────────────────────────── */
#local { background: var(--carbon); color: var(--white); }
.local-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: center; }
.local-content .section-title { color: var(--white); }
.local-content .section-title span { color: var(--wood-lt); }
.local-content .section-sub { color: rgba(255,255,255,.6); }
.local-info-cards { display: flex; flex-direction: column; gap: 14px; margin-top: 32px; }
.info-card {
  display: flex; align-items: flex-start; gap: 16px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius); padding: 18px; transition: background .25s;
}
.info-card:hover { background: rgba(255,255,255,.1); }
.info-icon {
  width: 42px; height: 42px; background: rgba(139,94,60,.22);
  border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.info-icon svg { color: var(--wood-lt); width: 20px; height: 20px; }
.info-card h4 { font-weight: 700; font-size: .92rem; color: var(--white); margin-bottom: 3px; }
.info-card p  { font-size: .83rem; color: rgba(255,255,255,.55); line-height: 1.5; }
.local-visual { display: flex; flex-direction: column; gap: 14px; }
.local-img-main {
  border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3;
  background: linear-gradient(135deg, #3d2011, #1a100a);
  border: 1px solid rgba(255,255,255,.07);
}
.local-img-main img { width: 100%; height: 100%; object-fit: cover; }
.local-img-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.local-img-sm {
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07);
}
.local-img-sm img { width: 100%; height: 100%; object-fit: cover; }
.img-placeholder-dark {
  width: 100%; height: 100%; min-height: 150px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
}
.img-placeholder-dark svg { color: rgba(255,255,255,.2); width: 32px; height: 32px; }
.img-placeholder-dark span { color: rgba(255,255,255,.25); font-size: .72rem; }

/* ── CTA BANNER ───────────────────────────────────────────── */
#cta-banner {
  background: linear-gradient(135deg, var(--wood-dk) 0%, var(--wood) 100%);
  padding-block: 80px; text-align: center;
}
.cta-title {
  font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700; color: var(--white); margin-bottom: 16px; line-height: 1.2;
}
.cta-sub {
  font-size: 1.05rem; color: rgba(255,255,255,.8); margin-bottom: 40px;
  max-width: 560px; margin-inline: auto;
}
.cta-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.cta-note { margin-top: 24px; font-size: .82rem; color: rgba(255,255,255,.55); }

/* ── CONFIANZA ────────────────────────────────────────────── */
#confianza { background: var(--white); padding-block: 56px; }
.confianza-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--gray-lt); border-radius: var(--radius-lg); overflow: hidden;
}
.confianza-item {
  display: flex; align-items: center; gap: 14px;
  padding: 28px 22px; border-right: 1px solid var(--gray-lt);
}
.confianza-item:last-child { border-right: none; }
.confianza-icon {
  width: 42px; height: 42px; background: rgba(139,94,60,.08);
  border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.confianza-icon svg { color: var(--wood); width: 20px; height: 20px; }
.confianza-item h4 { font-size: .88rem; font-weight: 700; margin-bottom: 2px; }
.confianza-item p  { font-size: .76rem; color: var(--gray); }

/* ── FOOTER ───────────────────────────────────────────────── */
#footer {
  background: var(--charcoal); color: rgba(255,255,255,.7);
  padding-top: 64px; padding-bottom: 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 32px;
}
.footer-brand p {
  font-size: .87rem; line-height: 1.7; color: rgba(255,255,255,.5); margin: 12px 0 20px;
}
.footer-col h5 {
  font-size: .8rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--white); margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: .87rem; color: rgba(255,255,255,.5); transition: color .2s; }
.footer-col ul li a:hover { color: var(--wood-lt); }
.footer-contact-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .87rem; color: rgba(255,255,255,.5); margin-bottom: 11px;
}
.footer-contact-item svg { color: var(--wood-lt); flex-shrink: 0; margin-top: 2px; }
.footer-contact-item a { color: rgba(255,255,255,.5); }
.footer-contact-item a:hover { color: var(--wood-lt); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .79rem; color: rgba(255,255,255,.3); flex-wrap: wrap; gap: 12px;
}

/* ── WhatsApp FLOTANTE ────────────────────────────────────── */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 900;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.wa-bubble {
  background: var(--white); color: var(--carbon);
  border-radius: 12px 12px 0 12px; padding: 9px 14px;
  font-size: .8rem; font-weight: 600; box-shadow: var(--shadow-lg); white-space: nowrap;
}
.wa-btn {
  width: 60px; height: 60px; background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4); transition: transform .22s, box-shadow .22s; position: relative;
}
.wa-btn:hover { transform: scale(1.12); box-shadow: 0 8px 30px rgba(37,211,102,.55); }
.wa-btn svg { width: 32px; height: 32px; color: var(--white); }
.wa-pulse {
  position: absolute; inset: -5px; border-radius: 50%;
  background: rgba(37,211,102,.3); pointer-events: none;
  animation: waPulse 2.2s infinite;
}
@keyframes waPulse {
  0%   { transform: scale(.9); opacity: .7; }
  70%  { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(.9); opacity: 0; }
}

/* ── ANIMATIONS ───────────────────────────────────────────── */
.fade-up {
  opacity: 0; transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .fade-up, .step { opacity: 1 !important; transform: none !important; }
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .local-grid, .nosotros-grid { gap: 48px; }
  .proceso-inner { gap: 48px; }
}
@media (max-width: 900px) {
  :root { --section-py: 72px; }
  .services-intro { grid-template-columns: 1fr; gap: 24px; }
  .proceso-inner { grid-template-columns: 1fr; }
  .proceso-visual { display: none; }
  .nosotros-grid, .local-grid { grid-template-columns: 1fr; }
  .nosotros-img-float { right: 0; }
  .confianza-grid { grid-template-columns: repeat(2, 1fr); }
  .confianza-item:nth-child(2) { border-right: none; }
  .confianza-item:nth-child(1),
  .confianza-item:nth-child(2) { border-bottom: 1px solid var(--gray-lt); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(1),
  .stat-item:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.2); padding-bottom: 20px; margin-bottom: 4px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .gallery-item:nth-child(1) { grid-column: span 12; }
  .gallery-item:nth-child(2),
  .gallery-item:nth-child(3) { grid-column: span 6; }
  .gallery-item:nth-child(4),
  .gallery-item:nth-child(5),
  .gallery-item:nth-child(6) { grid-column: span 4; }
}
@media (max-width: 640px) {
  :root { --section-py: 56px; }
  .nav-links, .nav-cta .btn, .nav-phone, .nav-instagram { display: none; }
  .hamburger { display: flex; }
  .hero-title { font-size: clamp(2.2rem, 8vw, 3rem); }
  .hero-trust { gap: 14px; }
  .services-grid { grid-template-columns: 1fr; }
  .owners { grid-template-columns: 1fr; }
  .confianza-grid { grid-template-columns: 1fr; }
  .confianza-item { border-right: none; border-bottom: 1px solid var(--gray-lt); }
  .confianza-item:last-child { border-bottom: none; }
  .gallery-item { grid-column: span 12 !important; }
  .gallery-item:nth-child(1) .gallery-img-wrap,
  .gallery-item:nth-child(1) .gallery-placeholder { min-height: 260px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .local-img-row { grid-template-columns: 1fr; }
  .nosotros-img-float { display: none; }
  .cta-actions { flex-direction: column; align-items: center; }
  .wa-float { bottom: 20px; right: 20px; }
  .wa-btn { width: 54px; height: 54px; }
}
