:root {
  /* Tetrad Color Scheme */
  --primary-color: #ff3d00; /* YPF Red/Orange */
  --secondary-color: #00b0ff; /* Bright Blue */
  --tertiary-color: #76ff03; /* Bright Green */
  --quaternary-color: #aa00ff; /* Purple */
  
  /* Neutral Colors */
  --dark-color: #222222;
  --light-color: #ffffff;
  --mid-gray: #666666;
  --light-gray: #f5f5f5;
  
  /* Dark Variants */
  --primary-dark: #c30000;
  --secondary-dark: #0080cb;
  --tertiary-dark: #32cb00;
  --quaternary-dark: #7200ca;
  
  /* Light Variants */
  --primary-light: #ff7a50;
  --secondary-light: #80e1ff;
  --tertiary-light: #b0ff6e;
  --quaternary-light: #e254ff;
  
  /* UI Elements */
  --card-shadow: 10px 10px 0px rgba(0, 0, 0, 0.75);
  --button-shadow: 5px 5px 0px rgba(0, 0, 0, 0.8);
  --button-shadow-hover: 7px 7px 0px rgba(0, 0, 0, 0.8);
  --border-radius: 0px;
  --transition-speed: 0.3s;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;
}

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

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  overflow-x: hidden;
  background-color: var(--light-color);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Archivo Black', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

a {
  color: var(--primary-color);
  transition: all var(--transition-speed) ease;
}

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

p {
  margin-bottom: 1.5rem;
}

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

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

section {
  padding: var(--spacing-lg) 0;
  position: relative;
}

/* Brutalist Button Styles */
.button, button, input[type="submit"], .brutalist-button {
  border: 3px solid var(--dark-color) !important;
  background-color: var(--primary-color) !important;
  color: var(--light-color) !important;
  font-weight: bold !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  padding: 1rem 2rem !important;
  box-shadow: var(--button-shadow) !important;
  transition: all var(--transition-speed) ease !important;
  border-radius: var(--border-radius) !important;
  position: relative !important;
  z-index: 1 !important;
  transform: translateZ(0) !important;
}

.button:hover, button:hover, input[type="submit"]:hover, .brutalist-button:hover {
  transform: translate(-2px, -2px) !important;
  box-shadow: var(--button-shadow-hover) !important;
  background-color: var(--primary-light) !important;
}

.button.is-primary, .button.is-primary:hover {
  background-color: var(--primary-color) !important;
}

.button.is-info, .button.is-info:hover {
  background-color: var(--secondary-color) !important;
}

.button.is-success, .button.is-success:hover {
  background-color: var(--tertiary-color) !important;
}

.button.is-warning, .button.is-warning:hover {
  background-color: var(--quaternary-color) !important;
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--light-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
  padding: var(--spacing-sm) 0;
}

.navbar-brand h1 {
  margin-bottom: 0;
}

.navbar-item {
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dark-color);
  transition: color var(--transition-speed) ease;
}

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

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

.navbar-burger:hover {
  background-color: transparent;
}

.navbar-burger span {
  height: 2px;
  background-color: var(--dark-color);
}

.navbar-menu.is-active {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  margin-top: 60px;
}

.hero::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: 0;
}

.hero-body {
  padding: var(--spacing-xl) 0;
  position: relative;
  z-index: 1;
}

.hero .title, 
.hero .subtitle, 
.hero p {
  color: var(--light-color) !important;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero .title {
  font-size: 3.5rem;
  margin-bottom: var(--spacing-md);
}

.hero .subtitle {
  font-size: 2rem;
  margin-bottom: var(--spacing-md);
}

/* Brutalist Card Styles */
.brutalist-card {
  border: 3px solid var(--dark-color);
  background-color: var(--light-color);
  box-shadow: var(--card-shadow);
  transition: all var(--transition-speed) ease;
  margin-bottom: var(--spacing-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.brutalist-card:hover {
  transform: translate(-5px, -5px);
  box-shadow: 15px 15px 0px rgba(0, 0, 0, 0.75);
}

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

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

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

.brutalist-card .card-content {
  padding: var(--spacing-md);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.brutalist-card .title {
  color: var(--dark-color);
  margin-bottom: var(--spacing-sm);
}

.brutalist-card p {
  color: var(--mid-gray);
  margin-bottom: var(--spacing-sm);
}

/* About Section */
.about-section {
  background-color: var(--light-gray);
}

.about-section .image-container {
  border: 3px solid var(--dark-color);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all var(--transition-speed) ease;
}

.about-section .image-container:hover {
  transform: translate(-5px, -5px);
  box-shadow: 15px 15px 0px rgba(0, 0, 0, 0.75);
}

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

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

/* Services Section */
.services-section {
  background-color: var(--light-color);
}

/* Methodology Section */
.methodology-section {
  background-color: var(--quaternary-light);
  color: var(--dark-color);
}

.methodology-section .title,
.methodology-section h3 {
  color: var(--dark-color);
}

.methodology-section .image-container {
  border: 3px solid var(--dark-color);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

/* Research Section */
.research-section {
  background-color: var(--light-color);
}

.research-section .image-container {
  border: 3px solid var(--dark-color);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all var(--transition-speed) ease;
}

.research-section .image-container:hover {
  transform: translate(-5px, -5px);
  box-shadow: 15px 15px 0px rgba(0, 0, 0, 0.75);
}

/* External Resources Section */
.external-resources-section {
  background-color: var(--secondary-light);
}

.external-resources-section .title {
  color: var(--dark-color);
}

.external-resources-section .card-content {
  padding: var(--spacing-md);
}

.external-resources-section .button {
  margin-top: auto;
  align-self: flex-start;
}

/* Pricing Section */
.pricing-section {
  background-color: var(--light-gray);
}

.pricing-card {
  text-align: center;
}

.pricing-card .card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pricing-card .price {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color);
  margin: var(--spacing-md) 0;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--spacing-md) 0;
  text-align: left;
  width: 100%;
}

.pricing-card li {
  margin-bottom: var(--spacing-sm);
}

.pricing-card .nota {
  font-size: 0.8rem;
  color: var(--mid-gray);
  margin-top: var(--spacing-md);
}

.discount {
  display: inline-block;
  background-color: var(--tertiary-color);
  color: var(--dark-color);
  padding: 0.25rem 0.5rem;
  margin-left: var(--spacing-sm);
  font-size: 0.8rem;
  font-weight: bold;
  border-radius: var(--border-radius);
}

/* Switch Toggle */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--mid-gray);
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: var(--light-color);
  transition: .4s;
}

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

input:focus + .slider {
  box-shadow: 0 0 1px var(--tertiary-color);
}

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

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Gallery Section */
.gallery-section {
  background-color: var(--light-color);
}

.gallery-section .card-image {
  height: 250px;
  overflow: hidden;
}

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

.gallery-section .brutalist-card:hover .card-image img {
  transform: scale(1.1);
}

/* Sustainability Section */
.sustainability-section {
  background-color: var(--tertiary-light);
}

.sustainability-section .title,
.sustainability-section h3 {
  color: var(--dark-color);
}

.sustainability-section .image-container {
  border: 3px solid var(--dark-color);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all var(--transition-speed) ease;
}

.sustainability-section .image-container:hover {
  transform: translate(-5px, -5px);
  box-shadow: 15px 15px 0px rgba(0, 0, 0, 0.75);
}

/* Contact Section */
.contact-section {
  background-color: var(--light-color);
}

.contact-section .field {
  margin-bottom: var(--spacing-md);
}

.contact-section .label {
  color: var(--dark-color);
  font-weight: bold;
}

.contact-section .input,
.contact-section .textarea,
.contact-section .select select {
  border: 2px solid var(--dark-color);
  border-radius: var(--border-radius);
  box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-speed) ease;
}

.contact-section .input:focus,
.contact-section .textarea:focus,
.contact-section .select select:focus {
  border-color: var(--primary-color);
  box-shadow: 5px 5px 0px rgba(255, 61, 0, 0.3);
}

.map-container {
  border: 3px solid var(--dark-color);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  margin-bottom: var(--spacing-md);
}

.map-container img {
  width: 100%;
  height: auto;
  display: block;
}

/* Footer Styles */
.footer {
  background-color: var(--dark-color);
  color: var(--light-color);
  padding: var(--spacing-lg) 0;
}

.footer .title {
  color: var(--light-color);
}

.footer p {
  color: var(--light-gray);
}

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

.footer ul li {
  margin-bottom: var(--spacing-xs);
}

.footer ul li a {
  color: var(--light-gray);
  transition: color var(--transition-speed) ease;
}

.footer ul li a:hover {
  color: var(--primary-light);
  text-decoration: none;
}

/* Animation Elements */
.animation-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animation-element.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Additional Pages Styles */
.page-content {
  padding-top: 120px;
  min-height: 100vh;
}

.privacy-page,
.terms-page {
  padding-top: 100px;
}

.success-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  padding: var(--spacing-lg);
}

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

.success-page .title {
  color: var(--dark-color);
}

.success-page .subtitle {
  color: var(--mid-gray);
  margin-bottom: var(--spacing-md);
}

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  color: var(--light-color);
  padding: var(--spacing-md);
  z-index: 9999;
}

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

.cookie-content p {
  margin: 0;
  margin-right: var(--spacing-md);
}

/* Media Queries */
@media screen and (max-width: 768px) {
  .hero .title {
    font-size: 2.5rem;
  }
  
  .hero .subtitle {
    font-size: 1.5rem;
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-content p {
    margin-right: 0;
    margin-bottom: var(--spacing-sm);
  }
  
  .button, button, input[type="submit"], .brutalist-button {
    padding: 0.75rem 1.5rem !important;
  }
  
  .pricing-card .price {
    font-size: 1.5rem;
  }
}

@media screen and (max-width: 1023px) {
  .navbar-menu {
    background-color: var(--light-color);
  }
  
  .navbar-item {
    color: var(--dark-color);
  }
}

/* 3D Effects */
.card:hover, 
.brutalist-card:hover,
.image-container:hover {
  transform: perspective(1000px) rotateX(2deg) rotateY(2deg) scale(1.02);
  transition: transform 0.3s ease;
}

.button:hover,
.brutalist-button:hover {
  transform: perspective(1000px) rotateX(5deg) translateY(-5px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Read More Links */
a.read-more {
  display: inline-block;
  color: var(--primary-color);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--spacing-xs) 0;
  position: relative;
  overflow: hidden;
}

a.read-more::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-speed) ease;
}

a.read-more:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}