/* =========== Base Styles & Variables =========== */
:root {
  /* Color Palette - Analogous Scheme */
  --primary-color: #0055a4; /* YPF Blue */
  --primary-light: #1166b5;
  --primary-dark: #004080;
  --secondary-color: #e63312; /* YPF Red */
  --secondary-light: #f44123;
  --secondary-dark: #cc2200;
  --accent-color: #ffc72c; /* YPF Yellow */
  --accent-light: #ffd650;
  --accent-dark: #e6b100;
  
  /* Neutral Colors */
  --white: #ffffff;
  --light-gray: #f5f5f5;
  --medium-gray: #e0e0e0;
  --dark-gray: #333333;
  --black: #222222;
  
  /* Typography */
  --heading-font: 'Playfair Display', serif;
  --body-font: 'Source Sans Pro', sans-serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 5rem;
  
  /* Border Radius */
  --radius-sm: 3px;
  --radius-md: 5px;
  --radius-lg: 10px;
  --radius-xl: 20px;
  
  /* 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;
}

/* =========== Global Styles =========== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  color: var(--dark-gray);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--white);
}

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

p {
  margin-bottom: var(--space-md);
}

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

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

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

section {
  padding: var(--space-xl) 0;
  position: relative;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* =========== Typography =========== */
.title {
  color: var(--dark-gray);
  margin-bottom: var(--space-md);
}

.title.is-1 {
  font-size: 3rem;
}

.title.is-2 {
  font-size: 2.5rem;
  margin-bottom: var(--space-lg);
  text-align: center;
  position: relative;
}

.title.is-2:after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background-color: var(--secondary-color);
  margin: var(--space-sm) auto 0;
}

.title.is-4 {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.subtitle {
  color: var(--dark-gray);
  margin-bottom: var(--space-lg);
  font-weight: 300;
  text-align: center;
}

.has-text-centered {
  text-align: center;
}

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

/* =========== Buttons =========== */
.button {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
  box-shadow: var(--shadow-sm);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.button:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--white);
}

.button:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

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

.button.is-primary:hover {
  background-color: var(--primary-light);
}

.button.is-light {
  background-color: var(--white);
  color: var(--primary-color);
}

.button.is-light:hover {
  background-color: var(--light-gray);
  color: var(--primary-dark);
}

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

.button.is-secondary:hover {
  background-color: var(--secondary-light);
}

.button.is-outlined {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.button.is-outlined:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.button.is-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.button.is-fullwidth {
  width: 100%;
  display: block;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

/* =========== Header & Navigation =========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  transition: background-color var(--transition-normal);
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
}

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

.navbar-menu {
  display: flex;
  align-items: center;
}

.navbar-item {
  color: var(--dark-gray);
  font-weight: 600;
  padding: var(--space-sm) var(--space-md);
  transition: color var(--transition-fast);
  position: relative;
}

.navbar-item:hover {
  color: var(--primary-color);
}

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

.navbar-item:hover::after {
  width: 100%;
  left: 0;
}

.navbar-end {
  margin-left: auto;
}

.navbar-burger {
  display: none;
  cursor: pointer;
  height: 3.25rem;
  width: 3.25rem;
  position: relative;
}

.navbar-burger span {
  background-color: var(--dark-gray);
  display: block;
  height: 2px;
  width: 24px;
  position: absolute;
  left: calc(50% - 12px);
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.navbar-burger span:nth-child(1) {
  top: calc(50% - 8px);
}

.navbar-burger span:nth-child(2) {
  top: calc(50% - 1px);
}

.navbar-burger span:nth-child(3) {
  top: calc(50% + 6px);
}

.navbar-burger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar-burger.is-active span:nth-child(2) {
  opacity: 0;
}

.navbar-burger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========== Hero Section =========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--white);
  margin-top: 0;
  padding-top: 80px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
  z-index: 1;
}

.hero-body {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero .title {
  color: var(--white);
  font-size: 3.5rem;
  margin-bottom: var(--space-md);
  animation: fadeInUp 1s ease-out;
}

.hero .subtitle {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
  animation: fadeInUp 1s ease-out 0.2s;
  animation-fill-mode: backwards;
}

.hero p {
  margin-bottom: var(--space-lg);
  font-size: 1.1rem;
  max-width: 600px;
  animation: fadeInUp 1s ease-out 0.4s;
  animation-fill-mode: backwards;
}

.hero .buttons {
  animation: fadeInUp 1s ease-out 0.6s;
  animation-fill-mode: backwards;
}

/* =========== Features Section =========== */
.feature-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  background-color: var(--white);
  margin-bottom: var(--space-lg);
}

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

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

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

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

.card-content {
  padding: var(--space-lg);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-content .title {
  color: var(--dark-gray);
  position: relative;
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-md);
}

.card-content .title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--secondary-color);
}

.card-content .content {
  flex-grow: 1;
  margin-bottom: var(--space-md);
}

.card-content a {
  margin-top: auto;
  align-self: flex-start;
}

/* =========== Services Section =========== */
.has-background-light {
  background-color: var(--light-gray);
}

.service-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  background-color: var(--white);
  margin-bottom: var(--space-lg);
}

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

.service-card .card-image {
  height: 240px;
}

.service-card .card-content {
  padding: var(--space-lg);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* =========== Statistics Section =========== */
.stat-card {
  padding: var(--space-lg);
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  height: 100%;
}

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

.stat-icon {
  color: var(--primary-color);
  margin-bottom: var(--space-md);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: var(--space-sm);
  font-family: var(--heading-font);
}

.stat-title {
  font-size: 1.2rem;
  color: var(--dark-gray);
  font-weight: 600;
}

/* =========== Projects Section =========== */
.project-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  background-color: var(--white);
  margin-bottom: var(--space-lg);
}

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

.project-card .card-image {
  height: 240px;
}

.project-card .card-content {
  padding: var(--space-lg);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* =========== Gallery Section =========== */
.gallery-slider {
  position: relative;
  margin: var(--space-xl) 0;
  overflow: hidden;
}

.gallery-track {
  display: flex;
  transition: transform var(--transition-normal);
}

.gallery-item {
  flex: 0 0 33.333%;
  padding: 0 var(--space-sm);
  min-width: 300px;
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal);
}

.gallery-item img:hover {
  transform: scale(1.03);
}

.gallery-controls {
  display: flex;
  justify-content: center;
  margin-top: var(--space-lg);
}

.gallery-prev,
.gallery-next {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  margin: 0 var(--space-sm);
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.gallery-prev:hover,
.gallery-next:hover {
  background-color: var(--primary-light);
  transform: scale(1.1);
}

/* =========== Sustainability Section =========== */
.card {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  background-color: var(--white);
  margin-bottom: var(--space-lg);
}

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

/* =========== External Resources Section =========== */
.resource-card {
  height: 100%;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  background-color: var(--white);
  margin-bottom: var(--space-lg);
}

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

.resource-card .title {
  margin-bottom: var(--space-sm);
}

.resource-card .content {
  margin-bottom: var(--space-lg);
  flex-grow: 1;
}

.resource-card .button {
  margin-top: auto;
}

/* =========== Webinars Section =========== */
.webinar-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  background-color: var(--white);
  margin-bottom: var(--space-lg);
}

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

.webinar-card .card-image {
  height: 240px;
}

.webinar-info {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--medium-gray);
}

.webinar-info p {
  margin-bottom: var(--space-xs);
}

/* =========== Map Section =========== */
.map-container {
  position: relative;
  height: 500px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-overlay {
  position: absolute;
  top: 0;
  right: 0;
  width: 350px;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.map-filters {
  margin-top: var(--space-lg);
}

.map-filters .field {
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
}

.map-filters label {
  color: var(--white);
  margin-left: var(--space-sm);
  cursor: pointer;
}

.switch {
  appearance: none;
  width: 40px;
  height: 20px;
  background-color: var(--medium-gray);
  border-radius: 10px;
  position: relative;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.switch:checked {
  background-color: var(--primary-color);
}

.switch::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background-color: var(--white);
  border-radius: 50%;
  transition: transform var(--transition-fast);
}

.switch:checked::before {
  transform: translateX(20px);
}

/* =========== Contact Section =========== */
.contact-info {
  padding: var(--space-lg);
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  height: 100%;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--space-lg);
}

.contact-item i {
  color: var(--primary-color);
  margin-right: var(--space-md);
  margin-top: var(--space-xs);
}

.contact-form-container {
  padding: var(--space-lg);
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  height: 100%;
}

.field {
  margin-bottom: var(--space-md);
}

.label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.input,
.textarea,
.select select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--medium-gray);
  border-radius: var(--radius-md);
  font-family: var(--body-font);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input:focus,
.textarea:focus,
.select select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(0, 85, 164, 0.2);
}

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

.checkbox {
  display: flex;
  align-items: center;
}

.checkbox input {
  margin-right: var(--space-sm);
}

/* =========== Footer =========== */
.footer {
  background-color: var(--dark-gray);
  color: var(--white);
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer-brand img {
  max-width: 150px;
  margin-bottom: var(--space-md);
}

.footer-title {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: var(--space-lg);
  position: relative;
  padding-bottom: var(--space-sm);
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--secondary-color);
}

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

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

.footer-links a {
  color: var(--medium-gray);
  transition: color var(--transition-fast);
}

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

.social-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.social-links a {
  color: var(--medium-gray);
  transition: color var(--transition-fast);
  display: inline-block;
}

.social-links a:hover {
  color: var(--white);
}

.newsletter {
  margin-top: var(--space-lg);
}

.newsletter h4 {
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.footer-bottom {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

/* =========== Success Page =========== */
.success-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--space-xl);
}

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

.success-title {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.success-message {
  max-width: 600px;
  margin-bottom: var(--space-lg);
}

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

.content-page .container {
  max-width: 800px;
}

.content-page h1 {
  margin-bottom: var(--space-lg);
  text-align: center;
}

.content-page h2 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  color: var(--primary-color);
}

.content-page p {
  margin-bottom: var(--space-md);
}

.content-page ul, 
.content-page ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}

.content-page li {
  margin-bottom: var(--space-sm);
}

/* =========== Cookie Consent =========== */
#cookie-consent {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.85);
  color: var(--white);
  padding: var(--space-lg);
  z-index: 9999;
  text-align: center;
}

#cookie-consent a {
  color: var(--accent-color);
  text-decoration: underline;
}

#accept-cookies {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 8px 16px;
  margin-top: var(--space-sm);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

#accept-cookies:hover {
  background-color: var(--primary-light);
}

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

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

/* =========== Utility Classes =========== */
.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }
.mb-5 { margin-bottom: var(--space-xl); }
.mb-6 { margin-bottom: var(--space-xxl); }

.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }
.mt-5 { margin-top: var(--space-xl); }
.mt-6 { margin-top: var(--space-xxl); }

/* =========== Responsive Styles =========== */
@media screen and (max-width: 1023px) {
  .title.is-1 {
    font-size: 2.5rem;
  }
  
  .title.is-2 {
    font-size: 2rem;
  }
  
  .navbar-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    padding: var(--space-md) 0;
    flex-direction: column;
  }
  
  .navbar-menu.is-active {
    display: flex;
  }
  
  .navbar-start,
  .navbar-end {
    width: 100%;
    display: flex;
    flex-direction: column;
  }
  
  .navbar-burger {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .map-overlay {
    width: 100%;
    height: auto;
    position: relative;
    background-color: rgba(0, 0, 0, 0.8);
  }
  
  .map-container {
    height: auto;
  }
  
  .map-image {
    height: 300px;
  }
}

@media screen and (max-width: 768px) {
  section {
    padding: var(--space-lg) 0;
  }
  
  .hero .title {
    font-size: 2.5rem;
  }
  
  .hero .subtitle {
    font-size: 1.2rem;
  }
  
  .buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .buttons .button {
    width: 100%;
    margin-bottom: var(--space-sm);
  }
  
  .gallery-item {
    flex: 0 0 100%;
    min-width: 100%;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .contact-form-container,
  .contact-info {
    margin-bottom: var(--space-lg);
  }
}

@media screen and (max-width: 480px) {
  .hero .title {
    font-size: 2rem;
  }
  
  .title.is-2 {
    font-size: 1.75rem;
  }
  
  .footer-brand,
  .footer-links,
  .social-links,
  .newsletter {
    margin-bottom: var(--space-lg);
  }
}
.footer {
    background-color: #262626!important;
    padding: 3rem 1.5rem 6rem;
}
.navbar-burger{
  display: none!important;
}