/* ------------ Variables ------------ */
:root {
  /* Primary Colors */
  --primary: #7471fc;
  --primary-dark: #5552e3;
  --primary-light: #a5a3ff;
  
  /* Secondary Colors */
  --secondary: #ff7e5f;
  --secondary-dark: #e5664a;
  --secondary-light: #ffb3a1;
  
  /* Neutral Colors */
  --white: #ffffff;
  --light: #f7f9fc;
  --light-gray: #e8ecf5;
  --gray: #a0a8c0;
  --dark-gray: #5a607f;
  --dark: #343a54;
  --black: #1c1f2e;
  
  /* Accent Colors */
  --accent1: #61e8e1;
  --accent2: #ffcd6b;
  --accent3: #f471b5;
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.25);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-shadow: rgba(0, 0, 0, 0.05);
  
  /* Gradient */
  --gradient-primary: linear-gradient(135deg, var(--primary), var(--primary-light));
  --gradient-secondary: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  --gradient-accent: linear-gradient(135deg, var(--accent1), var(--accent3));
  
  /* Typography */
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Nunito', sans-serif;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-round: 9999px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-normal: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-slow: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
}

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

body {
  font-family: var(--font-body);
  color: var(--dark);
  background-color: var(--light);
  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;
}

p {
  margin-bottom: 1.5rem;
}

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

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

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

/* Button Styles */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all var(--transition-normal);
  background-color: var(--primary);
  color: var(--white);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background-color: var(--primary-dark);
  color: var(--white);
}

.button:active {
  transform: translateY(0);
}

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

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

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

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

.button.is-rounded {
  border-radius: var(--radius-round);
}

.button.is-medium {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.button.is-large {
  padding: 1rem 2rem;
  font-size: 1.25rem;
}

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

/* Glassmorphism Effect */
.glassmorphism {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px 0 var(--glass-shadow);
  border-radius: var(--radius-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.glassmorphism:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px 0 rgba(0, 0, 0, 0.1);
}

/* Curved Grid Effect */
.curved-grid {
  position: relative;
  background: linear-gradient(135deg, var(--light), var(--light-gray));
  padding: var(--space-lg) 0;
  overflow: hidden;
}

.curved-grid::before {
  content: '';
  position: absolute;
  top: -50px;
  left: 0;
  width: 100%;
  height: 100px;
  background: var(--light);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}

.curved-grid::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: 0;
  width: 100%;
  height: 100px;
  background: var(--light);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

/* ------------ Header & Navigation ------------ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: all var(--transition-normal);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.navbar-brand h1 {
  margin-bottom: 0;
  color: var(--primary);
}

.navbar-menu {
  display: flex;
}

.navbar-end {
  display: flex;
  align-items: center;
}

.navbar-item {
  padding: 0.5rem 1rem;
  color: var(--dark);
  transition: color var(--transition-fast);
}

.navbar-item:hover {
  color: var(--primary);
}

.navbar-burger {
  display: none;
  cursor: pointer;
  width: 3.25rem;
  height: 3.25rem;
  position: relative;
}

.navbar-burger span {
  display: block;
  height: 2px;
  width: 24px;
  background-color: var(--dark);
  position: absolute;
  left: calc(50% - 12px);
  transition: all var(--transition-fast);
}

.navbar-burger span:nth-child(1) {
  top: calc(50% - 8px);
}

.navbar-burger span:nth-child(2) {
  top: calc(50% - 1px);
}

.navbar-burger span:nth-child(3) {
  top: calc(50% + 6px);
}

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

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}

.hero-image::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.3));
}

.hero-body {
  display: flex;
  align-items: center;
  padding: var(--space-lg) 0;
  min-height: 80vh;
}

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

.hero .title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.hero .subtitle {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.hero .buttons {
  margin-top: 2rem;
}

/* ------------ Vision Section ------------ */
#vision {
  padding: var(--space-lg) 0;
}

#vision .content {
  height: 100%;
}

.image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

.image-container img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  text-align: center;
}

.stat-item {
  padding: var(--space-xs);
}

.stat-item h4 {
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.stat-item p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ------------ Webinars Section ------------ */
#webinars {
  padding: var(--space-lg) 0;
}

.card {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

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

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

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

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

.card-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.card-content .subtitle {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.card-content p {
  flex: 1;
  margin-bottom: 1.5rem;
}

.card-content .button {
  align-self: flex-start;
}

/* ------------ Resources Section ------------ */
#recursos {
  padding: var(--space-lg) 0;
}

#recursos .card {
  min-height: 250px;
}

#recursos .card-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

#recursos .button {
  margin-top: auto;
}

/* ------------ Events Calendar Section ------------ */
#eventos {
  padding: var(--space-lg) 0;
}

.event-card {
  position: relative;
  height: 100%;
}

.event-date {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: var(--primary);
  color: var(--white);
  border-radius: var(--radius-md);
  z-index: 1;
  box-shadow: var(--shadow-md);
}

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

.event-date .day {
  font-size: 1.5rem;
  font-weight: 700;
}

/* ------------ Research Section ------------ */
#investigacion {
  padding: var(--space-lg) 0;
}

.research-chart {
  margin-bottom: var(--space-md);
}

.research-chart h4 {
  margin-bottom: var(--space-sm);
}

.research-highlights {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.highlight-icon {
  font-size: 1.5rem;
  color: var(--primary);
}

.highlight-content h5 {
  margin-bottom: 0.25rem;
}

.highlight-content p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.tabs {
  margin-bottom: var(--space-sm);
}

.tabs ul {
  display: flex;
  list-style: none;
  border-bottom: 1px solid var(--light-gray);
}

.tabs li {
  margin-right: var(--space-sm);
}

.tabs li a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--dark-gray);
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
}

.tabs li.is-active a,
.tabs li a:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-content {
  padding: var(--space-sm) 0;
}

.tab-content.hidden {
  display: none;
}

/* ------------ Gallery Section ------------ */
#galeria {
  padding: var(--space-lg) 0;
}

.gallery-container {
  margin-top: var(--space-md);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

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

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: var(--space-sm);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: var(--white);
  transform: translateY(100%);
  transition: transform var(--transition-normal);
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

.gallery-caption h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.gallery-caption p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ------------ FAQ Section ------------ */
#faq {
  padding: var(--space-lg) 0;
}

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

.faq-item {
  margin-bottom: var(--space-sm);
  border-bottom: 1px solid var(--light-gray);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  cursor: pointer;
}

.faq-question h3 {
  margin-bottom: 0;
  flex: 1;
}

.faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

/* ------------ Contact Section ------------ */
#contacto {
  padding: var(--space-lg) 0;
}

.contact-form {
  height: 100%;
}

.field {
  margin-bottom: var(--space-sm);
}

.label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.input, 
.textarea, 
.select select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-md);
  background-color: var(--white);
  transition: border-color var(--transition-fast);
}

.input:focus, 
.textarea:focus, 
.select select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(116, 113, 252, 0.25);
}

.contact-info {
  height: 100%;
}

.contact-item {
  display: flex;
  margin-bottom: var(--space-md);
}

.contact-item .icon {
  font-size: 1.5rem;
  margin-right: var(--space-sm);
  color: var(--primary);
}

.contact-item .text strong {
  display: block;
  margin-bottom: 0.25rem;
}

.contact-item .text p {
  margin-bottom: 0;
}

.map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.map-container img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

/* ------------ Footer ------------ */
.footer {
  background-color: var(--dark);
  color: var(--light);
  padding: var(--space-lg) 0 var(--space-md);
}

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

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

.social-links {
  margin-bottom: var(--space-md);
}

.social-links a {
  color: var(--light-gray);
  margin-right: var(--space-xs);
  transition: color var(--transition-fast);
}

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

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

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

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

.newsletter-form {
  margin-top: var(--space-sm);
}

.has-addons {
  display: flex;
}

.control.is-expanded {
  flex: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-md);
  margin-top: var(--space-md);
}

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

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

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

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

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

.animate__fadeInUp {
  animation: fadeInUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.animate__delay-1s {
  animation-delay: 0.2s;
}

.animate__delay-2s {
  animation-delay: 0.4s;
}

.animate__delay-3s {
  animation-delay: 0.6s;
}

/* ------------ Utility Classes ------------ */
.has-text-centered {
  text-align: center;
}

.has-text-right {
  text-align: right;
}

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

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

.mt-3 {
  margin-top: 1rem;
}

.mt-4 {
  margin-top: 1.5rem;
}

.mt-5 {
  margin-top: 2rem;
}

.mt-6 {
  margin-top: 3rem;
}

.mb-3 {
  margin-bottom: 1rem;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.mb-5 {
  margin-bottom: 2rem;
}

.mb-6 {
  margin-bottom: 3rem;
}

.pt-5 {
  padding-top: 2rem;
}

.p-4 {
  padding: 1.5rem;
}

.p-5 {
  padding: 2rem;
}

.h-100 {
  height: 100%;
}

/* ------------ Responsive Styles ------------ */
@media screen and (max-width: 1023px) {
  .navbar-burger {
    display: block;
  }
  
  .navbar-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    padding: 1rem;
  }
  
  .navbar-menu.is-active {
    display: block;
  }
  
  .navbar-end {
    flex-direction: column;
  }
  
  .navbar-item {
    padding: 0.75rem 0;
  }
  
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .hero .title {
    font-size: 2.5rem;
  }
  
  .hero .subtitle {
    font-size: 1.5rem;
  }
  
  .stats-container {
    grid-template-columns: 1fr;
  }
  
  .contact-info {
    margin-top: var(--space-md);
  }
  
  .footer .columns {
    display: block;
  }
  
  .footer .column {
    width: 100%;
    margin-bottom: var(--space-md);
  }
}

@media screen and (max-width: 480px) {
  .hero .title {
    font-size: 2rem;
  }
  
  .hero .subtitle {
    font-size: 1.25rem;
  }
  
  .card-content {
    padding: var(--space-sm);
  }
  
  .gallery-item {
    width: 100%;
  }
}