/* ============================================================
   HOMEFIX CARPINTERÍA — Stylesheet
   Paleta: Blanco base, Espresso #2C1A0E, Ámbar #C4622D
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --white:        #FFFFFF;
  --espresso:     #2C1A0E;
  --amber:        #C4622D;
  --amber-light:  #E8A86B;
  --cream:        #F5ECD7;
  --gray-50:      #FAFAF8;
  --gray-100:     #F2EDE6;
  --gray-200:     #E0D4C4;
  --gray-400:     #A89080;
  --gray-600:     #6B5040;
  --text:         #1A1A1A;

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

  --radius:       8px;
  --radius-lg:    16px;
  --transition:   0.25s ease;
  --shadow:       0 2px 16px rgba(44,26,14,0.10);
  --shadow-lg:    0 8px 40px rgba(44,26,14,0.15);

  --max-w:        1200px;
  --nav-h:        72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Botones ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--amber);
  color: var(--white);
  border-color: var(--amber);
}
.btn-primary:hover { background: #b3521f; border-color: #b3521f; transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-outline {
  background: transparent;
  color: var(--espresso);
  border-color: var(--espresso);
}
.btn-outline:hover { background: var(--espresso); color: var(--white); transform: translateY(-1px); }

.btn-white {
  background: var(--white);
  color: var(--amber);
  border-color: var(--white);
}
.btn-white:hover { background: var(--cream); transform: translateY(-1px); }

.btn-wsp {
  background: #25D366;
  color: var(--white);
  border-color: #25D366;
}
.btn-wsp:hover { background: #1ebe5a; border-color: #1ebe5a; transform: translateY(-1px); box-shadow: var(--shadow); }

/* ── Tipografía ────────────────────────────── */
.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--espresso);
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 560px;
  line-height: 1.7;
}

/* ══════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}
#navbar.scrolled { box-shadow: var(--shadow); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo img {
  height: 48px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--amber); }
.nav-cta { margin-left: 8px; }

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

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 24px;
  z-index: 999;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-lg);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  padding: 4px 0;
  border-bottom: 1px solid var(--gray-100);
}

/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
  background: var(--espresso);
  isolation: isolate;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  z-index: -2;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(20, 10, 4, 0.18);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(100%, var(--max-w));
  min-height: calc(100svh - var(--nav-h));
  margin: 0 auto;
  padding: 72px 24px 48px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.16);
  color: var(--white);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
  width: fit-content;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.02;
  max-width: 820px;
  margin-bottom: 24px;
  text-shadow: 0 4px 28px rgba(0,0,0,0.34);
}
/* "toda la vida" → naranja */
.hero-title .ht-orange {
  color: var(--amber-light);
}
/* "tu medida" → marrón espresso + subrayado ámbar */
.hero-title em {
  font-style: normal;
  color: var(--white);
  position: relative;
}
.hero-title em::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--amber);
  border-radius: 2px;
  opacity: 0.5;
}

.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: rgba(255,255,255,0.86);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 580px;
  text-shadow: 0 2px 18px rgba(0,0,0,0.38);
}

.hero-lower {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

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

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgba(20, 10, 4, 0.82) 0%,
      rgba(20, 10, 4, 0.58) 42%,
      rgba(20, 10, 4, 0.22) 72%,
      rgba(20, 10, 4, 0.42) 100%
    ),
    linear-gradient(
      0deg,
      rgba(20, 10, 4, 0.68) 0%,
      rgba(20, 10, 4, 0.1) 36%,
      rgba(20, 10, 4, 0.26) 100%
    );
}

.hero-ticker {
  position: relative;
  overflow: hidden;
  background: var(--espresso);
  color: var(--cream);
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  white-space: nowrap;
}

.hero-ticker-track {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  padding: 13px 0;
  animation: hero-ticker-scroll 24s linear infinite;
}

.hero-ticker-track span {
  display: inline-flex;
  align-items: center;
  padding: 0 34px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-ticker-track span::after {
  content: '-';
  color: var(--amber-light);
  margin-left: 34px;
}

@keyframes hero-ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

#hero .btn-outline {
  color: var(--white);
  border-color: rgba(255,255,255,0.76);
}

#hero .btn-outline:hover {
  background: var(--white);
  color: var(--espresso);
  border-color: var(--white);
}

/* ══════════════════════════════════════════════
   CATEGORÍAS
══════════════════════════════════════════════ */
#categorias {
  padding: 96px 0;
  background: var(--gray-50);
}
.categorias-header {
  text-align: center;
  margin-bottom: 56px;
}
.categorias-header .section-sub {
  margin: 0 auto;
}

.categorias-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.cat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--amber);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
.cat-card:hover { border-color: var(--amber-light); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.cat-card:hover::before { transform: scaleX(1); }

.cat-icon {
  width: 52px;
  height: 52px;
  background: var(--gray-100);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  transition: background var(--transition);
}
.cat-card:hover .cat-icon { background: var(--cream); }

.cat-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--espresso);
}
.cat-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.cat-items li {
  font-size: 0.85rem;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  gap: 6px;
}
.cat-items li::before {
  content: '—';
  color: var(--amber);
  font-size: 0.7rem;
}

.cat-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--amber);
  margin-top: auto;
  transition: gap var(--transition);
}
.cat-card:hover .cat-cta { gap: 10px; }

/* ── Cards con imagen de fondo ── */
.cat-card.has-bg {
  background-size: cover;
  background-position: center;
  border-color: transparent;
  min-height: 340px;
  justify-content: flex-end;
}

/* Overlay por defecto: muy tenue — imagen protagonista */
.cat-card.has-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20, 10, 4, 0.05) 0%,
    rgba(20, 10, 4, 0.55) 70%,
    rgba(20, 10, 4, 0.78) 100%
  );
  border-radius: inherit;
  z-index: 0;
  transition: background 0.35s ease;
}

/* Hover / tap: overlay más oscuro para que el texto se lea */
.cat-card.has-bg:hover::after,
.cat-card.has-bg:active::after,
.cat-card.has-bg:focus-within::after,
.cat-card.has-bg:focus-visible::after,
.cat-card.has-bg.is-scroll-active::after {
  background: linear-gradient(
    to bottom,
    rgba(20, 10, 4, 0.22) 0%,
    rgba(20, 10, 4, 0.75) 55%,
    rgba(20, 10, 4, 0.92) 100%
  );
}

/* El borde ámbar superior encima del overlay */
.cat-card.has-bg::before { z-index: 2; }

/* Todo el contenido por encima del overlay */
.cat-card.has-bg > * { position: relative; z-index: 1; }

/* Título siempre visible en blanco */
.cat-card.has-bg .cat-name {
  color: var(--white);
  font-size: 1.45rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  transition: margin-bottom 0.35s ease;
}

/* Lista e ítem CTA: ocultos por defecto */
.cat-card.has-bg .cat-items {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(14px);
  transition:
    max-height 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.7s ease 0.08s,
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.05s;
}
.cat-card.has-bg .cat-cta {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(12px);
  transition:
    max-height 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.65s ease 0.18s,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.16s;
}

.cat-card.has-bg .cat-items li {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.45s ease,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Hover / tap: revelar lista y CTA */
.cat-card.has-bg:hover .cat-items,
.cat-card.has-bg:active .cat-items,
.cat-card.has-bg:focus-within .cat-items,
.cat-card.has-bg:focus-visible .cat-items,
.cat-card.has-bg.is-scroll-active .cat-items {
  max-height: 240px;
  opacity: 1;
  transform: translateY(0);
}
.cat-card.has-bg:hover .cat-cta,
.cat-card.has-bg:active .cat-cta,
.cat-card.has-bg:focus-within .cat-cta,
.cat-card.has-bg:focus-visible .cat-cta,
.cat-card.has-bg.is-scroll-active .cat-cta {
  max-height: 60px;
  opacity: 1;
  transform: translateY(0);
}

.cat-card.has-bg:hover .cat-items li,
.cat-card.has-bg:active .cat-items li,
.cat-card.has-bg:focus-within .cat-items li,
.cat-card.has-bg:focus-visible .cat-items li,
.cat-card.has-bg.is-scroll-active .cat-items li {
  opacity: 1;
  transform: translateY(0);
}

.cat-card.has-bg:hover .cat-items li:nth-child(1),
.cat-card.has-bg:active .cat-items li:nth-child(1),
.cat-card.has-bg:focus-within .cat-items li:nth-child(1),
.cat-card.has-bg:focus-visible .cat-items li:nth-child(1),
.cat-card.has-bg.is-scroll-active .cat-items li:nth-child(1) { transition-delay: 0.18s; }

.cat-card.has-bg:hover .cat-items li:nth-child(2),
.cat-card.has-bg:active .cat-items li:nth-child(2),
.cat-card.has-bg:focus-within .cat-items li:nth-child(2),
.cat-card.has-bg:focus-visible .cat-items li:nth-child(2),
.cat-card.has-bg.is-scroll-active .cat-items li:nth-child(2) { transition-delay: 0.30s; }

.cat-card.has-bg:hover .cat-items li:nth-child(3),
.cat-card.has-bg:active .cat-items li:nth-child(3),
.cat-card.has-bg:focus-within .cat-items li:nth-child(3),
.cat-card.has-bg:focus-visible .cat-items li:nth-child(3),
.cat-card.has-bg.is-scroll-active .cat-items li:nth-child(3) { transition-delay: 0.42s; }

.cat-card.has-bg:hover .cat-items li:nth-child(4),
.cat-card.has-bg:active .cat-items li:nth-child(4),
.cat-card.has-bg:focus-within .cat-items li:nth-child(4),
.cat-card.has-bg:focus-visible .cat-items li:nth-child(4),
.cat-card.has-bg.is-scroll-active .cat-items li:nth-child(4) { transition-delay: 0.54s; }

.cat-card.has-bg:hover .cat-items li:nth-child(5),
.cat-card.has-bg:active .cat-items li:nth-child(5),
.cat-card.has-bg:focus-within .cat-items li:nth-child(5),
.cat-card.has-bg:focus-visible .cat-items li:nth-child(5),
.cat-card.has-bg.is-scroll-active .cat-items li:nth-child(5) { transition-delay: 0.66s; }

.cat-card.has-bg:hover .cat-cta,
.cat-card.has-bg:active .cat-cta,
.cat-card.has-bg:focus-within .cat-cta,
.cat-card.has-bg:focus-visible .cat-cta,
.cat-card.has-bg.is-scroll-active .cat-cta { transition-delay: 0s, 0.78s, 0.76s; }

/* Colores de texto revelado */
.cat-card.has-bg .cat-items li { color: rgba(255, 255, 255, 0.9); }
.cat-card.has-bg .cat-items li::before { color: var(--amber-light); }
.cat-card.has-bg .cat-cta { color: var(--amber-light); }

/* Hover: borde ámbar sutil */
.cat-card.has-bg:hover,
.cat-card.has-bg:active,
.cat-card.has-bg:focus-within,
.cat-card.has-bg:focus-visible,
.cat-card.has-bg.is-scroll-active {
  border-color: rgba(196, 98, 45, 0.55);
  box-shadow: 0 12px 40px rgba(20, 10, 4, 0.35);
  transform: translateY(-4px);
}

/* ══════════════════════════════════════════════
   PROCESO
══════════════════════════════════════════════ */
#proceso {
  padding: 96px 0;
  background: var(--white);
}
.proceso-header {
  text-align: center;
  margin-bottom: 64px;
}
.proceso-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.proceso-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 28px);
  right: calc(12.5% + 28px);
  height: 2px;
  background: var(--gray-200);
  z-index: 0;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}
.step-number {
  width: 56px;
  height: 56px;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gray-400);
  margin-bottom: 20px;
  transition: var(--transition);
}
.step.active .step-number {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--white);
}
.step-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--espresso);
  margin-bottom: 8px;
}
.step-desc {
  font-size: 0.82rem;
  color: var(--gray-600);
  line-height: 1.5;
}

/* ══════════════════════════════════════════════
   TRABAJOS / GALERÍA
══════════════════════════════════════════════ */
#trabajos {
  padding: 96px 0;
  background: var(--gray-50);
}
.trabajos-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  gap: 24px;
  flex-wrap: wrap;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(4, minmax(132px, 10vw));
  gap: 14px;
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: var(--gray-200);
  cursor: pointer;
  box-shadow: 0 18px 34px rgba(44,26,14,0.08);
}

.gallery-item:nth-child(1) {
  grid-column: 1 / span 3;
  grid-row: 1 / span 4;
}

.gallery-item:nth-child(2) {
  grid-column: 4 / span 3;
  grid-row: 1 / span 2;
}

.gallery-item:nth-child(3) {
  grid-column: 7 / span 3;
  grid-row: 1 / span 2;
}

.gallery-item:nth-child(4) {
  grid-column: 10 / span 3;
  grid-row: 1 / span 4;
}

.gallery-item:nth-child(5) {
  grid-column: 4 / span 3;
  grid-row: 3 / span 2;
}

.gallery-item:nth-child(6) {
  grid-column: 7 / span 3;
  grid-row: 3 / span 2;
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
  color: var(--gray-400);
  font-size: 0.8rem;
  text-align: center;
  padding: 24px;
  transition: var(--transition);
}
.gallery-placeholder span { font-size: 2rem; }
.gallery-item:hover .gallery-placeholder { background: linear-gradient(135deg, var(--cream), var(--gray-200)); }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.4s ease;
  display: block;
}
.gallery-item:hover img { transform: scale(1.04); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44,26,14,0.7) 0%, rgba(44,26,14,0.08) 54%, transparent 100%);
  opacity: 1;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}
.gallery-item:hover .gallery-overlay { opacity: 0.88; }
.gallery-label {
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 14px rgba(0,0,0,0.42);
}

.gallery-footer {
  text-align: center;
  margin-top: 40px;
}
.gallery-note {
  font-size: 0.82rem;
  color: var(--gray-400);
  margin-top: 12px;
}

/* ══════════════════════════════════════════════
   NOSOTROS
══════════════════════════════════════════════ */
#nosotros {
  padding: 96px 0;
  background: var(--white);
}
.nosotros-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.nosotros-visual {
  position: relative;
}
.nosotros-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--espresso), #4A2A18);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}
.nosotros-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.nosotros-img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.3);
  font-size: 0.85rem;
  text-align: center;
  padding: 40px;
}
.nosotros-img-placeholder span { font-size: 3rem; opacity: 0.3; }

.nosotros-accent {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--amber);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  color: var(--white);
  box-shadow: var(--shadow-lg);
}
.nosotros-accent strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  display: block;
  line-height: 1.05;
}
.nosotros-accent span {
  font-size: 0.88rem;
  font-weight: 700;
  opacity: 0.85;
  margin-top: 4px;
  display: block;
}

.nosotros-content { display: flex; flex-direction: column; gap: 24px; }
.nosotros-content p {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.75;
}

.diferenciadores {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 22px;
  row-gap: 18px;
  margin-top: 8px;
}
.dif-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  min-width: 0;
}
.dif-icon {
  width: 40px;
  height: 40px;
  background: var(--gray-100);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.dif-text strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--espresso);
  margin-bottom: 2px;
}
.dif-text span {
  font-size: 0.82rem;
  color: var(--gray-600);
}

/* ══════════════════════════════════════════════
   GRANDES PROYECTOS
══════════════════════════════════════════════ */
#proyectos {
  padding: 96px 0;
  background: var(--espresso);
  position: relative;
  overflow: hidden;
}
#proyectos::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      85deg,
      rgba(196,98,45,0.04) 0px,
      rgba(196,98,45,0.04) 1px,
      transparent 1px,
      transparent 36px
    );
}
.proyectos-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.proyectos-content .section-label { color: var(--amber-light); }
.proyectos-content .section-title { color: var(--white); }
.proyectos-content .section-sub { color: rgba(255,255,255,0.65); }

.proyectos-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 28px 0 36px;
}
.tag {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.8);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 100px;
}

.proyectos-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.proyecto-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: var(--transition);
}
.proyecto-card:hover { background: rgba(255,255,255,0.10); border-color: rgba(196,98,45,0.4); }
.proyecto-card-icon {
  width: 48px;
  height: 48px;
  background: rgba(196,98,45,0.25);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.proyecto-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}
.proyecto-card p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}

/* ══════════════════════════════════════════════
   CONTACTO
══════════════════════════════════════════════ */
#contacto {
  padding: 96px 0;
  background: var(--gray-50);
}
.contacto-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contacto-info { display: flex; flex-direction: column; gap: 32px; }
.contacto-info .section-sub { max-width: 100%; }

.contacto-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contacto-item {
  display: flex;
  gap: 16px;
  align-items: center;
}
.c-icon {
  width: 44px;
  height: 44px;
  background: transparent;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  color: var(--amber);
}
.c-text strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--espresso);
}
.c-text span {
  font-size: 0.82rem;
  color: var(--gray-600);
}

.zonas {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.zona-tag {
  background: var(--cream);
  color: var(--amber);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--amber-light);
}

.contacto-wsp {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: var(--shadow);
}
.wsp-header {
  display: flex;
  align-items: center;
  gap: 16px;
}
.wsp-icon {
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--white);
}
.wsp-header h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--espresso);
  margin-bottom: 2px;
}
.wsp-header p { font-size: 0.82rem; color: var(--gray-600); }

.wsp-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wsp-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  color: var(--text);
}
.wsp-option:hover { background: var(--cream); border-color: var(--amber-light); }
.wsp-option-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 500;
}
.wsp-option-left span { font-size: 1rem; }
.wsp-arrow { color: var(--amber); font-size: 1rem; }

.wsp-note {
  font-size: 0.78rem;
  color: var(--gray-400);
  text-align: center;
  line-height: 1.5;
}

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
#footer {
  background: var(--espresso);
  padding: 60px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 32px;
}

.footer-brand img {
  height: 96px;
  width: auto;
  margin-bottom: 20px;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col ul li a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--amber-light); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}
.footer-bottom a { color: rgba(255,255,255,0.3); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--amber-light); }

/* ══════════════════════════════════════════════
   FLOATING WSP BUTTON
══════════════════════════════════════════════ */
.fab-wsp {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 999;
  transition: transform var(--transition), box-shadow var(--transition);
  font-size: 1.5rem;
  text-decoration: none;
  color: var(--white);
}
.fab-wsp:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.5); }

.site-icon {
  width: 1.45em;
  height: 1.45em;
  display: block;
  flex-shrink: 0;
}

.site-icon--whatsapp {
  width: 1.55em;
  height: 1.55em;
}

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .categorias-grid { grid-template-columns: repeat(2, 1fr); }
  .proceso-steps { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .proceso-steps::before { display: none; }
  .gallery-grid {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: none;
    grid-auto-rows: minmax(136px, 18vw);
  }
  .gallery-item:nth-child(n) {
    grid-column: span 3;
    grid-row: span 2;
  }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

/* ── Tablet (641–1024px): hero full-screen con texto superpuesto ── */
@media (min-width: 641px) and (max-width: 1024px) {
  #hero {
    min-height: 100svh;
  }

  .hero-content {
    min-height: calc(100svh - var(--nav-h));
    padding: 72px 32px 56px;
    justify-content: center;
  }

  .hero-title { font-size: clamp(3rem, 8vw, 5.3rem); max-width: 720px; }
  .hero-sub { font-size: 1rem; max-width: 540px; }

  .hero-lower {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
  .hero-actions {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
  }

  .nosotros-inner {
    display: block;
  }

  .nosotros-inner::after {
    content: '';
    display: block;
    clear: both;
  }

  .nosotros-visual {
    float: left;
    width: clamp(260px, 38vw, 340px);
    margin: 0 34px 18px 0;
  }

  .nosotros-img-wrap {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .nosotros-accent {
    right: -14px;
    bottom: -14px;
    padding: 18px 20px;
  }

  .nosotros-content {
    display: block;
  }

  .nosotros-content > * + * {
    margin-top: 20px;
  }

  .diferenciadores {
    margin-top: 26px;
  }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-brand p {
    max-width: 460px;
  }
}

/* ── Nav hamburger + layouts verticales desde 900px ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nosotros-inner,
  .proyectos-inner,
  .contacto-inner { grid-template-columns: 1fr; gap: 48px; }
  .nosotros-accent { right: 0; bottom: -16px; }
}

/* ── Mobile (≤640px): hero full-screen con video de fondo ── */
@media (max-width: 640px) {
  #hero { min-height: 100svh; }
  .hero-content {
    min-height: calc(100svh - var(--nav-h));
    padding: 52px 20px 34px;
    text-align: center;
    align-items: center;
    overflow: hidden;
  }
  .hero-eyebrow {
    align-self: center;
    max-width: 100%;
    white-space: normal;
    justify-content: center;
    font-size: 0.66rem;
    letter-spacing: 1.2px;
  }
  .hero-title {
    width: min(100%, 305px);
    font-size: clamp(1.9rem, 9.6vw, 2.7rem);
    line-height: 1.06;
  }
  .hero-sub {
    width: min(100%, 280px);
    margin: 0 auto 32px;
    font-size: 0.84rem;
  }
  .hero-lower { flex-direction: column; align-items: center; gap: 14px; }
  .hero-actions { flex-direction: column; align-items: center; gap: 10px; }

  .hero-ticker-track {
    padding: 11px 0;
    animation-duration: 20s;
  }

  .hero-ticker-track span {
    padding: 0 22px;
    font-size: 0.66rem;
    letter-spacing: 0.1em;
  }

  .hero-ticker-track span::after {
    margin-left: 22px;
  }

  .hero-overlay {
    background:
      linear-gradient(
        0deg,
        rgba(20, 10, 4, 0.82) 0%,
        rgba(20, 10, 4, 0.5) 44%,
        rgba(20, 10, 4, 0.58) 100%
      );
  }

  .nosotros-inner {
    display: grid;
  }

  .nosotros-visual {
    float: none;
    width: auto;
    margin: 0;
  }

  .nosotros-img-wrap {
    min-height: 400px;
  }

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

  .categorias-grid { grid-template-columns: 1fr; }
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-rows: auto;
    gap: 12px;
  }
  .gallery-item:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 4 / 5;
  }
  .proceso-steps { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .section-title { font-size: 1.8rem; }
  .trabajos-header { flex-direction: column; align-items: flex-start; }
  .fab-wsp { bottom: 24px; right: 24px; width: 50px; height: 50px; font-size: 1.3rem; }
}
