/**
 * Serenity* Network Styles
 * CSS styles for the Serenity* Star Network page
 *
 * @version 1.0.0
 */

/* Base reset and typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

body {
  background-color: #f7f9fc;
  color: #333;
  line-height: 1.6;
  padding-top: 60px; /* Adjust based on navbar height */
  overflow-x: hidden; /* Evita desbordamientos horizontales */
}

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

header {
  text-align: center;
  padding: 20px;
  margin-bottom: 40px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
  overflow: hidden; /* Prevent overflow issues */
  margin-top: 20px;
}


.logo {
  max-width: 90%; 
  height: auto; 
  margin-bottom: 20px;
}

h1 {
  color: #050a2b;
  font-size: 32px;
  margin-bottom: 10px;
  font-family: 'Questrial', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.subtitle {
  color: #4862ff; /* color change from #7f8c8d to #4862ff */
  font-size: 30px;
  margin-bottom: 30px;
}

/* Search bar and clear button */
.search-container {
  position: relative;
  margin: 20px auto;
  width: 100%;
  max-width: 500px;
}

.search-input {
  width: 100%;
  padding: 10px 40px 10px 15px;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 16px;
  outline: none;
  transition: all 0.3s ease;
}

#clear-search {
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  color: #4862ff;
}

.search-input:focus {
  border-color: #4862ff;
  box-shadow: 0 0 8px rgba(72,98,255,0.3);
}

.result-count {
  text-align: center;
  margin-bottom: 20px;
  font-size: 16px;
  color: #2c3e50;
}

/* Filter container and sections */
.filter-container {
  margin-bottom: 30px;
}

/* Top row: All Members + Features */
.filter-section.filter-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-section .filter-heading {
  font-size: 18px;
  color: #2c3e50;
  margin-bottom: 10px;
  font-family: 'Questrial', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  border-bottom: 1px solid #eaeef2;
  padding-bottom: 5px;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  padding: 8px 16px;
  background-color: #ecf0f1;
  border: none;
  border-radius: 20px;
  color: #2c3e50;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.filter-btn:hover {
  background-color: #d5dade;
}

.filter-btn.active {
  background-color: #4862ff;
  color: #fff;
}

/* Members grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  width: 100%;
}

/* Loading spinner animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.fa-spin {
  animation: spin 1s linear infinite;
}

/* Member card */
.member-card {
  position: relative;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.3s ease;
  opacity: 1;
  height: 100%;
}

.member-card.fade {
  opacity: 0;
}

.member-card.clickable:hover {
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(72,98,255,0.2);
  transform: translateY(-3px);
}

.member-logo-container {
  padding: 60px 20px 20px 20px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #f5f5f5;
}

.member-logo {
  max-width: 80%;
  max-height: 80px;
  object-fit: contain;
}

.member-logo[src$=".svg"] {
  width: 80%;
  height: 80px;
}

/* 
  ================
  GENERAL COMMENTS
  ================
  1. Ensuring High Contrast: 
     - We use dark text (#2c3e50) on a light background (#fff or #f0f0f0) to maintain readability.
     - Active/focus states use a visible border (#4862ff) for clear identification.
  
  2. Hover & Focus States:
     - Hover provides a visual cue (light background or border change).
     - Focus states ensure keyboard accessibility (outline or border change).

  3. Category vs. Subcategory:
     - Main categories have no rounded corners (rectangular).
     - Subcategories retain rounded corners, differentiating them visually.
*/

/* 
  Container grouping each main category (and its subcategories)
  Provides a small bottom padding or divider for clarity
*/
.category-group {
  margin-bottom: 15px;
  padding: 5px 0;
  border-bottom: 1px solid #eaeef2;
}

/* 
  MAIN CATEGORY BUTTONS
  - Rectangular (no border-radius)
  - Prominent font size
  - Default background is white, so it looks like a “title”
  - On hover/active/focus, we show a coloured border or background
*/
.category-btn {
  display: inline-block;
  background-color: #ffffff;      /* White background for good contrast */
  color: #2c3e50;                 /* Dark text for readability */
  border: 2px solid transparent;  /* Transparent border to avoid layout shift on hover/active */
  border-radius: 0;               /* No rounded corners */
  font-size: 17px;
  font-weight: 600;
  padding: 8px 16px;
  cursor: pointer;
  transition: background-color 0.3s ease, border 0.3s ease, color 0.3s ease;
}

/* Hover state: slightly darken background and show a subtle border */
.category-btn:hover {
  background-color: #f0f0f0;
  border-color: #d0dce5; 
}

/* Focus state: 
   - Outline or border helps users navigating with keyboard 
   - Outline offset ensures the outline is visible outside the button edges 
*/
.category-btn:focus {
  outline: 2px #4862ff;
  outline-offset: 2px;
}

/* Active/selected state: 
   - Distinct border and slightly tinted background 
   - Text remains dark for readability
*/
.category-btn.active {
  border-color: #4862ff;
  background-color: #e9f0ff; 
  color: #2c3e50;
}

/* 
  SUBCATEGORIES
  - Indented and displayed as a row of “pills” with rounded corners
  - Smaller or equal font size for consistency
*/
.subcategories {
  margin-top: 5px;
  margin-left: 20px; 
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Subcategory button: 
   - Rounded corners 
   - Light background 
   - Clear states on hover/active
*/
.subcategory-btn {
  background-color: #ecf0f1;
  color: #2c3e50;
  border: 2px solid transparent;
  border-radius: 20px; 
  font-size: 16px;
  font-weight: 500;
  padding: 6px 14px;
  cursor: pointer;
  transition: background-color 0.3s ease, border 0.3s ease, color 0.3s ease;
}

/* Subcategory hover: slightly darker background */
.subcategory-btn:hover {
  background-color: #d0dce5;
}

/* Subcategory focus: visible outline for keyboard users */
.subcategory-btn:focus {
  outline: 2px #4862ff;
  outline-offset: 2px;
}

/* Subcategory active/selected state */
.subcategory-btn.active {
  border-color: #4862ff;
  background-color: #e9f0ff;
  color: #2c3e50;
}


/* Category pills in top-right */
.card-categories {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 4px;
  z-index: 10;
}

/* Action buttons in top-left */
.card-actions {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  gap: 4px;
  z-index: 20;
}

/* Category pill style */
.pill-category {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  background-color: #c0c7d4;
  color: #2c3e50;
  border: 1px solid #a3acb8;
  white-space: nowrap;
}

/* Member info */
.member-info {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.member-name {
  font-size: 20px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
  font-family: 'Questrial', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.member-description {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  color: #5a6b7b;
  margin-bottom: 12px;

  /* Add standard property */
  line-clamp: 3;
}

/* Tags row: tags and relationship pill aligned */
.tags-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Relationship pill */
.pill-relationship {
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  background-color: #e3f0ff;
  color: #1e63c4;
  border: 1px solid #a8d0ff;
}

/* Tag pill style */
.pill-tag {
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  background-color: #f1f4fa;
  color: #6b778c;
  white-space: nowrap;
  border: 1px solid #d3dae6;
}

/* Icon button styling */
.icon-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #a3acb8;
  border-radius: 4px;
  background-color: #f7f9fc;
  color: #2c3e50;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  z-index: 20;
}

.icon-btn i {
  font-size: 16px;
}

.icon-btn:hover {
  background-color: #4862ff;
  color: #fff;
}

.loading-indicator {
  text-align: center;
  padding: 40px;
  font-size: 16px;
  color: #4862ff;
}

/* No-results message */
.no-results {
  text-align: center;
  padding: 40px 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin: 20px 0;
  display: none;
}

.no-results h3 {
  font-size: 22px;
  color: #2c3e50;
  margin-bottom: 15px;
  font-family: 'Questrial', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.no-results p {
  color: #7f8c8d;
  margin-bottom: 20px;
  max-width: 600px;
  margin: 0 auto 20px;
}

.no-results .cta-button {
  display: inline-block;
  background-color: #4862ff;
  color: #fff;
  padding: 12px 30px;
  border-radius: 5px;
  border: none;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.no-results .cta-button:hover {
  background-color: #3651e8;
  transform: translateY(-2px);
}

/* No-results message actions */
.no-results-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

@media (max-width: 480px) {
  .no-results-actions {
    flex-direction: column;
    width: 80%;
    margin: 20px auto 0;
  }
}

/* Error message styling */
.error-message {
  text-align: center;
  padding: 40px 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin: 20px 0;
}

.error-message p {
  color: #e74c3c;
  font-size: 18px;
  margin-bottom: 20px;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 30px;
  border-radius: 12px;
  max-width: 700px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 22px;
  color: #4862ff;
  cursor: pointer;
  transition: transform 0.2s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.modal-close:hover {
  transform: rotate(90deg);
  background-color: #f1f4fa;
}

.modal-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.modal-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eaeef2;
}

.modal-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-right: 15px;
}

.modal-title {
  font-size: 24px;
  margin: 0;
  font-weight: 600;
  color: #2c3e50;
}

.modal-relationship {
  margin-left: auto;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 16px;
  font-weight: 600;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.modal-description {
  font-size: 16px;
  line-height: 1.5;
  color: #5a6b7b;
  margin-bottom: 20px;
}

.modal-footer {
  text-align: right;
  margin-top: 20px;
}

.modal-btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
  margin-left: 10px;
}

.modal-btn-primary {
  background-color: #4862ff;
  color: #fff;
  border: none;
}

.modal-btn-primary:hover {
  background-color: #3651e8;
}

.modal-btn-secondary {
  background-color: #f1f4fa;
  color: #2c3e50;
  border: 1px solid #d3dae6;
}

.modal-btn-secondary:hover {
  background-color: #e2e8f0;
}

/* Modal content list styling for tabulated display */
.modal-body ul,
.modal-body ol {
  margin: 15px 0;
  padding-left: 30px;
}

.modal-body ul {
  list-style-type: disc;
}

.modal-body ul ul {
  list-style-type: circle;
  margin: 8px 0;
}

.modal-body ol {
  list-style-type: decimal;
}

.modal-body ol ol {
  list-style-type: lower-alpha;
}

.modal-body li {
  margin-bottom: 8px;
  line-height: 1.6;
  padding-left: 5px;
}

/* Special formatting for list items with key-value pairs */
.modal-body li strong:first-child {
  display: inline-block;
  min-width: 120px;
  color: #2c3e50;
}

.modal-body li strong:first-child + br {
  display: none;
}

/* Bold labels with colons become tabulated */
.modal-body li strong:first-child + em,
.modal-body li strong:first-child + em + br + code,
.modal-body li strong:first-child:after {
  padding-left: 8px;
}

/* Definition list styling in modal */
.modal-body dl {
  margin: 15px 0;
}

.modal-body dt {
  font-weight: 600;
  color: #2c3e50;
  margin-top: 10px;
}

.modal-body dd {
  margin-left: 25px;
  margin-bottom: 10px;
  color: #5a6b7b;
}

/* Highlighted sections in modal */
.modal-body blockquote {
  padding: 10px 15px;
  margin: 15px 0;
  border-left: 3px solid #4862ff;
  background-color: #f7f9fc;
  color: #2c3e50;
}

/* Table styling in modal */
.modal-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
}

.modal-body th {
  background-color: #f1f4fa;
  color: #2c3e50;
  font-weight: 600;
  text-align: left;
  padding: 8px 12px;
  border: 1px solid #d3dae6;
}

.modal-body td {
  padding: 8px 12px;
  border: 1px solid #d3dae6;
}

.modal-body tr:nth-child(even) {
  background-color: #f9fafc;
}

/* Code blocks in modal */
.modal-body pre {
  background-color: #f1f4fa;
  padding: 15px;
  border-radius: 6px;
  overflow-x: auto;
  margin: 15px 0;
  border: 1px solid #d3dae6;
}

.modal-body code {
  font-family: 'Consolas', 'Monaco', monospace;
  color: #4862ff;
  background-color: #f1f4fa;
  padding: 2px 4px;
  border-radius: 3px;
  font-size: 0.9em;
}

.modal-body pre code {
  color: #2c3e50;
  background: none;
  padding: 0;
  border-radius: 0;
}

/* Key contributions and bulleted sections */
.modal-body p strong {
  display: block;
  margin-top: 15px;
  color: #2c3e50;
}

/* Special formatting for Key contributions bullet lists */
.modal-body ul li:has(> i.fa-solid) {
  list-style-type: none;
  position: relative;
  padding-left: 25px;
}

.modal-body ul li i.fa-solid {
  position: absolute;
  left: 0;
  top: 3px;
  color: #4862ff;
}

/* Adding responsive styles for smaller screens */
@media (max-width: 768px) {
  .logo {
    max-width: 90%; /* Slightly narrower on mobile */
    margin-bottom: 15px;
  }
  
  .subtitle {
    font-size: 18px;
    margin-bottom: 20px;
    padding: 0 10px;
  }
  
  header {
    padding: 15px 10px;
    margin-bottom: 30px;
  }
}

@media (max-width: 480px) {
  .logo {
    max-width: 85%;
    margin-bottom: 12px;
  }
  
  .subtitle {
    font-size: 16px;
  }
  
  header {
    padding: 12px 8px;
  }
}

/* New style for the Serenity* Network info section */
.about-network {
  margin: 30px 0;
  padding: 30px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.about-network h2 {
  color: #050a2b;
  font-size: 32px;
  margin-bottom: 15px;
  font-family: 'Questrial', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 600;
}
.about-network h3 {
  color: #4862ff;
  font-size: 22px;
  margin-bottom: 15px;
  font-weight: 500;
}
.about-network p {
  font-size: 18px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 25px;
  max-width: 90%;
}
.about-network p strong {
  color: #050a2b;
  font-weight: 600;
}
.about-network p em {
  font-style: italic;
  color: #4862ff;
}
.about-network-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
}

/* Button styles */
.btn {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 12px 24px;
  font-size: 16px;
  line-height: 1.5;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn:focus, .btn:hover {
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(72, 98, 255, 0.25);
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background-color: #4862ff;
  border-color: #4862ff;
}

.btn-primary:hover, .btn-primary:focus {
  background-color: #3651e8;
  border-color: #3651e8;
}

.btn-secondary {
  color: #050a2b;
  background-color: #f0f2ff;
  border-color: #d5defa;
}

.btn-secondary:hover, .btn-secondary:focus {
  background-color: #e0e5ff;
  border-color: #c5cef5;
}

/* Accent button for Join CTA */
.btn-accent {
  color: #fff;
  background-color: #7B93FF; /* Changed from #00c2ff to lighter blue */
  border-color: #7B93FF;
  font-size: 17px;
  padding: 14px 28px;
  box-shadow: 0 4px 10px rgba(123, 147, 255, 0.3);
  position: relative;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-width: 2px;
}

.btn-accent:hover, .btn-accent:focus {
  background-color: #95A8FF; /* Lighter blue for hover */
  border-color: #95A8FF;
  box-shadow: 0 6px 15px rgba(123, 147, 255, 0.4);
  transform: translateY(-3px);
}

.btn-accent:active {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(123, 147, 255, 0.3);
}

/* Navigation CTA link */
.nav-cta {
  background-color: #7B93FF; /* Match accent button color */
  color: white !important;
  padding: 0.5rem 1rem !important;
  border-radius: 4px;
  margin-left: 20px;
  font-weight: 600 !important;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-cta:hover {
  background-color: #95A8FF; /* Match accent button hover */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* Responsive button styles */
@media (max-width: 768px) {
  .about-network {
    padding: 20px;
  }
  
  .about-network h2 {
    font-size: 28px;
  }
  
  .about-network p {
    font-size: 16px;
    max-width: 100%;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 15px;
  }
  
  .btn-accent {
    font-size: 16px;
    padding: 12px 24px;
  }
  
  .about-network-actions {
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .about-network-actions {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  .btn-accent {
    order: -1; /* Move the accent button to the top on mobile */
  }
}

/* Improved footer styles - updated */
.site-footer {
  background-color: #4862ff; /* Serenity color */
  color: #fff;
  padding: 40px 0;
  margin-top: 40px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.footer-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links li a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-links li a:hover {
  color: #e0e0e0;
}

.footer-copy {
  flex: 1;
  align-self: center;
  text-align: right;
}

.footer-copy p {
  font-size: 14px;
  margin: 0;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  .footer-copy {
    text-align: center;
    margin-top: 20px;
  }
}

/* Responsive Main Menu Styles */
.main-menu {
  background-color: #4862ff;
  color: #fff;
  padding: 10px 0;
}

.menu-toggle {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: none; /* Hidden on larger screens */
}

.menu-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.menu-links li a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}

.menu-links li a:hover {
  color: #e0e0e0;
}

/* Mobile styles */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .menu-links {
    flex-direction: column;
    display: none;
    gap: 10px;
    margin-top: 10px;
  }
  .menu-links.active {
    display: flex;
  }
}

@media (max-width: 500px) {
  .nav-links {
    width: 100%; /* Aseguramos que el menú ocupe el ancho completo */
    padding: 1rem; /* Ajustamos el padding */
  }
  .nav-links a {
    width: 100%; /* Evitamos que los enlaces excedan el ancho */
  }
}

/* Improved Navigation Styles */
.main-nav {
  background-color: #4862ff;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: flex-end;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: rgba(255,255,255,0.8);
}

/* Improved Footer Styles */
.site-footer {
  background-color: #4862ff;
  color: white;
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
}

.footer-col h4 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col ul a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-col ul a:hover {
  color: white;
}

.footer-bottom {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding: 2rem 20px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}

.footer-bottom p {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  margin: 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #4862ff;
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
    align-items: flex-start; /* Alinear enlaces a la izquierda */
  }
  .nav-links.active {
    display: flex;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-col {
    text-align: center;
  }
  .nav-links a {
    padding: 0.5rem 1.5rem; /* Añadimos padding izquierdo y derecho */
    display: block; /* Aseguramos que ocupe todo el ancho */
  }
}

/* Navbar Styles */
.main-nav {
  background-color: #4862ff;
  color: white;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 40px;
  transition: height 0.3s ease;
}

.nav-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: none; /* Hidden on larger screens */
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* Mobile Styles */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #4862ff;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 1rem;
    gap: 1rem;
    align-items: flex-start; /* Alinear enlaces a la izquierda */
  }
  .nav-links.active {
    display: flex;
  }
  .nav-logo img {
    height: 30px; /* Smaller logo for mobile */
  }
  .nav-links a {
    padding: 0.5rem 1.5rem; /* Añadimos padding izquierdo y derecho */
    display: block; /* Aseguramos que ocupe todo el ancho */
  }
}

/* Join Page Styles */
.join-section {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  padding: 30px;
  margin: 30px 0;
}

.join-header {
  margin-bottom: 30px;
}

.join-header h2 {
  color: #050a2b;
  font-size: 32px;
  margin-bottom: 15px;
  font-family: 'Questrial', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.join-header p {
  font-size: 18px;
  line-height: 1.6;
  color: #333;
}

.join-benefits {
  background-color: #F5F7FF; /* Lighter blue background */
  border-left: 4px solid #7B93FF; /* Match accent color */
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.join-benefits h3 {
  color: #4862ff; /* Use main brand blue */
  font-size: 22px;
  margin-bottom: 20px;
  font-weight: 600;
}

.join-benefits ul {
  list-style: none;
  padding: 0;
}

.join-benefits li {
  margin-bottom: 15px;
  font-size: 17px;
  display: flex;
  align-items: flex-start;
  color: #050a2b;
}

.join-benefits li i {
  color: #7B93FF; /* Match accent color */
  margin-right: 12px;
  margin-top: 4px;
  font-size: 16px;
}

.join-form-container {
  max-width: 800px;
  background-color: #f7f9fc;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.05);
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #d3dae6;
  border-radius: 4px;
  font-size: 16px;
  color: #2c3e50;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #4862ff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(72, 98, 255, 0.1);
}

/* Remove empty rulesets */
@media (max-width: 768px) {
  .join-section {
    padding: 20px;
  }
  
  .join-header h2 {
    font-size: 28px;
  }
  
  .join-header p,
  .join-benefits li {
    font-size: 16px;
  }
}

/* Add standard property for line-clamp compatibility */
.member-description {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  color: #5a6b7b;
  margin-bottom: 12px;

  /* Add standard property */
  line-clamp: 3;
}

/* Ensure no empty rulesets remain */
.no-results-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

@media (max-width: 480px) {
  .no-results-actions {
    flex-direction: column;
    width: 80%;
    margin: 20px auto 0;
  }
}

/* Fix navigation styles */
.main-nav {
  background-color: #4862ff;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
}


/* Accent button for Join CTA with improved visual prominence */
.btn-accent {
  color: #fff;
  background-color: #7B93FF;
  border-color: #7B93FF;
  font-size: 17px;
  padding: 14px 28px;
  box-shadow: 0 4px 10px rgba(123, 147, 255, 0.3);
  position: relative;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-width: 2px;
}

.btn-accent:hover, .btn-accent:focus {
  background-color: #95A8FF; /* Lighter blue for hover */
  border-color: #95A8FF;
  box-shadow: 0 6px 15px rgba(123, 147, 255, 0.4);
  transform: translateY(-3px);
}

.btn-accent:active {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(123, 147, 255, 0.3);
}

/* Navigation CTA link with enhanced prominence */
.nav-cta {
  background-color: #7B93FF; /* Match accent button color */
  color: white !important;
  padding: 0.5rem 1rem !important;
  border-radius: 4px;
  font-weight: 600 !important;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-cta:hover {
  background-color: #95A8FF; /* Match accent button hover */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* Add a slight pulse animation to the Join button for more attention */
@keyframes subtle-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

.about-network-actions .btn-accent {
  animation: subtle-pulse 3s ease-in-out infinite;
}

/* Improved button ordering in mobile view */
@media (max-width: 480px) {
  .about-network-actions {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 10px;
  }
  
  .about-network-actions .btn-accent {
    order: -1; /* Move the accent button to the top on mobile */
    margin-bottom: 15px;
  }
}

/* Fix nav conflicts by overriding the duplicate nav styles */
.main-nav {
  background-color: #4862ff;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
}

@media (max-width: 768px) {
  .modal-content {
    margin: 60px auto 5%; /* Added top margin to avoid navbar overlap */
    width: 90%; /* Make modal slightly narrower on mobile */
    padding: 20px; /* Reduce padding on mobile */
  }
}

@media (max-width: 300px) {
  body {
    padding: 0; /* Eliminamos padding adicional */
  }
  .container {
    max-width: 100%; /* Aseguramos que el contenedor no exceda el ancho */
    padding: 10px; /* Reducimos el padding */
  }
  .nav-links {
    width: 100%; /* Aseguramos que el menú ocupe todo el ancho */
    padding: 0.5rem; /* Reducimos el padding */
  }
  .nav-links a {
    width: 100%; /* Los enlaces ocupan todo el ancho disponible */
    padding: 0.5rem; /* Ajustamos el padding */
  }
  header, .join-section, .about-network {
    margin: 0; /* Eliminamos márgenes laterales */
    padding: 10px; /* Reducimos el padding */
  }
  .grid {
    grid-template-columns: 1fr; /* Forzamos una sola columna en grids */
  }
}


