/* ============================== */
/* Variables */
/* ============================== */

:root {
  /* Primary Colors */
  --primary-color: #4A90E2;
  --primary-dark: #3A75C4;
  --primary-light: #7AADEA;
  
  /* Secondary Colors */
  --secondary-color: #F5A623;
  --secondary-dark: #D88E1B;
  --secondary-light: #FBC563;
  
  /* Accent Colors */
  --accent-1: #F06292;
  --accent-2: #64B5F6;
  --accent-3: #81C784;
  
  /* Neutrals */
  --white: #FFFFFF;
  --light-gray: #F5F7FA;
  --gray: #B8C2CC;
  --dark-gray: #3D4852;
  --black: #22292F;
  
  /* Pastel Colors */
  --pastel-blue: #A8D8FF;
  --pastel-green: #C4E6C3;
  --pastel-yellow: #FFFACD;
  --pastel-pink: #FFD6E0;
  --pastel-purple: #D8BFD8;
  
  /* Text Colors */
  --text-dark: #2D3748;
  --text-medium: #4A5568;
  --text-light: #718096;
  
  /* Background Colors */
  --bg-light: #F8FAFC;
  --bg-off-white: #EDF2F7;
  --bg-dark: #2D3748;
  
  /* Font Families */
  --heading-font: 'Inter', sans-serif;
  --body-font: 'IBM Plex Sans', sans-serif;
  
  /* Font Sizes */
  --text-xs: 0.75rem;   /* 12px */
  --text-sm: 0.875rem;  /* 14px */
  --text-base: 1rem;    /* 16px */
  --text-lg: 1.125rem;  /* 18px */
  --text-xl: 1.25rem;   /* 20px */
  --text-2xl: 1.5rem;   /* 24px */
  --text-3xl: 1.875rem; /* 30px */
  --text-4xl: 2.25rem;  /* 36px */
  --text-5xl: 3rem;     /* 48px */
  
  /* Spacing */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  
  /* Border Radius */
  --radius-sm: 0.125rem;  /* 2px */
  --radius-md: 0.25rem;   /* 4px */
  --radius-lg: 0.5rem;    /* 8px */
  --radius-xl: 1rem;      /* 16px */
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --transition-slow: 0.5s all ease;
  --transition-medium: 0.3s all ease;
  --transition-fast: 0.15s all ease;
}

/* ============================== */
/* Base Styles */
/* ============================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--space-4);
}

h1 {
  font-size: var(--text-5xl);
}

h2 {
  font-size: var(--text-4xl);
}

h3 {
  font-size: var(--text-3xl);
}

h4 {
  font-size: var(--text-2xl);
}

h5 {
  font-size: var(--text-xl);
}

h6 {
  font-size: var(--text-lg);
}

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

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

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

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

/* ============================== */
/* Layout */
/* ============================== */

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

.section {
  padding: var(--space-12) 0;
}

/* ============================== */
/* Header & Navigation */
/* ============================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: var(--shadow-md);
  transition: var(--transition-medium);
}

.header.is-scrolled {
  background-color: var(--white);
  box-shadow: var(--shadow-lg);
}

.navbar {
  padding: var(--space-2) 0;
}

.navbar-brand h1 {
  margin: 0;
}

.navbar-menu {
  transition: var(--transition-medium);
}

.navbar-item {
  font-weight: 500;
  padding: var(--space-2) var(--space-4);
  transition: var(--transition-fast);
}

.navbar-item:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--primary-color);
}

/* ============================== */
/* Hero Section */
/* ============================== */

#hero {
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--white);
}

#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: 1;
}

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

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

.hero .button {
  margin-right: var(--space-2);
  margin-bottom: var(--space-2);
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-medium);
}

.hero .button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ============================== */
/* Vision Section */
/* ============================== */

#vision .content {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
  transform: perspective(1000px) rotateX(0deg);
  transition: var(--transition-medium);
}

#vision .content:hover {
  transform: perspective(1000px) rotateX(2deg);
  box-shadow: var(--shadow-lg);
}

#vision figure {
  margin-top: var(--space-6);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

#vision img {
  transition: var(--transition-slow);
}

#vision figure:hover img {
  transform: scale(1.05);
}

/* ============================== */
/* Statistics Section */
/* ============================== */

.stat-box {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition-medium);
  height: 100%;
}

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

.stat-box .title {
  color: var(--primary-color);
  margin-bottom: var(--space-2);
}

.stat-box .subtitle {
  color: var(--text-medium);
}

/* ============================== */
/* History Section */
/* ============================== */

.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-6) 0;
}

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

.timeline-item {
  padding: var(--space-4) 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

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

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

.timeline-marker {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: var(--white);
  border: 4px solid var(--primary-color);
  top: var(--space-4);
  border-radius: 50%;
  z-index: 1;
}

.timeline-item:nth-child(even) .timeline-marker {
  left: -10px;
}

.timeline-content {
  padding: var(--space-4);
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition-medium);
}

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

/* ============================== */
/* Events Calendar Section */
/* ============================== */

#eventos .card {
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--transition-medium);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

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

#eventos .card-image {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#eventos .card-image figure {
  width: 100%;
  height: 0;
  padding-bottom: 75%; /* 4:3 Aspect Ratio */
  position: relative;
  overflow: hidden;
}

#eventos .card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

#eventos .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

#eventos .card-content .content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

#eventos .card-content .button {
  margin-top: auto;
}

#eventos .title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

#eventos .subtitle {
  color: var(--text-medium);
  margin-bottom: var(--space-4);
}

/* ============================== */
/* Insights Section */
/* ============================== */

#insights .content {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
  transition: var(--transition-medium);
}

#insights .content:hover {
  box-shadow: var(--shadow-lg);
}

.accordion-container {
  margin-bottom: var(--space-6);
}

.accordion {
  border: 1px solid var(--gray);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-2);
  overflow: hidden;
}

.accordion-header {
  background-color: var(--bg-off-white);
  padding: var(--space-4);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-fast);
}

.accordion-header:hover {
  background-color: var(--light-gray);
}

.accordion-header p {
  margin: 0;
  font-weight: 600;
}

.accordion-content {
  padding: var(--space-4);
  display: none;
  background-color: var(--white);
}

#insights .card {
  height: 100%;
  transition: var(--transition-medium);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

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

#insights .card-image {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#insights .card-image figure {
  width: 100%;
  height: 0;
  padding-bottom: 75%; /* 4:3 Aspect Ratio */
  position: relative;
  overflow: hidden;
}

#insights .card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

#insights .box {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition-medium);
}

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

/* ============================== */
/* External Resources Section */
/* ============================== */

.box {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition-medium);
  height: 100%;
}

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

.box .title a {
  color: var(--text-dark);
  transition: var(--transition-fast);
}

.box .title a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.h-100 {
  height: 100%;
}

/* ============================== */
/* News Section */
/* ============================== */

#noticias .card {
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--transition-medium);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

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

#noticias .card-image {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#noticias .card-image figure {
  width: 100%;
  height: 0;
  padding-bottom: 75%; /* 4:3 Aspect Ratio */
  position: relative;
  overflow: hidden;
}

#noticias .card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

#noticias .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

#noticias .card-content .content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

#noticias .button.is-link.is-small {
  margin-top: auto;
  background-color: var(--primary-color);
  color: var(--white);
  font-weight: 500;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

#noticias .button.is-link.is-small:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

/* ============================== */
/* Careers Section */
/* ============================== */

#carreras .job-listing {
  padding: var(--space-6);
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition-medium);
}

#carreras .job-listing:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

#carreras .title {
  margin-bottom: var(--space-2);
}

#carreras .subtitle {
  color: var(--text-medium);
  margin-bottom: var(--space-4);
}

#carreras .tags {
  margin-top: var(--space-4);
  margin-bottom: var(--space-4);
}

#carreras .tag {
  margin-right: var(--space-2);
  margin-bottom: var(--space-2);
  background-color: var(--pastel-blue);
  color: var(--text-dark);
  padding: var(--space-2) var(--space-3);
  font-weight: 500;
}

/* ============================== */
/* FAQ Section */
/* ============================== */

#faq .accordion-container {
  max-width: 800px;
  margin: 0 auto;
}

#faq .accordion {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-medium);
}

#faq .accordion:hover {
  box-shadow: var(--shadow-lg);
}

#faq .accordion-header {
  background-color: var(--white);
  padding: var(--space-6);
  cursor: pointer;
  border-bottom: 1px solid transparent;
}

#faq .accordion-header p {
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--text-dark);
}

#faq .accordion-header .icon {
  font-size: var(--text-2xl);
  color: var(--primary-color);
  transition: var(--transition-fast);
}

#faq .accordion-content {
  padding: var(--space-6);
  background-color: var(--bg-light);
  border-top: 1px solid var(--gray);
}

/* ============================== */
/* Contact Section */
/* ============================== */

#contacto .box {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

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

#contacto .input,
#contacto .textarea,
#contacto .select select {
  border-radius: var(--radius-md);
  border: 2px solid var(--light-gray);
  padding: var(--space-3);
  transition: var(--transition-fast);
}

#contacto .input:focus,
#contacto .textarea:focus,
#contacto .select select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.25);
}

#contacto .button {
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-medium);
}

#contacto .button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

/* ============================== */
/* Footer */
/* ============================== */

.footer {
  padding: var(--space-12) 0;
  color: var(--light-gray);
}

.footer .title,
.footer h3 {
  color: var(--white);
}

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

.footer ul li {
  margin-bottom: var(--space-2);
}

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

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

.footer .social-links p {
  margin-bottom: var(--space-2);
}

.footer .social-links a {
  position: relative;
  font-weight: 500;
  transition: var(--transition-fast);
}

.footer .social-links a:hover {
  color: var(--white);
  padding-left: var(--space-2);
}

.footer .input {
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  border: none;
}

.footer .button {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-weight: 600;
}

/* ============================== */
/* Cookie Consent */
/* ============================== */

#cookie-consent {
  background-color: rgba(0, 0, 0, 0.9);
  color: var(--white);
  padding: var(--space-4);
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
}

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

#cookie-consent a:hover {
  color: var(--white);
}

#accept-cookies {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition-fast);
}

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

/* ============================== */
/* Utility Classes */
/* ============================== */

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

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

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

.has-text-grey-light {
  color: var(--gray);
}

.mt-4 {
  margin-top: var(--space-4);
}

.mt-5 {
  margin-top: var(--space-6);
}

.mt-6 {
  margin-top: var(--space-8);
}

.mb-4 {
  margin-bottom: var(--space-4);
}

.mb-6 {
  margin-bottom: var(--space-6);
}

.p-5 {
  padding: var(--space-6);
}

.p-6 {
  padding: var(--space-8);
}

/* ============================== */
/* Success Page */
/* ============================== */

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

.success-content {
  max-width: 600px;
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
}

.success-icon {
  font-size: 5rem;
  color: var(--accent-3);
  margin-bottom: var(--space-6);
}

/* ============================== */
/* Privacy & Terms Pages */
/* ============================== */

.privacy-page,
.terms-page {
  padding-top: 100px;
  padding-bottom: var(--space-12);
}

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

/* ============================== */
/* Animations */
/* ============================== */

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

.float {
  animation: float 5s ease-in-out infinite;
}

/* ============================== */
/* Responsive Adjustments */
/* ============================== */

@media screen and (max-width: 1023px) {
  .timeline::after {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  .timeline-item:nth-child(even) {
    left: 0;
  }
  
  .timeline-marker {
    left: 20px;
    right: auto;
  }
  
  .timeline-item:nth-child(even) .timeline-marker {
    left: 20px;
  }
}

@media screen and (max-width: 768px) {
  h1 {
    font-size: var(--text-4xl);
  }
  
  h2 {
    font-size: var(--text-3xl);
  }
  
  h3 {
    font-size: var(--text-2xl);
  }
  
  .section {
    padding: var(--space-8) 0;
  }
  
  .hero .title {
    font-size: var(--text-3xl);
  }
  
  .hero .subtitle {
    font-size: var(--text-xl);
  }
}

@media screen and (max-width: 480px) {
  h1 {
    font-size: var(--text-3xl);
  }
  
  h2 {
    font-size: var(--text-2xl);
  }
  
  h3 {
    font-size: var(--text-xl);
  }
  
  .hero .button {
    width: 100%;
    margin-right: 0;
  }
}

/* ============================== */
/* Button Styles (Global) */
/* ============================== */

.button {
  border-radius: var(--radius-md);
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: var(--transition-medium);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

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

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

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

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

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

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

.button.is-small {
  font-size: var(--text-sm);
  padding: var(--space-1) var(--space-3);
}

.button.is-medium {
  font-size: var(--text-base);
  padding: var(--space-2) var(--space-6);
}

.button.is-large {
  font-size: var(--text-lg);
  padding: var(--space-3) var(--space-8);
}
*{
  opacity: 1 !important;
}