:root {
  /* Primary colors */
  --primary-color: #0057b7;
  --primary-light: #3a7fd9;
  --primary-dark: #003f83;
  
  /* Neutral colors */
  --black: #111111;
  --dark-gray: #333333;
  --medium-gray: #666666;
  --light-gray: #e0e0e0;
  --off-white: #f8f8f8;
  --white: #ffffff;
  
  /* Accent colors */
  --accent: #ffcc00;
  --accent-light: #ffe066;
  --accent-dark: #e6b800;
  
  /* Font families */
  --heading-font: 'Space Grotesk', sans-serif;
  --body-font: 'DM Sans', sans-serif;
  
  /* Shadows and effects */
  --card-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  --button-shadow: 0 4px 0 var(--primary-dark);
  --hover-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  --neo-border: 4px solid var(--black);
  --transition-standard: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  
  /* Spacing */
  --section-spacing: 5rem;
  --element-spacing: 2rem;
}

/* Base styles */
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);
}

/* Typography */
h1, h2, h3, h4, h5, h6, .title, .subtitle {
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--black);
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

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

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

/* Button styles */
.button {
  font-family: var(--heading-font);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: var(--neo-border);
  box-shadow: var(--button-shadow);
  transition: var(--transition-standard);
  transform: translateY(0);
  position: relative;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--primary-dark);
}

.button:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--primary-dark);
}

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

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

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

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

/* Input styles */
.input, .textarea, .select select {
  border: 2px solid var(--dark-gray);
  border-radius: 0;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.1);
  transition: var(--transition-standard);
}

.input:focus, .textarea:focus, .select select:focus {
  border-color: var(--primary-color);
  box-shadow: 4px 4px 0 rgba(0, 87, 183, 0.3);
}

/* Layout */
.section {
  padding: 4rem 1.5rem;
}

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: var(--transition-standard);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.navbar {
  min-height: 70px;
}

.navbar-item {
  font-family: var(--heading-font);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.navbar-burger {
  height: 70px;
  width: 70px;
}

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

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

.hero-body {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem;
}

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

.hero .title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  transform: translateZ(50px);
  perspective: 1000px;
}

.hero .subtitle {
  font-size: 1.8rem;
  margin-bottom: 2.5rem;
  transform: translateZ(30px);
}

.hero .buttons {
  margin-top: 2rem;
  transform: translateZ(20px);
}

.scrolldown-container {
  position: relative;
  width: 100%;
  text-align: center;
  margin-bottom: 2rem;
}

.scrolldown-btn {
  display: inline-block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  color: var(--primary-color);
  line-height: 40px;
  text-align: center;
  cursor: pointer;
  animation: bounce 2s infinite;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

/* Card styles */
.card {
  border-radius: 0;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: var(--transition-standard);
  border: var(--neo-border);
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

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

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

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

.card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-content .title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card-content p {
  flex-grow: 1;
}

/* Image containers */
.image-container {
  width: 100%;
  overflow: hidden;
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

/* Progress styles */
.progress-container {
  margin-bottom: 1.5rem;
}

.progress-text {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.progress {
  height: 10px;
  border-radius: 0;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
  background-color: var(--light-gray);
  overflow: hidden;
}

.progress.is-primary::-webkit-progress-value {
  background-color: var(--primary-color);
}

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

.progress.is-primary::-ms-fill {
  background-color: var(--primary-color);
}

/* Tags */
.tags {
  margin-bottom: 1rem;
}

.tag {
  font-family: var(--heading-font);
  font-weight: 600;
  border-radius: 0;
  border: 2px solid var(--black);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
}

/* About Us Section */
#sobre-nosotros .content {
  padding-right: 2rem;
}

#sobre-nosotros figure {
  border: var(--neo-border);
  box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

#sobre-nosotros img {
  transition: var(--transition-standard);
}

#sobre-nosotros img:hover {
  transform: scale(1.05);
}

/* Behind the Scenes Section */
#detras-escena {
  background-color: var(--off-white);
}

/* Stations Section */
#estaciones .box {
  border: var(--neo-border);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.1);
  background-color: var(--white);
  padding: 2rem;
}

/* External Resources Section */
.has-background-light {
  background-color: var(--off-white) !important;
}

/* Methodology/Services Section */
#metodologia .card {
  height: 100%;
}

/* Projects/Promotions Section */
#proyectos .statistic-widget {
  padding: 1.5rem;
  transition: var(--transition-standard);
}

#proyectos .statistic-widget:hover {
  transform: translateY(-5px);
}

#proyectos .statistic-widget .icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

#proyectos .statistic-widget .counter {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: var(--heading-font);
  color: var(--black);
}

#proyectos .statistic-widget .heading {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--medium-gray);
}

/* Careers Section */
#carreras .card {
  height: 100%;
}

#carreras .card-image img {
  height: 200px;
}

/* Success Stories Section */
#exitos .card-content .is-italic {
  font-style: italic;
  color: var(--medium-gray);
  font-size: 1.1rem;
  line-height: 1.8;
  border-left: 4px solid var(--primary-color);
  padding-left: 1.5rem;
}

/* Our Process Section */
#proceso .timeline {
  position: relative;
  padding: 2rem 0;
}

#proceso .timeline:before {
  content: '';
  position: absolute;
  top: 0;
  left: calc(50px / 2);
  width: 4px;
  height: 100%;
  background: var(--primary-color);
}

#proceso .timeline-item {
  position: relative;
  padding-left: 70px;
  margin-bottom: 2rem;
}

#proceso .timeline-marker {
  position: absolute;
  top: 0;
  left: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--white);
  border: 6px solid var(--primary-color);
  z-index: 1;
}

#proceso .timeline-content {
  background: var(--white);
  padding: 1.5rem;
  border: var(--neo-border);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.1);
}

/* Clientele Section */
#clientes .card {
  height: 100%;
}

/* Contact Section */
#contacto .box {
  border: var(--neo-border);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.1);
  background-color: var(--white);
  padding: 2rem;
  height: 100%;
}

#contacto .field:not(:last-child) {
  margin-bottom: 1.5rem;
}

#contacto .label {
  font-family: var(--heading-font);
  font-weight: 600;
  color: var(--black);
}

/* Footer */
.footer {
  background-color: var(--black);
  color: var(--white);
  padding: 4rem 1.5rem 2rem;
}

.footer .title {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

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

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

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

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

.footer hr {
  background-color: var(--medium-gray);
  height: 1px;
  margin: 2rem 0;
}

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

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

/* Success page */
.success-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  background-color: var(--off-white);
}

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

.success-page .title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.success-page .subtitle {
  font-size: 1.5rem;
  color: var(--medium-gray);
  margin-bottom: 2rem;
}

/* Privacy & Terms pages */
.content-page {
  padding-top: 120px;
  padding-bottom: 4rem;
}

.content-page .content {
  max-width: 800px;
  margin: 0 auto;
}

.content-page h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.content-page h2 {
  font-size: 1.8rem;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
}

.content-page p, .content-page li {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* Cookie Consent */
#cookie-consent {
  font-family: var(--body-font);
}

#accept-cookies {
  font-family: var(--heading-font);
  font-weight: 600;
  transition: var(--transition-standard);
}

#accept-cookies:hover {
  background-color: #3eaf66;
}

/* Animation classes */
.fadeIn {
  animation: fadeIn 1s;
}

.fadeInUp {
  animation: fadeInUp 1s;
}

.fadeInDown {
  animation: fadeInDown 1s;
}

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

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 3D Effects */
.card, .box {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.card-image, .box img {
  transform: translateZ(20px);
}

.card-content .title {
  transform: translateZ(15px);
}

.card-content p {
  transform: translateZ(10px);
}

/* Media Queries */
@media screen and (max-width: 768px) {
  .hero .title {
    font-size: 2.5rem;
  }
  
  .hero .subtitle {
    font-size: 1.2rem;
  }
  
  #proceso .timeline:before {
    left: 25px;
  }
  
  #proceso .timeline-item {
    padding-left: 50px;
  }
  
  #proceso .timeline-marker {
    width: 30px;
    height: 30px;
    left: 10px;
  }
  
  .card-image img {
    height: 200px;
  }
}

@media screen and (max-width: 480px) {
  .section {
    padding: 3rem 1rem;
  }
  
  .hero .title {
    font-size: 2rem;
  }
  
  .hero .subtitle {
    font-size: 1rem;
  }
}