:root {
  --primary: #6328e0;
  --primary-hover: #5019ca;
  --primary-light: #f3effe;
  --secondary: #0ea5e9;
  --text-dark: #1e1b4b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --bg-soft-purple: #f3f0ff;
  --bg-hero: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 50%, #fae8ff 100%);
  --white: #ffffff;
  --card-shadow: 0 10px 25px -5px rgba(99, 40, 224, 0.08), 0 8px 10px -6px rgba(99, 40, 224, 0.05);
  --card-hover-shadow: 0 20px 30px -10px rgba(99, 40, 224, 0.15);
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  background-color: #fbfbfe;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .container {
  max-width: 1280px;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 20px;
}

.brand-logos {
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo-conecta {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.logo-snte {
  height: 44px;
  width: auto;
  object-fit: contain;
  border-left: 1px solid #e2e8f0;
  padding-left: 20px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  background: #f1f5f9;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  padding: 10px 42px 10px 18px;
  font-size: 0.9rem;
  color: var(--text-dark);
  width: 220px;
  transition: all 0.2s ease;
  outline: none;
}

.search-input:focus {
  border-color: var(--primary);
  background: #ffffff;
  width: 280px;
  box-shadow: 0 0 0 3px rgba(99, 40, 224, 0.15);
}

.search-btn {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(99, 40, 224, 0.25);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(99, 40, 224, 0.35);
}

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.nav-link:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-link.active {
  background: var(--primary);
  color: #ffffff;
}

/* Hero Section */
.hero-section {
  padding: 24px 0 36px;
}

.hero-banner {
  background: var(--bg-hero);
  border-radius: var(--radius-xl);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.hero-content h1 {
  font-size: 2.75rem;
  line-height: 1.15;
  font-weight: 800;
  color: #27145a;
  margin-bottom: 16px;
}

.hero-content h1 .heart {
  color: #e11d48;
}

.hero-content p {
  font-size: 1.15rem;
  color: #475569;
  margin-bottom: 28px;
  max-width: 460px;
}

.hero-media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-media img {
  border-radius: 20px;
  max-height: 380px;
  object-fit: cover;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.hero-bubble {
  position: absolute;
  top: 15px;
  right: -10px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 10px 18px;
  border-radius: 18px;
  font-weight: 700;
  color: #4338ca;
  font-size: 0.9rem;
  box-shadow: 0 10px 20px rgba(67, 56, 202, 0.12);
  border: 1px solid rgba(224, 231, 255, 0.8);
}

/* Value Highlights */
.value-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 1.25fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 48px;
}

.value-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--card-shadow);
  border: 1px solid #f1f5f9;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.value-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.value-card.blue .value-icon {
  background: #e0e7ff;
  color: #4338ca;
}

.value-card.purple .value-icon {
  background: #ede9fe;
  color: #6d28d9;
}

.value-card.cyan .value-icon {
  background: #e0f2fe;
  color: #0369a1;
}

.value-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e1b4b;
  margin-bottom: 4px;
}

.value-card p {
  font-size: 0.85rem;
  color: #64748b;
}

.quote-box {
  padding: 0 16px;
}

.quote-box p {
  font-size: 1.35rem;
  font-weight: 600;
  font-style: italic;
  color: #1d4ed8;
  line-height: 1.4;
  position: relative;
}

.quote-box p::after {
  content: '';
  display: block;
  width: 140px;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, transparent);
  border-radius: 4px;
  margin-top: 8px;
}

/* Welcome Video Section */
.video-section {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--card-shadow);
  border: 1px solid #f1f5f9;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 56px;
}

.video-player-preview {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  aspect-ratio: 16/9;
  background: #0f172a;
}

.video-player-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-player-preview:hover img {
  transform: scale(1.03);
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.1) 60%, rgba(0, 0, 0, 0.3) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 20px;
}

.video-play-center {
  margin: auto;
  width: 68px;
  height: 68px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s, background 0.2s;
}

.video-player-preview:hover .video-play-center {
  transform: scale(1.12);
  background: #ffffff;
}

.video-speakers {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.speaker-badge {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.72rem;
  color: #1e1b4b;
  max-width: 48%;
}

.speaker-badge strong {
  display: block;
  font-weight: 700;
  color: #0f172a;
}

.video-controls-fake {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-size: 0.75rem;
}

.fake-scrubber {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  position: relative;
}

.fake-progress {
  width: 25%;
  height: 100%;
  background: #e11d48;
  border-radius: 2px;
}

.video-meta-content {
  padding-right: 12px;
}

.meta-badge {
  color: #2563eb;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 10px;
  display: inline-block;
}

.video-meta-content h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #1e1b4b;
  line-height: 1.25;
  margin-bottom: 16px;
}

.video-meta-content p {
  color: #64748b;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s;
}

.dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 5px;
}

/* Explore Contents Grid */
.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.section-header-row h2 {
  font-size: 1.85rem;
  font-weight: 800;
  color: #1e1b4b;
}

.see-all-link {
  color: #4338ca;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}

.see-all-link:hover {
  gap: 10px;
}

.content-cards-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 56px;
}

.category-card {
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.cat-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.category-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.category-card p {
  font-size: 0.78rem;
  line-height: 1.4;
  margin-bottom: 16px;
  flex-grow: 1;
}

.cat-arrow-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.category-card:hover .cat-arrow-btn {
  transform: scale(1.15);
}

/* Card Themes */
.card-purple {
  background: #f5f3ff;
  color: #4c1d95;
}
.card-purple .cat-icon-wrap {
  background: #8b5cf6;
  color: #ffffff;
}
.card-purple p {
  color: #6b21a8;
}
.card-purple .cat-arrow-btn {
  background: #ede9fe;
  color: #7c3aed;
}

.card-cyan {
  background: #ecfeff;
  color: #164e63;
}
.card-cyan .cat-icon-wrap {
  background: #06b6d4;
  color: #ffffff;
}
.card-cyan p {
  color: #0e7490;
}
.card-cyan .cat-arrow-btn {
  background: #cffafe;
  color: #0891b2;
}

.card-teal {
  background: #f0fdf4;
  color: #14532d;
}
.card-teal .cat-icon-wrap {
  background: #10b981;
  color: #ffffff;
}
.card-teal p {
  color: #15803d;
}
.card-teal .cat-arrow-btn {
  background: #dcfce7;
  color: #16a34a;
}

.card-amber {
  background: #fefce8;
  color: #713f12;
}
.card-amber .cat-icon-wrap {
  background: #f59e0b;
  color: #ffffff;
}
.card-amber p {
  color: #854d0e;
}
.card-amber .cat-arrow-btn {
  background: #fef08a;
  color: #b45309;
}

.card-pink {
  background: #fdf2f8;
  color: #831843;
}
.card-pink .cat-icon-wrap {
  background: #ec4899;
  color: #ffffff;
}
.card-pink p {
  color: #9d174d;
}
.card-pink .cat-arrow-btn {
  background: #fce7f3;
  color: #db2777;
}

.card-blue {
  background: #eff6ff;
  color: #1e3a8a;
}
.card-blue .cat-icon-wrap {
  background: #3b82f6;
  color: #ffffff;
}
.card-blue p {
  color: #1d4ed8;
}
.card-blue .cat-arrow-btn {
  background: #dbeafe;
  color: #2563eb;
}

/* Call to Action Banner */
.cta-banner {
  background: linear-gradient(90deg, #eff6ff 0%, #e0e7ff 100%);
  border-radius: var(--radius-xl);
  padding: 24px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  box-shadow: var(--card-shadow);
  border: 1px solid #dbeafe;
  margin-bottom: 64px;
}

.cta-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cta-shield {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #3b82f6;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cta-left h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #1e3a8a;
  line-height: 1.2;
}

.cta-divider {
  width: 1px;
  height: 48px;
  background: #bfdbfe;
}

.cta-middle {
  flex: 1;
}

.cta-middle h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 4px;
}

.cta-middle p {
  font-size: 0.88rem;
  color: #475569;
}

/* Footer */
.site-footer {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 48px 0 32px;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1e1b4b;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.2s;
}

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

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 0.85rem;
  color: #64748b;
}

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

.footer-tagline {
  font-weight: 700;
  font-size: 1.05rem;
  color: #27145a;
  text-align: right;
  max-width: 220px;
  line-height: 1.3;
}

.footer-tagline .heart {
  color: #e11d48;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease-out;
}

.modal-content {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 800px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s;
}

.modal-close-btn:hover {
  background: rgba(0, 0, 0, 0.9);
}

/* Section & Publication Detail Pages */
.page-header {
  background: var(--bg-hero);
  border-radius: var(--radius-xl);
  padding: 36px;
  margin: 24px 0 36px;
  box-shadow: var(--card-shadow);
}

.page-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #1e1b4b;
  margin-bottom: 8px;
}

.page-header p {
  color: #64748b;
  font-size: 1.05rem;
}

.pubs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.pub-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.pub-cover {
  height: 220px;
  width: 100%;
  object-fit: contain;
  background: #f8fafc;
  padding: 10px;
}

.pub-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.pub-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}

.pub-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e1b4b;
  margin-bottom: 8px;
  line-height: 1.35;
}

.pub-summary {
  font-size: 0.88rem;
  color: #64748b;
  margin-bottom: 16px;
  flex-grow: 1;
}

.pub-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #94a3b8;
  border-top: 1px solid #f8fafc;
  padding-top: 12px;
}

/* Admin Styles */
.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  margin: 32px 0 64px;
}

.admin-sidebar {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--card-shadow);
  border: 1px solid #f1f5f9;
  height: fit-content;
}

.admin-menu {
  list-style: none;
}

.admin-menu-item {
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  margin-bottom: 4px;
  transition: all 0.2s;
}

.admin-menu-item:hover, .admin-menu-item.active {
  background: var(--primary-light);
  color: var(--primary);
}

.admin-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--card-shadow);
  border: 1px solid #f1f5f9;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: #334155;
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 40, 224, 0.15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

/* Responsive */
@media (max-width: 1024px) {
  .site-nav {
    justify-content: flex-start;
  }
  .hero-banner {
    grid-template-columns: 1fr;
    padding: 32px;
  }
  .value-highlights {
    grid-template-columns: repeat(2, 1fr);
  }
  .video-section {
    grid-template-columns: 1fr;
  }
  .content-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .header-top {
    flex-direction: column;
    align-items: stretch;
  }
  .search-input {
    width: 100%;
  }
  .value-highlights {
    grid-template-columns: 1fr;
  }
  .content-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cta-banner {
    flex-direction: column;
    text-align: center;
  }
  .cta-divider {
    display: none;
  }
}
