:root {
  /* Primary colors */
  --primary-color: #2a52be;
  --primary-light: #5378df;
  --primary-dark: #1c3b8f;
  
  /* Complementary colors */
  --accent-color: #be7c2a;
  --accent-light: #e9aa5b;
  --accent-dark: #8f5e1c;
  
  /* Neutral colors */
  --neutral-100: #ffffff;
  --neutral-200: #f7f9fc;
  --neutral-300: #e9ecef;
  --neutral-400: #ced4da;
  --neutral-500: #adb5bd;
  --neutral-600: #6c757d;
  --neutral-700: #495057;
  --neutral-800: #343a40;
  --neutral-900: #212529;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--accent-light));
  --gradient-dark: linear-gradient(135deg, rgba(33, 37, 41, 0.95), rgba(33, 37, 41, 0.85));
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.2);
  
  /* Typography */
  --font-heading: 'Inter', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Borders */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  --border-radius-xl: 16px;
  --border-radius-xxl: 24px;
  --border-radius-circle: 50%;
}

/* Base Styles */
body {
  font-family: var(--font-body);
  color: var(--neutral-800);
  background-color: var(--neutral-100);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--neutral-900);
}

p {
  margin-bottom: 1.5rem;
}

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

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

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

section {
  padding: 4rem 0;
  position: relative;
}

.bg-light {
  background-color: var(--neutral-200);
}

.bg-dark {
  background-color: var(--neutral-900);
  color: var(--neutral-100);
}

.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark h5, .bg-dark h6 {
  color: var(--neutral-100);
}

/* Button Styles */
.btn {
  display: inline-block;
  font-weight: 500;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: var(--border-radius-md);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
  text-transform: none;
  border: none;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

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

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  color: white;
}

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

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

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

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
}

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

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Header/Navbar */
header {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  z-index: 1000;
}

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

.navbar {
  padding: 1rem 0;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--primary-color);
  transition: color var(--transition-fast);
}

.navbar-brand:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

.nav-link {
  font-weight: 500;
  color: var(--neutral-700);
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary-color);
  transition: width var(--transition-normal);
}

.nav-link:hover {
  color: var(--primary-color);
}

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

/* Hero Section */
.hero-section {
  position: relative;
  padding: 0;
  overflow: hidden;
}

.hero-section .overlay {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 0;
}

.hero-section .overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-dark);
  opacity: 0.7;
}

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

.hero-section h1 {
  color: white;
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-size: 3rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section p {
  color: white;
  font-size: 1.25rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Historia Section */
.history-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  margin-bottom: 2rem;
}

.history-timeline {
  position: relative;
  padding-left: 2rem;
}

.history-timeline:before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-circle);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  padding-left: 1.5rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item:before {
  content: '';
  position: absolute;
  left: -10px;
  top: 8px;
  width: 20px;
  height: 20px;
  background-color: var(--primary-light);
  border-radius: var(--border-radius-circle);
  z-index: 1;
  box-shadow: var(--shadow-sm);
}

.timeline-item .year {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--primary-color);
  color: white;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.timeline-item h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}

/* Proyectos Section */
.card {
  overflow: hidden;
  border: none;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.card-image {
  overflow: hidden;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card h4 {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.text-muted {
  color: var(--neutral-600);
}

.progress {
  height: 8px;
  border-radius: var(--border-radius-sm);
  background-color: var(--neutral-300);
  overflow: hidden;
}

.progress-bar {
  background: var(--gradient-primary);
  border-radius: var(--border-radius-sm);
}

/* Gallery Section */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
  display: block;
  margin: 0 auto;
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
  color: white;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-normal), transform var(--transition-normal);
  text-align: center;
}

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

.gallery-item:hover .gallery-overlay {
  opacity: 1;
  transform: translateY(0);
}

.gallery-overlay h5 {
  color: white;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.gallery-overlay p {
  margin-bottom: 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Recursos Section */
.resource-card {
  border: none;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.resource-card .card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.resource-card h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.resource-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* Eventos Section */
.calendar-container {
  background-color: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2rem;
}

.event-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--neutral-300);
}

.event-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-md);
  color: white;
  margin-right: 1.5rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.event-date .month {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.event-date .day {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
}

.event-details {
  flex-grow: 1;
}

.event-details h4 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.event-details .location {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: var(--neutral-600);
}

/* Detras de Escenas Section */
#detras-escenas img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-normal);
}

#detras-escenas img:hover {
  transform: scale(1.02);
}

/* Reconocimientos Section */
.accolade-card {
  border: none;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.accolade-card .card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

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

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

/* Contacto Section */
.contact-info, .contact-form {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  height: 100%;
}

.contact-info ul {
  margin-bottom: 1.5rem;
}

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

.social-links a {
  display: inline-block;
  margin-right: 0.75rem;
  font-weight: 500;
  color: var(--primary-color);
  transition: color var(--transition-fast);
}

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

/* Form Elements */
.form-control {
  padding: 0.75rem 1rem;
  border: 1px solid var(--neutral-400);
  border-radius: var(--border-radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  font-family: var(--font-body);
}

.form-control:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 0.25rem rgba(42, 82, 190, 0.25);
}

.form-select {
  padding: 0.75rem 1rem;
  border: 1px solid var(--neutral-400);
  border-radius: var(--border-radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  font-family: var(--font-body);
}

.form-select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 0.25rem rgba(42, 82, 190, 0.25);
}

.form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--neutral-700);
}

/* Footer */
footer {
  background-color: var(--neutral-900);
  color: var(--neutral-300);
  padding: 4rem 0;
}

footer h4, footer h5 {
  color: var(--neutral-100);
  margin-bottom: 1.5rem;
}

footer p {
  color: var(--neutral-400);
}

footer ul {
  padding-left: 0;
}

footer ul li {
  margin-bottom: 0.5rem;
}

footer a {
  color: var(--neutral-300);
  transition: color var(--transition-fast);
}

footer a:hover {
  color: var(--neutral-100);
  text-decoration: none;
}

footer .social-links a {
  font-weight: 400;
  margin-right: 1rem;
}

footer hr {
  border-color: var(--neutral-700);
  margin: 2rem 0;
}

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

.modal-header {
  border-bottom: 1px solid var(--neutral-300);
  padding: 1.5rem;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  border-top: 1px solid var(--neutral-300);
  padding: 1.5rem;
}

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

.success-content {
  text-align: center;
  max-width: 600px;
}

.success-icon {
  font-size: 4rem;
  color: var(--accent-color);
  margin-bottom: 2rem;
}

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

/* Parallax Effect */
.parallax-section {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

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

.fade-in {
  animation: fadeIn 1s ease forwards;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.pulse {
  animation: pulse 2s infinite;
}

/* Media Queries */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: white;
    padding: 1rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
  }
  
  .nav-link:after {
    display: none;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .hero-section p {
    font-size: 1.1rem;
  }
  
  .event-date {
    width: 60px;
    height: 60px;
  }
  
  .event-date .day {
    font-size: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  section {
    padding: 3rem 0;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-section p {
    font-size: 1rem;
  }
  
  .btn-group {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .btn-group .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .timeline-item {
    padding-left: 1rem;
  }
  
  .event-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .event-date {
    margin-bottom: 1rem;
    margin-right: 0;
  }
}

@media (max-width: 575.98px) {
  .hero-section h1 {
    font-size: 1.75rem;
  }
  
  .contact-form, .contact-info {
    padding: 1.5rem;
  }
}

/* Utilities */
.text-center {
  text-align: center;
}

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

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