/* ============================================================
   DETRICK INGENIERÍA — Corporate Premium Redesign v2
   Anthracite Black + Burnished Gold
   ============================================================ */

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

:root {
  --bg:          #09090F;
  --bg-2:        #0E1118;
  --bg-card:     #131722;
  --gold:        #E8A020;
  --gold-dim:    #A87010;
  --gold-glow:   rgba(232,160,32,0.18);
  --copper:      #C05828;
  --text-1:      #EEF2F8;
  --text-2:      #8494AA;
  --text-3:      #4A5A70;
  --border:      rgba(255,255,255,0.07);
  --border-gold: rgba(232,160,32,0.3);
  --font-head:   'Sora', sans-serif;
  --font-body:   'DM Sans', sans-serif;
  --font-mono:   'JetBrains Mono', monospace;
  --max-w:       1240px;
  --pad-x:       2rem;
  --pad-s:       7rem;
  --ease:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-1);
  overflow-x: hidden;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}



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

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 4px; }



/* ============================================================
   NAVIGATION
   ============================================================ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  height: 76px;
  transition: background 0.4s ease, box-shadow 0.4s ease, transform 0.35s ease, border-bottom 0.4s ease;
}

#navbar.nav-scrolled {
  background: rgba(9,9,15,0.95);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 40px rgba(0,0,0,0.5);
  backdrop-filter: blur(24px);
}

#navbar.nav-hidden { transform: translateY(-100%); }

.nav-logo img { height: 38px; width: auto; transition: opacity 0.2s; }
.nav-logo:hover img { opacity: 0.8; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  padding: 0.45rem 0.95rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.01em;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text-1); background: rgba(255,255,255,0.05); }

.nav-cta {
  background: var(--gold) !important;
  color: #09090F !important;
  font-weight: 700 !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: 6px;
  transition: background 0.2s, transform 0.2s !important;
}

.nav-cta:hover { background: #F4B030 !important; transform: translateY(-1px) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text-1);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -5px); }

.mobile-nav {
  position: fixed; inset: 0;
  z-index: 99;
  background: rgba(9,9,15,0.98);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
}

.mobile-nav.open { transform: translateX(0); }

.mobile-link {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-1);
  transition: color 0.2s;
}
.mobile-link:hover { color: var(--gold); }

.mobile-cta {
  background: var(--gold) !important;
  color: #09090F !important;
  padding: 0.8rem 2.5rem;
  border-radius: 8px;
  font-size: 1.2rem !important;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
#lightbox {
  position: fixed; inset: 0;
  z-index: 500;
  background: rgba(0,0,0,0.95);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
#lightbox.open { display: flex; }
#lightbox-img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 4px; }

.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  color: white;
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.lightbox-close:hover { background: var(--gold); color: #09090F; border-color: var(--gold); }

/* ============================================================
   SHARED
   ============================================================ */
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--pad-s) var(--pad-x);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: '';
  display: block;
  width: 22px; height: 1px;
  background: var(--gold);
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--text-1);
  margin-bottom: 1.5rem;
}

.section-title em { color: var(--gold); }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal,
.reveal-left,
.reveal-right,
.reveal-up {
  opacity: 0;
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}

.reveal       { transform: translateY(28px); }
.reveal-left  { transform: translateX(-36px); }
.reveal-right { transform: translateX(36px); }
.reveal-up    { transform: translateY(20px); }

.reveal.in-view,
.reveal-left.in-view,
.reveal-right.in-view,
.reveal-up.in-view {
  opacity: 1;
  transform: none;
}

.d-1 { transition-delay: 0.1s; }
.d-2 { transition-delay: 0.2s; }
.d-3 { transition-delay: 0.3s; }
.d-4 { transition-delay: 0.4s; }
.d-5 { transition-delay: 0.5s; }
.d-6 { transition-delay: 0.65s; }
.d-7 { transition-delay: 0.8s; }
.d-8 { transition-delay: 0.95s; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s var(--ease);
  letter-spacing: 0.01em;
  line-height: 1;
}

.btn-primary {
  background: var(--gold);
  color: #09090F;
}
.btn-primary:hover {
  background: #F4B030;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232,160,32,0.28);
}

.btn-outline {
  background: transparent;
  color: var(--text-1);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.05);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text-1); border-color: rgba(255,255,255,0.14); background: rgba(255,255,255,0.04); }

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

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

.hero-bg-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: brightness(0.25) saturate(0.5);
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-bg-img.active {
  opacity: 1;
}

.hero-bg-grad {
  position: absolute; inset: 0;
  background: linear-gradient(
    110deg,
    rgba(9,9,15,0.95) 0%,
    rgba(9,9,15,0.8) 55%,
    rgba(9,9,15,0.4) 100%
  );
  z-index: 1;
}

.hero-bg-grain {
  position: absolute; inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  padding: 8rem var(--pad-x) 4rem;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 4.5rem;
  align-items: center;
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.67rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
}

.hero-eyebrow-pip {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.hero-h1 {
  font-family: var(--font-head);
  font-size: clamp(3rem, 7.5vw, 6rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.035em;
  color: var(--text-1);
  margin-bottom: 1.5rem;
}

.hero-h1 .h1-accent {
  color: var(--gold);
  display: block;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-2);
  line-height: 1.8;
  max-width: 510px;
  margin-bottom: 2.5rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero metrics — old (removed) */

/* ============================================================
   SPECIALTY SELECTOR & INTERACTIVE BLUEPRINT CONSOLE
   ============================================================ */

.hero-right {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Specialty Selector — Console bottom tabs menu */
.specialty-selector {
  display: flex;
  flex-direction: row;
  width: 100%;
  margin-top: -1px; /* overlap border to avoid double line */
  background: rgba(9, 9, 15, 0.85);
  backdrop-filter: blur(28px);
  border: 1px solid var(--border);
  border-radius: 0 0 14px 14px; /* rounded bottom only */
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  z-index: 2;
}

.spec-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.95rem 0.5rem;
  background: transparent;
  border: none;
  border-right: 1px solid var(--border);
  border-radius: 0;
  cursor: pointer;
  outline: none;
  font-family: inherit;
  transition: background 0.3s ease, color 0.3s ease;
}

.spec-btn:last-child {
  border-right: none;
}

.spec-btn:hover {
  background: rgba(232,160,32,0.04);
}

.spec-btn.active {
  background: rgba(232,160,32,0.09);
}

.spec-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-3);
  transition: color 0.3s ease;
}

.spec-btn:hover .spec-num,
.spec-btn.active .spec-num {
  color: var(--gold);
}

.spec-title {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-2);
  transition: color 0.3s ease;
}

.spec-btn:hover .spec-title,
.spec-btn.active .spec-title {
  color: var(--gold);
}

/* Interactive Engineering Console */
.hero-console {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border);
  border-radius: 14px 14px 0 0; /* rounded top only */
  background: rgba(9, 9, 15, 0.75);
  backdrop-filter: blur(28px);
  overflow: hidden;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.hero-console:hover {
  border-color: var(--border-gold);
  box-shadow: 0 0 50px rgba(232,160,32,0.06), 0 20px 50px rgba(0,0,0,0.5);
}

/* CAD Crosshairs and Grid */
.console-corner {
  position: absolute;
  width: 10px; height: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  z-index: 5;
  pointer-events: none;
}
.cc-tl { top: 12px; left: 12px; border-right: none; border-bottom: none; }
.cc-tr { top: 12px; right: 12px; border-left: none; border-bottom: none; }
.cc-bl { bottom: 12px; left: 12px; border-right: none; border-top: none; }
.cc-br { bottom: 12px; right: 12px; border-left: none; border-top: none; }

.console-grid {
  position: absolute;
  inset: 12px;
  background-size: 20px 20px;
  background-image: 
    linear-gradient(to right, rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.015) 1px, transparent 1px);
  z-index: 1;
  pointer-events: none;
}

/* Console Header */
.console-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.4rem;
  border-bottom: 1px solid var(--border);
}

.console-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #00C864;
  box-shadow: 0 0 8px #00C864;
  animation: pulseGreen 2s ease infinite;
}

@keyframes pulseGreen {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.7; }
}

.status-text {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--text-2);
}

.console-zoom {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--text-3);
}

/* Viewports and Blueprints */
.console-viewports {
  position: relative;
  flex: 1;
  width: 100%;
  z-index: 2;
  overflow: hidden;
}

.console-blueprint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.console-blueprint.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.blueprint-svg {
  width: 100%;
  height: 100%;
  max-height: 250px;
}

/* Console Footer */
.console-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.4rem;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.01);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: var(--text-3);
}

.cf-text {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cf-pulse {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 6px var(--gold);
}

/* SVG Blueprint Animations */
.elec-flow {
  animation: dashScroll 1.5s linear infinite;
}

@keyframes dashScroll {
  to {
    stroke-dashoffset: -36;
  }
}

.gear-large {
  transform-origin: 0px 0px;
  animation: spinCw 20s linear infinite;
}

.gear-small {
  transform-origin: 0px 0px;
  animation: spinCcw 11.2s linear infinite;
}

@keyframes spinCw {
  to { transform: rotate(360deg); }
}

@keyframes spinCcw {
  to { transform: rotate(-360deg); }
}

.solar-panel-g {
  transform-origin: 0px 0px;
  animation: panelSwing 14s ease-in-out infinite alternate;
}

@keyframes panelSwing {
  0% { transform: rotate(-25deg); }
  100% { transform: rotate(20deg); }
}

.civil-force-g {
  animation: forcePulse 3s ease-in-out infinite alternate;
}

@keyframes forcePulse {
  0% { transform: translateY(0); }
  100% { transform: translateY(3px); }
}

/* Responsive console adjustments */
@media (max-width: 900px) {
  .hero-inner {
    padding-top: 7rem;
    gap: 2.5rem;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-right {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
  }
  .hero-console {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 600px) {
  .hero-console {
    display: flex; /* Ensure console is visible on mobile */
  }
  .specialty-selector {
    flex-direction: row; /* Horizontal tabs just like desktop */
    margin-top: -1px; /* Align to the console bottom */
    border-radius: 0 0 14px 14px;
  }
  .spec-btn {
    flex: 1;
    padding: 0.65rem 0.25rem;
    gap: 0.30rem;
  }
  .spec-title {
    font-size: 0.68rem;
  }
  .spec-num {
    font-size: 0.58rem;
  }
}



.scroll-ind {
  position: absolute;
  bottom: 2.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
  color: var(--text-3);
}

.scroll-ind-line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollAnim 2s ease infinite;
}

@keyframes scrollAnim {
  0%,100% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  30%      { opacity: 1; transform: scaleY(1); transform-origin: top; }
  70%      { opacity: 1; transform: scaleY(1); transform-origin: bottom; }
  99%      { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

.scroll-ind span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ============================================================
   EMPRESA / ABOUT
   ============================================================ */
#empresa {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.empresa-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.empresa-text .section-title { margin-bottom: 1.5rem; }

.empresa-text p {
  color: var(--text-2);
  line-height: 1.85;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.empresa-text p strong { color: var(--text-1); font-weight: 600; }

.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
}

.pillar {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1.1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.25s;
}
.pillar:hover { border-color: var(--border-gold); }

.pillar-icon {
  width: 36px; height: 36px;
  border-radius: 7px;
  background: rgba(232,160,32,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--gold);
  flex-shrink: 0;
}

.pillar-text strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 0.15rem;
}

.pillar-text span {
  font-size: 0.78rem;
  color: var(--text-3);
  line-height: 1.4;
}

.empresa-right { display: flex; flex-direction: column; gap: 1.5rem; }

.empresa-logo-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.empresa-logo-box img { max-width: 220px; }

.empresa-quote {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 1.5rem 1.75rem;
}

.empresa-quote blockquote {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  font-style: italic;
  color: var(--text-1);
  margin-bottom: 0.6rem;
  line-height: 1.5;
}

.empresa-quote cite {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  font-style: normal;
}

/* ============================================================
   SERVICES / AREAS
   ============================================================ */
#areas {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.areas-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 580px;
  margin: 0 auto 4rem;
}

.areas-sub {
  color: var(--text-2);
  line-height: 1.75;
  font-size: 0.95rem;
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 3.5rem;
}

.area-card {
  background: var(--bg-card);
  padding: 2rem 1.75rem;
  transition: background 0.25s;
  position: relative;
}

.area-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}

.area-card:hover { background: rgba(232,160,32,0.035); }
.area-card:hover::after { transform: scaleX(1); }

.area-num {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-3);
  letter-spacing: 0.12em;
  margin-bottom: 1.25rem;
}

.area-icon-wrap {
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.area-card h3 {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.area-card p {
  font-size: 0.8rem;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.area-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.area-tag {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  border: 1px solid var(--border);
  padding: 0.18rem 0.5rem;
  border-radius: 3px;
}

.areas-cta { display: flex; gap: 1rem; justify-content: center; }

/* ============================================================
   PROCESO / HOW WE WORK
   ============================================================ */
#proceso {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.proceso-header { max-width: 600px; margin-bottom: 4.5rem; }

.proceso-steps {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.proceso-step {
  display: grid;
  grid-template-columns: 72px 1fr 200px;
  gap: 2rem;
  padding: 2.5rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  border-left: 3px solid transparent;
  transition: background 0.3s, border-left-color 0.3s;
  cursor: default;
}

.proceso-step:last-child { border-bottom: none; }

.proceso-step.ps-active {
  background: rgba(232,160,32,0.03);
  border-left-color: var(--gold);
}

.ps-num {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(255,255,255,0.06);
  transition: color 0.3s;
  padding-top: 4px;
  user-select: none;
}

.proceso-step.ps-active .ps-num { color: rgba(232,160,32,0.2); }

.ps-badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.proceso-step.ps-active .ps-badge { color: var(--gold); }

.ps-title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 0.7rem;
  line-height: 1.25;
}

.ps-desc {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.75;
}

.ps-specs {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  justify-content: center;
}

.ps-spec { text-align: right; }

.ps-spec-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.2rem;
}

.ps-spec-val {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
}

/* ============================================================
   GALLERY
   ============================================================ */
#galeria {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.galeria-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 520px;
  margin: 0 auto 3.5rem;
}

.galeria-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 300px 300px;
  gap: 6px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.gal-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-card);
}

.gal-item.gal-tall { grid-row: span 2; }

.gal-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s var(--ease);
}

.gal-item:hover img { transform: scale(1.05); }

.gal-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(9,9,15,0.92) 0%, rgba(9,9,15,0.2) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.gal-item:hover .gal-overlay { opacity: 1; }

.gal-tags { display: flex; gap: 0.4rem; margin-bottom: 0.5rem; flex-wrap: wrap; }

.gal-tag {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(232,160,32,0.35);
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
}

.gal-name {
  display: block;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 0.25rem;
}

.gal-detail { font-size: 0.78rem; color: var(--text-2); }

/* ============================================================
   MAPA / LOCATION
   ============================================================ */
#mapa {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.mapa-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.mapa-text .section-title { margin-bottom: 1rem; }

.mapa-text > p {
  color: var(--text-2);
  line-height: 1.85;
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
}

.location-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.loc-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
}

.loc-card:hover {
  border-color: rgba(232, 160, 32, 0.3);
  background: rgba(232, 160, 32, 0.015);
  transform: translateY(-2px);
}

.loc-card.loc-active {
  border-color: var(--border-gold);
  background: rgba(232, 160, 32, 0.04);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.loc-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-3);
  flex-shrink: 0;
  position: relative;
}

.loc-card.loc-active .loc-dot { background: var(--gold); }

.loc-card.loc-active .loc-dot::after {
  content: '';
  position: absolute; inset: -4px;
  border-radius: 50%;
  background: rgba(232,160,32,0.2);
  animation: locPulse 2s ease infinite;
}

@keyframes locPulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0; transform: scale(2); }
}

.loc-info strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 0.2rem;
}

.loc-info span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-2);
  margin-bottom: 0.4rem;
}

.loc-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(232,160,32,0.3);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
}

.loc-badge-soon {
  color: var(--text-3);
  border-color: var(--border);
}

.contact-chips {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.contact-chip {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--text-2);
  transition: all 0.25s ease;
}

.contact-chip i { color: var(--gold); width: 16px; text-align: center; }
.contact-chip:hover { border-color: var(--border-gold); color: var(--text-1); transform: translateX(4px); }
.wa-chip i { color: #25D366; }

.mapa-visual {
  position: relative;
  background: rgba(14, 14, 14, 0.4);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.5), 0 10px 30px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.mapa-visual:hover {
  border-color: var(--border-gold);
  box-shadow: 0 0 30px rgba(232,160,32,0.04), 0 10px 30px rgba(0,0,0,0.4);
}

.map-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  z-index: 2;
}

.map-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* CAD Map Styles */
.map-grid-lat,
.map-grid-lon {
  stroke: rgba(255, 255, 255, 0.04);
  stroke-width: 0.5px;
  stroke-dasharray: 2 4;
}

.map-grid-label {
  font-family: var(--font-mono);
  fill: var(--text-3);
  opacity: 0.4;
  pointer-events: none;
  user-select: none;
}

.map-land {
  fill: rgba(255, 255, 255, 0.012);
  stroke: none;
  transition: fill 0.3s ease;
}

.mapa-visual:hover .map-land {
  fill: rgba(232, 160, 32, 0.02);
}

.map-coast {
  fill: none;
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 1.5px;
  stroke-linecap: round;
}

.map-coast-glow {
  fill: none;
  stroke: rgba(232, 160, 32, 0.05);
  stroke-width: 5px;
  stroke-linecap: round;
  filter: blur(2px);
  pointer-events: none;
}

.map-coast-offset {
  fill: none;
  stroke: rgba(255, 255, 255, 0.04);
  stroke-width: 0.8px;
  stroke-dasharray: 1 3;
  pointer-events: none;
}

.map-mountain {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1.2px;
  stroke-linecap: round;
  stroke-dasharray: 2 3;
}

.map-border {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 0.8px;
  stroke-dasharray: 3 5;
}

.map-river {
  fill: none;
  stroke: rgba(0, 180, 255, 0.08);
  stroke-width: 0.8px;
  pointer-events: none;
}

.map-road {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1px;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s, stroke-width 0.3s;
}

/* Inset Map Styles */
.map-inset-border {
  fill: rgba(10, 10, 10, 0.5);
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 0.8px;
}

.map-inset-chile {
  fill: none;
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 1px;
}

.map-inset-atacama {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.8px;
  filter: drop-shadow(0 0 2px var(--gold));
}

.map-inset-label {
  font-family: var(--font-mono);
  fill: var(--gold);
  letter-spacing: 0.1em;
  opacity: 0.6;
}

/* Compass & Scale Styles */
.map-compass-line {
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 0.8px;
}

.map-compass-arrow {
  fill: rgba(255, 255, 255, 0.25);
}

.map-compass-text {
  font-family: var(--font-mono);
  fill: var(--text-3);
  opacity: 0.6;
}

.map-scale-line {
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 0.8px;
}

.map-scale-marker {
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 0.8px;
}

.map-scale-text {
  font-family: var(--font-mono);
  fill: var(--text-3);
  opacity: 0.5;
}

/* Interactive Nodes */
.map-node {
  cursor: pointer;
  pointer-events: all;
}

.node-dot {
  fill: var(--text-3);
  transition: fill 0.3s, r 0.3s, filter 0.3s;
}

.map-node.hub-active .node-dot {
  fill: var(--gold);
}

.map-node.hub-soon .node-dot {
  fill: #777;
}

.node-dot-pulse {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1px;
  opacity: 0;
  transform-origin: center;
  pointer-events: none;
}

.map-node.hub-active .node-dot-pulse {
  animation: nodeBeacon 2.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.map-node.hub-soon .node-dot-pulse {
  stroke: #777;
}

@keyframes nodeBeacon {
  0% {
    r: 5px;
    opacity: 0.8;
    stroke-width: 1.5px;
  }
  100% {
    r: 22px;
    opacity: 0;
    stroke-width: 0.5px;
  }
}

.node-label {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.05em;
  fill: var(--text-3);
  opacity: 0.5;
  transition: fill 0.3s, opacity 0.3s;
  pointer-events: none;
  user-select: none;
}

/* Hover & Active States */
.map-node:hover .node-dot,
.map-node.active .node-dot {
  fill: #fff;
  filter: drop-shadow(0 0 5px var(--gold));
  r: 6.5px;
}

.map-node:hover .node-label,
.map-node.active .node-label {
  fill: #fff;
  opacity: 1;
}

.map-node.hub-soon:hover .node-dot,
.map-node.hub-soon.active .node-dot {
  fill: #fff;
  filter: drop-shadow(0 0 4px rgba(255,255,255,0.4));
  r: 5.5px;
}

/* Tooltip Styling */
.map-tooltip {
  position: absolute;
  background: rgba(10, 10, 10, 0.95);
  border: 1px solid var(--border-gold);
  border-radius: 4px;
  padding: 0.65rem 0.85rem;
  pointer-events: none;
  z-index: 10;
  font-family: var(--font-mono);
  opacity: 0;
  transform: translate(-50%, -100%) scale(0.9);
  transform-origin: bottom center;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.8), 0 0 10px rgba(232,160,32,0.15);
  width: 210px;
}

.map-tooltip.visible {
  opacity: 1;
  transform: translate(-50%, -115%) scale(1);
}

.mt-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mt-status {
  font-size: 0.58rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 0.25rem;
  font-weight: 600;
}

.mt-desc {
  font-size: 0.65rem;
  color: var(--text-2);
  line-height: 1.4;
}

/* ============================================================
   COTIZACIÓN
   ============================================================ */
#cotizacion {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.cotizacion-wrap {
  max-width: 760px;
  margin: 0 auto;
}

.cotizacion-header {
  text-align: center;
  margin-bottom: 3rem;
}

.cotizacion-header > p {
  color: var(--text-2);
  line-height: 1.75;
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.form-group { position: relative; }
.form-group.fw { grid-column: 1 / -1; }

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem 1rem 0.45rem;
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.25s, background 0.25s;
  -webkit-appearance: none;
  appearance: none;
}

.form-group select { padding: 0.875rem 1rem; cursor: pointer; }
.form-group select option { background: var(--bg-card); }

.form-group textarea {
  resize: vertical;
  min-height: 130px;
  padding-top: 1rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
  background: rgba(232,160,32,0.04);
}

.form-group label {
  position: absolute;
  top: 0.875rem; left: 1rem;
  font-size: 0.85rem;
  color: var(--text-3);
  transition: all 0.2s ease;
  pointer-events: none;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: 0.3rem;
  font-size: 0.65rem;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.form-group select + label {
  top: 0.3rem;
  font-size: 0.65rem;
  color: var(--gold);
}

.field-error {
  display: none;
  font-size: 0.73rem;
  color: #E05555;
  margin-top: 0.3rem;
  padding-left: 0.2rem;
}

.form-group.err input,
.form-group.err textarea { border-color: #E05555; }
.form-group.err .field-error { display: block; }

.char-counter {
  position: absolute;
  bottom: 0.5rem; right: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-3);
}

.hp-field { display: none !important; }

.btn-submit {
  width: 100%;
  justify-content: center;
  background: var(--gold);
  color: #09090F;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 1rem 1.5rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  margin-top: 1.5rem;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
}

.btn-submit:hover:not(:disabled) {
  background: #F4B030;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(232,160,32,0.22);
}

.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-spinner {
  display: none;
  width: 16px; height: 16px;
  border: 2px solid rgba(0,0,0,0.2);
  border-top-color: #09090F;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn-submit.loading .btn-text { display: none; }
.btn-submit.loading .btn-spinner { display: block; }

@keyframes spin { to { transform: rotate(360deg); } }

.form-success-msg {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
}

.form-success-msg.visible { display: block; }

.success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(0,200,100,0.1);
  border: 1.5px solid rgba(0,200,100,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: #00C864;
  margin: 0 auto 1.5rem;
}

.form-success-msg h3 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 0.75rem;
}

.form-success-msg p { color: var(--text-2); line-height: 1.7; }

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: #060609;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4.5rem var(--pad-x) 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand img { height: 38px; width: auto; margin-bottom: 1.1rem; }

.footer-brand p {
  font-size: 0.84rem;
  color: var(--text-3);
  line-height: 1.7;
  max-width: 270px;
  margin-bottom: 0.75rem;
}

.footer-slogan {
  display: block;
  font-style: italic;
  font-size: 0.84rem;
  color: var(--gold-dim);
  margin-bottom: 0.5rem;
}

.footer-rut {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-3);
  letter-spacing: 0.04em;
}

.footer-col h4 {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.footer-contact-list,
.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-3);
  line-height: 1.5;
}

.footer-contact-list li i { color: var(--gold-dim); width: 14px; flex-shrink: 0; margin-top: 0.1rem; }
.footer-contact-list a { color: var(--text-3); transition: color 0.2s; }
.footer-contact-list a:hover { color: var(--text-1); }

.footer-links-list a { font-size: 0.82rem; color: var(--text-3); transition: color 0.2s; display: block; }
.footer-links-list a:hover { color: var(--text-1); }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-bottom p { font-size: 0.76rem; color: var(--text-3); }

.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { font-size: 0.76rem; color: var(--text-3); transition: color 0.2s; }
.footer-bottom-links a:hover { color: var(--text-1); }

/* ============================================================
   WHATSAPP
   ============================================================ */
#whatsapp-float {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.wa-tooltip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-1);
  font-size: 0.78rem;
  padding: 0.45rem 0.8rem;
  border-radius: 7px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: all 0.3s ease;
  pointer-events: none;
}

#whatsapp-float:hover .wa-tooltip { opacity: 1; transform: translateX(0); }

.wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.3);
  transition: all 0.3s ease;
}

.wa-btn:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(37,211,102,0.45); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .proceso-step { grid-template-columns: 60px 1fr; }
  .ps-specs { display: none; }
}

@media (max-width: 900px) {
  :root { --pad-s: 5rem; }

  #navbar { padding: 0 1.5rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }

  .empresa-layout,
  .mapa-layout { grid-template-columns: 1fr; gap: 3rem; }

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

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

  .galeria-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .gal-item.gal-tall { grid-row: span 1; }
  .gal-item img { aspect-ratio: 16/9; height: auto; }

  .proceso-step { grid-template-columns: 56px 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  :root { --pad-s: 4rem; --pad-x: 1.25rem; }

  .hero-ctas { flex-direction: column; }

  .hero-ctas .btn { width: 100%; justify-content: center; }

  .proceso-step { grid-template-columns: 48px 1fr; padding: 1.75rem 1.25rem; }
  .ps-num { font-size: 2rem; }

  .form-card { padding: 1.5rem; }

  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ============================================================
   SUBPAGES & MULTI-PAGE STYLES
   ============================================================ */

/* Page Header / Banner for Subpages */
.page-header {
  position: relative;
  padding: 10rem var(--pad-x) 5rem var(--pad-x);
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: 20px 20px;
  background-image: 
    linear-gradient(to right, rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.015) 1px, transparent 1px);
  pointer-events: none;
}

.page-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.breadcrumbs {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 1rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.breadcrumbs a {
  color: var(--text-2);
  transition: color 0.25s;
}

.breadcrumbs a:hover {
  color: var(--gold);
}

.breadcrumbs span {
  color: var(--border-gold);
}

.page-title {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-1);
}

.page-title em {
  font-style: normal;
  color: var(--gold);
}

/* Portfolio Filters */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-2);
  padding: 0.55rem 1.4rem;
  border-radius: 30px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.filter-btn:hover {
  border-color: rgba(232, 160, 32, 0.4);
  color: var(--text-1);
}

.filter-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #000;
  font-weight: 600;
  box-shadow: 0 0 15px rgba(232, 160, 32, 0.25);
}

/* Gallery Filter Transitions */
.gal-item {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.gal-item.hidden {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  padding: 0;
  margin: 0;
  border: none;
}

/* Helper Buttons & Section Utilities */
.btn-center-wrap {
  display: flex;
  justify-content: center;
  margin-top: 3.5rem;
}

/* Subpage Main Content Spacing */
.page-section {
  padding: var(--pad-s) var(--pad-x);
}

.page-section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* About page structured values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-top: 4rem;
}

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2.2rem;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.value-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
}

.value-card h3 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--text-1);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.value-card h3 i {
  color: var(--gold);
}

.value-card p {
  color: var(--text-2);
  line-height: 1.7;
  font-size: 0.92rem;
}

@media (max-width: 768px) {
  .values-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .page-title {
    font-size: 2rem;
  }
}
