:root {
  /* Triadic color scheme */
  --primary-color: #1e50a2; /* YPF blue */
  --secondary-color: #a21e50; /* Vibrant red */
  --tertiary-color: #50a21e; /* Fresh green */
  
  /* Complementary colors */
  --primary-dark: #153a7a;
  --primary-light: #5077c7;
  --secondary-dark: #7a1539;
  --secondary-light: #c7507a;
  --tertiary-dark: #397a15;
  --tertiary-light: #77c750;
  
  /* Neutral colors */
  --light: #f9f9f9;
  --light-gray: #eaeaea;
  --medium-gray: #999999;
  --dark-gray: #333333;
  --dark: #222222;
  
  /* Text colors */
  --text-dark: #222222;
  --text-medium: #555555;
  --text-light: #ffffff;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.2);
  
  /* Border radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-xxl: 2rem;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* General Styles */
html, body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-dark);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  padding-top: 76px; /* Header height */
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-medium);
  margin-bottom: 1.5rem;
}

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

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

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

.display-1, .display-2, .display-3, .display-4 {
  font-weight: 700;
  line-height: 1.2;
}

.lead {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.5;
}

.text-white {
  color: var(--text-light) !important;
}

.text-primary {
  color: var(--primary-color) !important;
}

.text-secondary {
  color: var(--secondary-color) !important;
}

.text-tertiary {
  color: var(--tertiary-color) !important;
}

/* Button styles */
.btn {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 50px;
  transition: all var(--transition-normal);
  text-transform: uppercase;
  box-shadow: var(--shadow-md);
  border: none;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn:active {
  transform: translateY(1px);
  box-shadow: var(--shadow-sm);
}

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

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

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

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  color: white;
}

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

.btn-tertiary:hover {
  background-color: var(--tertiary-dark);
  color: white;
}

.btn-outline-light {
  border: 2px solid white;
  color: white;
}

.btn-outline-light:hover {
  background-color: white;
  color: var(--primary-color);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Card styles */
.card {
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: white;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  box-shadow: var(--shadow-lg);
}

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

.card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  text-align: 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-body {
  padding: 2rem;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-title {
  font-weight: 700;
  margin-bottom: 1rem;
}

.card-text {
  color: var(--text-medium);
  flex-grow: 1;
}

/* Navbar */
.navbar {
  padding: 1rem 0;
  transition: background-color var(--transition-normal), box-shadow var(--transition-normal);
  box-shadow: var(--shadow-md);
}

.navbar-dark {
  background-color: var(--dark);
}

.navbar-brand img {
  height: 40px;
  width: auto;
}

.navbar-nav .nav-link {
  font-weight: 600;
  padding: 0.5rem 1rem;
  color: rgba(255, 255, 255, 0.85) !important;
  transition: color var(--transition-fast);
}

.navbar-nav .nav-link:hover {
  color: white !important;
}

.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Hero Section */
.hero-section {
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-section h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section .lead {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Sustainability Section */
.sustainability-timeline {
  background-color: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
}

.timeline-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.timeline-container::after {
  content: '';
  position: absolute;
  width: 6px;
  background-color: var(--primary-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
  border-radius: 3px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
  margin-bottom: 30px;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  background-color: white;
  border: 4px solid var(--primary-color);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-item:nth-child(odd)::after {
  right: -12px;
}

.timeline-item:nth-child(even)::after {
  left: -12px;
}

.timeline-date {
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.timeline-content {
  padding: 20px 30px;
  background-color: var(--light-gray);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.timeline-content h4 {
  margin-top: 0;
}

.timeline-content p {
  margin-bottom: 0;
}

/* Our Process Section */
.process-card .card-image {
  height: 200px;
}

.custom-slider {
  margin-bottom: 1.5rem;
}

.slider-label {
  font-weight: 600;
  color: var(--text-dark);
}

.slider-container {
  display: flex;
  align-items: center;
}

.slider-track {
  flex-grow: 1;
  height: 10px;
  background-color: var(--light-gray);
  border-radius: 5px;
  overflow: hidden;
  margin-right: 15px;
}

.slider-fill {
  height: 100%;
  background-color: var(--primary-color);
  border-radius: 5px;
}

.slider-value {
  font-weight: 700;
  color: var(--primary-color);
  width: 50px;
  text-align: right;
}

.toggle-container {
  padding: 0.5rem 0;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-switch label {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--light-gray);
  border-radius: 34px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.toggle-switch label::before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.3s;
}

.toggle-switch input:checked + label {
  background-color: var(--primary-color);
}

.toggle-switch input:checked + label::before {
  transform: translateX(26px);
}

/* Accolades Section */
.accolade-card {
  text-align: center;
}

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

/* Resources Section */
.resource-card .card-image {
  height: 200px;
}

.resource-links li {
  margin-bottom: 1rem;
}

.resource-links a {
  display: block;
  padding: 0.75rem 1rem;
  background-color: var(--light-gray);
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all var(--transition-fast);
}

.resource-links a:hover {
  background-color: var(--primary-light);
  color: white;
  transform: translateX(5px);
}

/* Behind the Scenes Section */
.scenes-card .card-image {
  height: 250px;
}

.quality-control-stats {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stat-item {
  padding: 1.5rem;
  background-color: var(--light-gray);
  border-radius: var(--radius-lg);
  transition: transform var(--transition-normal);
}

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

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-medium);
}

/* Statistics Section */
.stat-card {
  background-color: white;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.stat-icon {
  font-size: 2.5rem;
}

.region-stat-item, .fuel-stat-item {
  margin-bottom: 1.5rem;
}

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

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

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

.fuel-icon {
  font-size: 1.5rem;
}

/* Contact Section */
.contact-info-card {
  height: 100%;
}

.contact-item {
  margin-bottom: 1.5rem;
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.contact-map {
  width: 100%;
  height: 250px;
  margin-top: 1.5rem;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.contact-form-card {
  height: 100%;
}

.form-control, .form-select {
  padding: 0.75rem 1.25rem;
  border: 2px solid var(--light-gray);
  transition: border-color var(--transition-fast);
}

.form-control:focus, .form-select:focus {
  box-shadow: none;
  border-color: var(--primary-color);
}

.form-control-lg, .form-select-lg {
  font-size: 1rem;
}

textarea.form-control {
  min-height: 150px;
}

/* Footer */
footer {
  background-color: var(--dark);
  color: white;
  padding: 4rem 0;
}

footer h4 {
  color: white;
  margin-bottom: 1.5rem;
}

footer p {
  color: rgba(255, 255, 255, 0.7);
}

footer ul {
  margin: 0;
  padding: 0;
}

footer ul li {
  margin-bottom: 0.75rem;
}

footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

footer a:hover {
  color: white;
}

.social-links a {
  display: inline-block;
  margin-right: 1rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.social-links a:hover {
  transform: translateY(-3px);
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 1rem;
  z-index: 9999;
  display: none;
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.cookie-content p {
  margin: 0;
  color: white;
}

.cookie-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color var(--transition-fast);
  margin-left: 1rem;
}

.cookie-button:hover {
  background-color: var(--primary-dark);
}

/* 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;
  padding: 3rem;
  background-color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

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

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

.privacy-content, .terms-content {
  background-color: white;
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* Parallax Effects */
.parallax-section {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

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

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

/* Media Queries */
@media (max-width: 992px) {
  .timeline-container::after {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  .timeline-item:nth-child(even) {
    left: 0;
  }
  
  .timeline-item:nth-child(odd)::after,
  .timeline-item:nth-child(even)::after {
    left: 18px;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .hero-section .lead {
    font-size: 1.25rem;
  }
}

@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-section .lead {
    font-size: 1.1rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-button {
    margin-top: 1rem;
    margin-left: 0;
  }
}

@media (max-width: 576px) {
  body {
    padding-top: 62px;
  }
  
  .navbar-brand img {
    height: 30px;
  }
  
  .btn {
    padding: 0.5rem 1rem;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem;
  }
}

/* Utility Classes */
.rounded-4 {
  border-radius: var(--radius-lg) !important;
}

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

.object-fit-cover {
  object-fit: cover;
}

.read-more {
  display: inline-block;
  font-weight: 600;
  color: var(--primary-color);
  margin-top: 1rem;
  transition: all var(--transition-fast);
}

.read-more:hover {
  color: var(--primary-dark);
  transform: translateX(5px);
}

.read-more::after {
  content: " →";
  transition: transform var(--transition-fast);
}

.read-more:hover::after {
  transform: translateX(3px);
}