@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap');

:root {
  --color-primary: #1a3a6b;
  --color-primary-dark: #12294e;
  --color-accent: #c9930a;
  --color-accent-hover: #e0a40b;
  --color-bg-light: #f4f7f6;
  --color-text-main: #2c3e50;
  --color-text-muted: #6c757d;
  
  --font-heading: 'Merriweather', serif;
  --font-body: 'Source Sans 3', sans-serif;

  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px rgba(26, 58, 107, 0.15);
  
  --border-radius-lg: 16px;
  --border-radius-md: 12px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-main);
  background-color: var(--color-bg-light);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

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

/* Typography Overrides */
.text-primary-custom { color: var(--color-primary) !important; }
.text-accent { color: var(--color-accent) !important; }
.bg-primary-custom { background-color: var(--color-primary) !important; }
.bg-accent { background-color: var(--color-accent) !important; }

/* Buttons & Gradients */
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border: none;
  padding: 0.8rem 2rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 15px rgba(26, 58, 107, 0.3);
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 25px rgba(26, 58, 107, 0.4);
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
}

.btn-accent {
  background: linear-gradient(135deg, var(--color-accent) 0%, #ebb526 100%);
  border: none;
  color: #fff;
  padding: 0.8rem 2rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.4s ease;
  box-shadow: 0 4px 15px rgba(201, 147, 10, 0.3);
}

.btn-accent:hover {
  transform: translateY(-3px);
  color: #fff;
  box-shadow: 0 10px 25px rgba(201, 147, 10, 0.5);
}

/* Glassmorphism Navbar */
header.sticky-top {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.4s ease;
}

header.scrolled-glass {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  padding: 0.5rem 0;
}

.navbar-brand {
  font-size: 1.8rem;
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
}
.navbar-brand i { color: var(--color-accent); font-size: 2.2rem; }
.custom-logo { max-height: 80px; width: auto; object-fit: contain; }

.nav-link {
  font-weight: 600;
  color: var(--color-primary) !important;
  font-size: 0.95rem;
  margin: 0 0.5rem;
  position: relative;
  transition: color 0.3s ease;
}
.nav-link:hover, .nav-link.active { color: var(--color-accent) !important; }
.nav-link::after {
  content: '';
  position: absolute;
  width: 0; height: 2px;
  bottom: 0; left: 50%;
  background-color: var(--color-accent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* Swiper Hero */
.hero-swiper {
  height: 85vh;
  min-height: 650px;
  width: 100%;
}
.hero-slide-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover; background-position: center;
  transform: scale(1.1);
  transition: transform 6s linear;
}
.swiper-slide-active .hero-slide-bg {
  transform: scale(1);
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(26,58,107,0.9) 0%, rgba(26,58,107,0.4) 100%);
}
.hero-content {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  color: #fff;
  z-index: 2;
  width: 100%;
}
.hero-content h1 {
  font-size: 4rem;
  color: #fff;
  text-shadow: 2px 4px 8px rgba(0,0,0,0.4);
  margin-bottom: 1.5rem;
}
.swiper-button-next, .swiper-button-prev { color: #fff; opacity: 0.7; transition: 0.3s; }
.swiper-button-next:hover, .swiper-button-prev:hover { opacity: 1; transform: scale(1.2); }
.swiper-pagination-bullet-active { background: var(--color-accent); }

/* Bento Grid Cards & Components */
.card {
  border: none;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  background: #fff;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.card-img-top {
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover .card-img-top {
  transform: scale(1.05);
}

/* Feature Icon Boxes (Bento Style) */
.bento-card {
  background: #fff;
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.bento-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.bento-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.bento-card:hover::before { opacity: 1; }
.bento-card:hover h4, .bento-card:hover p, .bento-card:hover i { color: #fff !important; }
.bento-icon {
  font-size: 3rem;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
  display: block;
  transition: all 0.4s ease;
}
.bento-card:hover .bento-icon { transform: scale(1.1) rotate(5deg); }

/* Associado Area - Glassmorphism overlap */
.associado-area {
  margin-top: -80px;
  position: relative;
  z-index: 10;
}
.glass-panel {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 3rem;
  border: 1px solid rgba(255,255,255,0.4);
}
.glass-link {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 2rem;
  background: rgba(26, 58, 107, 0.03);
  border-radius: var(--border-radius-md);
  color: var(--color-primary);
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(26, 58, 107, 0.05);
  height: 100%;
}
.glass-link i { font-size: 2.5rem; margin-bottom: 1rem; color: var(--color-accent); transition: 0.3s; }
.glass-link:hover {
  background: var(--color-primary); color: #fff;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(26,58,107,0.2);
}
.glass-link:hover i { transform: scale(1.2); }

/* Events */
.event-card {
  display: flex;
  background: #fff;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(26,58,107,0.05);
  border-left: 6px solid var(--color-primary);
}
.event-card:hover { 
  transform: translateY(-5px); 
  box-shadow: var(--shadow-md); 
  border-left-color: var(--color-accent); 
}
.event-date {
  background: var(--color-primary);
  color: #fff;
  padding: 1.5rem 2rem;
  min-width: 130px;
  text-align: center;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.event-date .day { font-size: 2.5rem; font-weight: 800; line-height: 1; color: #fff; }
.event-date .month { font-size: 1rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 600; color: rgba(255,255,255,0.8); margin-top: 5px; }

.event-body {
  padding: 2rem;
  flex: 1;
}

/* Sections */
.section-padding { padding: 6rem 0; }
.section-title {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  font-size: 2.5rem;
}
.section-title span { color: var(--color-accent); }

/* CTA Modern */
.cta-section {
  position: relative;
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: #fff;
  overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute;
  width: 300px; height: 300px;
  background: var(--color-accent);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  top: -100px; right: -50px;
}
.cta-section::after {
  content: ''; position: absolute;
  width: 200px; height: 200px;
  background: #3498db;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.2;
  bottom: -50px; left: -50px;
}
.cta-section .container { position: relative; z-index: 2; }

/* Modern Footer */
.footer {
  background-color: #0b182d;
  color: #a0aec0;
  padding: 5rem 0 2rem;
  border-top: 5px solid var(--color-accent);
}
.footer h4 { color: #fff; margin-bottom: 2rem; }
.footer a { color: #a0aec0; text-decoration: none; transition: 0.3s; }
.footer a:hover { color: var(--color-accent); transform: translateX(5px); display: inline-block; }
.footer-links li { margin-bottom: 1rem; }
.footer-contact i { color: var(--color-accent); margin-right: 15px; font-size: 1.2rem; }

@media (max-width: 768px) {
  .hero-content h1 { font-size: 2.5rem; }
  .associado-area { margin-top: 0; padding-top: 3rem; }
  .glass-panel { padding: 1.5rem; }
  .event-card { flex-direction: column; border-left: none; border-top: 6px solid var(--color-primary); }
  .event-card:hover { transform: translateY(-3px); border-left: none; border-top-color: var(--color-accent); }
  .event-date { flex-direction: row; gap: 15px; padding: 1.5rem; border-right: none; border-bottom: 1px solid rgba(26,58,107,0.05); align-items: baseline; justify-content: center; }
  .event-date .day { font-size: 2rem; }
  .event-date .month { font-size: 1.2rem; }
  .event-body { padding: 1.5rem; }
}

/* Page Headers */
.page-header {
  background: linear-gradient(to bottom, #fff, var(--color-bg-light));
  padding: 8rem 0 4rem; /* Top padding increased to provide space from navbar */
  border-bottom: 1px solid rgba(26, 58, 107, 0.05);
  margin-bottom: 0;
}
.page-header h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -1px;
}
.page-header p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
}
