/* --- Quick Access Bar Styles --- */
.quick-access-section {
  background-color: var(--accent-color);
  padding: 30px 5%;
  position: relative;
  z-index: 20;
  min-height: 166px; /* Reserva espacio para evitar CLS en escritorio */
  display: flex;
  align-items: center;
}

.quick-access-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: transparent;
}

.quick-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  transition: var(--transition);
}

.quick-icon svg {
  width: 100%;
  height: 100%;
  fill: var(--white);
  transition: var(--transition);
}

.quick-icon svg path {
  fill: inherit; /* Fuerza a usar el fill definido en el elemento <svg> */
}

.quick-item span {
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

/* Hover Effect */
.quick-item:hover {
  background-color: var(--white);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  border-color: var(--white);
}

.quick-item:hover .quick-icon svg {
  fill: var(--accent-color);
}

.quick-item:hover span {
  color: var(--accent-color);
}

/* Responsive */
@media (max-width: 992px) {
  .quick-access-section {
    min-height: 240px; /* Ajuste para el layout 2x2 en móviles */
  }

  .quick-access-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .quick-access-section {
    padding: 20px 5%;
  }

  .quick-item {
    padding: 15px;
  }

  .quick-item span {
    font-size: 12px;
  }
}

/* --- Lab Popup Styles --- */
.lab-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.lab-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lab-popup-card {
  background: var(--white);
  width: 90%;
  max-width: 450px;
  border-radius: 24px;
  padding: 40px;
  position: relative;
  transform: scale(0.8) translateY(20px);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.lab-popup-overlay.active .lab-popup-card {
  transform: scale(1) translateY(0);
}

.lab-popup-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  color: var(--text-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lab-popup-close:hover {
  background: #e2e8f0;
  color: var(--accent-color);
}

.lab-popup-header {
  text-align: center;
  margin-bottom: 30px;
}

.lab-popup-icon {
  width: 60px;
  height: 60px;
  background: rgba(0, 86, 179, 0.08);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  color: var(--accent-color);
}

.lab-popup-icon svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.lab-popup-header h3 {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.lab-popup-header p {
  font-size: 14px;
  color: var(--text-light);
}

.lab-popup-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lab-btn {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px 20px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
}

.lab-btn > svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  fill: currentColor !important;
  transition: transform 0.3s ease;
}

.lab-btn:hover > svg {
  transform: scale(1.1);
}

.lab-btn > svg path {
  fill: currentColor !important;
}

.lab-btn.highlight > svg,
.lab-btn.highlight > svg path {
  fill: #128c7e !important;
}

.lab-btn:hover {
  background: var(--white);
  border-color: var(--accent-color);
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0, 86, 179, 0.1);
  color: var(--accent-color);
}

.lab-btn.highlight {
  background: #25d36610;
  border-color: #25d36640;
  color: #128c7e;
}

.lab-btn.highlight:hover {
  background: #25d36615;
  border-color: #25d366;
  color: #128c7e;
}

@media (max-width: 480px) {
  .lab-popup-card {
    padding: 30px 20px;
  }
  .lab-popup-header h3 {
    font-size: 19px;
  }
}
