/* ==========================================================================
   GIP TECHNOLOGY - PREMIUM CSS DESIGN SYSTEM (LIQUID GLASS THEME)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES & SYSTEM TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Brand Color Palette */
  --color-primary: #F27A23;
  --color-primary-rgb: 242, 122, 35;
  --color-primary-dark: #D45F0F;
  --color-primary-light: #FF9B54;
  --color-secondary: #FF5E3A;
  
  /* Neutral Color Palette (Dark Theme) */
  --bg-deep: #07090E;
  --bg-main: #0B0F17;
  --bg-card: rgba(17, 22, 34, 0.72);
  --bg-card-hover: rgba(22, 28, 43, 0.85);
  --bg-header: rgba(11, 15, 23, 0.75);
  --bg-modal: rgba(7, 9, 14, 0.85);
  
  /* Text Colors */
  --text-white: #FFFFFF;
  --text-main: #E2E8F0;
  --text-muted: #94A3B8;
  --text-dark: #1E293B;

  /* Glassmorphism Styles */
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(242, 122, 35, 0.35);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  --glass-shadow-glow: 0 8px 32px 0 rgba(242, 122, 35, 0.18);
  --glass-blur: blur(16px) saturate(140%);

  /* Typography */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Layout */
  --container-max-width: 1200px;
  --announce-height: 36px;
  --header-height: 66px;
  --header-gap: 10px;
  --total-offset: calc(var(--announce-height) + var(--header-gap) + var(--header-height));
  --border-radius-lg: 20px;
  --border-radius-md: 12px;
  --border-radius-sm: 8px;
  
  /* Easing and Animation speed */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--total-offset);
  font-size: 16px;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-white);
  font-weight: 700;
  line-height: 1.25;
}

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

ul {
  list-style: none;
}

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

pre, code {
  font-family: 'Courier New', Courier, monospace;
}

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* --------------------------------------------------------------------------
   3. LIQUID BACKGROUND & GLOWING BLOBS
   -------------------------------------------------------------------------- */
.liquid-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background-color: var(--bg-deep);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.28;
  mix-blend-mode: screen;
  animation: float-blob 25s infinite alternate ease-in-out;
}

.blob-orange-1 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(242,122,35,0.8) 0%, rgba(255,94,58,0) 70%);
  top: -100px;
  right: -50px;
  animation-duration: 20s;
}

.blob-blue-1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(29,78,216,0.65) 0%, rgba(30,58,138,0) 70%);
  bottom: -150px;
  left: -100px;
  animation-duration: 28s;
  animation-delay: 2s;
}

.blob-orange-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(242,122,35,0.6) 0%, rgba(212,95,15,0) 70%);
  top: 40%;
  left: 30%;
  animation-duration: 32s;
  animation-delay: -5s;
}

.blob-purple-1 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(147,51,234,0.5) 0%, rgba(88,28,135,0) 70%);
  top: 15%;
  left: -50px;
  animation-duration: 22s;
}

@keyframes float-blob {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  50% {
    transform: translate(80px, 60px) scale(1.15) rotate(180deg);
  }
  100% {
    transform: translate(-40px, -80px) scale(0.9) rotate(360deg);
  }
}

/* --------------------------------------------------------------------------
   4. GLASSMORPHISM STRUCTURES & CARDS
   -------------------------------------------------------------------------- */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
  transition: 0.5s;
  pointer-events: none;
}

.glass-card:hover::before {
  left: 100%;
}

.card-glow:hover {
  border-color: var(--glass-border-hover);
  box-shadow: var(--glass-shadow-glow);
  transform: translateY(-5px);
}

.card-glow-orange:hover {
  border-color: rgba(242, 122, 35, 0.45);
  box-shadow: 0 12px 40px rgba(242, 122, 35, 0.15);
  transform: translateY(-8px);
}

/* --------------------------------------------------------------------------
   5. COMPONENT DESIGNS & STYLES (BUTTONS, BADGES, ETC.)
   -------------------------------------------------------------------------- */
.badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(242, 122, 35, 0.12);
  border: 1px solid rgba(242, 122, 35, 0.3);
  color: var(--color-primary-light);
  border-radius: 50px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
  backdrop-filter: var(--glass-blur);
}

.badge-sm {
  font-size: 0.75rem;
  padding: 4px 10px;
  margin-bottom: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: var(--text-white);
  border: none;
  box-shadow: 0 4px 20px rgba(242, 122, 35, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 28px rgba(242, 122, 35, 0.5);
  transform: translateY(-2px);
  filter: saturate(1.1);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-white);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: var(--glass-blur);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: translateY(0);
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn-md {
  padding: 12px 24px;
  font-size: 0.95rem;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: var(--border-radius-sm);
}

.btn-text {
  background: none;
  border: none;
  color: var(--color-primary-light);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  padding: 5px 0;
  position: relative;
  transition: var(--transition-fast);
}

.btn-text:hover {
  color: var(--text-white);
  padding-left: 5px;
}

/* Text Gradient Effect */
.text-gradient {
  background: linear-gradient(135deg, var(--color-primary-light) 10%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Grids and Helpers */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

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

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

.grid-2-1 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}

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

.section-padding {
  padding-top: 100px;
  padding-bottom: 100px;
}

.section-header {
  max-width: 750px;
  margin: 0 auto 60px auto;
}

.section-title {
  font-size: 2.75rem;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.section-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   6. HEADER & GLASS STICKY NAVIGATION
   -------------------------------------------------------------------------- */
.main-header {
  position: fixed;
  top: calc(var(--announce-height) + var(--header-gap));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 1200px;
  height: var(--header-height);
  z-index: 1000;
  border-radius: 16px;
  background: #0B0F1E;
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  transition: height .3s ease, box-shadow .3s ease;
}

.main-header.header-scrolled {
  height: 58px;
  background: #080C18;
  box-shadow: 0 12px 48px rgba(0,0,0,0.6);
}

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

.logo-link {
  display: flex;
  align-items: center;
}

.logo-wrapper {
  width: 180px;
  height: 50px;
}

.site-logo {
  width: 100%;
  height: 100%;
}

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

.nav-link {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  color: #ffffff;
  position: relative;
  padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
  opacity: 1;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transition: var(--transition-fast);
  border-radius: 5px;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-nav-cta {
  padding: 10px 20px;
  font-size: 0.85rem;
  border-radius: var(--border-radius-sm);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  width: 30px;
  height: 24px;
  justify-content: center;
  z-index: 1100;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-white);
  transition: var(--transition-fast);
  border-radius: 4px;
}

/* Toggle Menu Open animation handled in JS */
.nav-toggle.open .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   7. HERO SECTION (VIBRANT & METALLIC INTERACTION)
   -------------------------------------------------------------------------- */
.hero-section {
  min-height: 100vh;
  padding-top: calc(var(--total-offset) + 60px);
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  background: linear-gradient(145deg, #04070F 0%, #0A1020 45%, #060C1A 100%);
  isolation: isolate;
}

/* ── Hero product image grid (right column) ── */
.hero-img-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  height: 460px;
  width: 100%;
  max-width: 520px;
}
.hig-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #0d1224;
}
.hig-item:first-child { grid-row: span 2; }
.hig-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(.16,1,.3,1);
}
.hig-item:hover img { transform: scale(1.06); }
.hig-label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(6,8,18,0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .5px;
  padding: 4px 11px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,.12);
  text-transform: uppercase;
  z-index: 2;
}
.hig-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(4,7,15,.65) 100%);
  pointer-events: none;
}

/* ── CSS Art Cards (hero right column) ── */
.hig-art-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  text-align: center;
  z-index: 1;
}
.hig-card-electronics {
  background: linear-gradient(155deg, #060d20 0%, #0d1a40 65%, #080f28 100%);
}
.hig-card-global {
  background: linear-gradient(155deg, #08061c 0%, #0e1240 65%, #090720 100%);
}
.hig-card-catalog {
  background: linear-gradient(155deg, #04070f 0%, #0e1a2e 65%, #061018 100%);
}
.hig-card-electronics::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(242,122,35,0.14) 0%, transparent 70%);
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
}
.hig-card-global::before {
  content: '';
  position: absolute;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(99,102,241,0.18) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
}
.hig-card-catalog::before {
  content: '';
  position: absolute;
  width: 130px;
  height: 130px;
  background: radial-gradient(circle, rgba(16,185,129,0.15) 0%, transparent 70%);
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
}
.hig-art-icon {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: rgba(242,122,35,0.1);
  border: 1px solid rgba(242,122,35,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.hig-art-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: #ffffff;
  display: block;
  margin-bottom: 5px;
  line-height: 1.3;
}
.hig-art-sub {
  font-size: .73rem;
  color: rgba(255,255,255,.45);
  display: block;
  margin-bottom: 16px;
  line-height: 1.5;
}
.hig-art-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
}
.hig-art-pill {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  color: rgba(255,255,255,.58);
  font-size: .63rem;
  font-weight: 600;
  font-family: var(--font-display);
  padding: 3px 9px;
  border-radius: 50px;
  letter-spacing: .3px;
}
.hig-art-big-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, #F27A23, #FF5E3A);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
  display: block;
}
.hig-art-minigrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  max-width: 120px;
  margin-bottom: 12px;
}
.hig-mini-cell {
  aspect-ratio: 1;
  border-radius: 8px;
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Grid pattern overlay */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(242,122,35,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242,122,35,.06) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 85% at 55% 40%, black 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 85% at 55% 40%, black 20%, transparent 75%);
  z-index: 0;
  pointer-events: none;
}

/* Orange + blue glow spots */
.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 50% at 75% 45%, rgba(242,122,35,.1) 0%, transparent 65%),
    radial-gradient(ellipse 40% 35% at 15% 65%, rgba(29,78,216,.09) 0%, transparent 65%),
    radial-gradient(ellipse 30% 25% at 50% 15%, rgba(6,182,212,.06) 0%, transparent 60%);
  z-index: 0;
  pointer-events: none;
}

.hero-section > * { position: relative; z-index: 1; }

/* Hero text always light on dark background */
.hero-section .hero-title,
.light-theme .hero-section .hero-title { color: #F1F5F9; }
.hero-section .hero-lead,
.light-theme .hero-section .hero-lead { color: #94A3B8; }
.hero-section .metric-num,
.light-theme .hero-section .metric-num { color: #F1F5F9; }
.hero-section .metric-label,
.light-theme .hero-section .metric-label { color: #64748B; }
.hero-section .hero-metrics,
.light-theme .hero-section .hero-metrics { border-top-color: rgba(255,255,255,.08); }
.hero-section .badge-outline,
.light-theme .hero-section .badge-outline { color: #94A3B8; border-color: rgba(255,255,255,.12); }
.light-theme .hero-section .badge { color: #FF9B54; background: rgba(242,122,35,.12); border-color: rgba(242,122,35,.28); }

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 50px;
}

.hero-metrics {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
}

.metric-card {
  display: flex;
  flex-direction: column;
}

.metric-num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-white);
}

.metric-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Terminal Design Glass Card */
.hero-graphics {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-glass-card, .hero-image-card {
  width: 100%;
  max-width: 480px;
  height: 380px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.hero-image-card {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 45px rgba(242, 122, 35, 0.15);
  border-color: rgba(242, 122, 35, 0.25);
  position: relative;
  overflow: hidden;
}

.hero-brand-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85) saturate(1.05);
  transition: var(--transition-smooth);
}

.hero-image-card:hover .hero-brand-image {
  transform: scale(1.06);
  filter: brightness(0.95) saturate(1.15);
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 18px 24px;
  background: linear-gradient(to top, rgba(7, 9, 14, 0.92) 0%, rgba(7, 9, 14, 0.35) 60%, transparent 100%);
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2;
}

.glass-header {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 8px;
}

.glass-header .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}

.glass-header .dot.red { background-color: #EF4444; }
.glass-header .dot.yellow { background-color: #F59E0B; }
.glass-header .dot.green { background-color: #10B981; }

.glass-panel-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 8px;
  font-weight: 500;
}

.glass-body {
  padding: 24px;
  flex-grow: 1;
  font-size: 0.85rem;
  overflow-y: auto;
  color: #818CF8;
}

.glass-body pre {
  white-space: pre-wrap;
  word-break: break-all;
}

.code-comment { color: #64748B; font-style: italic; }
.code-keyword { color: #F472B6; font-weight: 600; }
.code-string { color: #34D399; }

.glass-footer {
  padding: 12px 24px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  gap: 12px;
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  background-color: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10B981;
  animation: pulse 2s infinite;
}

.pulse-text {
  font-size: 0.75rem;
  color: var(--text-muted);
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.scroll-indicator-wrapper {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
}

.scroll-indicator {
  display: block;
  cursor: pointer;
}

.mouse-icon {
  width: 26px;
  height: 42px;
  border: 2px solid var(--text-muted);
  border-radius: 20px;
  display: block;
  position: relative;
  opacity: 0.7;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background-color: var(--color-primary);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-wheel-anim 1.5s infinite;
}

@keyframes scroll-wheel-anim {
  0% { opacity: 0; top: 8px; }
  30% { opacity: 1; }
  100% { opacity: 0; top: 22px; }
}

/* --------------------------------------------------------------------------
   8. NOSOTROS SECTION (STORY & VALUES)
   -------------------------------------------------------------------------- */
.nosotros-section {
  position: relative;
}

.story-card {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story-card h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.story-card p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.story-card strong {
  color: var(--text-white);
}

.values-grid {
  display: flex;
  gap: 24px;
  margin-top: 15px;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.value-icon-wrapper {
  width: 42px;
  height: 42px;
  border-radius: var(--border-radius-sm);
  background: rgba(242, 122, 35, 0.1);
  border: 1px solid rgba(242, 122, 35, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-light);
}

.value-item span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-white);
}

.mission-vision-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mission-card, .vision-card {
  padding: 32px;
}

.card-icon {
  width: 55px;
  height: 55px;
  border-radius: var(--border-radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--color-primary);
}

.mission-card h3, .vision-card h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.mission-card p, .vision-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   9. SERVICIOS SECTION (HIGH LEGIBILITY GLASS CARDS)
   -------------------------------------------------------------------------- */
.servicios-section {
  position: relative;
}

.service-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  min-height: 380px;
  /* Darken slightly for enhanced legibility */
  background: rgba(13, 17, 26, 0.78);
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius-md);
  background: rgba(242, 122, 35, 0.08);
  border: 1px solid rgba(242, 122, 35, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--color-primary);
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
  background: var(--color-primary);
  color: var(--text-white);
  transform: rotateY(180deg);
  box-shadow: 0 0 15px rgba(242, 122, 35, 0.4);
}

.service-card-title {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.service-card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.service-list {
  margin-bottom: 30px;
  flex-grow: 1;
}

.service-list li {
  font-size: 0.88rem;
  color: var(--text-main);
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
}

.service-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-primary-light);
  font-weight: 700;
}

.service-card-footer {
  margin-top: auto;
}

/* --------------------------------------------------------------------------
   10. INTERACTIVE DETAILS POPOVER / MODAL
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-modal);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(8px);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  padding: 40px;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(15, 20, 31, 0.92);
}

.modal-backdrop.open .modal-content {
  transform: scale(1);
}

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

.modal-close:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-white);
}

.modal-body-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.modal-title {
  font-size: 2.25rem;
  margin-top: 8px;
}

.modal-info-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  margin-top: 10px;
}

.modal-desc-main {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.modal-highlight-box {
  background: rgba(242, 122, 35, 0.04);
  border: 1px solid rgba(242, 122, 35, 0.15);
  padding: 20px;
  border-radius: var(--border-radius-md);
}

.modal-highlight-box h4 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--color-primary-light);
}

.highlight-list li {
  font-size: 0.88rem;
  margin-bottom: 8px;
  color: var(--text-main);
  padding-left: 18px;
  position: relative;
}

.highlight-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--color-primary-light);
}

.modal-features-col h4 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
}

.features-list {
  margin-bottom: 30px;
}

.features-list li {
  font-size: 0.9rem;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 10px 16px;
  border-radius: var(--border-radius-sm);
  margin-bottom: 10px;
}

.modal-cta-box {
  margin-top: auto;
}

/* --------------------------------------------------------------------------
   11. CONTACTO SECTION & GLASS FORM VALIDATION
   -------------------------------------------------------------------------- */
.contacto-section {
  position: relative;
}

.form-card {
  padding: 40px;
  background: rgba(11, 15, 23, 0.8);
}

.form-card h3 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.form-instructions {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 0.98rem;
}

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

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

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

.form-control, .form-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-sm);
  padding: 14px 16px;
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-fast);
  backdrop-filter: var(--glass-blur);
}

.form-control:focus, .form-select:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--color-primary);
  box-shadow: 0 0 12px rgba(242, 122, 35, 0.15);
}

.form-select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23B2B2B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 48px;
}

.form-select option {
  background: #0B0F17;
  color: var(--text-white);
}

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

/* Form Validation styles */
.error-msg {
  display: block;
  font-size: 0.78rem;
  color: #EF4444;
  margin-top: 5px;
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: var(--transition-fast);
}

.form-control.invalid, .form-select.invalid {
  border-color: #EF4444;
  background: rgba(239, 68, 68, 0.03);
}

.form-control.invalid + .error-msg, .form-select.invalid + .error-msg {
  opacity: 1;
  height: auto;
  margin-bottom: 5px;
}

.form-footer {
  margin-top: 32px;
}

.btn-submit {
  width: 100%;
  padding: 16px;
  font-size: 1.05rem;
}

/* Spinner Loader */
.loader-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--text-white);
  animation: spin 0.8s linear infinite;
  margin-left: 12px;
}

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

.hidden {
  display: none !important;
}

/* Success State styling */
.form-success-alert {
  text-align: center;
  padding: 40px 20px;
  animation: fadeIn 0.5s ease forwards;
}

.success-icon-circle {
  width: 70px;
  height: 70px;
  background: rgba(16, 185, 129, 0.1);
  border: 2px solid rgba(16, 185, 129, 0.4);
  color: #10B981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px auto;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

.success-icon-circle svg {
  width: 32px;
  height: 32px;
}

.form-success-alert h4 {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.form-success-alert p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 30px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Sidebar Sedes */
.sedes-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sede-card {
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: rgba(11, 15, 23, 0.72);
}

.sede-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-light);
  flex-shrink: 0;
}

.sede-icon svg {
  width: 24px;
  height: 24px;
}

.sede-info-content h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.sede-address {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.sede-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.sede-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-fast);
}

.tel-link {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-white);
}

.tel-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.tel-link svg {
  width: 14px;
  height: 14px;
}

.wa-link {
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.25);
  color: #25D366;
}

.wa-link:hover {
  background: rgba(37, 211, 102, 0.18);
  border-color: rgba(37, 211, 102, 0.45);
  box-shadow: 0 0 10px rgba(37, 211, 102, 0.1);
}

.info-card {
  padding: 24px;
  background: linear-gradient(135deg, rgba(242,122,35,0.05) 0%, rgba(7,9,14,0.1) 100%);
  border-color: rgba(242, 122, 35, 0.1);
}

.info-card h4 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--color-primary-light);
}

.small-text {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   12. FOOTER & ACCENTS
   -------------------------------------------------------------------------- */
.site-footer {
  background: #06080C;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 80px;
  position: relative;
  z-index: 10;
}

.footer-grid {
  margin-bottom: 60px;
}

.footer-col-main {
  grid-column: span 1;
}

.footer-logo {
  width: 190px;
  height: 52px;
  margin-bottom: 24px;
}

.footer-bio {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 24px;
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 30px;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 2px;
}

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

.footer-links a {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--color-primary-light);
  transform: translateX(3px);
}

.font-sm { font-size: 0.85rem; }
.text-dim { color: var(--text-muted); }
.text-dim a { color: var(--text-muted); text-decoration: underline; }
.text-dim a:hover { color: var(--color-primary-light); }

.sub-footer {
  background: #030406;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.signature {
  font-family: var(--font-display);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.15);
  letter-spacing: 1px;
}

/* --------------------------------------------------------------------------
   13. SCROLL REVEAL ANIMATIONS (Intersection Observer classes)
   -------------------------------------------------------------------------- */
.reveal-left, .reveal-right, .reveal-y {
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal-y {
  transform: translateY(30px);
}

/* Active State */
.revealed {
  opacity: 1;
  transform: translate(0, 0);
}

/* Delay helpers for staggered animation child elements */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* --------------------------------------------------------------------------
   14. RESPONSIVE DESIGN (MEDIA QUERIES)
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 968px) {
  html {
    font-size: 15px;
  }
  
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .grid-2-1 {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .section-title {
    font-size: 2.25rem;
  }

  /* Header & Navigation Mobile styling */
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: calc(var(--total-offset) + 4px);
    left: 0;
    width: 100%;
    height: 0;
    background: rgba(7, 9, 14, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
    transition: var(--transition-smooth);
    z-index: 999;
    border-bottom: 0px solid var(--glass-border);
  }

  .main-nav.open {
    height: 320px;
    border-bottom: 1px solid var(--glass-border);
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
    gap: 24px;
  }

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

  .btn-nav-cta {
    display: none; /* Hide nav button, offer inline in menu if needed, or rely on hamburger toggle */
  }

  /* Hero Section */
  .hero-section {
    padding-top: calc(var(--total-offset) + 40px);
    padding-bottom: 40px;
    text-align: center;
  }

  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-metrics {
    justify-items: center;
  }

  .hero-graphics {
    margin-top: 20px;
  }

  .hero-glass-card, .hero-image-card {
    max-width: 100%;
  }

  /* Story and Values block */
  .nosotros-main {
    flex-direction: column;
  }

  /* Services popover */
  .modal-info-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .modal-content {
    padding: 30px 20px;
  }

  /* Mobile nav: white dropdown in light theme */
  .light-theme .main-nav {
    background: rgba(255, 255, 255, 0.97);
    border-bottom-color: rgba(15, 23, 42, 0.08);
  }
  .light-theme .main-nav .nav-link {
    color: #0F172A;
  }
  .light-theme .main-nav .nav-link:hover,
  .light-theme .main-nav .nav-link.active {
    color: #F27A23;
  }
}

@media (max-width: 576px) {
  html {
    font-size: 14px;
  }

  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-title {
    font-size: 2.85rem;
  }

  .grid-3 {
    grid-template-columns: 1fr;
    gap: 16px;
    justify-items: center;
    text-align: center;
  }

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

  .values-grid {
    flex-direction: column;
    gap: 16px;
  }

  .story-card {
    padding: 24px;
  }

  .form-card {
    padding: 24px;
  }

  .flex-space {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .footer-logo {
    margin: 0 auto 20px auto;
  }

  .footer-col-main {
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 40px;
  }

  .footer-col h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* --------------------------------------------------------------------------
   14. PREMIUM LIGHT THEME & MICRO-INTERACTIONS
   -------------------------------------------------------------------------- */
.light-theme {
  /* Light Theme Variables */
  --bg-deep: #F4F6F9;
  --bg-main: #FFFFFF;
  --bg-card: rgba(255, 255, 255, 0.68);
  --bg-card-hover: rgba(255, 255, 255, 0.88);
  --bg-header: rgba(244, 246, 249, 0.75);
  --bg-modal: rgba(244, 246, 249, 0.85);
  
  /* Light Theme Text */
  --text-white: #0F172A; /* Slate-900 for dark headers */
  --text-main: #334155;  /* Slate-700 for main body text */
  --text-muted: #64748B; /* Slate-500 for secondary text */
  --text-dark: #F1F5F9;

  /* Light Theme Glassmorphism */
  --glass-border: rgba(15, 23, 42, 0.08);
  --glass-border-hover: rgba(242, 122, 35, 0.5);
  --glass-shadow: 0 10px 40px 0 rgba(148, 163, 184, 0.12);
  --glass-shadow-glow: 0 10px 40px 0 rgba(242, 122, 35, 0.22);
  --glass-blur: blur(20px) saturate(160%);
}

/* ── Announcement Bar ── */
.announce-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--announce-height);
  background: #0B0F1E;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  z-index: 1001;
  display: flex;
  align-items: center;
}
.announce-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.announce-items {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  overflow: hidden;
}
.announce-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 500;
  color: #E2E8F0;
  white-space: nowrap;
}
.announce-item svg { color: #F27A23; flex-shrink: 0; }
.announce-sep { color: rgba(255,255,255,.35); font-size: .7rem; }
.announce-wa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 700;
  color: #25D366;
  white-space: nowrap;
  text-decoration: none;
  padding: 3px 10px;
  border-radius: 50px;
  border: 1px solid rgba(37,211,102,.25);
  transition: all .2s;
}
.announce-wa:hover { background: rgba(37,211,102,.1); }

/* ── Nav badge ── */
.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #F27A23, #FF5E3A);
  color: #fff;
  font-size: .65rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 50px;
  margin-left: 5px;
  line-height: 1.4;
  vertical-align: middle;
  font-family: var(--font-display);
}

/* ── WhatsApp nav button ── */
.btn-wa-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(37,211,102,.12);
  border: 1px solid rgba(37,211,102,.25);
  color: #25D366;
  text-decoration: none;
  transition: all .2s;
}
.btn-wa-nav:hover { background: rgba(37,211,102,.22); border-color: rgba(37,211,102,.5); }

/* ── Hero badge row ── */
.hero-badges {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.hero-badges .badge { margin-bottom: 0; }
.badge-outline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 50px;
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 600;
  color: #94A3B8;
  background: transparent;
  border: 1px solid rgba(255,255,255,.12);
  letter-spacing: .3px;
}
.badge-outline svg { color: #F27A23; }

/* ── Hero catalog card ── */
.hero-catalog-card {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0,0,0,.5), 0 0 40px rgba(242,122,35,.12);
  border-color: rgba(242,122,35,.2);
  overflow: hidden;
}
.hcc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.hcc-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.hcc-title {
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 600;
  color: #64748B;
  flex: 1;
  text-align: center;
  letter-spacing: .3px;
}
.hcc-count {
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
  color: #F27A23;
  background: rgba(242,122,35,.12);
  border: 1px solid rgba(242,122,35,.22);
  padding: 2px 8px;
  border-radius: 50px;
}
.hcc-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1px;
  background: rgba(255,255,255,.05);
  flex: 1;
  padding: 16px;
  gap: 10px;
}
.hcc-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 10px;
  border-radius: 12px;
  background: var(--item-bg);
  border: 1px solid color-mix(in srgb, var(--item-color) 20%, transparent);
  transition: all .25s;
  cursor: default;
}
.hcc-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,.15);
}
.hcc-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hcc-label {
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-white);
}
.hcc-sub {
  font-size: .7rem;
  color: #64748B;
  font-weight: 500;
}
.hcc-footer {
  padding: 12px 18px;
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.02);
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}
.hcc-chain {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hcc-chain-node {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 600;
  color: #64748B;
}
.hcc-chain-active { color: #F27A23; }
.hcc-chain-line {
  display: flex;
  align-items: center;
  gap: 4px;
}
.hcc-chain-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #F27A23;
  opacity: .5;
  animation: chainPulse 1.4s ease-in-out infinite;
}
.hcc-chain-dot:nth-child(2) { animation-delay: .2s; }
.hcc-chain-dot:nth-child(3) { animation-delay: .4s; }
@keyframes chainPulse {
  0%,100% { opacity: .25; transform: scale(.8); }
  50% { opacity: 1; transform: scale(1.2); }
}
.hcc-footer-text {
  font-size: .72rem;
  color: #475569;
  font-weight: 500;
}

/* ── Light theme overrides for new components ── */
/* announce bar is always dark — text stays near-white regardless of page theme */
.light-theme .badge-outline {
  color: #64748B;
  border-color: rgba(15,23,42,.12);
}
.light-theme .hcc-label { color: #0F172A; }
.light-theme .hcc-icon { background: rgba(15,23,42,.04); }
.light-theme .hcc-header { background: rgba(15,23,42,.02); border-bottom-color: rgba(15,23,42,.06); }
.light-theme .hcc-footer { background: rgba(15,23,42,.02); border-top-color: rgba(15,23,42,.06); }
.light-theme .hcc-chain-node { color: #64748B; }
.light-theme .hcc-footer-text { color: #94A3B8; }
.light-theme .btn-wa-nav { background: rgba(37,211,102,.08); }

/* ── Announce bar hidden on very small screens ── */
@media (max-width: 640px) {
  .announce-items { display: none; }
  .announce-bar { justify-content: center; }
  .announce-inner { justify-content: center; }
}

/* Specific Component Overrides for Light Theme */
.light-theme .blob {
  mix-blend-mode: multiply;
  opacity: 0.14;
}

.light-theme .badge {
  color: var(--color-primary-dark);
  background: rgba(242, 122, 35, 0.08);
  border-color: rgba(242, 122, 35, 0.22);
}

.light-theme .hero-metrics {
  border-top-color: rgba(15, 23, 42, 0.08);
}

.light-theme .value-icon-wrapper {
  background: rgba(242, 122, 35, 0.08);
  border-color: rgba(242, 122, 35, 0.22);
  color: var(--color-primary);
}

.light-theme .card-icon {
  background: rgba(242, 122, 35, 0.08);
  border-color: rgba(242, 122, 35, 0.22);
  color: var(--color-primary);
}

.light-theme .sede-card {
  background: rgba(255, 255, 255, 0.70);
}

.light-theme .sede-icon {
  background: rgba(242, 122, 35, 0.08);
  border-color: rgba(242, 122, 35, 0.22);
  color: var(--color-primary);
}

.light-theme .tel-link {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.1);
  color: var(--text-white);
}

.light-theme .tel-link:hover {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.2);
}

.light-theme .info-card {
  background: linear-gradient(135deg, rgba(242, 122, 35, 0.06) 0%, rgba(255, 255, 255, 0.70) 100%);
  border-color: rgba(242, 122, 35, 0.18);
}

.light-theme .info-card h4 {
  color: var(--color-primary-dark);
}


.light-theme .hero-image-card {
  box-shadow: 0 24px 60px rgba(148, 163, 184, 0.2), 0 0 45px rgba(242, 122, 35, 0.1);
  border-color: rgba(242, 122, 35, 0.2);
}

.light-theme .image-overlay {
  background: linear-gradient(to top, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.4) 60%, transparent 100%);
  border-top-color: rgba(15, 23, 42, 0.05);
}

.light-theme .hero-glass-card {
  box-shadow: 0 20px 50px rgba(148, 163, 184, 0.15);
}

.light-theme .story-card strong {
  color: var(--text-white);
}

.light-theme .value-item {
  color: var(--text-main);
}

.light-theme .service-card {
  background: rgba(255, 255, 255, 0.7);
}

.light-theme .service-icon {
  background: rgba(242, 122, 35, 0.08);
  border-color: rgba(242, 122, 35, 0.22);
}

.light-theme .service-card:hover .service-icon {
  background: var(--color-primary);
  color: #FFFFFF;
  box-shadow: 0 0 15px rgba(242, 122, 35, 0.3);
}

.light-theme .service-list li::before {
  color: var(--color-primary);
}

.light-theme .btn-text {
  color: var(--color-primary);
}

.light-theme .btn-text:hover {
  color: var(--color-primary-dark);
}

.light-theme .card-glow-orange:hover {
  border-color: rgba(242, 122, 35, 0.5);
  box-shadow: 0 12px 40px rgba(242, 122, 35, 0.16);
}

.light-theme .modal-content {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(15, 23, 42, 0.08);
}

.light-theme .modal-close:hover {
  background: rgba(15, 23, 42, 0.05);
  color: var(--text-white);
}

.light-theme .modal-features-col h4 {
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

.light-theme .modal-highlight-box h4 {
  color: var(--color-primary-dark);
}

.light-theme .highlight-list li::before {
  color: var(--color-primary);
}

.light-theme .features-list li {
  background: rgba(15, 23, 42, 0.02);
  border-color: rgba(15, 23, 42, 0.04);
  color: var(--text-main);
}

.light-theme .form-card {
  background: rgba(255, 255, 255, 0.7);
}

.light-theme .form-control, 
.light-theme .form-select {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: var(--text-white);
}

.light-theme .form-control:focus, 
.light-theme .form-select:focus {
  background: #FFFFFF;
  border-color: var(--color-primary);
  box-shadow: 0 0 12px rgba(242, 122, 35, 0.15);
}

.light-theme .form-select option {
  background: #FFFFFF;
  color: var(--text-white);
}

.light-theme .form-control.invalid, 
.light-theme .form-select.invalid {
  border-color: #EF4444;
  background: rgba(239, 68, 68, 0.03);
}

/* Keep Footer Dark in Light Theme for high-end styling anchor */
.light-theme .site-footer {
  background: #0B0F17;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.light-theme .sub-footer {
  background: #07090E;
  border-top-color: rgba(255, 255, 255, 0.02);
}


/* Theme Toggle Switch Styles */
.theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--border-radius-md);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.theme-btn:hover {
  background: rgba(242, 122, 35, 0.12);
  border-color: rgba(242, 122, 35, 0.35);
  color: var(--color-primary-light);
  transform: translateY(-1px);
}

.theme-icon {
  transition: transform 0.5s ease;
}

.theme-btn:hover .theme-icon {
  transform: rotate(45deg);
}

/* ── Logo color via currentColor ── */
.main-header .site-logo {
  color: #FFFFFF;
}
.light-theme .main-header .site-logo {
  color: #0F172A;
}
.site-footer .footer-logo {
  color: #FFFFFF;
}

/* ── Light theme: glass navbar ── */
.light-theme .main-header {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 4px 20px rgba(148, 163, 184, 0.14),
    0 1px 3px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.light-theme .main-header.header-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 8px 28px rgba(148, 163, 184, 0.18),
    0 1px 4px rgba(15, 23, 42, 0.08);
}

/* ── Light theme: nav links with pill hover ── */
.light-theme .nav-list {
  gap: 2px;
}

.light-theme .nav-link {
  color: #334155;
  padding: 7px 12px;
  border-radius: 8px;
  font-weight: 500;
  transition: color 0.18s ease, background 0.18s ease;
}

.light-theme .nav-link:hover {
  color: #0F172A;
  background: rgba(15, 23, 42, 0.055);
  opacity: 1;
}

.light-theme .nav-link.active {
  color: #D45F0F;
  background: rgba(242, 122, 35, 0.09);
  font-weight: 600;
  opacity: 1;
}

.light-theme .nav-link::after {
  display: none;
}

.light-theme .hamburger-line {
  background-color: #1E293B;
}

/* ── Light theme: CTA and WA button refinements ── */
.light-theme .btn-nav-cta {
  box-shadow: 0 2px 10px rgba(242, 122, 35, 0.28);
}

/* Light Theme overrides for the button itself */
.light-theme .theme-btn {
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.1);
  color: var(--text-muted);
}

.light-theme .theme-btn:hover {
  background: rgba(242, 122, 35, 0.08);
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}

.light-theme .btn-secondary {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.12);
  color: var(--text-white);
}

.light-theme .btn-secondary:hover {
  background: rgba(15, 23, 42, 0.08);
  border-color: rgba(15, 23, 42, 0.22);
}
