:root {
  /* Color Palette */
  --primary-color: #0062cc;
  --primary-dark: #004fa3;
  --primary-light: #3383e3;
  --secondary-color: #6c757d;
  --secondary-dark: #5a6268;
  --secondary-light: #868e96;
  --accent-color: #2d8659;
  --accent-dark: #1e5d3d;
  --accent-light: #4eaf7b;
  --neutral-50: #f8f9fa;
  --neutral-100: #f1f3f5;
  --neutral-200: #e9ecef;
  --neutral-300: #dee2e6;
  --neutral-400: #ced4da;
  --neutral-500: #adb5bd;
  --neutral-600: #6c757d;
  --neutral-700: #495057;
  --neutral-800: #343a40;
  --neutral-900: #212529;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  
  /* Typography */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  
  /* Spacing */
  --section-spacing: 5rem;
  --element-spacing: 1.5rem;
  
  /* Borders */
  --border-radius-sm: 0.25rem;
  --border-radius: 0.5rem;
  --border-radius-lg: 1rem;
  
  /* Shadows */
  --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Base Styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--neutral-700);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--neutral-50);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--neutral-800);
  margin-bottom: 1rem;
}

h1 {
  font-size: calc(2rem + 1.5vw);
}

h2 {
  font-size: calc(1.5rem + 1vw);
}

h3 {
  font-size: calc(1.2rem + 0.75vw);
}

h4 {
  font-size: calc(1rem + 0.5vw);
}

h5 {
  font-size: calc(0.9rem + 0.25vw);
}

h6 {
  font-size: calc(0.8rem + 0.1vw);
}

p {
  margin-bottom: 1rem;
}

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

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

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

/* Button Styles */
.btn, 
button, 
input[type='submit'] {
  display: inline-block;
  font-weight: 500;
  text-align: center;
  vertical-align: middle;
  user-select: none;
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: var(--border-radius);
  transition: all var(--transition-normal);
  text-transform: none;
  font-family: var(--font-body);
  cursor: pointer;
}

.btn:focus, 
button:focus, 
input[type='submit']:focus {
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 98, 204, 0.25);
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-outline-light {
  color: white;
  border-color: white;
  background-color: transparent;
}

.btn-outline-light:hover {
  color: var(--neutral-800);
  background-color: white;
  border-color: white;
  transform: translateY(-2px);
}

.btn-link {
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  padding: 0.5rem 0;
  position: relative;
}

.btn-link:hover {
  color: var(--primary-dark);
}

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

.btn-link:hover:after {
  width: 100%;
}

/* Layout Components */
.section-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--neutral-800);
}

.title-underline {
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  margin: 0 auto 2rem;
  border-radius: 2px;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #fff;
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.card-content {
  width: 100%;
}

.image-container {
  width: 100%;
  height: auto;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.progress-wrapper {
  margin-bottom: 1rem;
}

.progress {
  height: 10px;
  border-radius: 5px;
  background-color: var(--neutral-200);
  overflow: hidden;
}

.progress-bar {
  background-color: var(--primary-color);
  height: 100%;
  border-radius: 5px;
  transition: width 1s ease;
}

.progress-bar.bg-success {
  background-color: var(--success-color);
}

/* Header & Navigation */
header {
  background-color: white;
  box-shadow: var(--shadow-sm);
}

.navbar {
  padding: 1rem 0;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 700;
}

.nav-item {
  margin: 0 0.2rem;
}

.nav-link {
  color: var(--neutral-700);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--primary-color);
  transition: width var(--transition-normal), left var(--transition-normal);
}

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

.nav-link:hover::after {
  width: 100%;
  left: 0;
}

/* Hero Section */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 80vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  margin-top: 76px;
  padding: 5rem 0;
}

.hero-section h1, 
.hero-section p, 
.hero-section .btn {
  position: relative;
  z-index: 2;
}

.hero-section .lead {
  font-size: calc(1.1rem + 0.3vw);
  margin-bottom: 2rem;
}

/* History Section */
#historia {
  padding: var(--section-spacing) 0;
}

#historia h3 {
  color: var(--primary-color);
}

#historia p {
  color: var(--neutral-700);
}

/* Cases Section */
#casos-exito {
  padding: var(--section-spacing) 0;
  background-color: var(--neutral-100);
}

.badge {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  border-radius: 50px;
  font-weight: 600;
}

/* Resources Section */
#recursos {
  padding: var(--section-spacing) 0;
}

/* Sustainability Section */
#sostenibilidad {
  padding: var(--section-spacing) 0;
  background-color: var(--neutral-100);
}

#sostenibilidad h3 {
  color: var(--accent-color);
}

/* Blog Section */
#blog {
  padding: var(--section-spacing) 0;
}

#blog .text-muted {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

#blog h4 {
  font-size: calc(1.1rem + 0.2vw);
  margin-bottom: 1rem;
}

#blog .btn-link {
  font-weight: 600;
  padding-left: 0;
}

/* Contact Section */
#contacto {
  padding: var(--section-spacing) 0;
  background-color: var(--neutral-100);
}

.form-control, .form-select {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--neutral-300);
  border-radius: var(--border-radius);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 0.2rem rgba(0, 98, 204, 0.25);
}

/* Footer */
footer {
  padding: 5rem 0 2rem;
  background-color: var(--neutral-900);
  color: white;
}

footer h5, footer h6 {
  color: white;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

footer p, footer a {
  color: var(--neutral-400);
}

footer a:hover {
  color: white;
}

footer ul {
  padding-left: 0;
}

footer li {
  margin-bottom: 0.5rem;
}

footer hr {
  border-color: var(--neutral-700);
  margin: 2rem 0;
}

/* Social Media Links */
.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: var(--neutral-400);
  transition: color var(--transition-fast);
}

.social-links a:hover {
  color: white;
  text-decoration: none;
}

/* Success Page */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.success-content {
  max-width: 600px;
}

.success-icon {
  font-size: 5rem;
  color: var(--success-color);
  margin-bottom: 2rem;
}

/* Privacy & Terms Pages */
.privacy-page, .terms-page {
  padding-top: 100px;
  padding-bottom: 3rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

.fade-in {
  animation: fadeIn 1s forwards;
}

.fade-in-up {
  animation: fadeInUp 1s forwards;
}

.scale-in {
  animation: scaleIn 0.8s forwards;
}

/* Particles Animation */
.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.particle {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
}

/* Media Queries */
@media (max-width: 992px) {
  .navbar-collapse {
    background-color: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
  }
  
  .nav-link::after {
    left: 0;
  }
  
  .hero-section {
    min-height: 60vh;
  }
}

@media (max-width: 768px) {
  :root {
    --section-spacing: 4rem;
  }
  
  .hero-section {
    min-height: 50vh;
  }
  
  .card-image {
    height: 200px;
  }
}

@media (max-width: 576px) {
  :root {
    --section-spacing: 3rem;
  }
  
  .hero-section {
    min-height: 40vh;
  }
  
  .btn, button, input[type='submit'] {
    padding: 0.4rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .card-image {
    height: 180px;
  }
}
.navbar-brand img{
  width: 30px;
  height: 30px;
}