/* === assets/style.css === */
/* Actualidad Nacional - Data Journalism Style */

:root {
  --deep-purple: #321067;
  --vivid-purple: #9949c6;
  --soft-lavender: #da9afb;
  --light-bg: #e2affd;
  --text-dark: #1a0a2e;       /* Contraste fuerte sobre fondo claro */
  --text-soft: #3c2651;
  --white-pure: #ffffff;
  --gray-light: #f5edfa;
  --border-soft: rgba(50, 16, 103, 0.15);
  --shadow-card: 0 20px 35px rgba(50, 16, 103, 0.08), 0 6px 12px rgba(0,0,0,0.05);
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Merriweather', 'Georgia', 'Times New Roman', serif;
}

/* Reset suave y tipografía base */
body {
  font-family: var(--font-sans);
  background-color: var(--light-bg);
  color: var(--text-dark);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Títulos con fuente serif para contraste periodístico */
h1, h2, h3, h4, .section-title, .brand-text {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Barra de navegación fija con diseño elegante */
.custom-navbar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: 0 4px 20px rgba(50, 16, 103, 0.05);
  padding: 0.75rem 0;
  transition: all 0.3s ease;
}

.custom-navbar .navbar-brand {
  font-size: 1.5rem;
  color: var(--deep-purple);
  font-weight: 700;
}

.brand-text {
  background: linear-gradient(135deg, var(--deep-purple) 0%, var(--vivid-purple) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-img {
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(153, 73, 198, 0.3);
}

.navbar-nav .nav-link {
  color: var(--text-soft) !important;
  font-weight: 500;
  margin: 0 0.2rem;
  padding: 0.5rem 0.9rem !important;
  border-radius: 20px;
  transition: all 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--vivid-purple) !important;
  background-color: rgba(218, 154, 251, 0.2);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(50, 16, 103, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Contenedor principal */
.main-container {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

/* Secciones generales */
.section-block {
  margin-bottom: 5rem;
  padding: 1.5rem 0;
  position: relative;
}

/* Estilo de títulos de sección con línea decorativa moderna */
.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--deep-purple);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 70px;
  height: 4px;
  background: linear-gradient(90deg, var(--vivid-purple), var(--soft-lavender));
  border-radius: 4px;
}

/* Hero section con fondo degradado sutil */
.hero-section {
  background: linear-gradient(145deg, #f3e3ff 0%, #edd2fc 100%);
  border-radius: 3rem;
  padding: 4rem 2.5rem;
  margin-bottom: 4rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(153, 73, 198, 0.2);
}

.hero-section h1 {
  color: var(--deep-purple);
  font-size: 3.5rem;
  line-height: 1.2;
}

.bg-accent {
  background-color: var(--vivid-purple) !important;
  color: white;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Botones personalizados */
.btn-primary {
  background: linear-gradient(135deg, var(--deep-purple), var(--vivid-purple));
  border: none;
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 40px;
  box-shadow: 0 8px 18px rgba(153, 73, 198, 0.35);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2c0e5c, #833ab0);
  transform: translateY(-2px);
  box-shadow: 0 15px 25px rgba(153, 73, 198, 0.45);
}

.btn-outline-light {
  border: 2px solid var(--deep-purple);
  color: var(--deep-purple);
  background: transparent;
  padding: 0.7rem 1.8rem;
  font-weight: 600;
  border-radius: 40px;
}

.btn-outline-light:hover {
  background: var(--deep-purple);
  color: white;
  border-color: var(--deep-purple);
}

/* Imágenes con estilo moderno */
.hero-image, .section-image {
  box-shadow: 0 25px 40px -15px rgba(50, 16, 103, 0.4);
  transition: transform 0.35s ease, box-shadow 0.3s;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.hero-image:hover, .section-image:hover {
  transform: scale(1.02);
  box-shadow: 0 30px 50px -15px rgba(50, 16, 103, 0.55);
}

/* Tarjetas de secciones (política, economía, etc.) */
.card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 1.8rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(218, 154, 251, 0.3);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 40px rgba(50, 16, 103, 0.15);
  background: rgba(255, 255, 255, 0.95);
}

.card-img-top {
  height: 180px;
  object-fit: cover;
  filter: brightness(0.9) contrast(1.1);
}

.card-body {
  padding: 1.5rem;
  color: var(--text-dark);
}

.card-body h3 {
  color: var(--deep-purple);
  font-weight: 700;
  margin-bottom: 0.8rem;
}

/* Sección de comunidad con fondo especial */
.community-section {
  background: linear-gradient(120deg, #f1d9ff 0%, #e6c4fc 100%);
  border-radius: 3rem;
  padding: 3rem !important;
  margin-top: 2rem;
  box-shadow: inset 0 2px 20px rgba(153, 73, 198, 0.1);
}

/* Footer */
.footer {
  background: var(--deep-purple);
  color: white;
  border-top: 3px solid var(--vivid-purple);
  margin-top: 3rem;
}

.logo-footer {
  border-radius: 8px;
  background: white;
  padding: 2px;
}

.social-link {
  opacity: 0.8;
  transition: opacity 0.2s, transform 0.2s;
}

.social-link:hover {
  opacity: 1;
  transform: translateY(-3px);
  color: var(--soft-lavender) !important;
}

/* Tipografía ajustada para párrafos */
p {
  font-size: 1.08rem;
  color: var(--text-soft);
  margin-bottom: 1.2rem;
}

.lead {
  font-size: 1.25rem;
  color: var(--text-dark);
}

.text-muted {
  color: #6b4c7a !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-section {
    padding: 2.5rem 1.5rem;
    border-radius: 2rem;
  }
  .hero-section h1 {
    font-size: 2.5rem;
  }
  .section-title {
    font-size: 1.9rem;
  }
  .community-section {
    padding: 2rem 1.5rem !important;
  }
}