:root {
  /* Triadic color scheme based on YPF corporate colors */
  --primary-color: #0033a0; /* YPF Blue */
  --secondary-color: #ffcc00; /* YPF Yellow */
  --accent-color: #e63312; /* Complementary Red */
  
  /* Shades and tints */
  --primary-dark: #00267a;
  --primary-light: #335db5;
  --secondary-dark: #e6b800;
  --secondary-light: #ffd633;
  --accent-dark: #c52b0e;
  --accent-light: #f05941;
  
  /* Neutral colors */
  --dark: #222222;
  --medium-dark: #555555;
  --medium: #888888;
  --medium-light: #cccccc;
  --light: #f5f5f5;
  
  /* Typography */
  --heading-font: 'Inter', sans-serif;
  --body-font: 'IBM Plex Sans', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 5rem;
  
  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 50%;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
  
  /* 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(--body-font);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--light);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}

.display-2 {
  font-weight: 900;
  letter-spacing: -0.02em;
}

p {
  margin-bottom: 1.5rem;
}

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

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;
  padding: 0.75rem 1.5rem;
  font-family: var(--heading-font);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary, 
button.btn-primary,
input[type="submit"].btn-primary {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.btn-secondary, 
button.btn-secondary,
input[type="submit"].btn-secondary {
  background-color: var(--secondary-color);
  color: var(--dark);
  border-color: var(--secondary-color);
}

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  border-color: var(--secondary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

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

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

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

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

.animated-btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.animated-btn:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.2);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-normal);
  z-index: -1;
}

.animated-btn:hover:after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Header Styles */
.header {
  background-color: var(--primary-color);
  padding: 1rem 0;
  transition: all var(--transition-normal);
  z-index: 1000;
}

.header.scrolled {
  padding: 0.5rem 0;
  box-shadow: var(--shadow-md);
}

.navbar-brand img {
  transition: all var(--transition-normal);
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all var(--transition-normal);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus,
.navbar-dark .navbar-nav .active > .nav-link {
  color: white;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 10rem 0 6rem;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: white;
  text-align: center;
  margin-top: 0;
}

.hero:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
  z-index: 0;
}

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

.hero h1 {
  color: white;
  margin-bottom: var(--spacing-md);
  font-size: clamp(2.5rem, 5vw, 4rem);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p.lead {
  color: white;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  margin-bottom: var(--spacing-lg);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.custom-progress {
  position: relative;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  margin: 2rem auto;
  max-width: 400px;
}

.custom-progress .progress-bar {
  height: 100%;
  background-color: var(--secondary-color);
  border-radius: var(--radius-full);
  position: relative;
  transition: width 1.5s ease-in-out;
}

.custom-progress .progress-text {
  text-align: center;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

/* Section Styles */
section {
  position: relative;
  padding: var(--spacing-xl) 0;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 800;
  color: var(--dark);
  text-align: center;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--medium-dark);
  margin-bottom: var(--spacing-lg);
  text-align: center;
}

.section-divider {
  height: 4px;
  width: 60px;
  background-color: var(--secondary-color);
  margin: 0 auto var(--spacing-md);
  border-radius: var(--radius-full);
}

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

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

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

.bg-accent {
  background-color: var(--accent-color);
  color: white;
}

/* Vision Section */
.vision-section {
  position: relative;
  overflow: hidden;
}

.vision-image {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-slow);
}

.vision-image:hover {
  transform: scale(1.02);
}

.vision-content h3 {
  font-size: 2rem;
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
}

.custom-toggles {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.toggle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-sm);
  background-color: var(--light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

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

.toggle-item.active {
  background-color: var(--primary-light);
  color: white;
}

.toggle-label {
  font-weight: 600;
}

/* Switch styles */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--medium-light);
  transition: var(--transition-normal);
  border-radius: var(--radius-full);
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: var(--transition-normal);
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary-color);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

/* Accolades Section */
.accolades-section {
  position: relative;
}

.card {
  height: 100%;
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.card-image {
  width: 100%;
  height: 240px;
  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 {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: var(--spacing-md);
}

.card-content h3 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
  font-weight: 700;
}

.custom-slider {
  margin-top: var(--spacing-md);
}

.slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--medium-light);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.dot.active {
  background-color: var(--primary-color);
  transform: scale(1.2);
}

/* External Resources Section */
.external-resources {
  background-color: white;
}

.resource-card {
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  background-color: var(--light);
  text-align: center;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.card-icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: var(--spacing-sm);
  border: 3px solid var(--primary-color);
  padding: 3px;
}

.card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.resource-card h3 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

/* Community Section */
.community-section {
  position: relative;
  color: white;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.community-section .section-title {
  color: white;
}

.community-card {
  height: 100%;
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
}

.community-card h3 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

.community-stats {
  margin-top: var(--spacing-md);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-color);
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--medium-dark);
  margin-top: 5px;
}

/* Behind the Scenes Section */
.behind-scenes-section {
  position: relative;
  background-color: white;
}

.scene-image {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-slow);
}

.scene-image:hover {
  transform: scale(1.02);
}

.scene-content h3 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

.quality-steps, .tech-features {
  margin-top: var(--spacing-md);
}

.step {
  margin-bottom: var(--spacing-xs);
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  margin-right: var(--spacing-sm);
}

.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-xs);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--light);
  color: var(--primary-color);
  border-radius: 50%;
  margin-right: var(--spacing-sm);
  font-style: normal;
  font-size: 1.2rem;
}

/* Contact Section */
.contact-section {
  position: relative;
}

.contact-info, .contact-form {
  height: 100%;
}

.info-item {
  margin-bottom: var(--spacing-md);
}

.icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(0, 51, 160, 0.1);
  color: var(--primary-color);
  border-radius: 50%;
  font-size: 1.2rem;
}

.map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.form-control, .form-select {
  padding: 0.75rem;
  border: 1px solid var(--medium-light);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 51, 160, 0.1);
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Footer */
.footer {
  background-color: var(--primary-dark);
  color: white;
  position: relative;
}

.footer-heading {
  color: var(--secondary-color);
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

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

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: all var(--transition-normal);
}

.footer-links a:hover {
  color: white;
  text-decoration: none;
  padding-left: 5px;
}

.social-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: all var(--transition-normal);
  display: inline-block;
  margin-right: var(--spacing-sm);
}

.social-links a:hover {
  color: var(--secondary-color);
  transform: translateY(-3px);
  text-decoration: none;
}

.newsletter-form .form-control {
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
}

.newsletter-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-form .btn-primary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--dark);
}

.newsletter-form .btn-primary:hover {
  background-color: var(--secondary-dark);
  border-color: var(--secondary-dark);
}

.legal-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  width: 100%;
}

.copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* Animation Classes */
.fade-in-element {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-element.visible {
  opacity: 1;
  transform: translateY(0);
}

.parallax-element {
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(34, 34, 34, 0.95);
  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-bottom: 0;
  margin-right: 1rem;
}

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

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

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

.success-title {
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
}

/* Privacy & Terms Pages */
.page-content {
  padding-top: 100px;
  padding-bottom: var(--spacing-xl);
}

.page-title {
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
}

/* Media Queries */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: var(--primary-color);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-top: 0.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .vision-image, .scene-image {
    margin-bottom: var(--spacing-md);
  }
  
  .community-section .community-card {
    margin-bottom: var(--spacing-md);
  }
  
  .hero {
    padding: 8rem 0 4rem;
  }
}

@media (max-width: 767.98px) {
  :root {
    --spacing-xl: 3rem;
    --spacing-lg: 2rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .cookie-content p {
    margin-bottom: 1rem;
  }
  
  .hero-buttons .btn {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .hero-buttons .btn:last-child {
    margin-bottom: 0;
  }
}

@media (max-width: 575.98px) {
  .section-title {
    font-size: 1.5rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
}

/* Utility Classes */
.text-primary {
  color: var(--primary-color) !important;
}

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

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

.bg-overlay {
  position: relative;
}

.bg-overlay:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
  z-index: 0;
}

.bg-overlay > * {
  position: relative;
  z-index: 1;
}

.read-more {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 600;
  position: relative;
  padding-right: 25px;
  transition: all var(--transition-normal);
}

.read-more:after {
  content: '→';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: transform var(--transition-normal);
}

.read-more:hover {
  color: var(--primary-dark);
  text-decoration: none;
  padding-right: 30px;
}

.read-more:hover:after {
  transform: translate(5px, -50%);
}
.navbar-brand img{
  width: 30px;
  height: 30px;
}