/* ===== Core Variables ===== */
:root {
  /* Primary colors */
  --primary: #2c6ecb;
  --primary-dark: #1d4d91;
  --primary-light: #5490e8;
  
  /* Complementary colors */
  --complementary: #cb732c;
  --complementary-dark: #a65922;
  --complementary-light: #e8945f;
  
  /* Neutral colors */
  --white: #ffffff;
  --light-gray: #f5f7fa;
  --gray: #e1e5ee;
  --dark-gray: #4a5568;
  --black: #1a202c;
  
  /* Typography */
  --heading-font: 'Poppins', sans-serif;
  --body-font: 'Work Sans', sans-serif;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px 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);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  
  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
}

/* ===== Global Styles ===== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  color: var(--dark-gray);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 600;
  color: var(--black);
  line-height: 1.3;
}

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

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

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

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

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

/* ===== Header Styles ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background-color var(--transition-normal);
}

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

.navbar-item {
  font-family: var(--heading-font);
  font-weight: 500;
  color: var(--white);
  transition: color var(--transition-fast);
}

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

.navbar-brand .title {
  color: var(--white);
}

.navbar.is-transparent {
  background-color: transparent;
  box-shadow: none;
}

/* Sticky navbar styles */
.navbar-scrolled {
  background-color: var(--white);
  box-shadow: var(--shadow-md);
}
.page{

      background-color: var(--white);
      box-shadow: var(--shadow-md);

}
.page .navbar-item,
.page .navbar-brand .title {
  color: var(--black);
}
.navbar-scrolled .navbar-item,
.navbar-scrolled .navbar-brand .title {
  color: var(--black);
}

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

/* ===== Hero Section ===== */
.hero {
  position: relative;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--white);
}

.hero .title,
.hero .subtitle,
.hero p {
  color: var(--white);
}

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

.hero .image-container {
  text-align: center;
}

.hero .image-container img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-width: 100%;
  transition: transform var(--transition-normal);
}

.hero .image-container img:hover {
  transform: scale(1.02);
}

.hero-foot {
  padding-bottom: var(--space-xl);
  position: relative;
}

.pulse {
  animation: pulse 2s infinite;
}

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

/* Particles container */
.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* ===== Button Styles ===== */
.button {
  font-family: var(--heading-font);
  font-weight: 500;
  transition: all var(--transition-fast);
  border-radius: var(--radius-sm);
}

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

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

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

.button.is-outlined.is-white:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

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

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

.buttons {
  margin-bottom: var(--space-lg);
}

/* ===== Card Styles ===== */
.card {
  border-radius: var(--radius-md);
  overflow: hidden;
  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;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

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

.card .title {
  margin-bottom: var(--space-xl);
}

.card .subtitle {
  color: var(--dark-gray);
  margin-bottom: var(--space-md);
}

.card .content {
  flex: 1;
}

/* ===== Services Section ===== */
#servicios .columns {
  margin-top: var(--space-lg);
}

/* ===== Statistics Section ===== */
.stat-widget {
  padding: var(--space-xl);
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal);
}

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

.counter {
  font-weight: 700;
  font-size: 3rem;
  line-height: 1;
  margin-bottom: var(--space-md);
  display: inline-block;
}

/* ===== Events Calendar ===== */
#eventos .card {
  margin-bottom: var(--space-lg);
}

#eventos .card-image img {
  height: 250px;
  object-fit: cover;
}

#eventos .subtitle {
  color: var(--complementary);
  font-weight: 500;
}

/* ===== Accolades Section ===== */
.has-background-primary-light {
  background-color: var(--light-gray);
}

/* ===== Resources Section ===== */
#recursos .card-image img {
  height: 200px;
  object-fit: cover;
}

/* ===== Press Section ===== */
.media-left .image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-content .title.is-5 {
  margin-bottom: var(--space-sm);
}

/* ===== Customer Stories ===== */
.carousel-container {
  position: relative;
  overflow: hidden;
  padding: 0 var(--space-lg);
}

.customer-carousel {
  display: flex;
  transition: transform var(--transition-slow);
}

.carousel-item {
  flex: 0 0 100%;
  padding: 0 var(--space-md);
}

.carousel-controls {
  display: flex;
  justify-content: center;
  margin-top: var(--space-lg);
}

.prev-button,
.next-button {
  background-color: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 var(--space-sm);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.prev-button:hover,
.next-button:hover {
  background-color: var(--primary-dark);
}

/* ===== Webinars Section ===== */
#webinars .card-image img {
  height: 200px;
  object-fit: cover;
}

/* ===== Partners Section ===== */
.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  padding: var(--space-md);
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal);
}

.partner-logo:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.partner-logo img {
  max-height: 80%;
  max-width: 80%;
  object-fit: contain;
}

/* ===== Contact Section ===== */
.contact-info {
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  height: 100%;
}

.contact-item {
  display: flex;
  align-items: flex-start;
}

.contact-form {
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);

}

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

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

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

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

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

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

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

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

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

.social-links .links a:hover {
  color: var(--white);
  transform: translateY(-2px);
}

.contact-details {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-details li {
  display: flex;
  align-items: flex-start;
  color: var(--light-gray);
}

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

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

/* ===== Privacy & Terms Pages ===== */
.privacy-content,
.terms-content {
  padding-top: 100px;
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: var(--space-xxl);
}

/* ===== Media Queries ===== */
@media screen and (max-width: 768px) {
  .hero .title.is-1 {
    font-size: 2.5rem;
  }
  
  .hero .subtitle.is-4 {
    font-size: 1.25rem;
  }
  
  .carousel-item {
    flex: 0 0 100%;
  }
  
  .contact-info,
  .contact-form {
    margin-bottom: var(--space-lg);
  }
  
  .navbar-menu {
    background-color: var(--black);
  }
  
  .navbar-menu .navbar-item {
    color: var(--white);
  }
  
  .navbar-menu .navbar-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
}

@media screen and (min-width: 769px) and (max-width: 1023px) {
  .carousel-item {
    flex: 0 0 50%;
  }
}

@media screen and (min-width: 1024px) {
  .carousel-item {
    flex: 0 0 33.333%;
  }
}

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

/* Particle animation */
@keyframes particle {
  0% {
    opacity: 0;
    transform: translateY(0) rotate(0);
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-100px) rotate(360deg);
  }
}

.particle {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
  animation: particle 3s linear infinite;
}

/* Read more links */
.is-link {
  color: var(--primary);
  font-weight: 500;
  position: relative;
  display: inline-block;
  transition: color var(--transition-fast);
}

.is-link:after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--primary);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform var(--transition-normal);
}

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

.is-link:hover:after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Cookie Consent Popup */
#cookieConsent {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  box-shadow: var(--shadow-lg);
}

#acceptCookies {
  background-color: var(--primary);
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast);
}

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

/* Add realistic texture effects */
.card, 
.contact-info, 
.contact-form,
.stat-widget,
.partner-logo {
  background-image: linear-gradient(to bottom right, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0)), 
                   url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="4" height="4" viewBox="0 0 4 4"><path fill="rgba(0,0,0,0.02)" d="M1 3h1v1H1V3zm2-2h1v1H3V1z"/></svg>');
}

/* Custom utility classes */
.has-text-primary { color: var(--primary) !important; }
.has-text-complementary { color: var(--complementary) !important; }
.has-background-primary { background-color: var(--primary) !important; }
.has-background-complementary { background-color: var(--complementary) !important; }