:root {
  /* ===== PALETA PREMIUM SMARTLIT ===== */
  --primary: #0f1c2e;
  /* Midnight Blue */
  --primary-light: #1f3a5f;
  /* Lighter Deep Blue */
  --primary-dark: #08101a;
  /* Darkest Blue */

  --secondary: #ffc107;
  /* Yellow Gold (Resetted) */
  --secondary-light: #ffcd38;
  /* Lighter Yellow Gold */
  --secondary-dark: #c69500;
  /* Darker Yellow Gold */

  --accent: #e74c3c;
  /* Alert/Action Red */

  /* Backgrounds & Text */
  --white: #ffffff;
  --light-bg: #f4f6f9;
  /* Very light gray-blue */
  --dark-bg: #0b0f19;

  --text-dark: #1e293b;
  --text-light: #64748b;
  --text-white: #f8fafc;

  /* Department Colors */
  --ecommerce: #27ae60;
  --branding: #c0392b;
  --marketing: #8e44ad;

  /* Effects */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-gold: 0 4px 14px 0 rgba(255, 193, 7, 0.39);

  --glass: rgba(255, 255, 255, 0.7);
  --glass-border: 1px solid rgba(255, 255, 255, 0.3);
  --backdrop-blur: blur(12px);

  --border-radius: 12px;
  --border-radius-lg: 20px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  /* Prevent horizontal scroll globally */
  width: 100%;
}

body {
  font-family: "Montserrat", sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--light-bg);
  overflow-x: hidden;
  /* Ensure footer stays at bottom */
  display: flex;
  flex-direction: column;
  min-height: 100vh;

  /* Header Height Variable */
  --header-height-desktop: 80px;
  --header-height-mobile: 70px;
}


h1,
h2,
h3,
h4 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Specific padding for Index first section to avoid topbar overlap */
#tiendana {
  padding-top: 120px;
}

@media (max-width: 768px) {
  #tiendana {
    padding-top: 140px;
  }
}

/* ===== LOADER MEJORADO CON TRANSICIÓN NEGRO → BLANCO ===== */
/* Updated loader to center logos properly */
.loader-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  animation: loaderBackground 3s ease-in-out forwards;
}

.loader-container.hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

@keyframes loaderBackground {
  0% {
    background-color: #000;
  }

  45% {
    background-color: #000;
  }

  55% {
    background-color: #fff;
  }

  100% {
    background-color: #fff;
  }
}

.loader-stage {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader-logo {
  position: absolute;
  max-height: 200px;
  max-width: 250px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.logo-white {
  animation: logoWhiteAppear 3s ease-in-out forwards;
  z-index: 2;
}

.logo-black {
  animation: logoBlackAppear 3s ease-in-out forwards;
  z-index: 1;
}

@keyframes logoWhiteAppear {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }

  10% {
    opacity: 1;
    transform: scale(1);
  }

  45% {
    opacity: 1;
    transform: scale(1);
  }

  55% {
    opacity: 0;
    transform: scale(0.8);
  }

  100% {
    opacity: 0;
    transform: scale(0.8);
  }
}

@keyframes logoBlackAppear {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }

  45% {
    opacity: 0;
    transform: scale(0.8);
  }

  55% {
    opacity: 0;
    transform: scale(0.8);
  }

  65% {
    opacity: 1;
    transform: scale(1);
  }

  95% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== HEADER MEJORADO ===== */
header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: var(--backdrop-blur);
  box-shadow: var(--shadow-sm);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
  transition: var(--transition);
}

.mobile-menu-toggle:hover {
  color: var(--secondary);
}

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

.logotopbar {
  height: 45px;
  width: auto;
}

.logo-icon {
  display: none;
  height: 40px;
  width: auto;
}

.department-name {
  font-weight: 600;
  color: var(--primary);
  font-size: 1.1rem;
}

.desktop-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

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

.nav-links a {
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding: 0.5rem 0;
  color: var(--text-dark);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.store-button {
  background-color: var(--secondary);
  color: var(--primary);
  padding: 0.7rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}

.store-button:hover {
  background-color: #ffb300;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: var(--shadow);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  z-index: 999;
}

.mobile-nav.active {
  display: block;
  transform: translateY(0);
}

.mobile-nav-content {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  gap: 1.5rem;
}

.mobile-nav-content a {
  font-weight: 500;
  color: var(--text-dark);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--light-bg);
}

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 6rem 0 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  bottom: -50px;
  left: 0;
  width: 100%;
  height: 100px;
  background-color: var(--light-bg);
  clip-path: polygon(0 70%, 100% 0, 100% 100%, 0% 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-background {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.btn-primary {
  display: inline-block;
  background-color: var(--secondary);
  color: var(--primary-dark);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  transition: var(--transition);
  font-size: 1.05rem;
  box-shadow: var(--shadow-gold);
  border: 1px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary:hover {
  background-color: var(--white);
  color: var(--secondary);
  border-color: var(--secondary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.hero-image-container {
  display: none;
}

/* ===== DEPARTMENT-SPECIFIC PROMOTIONAL BANNERS ===== */
/* Added department image section styles */
.department-image-section {
  background-color: var(--white);
  padding: 3rem 0;
}

.department-image-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.department-hero-image {
  width: 100%;
  max-width: 900px;
  height: auto;
  margin: 0 auto;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.department-hero-image:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

/* Added department-specific promo section between hero and about */
.department-promo-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 3rem 0;
  margin-top: 0;
}

.promo-banner-dept {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.promo-slide-dept {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.promo-slide-dept:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--secondary);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.promo-image-dept {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: var(--border-radius);
  background: var(--white);
  padding: 1rem;
  flex-shrink: 0;
  box-shadow: var(--shadow);
}

.promo-content-dept {
  flex: 1;
  color: var(--white);
}

.promo-content-dept .promo-badge {
  display: inline-block;
  background: var(--secondary);
  color: var(--primary);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.promo-content-dept h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--white);
  font-weight: 700;
  line-height: 1.3;
}

.promo-content-dept p {
  font-size: 1.05rem;
  opacity: 0.95;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.promo-content-dept .promo-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--secondary);
  color: var(--primary);
  padding: 0.9rem 2rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  text-decoration: none;
}

.promo-content-dept .promo-btn:hover {
  background: #ffb300;
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
}

/* ===== BANNER PUBLICITARIO DESLIZANTE ===== */
/* Increased height and adjusted padding for complete visibility */
.promo-slider-container {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  /* overflow: hidden; Removed to prevent clipping shadows/details as requested */
  /* We rely on body overflow-x: hidden to prevent horizontal scrollbar from the wide slider */
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  position: relative;
  margin: 2rem 0;
  /* Standard vertical spacing for flow content */
  height: 180px;
  /* Increased slightly to ensure shadows fit */
  display: flex;
  align-items: center;
  padding: 1rem 0;
}

.promo-slider {
  display: flex;
  width: fit-content;
  animation: slidePromos 40s linear infinite;
}

@keyframes slidePromos {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.promo-slider:hover {
  animation-play-state: paused;
}

.promo-slide {
  flex-shrink: 0;
  width: 450px;
  /* Reduced width for more compact look */
  padding: 0 1rem;
  /* Reduced horizontal padding */
}

.promo-slide-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  /* Reduced gap */
  background: rgba(255, 255, 255, 0.1);
  padding: 0.8rem 1rem;
  /* Reduced internal padding */
  border-radius: var(--border-radius-lg);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
  height: 140px;
  /* Fixed height to fit well within container */
}

.promo-image {
  width: 70px;
  /* Slightly smaller image */
  height: 70px;
  object-fit: cover;
  border-radius: var(--border-radius);
  background: var(--white);
  padding: 0.4rem;
  flex-shrink: 0;
}

.promo-text {
  flex: 1;
  color: var(--white);
}

.promo-badge-small {
  display: inline-block;
  background: var(--secondary);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.promo-text h4 {
  font-size: 0.95rem;
  /* Smaller font */
  margin-bottom: 0.3rem;
  color: var(--white);
  font-weight: 600;
  line-height: 1.2;
}

.promo-text p {
  font-size: 0.8rem;
  /* Smaller text */
  opacity: 0.9;
  margin-bottom: 0.4rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  /* Limit text lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.promo-link {
  display: inline-block;
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.promo-link:hover {
  color: #ffb300;
  transform: translateX(5px);
}

/* ===== COMPANIES SECTION (INDEX) ===== */
.companies-tags-section {
  padding: 6rem 0;
  background-color: var(--white);
}

.companies-tags-section h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  width: 100%;
}

.companies-tags-section h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--secondary);
}

.companies-tags-section>p {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 2rem auto 4rem;
}

.companies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.company-tag-link {
  text-decoration: none;
}

/* Changed company tags to primary color with white text */
.company-tag {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
  text-align: center;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.company-tag::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--secondary);
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: left;
}

.company-tag:hover::before {
  transform: scaleX(1);
}

.company-tag:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  background: var(--white);
}

.company-tag h3 {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.company-tag p {
  color: var(--text-light);
  font-size: 1rem;
}



/* ===== SECTION HEADERS ===== */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary);
  position: relative;
  display: inline-block;
  width: 100%;
  margin-bottom: 1rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--secondary);
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 1rem auto 3rem;
}

/* ===== ABOUT SECTION ===== */
.about-section {
  background-color: var(--white);
  padding: 5rem 0;
}

.about-content {
  max-width: 900px;
  margin: 0 auto 3rem;
  text-align: center;
  padding: 0 2rem;
}

.about-content p {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.8;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

.stat-item {
  text-align: center;
  padding: 2rem;
  background: var(--light-bg);
  border-radius: var(--border-radius-lg);
  transition: var(--transition);
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.stat-item p {
  color: var(--text-dark);
  font-size: 0.95rem;
}

/* ===== SERVICES SECTION ===== */
.services-section {
  background-color: var(--light-bg);
  padding: 5rem 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.service-item {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 2px solid transparent;
}

.service-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary);
}

.service-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1.5rem;
}

.service-item h3 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.service-item p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.6;
}

/* ===== PROMOTION SECTION (SYSTEMS) ===== */
.promotion-section {
  background: linear-gradient(135deg, var(--ecommerce) 0%, #14532d 100%);
  padding: 4rem 0;
}

.promotion-banner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.promo-content {
  text-align: center;
  color: var(--white);
}

.promo-badge {
  display: inline-block;
  background: var(--secondary);
  color: var(--primary);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.promo-content h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.promo-content p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  opacity: 0.95;
}

.promo-btn {
  display: inline-block;
  background: var(--secondary);
  color: var(--primary);
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  margin-top: 1rem;
  transition: var(--transition);
}

.promo-btn:hover {
  background: #ffb300;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ===== TIENDANA APP SHOWCASE SECTION ===== */
/* Added Tiendana app showcase section styles */
.app-showcase-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.app-showcase-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: -200px;
  width: 600px;
  height: 600px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  z-index: 1;
}

.app-showcase-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.app-showcase-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.app-showcase-text {
  color: var(--white);
}

.app-badge {
  display: inline-block;
  background: var(--secondary);
  color: var(--primary);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.app-showcase-text h2 {
  font-size: 3.5rem;
  color: var(--white);
  margin-bottom: 0.5rem;
  font-weight: 700;
  line-height: 1;
}

.app-showcase-text h3 {
  font-size: 1.8rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.app-showcase-text>p {
  font-size: 1.15rem;
  line-height: 1.8;
  opacity: 0.95;
  margin-bottom: 2rem;
}

.app-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.app-feature {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.app-feature:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(5px);
}

.app-feature i {
  font-size: 1.8rem;
  color: var(--secondary);
}

.app-feature span {
  font-weight: 500;
  font-size: 1rem;
}

.app-download-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.app-store-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 0.9rem 1.8rem;
  border-radius: var(--border-radius-lg);
  transition: var(--transition);
  color: var(--white);
  text-decoration: none;
}

.app-store-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: var(--secondary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.app-store-btn i {
  font-size: 2.5rem;
}

.app-store-btn div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.download-text {
  font-size: 0.75rem;
  opacity: 0.9;
}

.store-name {
  font-size: 1.1rem;
  font-weight: 600;
}

.app-showcase-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.app-phone-mockup {
  position: relative;
  width: 350px;
  height: 700px;
  background: linear-gradient(145deg, #1e1e1e, #2d2d2d);
  border-radius: 40px;
  padding: 15px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 2px 8px rgba(255, 255, 255, 0.1);
  border: 3px solid rgba(255, 255, 255, 0.2);
  animation: phoneFloat 3s ease-in-out infinite;
}

@keyframes phoneFloat {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(-2deg);
  }
}

.app-phone-mockup::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 25px;
  background: #000;
  border-radius: 0 0 20px 20px;
  z-index: 3;
}

.app-screenshot {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  object-fit: cover;
  position: relative;
  z-index: 2;
}

/* ===== PERFORMANCE SECTION ===== */
.performance-section {
  background: var(--white);
  padding: 5rem 0;
}

.performance-content {
  max-width: 1200px;
  margin: 0 auto 4rem;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.performance-text {
  text-align: center;
  max-width: 800px;
}

.performance-text h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.performance-text p {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.8;
}

.presentation-image {
  max-width: 600px;
  width: 100%;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.charts-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.charts-container h3 {
  text-align: center;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 3rem;
}

.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
}

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

.pie-chart {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: conic-gradient(var(--secondary) 0% calc(var(--percentage) * 1%),
      var(--light-bg) calc(var(--percentage) * 1%) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  position: relative;
  box-shadow: var(--shadow);
}

.pie-chart::before {
  content: attr(data-percentage);
  position: absolute;
  width: 120px;
  height: 120px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.chart-item h4 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.chart-label {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  background: var(--light-bg);
  padding: 5rem 0;
}

.contact-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.contact-form {
  background: var(--white);
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.contact-form h3 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 2rem;
  text-align: center;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--light-bg);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary);
}

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

.submit-btn {
  width: 100%;
  padding: 1rem;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--border-radius);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.submit-btn:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ===== FOOTER ===== */
footer {
  background-color: var(--dark-bg);
  color: var(--white);
  padding: 3rem 0 1.5rem;
  text-align: center;
  position: relative;
}

footer::before {
  content: "";
  position: absolute;
  top: -50px;
  left: 0;
  width: 100%;
  height: 100px;
  background-color: var(--light-bg);
  clip-path: polygon(0 0, 100% 70%, 100% 100%, 0% 100%);
  z-index: 1;
}

footer p {
  position: relative;
  z-index: 2;
  opacity: 0.9;
  font-size: 0.95rem;
}

footer a {
  color: var(--secondary);
  transition: var(--transition);
}

footer a:hover {
  color: #ffb300;
}

/* ===== MODAL ===== */
.modal {
  display: none;
  position: fixed;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
  .app-showcase-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .app-showcase-visual {
    order: -1;
  }

  .app-phone-mockup {
    width: 300px;
    height: 600px;
  }

  .companies-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .charts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablets */
@media (max-width: 768px) {

  /* Header Mobile */
  header {
    padding: 0.75rem 1rem;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .logotopbar {
    display: none;
  }

  .logo-icon {
    display: block;
    height: 35px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: none;
  }

  .mobile-nav.active {
    display: block;
  }

  .department-name {
    font-size: 14px;
  }

  .store-button {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  /* Hero Mobile */
  .hero {
    padding: 6rem 0 4rem;
    margin-top: 60px;
  }

  .hero-content {
    padding: 0 1rem;
  }

  .hero-background {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .btn-primary {
    padding: 0.85rem 1.8rem;
    font-size: 0.95rem;
  }

  /* Promo Slider Mobile */
  .promo-slider-container {
    height: auto;
    min-height: 140px;
    margin-top: 60px;
    padding: 0.75rem 0;
  }

  .promo-slide {
    width: 320px;
    padding: 0 0.75rem;
  }

  .promo-slide-content {
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: 1rem;
    gap: 1rem;
  }

  .promo-image {
    width: 55px;
    height: 55px;
    padding: 0.35rem;
    flex-shrink: 0;
  }

  .promo-text {
    flex: 1;
    min-width: 0;
  }

  .promo-badge-small {
    font-size: 0.6rem;
    padding: 0.2rem 0.5rem;
    margin-bottom: 0.35rem;
  }

  .promo-text h4 {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    line-height: 1.2;
  }

  .promo-text p {
    font-size: 0.75rem;
    margin-bottom: 0.35rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .promo-link {
    font-size: 0.8rem;
  }

  /* Companies Section Mobile */
  .companies-tags-section {
    padding: 3rem 0;
  }

  .companies-tags-section h2 {
    font-size: 1.8rem;
    padding: 0 1rem;
  }

  .companies-tags-section>p {
    font-size: 1rem;
    padding: 0 1rem;
    margin: 1.5rem auto 2.5rem;
  }

  .companies-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
    gap: 1rem;
  }

  .company-tag {
    padding: 1.5rem;
    min-height: 150px;
  }

  .company-tag h3 {
    font-size: 1.3rem;
  }

  .company-tag p {
    font-size: 0.9rem;
  }

  /* Section Titles Mobile */
  .section-title {
    font-size: 1.6rem;
  }

  .section-subtitle {
    font-size: 1rem;
    padding: 0 1rem;
  }

  /* Department Promo Mobile */
  .department-promo-section {
    padding: 2rem 0;
  }

  .promo-banner-dept {
    padding: 0 1rem;
  }

  .promo-slide-dept {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .promo-image-dept {
    width: 80px;
    height: 80px;
    padding: 0.75rem;
  }

  .promo-content-dept h3 {
    font-size: 1.3rem;
  }

  .promo-content-dept p {
    font-size: 0.95rem;
  }

  .promo-content-dept .promo-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  /* Department Image Section Mobile */
  .department-image-section {
    padding: 2rem 0;
  }

  .department-image-container {
    padding: 0 1rem;
  }

  .department-hero-image {
    max-width: 100%;
    border-radius: var(--border-radius);
  }

  /* App Showcase Mobile */
  .app-showcase-section {
    padding: 3rem 0;
  }

  .app-showcase-container {
    padding: 0 1rem;
  }

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

  .app-showcase-text h2 {
    font-size: 2.2rem;
  }

  .app-showcase-text h3 {
    font-size: 1.3rem;
  }

  .app-showcase-text>p {
    font-size: 1rem;
  }

  .app-features {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .app-feature {
    padding: 0.85rem 1rem;
    justify-content: center;
  }

  .app-feature i {
    font-size: 1.5rem;
  }

  .app-feature span {
    font-size: 0.9rem;
  }

  .app-download-buttons {
    flex-direction: column;
    align-items: center;
  }

  .app-store-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    padding: 0.75rem 1.5rem;
  }

  .app-store-btn i {
    font-size: 2rem;
  }

  .store-name {
    font-size: 1rem;
  }

  .app-phone-mockup {
    width: 220px;
    height: 440px;
    border-radius: 30px;
    padding: 10px;
  }

  .app-phone-mockup::before {
    width: 60px;
    height: 20px;
    top: 8px;
  }

  .app-screenshot {
    border-radius: 22px;
  }

  /* About Section Mobile */
  .about-section {
    padding: 3rem 0;
  }

  .about-content {
    padding: 0 1rem;
  }

  .about-content p {
    font-size: 1rem;
  }

  .about-stats {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 0 1rem;
  }

  .stat-item {
    padding: 1.5rem;
  }

  .stat-item h3 {
    font-size: 2rem;
  }

  .stat-item p {
    font-size: 0.85rem;
  }

  /* Services Section Mobile */
  .services-section {
    padding: 3rem 0;
  }

  .service-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  .service-item {
    padding: 1.5rem;
  }

  .service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }

  .service-item h3 {
    font-size: 1.2rem;
  }

  .service-item p {
    font-size: 0.9rem;
  }

  /* Performance Section Mobile */
  .performance-section {
    padding: 3rem 0;
  }

  .performance-content {
    padding: 0 1rem;
    margin-bottom: 2rem;
  }

  .performance-text h2 {
    font-size: 1.8rem;
  }

  .performance-text p {
    font-size: 1rem;
  }

  .charts-container {
    padding: 0 1rem;
  }

  .charts-container h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }

  .charts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .pie-chart {
    width: 100px;
    height: 100px;
  }

  .pie-chart::before {
    width: 80px;
    height: 80px;
    font-size: 1.1rem;
  }

  .chart-item h4 {
    font-size: 1rem;
  }

  .chart-label {
    font-size: 0.8rem;
  }

  /* Contact Section Mobile */
  .contact-section {
    padding: 3rem 0;
  }

  .contact-container {
    padding: 0 1rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .form-group {
    margin-bottom: 1rem;
  }

  .form-group label {
    font-size: 0.9rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 0.65rem;
    font-size: 0.9rem;
  }

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

  .submit-btn {
    padding: 0.85rem;
    font-size: 1rem;
  }

  /* Footer Mobile */
  footer {
    padding: 2.5rem 0 1rem;
  }

  footer::before {
    top: -30px;
    height: 60px;
  }

  footer p {
    font-size: 0.85rem;
    padding: 0 1rem;
  }

  /* Loader Mobile */
  .loader-stage {
    width: 200px;
    height: 200px;
  }

  .loader-logo {
    max-height: 120px;
    max-width: 160px;
  }
}

/* Small phones */
@media (max-width: 480px) {

  /* Header Extra Small */
  header {
    padding: 0.5rem 0.75rem;
  }

  .logo-icon {
    height: 30px;
  }

  .department-name {
    font-size: 12px;
  }

  .store-button {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
  }

  /* Hero Extra Small */
  .hero {
    padding: 5rem 0 3rem;
    margin-top: 55px;
  }

  .hero-background {
    font-size: 1.4rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  .btn-primary {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  /* Promo Slider Extra Small */
  .promo-slider-container {
    min-height: 120px;
    margin-top: 55px;
  }

  .promo-slide {
    width: 280px;
    padding: 0 0.5rem;
  }

  .promo-slide-content {
    padding: 0.75rem;
    gap: 0.75rem;
  }

  .promo-image {
    width: 45px;
    height: 45px;
  }

  .promo-badge-small {
    font-size: 0.55rem;
  }

  .promo-text h4 {
    font-size: 0.75rem;
  }

  .promo-text p {
    font-size: 0.7rem;
    -webkit-line-clamp: 1;
  }

  .promo-link {
    font-size: 0.7rem;
  }

  /* Companies Extra Small */
  .companies-tags-section {
    padding: 2rem 0;
  }

  .companies-tags-section h2 {
    font-size: 1.5rem;
  }

  .companies-tags-section>p {
    font-size: 0.9rem;
  }

  .company-tag {
    padding: 1.25rem;
    min-height: 120px;
  }

  .company-tag h3 {
    font-size: 1.1rem;
  }

  .company-tag p {
    font-size: 0.85rem;
  }

  /* App Showcase Extra Small */
  .app-showcase-section {
    padding: 2.5rem 0;
  }

  .app-badge {
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
  }

  .app-showcase-text h2 {
    font-size: 1.8rem;
  }

  .app-showcase-text h3 {
    font-size: 1.1rem;
  }

  .app-showcase-text>p {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .app-feature {
    padding: 0.7rem;
  }

  .app-feature i {
    font-size: 1.3rem;
  }

  .app-feature span {
    font-size: 0.8rem;
  }

  .app-store-btn {
    padding: 0.6rem 1rem;
  }

  .app-store-btn i {
    font-size: 1.6rem;
  }

  .download-text {
    font-size: 0.65rem;
  }

  .store-name {
    font-size: 0.9rem;
  }

  .app-phone-mockup {
    width: 180px;
    height: 360px;
    border-radius: 25px;
    padding: 8px;
  }

  .app-phone-mockup::before {
    width: 50px;
    height: 15px;
    top: 6px;
    border-radius: 0 0 12px 12px;
  }

  .app-screenshot {
    border-radius: 18px;
  }

  /* About Extra Small */
  .about-section {
    padding: 2.5rem 0;
  }

  .about-content p {
    font-size: 0.9rem;
  }

  .about-stats {
    gap: 0.75rem;
  }

  .stat-item {
    padding: 1rem;
  }

  .stat-item h3 {
    font-size: 1.6rem;
  }

  .stat-item p {
    font-size: 0.75rem;
  }

  /* Section Titles Extra Small */
  .section-title {
    font-size: 1.4rem;
  }

  .section-title::after {
    width: 50px;
    height: 3px;
  }

  .section-subtitle {
    font-size: 0.9rem;
  }

  /* Department Promo Extra Small */
  .department-promo-section {
    padding: 1.5rem 0;
  }

  .promo-slide-dept {
    padding: 1.25rem;
    gap: 1rem;
  }

  .promo-image-dept {
    width: 65px;
    height: 65px;
    padding: 0.5rem;
  }

  .promo-content-dept .promo-badge {
    font-size: 0.7rem;
    padding: 0.35rem 1rem;
  }

  .promo-content-dept h3 {
    font-size: 1.1rem;
  }

  .promo-content-dept p {
    font-size: 0.85rem;
  }

  .promo-content-dept .promo-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }

  /* Services Extra Small */
  .services-section {
    padding: 2.5rem 0;
  }

  .service-item {
    padding: 1.25rem;
  }

  .service-icon {
    font-size: 2rem;
  }

  .service-item h3 {
    font-size: 1.1rem;
  }

  .service-item p {
    font-size: 0.85rem;
  }

  /* Performance Extra Small */
  .performance-section {
    padding: 2.5rem 0;
  }

  .performance-text h2 {
    font-size: 1.5rem;
  }

  .performance-text p {
    font-size: 0.9rem;
  }

  .charts-container h3 {
    font-size: 1.3rem;
  }

  .charts-grid {
    gap: 1rem;
  }

  .pie-chart {
    width: 80px;
    height: 80px;
  }

  .pie-chart::before {
    width: 60px;
    height: 60px;
    font-size: 0.9rem;
  }

  .chart-item h4 {
    font-size: 0.85rem;
  }

  .chart-label {
    font-size: 0.7rem;
  }

  /* Contact Extra Small */
  .contact-section {
    padding: 2.5rem 0;
  }

  .contact-form {
    padding: 1.25rem;
  }

  .contact-form h3 {
    font-size: 1.3rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 0.55rem;
    font-size: 0.85rem;
  }

  .submit-btn {
    padding: 0.75rem;
    font-size: 0.9rem;
  }

  /* Footer Extra Small */
  footer {
    padding: 2rem 0 0.75rem;
  }

  footer::before {
    top: -20px;
    height: 40px;
  }

  footer p {
    font-size: 0.75rem;
    line-height: 1.5;
  }

  /* Loader Extra Small */
  .loader-stage {
    width: 150px;
    height: 150px;
  }

  .loader-logo {
    max-height: 90px;
    max-width: 120px;
  }
}

/* ===== MODAL STYLES ===== */
.modal {
  display: none;
  /* Hidden by default */
  position: fixed;
  z-index: 10001;
  /* Above header */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  /* Black w/ opacity */
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.active {
  opacity: 1;
}

.modal-content {
  background-color: var(--white);
  margin: auto;
  padding: 2.5rem;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 500px;
  position: relative;
  text-align: center;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.modal.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  top: 15px;
  right: 20px;
  cursor: pointer;
  transition: color 0.3s;
}

.modal-close:hover,
.modal-close:focus {
  color: var(--secondary);
  text-decoration: none;
  cursor: pointer;
}

.modal-content h2 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.modal-content p {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.modal-btn {
  background-color: var(--secondary);
  color: var(--primary);
  border: none;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
}

.modal-btn:hover {
  background-color: #ffb300;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}