/* ===== ROOT VARIABLES ===== */
:root {
  /* Primary Colors */
  --primary-color: #2D70B3;
  --primary-dark: #1B5A96;
  --primary-light: #4D90D3;
  
  /* Secondary Colors */
  --secondary-color: #707070;
  --secondary-dark: #505050;
  --secondary-light: #909090;
  
  /* Neutral Colors */
  --neutral-100: #ffffff;
  --neutral-200: #f5f5f5;
  --neutral-300: #e0e0e0;
  --neutral-400: #cccccc;
  --neutral-500: #9e9e9e;
  --neutral-600: #757575;
  --neutral-700: #616161;
  --neutral-800: #424242;
  --neutral-900: #212121;
  
  /* Accent Colors */
  --accent-color: #E67E22;
  --accent-dark: #D35400;
  --accent-light: #F39C12;
  
  /* Success/Error Colors */
  --success-color: #27AE60;
  --error-color: #E74C3C;
  
  /* Font Families */
  --title-font: 'Oswald', sans-serif;
  --body-font: 'Nunito', sans-serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-extra-slow: 0.8s ease;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* ===== GLOBAL STYLES ===== */
html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--title-font);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.5rem;
}

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

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

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

/* ===== UTILITY CLASSES ===== */
.text-center {
  text-align: center;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-2 {
  margin-bottom: 0.5rem !important;
}

.mb-4 {
  margin-bottom: 1rem !important;
}

.mb-6 {
  margin-bottom: 1.5rem !important;
}

.mt-2 {
  margin-top: 0.5rem !important;
}

.mt-4 {
  margin-top: 1rem !important;
}

.mt-6 {
  margin-top: 1.5rem !important;
}

/* ===== NAVBAR STYLES ===== */
.navbar {
  box-shadow: var(--shadow-md);
  background-color: var(--neutral-100) !important;
  transition: all var(--transition-normal);
  padding: 0.5rem 0;
}

.navbar-item {
  font-family: var(--title-font);
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 0.7rem 1rem;
  transition: color var(--transition-normal);
}

.navbar-item:hover {
  color: var(--primary-color) !important;
  background-color: transparent !important;
}

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

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.4));
  z-index: 1;
}

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

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

.hero .button {
  margin-right: 1rem;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

/* ===== BUTTONS ===== */
.button {
  font-family: var(--title-font);
  font-weight: 500;
  letter-spacing: 0.5px;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
}

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

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

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

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

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

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

/* ===== ABOUT US SECTION ===== */
#nosotros {
  padding: var(--space-xl) 0;
}

#nosotros .image-container {
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

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

#nosotros .image-container:hover img {
  transform: scale(1.05);
}

.accordion {
  margin-top: var(--space-lg);
}

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

.accordion-header {
  background-color: var(--neutral-200);
  padding: var(--space-md);
  cursor: pointer;
  transition: background-color var(--transition-normal);
}

.accordion-header:hover {
  background-color: var(--neutral-300);
}

.accordion-header h3 {
  margin: 0;
  color: var(--primary-color);
}

.accordion-content {
  padding: var(--space-md);
  display: none;
  background-color: var(--neutral-100);
}

.accordion-item.active .accordion-content {
  display: block;
}

.stat-box {
  background-color: var(--neutral-100);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  height: 100%;
}

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

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

.progress-indicator {
  height: 6px;
  background-color: var(--neutral-300);
  border-radius: 3px;
  margin-top: var(--space-md);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background-color: var(--primary-color);
  border-radius: 3px;
  transition: width 1s ease-in-out;
}

/* ===== FEATURES SECTION ===== */
#caracteristicas {
  padding: var(--space-xl) 0;
  background-color: var(--neutral-200);
}

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

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

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

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

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

.card-content {
  padding: var(--space-lg);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-content h3 {
  color: var(--primary-color);
  margin-bottom: var(--space-md);
}

.card-content p {
  margin-bottom: var(--space-md);
  flex-grow: 1;
}

.resource-list {
  list-style-type: none;
  padding: 0;
}

.resource-list li {
  margin-bottom: var(--space-md);
  padding-left: var(--space-md);
  position: relative;
}

.resource-list li::before {
  content: '•';
  color: var(--primary-color);
  position: absolute;
  left: 0;
  top: 0;
}

.resource-list a {
  color: var(--primary-color);
  font-weight: 600;
  transition: color var(--transition-normal);
}

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

/* ===== NEWS SECTION ===== */
#noticias {
  padding: var(--space-xl) 0;
}

#noticias .card {
  height: 100%;
}

#noticias .card-content p.is-size-7 {
  color: var(--neutral-600);
}

#noticias .button.is-primary.is-outlined {
  margin-top: auto;
  align-self: flex-start;
}

/* ===== EVENTS CALENDAR SECTION ===== */
#eventos {
  padding: var(--space-xl) 0;
}

.events-timeline {
  position: relative;
}

.event-item {
  display: flex;
  margin-bottom: var(--space-lg);
  position: relative;
}

.event-date {
  min-width: 80px;
  height: 80px;
  background-color: var(--primary-color);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  margin-right: var(--space-lg);
  box-shadow: var(--shadow-md);
}

.event-date .month {
  font-family: var(--title-font);
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1;
}

.event-date .day {
  font-family: var(--title-font);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.event-content {
  flex-grow: 1;
  padding: var(--space-md);
  background-color: var(--neutral-100);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.event-content h3 {
  color: var(--primary-color);
  margin-bottom: var(--space-xs);
}

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

/* ===== CONTACT SECTION ===== */
#contacto {
  padding: var(--space-xl) 0;
}

#contacto .card {
  height: 100%;
}

.input, .textarea {
  transition: border-color var(--transition-normal);
  border-radius: var(--radius-md);
}

.input:focus, .textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(45, 112, 179, 0.25);
}

.label {
  color: var(--neutral-800);
  font-weight: 600;
}

.checkbox a {
  color: var(--primary-color);
  text-decoration: underline;
}

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

/* ===== FOOTER ===== */
.footer {
  background-color: var(--neutral-800);
  color: var(--neutral-200);
  padding: var(--space-xl) 0;
}

.footer h3 {
  color: var(--neutral-100);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: var(--space-sm);
  display: inline-block;
}

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

.social-links ul {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0;
  display: flex;
  flex-wrap: wrap;
}

.social-links ul li {
  margin-right: var(--space-md);
  margin-bottom: var(--space-sm);
}

.social-links ul li a {
  color: var(--neutral-300);
  transition: color var(--transition-normal);
  font-weight: 600;
  text-decoration: none;
  position: relative;
}

.social-links ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary-color);
  transition: width var(--transition-normal);
}

.social-links ul li a:hover {
  color: var(--primary-light);
}

.social-links ul li a:hover::after {
  width: 100%;
}

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

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links li a {
  color: var(--neutral-300);
  transition: color var(--transition-normal), transform var(--transition-normal);
  display: inline-block;
  text-decoration: none;
}

.footer-links li a:hover {
  color: var(--primary-light);
  transform: translateX(5px);
}

.footer hr {
  background-color: var(--neutral-700);
  margin: var(--space-lg) 0;
}

.footer .has-text-centered {
  color: var(--neutral-500);
  font-size: 0.9rem;
}

/* ===== SUCCESS PAGE ===== */
.success-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--space-xl);
}

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

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

/* ===== PRIVACY & TERMS PAGES ===== */
.privacy-page, .terms-page {
  padding-top: 100px;
  padding-bottom: var(--space-xl);
}

.privacy-page .container, .terms-page .container {
  max-width: 800px;
}

.privacy-page h2, .terms-page h2 {
  color: var(--primary-color);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

.privacy-page h3, .terms-page h3 {
  color: var(--secondary-color);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.fade-in {
  animation: fadeIn var(--transition-slow) cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.slide-in-left {
  animation: slideInLeft var(--transition-slow) cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.slide-in-right {
  animation: slideInRight var(--transition-slow) cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.scale-in {
  animation: scaleIn var(--transition-slow) cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* ===== RESPONSIVE STYLES ===== */
@media screen and (max-width: 768px) {
  .hero .title {
    font-size: 2.5rem !important;
  }
  
  .hero .subtitle {
    font-size: 1.5rem !important;
  }
  
  .event-item {
    flex-direction: column;
  }
  
  .event-date {
    margin-right: 0;
    margin-bottom: var(--space-md);
    align-self: flex-start;
  }
  
  .stat-box {
    margin-bottom: var(--space-md);
  }
  
  .button {
    margin-bottom: var(--space-sm);
  }
  
  .navbar-menu {
    box-shadow: var(--shadow-md);
  }
}

@media screen and (max-width: 1023px) {
  .section {
    padding: 2rem 1rem;
  }
  
  .event-content:hover {
    transform: none;
  }
}

/* ===== CUSTOM JS SUPPORT ===== */
.navbar-burger {
  color: var(--neutral-800);
}

.navbar-burger:hover {
  background-color: var(--neutral-200);
}

/* Toggle for accordion */
.accordion-item.active .accordion-header {
  background-color: var(--primary-color);
}

.accordion-item.active .accordion-header h3 {
  color: var(--neutral-100);
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--neutral-200);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}