/* ══════════════════════════════════════════════════════════
   FIGUEREO GARO ARCHITECTS — site.css
   Brand: light surface, deep navy primary, slate accents.
   ══════════════════════════════════════════════════════════ */

:root {
  /* Brand colors */
  --primary:      #1e3347;
  --primary-mid:  #2d4a5c;
  --slate:        #8fa8b8;
  --slate-light:  #c8d4da;
  --surface:      #f4f6f8;
  --surface-2:    #e8f0f5;
  --border:       #dde4e9;
  --text:         #1a2530;
  --muted:        #6b7f8c;
  --white:        #ffffff;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', 'Segoe UI', system-ui, sans-serif;

  /* Spacing & radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-card:    0 1px 6px rgba(30, 51, 71, 0.06);
  --shadow-elev:    0 8px 32px rgba(30, 51, 71, 0.10);
  --shadow-nav:     0 1px 12px rgba(30, 51, 71, 0.08);

  /* Easing */
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .18s var(--ease); }
button { font-family: inherit; cursor: pointer; }
ul { padding: 0; margin: 0; list-style: none; }

/* ── LAYOUT HELPERS ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 110px 0;
  position: relative;
  overflow: hidden;
}
.section-light   { background: var(--white); }
.section-surface { background: var(--surface); }
.section-dark    { background: linear-gradient(160deg, var(--primary) 0%, var(--primary-mid) 100%); color: var(--white); }

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.text-center { text-align: center; }
.mt-5 { margin-top: 3rem; }

/* ── TYPOGRAPHY ─────────────────────────────────────────── */
.kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--slate-light);
  font-weight: 500;
  margin-bottom: 22px;
}
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 600;
  margin-bottom: 14px;
}
.eyebrow.light { color: var(--slate-light); }

.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: var(--primary);
  margin: 0 0 18px;
}
.display.light { color: var(--white); }
.display em { font-style: italic; color: var(--primary-mid); font-weight: 500; }
.section-dark .display em { color: var(--slate-light); }

.lead {
  font-size: 1.08rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 22px;
  max-width: 560px;
}
.lead.light { color: var(--slate-light); }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.section-head .lead { margin: 0 auto; }

/* ── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all .22s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-mid);
  border-color: var(--primary-mid);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(30, 51, 71, 0.22);
}
.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--slate);
}
.btn-ghost:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.section-dark .btn-ghost { color: var(--white); border-color: var(--slate-light); }
.section-dark .btn-ghost:hover { background: var(--white); color: var(--primary); border-color: var(--white); }
.btn-block { width: 100%; justify-content: center; }

/* ══════════════════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════════════════ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: all .25s var(--ease);
}
.site-nav.scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-nav);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--primary);
}
.nav-logo {
  height: 56px;
  width: auto;
  transition: height .25s var(--ease);
}
.site-nav.scrolled .nav-logo { height: 46px; }
.nav-brand-fallback {
  display: none;
  font-family: var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
}
.nav-brand-fallback strong { font-size: 1.05rem; font-weight: 600; color: var(--primary); display: block; }
.nav-brand-fallback small { font-family: var(--font-body); font-size: 0.55rem; letter-spacing: 0.24em; color: var(--muted); font-weight: 400; }
/* If logo image fails, show fallback */
.nav-logo[style*="display: none"] + .nav-brand-fallback { display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: all .18s var(--ease);
}
.nav-links a:hover { color: var(--primary); background: var(--surface); }

.nav-cta-soft {
  border: 1px solid var(--border);
  margin-left: 8px;
}
.nav-cta-soft:hover { border-color: var(--slate) !important; }

.nav-cta {
  background: var(--primary);
  color: var(--white) !important;
  margin-left: 4px;
}
.nav-cta:hover { background: var(--primary-mid) !important; color: var(--white) !important; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  margin: 0 auto;
  transition: all .25s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 24px 80px;
  overflow: hidden;
  isolation: isolate;
}
/* Video background — falls back to .hero-bg image if video missing */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  /* Shown only while/if the video isn't loaded — uses best available photo */
  background-image:
    url('../img/hero-bg.jpg'),
    url('../img/proyectos/residencial-01.jpg'),
    url('../img/hero-bg.svg');
  background-size: cover;
  background-position: center;
  background-color: var(--surface-2);
  z-index: -3;
  transform: scale(1.05);
  animation: heroZoom 18s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1.05) translateY(0); }
  to   { transform: scale(1.12) translateY(-12px); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(244, 246, 248, 0.85) 0%,
    rgba(244, 246, 248, 0.70) 40%,
    rgba(232, 240, 245, 0.85) 100%);
  z-index: -1;
}
.hero-content {
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}
.hero .kicker { color: var(--primary-mid); }
.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--primary);
  margin: 0 0 22px;
}
.hero-title em {
  font-style: italic;
  color: var(--primary-mid);
  font-weight: 500;
  position: relative;
}
.hero-title em::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--slate);
  opacity: 0.6;
  transform: scaleX(0);
  transform-origin: left;
  animation: underline 1.2s .8s var(--ease) forwards;
}
@keyframes underline { to { transform: scaleX(1); } }

.hero-sub {
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.65;
  max-width: 640px;
  margin: 0 auto 36px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 720px;
  margin: 0 auto;
  padding-top: 36px;
  border-top: 1px solid rgba(143, 168, 184, 0.4);
}
.hero-meta div { text-align: center; }
.hero-meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
}
.hero-meta span {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-cue {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 1.5px solid var(--slate);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.scroll-cue span {
  display: block;
  width: 3px;
  height: 8px;
  background: var(--slate);
  border-radius: 2px;
  animation: scrollDot 1.6s ease-in-out infinite;
}
@keyframes scrollDot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%      { transform: translateY(10px); opacity: 0.3; }
}

/* ══════════════════════════════════════════════════════════
   SOBRE
   ══════════════════════════════════════════════════════════ */
.value-list {
  margin-top: 24px;
}
.value-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-weight: 500;
}
.value-list li:last-child { border-bottom: 0; }
.value-list i {
  color: var(--primary-mid);
  font-size: 1.1rem;
}

.portrait-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-2);
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-elev);
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portrait-frame.placeholder {
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--slate-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.portrait-frame.placeholder::before {
  content: 'ruben.jpg';
  font-family: var(--font-body);
  color: var(--primary-mid);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.portrait-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px;
  background: linear-gradient(180deg, transparent 0%, rgba(30, 51, 71, 0.85) 100%);
  color: var(--white);
}
.portrait-caption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.portrait-caption span {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate-light);
}

/* ══════════════════════════════════════════════════════════
   SERVICIOS
   ══════════════════════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 30px;
  position: relative;
  transition: all .3s var(--ease);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-elev);
  border-color: var(--slate);
}
.service-card.featured {
  background: linear-gradient(180deg, var(--surface) 0%, var(--white) 100%);
  border-color: var(--slate);
}
.service-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 22px;
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}
.service-card p {
  color: var(--muted);
  margin: 0 0 18px;
  font-size: 0.95rem;
}
.service-card ul {
  flex: 1;
  margin-bottom: 24px;
}
.service-card ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.service-card ul li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--slate);
  border-radius: 50%;
  flex-shrink: 0;
}
.service-card ul li:last-child { border-bottom: 0; }
.service-link {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.service-link:hover { gap: 12px; color: var(--primary-mid); }

/* ══════════════════════════════════════════════════════════
   PORTAFOLIO
   ══════════════════════════════════════════════════════════ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 48px;
}
.filter-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  font-weight: 500;
  transition: all .2s var(--ease);
}
.filter-btn:hover { color: var(--primary); border-color: var(--slate); }
.filter-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.portfolio-item {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  transition: all .35s var(--ease);
  cursor: zoom-in;
}
.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.portfolio-item:hover img { transform: scale(1.06); }
.portfolio-item.is-hidden {
  display: none;
}
/* Image fallback: if image fails, show filename */
.portfolio-item img[alt]::before {
  content: attr(alt);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--surface-2), var(--slate-light));
  color: var(--primary-mid);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  padding: 16px;
  text-align: center;
}
.portfolio-meta {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 22px 20px 18px;
  background: linear-gradient(180deg, transparent 0%, rgba(30, 51, 71, 0.92) 100%);
  color: var(--white);
  transform: translateY(20px);
  opacity: 0;
  transition: all .3s var(--ease);
}
.portfolio-item:hover .portfolio-meta { transform: translateY(0); opacity: 1; }
.portfolio-meta span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate-light);
  font-weight: 500;
}
.portfolio-meta h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 4px 0 0;
  letter-spacing: 0.02em;
}

/* ══════════════════════════════════════════════════════════
   PROCESO
   ══════════════════════════════════════════════════════════ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.process-grid::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: rgba(200, 212, 218, 0.3);
}
.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 14px;
}
.step-num {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--white);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.process-step h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
  margin: 0 0 10px;
}
.process-step p {
  color: var(--slate-light);
  font-size: 0.92rem;
  margin: 0;
}

/* ══════════════════════════════════════════════════════════
   TIPS
   ══════════════════════════════════════════════════════════ */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tip-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: all .25s var(--ease);
}
.tip-card:hover {
  border-color: var(--slate);
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}
.tip-card i {
  font-size: 1.7rem;
  color: var(--primary-mid);
  margin-bottom: 16px;
  display: block;
}
.tip-card h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 10px;
  letter-spacing: 0.02em;
}
.tip-card p { color: var(--muted); margin: 0; font-size: 0.93rem; }

/* ══════════════════════════════════════════════════════════
   CONTACTO
   ══════════════════════════════════════════════════════════ */
.contact-list {
  margin: 28px 0;
}
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list i {
  width: 42px;
  height: 42px;
  background: var(--surface-2);
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-list strong {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 4px;
}
.contact-list a, .contact-list span { color: var(--text); font-weight: 500; }
.contact-list a:hover { color: var(--primary-mid); }

.social-row {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.social-row a {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.05rem;
  transition: all .2s var(--ease);
}
.social-row a:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-card);
}
.contact-form h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 22px;
  letter-spacing: 0.02em;
}
.form-row { margin-bottom: 16px; }
.form-row.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-row label {
  display: block;
}
.form-row label span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 6px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--text);
  transition: all .18s var(--ease);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 0;
  border-color: var(--slate);
  box-shadow: 0 0 0 3px rgba(143, 168, 184, 0.18);
}
.contact-form textarea { resize: vertical; min-height: 110px; }

.contact-form .btn { margin-top: 8px; }
.contact-form .btn-loading { display: none; }
.contact-form.is-loading .btn-label { display: none; }
.contact-form.is-loading .btn-loading { display: inline-flex; align-items: center; gap: 8px; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-feedback {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  display: none;
}
.form-feedback.show { display: block; }
.form-feedback.success { background: #e0f0ea; color: #1a5c3a; border: 1px solid #b8d8c8; }
.form-feedback.error   { background: #f5e0e0; color: #6e1a1a; border: 1px solid #d8b8b8; }

.form-fineprint {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 14px 0 0;
  text-align: center;
}

/* ══════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--primary);
  color: var(--slate-light);
  padding: 70px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand img {
  height: 72px;
  width: auto;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}
.footer-brand p {
  color: var(--slate-light);
  font-size: 0.92rem;
  margin: 0;
  max-width: 320px;
  line-height: 1.65;
}
.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  font-weight: 600;
  margin: 0 0 18px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: var(--slate-light);
  font-size: 0.9rem;
}
.footer-col ul li a:hover { color: var(--white); }

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}
.footer-contact i { color: var(--slate); }

.footer-social {
  margin-top: 18px;
}
.footer-social a {
  border-color: rgba(200, 212, 218, 0.25);
  color: var(--slate-light);
}
.footer-social a:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(200, 212, 218, 0.15);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--slate);
}
.credit-link {
  color: var(--slate-light);
  font-weight: 500;
  letter-spacing: 0.04em;
  border-bottom: 1px dotted rgba(200, 212, 218, 0.4);
  padding-bottom: 1px;
  transition: all .2s var(--ease);
}
.credit-link:hover {
  color: var(--white);
  border-bottom-color: var(--white);
}

/* ══════════════════════════════════════════════════════════
   WHATSAPP FLOAT
   ══════════════════════════════════════════════════════════ */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  z-index: 999;
  transition: all .25s var(--ease);
  animation: waPulse 2.4s ease-in-out infinite;
}
.wa-float:hover { transform: scale(1.08); color: var(--white); }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  50%      { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 0 0 14px rgba(37, 211, 102, 0); }
}

/* ══════════════════════════════════════════════════════════
   LIGHTBOX
   ══════════════════════════════════════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 18, 28, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 40px;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: transparent;
  border: 0;
  color: var(--white);
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
}

/* ══════════════════════════════════════════════════════════
   REVEAL ANIMATIONS
   ══════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 992px) {
  .row-2 { grid-template-columns: 1fr; gap: 56px; }
  .services-grid, .tips-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .process-grid::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .section { padding: 70px 0; }
  .hero { padding: 100px 18px 60px; min-height: auto; }
  /* Hide video on mobile — saves data, uses photo fallback instead */
  .hero-video { display: none; }
  .hero-title { font-size: clamp(2.2rem, 9vw, 3rem); line-height: 1.08; margin-bottom: 18px; }
  .hero-sub { font-size: 1rem; margin-bottom: 30px; }
  .hero-meta { grid-template-columns: 1fr; gap: 18px; padding-top: 28px; }
  .hero-meta strong { font-size: 1.8rem; }
  .hero-meta span { font-size: 0.65rem; }

  /* Tighter navbar — logo stays visible but compact */
  .nav-inner { padding: 10px 16px; gap: 10px; }
  .nav-logo { height: 46px; }
  .site-nav.scrolled .nav-logo { height: 40px; }

  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 70px;
    left: 12px;
    right: 12px;
    flex-direction: column;
    background: var(--white);
    padding: 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-elev);
    border: 1px solid var(--border);
    align-items: stretch;
    gap: 4px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: all .25s var(--ease);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a { padding: 13px 16px; font-size: 0.9rem; }
  .nav-cta, .nav-cta-soft { margin-left: 0; text-align: center; justify-content: center; margin-top: 4px; }

  /* Section heads tighter */
  .section-head { margin-bottom: 44px; }
  .display { font-size: clamp(1.65rem, 6.5vw, 2.2rem); }
  .lead { font-size: 0.98rem; }

  /* Sobre nosotros — more breathing room when stacked */
  .row-2 { gap: 44px; }
  .portrait-frame { aspect-ratio: 4/5; max-width: 420px; margin: 0 auto; }

  /* Services / portfolio / tips → 1 col */
  .services-grid, .tips-grid, .portfolio-grid { grid-template-columns: 1fr; gap: 16px; }
  .service-card { padding: 28px 24px; }
  .service-card h3 { font-size: 1.4rem; }
  .tip-card { padding: 26px 22px; }

  /* Process — single column, tighter */
  .process-grid { grid-template-columns: 1fr; gap: 30px; }
  .process-step { padding: 0; }
  .process-step h3 { font-size: 1.25rem; }

  /* Portfolio image overlay always visible on touch (no hover) */
  .portfolio-meta { transform: translateY(0); opacity: 1; padding: 18px 16px 14px; }
  .portfolio-meta h4 { font-size: 1.05rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-brand img { height: 60px; }
  .footer-bottom { justify-content: center; text-align: center; flex-direction: column; gap: 6px; }

  /* Contact */
  .form-row.split { grid-template-columns: 1fr; gap: 14px; }
  .contact-form { padding: 26px 20px; }
  .contact-form h3 { font-size: 1.4rem; }
  .contact-list i { width: 38px; height: 38px; font-size: 1rem; }

  /* Filter buttons */
  .filter-bar { gap: 6px; margin-bottom: 32px; }
  .filter-btn { padding: 8px 16px; font-size: 0.74rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero { padding: 90px 16px 50px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-actions .btn { justify-content: center; padding: 14px 22px; }
  .btn { padding: 12px 22px; font-size: 0.78rem; }

  /* WhatsApp float a bit smaller */
  .wa-float { bottom: 16px; right: 16px; width: 50px; height: 50px; font-size: 1.5rem; }

  /* Navbar even tighter */
  .nav-inner { padding: 8px 12px; }
  .nav-logo { height: 42px; }
  .site-nav.scrolled .nav-logo { height: 38px; }

  /* Section padding tighter */
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 36px; }

  /* Service icons smaller */
  .service-icon { width: 48px; height: 48px; font-size: 1.2rem; margin-bottom: 18px; }
  .service-card { padding: 26px 20px; }

  /* Hero meta closer */
  .hero-meta { padding-top: 24px; gap: 14px; }
  .hero-meta strong { font-size: 1.6rem; }

  /* Portrait caption sizing */
  .portrait-caption { padding: 18px; }
  .portrait-caption strong { font-size: 1.2rem; }

  /* Contact list a bit tighter */
  .contact-list li { padding: 14px 0; gap: 12px; }
  .social-row a { width: 38px; height: 38px; font-size: 1rem; }
}

/* Extra-narrow phones (iPhone SE, etc.) */
@media (max-width: 360px) {
  .nav-cta, .nav-cta-soft i { display: inline-block; }
  .display { font-size: 1.55rem; }
  .hero-title { font-size: 2rem; }
  .hero-sub { font-size: 0.95rem; }
}

/* ── PRINT ──────────────────────────────────────────────── */
@media print {
  .site-nav, .wa-float, .scroll-cue, .nav-toggle, .lightbox { display: none !important; }
  .hero { min-height: auto; padding: 40px 0; }
  .section { padding: 30px 0; page-break-inside: avoid; }
  body { background: white; color: #000; }
}

/* ── REDUCED MOTION ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-bg { animation: none; }
}
