/* CSS Variables - Pastel Color Scheme */
:root {
  /* Primary Pastel Colors */
  --primary-color: #b8a9ff;
  --primary-dark: #9a87e8;
  --secondary-color: #ffb3ba;
  --secondary-dark: #ff9aa1;
  --accent-color: #b3e5d1;
  --accent-dark: #9bdbc2;

  /* Background Pastels */
  --bg-light: #fff8f0;
  --bg-cream: #f5f0e8;
  --bg-gradient: linear-gradient(135deg, #ffb3ba 0%, #b8a9ff 100%);
  --bg-card: #ffffff;
  --bg-overlay: rgba(0, 0, 0, 0.5);

  /* Text Colors */
  --text-primary: #2c2c2c;
  --text-secondary: #666666;
  --text-light: #ffffff;
  --text-muted: #999999;

  /* Fonts */
  --font-heading: "Playfair Display", serif;
  --font-body: "Source Sans Pro", sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* Shadows */
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
  --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.2);

  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.8s ease;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
}

h1 {
  font-size: 3.5rem;
}
h2 {
  font-size: 2.8rem;
}
h3 {
  font-size: 2.2rem;
}
h4 {
  font-size: 1.8rem;
}
h5 {
  font-size: 1.4rem;
}
h6 {
  font-size: 1.2rem;
}

p {
  margin-bottom: var(--spacing-sm);
  color: var(--text-secondary);
}

/* Global Button Styles */
.btn,
.button,
input[type="submit"],
button {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-light);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn:before,
.button:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left var(--transition-medium);
}

.btn:hover:before,
.button:hover:before {
  left: 100%;
}

.btn-primary,
.button.is-primary {
  background: var(--primary-color);
  color: var(--text-light);
}

.btn-primary:hover,
.button.is-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-secondary,
.button.is-light {
  background: var(--secondary-color);
  color: var(--text-primary);
}

.btn-secondary:hover,
.button.is-light:hover {
  background: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* Header Styles */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(184, 169, 255, 0.2);
  transition: all var(--transition-fast);
  z-index: 1000;
}

.navbar-brand strong {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--primary-color);
}

.navbar-item {
  color: var(--text-primary);
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

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

.navbar-item::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: all var(--transition-fast);
  transform: translateX(-50%);
}

.navbar-item:hover::after {
  width: 80%;
}

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

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

.parallax-bg {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.parallax-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(184, 169, 255, 0.3),
    rgba(255, 179, 186, 0.3)
  );
  z-index: 1;
}

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

.hero-title {
  color: var(--text-light) !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  margin-bottom: var(--spacing-md);
}

.hero-subtitle {
  color: var(--text-light) !important;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
  margin-bottom: var(--spacing-lg);
}

/* Particle Animation */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

.particle {
  position: absolute;
  width: 20px;
  height: 20px;
  background: rgba(184, 169, 255, 0.3);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) {
  top: 20%;
  left: 20%;
  animation-delay: -0.5s;
}
.particle:nth-child(2) {
  top: 60%;
  left: 80%;
  animation-delay: -2s;
}
.particle:nth-child(3) {
  top: 80%;
  left: 40%;
  animation-delay: -4s;
}

/* Section Styles */
.section {
  padding: var(--spacing-xl) 0;
  position: relative;
}

.section:nth-child(even) {
  background: var(--bg-cream);
}

/* Card Styles */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-light);
  transition: all var(--transition-fast);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: var(--spacing-md);
}

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

.card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

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

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

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

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

/* Partners Section */
#partners .card {
  border: 2px solid transparent;
  background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
    var(--bg-gradient) border-box;
}

/* Insights Section */
#insights {
  background: var(--bg-gradient);
  color: var(--text-light);
}

#insights .title,
#insights .subtitle {
  color: var(--text-light) !important;
}

#insights .card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

/* Accolades Section */
#accolades .card {
  background: linear-gradient(
    135deg,
    var(--accent-color),
    var(--secondary-color)
  );
  color: var(--text-primary);
}

#accolades .card h3 {
  color: var(--text-primary);
}

/* Press Section */
#press .card {
  border-left: 4px solid var(--primary-color);
  background: var(--bg-card);
  position: relative;
}

#press .card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 4rem;
  color: var(--primary-color);
  font-family: var(--font-heading);
  opacity: 0.3;
}

/* Success Stories Section */
#success-stories .card {
  position: relative;
  overflow: hidden;
}

#success-stories .card::after {
  content: "";
  position: absolute;
  top: 0;
  right: -50px;
  width: 100px;
  height: 100px;
  background: var(--accent-color);
  border-radius: 50%;
  opacity: 0.1;
  transition: all var(--transition-medium);
}

#success-stories .card:hover::after {
  transform: scale(1.5);
  opacity: 0.2;
}

/* Webinars Section */
#webinars .card {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-cream) 100%);
  border: 1px solid var(--accent-color);
}

.modal-trigger {
  background: var(--accent-color) !important;
  color: var(--text-primary) !important;
}

.modal-trigger:hover {
  background: var(--accent-dark) !important;
}

/* Instructors Section */
#instructors .card-image {
  height: 300px;
  border-radius: 50%;
  width: 250px;
  margin: var(--spacing-md) auto 0;
  overflow: hidden;
}

#instructors .card-image img {
  border-radius: 50%;
}

/* Contact Section */
#contact {
  background: var(--bg-gradient);
  color: var(--text-light);
}

#contact .title,
#contact .subtitle {
  color: var(--text-light) !important;
}

.contact-form {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-heavy);
}

.contact-form .label {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.contact-form .input,
.contact-form .textarea,
.contact-form .select select {
  border: 2px solid var(--bg-cream);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-family: var(--font-body);
  transition: border-color var(--transition-fast);
  background: var(--bg-card);
}

.contact-form .input:focus,
.contact-form .textarea:focus,
.contact-form .select select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(184, 169, 255, 0.2);
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--text-primary) 0%, #1a1a1a 100%);
  color: var(--text-light);
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer h3,
.footer h4 {
  color: var(--text-light);
  margin-bottom: var(--spacing-md);
}

.footer a {
  color: var(--text-light);
  text-decoration: none;
  transition: color var(--transition-fast);
  opacity: 0.8;
}

.footer a:hover {
  color: var(--primary-color);
  opacity: 1;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: var(--spacing-xs);
}

.social-links {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.social-links a {
  padding: var(--spacing-xs) var(--spacing-sm);
  background: rgba(184, 169, 255, 0.2);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

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

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal.is-active {
  display: flex;
}

.modal-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-heavy);
  max-width: 500px;
  width: 90%;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-card-head {
  background: var(--bg-gradient);
  color: var(--text-light);
  padding: var(--spacing-md);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-card-body {
  padding: var(--spacing-lg);
}

.modal-card-foot {
  padding: var(--spacing-md);
  border-top: 1px solid var(--bg-cream);
  display: flex;
  gap: var(--spacing-sm);
  justify-content: flex-end;
}

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

.success-content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-heavy);
  max-width: 600px;
  width: 100%;
}

.success-content h1 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
}

.success-content p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
}

/* Page Styles */
.page-content {
  padding-block: 100px;
}

.page-header {
  background: var(--bg-gradient);
  color: var(--text-light);
  padding: 150px 0;
  text-align: center;
}

.page-header h1 {
  color: var(--text-light) !important;
  margin-bottom: var(--spacing-sm);
}

.page-header p {
  color: var(--text-light);
  opacity: 0.9;
}

.page-section {
  padding: var(--spacing-lg) 0;
}

.page-section h2 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: var(--spacing-sm);
}

/* External Resources Styles */
#recursos .card {
  border: 1px solid var(--accent-color);
  transition: all var(--transition-fast);
}

#recursos .card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-medium);
}

#recursos .card h3 a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

#recursos .card h3 a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 2rem;
  }
  h3 {
    font-size: 1.5rem;
  }

  .section {
    padding: var(--spacing-lg) 0;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.3rem;
  }

  .card-image {
    height: 200px;
  }

  #instructors .card-image {
    width: 200px;
    height: 200px;
  }

  .social-links {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .contact-form {
    padding: var(--spacing-md);
  }

  .modal-card {
    margin: var(--spacing-md);
  }

  .success-content {
    padding: var(--spacing-lg);
  }

  .btn,
  .button {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --text-primary: #000000;
    --text-secondary: #333333;
    --bg-card: #ffffff;
    --primary-color: #0066cc;
    --secondary-color: #cc0066;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .button {
    display: none !important;
  }

  .section {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  body {
    background: white !important;
    color: black !important;
  }
}
