/*
  File: style.css
  Project: Cursos de Diseño en Colombia
  Design System: Modern with Biomorphic elements
  Color Scheme: Gradient
  Animation Style: Morphing
*/

/* ---------------------------------- */
/*          CSS Variables             */
/* ---------------------------------- */

:root {
  --primary-color: #00A78E; /* Vibrant Teal */
  --secondary-color: #5A2A99; /* Deep Purple */
  --accent-color: #FF6B6B; /* Coral Pink */
  
  --text-dark: #222222;
  --text-medium: #555555;
  --text-light: #FFFFFF;
  
  --background-light: #F8F9FA;
  --background-dark: #121212;
  --surface-color: #FFFFFF;
  
  --gradient-primary: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Work Sans', sans-serif;
  
  --shadow-soft: 0 4px 8px rgba(0, 0, 0, 0.05);
  --shadow-medium: 0 8px 24px rgba(0, 0, 0, 0.1);
  
  --border-radius: 12px;
  --border-radius-biomorphic: 30% 70% 70% 30% / 30% 30% 70% 70%;
  
  --transition-fast: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --navbar-height: 5rem;
}

/* ---------------------------------- */
/*          Global Styles             */
/* ---------------------------------- */

html {
  scroll-behavior: smooth;
  background-color: var(--surface-color); /* Prevents white flash on page load */
}

body {
  font-family: var(--font-secondary);
  color: var(--text-medium);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography Overrides */
h1, h2, h3, h4, h5, h6, .title, .subtitle {
  font-family: var(--font-primary);
  color: var(--text-dark);
  font-weight: 700;
}

.title {
  text-shadow: 1px 1px 3px rgba(0,0,0,0.05);
}

.subtitle {
  color: var(--text-medium);
  font-weight: 500;
}

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

a:hover {
  color: var(--secondary-color);
}

/* Layout & Sectioning */
.section {
  padding: 4rem 1.5rem;
}

.section .title {
  margin-bottom: 2.5rem !important;
}

.has-background-light {
  background-color: var(--background-light) !important;
}

/* ---------------------------------- */
/*          Component Styles          */
/* ---------------------------------- */

/* Header & Navbar */
.navbar.is-fixed-top {
  height: var(--navbar-height);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
  transition: background-color var(--transition-fast);
}

.navbar-item.logo {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 500;
}

.navbar-item.logo strong {
  font-weight: 700;
  color: var(--primary-color);
}

.navbar-item {
  font-weight: 500;
  transition: all var(--transition-fast);
}

.navbar-item:hover, .navbar-item.is-active {
  background-color: transparent !important;
  color: var(--primary-color) !important;
  transform: translateY(-2px);
}

.navbar-burger {
  height: var(--navbar-height);
  width: var(--navbar-height);
}

/* Global Button Styles */
.button {
  font-family: var(--font-primary);
  font-weight: 600;
  border-radius: var(--border-radius);
  border: none;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-soft);
  padding: 1.5em 2.5em;
}

.button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-medium);
}

.button:active {
  transform: translateY(-1px);
}

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

.button.is-primary.is-gradient:hover {
  filter: brightness(1.15);
  color: var(--text-light);
}

.button.is-biomorphic {
  border-radius: var(--border-radius-biomorphic);
  animation: morph 8s ease-in-out infinite both;
}

.button.is-biomorphic:hover {
  animation-play-state: paused;
  border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
}

/* Card Styles (Workshops, Resources) */
.card {
  height: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-fast);
  overflow: hidden;
  border: 1px solid #EAEAEA;
  display: flex;
  flex-direction: column;
}

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

.card .card-image {
  width: 100%;
  height: 250px;
}

.card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card .card-content {
  text-align: left;
  flex-grow: 1; /* Allows content to push footer of card down */
}

.card .card-content .title {
  margin-bottom: 1rem !important;
}

/* Resource Card Specific Styles */
.resource-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-fast);
  border: 1px solid #e0e0e0;
}

.resource-card:hover {
  border-color: var(--primary-color);
  transform: scale(1.03);
}

.resource-card h3 a {
  color: var(--text-dark);
  text-decoration: none;
}

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

/* Form Styles */
.contact-form .label {
  font-weight: 500;
  color: var(--text-dark);
}

.contact-form .input, .contact-form .textarea, .contact-form .select select {
  border-radius: 8px;
  border: 1px solid #dbdbdb;
  box-shadow: none;
  transition: all var(--transition-fast);
  padding: 1.2em;
  font-size: 1rem;
}

.contact-form .input:focus, 
.contact-form .textarea:focus, 
.contact-form .select:not(:active)::after, 
.contact-form .select:focus::after,
.contact-form .select select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.125em rgba(0, 167, 142, 0.25);
}
.contact-form .select::after {
  border-color: var(--primary-color) !important;
}

/* Footer */
.footer {
  background-color: var(--text-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 1.5rem 2rem;
}

.footer .title {
  color: var(--text-light);
}

.footer .logo {
  font-size: 1.8rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.footer a:hover {
  color: var(--text-light);
  text-decoration: underline;
}

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

.footer .content p {
  color: rgba(255, 255, 255, 0.5);
}

/* ---------------------------------- */
/*           Section Styles           */
/* ---------------------------------- */

/* Hero Section */
.hero {
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero .title, .hero .subtitle {
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  color: var(--text-light); /* IMPORTANT: White text on dark BG */
}

/* Vision Section */
#vision img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
}

/* Awards Section */
#premios ul {
  list-style: none;
  margin-left: 0;
}
#premios ul li {
  padding: 0.75rem 0 0.75rem 2rem;
  position: relative;
  border-bottom: 1px solid #eee;
}
#premios ul li::before {
  content: '🏆';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
}
#premios ul li:last-child {
  border-bottom: none;
}

/* ---------------------------------- */
/*          Page-Specific             */
/* ---------------------------------- */

.page-container {
  padding-top: var(--navbar-height);
}

.success-content, .static-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--navbar-height));
  text-align: center;
  padding: 2rem 1.5rem;
}

.static-content {
  justify-content: flex-start;
  text-align: left;
}

.static-content .container, .success-content .container {
  width: 100%;
  max-width: 900px;
}

.success-content .box {
  background-color: var(--surface-color);
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
}

.success-content .title {
  color: var(--primary-color);
}

/* ---------------------------------- */
/*          Animations                */
/* ---------------------------------- */

/* Barba.js Page Transitions */
.barba-leave-active,
.barba-enter-active {
  transition: opacity 0.5s ease;
}
.barba-leave-to,
.barba-enter-from {
  opacity: 0;
}

/* Biomorphic Shape Morphing */
@keyframes morph {
  0% { border-radius: var(--border-radius-biomorphic); }
  50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
  100% { border-radius: var(--border-radius-biomorphic); }
}

/* ---------------------------------- */
/*          Responsive Design         */
/* ---------------------------------- */

@media screen and (max-width: 1023px) {
  .navbar-menu {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 16px rgba(10, 10, 10, 0.1);
  }
}

@media screen and (max-width: 768px) {
  .section {
    padding: 3rem 1rem;
  }
  .title.is-1 {
    font-size: 2.5rem;
  }
  .title.is-2 {
    font-size: 2rem;
  }
  .footer {
    text-align: center;
  }
  .footer .column:not(:last-child) {
    margin-bottom: 2rem;
  }
}