:root {
  /* Colors */
  --color-primary: #0f172a;
  /* Slate 900 */
  --color-primary-light: #1e293b;
  /* Slate 800 */
  --color-accent: #f97316;
  /* Orange 500 */
  --color-accent-hover: #ea580c;
  /* Orange 600 */
  --color-secondary: #fb923c;
  /* Orange 400 */

  --color-text-dark: #0f172a;
  --color-text-light: #f8fafc;
  --color-text-muted: #94a3b8;

  --color-bg-light: #f8fafc;
  /* Slate 50 */
  --color-bg-dark: #020617;
  /* Slate 950 */

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-bg-dark: rgba(15, 23, 42, 0.6);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-border-dark: rgba(255, 255, 255, 0.1);

  /* Layout */
  --container-max-width: 1200px;
  --spacing-section: 5rem;
}

/* Reset & Basics */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-dark);
  background-color: var(--color-bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Layout Classes */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

/* Typography Utilities */
.text-center {
  text-align: center;
}

.text-accent {
  color: var(--color-accent);
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* Navbar (Glassmorphism) */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 0;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
  padding: 0.75rem 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand img {
  height: 48px;
  /* Based on logo */
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links li a {
  font-weight: 600;
  color: var(--color-primary);
  font-size: 1rem;
  position: relative;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--color-accent);
  transition: width 0.3s ease;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
  fill: var(--color-primary);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-family: var(--font-heading);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-text-light);
  box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.btn-outline:hover {
  background-color: var(--color-accent);
  color: var(--color-text-light);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  /* Offset for navbar */
  background-image: url('../images/1920/24753335/Valdivia_y_su_rio-FaG8EZy4fzSWqE9cCpNYVw.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--color-text-light);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.8), rgba(2, 6, 23, 0.6));
  z-index: 1;
}

.hero>.container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  width: 100%;
  max-width: 1200px;
}

.hero-text {
  flex: 1;
  text-align: left;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  animation: slideUp 0.8s ease backwards 0.8s;
}

.hero-image img {
  border-radius: 1rem;
  box-shadow: var(--shadow-xl);
  max-height: 70vh;
  width: auto;
  border: 4px solid var(--glass-border);
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 1rem;
  animation: slideUp 0.8s ease backwards;
}

.hero h1 {
  color: var(--color-text-light);
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  animation: slideUp 0.8s ease backwards 0.2s;
}

.hero .hero-dates {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 2rem;
  animation: slideUp 0.8s ease backwards 0.4s;
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: var(--glass-bg-dark);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border-dark);
  border-radius: 9999px;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  animation: slideUp 0.8s ease backwards 0.6s;
  flex-wrap: wrap;
}

/* Glass Cards */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Mission Section */
.mission {
  background-color: var(--color-bg-light);
  position: relative;
  z-index: 10;
}

/* Organizers Grid */
.organizers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  align-items: center;
  margin-top: 3rem;
}

.organizer-logo {
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
  max-height: 80px;
  margin: 0 auto;
}

.organizer-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

/* Committees Section */
.page-header {
  padding: 150px 0 80px;
  background: var(--color-primary);
  color: var(--color-text-light);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header h1 {
  color: var(--color-text-light);
  font-size: 3rem;
  position: relative;
  z-index: 2;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.15) 0%, transparent 50%);
  z-index: 1;
}

.committees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.committee-card {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--color-accent);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

.committee-icon {
  width: 48px;
  height: 48px;
  fill: var(--color-secondary);
  margin-bottom: 1.5rem;
}

.committee-card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.committee-card ul li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
  color: var(--color-text-muted);
}

.committee-card ul li::before {
  content: '👉';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.9rem;
}

/* Footer Section */
.footer {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-col h3 {
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.footer-col a {
  color: var(--color-text-muted);
  display: block;
  margin-bottom: 0.5rem;
}

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

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--color-secondary);
  transform: scale(1.1);
}

.social-links svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* Utils */
.mb-2 {
  margin-bottom: 0.5rem;
}

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

.mb-8 {
  margin-bottom: 2rem;
}

.mt-8 {
  margin-top: 2rem;
}

/* Animations */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reveal on Scroll Class */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 991px) {
  .hero>.container {
    flex-direction: column;
    text-align: center;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

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

  .hero-cta {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero .hero-dates {
    font-size: 1.1rem;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    flex-direction: column;
    gap: 0;
    text-align: center;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-bottom: 1px solid var(--glass-border);
  }

  .nav-links.show {
    max-height: 300px;
  }

  .nav-links li {
    padding: 1rem 0;
  }

  .mobile-menu-btn {
    display: block;
  }
}