/* ========== Custom variables ========== */
:root {
  /* Color palette - split complementary */
  --primary-color: #5a67d8;
  --primary-dark: #4c56b5;
  --primary-light: #7886f0;
  --secondary-color: #e5843d;
  --secondary-dark: #c46c2f;
  --secondary-light: #f79c5a;
  --tertiary-color: #3dcca2;
  --tertiary-dark: #2fa884;
  --tertiary-light: #6eddc0;
  
  /* Neutrals */
  --dark: #2a2a3c;
  --dark-light: #383851;
  --light: #f8f9fa;
  --light-dark: #e2e3e9;
  --gray: #a0aec0;

  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Source Sans Pro', sans-serif;
  
  /* Shadows and effects */
  --neumorph-light: 8px 8px 16px rgba(163, 177, 198, 0.5), 
                   -8px -8px 16px rgba(255, 255, 255, 0.8);
  --neumorph-dark: 5px 5px 10px rgba(163, 177, 198, 0.6), 
                  -5px -5px 10px rgba(255, 255, 255, 0.6);
  --neumorph-inset: inset 2px 2px 5px rgba(163, 177, 198, 0.5), 
                   inset -2px -2px 5px rgba(255, 255, 255, 0.8);
  --transition-smooth: all 0.3s ease-in-out;
}

/* ========== Global Styles ========== */
html, body {
  font-family: var(--font-body);
  color: var(--dark);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .title, .subtitle {
  font-family: var(--font-heading);
  font-weight: 700;
}

.title {
  margin-bottom: 1.5rem;
}

.section {
  padding: 5rem 1.5rem;
}

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

/* ========== Neumorphic Elements ========== */
.neumorph-container {
  background-color: var(--light);
  border-radius: 15px;
  box-shadow: var(--neumorph-light);
  padding: 2rem;
  transition: var(--transition-smooth);
}

.neumorph-container:hover {
  box-shadow: var(--neumorph-dark);
}

.neumorph-card {
  background-color: var(--light);
  border-radius: 15px;
  box-shadow: var(--neumorph-light);
  transition: var(--transition-smooth);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.neumorph-card:hover {
  transform: translateY(-5px);
  box-shadow: 12px 12px 20px rgba(163, 177, 198, 0.6), 
             -12px -12px 20px rgba(255, 255, 255, 0.8);
}

.neumorph-button {
  background: linear-gradient(145deg, var(--primary-color), var(--primary-dark));
  color: white;
  border: none;
  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.2);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.neumorph-button:hover {
  transform: translateY(-2px);
  box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.25);
  color: white;
}

.neumorph-button:active {
  transform: translateY(1px);
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.neumorph-button-light {
  background: var(--light);
  color: var(--primary-color);
  border: 1px solid var(--light-dark);
  box-shadow: 4px 4px 8px rgba(163, 177, 198, 0.4);
  transition: var(--transition-smooth);
}

.neumorph-button-light:hover {
  background: var(--light-dark);
  transform: translateY(-2px);
  box-shadow: 6px 6px 12px rgba(163, 177, 198, 0.5);
  color: var(--primary-dark);
}

.neumorph-button-social {
  background: var(--light);
  color: var(--primary-color);
  box-shadow: var(--neumorph-dark);
  margin-right: 0.5rem;
  transition: var(--transition-smooth);
}

.neumorph-button-social:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.neumorph-input, .neumorph-select select {
  background-color: var(--light);
  border: 1px solid var(--light-dark);
  box-shadow: var(--neumorph-inset);
  transition: var(--transition-smooth);
}

.neumorph-input:focus, .neumorph-select select:focus {
  border-color: var(--primary-color);
  box-shadow: var(--neumorph-inset), 0 0 0 1px var(--primary-light);
}

/* ========== Header & Navigation ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 100;
  transition: var(--transition-smooth);
}

.navbar {
  background-color: transparent;
}

.navbar-item {
  font-weight: 600;
  color: var(--dark);
  transition: var(--transition-smooth);
}

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

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

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

.hero-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
}

.hero-body {
  padding-top: 120px;
}

.hero .title, .hero .subtitle, .hero p {
  color: white;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.stats-container {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 2rem;
}

.stat-widget {
  text-align: center;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  transition: var(--transition-smooth);
}

.stat-widget:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.2);
}

.stat-widget .icon {
  color: var(--primary-light);
  margin-bottom: 0.5rem;
}

.stat-widget .title {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

/* ========== Cursos Section ========== */
.card-image {
  width: 100%;
  height: 240px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

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

.card-content .content {
  flex: 1;
}

.card-content ul {
  margin-bottom: 1rem;
}

/* ========== Instructors Section ========== */
.instructor-card .card-image {
  height: auto;
  aspect-ratio: 1/1;
}

.instructor-card .card-content {
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.social-links a {
  color: var(--primary-color);
  font-size: 1.2rem;
  transition: var(--transition-smooth);
}

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

/* ========== Insights Section ========== */
.insight-card .card-content {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.insight-card .button {
  align-self: flex-start;
  margin-top: auto;
}

/* ========== Resources Section ========== */
.resource-card {
  height: 100%;
}

.resource-card h3 {
  transition: var(--transition-smooth);
}

.resource-card:hover h3 {
  color: var(--primary-color);
}

.resource-card a {
  color: inherit;
  text-decoration: none;
}

/* ========== Events Calendar Section ========== */
.timeline-container {
  padding: 1rem 0;
}

.timeline {
  position: relative;
  margin: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50px;
  height: 100%;
  width: 4px;
  background: var(--primary-light);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-left: 70px;
  margin-bottom: 2rem;
}

.timeline-marker {
  position: absolute;
  top: 15px;
  left: 42px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--primary-color);
  border: 4px solid white;
  box-shadow: 0 0 0 3px var(--primary-light);
  z-index: 1;
}

.timeline-content {
  padding: 1.5rem;
  border-radius: 10px;
}

.timeline-content .date {
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.timeline-content .time {
  color: var(--gray);
  margin-bottom: 1rem;
}

.timeline-content .tag {
  margin-bottom: 1rem;
}

/* ========== Gallery Section ========== */
.gallery-container {
  margin-top: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  margin-bottom: 1.5rem;
  height: 100%;
}

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

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  padding: 1.5rem;
  transform: translateY(100%);
  transition: var(--transition-smooth);
}

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

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

.gallery-overlay h3, .gallery-overlay p {
  color: white;
  margin: 0;
}

/* ========== Media Section ========== */
.media-card {
  height: 100%;
}

.media-card .card-image {
  height: 200px;
}

/* ========== Contact Section ========== */
.contact-info {
  height: 100%;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

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

.contact-item h4 {
  margin-bottom: 0.25rem;
}

.social-networks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ========== Footer ========== */
.footer {
  background-color: var(--dark);
  color: white;
  padding: 4rem 1.5rem 2rem;
}

.footer h3 {
  color: white;
  margin-bottom: 1.5rem;
}

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

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

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

.footer-links a {
  color: var(--light-dark);
  transition: var(--transition-smooth);
}

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

.footer .social-links a {
  color: var(--light-dark);
  margin-right: 1rem;
  font-size: 1rem;
  transition: var(--transition-smooth);
}

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

.footer-bottom {
  margin-top: 3rem;
}

.footer-bottom hr {
  background-color: rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  text-align: center;
  margin-top: 2rem;
  color: var(--gray);
}

/* ========== Cookie Popup ========== */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  max-width: 350px;
  background-color: white;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  padding: 1.5rem;
  z-index: 1000;
  display: none;
}

.cookie-content {
  display: flex;
  flex-direction: column;
}

.cookie-content p {
  margin-bottom: 1rem;
}

/* ========== Utility Classes ========== */
.mb-3 {
  margin-bottom: 0.75rem !important;
}

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

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

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

.mt-3 {
  margin-top: 0.75rem !important;
}

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

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

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

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

.success-container {
  max-width: 600px;
  margin: 0 auto;
}

/* ========== Media Queries ========== */
@media screen and (max-width: 768px) {
  .timeline::before {
    left: 30px;
  }
  
  .timeline-item {
    padding-left: 50px;
  }
  
  .timeline-marker {
    left: 22px;
  }
  
  .hero-body {
    padding-top: 100px;
  }
  
  .stat-widget {
    margin-bottom: 1rem;
  }
}

@media screen and (max-width: 1023px) {
  .navbar-menu {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
  }
}

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

.fadeIn {
  animation: fadeIn 0.8s ease-in-out;
}

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

.pulse {
  animation: pulse 2s infinite;
}