/* ===================================
   GEODATA INSIGHTS - COMPONENTES
   ================================== */

/* Header y Navegación */
.header {
  background-color: rgba(83, 61, 115, 0.95); /* Fondo oscuro synthwave */
  border-bottom: 1px solid var(--synth-purple-3);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
}

.logo {
  display: flex;
  align-items: center;
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--gray-100); /* Color de texto claro para contraste */
  text-decoration: none;
}

.logo:hover {
  color: var(--synth-gold); /* Resaltado dorado al pasar el mouse */
  text-decoration: none;
}

.logo-icon {
  width: 32px;
  height: 32px;
  margin-right: var(--space-2);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-6);
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--gray-300); /* Color de texto claro para enlaces */
  font-weight: 500;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--border-radius-md);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--synth-gold); /* Resaltado dorado al pasar el mouse */
  background-color: var(--synth-purple-3);
  text-decoration: none;
}

.nav-link.active {
  color: var(--synth-blanco); /* Color dorado para el enlace activo */
  font-weight: 700;
  background-color: var(--synth-purple-3);
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--bg-primary);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: var(--space-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-normal);
  z-index: 1001;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: var(--space-3) var(--space-4);
  color: var(--gray-700);
  border-radius: var(--border-radius-md);
  transition: all var(--transition-fast);
}

.dropdown-item:hover {
  background-color: var(--gray-50);
  color: var(--primary-color);
  text-decoration: none;
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: var(--text-xl);
  color: var(--gray-700);
  cursor: pointer;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--bg-primary);
  border-top: 1px solid var(--gray-200);
  box-shadow: var(--shadow-lg);
  padding: var(--space-4);
}

.mobile-menu .nav-menu {
  flex-direction: column;
  gap: var(--space-2);
  align-items: stretch;
}

.mobile-menu .nav-link {
  display: block;
  padding: var(--space-3) var(--space-4);
}

/* Page Header / Hero Banner */
.page-header {
  background: linear-gradient(135deg, var(--synth-purple-2) 0%, var(--synth-purple-4) 100%);
  color: white;
  padding: var(--space-12) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header h1 {
  font-size: var(--text-4xl);
  color: white;
  margin-bottom: var(--space-4);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-header .lead {
  font-size: var(--text-lg);
  color: var(--gray-200);
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.9;
}

.page-header .header-icon {
    font-size: var(--text-5xl);
    color: var(--synth-claro);
    margin-bottom: var(--space-4);
    display: block;
    text-shadow: 0 0 15px var(--synth-claro);
}
/* Hero Section */
.hero {
  background: url('../assets/images/analysis.jpg') no-repeat center center;
  background-size: cover;
  color: white;
  padding: var(--space-20) 0;
  position: relative;
  overflow: hidden;
}

.herob2b {
  background: url('../assets/images/geospatial.jpg') no-repeat center center;
  background-size: cover;
  color: white;
  padding: var(--space-20) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2); /* Add a dark overlay for text readability */
  z-index: 0;
}
.herob2b::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4); /* Add a dark overlay for text readability */
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: var(--text-5xl);
  margin-bottom: var(--space-6);
  color: white;
}

.herob2b  h1 {
  font-size: var(--text-5xl);
  margin-bottom: var(--space-6);
  color: white;
}

.hero p {
  font-size: var(--text-xl);
  margin-bottom: var(--space-8);
  color: rgba(255, 255, 255, 0.9);
}
.herob2b p {
  font-size: var(--text-xl);
  margin-bottom: var(--space-8);
  color: rgba(255, 255, 255, 0.9);
}

.hero .btn {
  font-size: var(--text-lg);
  padding: var(--space-4) var(--space-8);
}

/* Featured Visualization */
.featured-viz {
  background-color: var(--bg-secondary);
  padding: var(--space-16) 0;
}

.featured-viz-container {
  background-color: var(--bg-primary);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  margin-top: var(--space-8);
}

.featured-viz-header {
  padding: var(--space-6) var(--space-8);
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
  border-bottom: 1px solid var(--gray-200);
}

.featured-viz-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
  color: var(--gray-900);
}

.featured-viz-description {
  color: var(--gray-600);
  margin-bottom: 0;
}

.featured-viz-body {
  padding: var(--space-8);
  min-height: 500px;
  background-color: var(--bg-primary);
}

/* Content Cards */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
  margin: var(--space-8) 0;
}

.content-card {
  background: linear-gradient(145deg, var(--synth-purple-4), var(--synth-purple-3));
  border-radius: var(--border-radius-xl);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.content-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 40px 0 rgba(0, 0, 0, 0.5);
}

.content-card-image {
  width: 100%;
  height: 150px; /* Reduced height */
  object-fit: cover;
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--synth-gold);
  font-size: var(--text-2xl); /* Larger icon */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.content-card-body {
  padding: var(--space-6);
  flex-grow: 1; /* Allow body to grow */
  display: flex;
  flex-direction: column;
}

.content-card-title {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: #f3f4f6; /* Lighter text for dark background */
}

.content-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.content-card-title a:hover {
  color: var(--synth-gold);
}

.content-card-excerpt {
  color: var(--gray-300); /* Lighter excerpt text */
  margin-bottom: var(--space-4);
  line-height: 1.6;
  flex-grow: 1;
}

.content-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-sm);
  color: var(--gray-400); /* Lighter meta text */
  margin-top: auto; /* Push meta to the bottom */
}

.content-card-date {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.content-card-author {
  font-weight: 500;
  color: var(--gray-600);
}

/* Category Blocks */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-6);
  margin: var(--space-8) 0;
}

.category-block {
  background-color: white; /* Cambio a blanco */
  color: var(--gray-800); /* Texto oscuro para fondo claro */
  padding: var(--space-8);
  border-radius: var(--border-radius-xl);
  text-align: center;
  transition: all var(--transition-normal);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
}

.category-block::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
  transform: scale(0);
  transition: transform 0.5s ease;
}

.category-block:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.category-block:hover::before {
  opacity: 1;
}

.category-icon {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-4);
  display: block;
  color: var(--synth-gold);
  text-shadow: 0 0 15px var(--synth-gold);
}

.category-title {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: var(--gray-900);
}

.category-description {
  color: var(--gray-600);
  margin-bottom: 0;
}

/* Tools Showcase */
.tools-showcase {
  background-color: var(--bg-secondary);
  padding: var(--space-16) 0;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.tool-card {
  background: linear-gradient(145deg, var(--synth-purple-4), var(--synth-purple-3));
  border-radius: var(--border-radius-xl);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  overflow: hidden;
  transition: all var(--transition-normal);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  flex-direction: column;
}

.tool-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 40px 0 rgba(0, 0, 0, 0.5);
}

.tool-preview {
  width: 100%;
  height: 180px;
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--synth-gold);
  font-size: var(--text-5xl);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tool-preview::before {
  content: ''; /* Remove default emoji */
}

.tool-info {
  padding: var(--space-5);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.tool-title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: #f3f4f6;
}

.tool-description {
  color: var(--gray-300);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
  flex-grow: 1;
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.tool-tag {
  background-color: var(--synth-purple-4);
  color: var(--synth-gold);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--border-radius-sm);
  font-size: var(--text-xs);
  font-weight: 500;
  border: 1px solid var(--synth-gold);
}

/* Newsletter Subscription */
.newsletter {
  background: linear-gradient(135deg, var(--synth-purple-4) 0%, var(--synth-purple-3) 100%);
  color: white;
  padding: var(--space-16) 0;
  text-align: center;
}

.newsletter h2 {
  color: white;
  margin-bottom: var(--space-4);
}

.newsletter p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  display: flex;
  max-width: 400px;
  margin: 0 auto;
  gap: var(--space-3);
}

.newsletter-input {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  border: none;
  border-radius: var(--border-radius-md);
  font-size: var(--text-base);
}

.newsletter-input:focus {
  outline: 2px solid white;
  outline-offset: 2px;
}

.newsletter-btn {
  background-color: var(--synth-gold);
  color: var(--synth-purple-4);
  border: none;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--border-radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.newsletter-btn:hover {
  background-color: #fdd835; /* Lighter gold */
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(242, 189, 29, 0.4);
}

/* Footer */
.footer {
  background-color: var(--gray-900);
  color: var(--gray-300);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.footer-section h3 {
  color: white;
  margin-bottom: var(--space-4);
  font-size: var(--text-lg);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-2);
}

.footer-links a {
  color: var(--gray-300);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: white;
  text-decoration: none;
}

.footer-social {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--gray-800);
  color: var(--gray-300);
  border-radius: var(--border-radius-md);
  transition: all var(--transition-fast);
}

.social-link:hover {
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: var(--space-8);
  text-align: center;
  color: var(--gray-400);
  font-size: var(--text-sm);
}

/* Responsive Design para Componentes */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  .nav-menu {
    display: none;
  }
  
  .mobile-menu.active {
    display: block;
  }
  
  .mobile-menu.active .nav-menu {
    display: flex;
  }
  
  .hero h1 {
    font-size: var(--text-3xl);
  }
  
  .hero p {
    font-size: var(--text-lg);
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .category-grid,
  .content-grid,
  .tools-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-social {
    justify-content: center;
  }
}
/* Why Choose Us Section */
.why-choose-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-8);
}

.why-card {
  background-color: var(--synth-purple-4);
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  position: relative;
  transition: all var(--transition-normal);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.why-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.why-card-image {
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
  width: 100%;
}

.why-card:nth-child(1) .why-card-image {
  background: linear-gradient(160deg, var(--synth-purple-1), var(--synth-purple-3));
}
.why-card:nth-child(2) .why-card-image {
  background: linear-gradient(160deg, var(--synth-purple-2), #533D73);
}
.why-card:nth-child(3) .why-card-image {
  background: linear-gradient(160deg, var(--synth-gold), var(--synth-purple-2));
}

.why-card-content {
  padding: var(--space-6);
  text-align: center;
}

.why-card-icon {
  width: 80px;
  height: 80px;
  margin: -60px auto var(--space-4);
  background: var(--synth-purple-4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-3xl);
  color: var(--synth-gold);
  border: 4px solid var(--bg-secondary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.why-card-title {
  color: #f3f4f6;
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.why-card-description {
  color: var(--gray-300);
  font-size: var(--text-base);
  line-height: 1.6;
}
