/* ========================================
   CODES++ - Centro de Estudiantes Styles
   ======================================== */

/* CSS Variables */
:root {
  --primary: #39c0c3;
  --primary-dark: #2a8a8d;
  --secondary: #1a1a1a;
  --background: #ffffff;
  --background-alt: #f8f9fa;
  --text: #2c3e50;
  --text-light: #6c757d;
  --border: #e9ecef;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
  --gradient: linear-gradient(135deg, #39c0c3 0%, #2a8a8d 100%);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
}

header.scrolled {
  box-shadow: var(--shadow);
}

.navbar-brand img {
  max-height: 80px;
  transition: transform 0.3s ease;
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

/* Logo styles for light/dark mode */
.navbar-brand img {
    transition: filter 0.3s ease;
}

[data-theme="dark"] .navbar-brand img {
    filter: brightness(0) invert(1);
}

/* Alternative: if you want to keep some color in dark mode */
[data-theme="dark"] .navbar-brand img {
    filter: brightness(0.9) contrast(1.2) saturate(0.8);
}

/* Logo navbar: tamaño fijo y sin cambios entre modos */
.navbar-logo {
  height: 40px !important;
  max-height: 40px !important;
  width: auto !important;
  max-width: 160px;
  object-fit: contain;
  vertical-align: middle;
  margin: 0 !important;
  padding: 0 !important;
  display: block;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  border-radius: 0 !important;
}

@media (max-width: 576px) {
  .navbar-logo {
    height: 32px !important;
    max-height: 32px !important;
  }
}

[data-theme="dark"] .navbar-logo {
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Navbar actions (search and dark mode buttons) */
.navbar-actions {
  align-items: center;
}

.navbar-actions .btn {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
}

.navbar-actions .btn:hover {
  transform: translateY(-1px);
}

/* Responsive adjustments for navbar */
@media (max-width: 991.98px) {
  .navbar-actions {
    order: 2;
    margin-right: 0.5rem !important;
  }
  
  .navbar-toggler {
    order: 3;
  }
  
  .navbar-collapse {
    order: 4;
  }
}

.nav-link {
  font-weight: 500;
  color: var(--text) !important;
  position: relative;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem !important;
  border-radius: 8px;
  margin: 0 0.25rem;
}

.nav-link:hover {
  color: var(--primary) !important;
  background-color: rgba(57, 192, 195, 0.1);
  transform: translateY(-2px);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 80%;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
  background: var(--gradient);
  padding: 100px 0 60px;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
  animation: float 20s ease-in-out infinite;
}

/* Animated background elements */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(255,255,255,0.05) 0%, transparent 50%);
  animation: pulse 8s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease-out 0.5s forwards;
  text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.hero h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 4px;
  background: rgba(255,255,255,0.8);
  animation: expandWidth 1.5s ease-out 1.5s forwards;
}

.hero .subtitle {
  font-size: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease-out 1s forwards;
  margin-bottom: 1rem;
  font-weight: 300;
  letter-spacing: 1px;
}

.hero .description {
  font-size: 1.25rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease-out 1.5s forwards;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  font-weight: 400;
  line-height: 1.6;
}

/* Floating elements */
.hero-floating {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 1;
}

.hero-floating::before,
.hero-floating::after {
  content: '';
  position: absolute;
  width: 100px;
  height: 100px;
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 50%;
}

.hero-floating::before {
  top: 20%;
  left: 10%;
  animation: float 6s ease-in-out infinite;
}

.hero-floating::after {
  bottom: 20%;
  right: 10%;
  animation: float 6s ease-in-out infinite reverse;
}

/* Hero animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes expandWidth {
  from {
    width: 0;
  }
  to {
    width: 200px;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-20px) rotate(120deg);
  }
  66% {
    transform: translateY(10px) rotate(240deg);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

/* Typing effect for the main title */
.hero h1 {
  overflow: visible;
  white-space: normal;
  animation: fadeInUp 1s ease-out 0.5s forwards;
}

/* Removed typing animations as they were causing visibility issues */

/* Particle effects */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: particleFloat 15s infinite linear;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; }
.particle:nth-child(3) { left: 30%; animation-delay: 4s; }
.particle:nth-child(4) { left: 40%; animation-delay: 6s; }
.particle:nth-child(5) { left: 50%; animation-delay: 8s; }
.particle:nth-child(6) { left: 60%; animation-delay: 10s; }
.particle:nth-child(7) { left: 70%; animation-delay: 12s; }
.particle:nth-child(8) { left: 80%; animation-delay: 14s; }
.particle:nth-child(9) { left: 90%; animation-delay: 16s; }

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* Glow effect for the title */
.hero h1 {
  position: relative;
}

.hero h1::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  animation: glow 3s ease-in-out infinite;
  z-index: -1;
}

@keyframes glow {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.8;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero {
    min-height: 60vh;
    padding: 100px 0 60px;
  }
  
  .hero h1 {
    font-size: 2.5rem;
    white-space: normal;
    animation: fadeInUp 1s ease-out 0.5s forwards;
  }
  
  .hero .subtitle {
    font-size: 1.2rem;
  }
  
  .hero .description {
    font-size: 1rem;
  }
  
  .hero-floating::before,
  .hero-floating::after {
    width: 60px;
    height: 60px;
  }
  
  .particle {
    width: 3px;
    height: 3px;
  }
}

/* ========================================
   SECTIONS
   ======================================== */

section {
  padding: 80px 0;
}

section:nth-child(even) {
  background-color: var(--background-alt);
}

/* Add extra padding for first section on mobile to account for fixed navbar */
@media (max-width: 768px) {
  .hero {
    padding-top: 140px;
  }
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 1rem;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* ========================================
   CARDS
   ======================================== */

.card {
  border: none;
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  overflow: hidden;
  background: white;
}

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

/* Member Cards */
.member-card {
  text-align: center;
  padding: 2rem 1rem;
}

.member-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  border: 4px solid var(--primary);
  transition: all 0.3s ease;
}

.member-card:hover .member-avatar {
  transform: scale(1.05);
  border-color: var(--primary-dark);
}

.member-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.member-role {
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 1rem;
}

.btn-linkedin {
  background: var(--gradient);
  border: none;
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 40px;
}

.btn-linkedin i {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.btn-linkedin:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(57, 192, 195, 0.3);
  color: white;
}

/* ========================================
   EVENT CARDS
   ======================================== */

.event-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border-left: 5px solid var(--primary);
}
.event-card .mt-auto {
  margin-top: auto;
}

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

.event-card h3 {
  color: var(--secondary);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.event-card p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.btn-primary {
  background: var(--gradient);
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(57, 192, 195, 0.3);
  background: var(--gradient);
}

/* ========================================
   RESOURCES SECTION
   ======================================== */

.resource-item {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border-left: 4px solid var(--primary);
}

.resource-item:hover {
  transform: translateX(10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.resource-item a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.resource-item a:hover {
  color: var(--primary);
}

.resource-item p {
  color: var(--text-light);
  margin: 0.5rem 0 0 2rem;
  font-size: 0.95rem;
}

/* ========================================
   VOCALES SECTION
   ======================================== */

.vocales-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.vocal-item {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border-left: 4px solid var(--primary);
}

.vocal-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.vocal-name {
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 0.25rem;
}

.vocal-role {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ========================================
   FAQ SECTION
   ======================================== */

.accordion-item {
  border: none;
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.3s ease;
}

.accordion-item:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.accordion-button {
  background: white;
  border: none;
  padding: 1.5rem;
  font-weight: 600;
  color: var(--secondary);
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
  background: var(--gradient);
  color: white;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border: none;
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2339c0c3'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  transition: all 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
  padding: 1.5rem;
  background: white;
  color: var(--text);
  line-height: 1.7;
}

.accordion-body p {
  margin-bottom: 1rem;
}

.accordion-body ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.accordion-body li {
  margin-bottom: 0.5rem;
}

.accordion-body strong {
  color: var(--primary);
  font-weight: 600;
}

/* FAQ Animation */
.accordion-collapse {
  transition: all 0.3s ease;
}

.accordion-collapse.show {
  animation: slideDown 0.3s ease-out;
}

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

/* ========================================
   FOOTER
   ======================================== */

footer {
  background: var(--secondary);
  color: white;
  padding: 3rem 0 2rem;
  text-align: center;
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
}

.footer-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.contact-item a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-item a:hover {
  color: white;
  text-decoration: underline;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.social-link:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  color: white;
}

/* ========================================
   SCROLL INDICATOR
   ======================================== */

.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--border);
  z-index: 1001;
}

.scroll-progress {
  height: 100%;
  background: var(--gradient);
  width: 0%;
  transition: width 0.3s ease;
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */

#backToTop {
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  border: none;
  color: white;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#backToTop:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(57, 192, 195, 0.3);
  background: var(--gradient);
}

#backToTop i {
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* ========================================
   SEARCH FUNCTIONALITY
   ======================================== */

.search-results {
  max-height: 400px;
  overflow-y: auto;
}

.search-result-item {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-result-item:hover {
  background-color: var(--background-alt);
}

.search-result-item h6 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.search-result-item p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
}

/* ========================================
   DARK MODE
   ======================================== */

[data-theme="dark"] {
  --background: #1a1a1a;
  --background-alt: #2d2d2d;
  --text: #ffffff;
  --text-light: #b0b0b0;
  --border: #404040;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .card {
  background: var(--background-alt);
  color: var(--text);
}

[data-theme="dark"] .navbar {
  background: rgba(26, 26, 26, 0.7) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}

[data-theme="dark"] .nav-link {
  color: var(--text) !important;
}

[data-theme="dark"] .nav-link:hover {
  color: var(--primary) !important;
  background-color: rgba(57, 192, 195, 0.1);
}

[data-theme="dark"] .navbar-toggler {
  border-color: var(--border);
}

[data-theme="dark"] .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%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

[data-theme="dark"] .navbar-actions .btn-outline-primary {
  border-color: var(--primary);
  color: var(--primary);
}

[data-theme="dark"] .navbar-actions .btn-outline-primary:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: white;
}

[data-theme="dark"] .navbar-actions .btn-outline-secondary {
  border-color: var(--text-light);
  color: var(--text-light);
}

[data-theme="dark"] .navbar-actions .btn-outline-secondary:hover {
  background-color: var(--text-light);
  border-color: var(--text-light);
  color: var(--background);
}

[data-theme="dark"] .accordion-button {
  background: var(--background-alt);
  color: var(--text);
}

[data-theme="dark"] .accordion-body {
  background: var(--background-alt);
  color: var(--text);
}

[data-theme="dark"] .event-card {
  background: var(--background-alt);
  color: var(--text);
}

[data-theme="dark"] .event-card h3 {
  color: var(--text);
}

[data-theme="dark"] .event-card p {
  color: var(--text-light);
}

[data-theme="dark"] .resource-item {
  background: var(--background-alt);
  color: var(--text);
}

[data-theme="dark"] .resource-item a {
  color: var(--text);
}

[data-theme="dark"] .resource-item a:hover {
  color: var(--primary);
}

[data-theme="dark"] .resource-item p {
  color: var(--text-light);
}

[data-theme="dark"] .vocal-item {
  background: var(--background-alt);
  color: var(--text);
}

[data-theme="dark"] .vocal-name {
  color: var(--text);
}

[data-theme="dark"] .vocal-role {
  color: var(--primary);
}

[data-theme="dark"] .member-name {
  color: var(--text);
}

[data-theme="dark"] .member-role {
  color: var(--primary);
}

[data-theme="dark"] .achievement-item {
  background: var(--background);
  color: var(--text);
}

[data-theme="dark"] .values-list li {
  border-bottom-color: var(--border);
  color: var(--text);
}

[data-theme="dark"] .modal-content {
  background: var(--background-alt);
  color: var(--text);
}

[data-theme="dark"] .modal-header {
  border-bottom-color: var(--border);
}

[data-theme="dark"] .modal-title {
  color: var(--text);
}

[data-theme="dark"] .form-control {
  background: var(--background);
  border-color: var(--border);
  color: var(--text);
}

[data-theme="dark"] .form-control:focus {
  background: var(--background);
  border-color: var(--primary);
  color: var(--text);
}

[data-theme="dark"] .input-group-text {
  background: var(--background-alt);
  border-color: var(--border);
  color: var(--text);
}

[data-theme="dark"] .search-result-item {
  border-bottom-color: var(--border);
}

[data-theme="dark"] .search-result-item:hover {
  background-color: var(--background);
}

[data-theme="dark"] .search-result-item h6 {
  color: var(--primary);
}

[data-theme="dark"] .search-result-item p {
  color: var(--text-light);
}

[data-theme="dark"] .btn-outline-primary {
  border-color: var(--primary);
  color: var(--primary);
}

[data-theme="dark"] .btn-outline-primary:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: white;
}

[data-theme="dark"] .btn-outline-secondary {
  border-color: var(--text-light);
  color: var(--text-light);
}

[data-theme="dark"] .btn-outline-secondary:hover {
  background-color: var(--text-light);
  border-color: var(--text-light);
  color: var(--background);
}

[data-theme="dark"] .section-title {
  color: var(--text);
}

[data-theme="dark"] .section-subtitle {
  color: var(--text-light);
}

[data-theme="dark"] .badge {
  background-color: var(--primary) !important;
  color: white !important;
}

[data-theme="dark"] .text-muted {
  color: var(--text-light) !important;
}

[data-theme="dark"] .text-primary {
  color: var(--primary) !important;
}

[data-theme="dark"] .text-secondary {
  color: var(--text-light) !important;
}

[data-theme="dark"] .btn-close {
  filter: invert(1);
}

[data-theme="dark"] .alert {
  background-color: var(--background-alt);
  border-color: var(--border);
  color: var(--text);
}

[data-theme="dark"] .alert-info {
  background-color: rgba(57, 192, 195, 0.1);
  border-color: var(--primary);
  color: var(--text);
}

[data-theme="dark"] .alert-success {
  background-color: rgba(40, 167, 69, 0.1);
  border-color: #28a745;
  color: var(--text);
}

[data-theme="dark"] .alert-warning {
  background-color: rgba(255, 193, 7, 0.1);
  border-color: #ffc107;
  color: var(--text);
}

[data-theme="dark"] .alert-danger {
  background-color: rgba(220, 53, 69, 0.1);
  border-color: #dc3545;
  color: var(--text);
}

/* ========================================
   BREADCRUMBS
   ======================================== */

.breadcrumb-nav {
  background: var(--background-alt);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  margin-top: 80px;
}

.breadcrumb {
  margin: 0;
  background: transparent;
  padding: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--text-light);
}

.breadcrumb-link {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.breadcrumb-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: var(--text-light);
}

/* ========================================
   TOOLTIPS & LOADING STATES
   ======================================== */

.external-link {
  position: relative;
  transition: all 0.3s ease;
}

.external-link:hover {
  transform: translateY(-2px);
}

.loading-spinner {
  margin-left: 0.5rem;
}

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

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ========================================
   EXPANDED NOSOTROS SECTION
   ======================================== */

.achievement-item {
  padding: 1.5rem;
  border-radius: 12px;
  background: var(--background-alt);
  transition: all 0.3s ease;
  height: 100%;
}

.achievement-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.values-list {
  list-style: none;
  padding: 0;
}

.values-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.values-list li:last-child {
  border-bottom: none;
}

.values-list li::before {
  content: '✓';
  color: var(--primary);
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 0.1rem;
  font-size: 1.1rem;
}

.text-justify {
  text-align: justify;
}

@media (max-width: 768px) {
  .text-justify {
    text-align: left !important;
  }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .member-avatar {
    width: 120px;
    height: 120px;
  }

  .vocales-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 100px 0 60px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .member-card {
    padding: 1.5rem 0.5rem;
  }

  .event-card {
    padding: 1.5rem;
  }
} 

@media (max-width: 768px) {
  .breadcrumb-nav {
    margin-top: 100px;
  }
  
  .achievement-item {
    margin-bottom: 1rem;
  }
  
  .values-list li {
    padding: 1rem 0;
  }
} 

/* --- INICIO: Ajustes de responsividad y alineación navbar/logo --- */

/* Logo siempre alineado y con tamaño fijo */
.navbar-logo {
  height: 48px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 12px;
  margin-left: 0;
  padding: 0;
  display: block;
}

/* Navbar container: espacio entre logo y acciones */
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Acciones y toggler alineados */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 8px;
}

/* En mobile: logo y acciones en la misma fila, sin saltos */
@media (max-width: 991.98px) {
  .navbar .container {
    flex-wrap: nowrap;
  }
  .navbar-logo {
    height: 40px;
    max-width: 120px;
  }
  .navbar-actions {
    margin-left: 4px;
  }
}

/* --- FIN: Ajustes de responsividad y alineación navbar/logo --- */

<<<<<<< HEAD
/* Forzar navbar siempre claro, incluso en modo oscuro */
header, .navbar, .navbar-light, [data-theme="dark"] header, [data-theme="dark"] .navbar, [data-theme="dark"] .navbar-light {
  background: rgba(255,255,255,0.95) !important;
  color: var(--text) !important;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* Logo siempre mismo tamaño y pegado al borde */
.navbar-brand {
  margin-left: 0 !important;
  padding-left: 0 !important;
  margin-right: 0.5rem;
  padding-top: 0;
  padding-bottom: 0;
  display: flex;
  align-items: center;
}
.navbar-logo {
  max-height: 40px;
  height: 40px;
  width: auto;
  margin: 0;
  padding: 0;
  display: block;
}
@media (max-width: 576px) {
  .navbar-logo {
    max-height: 32px;
    height: 32px;
  }
}

/* Eliminar cualquier filtro/fondo en modo oscuro */
[data-theme="dark"] .navbar-logo,
.navbar-logo {
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
}

/* Forzar navbar siempre claro y visible en todos los modos */
[data-theme="dark"] .navbar-nav .nav-link,
.navbar-nav .nav-link {
  color: var(--text) !important;
  background: transparent !important;
}
[data-theme="dark"] .navbar-nav .nav-link:hover,
.navbar-nav .nav-link:hover {
  color: var(--primary) !important;
  background: rgba(57, 192, 195, 0.1) !important;
} 

 
=======
.btn-proximamente {
  background: var(--gradient);
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 25px;
  font-weight: 500;
  color: #fff;
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
  transition: all 0.3s ease;
} 
>>>>>>> 0a060881b9fe3f78d7dd3a9cc47410313f31c1b0

/* --- MEJORA DEL MENÚ NAVBAR EN MOBILE --- */
@media (max-width: 991.98px) {
  .navbar-collapse {
    position: absolute !important;
    top: 100%;
    left: 0;
    width: 100vw;
    min-width: 100vw;
    background: #fff !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    z-index: 1050;
    padding: 1rem 0.5rem 1rem 0.5rem;
    border-radius: 0 0 16px 16px;
    margin: 0;
    display: block;
    transition: all 0.3s;
  }
  .navbar-nav {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.5rem;
    width: 100%;
  }
  .nav-link {
    font-size: 1.15rem;
    padding: 1rem 1.5rem !important;
    border-radius: 8px;
    margin: 0.25rem 0;
    text-align: left;
    width: 100%;
    background: transparent !important;
  }
  .navbar-toggler {
    font-size: 2rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1.5px solid #ddd;
    background: #fff !important;
    z-index: 1100;
    box-shadow: 0 2px 8px #0001;
    margin-left: 0.5rem;
  }
  .navbar-actions {
    z-index: 1100;
  }
  .navbar {
    position: relative;
    z-index: 1100;
  }
}

@media (max-width: 576px) {
  .navbar-collapse {
    padding: 0.5rem 0.25rem 0.75rem 0.25rem;
    border-radius: 0 0 12px 12px;
  }
  .nav-link {
    font-size: 1.05rem;
    padding: 0.85rem 1rem !important;
  }
}
/* --- FIN MEJORA DEL MENÚ NAVBAR EN MOBILE --- */

/* --- MENÚ MOBILE DROPDOWN DESDE NAVBAR --- */
@media (max-width: 991.98px) {
  .navbar-collapse {
    display: none !important;
  }
  .mobile-menu-modal .modal-dialog.mobile-menu-dropdown {
    margin: 0 auto;
    margin-top: 60px;
    max-width: 420px;
    width: 95vw;
    pointer-events: none;
    transition: margin-top 0.3s;
  }
  .mobile-menu-modal .modal-content {
    border-radius: 0 0 1.5rem 1.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    background: rgba(255,255,255,0.98) !important;
    padding: 0;
    min-width: 0;
    min-height: 0;
    pointer-events: auto;
    animation: slideDownMenu 0.35s cubic-bezier(.4,1.6,.6,1) both;
  }
  .mobile-menu-modal .modal-body {
    width: 100%;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 0.5rem 1rem 0.5rem;
  }
  .mobile-menu-modal .nav-link {
    font-size: 1.15rem !important;
    font-weight: 700;
    color: var(--primary) !important;
    padding: 0.85rem 1rem !important;
    border-radius: 10px;
    transition: background 0.2s, color 0.2s;
    text-align: center;
    width: 100%;
    max-width: 100%;
  }
  .mobile-menu-modal .nav-link:hover {
    background: var(--primary);
    color: #fff !important;
  }
  .mobile-menu-modal .modal-header, .mobile-menu-modal .btn-close {
    display: none !important;
  }
  .mobile-menu-modal.show .modal-dialog {
    margin-top: 60px;
  }
  .modal-backdrop.show {
    background: rgba(0,0,0,0.18) !important;
    backdrop-filter: blur(2px);
  }
}
@media (min-width: 992px) {
  .mobile-menu-modal {
    display: none !important;
  }
}
@keyframes slideDownMenu {
  0% {
    transform: translateY(-40px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
/* --- FIN MENÚ MOBILE DROPDOWN DESDE NAVBAR --- */
