:root {
  --ink: #0b1523; /* Pizarra oscuro profundo */
  --ink-2: #142132; /* Gris industrial oscuro */
  --steel: #475569; /* Slate 600 */
  --muted: #64748b; /* Slate 500 */
  --line: rgba(20, 33, 50, 0.08); /* Bordes suaves */
  --line-dark: rgba(255, 255, 255, 0.08); /* Bordes oscuros */
  --soft: #f8fafc; /* Fondo suave */
  --surface: #ffffff; /* Superficie principal */
  --accent: #c5a85c; /* Bronce/Dorado metálico */
  --accent-2: #e2c575; /* Dorado claro */
  --accent-hover: #b09146; /* Dorado oscuro */
  --danger: #ef4444; /* Rojo suave */
  --shadow: 0 20px 40px rgba(11, 21, 35, 0.1);
  --shadow-soft: 0 10px 30px rgba(11, 21, 35, 0.04);
  --shadow-glow: 0 0 30px rgba(197, 168, 92, 0.2);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --container: 1200px;
}

/* Reset y base */
* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0;
}
html { 
  scroll-behavior: smooth; 
}
body {
  margin: 0;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { 
  max-width: 100%; 
  display: block; 
}
a { 
  color: inherit; 
  text-decoration: none; 
  transition: color 0.25s ease;
}
button, input, textarea { 
  font: inherit; 
  color: inherit;
}
button {
  cursor: pointer;
  border: none;
  background: none;
}

/* Layout Utilities */
.container { 
  width: min(100% - 40px, var(--container)); 
  margin-inline: auto; 
}
.section-pad { 
  padding: 100px 0; 
}
.section-soft { 
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%); 
}
.skip-link {
  position: absolute; 
  top: -100px; 
  left: 16px; 
  z-index: 999;
  background: var(--ink); 
  color: #fff; 
  padding: 10px 18px; 
  border-radius: var(--radius-sm);
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: top 0.25s ease;
}
.skip-link:focus { 
  top: 16px; 
}
.sr-only {
  position: absolute; 
  width: 1px; 
  height: 1px; 
  overflow: hidden; 
  clip: rect(0, 0, 0, 0); 
  white-space: nowrap;
}

/* Tipografía moderna */
h1, h2, h3, .btn, .eyebrow, .brand, .stat-card__number, .timeline span {
  font-family: 'Outfit', sans-serif;
}
h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  font-weight: 800;
}
h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  font-weight: 800;
}
h3 { 
  font-size: 1.25rem; 
  line-height: 1.3; 
  margin-bottom: 10px;
  font-weight: 700;
}

/* Header, Topbar, Navbar */
.topbar {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.topbar__inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: flex-end;
}
.topbar a { 
  color: #fff; 
}
.topbar a:hover { 
  color: var(--accent-2); 
}
.topbar__separator { 
  width: 1px; 
  height: 14px; 
  background: rgba(255, 255, 255, 0.15); 
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px);
  transition: all 0.3s ease;
}
.navbar.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-soft);
  border-bottom-color: rgba(20, 33, 50, 0.04);
}
.navbar__inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  transition: min-height 0.3s ease;
}
.navbar.is-scrolled .navbar__inner {
  min-height: 70px;
}
.brand {
  display: inline-flex;
  align-items: center;
  width: 180px;
  height: 52px;
  transition: transform 0.3s ease;
}
.brand:hover {
  transform: scale(1.02);
}
.brand img { 
  width: 100%; 
  max-height: 52px; 
  object-fit: contain; 
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 14px;
}
.nav-menu a { 
  position: relative; 
  padding: 6px 0;
}
.nav-menu a:not(.nav-menu__cta)::after {
  content: "";
  position: absolute;
  left: 0; 
  bottom: 0;
  width: 0; 
  height: 2px;
  background: var(--accent);
  transition: width 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-radius: 2px;
}
.nav-menu a:hover {
  color: var(--accent);
}
.nav-menu a:hover::after, .nav-menu a:focus-visible::after { 
  width: 100%; 
}
.nav-menu__cta {
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff !important;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  font-weight: 700;
}
.nav-menu__cta:hover {
  background: var(--accent);
  color: var(--ink) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}
.nav-toggle {
  display: none;
  width: 44px; 
  height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 11px;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 99px;
  transition: all 0.3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 720px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(197, 168, 92, 0.08) 0%, transparent 35%),
    radial-gradient(circle at 85% 80%, rgba(20, 33, 50, 0.04) 0%, transparent 45%),
    linear-gradient(135deg, #f8fafc 0%, #edf2f7 50%, #e2e8f0 100%);
  border-bottom: 1px solid var(--line);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(197, 168, 92, 0.03) 1px, transparent 1px), 
    linear-gradient(90deg, rgba(197, 168, 92, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 30% 30%, black 10%, transparent 80%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 60px;
  align-items: center;
}
.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 13px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 2px;
  background: var(--accent);
}
.hero__lead {
  max-width: 580px;
  font-size: 1.1rem;
  color: var(--steel);
  margin-bottom: 34px;
}
.hero__actions, .cta__actions { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 16px; 
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 30px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  letter-spacing: 0.02em;
}
.btn:hover { 
  transform: translateY(-2px); 
  box-shadow: var(--shadow); 
}
.btn:active {
  transform: translateY(0);
}
.btn--primary { 
  background: var(--accent); 
  color: var(--ink); 
  box-shadow: 0 4px 15px rgba(197, 168, 92, 0.15);
}
.btn--primary:hover {
  background: var(--accent-hover);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn--ghost { 
  border-color: rgba(20, 33, 50, 0.18); 
  background: rgba(255, 255, 255, 0.5); 
  color: var(--ink); 
}
.btn--ghost:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn--light { 
  background: #fff; 
  color: var(--ink); 
  box-shadow: var(--shadow-soft);
}
.btn--light:hover {
  background: var(--accent);
  color: var(--ink);
  box-shadow: var(--shadow-glow);
}
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}
.hero__trust span, .safety-list span {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid rgba(20, 33, 50, 0.06);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
}
.hero__visual {
  position: relative;
  min-height: 500px;
}
.hero-card {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: #fff;
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.hero-card img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  transition: transform 0.5s ease;
}
.hero-card:hover img {
  transform: scale(1.03);
}
.hero-card--main {
  position: absolute;
  inset: 30px 50px 40px 40px;
  z-index: 2;
}
.hero-card--main:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 30px 60px rgba(11, 21, 35, 0.18);
}
.hero-card--small {
  position: absolute;
  width: 44%;
  aspect-ratio: 4 / 3;
  border: 6px solid #fff;
  z-index: 3;
}
.hero-card--one { 
  right: 0; 
  top: 0; 
  transform: rotate(2deg);
}
.hero-card--one:hover {
  transform: rotate(0) scale(1.05) translateY(-5px);
  z-index: 4;
}
.hero-card--two { 
  left: 0; 
  bottom: 0; 
  transform: rotate(-2deg);
}
.hero-card--two:hover {
  transform: rotate(0) scale(1.05) translateY(5px);
  z-index: 4;
}

/* Quick Strip */
.quick-strip {
  background: var(--ink);
  color: #fff;
  padding: 34px 0;
  border-bottom: 2px solid var(--accent);
}
.quick-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.quick-strip article {
  padding: 8px 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}
.quick-strip article:first-child {
  border-left: none;
}
.quick-strip strong { 
  display: block; 
  margin-bottom: 6px; 
  color: var(--accent-2); 
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.quick-strip span { 
  color: rgba(255, 255, 255, 0.65); 
  font-size: 14px; 
}

/* Grid & Section base */
.split, .process__grid, .safety__grid, .contact__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  align-items: start;
}
.section-head p:not(.eyebrow) { 
  color: var(--steel); 
  font-size: 1.05rem;
  max-width: 720px; 
  line-height: 1.6;
}
.section-head--center { 
  text-align: center; 
  max-width: 820px; 
  margin-inline: auto; 
  margin-bottom: 50px; 
}
.section-head--center p:not(.eyebrow) { 
  margin-inline: auto; 
}
.split__content > p { 
  color: var(--steel); 
  font-size: 1.05rem; 
  margin-bottom: 20px;
}

/* Value Cards */
.value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 36px;
}
.value-card, .service-card, .contact-cards article, .stat-card {
  background: #fff;
  border: 1px solid rgba(20, 33, 50, 0.06);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.value-card { 
  padding: 30px; 
}
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(197, 168, 92, 0.2);
}
.value-card__icon {
  display: inline-flex;
  width: 40px; 
  height: 40px;
  align-items: center; 
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 18px;
}
.value-card p, .service-card p, .timeline p, .safety p, .cta p, .contact p, .footer p { 
  color: var(--steel); 
  font-size: 14px;
}

/* Stats Section (NEW) */
.stats {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--line);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-card {
  padding: 36px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: center;
}
.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(197, 168, 92, 0.25);
}
.stat-card:hover::after {
  transform: scaleX(1);
}
.stat-card__icon {
  color: var(--accent);
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}
.stat-card:hover .stat-card__icon {
  transform: scale(1.1) rotate(5deg);
}
.stat-card__number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.stat-card__label {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Service Grid & Cards */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.service-card:hover { 
  transform: translateY(-6px); 
  box-shadow: var(--shadow); 
  border-color: rgba(197, 168, 92, 0.25);
}
.service-card__media { 
  aspect-ratio: 16 / 11; 
  background: #dfe5e9; 
  overflow: hidden;
  position: relative;
}
.service-card__media img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  transition: transform 0.5s ease;
}
.service-card:hover .service-card__media img {
  transform: scale(1.05);
}
.service-card__body { 
  padding: 24px; 
  flex-grow: 1;
}
.service-card__body span {
  display: inline-block;
  color: var(--accent);
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.service-card h3 {
  color: var(--ink);
}

/* Timeline & Metodo */
.timeline {
  background: #fff;
  border: 1px solid rgba(20, 33, 50, 0.06);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-soft);
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 40px; bottom: 40px; left: 51px;
  width: 2px;
  background: linear-gradient(180deg, var(--ink) 0%, var(--accent) 100%);
  opacity: 0.15;
}
.timeline article {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 20px;
  padding: 24px;
  border-bottom: 1px solid rgba(20, 33, 50, 0.06);
  position: relative;
  z-index: 2;
  transition: transform 0.25s ease;
}
.timeline article:last-child { 
  border-bottom: 0; 
}
.timeline article:hover {
  transform: translateX(4px);
}
.timeline span {
  width: 42px; 
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--accent-2);
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(11, 21, 35, 0.25);
  transition: all 0.3s ease;
  z-index: 2;
}
.timeline article:hover span {
  background: var(--accent);
  color: var(--ink);
  box-shadow: var(--shadow-glow);
}
.timeline h3 {
  margin-bottom: 6px;
}
.timeline p { 
  margin-bottom: 0; 
}

/* Portfolio Section */
.portfolio-toolbar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}
.filter-btn {
  border: 1px solid rgba(20, 33, 50, 0.1);
  background: #fff;
  color: var(--ink-2);
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.02em;
}
.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(197, 168, 92, 0.03);
}
.filter-btn.is-active { 
  background: var(--ink); 
  color: #fff; 
  border-color: var(--ink); 
  box-shadow: var(--shadow-soft);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.portfolio-item {
  position: relative;
  border: 0;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #0b1523;
  cursor: zoom-in;
  aspect-ratio: 1 / 0.8;
  box-shadow: var(--shadow-soft);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  animation: p-fade-in 0.4s ease-out;
}
.portfolio-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--accent);
  border-radius: var(--radius-md);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
  pointer-events: none;
}
.portfolio-item:nth-child(7n+1) { 
  grid-row: span 2; 
  aspect-ratio: auto; 
}
.portfolio-item img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  transition: transform 0.5s ease, filter 0.5s ease; 
}
.portfolio-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.portfolio-item:hover img { 
  transform: scale(1.04); 
  filter: brightness(0.9);
}
.portfolio-item:hover::after {
  opacity: 1;
}
.portfolio-item__overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 20px 20px;
  background: linear-gradient(180deg, transparent, rgba(11, 21, 35, 0.88));
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-align: left;
  z-index: 2;
  transition: transform 0.3s ease;
}
.portfolio-item__overlay strong { 
  font-size: 12px; 
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: 'Inter', sans-serif;
}
.portfolio-item__overlay span { 
  font-size: 13px; 
  color: rgba(255, 255, 255, 0.95); 
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  line-height: 1.25;
}

@keyframes p-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.portfolio-actions {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}
#load-more-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
#load-more-btn.is-loading span:first-child {
  opacity: 0.7;
}
.spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(11, 21, 35, 0.2);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.btn--primary .spinner {
  border-color: rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
}
#load-more-btn.is-loading .spinner {
  display: inline-block;
}

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

/* Safety & Prevencion */
.safety {
  background: linear-gradient(135deg, var(--ink) 0%, #152538 100%);
  color: #fff;
  overflow: hidden;
  border-top: 3px solid var(--accent);
}
.safety__grid { 
  align-items: center; 
}
.safety__panel p { 
  color: rgba(255, 255, 255, 0.75); 
  font-size: 15px;
}
.safety .eyebrow { 
  color: var(--accent-2); 
}
.safety-list { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 12px; 
  margin-top: 28px; 
}
.safety-list span { 
  background: rgba(255, 255, 255, 0.05); 
  border-color: rgba(255, 255, 255, 0.12); 
  color: #fff; 
}
.safety__image {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.5s ease;
}
.safety__image:hover {
  transform: scale(1.01);
}
.safety__image img { 
  width: 100%; 
  aspect-ratio: 16 / 11; 
  object-fit: cover; 
}

/* CTA */
.cta {
  background: linear-gradient(90deg, rgba(197, 168, 92, 0.08) 0%, rgba(20, 33, 50, 0.03) 100%);
}
.cta__box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  background: var(--ink);
  color: #fff;
  padding: 48px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}
.cta__box::before {
  content: "";
  position: absolute;
  top: -150px; right: -150px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 168, 92, 0.1) 0%, transparent 70%);
  pointer-events: none;
}
.cta .eyebrow { 
  color: var(--accent-2); 
}
.cta h2 {
  margin-bottom: 12px;
}
.cta p { 
  color: rgba(255, 255, 255, 0.75); 
  max-width: 680px; 
  margin-bottom: 0; 
  font-size: 15px;
}

/* Contact Section */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.contact-cards article { 
  padding: 24px; 
}
.contact-cards article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(197, 168, 92, 0.25);
}
.contact-cards span {
  display: block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.contact-cards a { 
  font-weight: 700; 
  color: var(--ink-2); 
  overflow-wrap: anywhere; 
  font-size: 16px;
}
.contact-cards a:hover { 
  color: var(--accent); 
}

/* Footer */
.footer {
  background: #050b12;
  color: #fff;
  padding: 60px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr auto 1fr;
  gap: 40px;
  align-items: center;
}
.footer img { 
  width: 150px; 
  background: #fff; 
  border-radius: var(--radius-sm); 
  padding: 6px; 
  margin-bottom: 16px; 
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.footer p { 
  color: rgba(255, 255, 255, 0.55); 
  margin: 0; 
  font-size: 13px;
}
.footer__links { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 20px; 
  font-weight: 700; 
  font-size: 14px; 
}
.footer__links a:hover {
  color: var(--accent-2);
}
.footer__copy { 
  text-align: right; 
  color: rgba(255, 255, 255, 0.45) !important;
}

/* Lightbox Advanced (CINEMATIC) */
.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: 100%;
  max-height: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  overflow: hidden;
}
.lightbox::backdrop { 
  background: rgba(5, 10, 18, 0.94); 
  backdrop-filter: blur(12px); 
}
.lightbox__container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: 100vw;
  height: 100vh;
  position: relative;
  padding: 40px 30px;
}
.lightbox__close {
  position: absolute;
  top: 24px; 
  right: 24px;
  z-index: 100;
  width: 48px; 
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(11, 21, 35, 0.6);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}
.lightbox__close:hover {
  background: var(--danger);
  border-color: var(--danger);
  transform: rotate(90deg);
}

.lightbox__arrow {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(11, 21, 35, 0.5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 10;
}
.lightbox__arrow:hover {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
  transform: scale(1.08);
  box-shadow: var(--shadow-glow);
}
.lightbox__arrow:active {
  transform: scale(0.95);
}

.lightbox__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  position: relative;
}
.lightbox__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: calc(100% - 100px); /* Deja espacio para el pie de página */
  overflow: hidden;
}
.lightbox img { 
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; 
  border-radius: var(--radius-md);
  box-shadow: 0 30px 90px rgba(0,0,0,0.5);
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 1;
  transform: scale(1);
}
.lightbox img.is-changing {
  opacity: 0;
  transform: scale(0.97);
}

.lightbox__loader {
  display: none;
  position: absolute;
  width: 40px; height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.lightbox__media.is-loading .lightbox__loader {
  display: block;
}

.lightbox__footer {
  width: 100%;
  max-width: 900px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-inline: auto;
}
.lightbox__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lightbox__category {
  font-size: 12px;
  color: var(--accent-2);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.lightbox__title {
  font-size: 1.15rem;
  color: #fff;
  font-weight: 600;
  margin-bottom: 0;
  line-height: 1.3;
}
.lightbox__counter {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  white-space: nowrap;
}

/* Animations */
.reveal { 
  opacity: 0; 
  transform: translateY(22px); 
  transition: opacity 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1); 
}
.reveal.is-visible { 
  opacity: 1; 
  transform: translateY(0); 
}

/* Responsive Media Queries */
@media (max-width: 1100px) {
  .portfolio-grid { 
    grid-template-columns: repeat(3, 1fr); 
  }
}

@media (max-width: 980px) {
  .section-pad {
    padding: 80px 0;
  }
  .topbar__inner { 
    justify-content: center; 
    flex-wrap: wrap; 
    padding: 8px 0; 
  }
  .nav-toggle { 
    display: flex; 
  }
  .nav-menu {
    position: absolute;
    left: 20px; 
    right: 20px; 
    top: calc(100% + 12px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    z-index: 1000;
  }
  .nav-menu.is-open { 
    display: flex; 
    animation: p-fade-in 0.3s ease;
  }
  .nav-menu a { 
    padding: 14px 18px; 
    border-radius: var(--radius-sm);
  }
  .nav-menu a:not(.nav-menu__cta)::after {
    display: none;
  }
  .nav-menu a:hover {
    background: var(--soft);
  }
  .nav-menu__cta { 
    text-align: center; 
    margin-top: 10px; 
  }
  
  .hero__grid, .split, .process__grid, .safety__grid, .contact__grid, .cta__box, .footer__grid { 
    grid-template-columns: 1fr; 
    gap: 40px;
  }
  .hero { 
    min-height: auto; 
    padding: 140px 0 80px;
  }
  .hero__visual { 
    min-height: 420px; 
  }
  .quick-strip__grid { 
    grid-template-columns: repeat(2, 1fr); 
  }
  .service-grid { 
    grid-template-columns: repeat(2, 1fr); 
  }
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer__copy { 
    text-align: left; 
  }
  .lightbox__container {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    padding: 60px 20px 20px;
  }
  .lightbox__arrow {
    display: none; /* Se navega de forma táctil o con botones integrados inferiores */
  }
  .lightbox__media {
    height: calc(100% - 120px);
  }
}

@media (max-width: 680px) {
  .container { 
    width: min(100% - 32px, var(--container)); 
  }
  .section-pad { 
    padding: 60px 0; 
  }
  .navbar__inner { 
    min-height: 74px; 
  }
  .brand { 
    width: 140px; 
  }
  .topbar__separator { 
    display: none; 
  }
  .hero__actions, .cta__actions { 
    width: 100%; 
    flex-direction: column;
  }
  .btn { 
    width: 100%; 
  }
  .hero__visual { 
    min-height: 340px; 
  }
  .hero-card--main { 
    inset: 20px 20px 40px 20px; 
  }
  .hero-card--small { 
    width: 48%; 
    border-width: 4px; 
  }
  .quick-strip__grid, .service-grid, .value-grid, .contact-cards, .portfolio-grid, .stats__grid { 
    grid-template-columns: 1fr; 
  }
  .quick-strip article { 
    border-left: 0; 
    border-top: 1px solid rgba(255,255,255,0.1); 
    padding: 16px 0 8px; 
  }
  .quick-strip article:first-child { 
    border-top: 0; 
    padding-top: 0;
  }
  .portfolio-item, .portfolio-item:nth-child(7n+1) { 
    aspect-ratio: 4 / 3; 
    grid-row: auto; 
  }
  .cta__box { 
    padding: 30px 20px; 
  }
  .timeline::before {
    left: 31px;
  }
  .timeline article {
    grid-template-columns: 42px 1fr;
    gap: 12px;
    padding: 16px;
  }
  .timeline span {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
  .lightbox__footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .lightbox__counter {
    align-self: flex-end;
  }
}
