:root {
  /* Color variables */
  --primary-color: #1E3A8A; /* Deep blue */
  --primary-dark: #152761;
  --primary-light: #2b4db3;
  --secondary-color: #E85A0C; /* Complementary orange */
  --secondary-dark: #c44b0a;
  --secondary-light: #ff6f1e;
  --accent-color: #34D399; /* Accent green */
  --accent-dark: #10B981;
  --accent-light: #6EE7B7;
  --neutral-dark: #1F2937;
  --neutral-medium: #4B5563;
  --neutral-light: #9CA3AF;
  --neutral-lightest: #F3F4F6;
  --success-color: #10B981;
  --warning-color: #F59E0B;
  --danger-color: #EF4444;
  --info-color: #3B82F6;
  
  /* Typography */
  --heading-font: 'Raleway', sans-serif;
  --body-font: 'Open Sans', sans-serif;
  
  /* Spacing */
  --section-spacing: 5rem;
  --container-padding: 2rem;
  
  /* Border radius */
  --border-radius-sm: 0.375rem;
  --border-radius-md: 0.75rem;
  --border-radius-lg: 1.5rem;
  
  /* Shadows */
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.25);
  
  /* Transitions */
  --transition-fast: 0.15s 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(--neutral-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

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

p {
  margin-bottom: 1.5rem;
}

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

section {
  padding: 4rem 0;
}

/* Button styles */
.btn {
  font-family: var(--heading-font);
  font-weight: 600;
  border-radius: var(--border-radius-md);
  padding: 0.75rem 1.5rem;
  transition: all var(--transition-normal);
  border: none;
  box-shadow: var(--shadow-md);
  text-transform: none;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(100%);
  transition: transform var(--transition-normal);
  z-index: -1;
}

.btn:hover::after {
  transform: translateY(0);
}

.btn:active {
  transform: translateY(2px);
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  box-shadow: var(--shadow-lg);
}

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

.btn-accent:hover {
  background-color: var(--accent-dark);
  box-shadow: var(--shadow-lg);
}

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

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  background-color: transparent;
  color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: white;
  box-shadow: var(--shadow-lg);
}

.btn-outline-success {
  border: 2px solid var(--success-color);
  background-color: transparent;
  color: var(--success-color);
}

.btn-outline-success:hover {
  background-color: var(--success-color);
  color: white;
  box-shadow: var(--shadow-lg);
}

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

/* Header & Navigation */
header {
  z-index: 1000;
}

.navbar {
  box-shadow: var(--shadow-md);
}

.navbar-brand {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 1.5rem;
}

.nav-link {
  font-family: var(--heading-font);
  font-weight: 600;
  transition: color var(--transition-normal);
  position: relative;
  padding: 0.5rem 0.75rem !important;
  margin: 0 0.25rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: white;
  transition: all var(--transition-normal);
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 80%;
}

/* Hero Section */
.hero-section {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  color: white;
}

.hero-section .overlay {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
  top: 0;
  left: 0;
}

.hero-section h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s var(--transition-normal) forwards;
}

.hero-section p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s var(--transition-normal) 0.2s forwards;
}

.hero-section .btn {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s var(--transition-normal) 0.4s forwards;
}

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

/* Services Section */
.service-card {
  transition: all var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl) !important;
}

.card-image {
  overflow: hidden;
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.service-card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card .card-title {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Historia Section */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background-color: var(--primary-light);
  transform: translateX(-50%);
  border-radius: var(--border-radius-lg);
}

.timeline-item {
  background-color: white;
  border-radius: var(--border-radius-lg);
  transition: all var(--transition-normal);
  position: relative;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: var(--primary-color);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}

.timeline-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl) !important;
}

.col-lg-6:nth-child(odd) .timeline-item::after {
  right: -30px;
}

.col-lg-6:nth-child(even) .timeline-item::after {
  left: -30px;
}

/* Insights Section */
.card {
  transition: all var(--transition-normal);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

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

.card-title {
  font-family: var(--heading-font);
  font-weight: 700;
}

.card .btn {
  align-self: flex-start;
}

/* Recursos Externos Section */
.card-body.text-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

/* Eventos Section */
.evento-card {
  transition: all var(--transition-normal);
}

.evento-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl) !important;
}

.badge {
  font-family: var(--heading-font);
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-lg);
}

.event-day {
  position: relative;
  font-weight: 600;
  color: var(--primary-color);
}

.event-day .badge {
  font-size: 0.65rem;
  padding: 0.25rem 0.5rem;
}

/* Carreras Section */
.accordion {
  --bs-accordion-active-bg: var(--primary-light);
  --bs-accordion-active-color: white;
  --bs-accordion-btn-focus-box-shadow: 0 0 0 0.25rem rgba(30, 58, 138, 0.25);
}

.accordion-button:not(.collapsed) {
  background-color: var(--primary-color);
  color: white;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--primary-light);
}

.list-group-item {
  transition: all var(--transition-normal);
}

.list-group-item:hover {
  background-color: var(--neutral-lightest);
}

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

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(30, 58, 138, 0.25);
}

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

/* Footer */
footer {
  background-color: var(--neutral-dark);
  color: white;
}

footer a {
  color: white;
  transition: color var(--transition-normal);
}

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

/* Modal Styles */
.modal-content {
  border-radius: var(--border-radius-lg);
  border: none;
  overflow: hidden;
}

.modal-header {
  border-bottom: none;
  padding: 1.5rem 1.5rem 0.5rem;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  border-top: none;
  padding: 0.5rem 1.5rem 1.5rem;
}

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

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

/* Privacy and Terms pages */
.privacy-page, .terms-page {
  padding-top: 100px;
}

.privacy-content, .terms-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

/* Utility classes */
.shadow-hover {
  transition: box-shadow var(--transition-normal);
}

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

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

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

.rounded-4 {
  border-radius: var(--border-radius-lg) !important;
}

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

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

/* 3D Effects */
.card-3d-effect {
  transition: transform var(--transition-normal);
  transform-style: preserve-3d;
}

.card-3d-effect:hover {
  transform: perspective(1000px) rotateX(2deg) rotateY(2deg) scale(1.02);
}

/* Media Queries */
@media (max-width: 992px) {
  .timeline::before {
    left: 30px;
  }
  
  .timeline-item::after {
    left: -30px !important;
    right: auto !important;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  section {
    padding: 3rem 0;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .btn {
    padding: 0.5rem 1rem;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .timeline-item {
    padding: 1.5rem;
  }
  
  .hero-section h1 {
    font-size: 1.75rem;
  }
  
  .display-4 {
    font-size: 2rem;
  }
}