/* About Page Specific Styles */

:root {
  --viewer-color: #2196f3;
  --chat-color: #4caf50;
  --results-color: #ff9800;
  --section-bg-color: #fafafa;
  --container-bg-color: white;
  --text-color: #333;
  --border-color: #eee;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --alert-bg-color: #d4edda;
  --alert-text-color: #155724;
  --alert-border-color: #c3e6cb;
  --alert-info-bg-color: #cce5ff;
  --alert-info-text-color: #004085;
  --alert-info-border-color: #b8daff;
  --input-bg-color: #fff;
  --user-message-bg: #e3f2fd;
  --user-message-text: #0d47a1;
  --system-message-bg: #f1f8e9;
  --system-message-text: #33691e;
}

/* Variables para el modo oscuro - Paleta mejorada */
[data-theme="dark"] {
  --viewer-color: #64b5f6;
  --chat-color: #81c784;
  --results-color: #ffb74d;
  --section-bg-color: #121212;
  --container-bg-color: #1e1e1e;
  --text-color: #f5f5f5;
  --border-color: #333;
  --shadow-color: rgba(0, 0, 0, 0.5);
  --alert-bg-color: #1e3a2d;
  --alert-text-color: #81c784;
  --alert-border-color: #2e7d32;
  --alert-info-bg-color: #0d2848;
  --alert-info-text-color: #90caf9;
  --alert-info-border-color: #1976d2;
  --input-bg-color: #2d2d2d;
  --user-message-bg: #1a3a5f;
  --user-message-text: #bbdefb;
  --system-message-bg: #1b3a20;
  --system-message-text: #c8e6c9;
}

.main-content {
  padding: 2rem 0;
  min-height: calc(100vh - 120px);
  background-color: var(--section-bg-color);
  transition: background-color 0.3s ease;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
}

.page-header h1 {
  font-size: 2.5rem;
  color: var(--text-color);
  margin-bottom: 0.5rem;
  font-weight: 700;
  transition: color 0.3s ease;
}

/* About Section */
.about-section {
  margin-bottom: 4rem;
  position: relative;
}

.about-section .section-container {
  padding: 30px;
  background-color: var(--container-bg-color);
  border-radius: 12px;
  box-shadow: 0 4px 15px var(--shadow-color);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  width: 100%;
}

.about-section .section-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow-color);
}

.about-section h2 {
  font-size: 2rem;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  font-weight: 600;
  transition: color 0.3s ease;
}

.content-wrapper p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  text-align: justify;
  transition: color 0.3s ease;
}

/* Team Section */
.team-section {
  margin-bottom: 4rem;
  position: relative;
}

.team-section h2 {
  font-size: 2rem;
  color: var(--text-color);
  margin-bottom: 2rem;
  text-align: center;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.team-member {
  background-color: var(--container-bg-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px var(--shadow-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.team-member:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px var(--shadow-color);
}

.team-member h3 {
  font-size: 1.4rem;
  color: var(--text-color);
  margin-bottom: 0.5rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.member-role {
  font-size: 1rem;
  color: var(--viewer-color);
  font-weight: 500;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.member-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  transition: color 0.3s ease;
}

.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--viewer-color);
  text-decoration: none;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--viewer-color);
  border-radius: 8px;
  transition: all 0.3s ease;
  background-color: transparent;
}

.linkedin-link:hover {
  background-color: var(--viewer-color);
  color: var(--container-bg-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.linkedin-icon {
  font-size: 1.1rem;
}

/* Collaboration Section */
.collaboration-section {
  margin-bottom: 3rem;
  position: relative;
}

.collaboration-section .section-container {
  padding: 40px;
  background-color: var(--container-bg-color);
  border-radius: 12px;
  box-shadow: 0 8px 25px var(--shadow-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  border: none;
  width: 100%;
}

.collaboration-section .section-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px var(--shadow-color);
}

.collaboration-section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
}

.collaboration-content {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.collaboration-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.collaboration-paragraphs {
  flex: 1;
}

.collaboration-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  text-align: justify;
  color: var(--text-color);
}

.collaboration-action {
  margin-top: 2rem;
}

.info-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--viewer-color);
  color: white;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  border: 2px solid var(--viewer-color);
  transition: all 0.3s ease;
}

.info-button::before {
  content: "\f35d";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 1.1rem;
}

.info-button:hover {
  background-color: transparent;
  color: var(--viewer-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(33, 150, 243, 0.3);
}

.collaboration-image {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  max-width: 50%;
}

.repo-sudo-logo {
  max-width: 100%;
  width: auto;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 8px 32px var(--shadow-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  object-fit: contain;
  display: block;
}

.repo-sudo-logo:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 40px var(--shadow-color);
}

.image-placeholder {
  width: 300px;
  height: 200px;
  background-color: var(--section-bg-color);
  border: 2px dashed var(--border-color);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-style: italic;
  color: var(--text-color);
  transition: all 0.3s ease;
  opacity: 0.7;
  flex-shrink: 0;
}

.image-placeholder:hover {
  background-color: var(--container-bg-color);
  border-color: var(--viewer-color);
  opacity: 1;
}

/* Footer */
.footer {
  background-color: #2c3e50;
  color: white;
  text-align: center;
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer p {
  margin: 0;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .collaboration-content {
    flex-direction: column;
    gap: 1.5rem;
  }

  .collaboration-image {
    max-width: 100%;
    justify-content: center;
  }

  .about-section .section-container,
  .collaboration-section .section-container {
    padding: 20px;
  }

  .team-member {
    padding: 20px;
  }

  .repo-sudo-logo {
    max-width: 100%;
    margin-top: 1rem;
  }
}

@media (max-width: 480px) {
  .page-header h1 {
    font-size: 1.8rem;
  }

  .about-section h2,
  .team-section h2,
  .collaboration-section h2 {
    font-size: 1.6rem;
  }

  .content-wrapper p,
  .collaboration-text p {
    font-size: 1rem;
  }

  .team-member h3 {
    font-size: 1.2rem;
  }
}
