/* ============================================
   ARKI SEGURIDAD SAS - Corporate Stylesheet
   ============================================
   Primary: #0A1628
   Secondary: #b21b1b
   Accent: #b21b1b
   Gray: #9da3aa
   Light: #eaeaea
   Background: #FFFFFF
   ============================================ */

/* ----- CSS Custom Properties ----- */
:root {
  --primary: #0A1628;
  --primary-light: #162040;
  --secondary: #b21b1b;
  --secondary-light: #c92a2a;
  --accent: #b21b1b;
  --accent-hover: #9e1717;
  --accent-blue: #1768c5;
  --text: #F8FAFC;
  --text-dark: #1a1a2e;
  --text-muted: #9da3aa;
  --bg: #FFFFFF;
  --bg-alt: #eaeaea;
  --bg-dark: #0A1628;
  --gradient-primary: linear-gradient(135deg, #0A1628 0%, #162040 100%);
  --gradient-accent: linear-gradient(135deg, #1768c5 0%, #1457a8 100%);
  --gradient-hero: linear-gradient(135deg, rgba(10,22,40,0.8) 0%, rgba(22,32,64,0.7) 100%);
  --gradient-red: linear-gradient(135deg, #b21b1b 0%, #8a1515 100%);
  --gradient-dark-red: linear-gradient(135deg, #1a0a0a 0%, #2a1010 50%, #0A1628 100%);
  --gradient-warm: linear-gradient(135deg, #0A1628 0%, #1a1a2e 50%, #2a1a1a 100%);
  --gradient-card: linear-gradient(145deg, #ffffff 0%, #f5f5f5 100%);
  --gradient-card-hover: linear-gradient(145deg, #ffffff 0%, #f5f7fa 100%);
  --noise: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.12'/%3E%3C/svg%3E");
  --noise-light: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  --texture-dark: url('../sources/Metal Textures 1.jpg');
  --texture-light: url('../sources/Metal Textures 8.jpg');
  --texture-subtle: url('../sources/Metal Textures 5.jpg');
  --texture-warm: url('../sources/Metal Textures 3.jpg');
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
  --shadow-xl: 0 16px 60px rgba(0,0,0,0.2);
  --shadow-glow-red: 0 0 30px rgba(178,27,27,0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  color: var(--text-dark);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul { list-style: none; }

.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .container {
    width: 90%;
    max-width: 1200px;
  }
}

@media (min-width: 1024px) {
  .container {
    width: 80%;
    max-width: 1400px;
  }
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.section-tag::before {
  content: '';
  width: 30px;
  height: 2px;
  background: var(--accent);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.8;
}

.text-center {
  text-align: center;
}

.text-center .section-subtitle {
  margin: 0 auto;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.3px;
}

.btn-primary {
  background:
    linear-gradient(180deg,
      rgba(255,255,255,0.12) 0%, transparent 15%,
      transparent 40%, rgba(0,0,0,0.08) 50%,
      transparent 65%, rgba(255,255,255,0.04) 100%),
    linear-gradient(135deg, #8a1515 0%, #c41e1e 20%, #e63946 35%, #b21b1b 50%, #e63946 65%, #c41e1e 80%, #8a1515 100%);
  background-size: 100% 100%, 300% 100%;
  color: var(--text);
  box-shadow:
    0 4px 15px rgba(178,27,27,0.35),
    inset 0 1px 0 rgba(255,255,255,0.25),
    inset 0 -1px 0 rgba(0,0,0,0.2);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 80%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.2) 40%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0.2) 60%, transparent 100%);
  transform: skewX(-20deg);
  transition: left 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-primary:hover::after {
  left: 150%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background-position: 100% 100%, 100% 0;
  box-shadow:
    0 8px 30px rgba(178,27,27,0.5),
    inset 0 1px 0 rgba(255,255,255,0.3),
    inset 0 -1px 0 rgba(0,0,0,0.25);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover {
  border-color: var(--accent-blue);
  background: rgba(23, 104, 197, 0.1);
}

.btn-outline {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
}

.btn-outline::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 80%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(178,27,27,0.12) 40%, rgba(178,27,27,0.2) 50%, rgba(178,27,27,0.12) 60%, transparent 100%);
  transform: skewX(-20deg);
  transition: left 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-outline:hover::after {
  left: 150%;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.4);
  color: var(--text);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.85rem;
}

.btn-whatsapp {
  background: #25D366;
  color: white;
}

.btn-whatsapp:hover {
  background: #1da851;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp i {
  font-size: 1.1rem;
}


/* ============================================
   PRELOADER
   ============================================ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-content {
  text-align: center;
}

.preloader-logo {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--secondary);
  margin-bottom: 24px;
  animation: preloaderPulse 1.2s ease-in-out infinite;
}

.preloader-bar {
  width: 160px;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  overflow: hidden;
  margin: 0 auto;
}

.preloader-bar span {
  display: block;
  height: 100%;
  width: 40%;
  background: var(--secondary);
  border-radius: 4px;
  animation: preloaderSlide 1.2s ease-in-out infinite;
}

@keyframes preloaderPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

@keyframes preloaderSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* ============================================
   HEADER / NAVBAR
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  background: rgba(10,22,40,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--texture-dark) center/cover no-repeat;
  opacity: 0.2;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(178,27,27,0.3), rgba(23,104,197,0.3), transparent);
}

.header.scrolled {
  background: rgba(10, 22, 40, 0.98);
  padding: 10px 0;
  box-shadow: 0 2px 30px rgba(0,0,0,0.3);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 800;
  font-size: 1.4rem;
  z-index: 1001;
  flex-shrink: 0;
}

.logo-img {
  height: 52px;
  width: auto;
  display: block;
  max-width: 100%;
}

@media (max-width: 768px) {
  .logo-img {
    height: 40px;
  }
}

.logo-icon {
  display: none;
}

.logo span {
  display: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: rgba(248, 250, 252, 0.8);
  font-size: 0.88rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 24px;
  font-size: 0.85rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SECTION — Editorial layout
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -50%;
  background:
    var(--gradient-hero),
    url('../sources/021_MetalWaves.jpg') center/cover no-repeat;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(10,22,40,0.2) 0%, rgba(10,22,40,0.7) 60%, rgba(10,22,40,0.92) 100%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  padding-top: 80px;
  width: 100%;
}

/* ----- HERO CENTERED LAYOUT ----- */
.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: center;
  min-height: 100vh;
  padding: 120px 0 80px;
  text-align: center;
}

/* --- Hero Content --- */
.hero-body {
  max-width: 680px;
  margin: 0 auto;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(248, 250, 252, 0.5);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 28px;
  opacity: 0;
  animation: heroFadeIn 0.6s ease 0.1s forwards;
}

.hero-label::before {
  content: '';
  width: 30px;
  height: 2px;
  background: var(--secondary);
  flex-shrink: 0;
}

.hero-headline {
  margin-bottom: 24px;
}

.hero-headline-line {
  display: block;
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 900;
  color: var(--text);
  line-height: 1.08;
  letter-spacing: -2px;
  opacity: 0;
  animation: heroFadeUp 0.8s ease forwards;
}

.hero-headline-line:nth-child(2) {
  animation-delay: 0.15s;
}

.hero-headline-em {
  color: transparent;
  -webkit-text-fill-color: transparent;
  background: linear-gradient(135deg, #b21b1b, #e63946, #b21b1b);
  background-clip: text;
  -webkit-background-clip: text;
  background-size: 200% 200%;
  animation: heroFadeUp 0.8s ease 0.15s forwards, gradientShift 4s ease-in-out infinite 0.8s;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-headline-rule {
  display: block;
  width: 60px;
  height: 3px;
  background: var(--secondary);
  margin: 20px auto 0;
  opacity: 0;
  animation: heroFadeIn 0.6s ease 0.4s forwards;
}

.hero-description {
  font-size: 1.05rem;
  color: rgba(248,248,252,0.65);
  line-height: 1.75;
  margin: 0 auto 36px;
  max-width: 600px;
  opacity: 0;
  animation: heroFadeUp 0.8s ease 0.3s forwards;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: heroFadeUp 0.8s ease 0.45s forwards;
}

.hero-actions .btn-primary {
  box-shadow: 0 8px 30px rgba(178,27,27,0.3);
}

.hero-actions .btn-outline {
  border-color: rgba(255,255,255,0.25);
  color: var(--text);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-actions .btn-outline:hover {
  border-color: rgba(255,255,255,0.4);
  color: var(--text);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.hero-actions .btn-outline:hover {
  border-color: var(--secondary);
  color: var(--secondary);
}

/* --- Hero Stats inline in hero --- */
.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 40px;
  opacity: 0;
  animation: heroFadeUp 0.8s ease 0.6s forwards;
}

.hero-stat-item {
  text-align: center;
  padding: 18px 12px;
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
}

.hero-stat-item strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.2;
}

.hero-stat-item span {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- Scroll indicator --- */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  opacity: 0.4;
  animation: heroFadeIn 1s ease 1s forwards;
}

.scroll-indicator .mouse {
  width: 22px;
  height: 34px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator .mouse::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  background: rgba(255,255,255,0.5);
  border-radius: 2px;
  animation: scrollWheel 1.8s ease-in-out infinite;
}

@keyframes scrollWheel {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 0.3; }
}

.scroll-indicator span {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.3);
}

/* Metrics bar */
.hero-metrics {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-metric {
  text-align: left;
}

.hero-metric-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
}

.hero-metric-label {
  display: block;
  font-size: 0.75rem;
  color: rgba(248, 250, 252, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}

.hero-metric-dot {
  display: block;
  width: 4px;
  height: 4px;
  background: rgba(248, 250, 252, 0.2);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Decorative shapes - hidden on centered layout */
.hero-deco {
  display: none;
}

.hero-deco-shape {
  position: absolute;
  width: 180px;
  height: 180px;
  border: 2px solid rgba(107, 26, 26, 0.2);
  border-radius: 50%;
  top: 10px;
  right: 0;
}

.hero-deco-shape-2 {
  width: 130px;
  height: 130px;
  top: 35px;
  right: 25px;
  border-color: rgba(23, 104, 197, 0.12);
  border-style: dashed;
}

/* Legacy stat classes (used in trayectoria, etc.) */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(248, 250, 252, 0.6);
  margin-top: 4px;
  font-weight: 400;
}

/* Responsive hero */
@media (max-width: 968px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    min-height: auto;
    padding: 100px 0 60px;
    text-align: center;
  }
  .hero-body { max-width: 100%; }
  .hero-description { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats-row { grid-template-columns: repeat(3, 1fr); }
  .hero-label { justify-content: center; }
  .hero-label::before { display: none; }
  .hero-headline-rule { margin-left: auto; margin-right: auto; }
  .hero-accent-bar {
    display: none;
  }
  .hero-deco {
    display: none;
  }
  .hero-metrics {
    gap: 14px;
  }
  .hero-metric-number {
    font-size: 1.3rem;
  }
}

/* Hero Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(248, 250, 252, 0.3);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

.scroll-indicator .mouse {
  width: 22px;
  height: 34px;
  border: 2px solid rgba(248, 250, 252, 0.2);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator .mouse::after {
  content: '';
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 7px;
  background: var(--accent);
  border-radius: 2px;
  animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(10px); }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

@media (max-width: 968px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    min-height: auto;
    padding: 60px 0 40px;
  }
  .hero-panel-card {
    max-width: 100%;
    padding: 40px 32px;
  }
  .hero-panel-stats {
    gap: 20px;
  }
}

/* ============================================
   ABOUT SECTION
   ============================================ */
#about {
  position: relative;
}

#about::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(180,180,190,0.07) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: center;
  justify-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  height: 500px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(178,27,27,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.about-image-placeholder {
  color: var(--text);
  text-align: center;
  padding: 40px;
}

.about-image-placeholder .shield-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: rgba(23, 104, 197, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.about-image-placeholder p {
  color: rgba(248, 250, 252, 0.6);
  font-size: 0.9rem;
}

.about-text {
  text-align: center;
}

.about-text .section-tag {
  justify-content: center;
}

.about-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 20px;
}

.about-text p {
  color: rgba(248,250,252,0.65);
  line-height: 1.8;
  margin-bottom: 24px;
}

.about-cards,
.mission-card,
.mission-card::before,
.mission-card:hover,
.mission-card.vision,
.mission-card h3,
.mission-card h3 i,
.mission-card.vision h3 i,
.mission-card p {
  all: unset;
}

/* About 3-column cards (Misión, Visión, Valores) */
.about-cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.about-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  position: relative;
}

.about-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(178,27,27,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.about-card:hover {
  transform: translateY(-8px);
  border-color: rgba(178,27,27,0.3);
  box-shadow: 0 20px 50px rgba(178,27,27,0.25), 0 0 40px rgba(178,27,27,0.1);
  background: rgba(255,255,255,0.09);
}

.about-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.about-card-header svg {
  flex-shrink: 0;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.3));
}

.about-card-body {
  padding: 12px 16px 16px;
}

.about-card-body p {
  font-size: 0.92rem;
  color: rgba(248,250,252,0.65);
  line-height: 1.7;
  margin: 0;
}

.values-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.values-list li {
  padding: 6px 0;
  font-size: 0.9rem;
  color: rgba(248,250,252,0.6);
  line-height: 1.6;
}

.values-list li strong {
  color: var(--text);
}

/* Sections with bg-alt inline style get texture */
section[style*="bg-alt"] {
  position: relative;
}

section[style*="bg-alt"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--texture-dark) center/cover no-repeat;
  opacity: 0.35;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
  background: linear-gradient(135deg, #0d1b2a 0%, #0A1628 40%, #121e3a 100%);
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--texture-dark) center/cover no-repeat;
  opacity: 0.35;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.services::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary), var(--accent-blue), var(--secondary));
  opacity: 0.7;
  z-index: 1;
}

.services .section-tag {
  color: var(--secondary);
}

.services .section-tag::before {
  background: var(--secondary);
}

.services .section-title {
  color: var(--text);
}

.services .section-subtitle {
  color: rgba(248,250,252,0.55);
}



/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 50px;
  position: relative;
  z-index: 1;
}

.svc-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 28px 24px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.svc-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(178,27,27,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.svc-card:hover::before {
  opacity: 1;
}

.svc-card:hover {
  transform: translateY(-8px);
  border-color: rgba(178,27,27,0.3);
  box-shadow: 0 20px 50px rgba(178,27,27,0.25), 0 0 40px rgba(178,27,27,0.1);
  background: rgba(255,255,255,0.09);
}

.svc-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.svc-card-header svg {
  color: var(--secondary);
  flex-shrink: 0;
}

.svc-card-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.svc-list li,
.service-list li {
  padding: 8px 0;
  font-size: 0.9rem;
  color: rgba(248,250,252,0.75);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.svc-list li::before,
.service-list li::before {
  content: '\25B8';
  color: var(--secondary);
  font-weight: 700;
  flex-shrink: 0;
}

.svc-list li,
.service-list li {
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-dark);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.svc-list li::before,
.service-list li::before {
  content: '▸';
  color: var(--secondary);
  font-weight: 700;
  flex-shrink: 0;
}

.svc-list,
.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.svc-list li,
.service-list li {
  padding: 8px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.svc-list li::before,
.service-list li::before {
  content: '▸';
  font-size: 0.9rem;
  color: var(--secondary);
  flex-shrink: 0;
  font-weight: 700;
}

/* ============================================
   CLIENTS / CAROUSEL
   ============================================ */
.clients {
  background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 50%, #f0f4f8 100%);
  position: relative;
}

.clients::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(180,180,190,0.07) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.clients .section-tag {
  color: var(--accent);
}

.clients .section-tag::before {
  background: var(--accent);
}

.clients .section-title {
  color: var(--primary);
}

.clients .section-subtitle {
  color: var(--text-muted);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  margin-top: 50px;
  align-items: center;
}

.client-logo {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, #ffffff 0%, #f5f5f5 100%);
  transition: var(--transition);
  filter: grayscale(100%);
  opacity: 0.5;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.client-logo img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.client-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  background: var(--bg);
  box-shadow: 0 8px 30px rgba(178,27,27,0.2), 0 0 40px rgba(178,27,27,0.08);
  transform: scale(1.05);
  border-color: rgba(178,27,27,0.15);
}

/* ============================================
   TIMELINE / TRAYECTORIA
   ============================================ */
.timeline {
  position: relative;
  padding: 60px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--secondary), var(--accent), var(--secondary));
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 60px;
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-item .timeline-content {
  width: calc(50% - 50px);
  background: var(--bg);
  padding: 0 0 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
  overflow: hidden;
}

.timeline-item .timeline-content:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.timeline-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
  margin-bottom: 20px;
}

.timeline-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.timeline-item .timeline-content:hover .timeline-img img {
  transform: scale(1.06);
}

.timeline-item .timeline-content .timeline-year,
.timeline-item .timeline-content h3,
.timeline-item .timeline-content .location,
.timeline-item .timeline-content p {
  padding-left: 28px;
  padding-right: 28px;
}

.timeline-item .timeline-content .timeline-year {
  margin-left: 28px;
}

.timeline-item .timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 50%;
  border: 4px solid var(--bg);
  box-shadow: 0 0 0 3px var(--accent);
  z-index: 2;
  top: 32px;
}

.timeline-year {
  display: inline-block;
  padding: 4px 16px;
  background: var(--secondary);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 50px;
  margin-bottom: 12px;
}

.timeline-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.timeline-content .location {
  font-size: 0.85rem;
  color: var(--secondary);
  font-weight: 500;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.timeline-content p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================
   PROJECTS / MASONRY GALLERY
   ============================================ */
.projects {
  background: linear-gradient(135deg, #0A1628 0%, #0d1b2a 50%, #162040 100%);
  position: relative;
}

.projects::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--texture-dark) center/cover no-repeat;
  opacity: 0.35;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.projects .section-tag {
  color: var(--secondary);
}

.projects .section-tag::before {
  background: var(--secondary);
}

.projects .section-title {
  color: var(--text);
}

.projects .section-subtitle {
  color: rgba(248,250,252,0.55);
}



.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 40px 0;
  justify-content: center;
}

.filter-btn {
  padding: 10px 24px;
  border: 2px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  border-radius: 50px;
  font-family: var(--font-primary);
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(248,250,252,0.5);
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

.filter-btn:hover {
  border-color: var(--secondary);
  color: var(--text);
  background: rgba(178,27,27,0.1);
}

.filter-btn.active {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--text);
  box-shadow: 0 4px 15px rgba(178,27,27,0.3);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gradient-red);
  border-color: var(--secondary);
  color: var(--text);
  box-shadow: 0 4px 15px rgba(178,27,27,0.3);
}

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

.masonry-item {
  break-inside: avoid;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  cursor: pointer;
  position: relative;
}

.masonry-item::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(178,27,27,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.masonry-item:hover {
  transform: translateY(-8px);
  border-color: rgba(178,27,27,0.3);
  box-shadow: 0 20px 50px rgba(178,27,27,0.25), 0 0 40px rgba(178,27,27,0.1);
  background: rgba(255,255,255,0.09);
}

.masonry-item.hidden {
  display: none;
}

.masonry-item.masonry-folded {
  display: none;
}

.masonry-img {
  width: 100%;
  height: 220px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(248, 250, 252, 0.3);
  font-size: 2.5rem;
  overflow: hidden;
}

.masonry-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.masonry-item:hover .masonry-img img {
  transform: scale(1.08);
}

.masonry-info {
  padding: 20px;
}

.masonry-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.masonry-info .location {
  font-size: 0.82rem;
  color: var(--secondary);
  font-weight: 700;
  margin-bottom: 0;
}

.masonry-info .contractor {
  font-size: 0.72rem;
  color: rgba(248,250,252,0.45);
  font-weight: 500;
  margin-top: 8px;
  letter-spacing: 0.02em;
}

.masonry-info p {
  font-size: 0.88rem;
  color: rgba(248,250,252,0.65);
  line-height: 1.6;
}

.masonry-info .year {
  font-size: 0.8rem;
  color: var(--secondary);
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

/* ============================================
   STORE / TIENDA
   ============================================ */
.store-header {
  background: var(--gradient-primary);
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.store-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--texture-dark) center/cover no-repeat;
  opacity: 0.35;
  mix-blend-mode: soft-light;
}

.store-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.store-header p {
  color: rgba(248, 250, 252, 0.7);
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.store-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 40px 0;
  justify-content: center;
}

.store-search {
  flex: 1;
  max-width: 400px;
  padding: 14px 20px;
  border: 2px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-sm);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.store-search:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(74, 14, 14, 0.1);
}

.store-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

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

.product-card {
  background: var(--bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.product-image {
  height: 200px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(248, 250, 252, 0.15);
  font-size: 3rem;
  position: relative;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  background: var(--accent);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50px;
}

.product-info {
  padding: 20px;
}

.product-info h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.product-info p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.product-info .product-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 12px;
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--bg);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg-alt);
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--primary);
  color: var(--text);
}

.modal h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.modal p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.modal-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.modal-detail-item {
  padding: 12px 16px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
}

.modal-detail-item strong {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 4px;
}

.modal-detail-item span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
}

/* ============================================
   MAINTENANCE / MANTENIMIENTO
   ============================================ */
.maint-hero {
  background: var(--gradient-primary);
  padding: 140px 0 80px;
  text-align: center;
}

.maint-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text);
  margin-bottom: 16px;
}

.maint-hero p {
  color: rgba(248, 250, 252, 0.7);
  max-width: 600px;
  margin: 0 auto;
}

/* Benefits section */
.benefits {
  background: linear-gradient(135deg, #0d1b2a 0%, #0A1628 50%, #121e3a 100%);
  position: relative;
}

.benefits::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../sources/Metal Textures 9.jpg') center/cover no-repeat;
  opacity: 0.35;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.benefits .section-tag {
  color: var(--secondary);
}

.benefits .section-tag::before {
  background: var(--secondary);
}

.benefits .section-title {
  color: var(--text);
}

.benefits .section-subtitle {
  color: rgba(248,250,252,0.55);
}

.maint-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 50px;
}

.maint-card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-md);
  padding: 36px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.maint-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 50px rgba(178,27,27,0.2), 0 0 30px rgba(178,27,27,0.08);
  border-color: rgba(178,27,27,0.25);
  background: rgba(255,255,255,0.08);
}

.maint-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: rgba(178,27,27,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--secondary);
  transition: var(--transition);
}

.maint-card:hover .maint-icon {
  background: var(--secondary);
  color: var(--text);
}

.maint-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.maint-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 50px;
}

.contact-info h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 24px;
}

.contact-info > p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text);
  background:
    linear-gradient(180deg,
      rgba(255,255,255,0.15) 0%, transparent 20%,
      transparent 45%, rgba(0,0,0,0.08) 55%,
      transparent 70%, rgba(255,255,255,0.05) 100%),
    linear-gradient(135deg, #8a1515 0%, #c41e1e 20%, #e63946 35%, #b21b1b 50%, #e63946 65%, #c41e1e 80%, #8a1515 100%);
  background-size: 100% 100%, 300% 100%;
  box-shadow:
    0 4px 12px rgba(178,27,27,0.25),
    inset 0 1px 0 rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
}

.contact-item-icon svg {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.3));
}

.contact-item h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}

.contact-item p,
.contact-item a {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.contact-item a:hover {
  color: var(--secondary);
}

/* Contact section halftone texture */
#contact {
  position: relative;
}

#contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(180,180,190,0.07) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

/* Contact Form */
.contact-form {
  background: var(--bg);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0,0,0,0.05);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-sm);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
  background: var(--bg-alt);
}

.form-input:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(74, 14, 14, 0.1);
  background: var(--bg);
}

textarea.form-input {
  min-height: 140px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: linear-gradient(135deg, #0A1628 0%, #0d1b2a 40%, #121e3a 100%);
  color: rgba(248, 250, 252, 0.7);
  padding: 80px 0 0;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--texture-dark) center/cover no-repeat;
  opacity: 0.35;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
  z-index: 1;
}

.footer-brand .logo {
  margin-bottom: 0;
}

.footer-brand .logo-img {
  height: 48px;
}

.footer-brand p {
  margin-top: 14px;
  line-height: 1.6;
  font-size: 0.88rem;
  color: rgba(248,250,252,0.5);
  max-width: 320px;
}

.footer h3 {
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer h3::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(178,27,27,0.3), transparent);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 0.88rem;
  color: rgba(248, 250, 252, 0.5);
  transition: all 0.3s;
  display: block;
  padding: 2px 0;
  line-height: 1.6;
}

.footer-links a:hover {
  color: var(--text);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.88rem;
  color: rgba(248,250,252,0.5);
  line-height: 1.6;
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(248,250,252,0.35);
  position: relative;
  z-index: 1;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(248, 250, 252, 0.6);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary);
  transform: translateY(-3px);
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.6rem;
  box-shadow:
    0 4px 20px rgba(37, 211, 102, 0.4),
    inset 0 1px 0 rgba(255,255,255,0.2);
  transition: var(--transition);
  animation: pulse 2s infinite;
  overflow: hidden;
  background:
    linear-gradient(180deg,
      rgba(255,255,255,0.12) 0%, transparent 15%,
      transparent 40%, rgba(0,0,0,0.06) 50%,
      transparent 65%, rgba(255,255,255,0.04) 100%),
    linear-gradient(135deg, #1da851 0%, #25D366 20%, #30e07a 35%, #25D366 50%, #30e07a 65%, #25D366 80%, #1da851 100%);
  background-size: 100% 100%, 300% 100%;
}

.whatsapp-float::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 80%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.2) 40%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0.2) 60%, transparent 100%);
  transform: skewX(-20deg);
  transition: left 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.whatsapp-float:hover::after {
  left: 150%;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow:
    0 8px 30px rgba(37, 211, 102, 0.5),
    inset 0 1px 0 rgba(255,255,255,0.25);
  color: white;
  background-position: 100% 100%, 100% 0;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* ============================================
   PAGE HEADER (Shared)
   ============================================ */
.page-header {
  background: var(--gradient-primary);
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--texture-dark) center/cover no-repeat;
  opacity: 0.35;
  mix-blend-mode: soft-light;
  z-index: 0;
}

.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(178,27,27,0.12) 0%, transparent 70%);
  z-index: 0;
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.page-header p {
  color: rgba(248, 250, 252, 0.7);
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  font-size: 1.05rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .masonry { grid-template-columns: repeat(2, 1fr); }
  .store-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991px) {
  .nav-toggle { display: flex; }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--primary);
    flex-direction: column;
    padding: 100px 40px 40px;
    gap: 24px;
    transition: var(--transition);
    box-shadow: -10px 0 30px rgba(0,0,0,0.3);
    align-items: flex-start;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-link {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-cards-3 { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
  .masonry { grid-template-columns: 1fr; }
  .store-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .maint-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .timeline::before { left: 20px; }
  .timeline-item,
  .timeline-item:nth-child(odd) {
    flex-direction: row;
    padding-left: 50px;
  }
  .timeline-item .timeline-content { width: 100%; }
  .timeline-item .timeline-dot { left: 20px; }
  .modal-details { grid-template-columns: 1fr; }
  .about-image { height: 300px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.2rem; }
  .section { padding: 60px 0; }
  .store-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
  .filter-buttons { flex-direction: column; align-items: center; }
  .store-controls { flex-direction: column; align-items: center; }
  .store-search { max-width: 100%; }
}

/* ============================================
   SERVICE SUBNAV (servicios.html)
   ============================================ */
.svc-subnav {
  position: sticky;
  top: 70px;
  z-index: 50;
  background: var(--primary);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

.svc-subnav::-webkit-scrollbar {
  height: 0;
}

.svc-subnav-inner {
  display: flex;
  gap: 4px;
  padding: 8px 24px;
  min-width: max-content;
  width: max-content;
}

@media (min-width: 1024px) {
  .svc-subnav-inner {
    padding: 8px calc((100vw - 80%) / 2);
    max-width: 1400px;
    margin: 0 auto;
    width: 80%;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .svc-subnav-inner {
    padding: 8px 5%;
  }
}

.svc-subnav-link {
  padding: 10px 20px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(248,250,252,0.55);
  border-radius: 8px;
  white-space: nowrap;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.svc-subnav-link:hover {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

.svc-subnav-link.active {
  color: var(--text);
  background: var(--secondary);
}

/* ============================================
   SERVICE DETAIL (servicios.html)
   ============================================ */
.svc-section {
  scroll-margin-top: 130px;
}

.svc-detail-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.svc-detail-content .section-tag {
  margin-bottom: 12px;
}

.svc-detail-content .service-list {
  margin-top: 20px;
}

.svc-detail-content p {
  max-width: 720px;
}

.svc-alt {
  background: var(--bg-alt);
  position: relative;
}

.svc-alt::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--texture-dark) center/cover no-repeat;
  opacity: 0.35;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

/* Service Visual Card (replaces image gallery) */
.svc-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.svc-visual-main {
  height: 300px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.svc-visual-main svg {
  width: 72px;
  height: 72px;
  color: #fff;
  opacity: 0.95;
  position: relative;
  z-index: 1;
}

.svc-visual-main h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  position: relative;
  z-index: 1;
  text-align: center;
}

.svc-visual-main::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.svc-visual-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.svc-visual-thumb {
  height: 100px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
  padding: 12px;
  line-height: 1.3;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
  cursor: default;
}

.svc-visual-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.svc-visual-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.svc-visual-thumb:hover::before {
  opacity: 1;
}

.svc-visual-thumb:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* Service gradient themes */
.svc-theme-puertas {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}
.svc-theme-puertas .svc-visual-thumb {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.svc-theme-carpinteria {
  background: linear-gradient(135deg, #3e1a1a 0%, #5c2a2a 50%, #7a3a3a 100%);
}
.svc-theme-carpinteria .svc-visual-thumb {
  background: linear-gradient(135deg, #3e1a1a 0%, #5c2a2a 100%);
}

.svc-theme-seguridad {
  background: linear-gradient(135deg, #0d1b2a 0%, #1b2838 50%, #1b3a5c 100%);
}
.svc-theme-seguridad .svc-visual-thumb {
  background: linear-gradient(135deg, #0d1b2a 0%, #1b2838 100%);
}

.svc-theme-cerramientos {
  background: linear-gradient(135deg, #1e3a2a 0%, #2d4a3a 50%, #3a5c4a 100%);
}
.svc-theme-cerramientos .svc-visual-thumb {
  background: linear-gradient(135deg, #1e3a2a 0%, #2d4a3a 100%);
}

.svc-theme-automatizacion {
  background: linear-gradient(135deg, #2a1e3a 0%, #3a2d4a 50%, #4a3a5c 100%);
}
.svc-theme-automatizacion .svc-visual-thumb {
  background: linear-gradient(135deg, #2a1e3a 0%, #3a2d4a 100%);
}

.svc-theme-cajeros {
  background: linear-gradient(135deg, #3a2a1e 0%, #4a3a2d 50%, #5c4a3a 100%);
}
.svc-theme-cajeros .svc-visual-thumb {
  background: linear-gradient(135deg, #3a2a1e 0%, #4a3a2d 100%);
}

@media (max-width: 768px) {
  .svc-subnav {
    top: 60px;
  }
  .svc-section {
    scroll-margin-top: 110px;
  }
  .svc-detail-grid {
    gap: 24px;
  }
  .svc-visual-main {
    height: 220px;
  }
  .svc-visual-main svg {
    width: 56px;
    height: 56px;
  }
  .svc-visual-thumbs {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .svc-visual-thumb {
    height: 72px;
    font-size: 0.75rem;
  }
}

/* ============================================
   UTILITY
   ============================================ */
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }

/* SVG icon font fallback */
.icon-shield::before { content: '🛡'; }
.icon-building::before { content: '🏢'; }
.icon-door::before { content: '🚪'; }
.icon-cctv::before { content: '📹'; }



@keyframes heroFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Parallax effect on hero */
.hero {
  overflow: hidden;
}

.hero-bg {
  will-change: transform;
}
