/* Mora Montajes — Design System */
:root {
  --navy: #1e3a5f;
  --navy-deep: #0f1f2e;
  --navy-steel: #1a2a3a;
  --blue: #2563EB;
  --blue-bright: #3b82f6;
  --blue-soft: #dbeafe;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --shadow-sm: 0 1px 2px rgba(15, 31, 46, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 31, 46, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 31, 46, 0.12);
  --shadow-xl: 0 24px 60px rgba(15, 31, 46, 0.18);
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --max-w: 1240px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-weight: 700;
  color: var(--navy);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

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

/* ── Buttons ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: all 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}
.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-outline-dark:hover {
  background: var(--navy);
  color: var(--white);
}
.btn-ghost {
  color: var(--blue);
  padding: 10px 0;
}
.btn-ghost:hover { color: #1d4ed8; }
.btn-lg { padding: 16px 28px; font-size: 16px; }

/* ── Navbar ─────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-steel);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.navbar.scrolled {
  background: rgba(26, 42, 58, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  transition: padding 0.3s ease;
}
.navbar.scrolled .nav-inner { padding: 12px 0; }
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}
.logo-img {
  height: 44px;
  width: auto;
  display: block;
  transition: height 0.3s ease;
}
.navbar.scrolled .logo-img { height: 38px; }
.logo-divider {
  width: 1px;
  height: 22px;
  background: rgba(255,255,255,0.18);
}
.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-bright) 100%);
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-title {
  color: var(--white);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.logo-sub {
  color: #94a3b8;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  white-space: nowrap;
}
.logo-text .logo-sub { margin-top: 4px; font-weight: 500; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  position: relative;
  color: rgba(255,255,255,0.78);
  padding: 10px 16px;
  font-size: 14.5px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 2px;
  background: var(--blue-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--white); }
.nav-cta {
  margin-left: 12px;
  padding: 11px 20px;
  font-size: 14px;
}
.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: all 0.25s;
}
.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;
  background: var(--navy-steel);
  padding: 16px 0 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.mobile-menu.open { display: block; }
.mobile-menu .nav-link {
  display: block;
  padding: 14px 32px;
  border-radius: 0;
}
.mobile-menu .nav-link::after { display: none; }
.mobile-cta-wrap { padding: 12px 32px 0; }
.mobile-menu .btn { width: 100%; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .logo-divider, .logo .logo-sub { display: none; }
}

/* ── Hero ───────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--white);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-color: #0a1520;
  background-image: url('assets/hero-fondo.png');
  background-size: cover;
  background-position: center;
  z-index: 0;
}
/* Industrial overlay: subtle stripes + tinted gradient for legibility */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(135deg,
      rgba(255,255,255,0.02) 0,
      rgba(255,255,255,0.02) 2px,
      transparent 2px,
      transparent 22px);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
    rgba(10,21,32,0.94) 0%,
    rgba(15,31,46,0.86) 42%,
    rgba(30,58,95,0.7) 100%);
}
.hero-placeholder-tag {
  position: absolute;
  bottom: 20px;
  right: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 0 60px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--blue-bright);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-eyebrow::before {
  content: '';
  width: 32px;
  height: 1.5px;
  background: var(--blue-bright);
}
.hero h1 {
  color: var(--white);
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 800;
  max-width: 18ch;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
}
.hero h1 .accent {
  color: var(--blue-bright);
  position: relative;
  white-space: nowrap;
}
.hero p.lead {
  font-size: clamp(17px, 1.5vw, 20px);
  color: rgba(255,255,255,0.82);
  max-width: 56ch;
  margin-bottom: 40px;
  font-weight: 400;
  line-height: 1.55;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-metrics {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255,255,255,0.12);
  background: rgba(15, 31, 46, 0.5);
  backdrop-filter: blur(8px);
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 32px 0;
}
.metric {
  padding: 0 32px;
  border-left: 1px solid rgba(255,255,255,0.08);
}
.metric:first-child { border-left: none; }
.metric-value {
  font-size: 36px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1;
}
.metric-value .plus { color: var(--blue-bright); }
.metric-label {
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  margin-top: 8px;
  font-weight: 500;
}
@media (max-width: 760px) {
  .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
  .metric:nth-child(3) { border-left: none; }
}

/* ── Section general ───────────────────────── */
section.section {
  padding: 100px 0;
}
.section-eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.section-eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--blue);
}
.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}
.section-sub {
  color: var(--gray-500);
  font-size: 17px;
  max-width: 62ch;
  line-height: 1.6;
}
.section-head { margin-bottom: 56px; }
.section-head.center { text-align: center; }
.section-head.center .section-eyebrow { justify-content: center; display: flex; }
.section-head.center .section-sub { margin: 0 auto; }

/* ── Service Cards ──────────────────────────── */
.services-bg { background: var(--gray-50); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 760px) {
  .service-grid { grid-template-columns: 1fr; }
}
.service-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  position: relative;
  border: 1px solid var(--gray-200);
  transition: all 0.25s ease;
  cursor: pointer;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--blue);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleY(1); }
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  transition: all 0.25s;
}
.service-card:hover .service-icon {
  background: var(--blue);
  color: var(--white);
}
.service-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  font-weight: 700;
}
.service-card p {
  color: var(--gray-500);
  font-size: 15px;
  line-height: 1.55;
}
.service-card .arrow {
  margin-top: 22px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}
.service-card:hover .arrow { gap: 12px; }

.section-foot { margin-top: 48px; text-align: center; }

/* ── About preview (Home) ───────────────────── */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 860px) {
  .about-preview { grid-template-columns: 1fr; gap: 48px; }
}
.about-since {
  font-size: clamp(80px, 12vw, 140px);
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.05em;
  line-height: 0.95;
  margin-bottom: 8px;
  font-feature-settings: "tnum";
}
.about-since-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 32px;
}
.about-text p {
  font-size: 17px;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 20px;
}
.about-image-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
}
.about-image-wrap .frame-deco {
  position: absolute;
  inset: 24px -24px -24px 24px;
  border: 2px solid var(--blue);
  border-radius: var(--r-lg);
  z-index: 0;
}

/* ── Placeholders ───────────────────────────── */
.placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: #e8eef5;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(30, 58, 95, 0.08) 0,
    rgba(30, 58, 95, 0.08) 1px,
    transparent 1px,
    transparent 14px
  );
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.placeholder.dark {
  background-color: #1a2a3a;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.04) 0,
    rgba(255,255,255,0.04) 1px,
    transparent 1px,
    transparent 14px
  );
  color: rgba(255,255,255,0.5);
}
.placeholder-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(30, 58, 95, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  background: rgba(255,255,255,0.85);
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid rgba(30, 58, 95, 0.15);
}
.placeholder.dark .placeholder-label {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.55);
  border-color: rgba(255,255,255,0.1);
}

/* ── Values badges (About page) ─────────────── */
.values-strip {
  background: var(--gray-50);
  padding: 56px 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 760px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
.value-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  background: var(--white);
  border-radius: var(--r-md);
  border: 1px solid var(--gray-200);
  transition: all 0.2s;
}
.value-badge:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
}
.value-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--blue-soft);
  color: var(--blue);
  border-radius: 10px;
  display: grid;
  place-items: center;
}
.value-name { font-weight: 700; color: var(--navy); font-size: 15px; }
.value-desc { font-size: 12.5px; color: var(--gray-500); margin-top: 2px; }

/* ── Mission/Vision/Purpose dark cards ─────── */
.mvp-section { background: var(--white); padding: 100px 0; }
.mvp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 860px) { .mvp-grid { grid-template-columns: 1fr; } }
.mvp-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--r-lg);
  padding: 40px 32px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.mvp-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(37,99,235,0.25), transparent 70%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s;
}
.mvp-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}
.mvp-card:hover::after { opacity: 1; }
.mvp-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: rgba(37,99,235,0.2);
  color: var(--blue-bright);
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}
.mvp-card h3 {
  color: var(--white);
  font-size: 24px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.mvp-card p {
  color: rgba(255,255,255,0.78);
  font-size: 15px;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

/* ── Page Header (small hero) ──────────────── */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(135deg,
    rgba(255,255,255,0.025) 0,
    rgba(255,255,255,0.025) 2px,
    transparent 2px, transparent 22px);
}
.page-header > .container { position: relative; }
.breadcrumb {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb .crumb { cursor: pointer; transition: color 0.2s; }
.breadcrumb .crumb:hover { color: var(--white); }
.breadcrumb .sep { opacity: 0.4; }
.breadcrumb .current { color: var(--blue-bright); }
.page-header h1 {
  color: var(--white);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  margin-bottom: 14px;
}
.page-header p {
  font-size: 17px;
  color: rgba(255,255,255,0.78);
  max-width: 60ch;
}

/* ── Services page zigzag ──────────────────── */
.feature-row {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 80px 0;
  border-bottom: 1px solid var(--gray-200);
}
.feature-row:last-child { border-bottom: none; }
.feature-row.reverse > div:first-child { order: 2; }
@media (max-width: 860px) {
  .feature-row { grid-template-columns: 1fr; gap: 36px; padding: 56px 0; }
  .feature-row.reverse > div:first-child { order: initial; }
}
.feature-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--blue);
  letter-spacing: 0.15em;
  margin-bottom: 18px;
  font-weight: 500;
}
.feature-row h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  margin-bottom: 18px;
  letter-spacing: -0.025em;
}
.feature-row > div p.intro {
  color: var(--gray-700);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 24px;
}
.feature-list { display: grid; gap: 12px; margin-bottom: 28px; }
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--gray-700);
}
.feature-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.material-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.material-tag {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  color: var(--gray-700);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
}
.feature-image-wrap {
  aspect-ratio: 4 / 3;
  position: relative;
}

/* ── Carousel ──────────────────────────────── */
.carousel {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #0a1520;
  box-shadow: var(--shadow-lg);
}
.carousel-track {
  position: absolute;
  inset: 0;
}
.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.7s ease, transform 1.2s ease;
  pointer-events: none;
}
.carousel-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.carousel-nav {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 31, 46, 0.55);
  backdrop-filter: blur(8px);
  color: var(--white);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 3;
  border: 1px solid rgba(255,255,255,0.18);
  transition: all 0.2s;
  opacity: 0;
  transform: translateY(-50%) scale(0.9);
}
.carousel:hover .carousel-nav { opacity: 1; transform: translateY(-50%) scale(1); }
.carousel-nav:hover { background: var(--blue); border-color: var(--blue); }
.carousel-nav.prev { left: 14px; }
.carousel-nav.prev svg { transform: rotate(180deg); }
.carousel-nav.next { right: 14px; }
.carousel-caption {
  position: absolute;
  left: 0; right: 0; bottom: 36px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--white);
  font-size: 13.5px;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  z-index: 2;
}
.carousel-caption .counter {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.1em;
  padding: 3px 8px;
  background: rgba(15, 31, 46, 0.55);
  backdrop-filter: blur(8px);
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.15);
}
.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}
.carousel-dot {
  width: 24px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: all 0.25s;
  padding: 0;
  border: none;
}
.carousel-dot:hover { background: rgba(255,255,255,0.6); }
.carousel-dot.active {
  background: var(--blue-bright);
  width: 32px;
}
/* progress veil at bottom for caption readability */
.carousel::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 96px;
  background: linear-gradient(180deg, transparent, rgba(15,31,46,0.7));
  pointer-events: none;
  z-index: 1;
}

/* ── Contact page ───────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.contact-form h2 { font-size: 22px; margin-bottom: 6px; }
.contact-form .form-sub { color: var(--gray-500); margin-bottom: 28px; font-size: 14.5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; margin-bottom: 18px; }
.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.field label .req { color: var(--blue); }
.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  background: var(--white);
  color: var(--gray-900);
  outline: none;
  transition: all 0.2s;
}
.field textarea { min-height: 120px; resize: vertical; font-family: inherit; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.field.error input,
.field.error select,
.field.error textarea {
  border-color: #ef4444;
}
.field.error .err-msg {
  color: #ef4444;
  font-size: 12.5px;
  margin-top: 6px;
  font-weight: 500;
}
.field.valid input,
.field.valid select,
.field.valid textarea {
  border-color: #10b981;
}
.form-foot { margin-top: 8px; }
.form-foot .btn { width: 100%; padding: 16px; }

.contact-info { display: flex; flex-direction: column; gap: 16px; }
.info-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-md);
  padding: 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: all 0.2s;
}
.info-card:hover { border-color: var(--blue); box-shadow: var(--shadow-md); }
.info-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--white);
}
.info-icon.wa { background: #25d366; }
.info-icon.mail { background: var(--blue); }
.info-icon.loc { background: var(--navy); }
.info-card .label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.info-card .value {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.45;
}
.info-card .value a:hover { color: var(--blue); }
.info-card .sub { font-size: 13.5px; color: var(--gray-500); margin-top: 4px; }

.map-wrap {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  aspect-ratio: 16 / 11;
  position: relative;
}

.response-strip {
  background: var(--navy);
  color: var(--white);
  padding: 36px 0;
  text-align: center;
}
.response-strip .inner {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 17px;
  font-weight: 500;
}
.response-strip .pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  position: relative;
}
.response-strip .pulse::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: #10b981;
  opacity: 0.4;
  animation: pulse 1.5s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* ── Footer ─────────────────────────────────── */
.footer {
  background: var(--navy-deep);
  color: var(--white);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 60px;
  padding-bottom: 56px;
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}
.footer-brand .logo-img { height: 56px; }
.footer-brand .logo-title { font-size: 19px; }
.footer-desc {
  color: rgba(255,255,255,0.6);
  font-size: 14.5px;
  line-height: 1.65;
  margin-top: 20px;
  max-width: 42ch;
}
.socials {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.social {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.8);
  transition: all 0.2s;
  cursor: pointer;
}
.social:hover { background: var(--blue); color: var(--white); transform: translateY(-2px); }

.footer-col h4 {
  color: var(--white);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 22px;
  font-weight: 600;
}
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a {
  color: rgba(255,255,255,0.65);
  font-size: 14.5px;
  cursor: pointer;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-links a:hover { color: var(--blue-bright); }
.footer-links a::before {
  content: '→';
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.2s;
}
.footer-links a:hover::before { opacity: 1; transform: translateX(0); }

.footer-contact { display: flex; flex-direction: column; gap: 16px; }
.fc-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: rgba(255,255,255,0.78);
  font-size: 14px;
  line-height: 1.5;
}
.fc-item svg { flex-shrink: 0; color: var(--blue-bright); margin-top: 2px; }
.fc-item a:hover { color: var(--blue-bright); }
.fc-item .muted { color: rgba(255,255,255,0.5); font-size: 12.5px; margin-top: 2px; }

.footer-bar {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
}
.footer-bar .made {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ── Fade-in on scroll ──────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── Toast ──────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--navy);
  color: var(--white);
  padding: 16px 22px;
  border-radius: 10px;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1000;
  font-size: 14.5px;
  font-weight: 500;
  border-left: 4px solid #10b981;
  animation: toast-in 0.3s ease;
}
@keyframes toast-in {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ── WhatsApp floating button ─────────────── */
.fab-wa {
  position: fixed;
  bottom: 32px;
  left: 32px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 99;
  cursor: pointer;
  transition: transform 0.2s;
}
.fab-wa:hover { transform: scale(1.08); }

/* ── Small utility ──────────────────────────── */
.center-text { text-align: center; }

/* ─────────────────────────────────────────────
   MOBILE pass — tighter, more organized layout
   ───────────────────────────────────────────── */
@media (max-width: 760px) {
  .container { padding: 0 20px; }

  /* Sections breathe less on phone */
  section.section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }
  .section-title { font-size: 28px; }
  .section-sub { font-size: 15px; }

  /* Navbar */
  .nav-inner { padding: 14px 0; }
  .logo-img { height: 38px; }
  .navbar.scrolled .logo-img { height: 34px; }
  .mobile-menu .nav-link { padding: 14px 20px; font-size: 15px; }
  .mobile-cta-wrap { padding: 12px 20px 0; }

  /* Hero */
  .hero { min-height: auto; padding-bottom: 0; }
  .hero-content { padding: 80px 0 56px; }
  .hero-eyebrow { font-size: 11.5px; margin-bottom: 18px; }
  .hero-eyebrow::before { width: 22px; }
  .hero h1 { font-size: 38px; margin-bottom: 20px; line-height: 1.08; }
  .hero p.lead { font-size: 15.5px; margin-bottom: 28px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-actions .btn { width: 100%; }
  .metrics-grid { padding: 24px 0; row-gap: 28px; }
  .metric { padding: 0 16px; }
  .metric-value { font-size: 26px; }
  .metric-label { font-size: 11.5px; }

  /* Service cards */
  .service-card { padding: 28px 24px; }
  .service-card h3 { font-size: 18px; }
  .service-card p { font-size: 14px; }
  .service-icon { width: 48px; height: 48px; margin-bottom: 18px; }

  /* About preview / About page */
  .about-preview { gap: 40px; }
  .about-since { font-size: 88px; }
  .about-since-label { font-size: 12px; margin-bottom: 24px; letter-spacing: 0.15em; }
  .about-text p { font-size: 15.5px; }
  .about-image-wrap .frame-deco { inset: 16px -12px -12px 12px; }

  /* MVP cards */
  .mvp-section { padding: 64px 0; }
  .mvp-card { padding: 32px 26px; }
  .mvp-card h3 { font-size: 21px; }
  .mvp-card p { font-size: 14.5px; }
  .mvp-icon { width: 52px; height: 52px; margin-bottom: 22px; }

  /* Values */
  .values-strip { padding: 40px 0; }
  .values-grid { gap: 12px; }
  .value-badge { padding: 16px 18px; gap: 12px; }
  .value-icon { width: 38px; height: 38px; }
  .value-name { font-size: 14px; }
  .value-desc { font-size: 11.5px; }

  /* Page header */
  .page-header { padding: 56px 0 44px; }
  .page-header h1 { font-size: 32px; }
  .page-header p { font-size: 15.5px; }
  .breadcrumb { font-size: 12px; margin-bottom: 12px; }

  /* Servicios zigzag */
  .feature-row { padding: 44px 0; gap: 28px; }
  .feature-row h2 { font-size: 26px; }
  .feature-row > div p.intro { font-size: 14.5px; }
  .feature-num { font-size: 11.5px; margin-bottom: 12px; }
  .feature-item { font-size: 14px; }
  .material-tag { font-size: 11.5px; padding: 5px 10px; }

  /* Carousel */
  .carousel-caption { font-size: 12px; padding: 0 16px; bottom: 32px; gap: 10px; }
  .carousel-caption .counter { font-size: 10px; }
  .carousel-nav { width: 38px; height: 38px; opacity: 1; transform: translateY(-50%); }
  .carousel-nav.prev { left: 10px; }
  .carousel-nav.next { right: 10px; }
  .carousel-dot { width: 18px; height: 3px; }
  .carousel-dot.active { width: 26px; }

  /* Contact */
  .contact-grid { gap: 32px; }
  .contact-form { padding: 28px 22px; }
  .contact-form h2 { font-size: 19px; }
  .field input, .field select, .field textarea { font-size: 14.5px; padding: 11px 12px; }
  .field label { font-size: 12.5px; }
  .info-card { padding: 18px; gap: 14px; }
  .info-icon { width: 40px; height: 40px; }
  .info-card .value { font-size: 14px; }
  .info-card .sub { font-size: 12.5px; }
  .response-strip { padding: 28px 0; }
  .response-strip .inner { font-size: 14.5px; flex-wrap: wrap; justify-content: center; gap: 10px; }

  /* Footer */
  .footer { padding: 56px 0 0; }
  .footer-grid { gap: 36px; padding-bottom: 40px; }
  .footer-brand .logo-img { height: 46px; }
  .footer-desc { font-size: 13.5px; margin-top: 16px; }
  .footer-col h4 { margin-bottom: 16px; }
  .footer-links a, .fc-item { font-size: 13.5px; }
  .footer-bar { font-size: 12px; padding: 18px 0; }

  /* Buttons */
  .btn { padding: 12px 20px; font-size: 14px; }
  .btn-lg { padding: 14px 22px; font-size: 15px; }

  /* Floating WhatsApp smaller on mobile so it doesn't cover content */
  .fab-wa { width: 48px; height: 48px; bottom: 20px; left: 20px; }

  /* Toast — full width on phone */
  .toast {
    left: 16px; right: 16px; bottom: 16px;
    font-size: 13.5px;
  }
}

@media (max-width: 420px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 32px; }
  .section-title { font-size: 24px; }
  .about-since { font-size: 72px; }
  .page-header h1 { font-size: 28px; }
  .feature-row h2 { font-size: 22px; }
  .metric-value { font-size: 22px; }
}

