/* =====================================================
   GUARDA MIRIM TB - MODERN DESIGN SYSTEM 2024
   ===================================================== */

/* CSS Variables - Design Tokens */
:root {
  /* Primary Color Palette - Military Brown */
  --primary-50: #fdf8f3;
  --primary-100: #f9f0e6;
  --primary-200: #f2e0cc;
  --primary-300: #e8c8a3;
  --primary-400: #dba870;
  --primary-500: #c68b4d;
  --primary-600: #b3743a;
  --primary-700: #8f5d2e;
  --primary-800: #6b4723;
  --primary-900: #4a3219;

  /* Accent Colors - Harmonized with Military Brown */
  --accent-orange: #d97706;
  --accent-green: #059669;
  --accent-purple: #7c3aed;
  --accent-yellow: #ca8a04;

  /* Neutral Colors */
  --neutral-0: #ffffff;
  --neutral-50: #f8fafc;
  --neutral-100: #f1f5f9;
  --neutral-200: #e2e8f0;
  --neutral-300: #cbd5e1;
  --neutral-400: #94a3b8;
  --neutral-500: #64748b;
  --neutral-600: #475569;
  --neutral-700: #334155;
  --neutral-800: #1e293b;
  --neutral-900: #0f172a;

  /* Typography */
  --font-family-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  --font-family-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  --font-family-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Font Sizes */
  --text-xs: 0.75rem;     /* 12px */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg: 1.125rem;    /* 18px */
  --text-xl: 1.25rem;     /* 20px */
  --text-2xl: 1.5rem;     /* 24px */
  --text-3xl: 1.875rem;   /* 30px */
  --text-4xl: 2.25rem;    /* 36px */
  --text-5xl: 3rem;       /* 48px */
  --text-6xl: 3.75rem;    /* 60px */

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Border Radius */
  --radius-sm: 0.125rem;
  --radius: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-3xl: 2rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-index layers */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  --z-toast: 1080;
}

/* =====================================================
   GLOBAL STYLES & RESET
   ===================================================== */

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

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

body {
  font-family: var(--font-family-primary);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--neutral-700);
  background-color: var(--neutral-0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--neutral-900);
  margin-bottom: var(--space-4);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  margin-bottom: var(--space-4);
  color: var(--neutral-600);
}

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

a:hover {
  color: var(--primary-700);
}

/* =====================================================
   MODERN NAVIGATION
   ===================================================== */

.modern-navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--neutral-200);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  transition: all var(--transition-normal);
}

.modern-navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-lg);
}

.navbar-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-family: var(--font-family-heading);
  text-decoration: none;
  padding: var(--space-2);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.navbar-brand:hover {
  background: rgba(139, 69, 19, 0.05);
  transform: translateY(-1px);
}

.brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.brand-icon img {
  height: 50px;
  width: auto;
  transition: all var(--transition-fast);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.brand-icon::after {
  content: '';
  position: absolute;
  top: 2px;
  right: 2px;
  bottom: 2px;
  left: 2px;
  background: linear-gradient(135deg, rgba(139, 69, 19, 0.1), rgba(143, 93, 46, 0.1));
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.navbar-brand:hover .brand-icon::after {
  opacity: 1;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--primary-700);
  margin-bottom: var(--space-1);
  letter-spacing: -0.5px;
}

.brand-location {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--neutral-600);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.nav-link {
  position: relative;
  padding: var(--space-2) var(--space-4);
  font-weight: 500;
  color: var(--neutral-600);
  transition: all var(--transition-fast);
  border-radius: var(--radius);
}

.nav-link:hover {
  color: var(--primary-600);
  background-color: var(--primary-50);
}

.nav-link.active {
  color: var(--primary-600);
  background-color: var(--primary-100);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -8px;
  left: 50%;
  background: var(--primary-500);
  transition: all var(--transition-fast);
  transform: translateX(-50%);
}

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

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: var(--space-2);
  cursor: pointer;
  border-radius: var(--radius);
  transition: background-color var(--transition-fast);
}

.mobile-menu-toggle:hover {
  background-color: var(--neutral-100);
}

/* =====================================================
   HERO SECTION - MODERN DESIGN
   ===================================================== */

.hero-modern {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #8f5d2e 0%, #6b4723 100%);
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  animation: float 20s ease-in-out infinite;
}

.hero-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  position: relative;
  z-index: 2;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.hero-text {
  animation: slideInLeft 1s ease-out;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: white;
  margin-bottom: var(--space-6);
  line-height: 1.1;
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-8);
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.btn-primary-modern {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  background: var(--primary-600);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--text-base);
  text-decoration: none;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-lg);
}

.btn-primary-modern:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  color: white !important;
}

.btn-primary-modern:focus-visible,
.btn-primary-modern:active,
.btn-primary-modern.active {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
  color: white !important;
  outline: none;
}

.btn-secondary-modern {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--text-base);
  text-decoration: none;
  transition: all var(--transition-normal);
  backdrop-filter: blur(10px);
}

.btn-secondary-modern:hover {
  transform: translateY(-2px);
  color: white !important;
}

.btn-secondary-modern:focus-visible,
.btn-secondary-modern:active,
.btn-secondary-modern.active {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
  color: white !important;
  outline: none;
}

.hero-visual {
  position: relative;
  animation: slideInRight 1s ease-out;
}

.hero-image-container {
  position: relative;
  border-radius: var(--radius-3xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  transform: rotate(-5deg);
  transition: transform var(--transition-slow);
}

.hero-image-container:hover {
  transform: rotate(0deg) scale(1.05);
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
}

/* =====================================================
   MODERN CARD SYSTEM
   ===================================================== */

.card-modern {
  background: var(--neutral-0);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow);
  border: 1px solid var(--neutral-200);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-500), var(--accent-orange));
  transform: translateX(-100%);
  transition: transform var(--transition-normal);
}

.card-modern:hover::before {
  transform: translateX(0);
}

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

.card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}

.card-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--neutral-900);
  margin-bottom: var(--space-3);
}

.card-description {
  color: var(--neutral-600);
  line-height: 1.6;
}

/* =====================================================
   GRID LAYOUTS
   ===================================================== */

.grid-modern {
  display: grid;
  gap: var(--space-6);
}

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

/* =====================================================
   SECTIONS
   ===================================================== */

.section-modern {
  padding: var(--space-24) 0;
}

.section-alt {
  background: var(--neutral-50);
}

.bg-light {
  background: var(--neutral-50);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.section-title {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--neutral-900);
  margin-bottom: var(--space-4);
}

.section-text {
  font-size: var(--text-lg);
  color: var(--neutral-600);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

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

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

.image-container {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.content-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-slow);
}

.image-container:hover .content-image {
  transform: scale(1.05);
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--neutral-700);
}

.feature-item i {
  color: var(--accent-green);
  font-size: var(--text-lg);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--primary-600);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-link:hover {
  color: var(--primary-700);
  transform: translateX(4px);
}

.card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.card-modern:hover .card-image img {
  transform: scale(1.1);
}

.card-content {
  padding: var(--space-6);
}

.card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
  color: var(--neutral-500);
}

.card-meta .date {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.news-card,
.notice-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-card .card-content,
.notice-card .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card .btn-link,
.notice-card .btn-link {
  margin-top: auto;
}

.about-grid {
  align-items: center;
  gap: var(--space-12);
}

/* =====================================================
   BADGES
   ===================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-primary {
  background: var(--primary-100);
  color: var(--primary-700);
}

.badge-success {
  background: #dcfce7;
  color: #166534;
}

.badge-warning {
  background: #fef3c7;
  color: #92400e;
}

.badge-danger {
  background: #fee2e2;
  color: #991b1b;
}

.container-modern {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-title {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--neutral-900);
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--neutral-600);
  max-width: 600px;
  margin: 0 auto;
}

/* =====================================================
   ANIMATIONS
   ===================================================== */

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--transition-slow);
}

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

/* =====================================================
   FORM STYLES
   ===================================================== */

.form-modern {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-weight: 600;
  color: var(--neutral-700);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  padding: var(--space-4);
  border: 2px solid var(--neutral-300);
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  transition: all var(--transition-fast);
  background: var(--neutral-0);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

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

/* =====================================================
   FOOTER
   ===================================================== */

.footer-modern {
  background: var(--neutral-900);
  color: var(--neutral-300);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.footer-description {
  color: var(--neutral-400);
  line-height: 1.6;
}

.footer-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--neutral-0);
  margin-bottom: var(--space-4);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-link {
  color: var(--neutral-400);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--primary-400);
}

.footer-bottom {
  border-top: 1px solid var(--neutral-800);
  padding-top: var(--space-8);
  text-align: center;
  color: var(--neutral-500);
}

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

@media (max-width: 1024px) {
  .navbar-nav {
    gap: var(--space-4);
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    text-align: center;
  }
  
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .modern-footer .grid-modern {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  .navbar-nav {
    display: none;
  }
  
  .navbar-brand {
    gap: var(--space-3);
  }
  
  .brand-icon img {
    height: 40px;
  }
  
  .brand-name {
    font-size: var(--text-lg);
  }
  
  .brand-location {
    font-size: var(--text-xs);
  }
  
  .hero-title {
    font-size: var(--text-3xl);
  }
  
  .section-modern {
    padding: var(--space-16) 0;
  }
  
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  
  .modern-footer .grid-modern {
    grid-template-columns: 1fr;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-title {
    font-size: var(--text-3xl);
  }
  
  .cta-text {
    font-size: var(--text-lg);
  }
  
  .section-header {
    flex-direction: column;
    text-align: center;
  }
  
  .section-title {
    font-size: var(--text-3xl);
  }
  
  .content-visual {
    order: -1;
  }
  
  .about-grid {
    gap: var(--space-8);
  }
}

@media (max-width: 480px) {
  .container-modern,
  .navbar-container {
    padding: 0 var(--space-4);
  }
  
  .card-modern {
    padding: var(--space-4);
  }
  
  .btn-primary-modern,
  .btn-secondary-modern {
    padding: var(--space-3) var(--space-5);
    font-size: var(--text-sm);
  }
  
  .navbar-brand {
    gap: var(--space-2);
  }
  
  .brand-icon img {
    height: 35px;
  }
  
  .brand-name {
    font-size: var(--text-base);
  }
  
  .brand-location {
    font-size: var(--text-xs);
    letter-spacing: 0.3px;
  }
}

/* =====================================================
   TOAST NOTIFICATIONS
   ===================================================== */

.toast-container {
  position: fixed;
  top: var(--space-6);
  right: var(--space-6);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 400px;
}

.toast {
  background: var(--neutral-0);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--neutral-200);
  opacity: 0;
  transform: translateX(100%);
  transition: all var(--transition-normal);
  overflow: hidden;
}

.toast.show {
  opacity: 1;
  transform: translateX(0);
}

.toast.removing {
  opacity: 0;
  transform: translateX(100%);
}

.toast-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4);
}

.toast-message {
  flex: 1;
  margin-right: var(--space-3);
}

.toast-close {
  background: none;
  border: none;
  font-size: var(--text-lg);
  cursor: pointer;
  color: var(--neutral-500);
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-success {
  border-left: 4px solid var(--accent-green);
}

.toast-error {
  border-left: 4px solid #ef4444;
}

.toast-info {
  border-left: 4px solid var(--primary-500);
}

.toast-warning {
  border-left: 4px solid var(--accent-yellow);
}

/* =====================================================
   MOBILE NAVIGATION
   ===================================================== */

@media (max-width: 768px) {
  .navbar-nav {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: var(--space-6);
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    border-top: 1px solid var(--neutral-200);
  }
  
  .navbar-nav.mobile-active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .navbar-nav li {
    width: 100%;
  }
  
  .nav-link {
    padding: var(--space-4);
    border-radius: var(--radius);
    width: 100%;
    text-align: center;
  }
}

/* =====================================================
   ENHANCED ANIMATIONS
   ===================================================== */

.pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: .5;
  }
}

.bounce {
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: none;
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

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

.scale-in {
  animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* =====================================================
   LOADING STATES
   ===================================================== */

.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* =====================================================
   FORM ENHANCEMENTS
   ===================================================== */

.form-input.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.field-error {
  color: #ef4444;
  font-size: var(--text-sm);
  margin-top: var(--space-1);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.field-error::before {
  content: '\f62d';
  font-family: 'bootstrap-icons';
}

/* =====================================================
   SOCIAL LINKS
   ===================================================== */

.social-links {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neutral-400);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--primary-500);
  color: white;
  transform: translateY(-2px);
}

/* =====================================================
   CTA SECTION
   ===================================================== */

.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: white;
  margin-bottom: var(--space-6);
}

.cta-text {
  font-size: var(--text-xl);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-8);
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

.btn-light {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-light:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-light {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
}

/* =====================================================
   MODERN FOOTER
   ===================================================== */

.modern-footer {
  background: var(--neutral-900);
  color: var(--neutral-300);
  padding: var(--space-24) 0 var(--space-8);
}

.footer-section {
  margin-bottom: var(--space-8);
}

.footer-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: white;
  margin-bottom: var(--space-4);
}

.footer-subtitle {
  font-size: var(--text-lg);
  font-weight: 600;
  color: white;
  margin-bottom: var(--space-4);
}

.footer-text {
  color: var(--neutral-400);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: var(--space-2);
}

.footer-links a {
  color: var(--neutral-400);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary-400);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--neutral-400);
}

.contact-item i {
  color: var(--primary-400);
  font-size: var(--text-lg);
}

.footer-bottom {
  border-top: 1px solid var(--neutral-800);
  padding-top: var(--space-6);
  margin-top: var(--space-12);
  text-align: center;
  color: var(--neutral-500);
}

/* =====================================================
   MODERN FOOTER STYLES
   ===================================================== */

.modern-footer {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: var(--neutral-100);
  position: relative;
}

.modern-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--primary-500) 50%, transparent 100%);
}

.footer-main {
  padding: var(--space-8) 0 var(--space-6);
}

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

.footer-brand-section {
  max-width: 600px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.footer-logo {
  height: 50px;
  width: auto;
  filter: brightness(0) invert(1);
}

.brand-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.footer-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--neutral-100);
  margin: 0;
}

.footer-tagline {
  font-size: var(--text-sm);
  color: var(--primary-400);
  font-weight: 500;
  margin: 0;
}

.footer-description {
  color: var(--neutral-300);
  line-height: 1.6;
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
}

.social-links {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--neutral-100);
  text-decoration: none;
  transition: all var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--text-lg);
}

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.social-link.facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
}

.social-link.instagram:hover {
  background: linear-gradient(135deg, #e4405f, #f77737);
  border-color: #e4405f;
}

.social-link.youtube:hover {
  background: #ff0000;
  border-color: #ff0000;
}

.social-link.whatsapp:hover {
  background: #25d366;
  border-color: #25d366;
}



.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  color: var(--neutral-300);
}

.contact-item i {
  color: var(--primary-400);
  font-size: var(--text-lg);
  margin-top: 2px;
  flex-shrink: 0;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.contact-details strong {
  color: var(--neutral-100);
  font-size: var(--text-sm);
  font-weight: 600;
}

.contact-details span {
  color: var(--neutral-300);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.footer-partners {
  background: rgba(255, 255, 255, 0.02);
  padding: var(--space-12) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.partners-title {
  text-align: center;
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--neutral-100);
  margin-bottom: var(--space-8);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-8);
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}

.partner-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.partner-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.partner-item img {
  max-width: 100%;
  height: auto;
  filter: grayscale(100%) brightness(0.8);
  transition: filter var(--transition-fast);
}

.partner-item:hover img {
  filter: grayscale(0%) brightness(1);
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.3);
  padding: var(--space-6) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.copyright {
  color: var(--neutral-400);
  font-size: var(--text-sm);
}

.footer-legal {
  display: flex;
  gap: var(--space-6);
}

.footer-legal a {
  color: var(--neutral-400);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.footer-legal a:hover {
  color: var(--primary-400);
}

.footer-legal .separator {
  color: var(--neutral-500);
  margin: 0 var(--space-2);
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer-main {
    padding: var(--space-6) 0 var(--space-4);
  }
  
  .footer-brand-section {
    max-width: none;
  }
  
  .footer-brand {
    flex-direction: column;
    gap: var(--space-3);
  }
  
  .social-links {
    justify-content: center;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: var(--space-3);
  }
  
  .footer-legal {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .footer-legal {
    flex-direction: column;
    gap: var(--space-2);
  }
  
  .footer-legal .separator {
    display: none;
  }
}

/* =====================================================
   STATS CARDS
   ===================================================== */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.stat-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  box-shadow: var(--shadow);
  transition: all var(--transition-fast);
  border: 1px solid var(--neutral-100);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  border-radius: 0 var(--radius) var(--radius) 0;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-200);
}

.stat-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--text-xl);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(139, 69, 19, 0.2);
}

.stat-content {
  flex: 1;
}

.stat-number {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--neutral-900);
  margin: 0 0 var(--space-1) 0;
  line-height: 1.2;
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--neutral-600);
  margin: 0;
  font-weight: 500;
  line-height: 1.4;
}

/* =====================================================
   RESPONSIVE STATS
   ===================================================== */

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-6);
  }
  
  .stat-card {
    padding: var(--space-4);
    gap: var(--space-3);
  }
  
  .stat-icon {
    width: 50px;
    height: 50px;
    font-size: var(--text-lg);
  }
  
  .stat-number {
    font-size: var(--text-xl);
  }
  
  .stat-label {
    font-size: var(--text-xs);
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
  
  .stat-card {
    padding: var(--space-3);
  }
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */

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

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

.hidden { display: none; }
.visible { display: block; }

.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }

.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }

.shadow { box-shadow: var(--shadow); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
