/*
  ================================================================================
  STYLE.CSS
  --------------------------------------------------------------------------------
  Project: Cursos de Diseño en Argentina
  Design System: Glassmorphism + Eco-Minimalism
  Color Scheme: Triadic
  Animation: Parallax & Scroll Animations
  ================================================================================
*/

/*
  ========================================
  1. CSS Variables & Root Setup
  ========================================
*/
:root {
  /* Color Palette (Triadic: Teal, Orange, Indigo) */
  --color-primary: #14B8A6; /* Teal */
  --color-primary-dark: #0D9488;
  --color-accent-1: #F97316; /* Orange */
  --color-accent-2: #6366F1; /* Indigo */
  
  /* Backgrounds & Text */
  --color-bg-dark: #111827; /* Gray 900 */
  --color-bg-medium: #1F2937; /* Gray 800 */
  --color-bg-light: #374151; /* Gray 700 */
  --color-text-light: #E5E7EB; /* Gray 200 */
  --color-text-medium: #9CA3AF; /* Gray 400 */
  --color-text-dark: #1F2937; /* Gray 800 */
  --color-white: #FFFFFF;
  --color-border: rgba(255, 255, 255, 0.1);

  /* Typography */
  --font-primary: 'Oswald', sans-serif;
  --font-secondary: 'Nunito', sans-serif;

  /* Transitions & Shadows */
  --transition-fast: all 0.2s ease-in-out;
  --transition-medium: all 0.3s ease-in-out;
  --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.2);
  --shadow-strong: 0 8px 32px rgba(0, 0, 0, 0.5);
  --text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/*
  ========================================
  2. Base & Global Styles
  ========================================
*/
html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
  font-family: var(--font-secondary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Global Styles for Buttons */
.btn, button, input[type='submit'] {
  display: inline-block;
  padding: 0.75rem 2rem;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-primary);
  font-weight: 700;
  text-transform: uppercase;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: var(--transition-medium);
  text-align: center;
  text-decoration: none;
}

.btn:hover, button:hover, input[type='submit']:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-light);
}

/* Global Link Styles */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* Global Section Title */
.section-title {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-white);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-shadow: var(--text-shadow);
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
}

/*
  ========================================
  3. Layout & Structure (Header, Footer)
  ========================================
*/
/* Header */
#header {
  position: fixed;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-medium);
}

#header.scrolled {
  background-color: rgba(17, 24, 39, 0.85); /* --color-bg-dark with opacity */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-light);
}

.nav-link {
  color: var(--color-white);
  font-family: var(--font-secondary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  padding: 0.5rem 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-primary);
  transition: width var(--transition-medium);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-white);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link-button {
  background-color: var(--color-primary);
  color: var(--color-white) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  transition: var(--transition-medium);
}

.nav-link-button:hover,
.nav-link-button.active {
  background-color: var(--color-primary-dark);
  transform: scale(1.05);
}

/* Footer */
footer {
  background-color: #000;
  padding: 4rem 1rem;
  font-size: 0.9rem;
}

footer h3 {
  font-family: var(--font-primary);
  color: var(--color-white);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

footer a {
  color: var(--color-text-medium);
  transition: color var(--transition-fast);
}

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

/*
  ========================================
  4. Component Styles
  ========================================
*/
/* Hero Section */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-attachment: fixed;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: -2;
}

#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.4));
  z-index: -1;
}

#hero h1 {
  font-family: var(--font-primary);
  font-size: 4rem;
  text-shadow: var(--text-shadow);
  color: var(--color-white);
}

#hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 1rem auto 0;
  color: var(--color-white);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

@media (max-width: 768px) {
  #hero h1 {
    font-size: 2.5rem;
  }
  #hero p {
    font-size: 1rem;
  }
}

/* Glassmorphism Cards */
.glass-card {
  background: rgba(31, 41, 55, 0.45); /* bg-gray-800 with opacity */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 1rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-strong);
  transition: var(--transition-medium);
  padding: 2rem;
}

.glass-card:hover {
  transform: translateY(-8px);
  border-color: rgba(20, 184, 166, 0.4); /* Primary color border on hover */
}

/* Generic Card Styling */
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  overflow: hidden;
}

.card .card-image {
  width: 100%;
  height: 250px; /* Fixed height for image container */
  margin-bottom: 1.5rem;
  overflow: hidden;
  border-radius: 0.5rem;
}

.card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures image covers the container */
  object-position: center;
  transition: transform 0.4s ease;
}

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

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

.card h3 {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  color: var(--color-white);
}

.card p {
  color: var(--color-text-medium);
  margin-top: 0.5rem;
}

/* Form Inputs */
.form-input {
  width: 100%;
  background: rgba(55, 65, 81, 0.5); /* bg-gray-700 with opacity */
  border: 1px solid var(--color-bg-light);
  border-radius: 0.5rem;
  padding: 0.8rem 1rem;
  color: var(--color-text-light);
  font-family: var(--font-secondary);
  transition: var(--transition-fast);
}

.form-input::placeholder {
  color: var(--color-text-medium);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.3);
}

/* Resource "Read More" Links */
.resource-link {
  display: inline-block;
  margin-top: auto; /* Pushes to the bottom in flex container */
  padding-top: 1rem;
  color: var(--color-accent-1);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
}
.resource-link:hover {
  color: var(--color-white);
  text-decoration: none;
}

/*
  ========================================
  5. Page-Specific Styles
  ========================================
*/
/* Success Page */
body.success-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

/* Privacy & Terms Pages */
body.legal-page main {
  padding-top: 120px; /* Space for fixed header */
}

body.legal-page .prose-lg h2 {
  font-family: var(--font-primary);
  color: var(--color-white);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.75rem;
}
body.legal-page .prose-lg p {
  color: var(--color-text-medium);
  line-height: 1.8;
}

/*
  ========================================
  6. Animations
  ========================================
*/
/* Scroll Animation */
.scroll-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Fade-in animation for hero content */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.animate-fade-in {
  animation: fadeIn 1s ease-in-out forwards;
}

/*
  ========================================
  7. Utility Classes
  ========================================
*/
.text-shadow {
  text-shadow: var(--text-shadow);
}